@wildo-ai/dev-companion 1.1.5 → 1.1.7

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 (1246) hide show
  1. package/dist/esm/.tsbuildinfo +1 -1
  2. package/dist/esm/__tests__/asset-noop.d.ts.map +1 -1
  3. package/dist/esm/__tests__/asset-noop.js.map +1 -1
  4. package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +1 -1
  5. package/dist/esm/__tests__/chdir-dogfood-app.setup.js.map +1 -1
  6. package/dist/esm/__tests__/internal-test-view.d.ts.map +1 -1
  7. package/dist/esm/__tests__/internal-test-view.js.map +1 -1
  8. package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
  9. package/dist/esm/brand/models/logo-creative-brief.schemas.js.map +1 -1
  10. package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
  11. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js +0 -1
  12. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
  13. package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
  14. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +0 -1
  15. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
  16. package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
  17. package/dist/esm/brand/models/logo-judge.schemas.js.map +1 -1
  18. package/dist/esm/brand/services/brand-accept.companion.service.d.ts +8 -0
  19. package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
  20. package/dist/esm/brand/services/brand-accept.companion.service.js +6 -0
  21. package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
  22. package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts +21 -0
  23. package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -0
  24. package/dist/esm/brand/services/brand-propagation.companion.utils.js +33 -0
  25. package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -0
  26. package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
  27. package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
  28. package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
  29. package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
  30. package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
  31. package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
  32. package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
  33. package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
  34. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -1
  35. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -1
  36. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +69 -1
  37. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  38. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +84 -3
  39. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  40. package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -1
  41. package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -1
  42. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +8 -4
  43. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
  44. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +9 -5
  45. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
  46. package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -1
  47. package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -1
  48. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -1
  49. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js +1 -1
  50. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
  51. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +4 -0
  52. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -1
  53. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +25 -3
  54. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -1
  55. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +159 -11
  56. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
  57. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +424 -41
  58. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
  59. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +333 -60
  60. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  61. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +1029 -185
  62. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  63. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts +8 -2
  64. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -1
  65. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js +8 -2
  66. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -1
  67. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
  68. package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
  69. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts +20 -0
  70. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -0
  71. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js +29 -0
  72. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -0
  73. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +11 -0
  74. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  75. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +60 -7
  76. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  77. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +5 -4
  78. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  79. package/dist/esm/claude-cli/services/research-evidence-store.companion.js +13 -4
  80. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  81. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
  82. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.js.map +1 -1
  83. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
  84. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
  85. package/dist/esm/companion-api/companion-api.schemas.d.ts +193 -2
  86. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  87. package/dist/esm/companion-api/companion-api.schemas.js +20 -1
  88. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  89. package/dist/esm/companion-api/companion-error-guidance.models.d.ts +25 -0
  90. package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -0
  91. package/dist/esm/companion-api/companion-error-guidance.models.js +26 -0
  92. package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -0
  93. package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts +44 -0
  94. package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -0
  95. package/dist/esm/companion-api/controllers/companion-file-route-confinement.js +111 -0
  96. package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -0
  97. package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
  98. package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.js.map +1 -1
  99. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts +6 -14
  100. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
  101. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +6 -14
  102. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
  103. package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts +12 -0
  104. package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -0
  105. package/dist/esm/companion-api/controllers/companion-trace-exemptions.js +20 -0
  106. package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -0
  107. package/dist/esm/companion-api/controllers/companion.controller.d.ts +104 -14
  108. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  109. package/dist/esm/companion-api/controllers/companion.controller.js +516 -122
  110. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  111. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
  112. package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
  113. package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
  114. package/dist/esm/core/catalogs/catalog-context.factory.js.map +1 -1
  115. package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
  116. package/dist/esm/core/catalogs/catalog-context.factory.models.js.map +1 -1
  117. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
  118. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.js.map +1 -1
  119. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
  120. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.js.map +1 -1
  121. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
  122. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.js.map +1 -1
  123. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
  124. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.js.map +1 -1
  125. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
  126. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.js.map +1 -1
  127. package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
  128. package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.js.map +1 -1
  129. package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
  130. package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.js.map +1 -1
  131. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
  132. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.js.map +1 -1
  133. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
  134. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.js.map +1 -1
  135. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
  136. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.js.map +1 -1
  137. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -1
  138. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -1
  139. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
  140. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
  141. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
  142. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.js.map +1 -1
  143. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
  144. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.js.map +1 -1
  145. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
  146. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js +6 -38
  147. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
  148. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -1
  149. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -1
  150. package/dist/esm/core/config/primary-language.companion.utils.d.ts +13 -0
  151. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  152. package/dist/esm/core/config/primary-language.companion.utils.js +19 -0
  153. package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
  154. package/dist/esm/core/context/companion-context.d.ts.map +1 -1
  155. package/dist/esm/core/context/companion-context.js.map +1 -1
  156. package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
  157. package/dist/esm/core/context/companion-package-loaders.companion.js +1 -39
  158. package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
  159. package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -1
  160. package/dist/esm/core/context/draft-family-values.companion.js.map +1 -1
  161. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  162. package/dist/esm/core/inject/models/container.js +4 -0
  163. package/dist/esm/core/inject/models/container.js.map +1 -1
  164. package/dist/esm/core/inject/models/service-types.d.ts +4 -0
  165. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  166. package/dist/esm/core/inject/models/service-types.js +4 -0
  167. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  168. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  169. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js +16 -0
  170. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
  171. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts +1 -1
  172. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  173. package/dist/esm/core/introspection/models/companion-introspection.models.js +6 -0
  174. package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
  175. package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts +41 -0
  176. package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -0
  177. package/dist/esm/core/introspection/resources/application-secrets.companion.js +155 -0
  178. package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -0
  179. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts +76 -0
  180. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -0
  181. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js +197 -0
  182. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -0
  183. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts +47 -0
  184. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -0
  185. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +199 -0
  186. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -0
  187. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
  188. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
  189. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +42 -0
  190. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  191. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +173 -22
  192. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  193. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts +78 -90
  194. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  195. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +288 -25
  196. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  197. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts +22 -36
  198. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
  199. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js +49 -13
  200. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
  201. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts +1 -1
  202. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  203. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js +10 -15
  204. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
  205. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
  206. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.js.map +1 -1
  207. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  208. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  209. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
  210. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
  211. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  212. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
  213. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
  214. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -1
  215. package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
  216. package/dist/esm/core/introspection/services/translation-placement.companion.service.js.map +1 -1
  217. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -1
  218. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -1
  219. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +2 -0
  220. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
  221. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
  222. package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
  223. package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
  224. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts +4 -0
  225. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
  226. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.js.map +1 -1
  227. package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
  228. package/dist/esm/core/introspection/subprocess/asset-noop-register.js.map +1 -1
  229. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
  230. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.js.map +1 -1
  231. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
  232. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.js.map +1 -1
  233. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  234. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +77 -9
  235. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  236. package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
  237. package/dist/esm/core/introspection/subprocess/companion-introspection-child.js.map +1 -1
  238. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
  239. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.js.map +1 -1
  240. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts +45 -3
  241. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
  242. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js +8 -1
  243. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
  244. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
  245. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.js.map +1 -1
  246. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -1
  247. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -1
  248. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
  249. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js.map +1 -1
  250. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
  251. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
  252. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts +3 -2
  253. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
  254. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js +8 -3
  255. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
  256. package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
  257. package/dist/esm/core/introspection/subprocess/market-context-block.builder.js.map +1 -1
  258. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
  259. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js.map +1 -1
  260. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +30 -1
  261. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
  262. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +128 -20
  263. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
  264. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -1
  265. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -1
  266. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts +13 -0
  267. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  268. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +21 -17
  269. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
  270. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -1
  271. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -1
  272. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -1
  273. package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -1
  274. package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -1
  275. package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -1
  276. package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
  277. package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
  278. package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
  279. package/dist/esm/core/lock/wildo-saas-lock.models.js.map +1 -1
  280. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
  281. package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
  282. package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -1
  283. package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -1
  284. package/dist/esm/core/runtime/companion-endpoint-record.d.ts +8 -0
  285. package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -0
  286. package/dist/esm/core/runtime/companion-endpoint-record.js +23 -0
  287. package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -0
  288. package/dist/esm/core/runtime/companion-env-file.d.ts +30 -0
  289. package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -0
  290. package/dist/esm/core/runtime/companion-env-file.js +53 -0
  291. package/dist/esm/core/runtime/companion-env-file.js.map +1 -0
  292. package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
  293. package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
  294. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +5 -0
  295. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
  296. package/dist/esm/core/runtime/dev-compile-quiet.companion.js +11 -0
  297. package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
  298. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts +56 -0
  299. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -0
  300. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js +97 -0
  301. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -0
  302. package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
  303. package/dist/esm/core/runtime/models/companion-runtime.models.js.map +1 -1
  304. package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -1
  305. package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -1
  306. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +43 -3
  307. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  308. package/dist/esm/core/runtime/services/start-companion-application.service.js +127 -22
  309. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  310. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
  311. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.js.map +1 -1
  312. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts +11 -1
  313. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  314. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +42 -19
  315. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  316. package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
  317. package/dist/esm/core/runtime/utils/companion-workbench-topology.js.map +1 -1
  318. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
  319. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.js.map +1 -1
  320. package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
  321. package/dist/esm/core/specifications/chart-view-specification-context.factory.js.map +1 -1
  322. package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
  323. package/dist/esm/core/specifications/composite-view-specification-context.factory.js.map +1 -1
  324. package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
  325. package/dist/esm/core/specifications/cross-registry-rendering.shared.js.map +1 -1
  326. package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
  327. package/dist/esm/core/specifications/execution-view-specification-context.factory.js.map +1 -1
  328. package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
  329. package/dist/esm/core/specifications/feature-specification-context.factory.js.map +1 -1
  330. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
  331. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.js.map +1 -1
  332. package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
  333. package/dist/esm/core/specifications/frontend-component-specification-context.factory.js.map +1 -1
  334. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
  335. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.js.map +1 -1
  336. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
  337. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.js.map +1 -1
  338. package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
  339. package/dist/esm/core/specifications/milestone-specification-context.factory.js.map +1 -1
  340. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
  341. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.js.map +1 -1
  342. package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
  343. package/dist/esm/core/specifications/onboarding-element-rendering.shared.js.map +1 -1
  344. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
  345. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.js.map +1 -1
  346. package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
  347. package/dist/esm/core/specifications/product-specification-context.factory.js.map +1 -1
  348. package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
  349. package/dist/esm/core/specifications/resource-specification-context.factory.js +10 -1
  350. package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
  351. package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
  352. package/dist/esm/core/specifications/role-specification-context.factory.js.map +1 -1
  353. package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
  354. package/dist/esm/core/specifications/specification-context-factory.js.map +1 -1
  355. package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
  356. package/dist/esm/core/specifications/specification-context-factory.models.js.map +1 -1
  357. package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
  358. package/dist/esm/core/specifications/specification-context-factory.shared.js.map +1 -1
  359. package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
  360. package/dist/esm/core/specifications/system-email-template-specification-context.factory.js.map +1 -1
  361. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
  362. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.js.map +1 -1
  363. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
  364. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.js.map +1 -1
  365. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
  366. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.js.map +1 -1
  367. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
  368. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.js.map +1 -1
  369. package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
  370. package/dist/esm/core/specifications/templates/feature/feature-all-information.template.js.map +1 -1
  371. package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
  372. package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.js.map +1 -1
  373. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
  374. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.js.map +1 -1
  375. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
  376. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.js.map +1 -1
  377. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
  378. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.js.map +1 -1
  379. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
  380. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.js.map +1 -1
  381. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
  382. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.js.map +1 -1
  383. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
  384. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.js.map +1 -1
  385. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
  386. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.js.map +1 -1
  387. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
  388. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.js.map +1 -1
  389. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
  390. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.js.map +1 -1
  391. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
  392. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.js.map +1 -1
  393. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
  394. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.js.map +1 -1
  395. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
  396. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.js.map +1 -1
  397. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
  398. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.js.map +1 -1
  399. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
  400. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.js.map +1 -1
  401. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
  402. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.js.map +1 -1
  403. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
  404. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.js.map +1 -1
  405. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
  406. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.js.map +1 -1
  407. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
  408. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.js.map +1 -1
  409. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
  410. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.js.map +1 -1
  411. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
  412. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.js.map +1 -1
  413. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
  414. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.js.map +1 -1
  415. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
  416. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.js.map +1 -1
  417. package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
  418. package/dist/esm/core/specifications/templates/product/product-all-information.template.js.map +1 -1
  419. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
  420. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.js.map +1 -1
  421. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
  422. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.js.map +1 -1
  423. package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
  424. package/dist/esm/core/specifications/templates/product/product-translation-context.template.js.map +1 -1
  425. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
  426. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.js.map +1 -1
  427. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
  428. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.js.map +1 -1
  429. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
  430. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.js.map +1 -1
  431. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
  432. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.js.map +1 -1
  433. package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
  434. package/dist/esm/core/specifications/templates/role/role-all-information.template.js.map +1 -1
  435. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
  436. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.js.map +1 -1
  437. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
  438. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.js.map +1 -1
  439. package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
  440. package/dist/esm/core/specifications/templates/role/role-translation-context.template.js.map +1 -1
  441. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
  442. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.js.map +1 -1
  443. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
  444. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.js.map +1 -1
  445. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
  446. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.js.map +1 -1
  447. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
  448. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.js.map +1 -1
  449. package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
  450. package/dist/esm/core/specifications/validate-resource-field-completeness.js.map +1 -1
  451. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
  452. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
  453. package/dist/esm/core/traceability/companion-traceability.models.d.ts +1 -7
  454. package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
  455. package/dist/esm/core/traceability/companion-traceability.models.js +3 -5
  456. package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
  457. package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
  458. package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
  459. package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
  460. package/dist/esm/core/utils/atomic-write.utils.js.map +1 -1
  461. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -1
  462. package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -1
  463. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
  464. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +15 -14
  465. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
  466. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts +0 -23
  467. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
  468. package/dist/esm/creation-conversation/creation-conversation.function-tools.js +251 -50
  469. package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
  470. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  471. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +0 -2
  472. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  473. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
  474. package/dist/esm/deliberations/services/deliberation.companion.service.js +3 -2
  475. package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
  476. package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
  477. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
  478. package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
  479. package/dist/esm/deliberations/utils/load-committed-expert-agents.js.map +1 -1
  480. package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
  481. package/dist/esm/email/models/email-template.actors-system.definitions.js +0 -1
  482. package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
  483. package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
  484. package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
  485. package/dist/esm/email/services/email-template.companion.service.d.ts +5 -3
  486. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  487. package/dist/esm/email/services/email-template.companion.service.js +53 -255
  488. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  489. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts +12 -0
  490. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
  491. package/dist/esm/email/utils/email-labels-file-source.utils.js +62 -3
  492. package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
  493. package/dist/esm/email/utils/email-labels-tree.utils.d.ts +52 -0
  494. package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -0
  495. package/dist/esm/email/utils/email-labels-tree.utils.js +261 -0
  496. package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -0
  497. package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
  498. package/dist/esm/email/utils/email-template-fs-discovery.utils.js.map +1 -1
  499. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts +2 -0
  500. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -1
  501. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js +21 -1
  502. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -1
  503. package/dist/esm/executions/services/companion-executions.companion.service.d.ts +18 -1
  504. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  505. package/dist/esm/executions/services/companion-executions.companion.service.js +187 -46
  506. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  507. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  508. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +0 -1
  509. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  510. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  511. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +0 -1
  512. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  513. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
  514. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.js.map +1 -1
  515. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  516. package/dist/esm/expert-personas/services/expert-persona.companion.service.js +10 -0
  517. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  518. package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -1
  519. package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -1
  520. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
  521. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js.map +1 -1
  522. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
  523. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js.map +1 -1
  524. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
  525. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js.map +1 -1
  526. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
  527. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.js.map +1 -1
  528. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
  529. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.js.map +1 -1
  530. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts +1 -8
  531. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
  532. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js +2 -9
  533. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
  534. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
  535. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js.map +1 -1
  536. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
  537. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js.map +1 -1
  538. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  539. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js.map +1 -1
  540. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
  541. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js.map +1 -1
  542. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
  543. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.js.map +1 -1
  544. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts +2 -0
  545. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
  546. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js +3 -1
  547. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
  548. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
  549. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
  550. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts +32 -0
  551. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -0
  552. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js +32 -0
  553. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -0
  554. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts +0 -1
  555. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
  556. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js +0 -1
  557. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
  558. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts +0 -7
  559. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
  560. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js +0 -7
  561. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
  562. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts +30 -4
  563. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -1
  564. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js +31 -5
  565. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -1
  566. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -1
  567. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -1
  568. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -1
  569. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -1
  570. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
  571. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js.map +1 -1
  572. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
  573. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js.map +1 -1
  574. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts +0 -2
  575. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
  576. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js +0 -2
  577. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
  578. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts +4 -0
  579. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
  580. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js +5 -1
  581. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
  582. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
  583. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js.map +1 -1
  584. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts +1 -15
  585. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
  586. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js +1 -15
  587. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
  588. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
  589. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js.map +1 -1
  590. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -1
  591. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -1
  592. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
  593. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js.map +1 -1
  594. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
  595. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js.map +1 -1
  596. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
  597. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js.map +1 -1
  598. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
  599. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js.map +1 -1
  600. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
  601. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js.map +1 -1
  602. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
  603. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.js.map +1 -1
  604. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
  605. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js.map +1 -1
  606. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts +0 -3
  607. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
  608. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js +0 -3
  609. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
  610. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts +49 -16
  611. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  612. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js +49 -16
  613. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
  614. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
  615. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js.map +1 -1
  616. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
  617. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js.map +1 -1
  618. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
  619. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.js.map +1 -1
  620. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
  621. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.js.map +1 -1
  622. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
  623. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js.map +1 -1
  624. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
  625. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js.map +1 -1
  626. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
  627. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.js.map +1 -1
  628. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
  629. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js.map +1 -1
  630. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -1
  631. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -1
  632. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
  633. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js.map +1 -1
  634. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
  635. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js.map +1 -1
  636. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
  637. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.js.map +1 -1
  638. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
  639. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.js.map +1 -1
  640. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
  641. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.js.map +1 -1
  642. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
  643. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js.map +1 -1
  644. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
  645. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js.map +1 -1
  646. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
  647. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.js.map +1 -1
  648. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
  649. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.js.map +1 -1
  650. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
  651. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.js.map +1 -1
  652. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts +0 -5
  653. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
  654. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js +0 -5
  655. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
  656. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
  657. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js.map +1 -1
  658. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
  659. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js.map +1 -1
  660. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
  661. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js.map +1 -1
  662. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
  663. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js.map +1 -1
  664. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts +3 -0
  665. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
  666. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +4 -1
  667. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
  668. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
  669. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js.map +1 -1
  670. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts +7 -1
  671. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
  672. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js +8 -2
  673. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
  674. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
  675. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js.map +1 -1
  676. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts +1 -0
  677. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
  678. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js +2 -1
  679. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
  680. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
  681. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.js.map +1 -1
  682. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
  683. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.js.map +1 -1
  684. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
  685. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.js.map +1 -1
  686. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
  687. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.js.map +1 -1
  688. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
  689. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js.map +1 -1
  690. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
  691. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js.map +1 -1
  692. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
  693. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
  694. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -1
  695. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -1
  696. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
  697. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.js.map +1 -1
  698. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -1
  699. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -1
  700. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
  701. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js.map +1 -1
  702. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
  703. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.js.map +1 -1
  704. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
  705. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js.map +1 -1
  706. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
  707. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.js.map +1 -1
  708. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts +1 -0
  709. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
  710. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js +2 -1
  711. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
  712. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
  713. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js.map +1 -1
  714. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
  715. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js.map +1 -1
  716. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
  717. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.js.map +1 -1
  718. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
  719. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js.map +1 -1
  720. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
  721. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.js.map +1 -1
  722. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
  723. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.js.map +1 -1
  724. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts +12 -0
  725. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -0
  726. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js +12 -0
  727. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -0
  728. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
  729. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js.map +1 -1
  730. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
  731. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js.map +1 -1
  732. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
  733. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js.map +1 -1
  734. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
  735. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js.map +1 -1
  736. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
  737. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js.map +1 -1
  738. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -1
  739. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -1
  740. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
  741. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js.map +1 -1
  742. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
  743. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.js.map +1 -1
  744. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
  745. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js.map +1 -1
  746. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
  747. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js.map +1 -1
  748. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts +1 -0
  749. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
  750. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js +2 -1
  751. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
  752. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts +10 -0
  753. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -1
  754. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js +11 -1
  755. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -1
  756. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
  757. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.js.map +1 -1
  758. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
  759. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js.map +1 -1
  760. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts +8 -0
  761. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
  762. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js +9 -1
  763. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
  764. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
  765. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.js.map +1 -1
  766. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts +3 -0
  767. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
  768. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js +4 -1
  769. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
  770. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
  771. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js.map +1 -1
  772. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
  773. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.js.map +1 -1
  774. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
  775. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.js.map +1 -1
  776. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
  777. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.js.map +1 -1
  778. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
  779. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js.map +1 -1
  780. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
  781. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.js.map +1 -1
  782. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
  783. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.js.map +1 -1
  784. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -1
  785. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -1
  786. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -1
  787. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -1
  788. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
  789. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.js.map +1 -1
  790. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
  791. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.js.map +1 -1
  792. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  793. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js.map +1 -1
  794. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -1
  795. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -1
  796. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
  797. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js.map +1 -1
  798. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
  799. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js.map +1 -1
  800. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -1
  801. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -1
  802. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
  803. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js.map +1 -1
  804. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
  805. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
  806. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
  807. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js.map +1 -1
  808. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
  809. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js.map +1 -1
  810. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
  811. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js.map +1 -1
  812. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
  813. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js.map +1 -1
  814. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -1
  815. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -1
  816. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
  817. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
  818. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
  819. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
  820. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
  821. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js.map +1 -1
  822. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
  823. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js.map +1 -1
  824. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
  825. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js.map +1 -1
  826. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
  827. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js.map +1 -1
  828. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
  829. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js.map +1 -1
  830. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
  831. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js.map +1 -1
  832. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
  833. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js.map +1 -1
  834. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
  835. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js.map +1 -1
  836. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
  837. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js.map +1 -1
  838. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
  839. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
  840. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
  841. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
  842. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +2 -1
  843. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
  844. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +3 -2
  845. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
  846. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts +6 -0
  847. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
  848. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js +7 -1
  849. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
  850. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts +1 -0
  851. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
  852. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js +2 -1
  853. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
  854. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
  855. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.js.map +1 -1
  856. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
  857. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
  858. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
  859. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
  860. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
  861. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js.map +1 -1
  862. package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
  863. package/dist/esm/i18n/components/guidance_announcement.en.js.map +1 -1
  864. package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
  865. package/dist/esm/i18n/components/guidance_banner.en.js.map +1 -1
  866. package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
  867. package/dist/esm/i18n/components/guidance_card.en.js.map +1 -1
  868. package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
  869. package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
  870. package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
  871. package/dist/esm/i18n/components/guidance_checklist_item.en.js.map +1 -1
  872. package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
  873. package/dist/esm/i18n/components/guidance_modal.en.js.map +1 -1
  874. package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
  875. package/dist/esm/i18n/components/guidance_onboarding_view.en.js.map +1 -1
  876. package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
  877. package/dist/esm/i18n/components/guidance_survey.en.js.map +1 -1
  878. package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
  879. package/dist/esm/i18n/components/guidance_tooltip.en.js.map +1 -1
  880. package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
  881. package/dist/esm/i18n/components/guidance_tour.en.js.map +1 -1
  882. package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
  883. package/dist/esm/i18n/components/progression_achievement_badge.en.js.map +1 -1
  884. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts +0 -2
  885. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
  886. package/dist/esm/i18n/components/progression_milestone_tracker.en.js +0 -2
  887. package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
  888. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts +1 -0
  889. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
  890. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +123 -19
  891. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
  892. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -1
  893. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js +12 -0
  894. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
  895. package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
  896. package/dist/esm/i18n/composite_views/app.domain-model.en.js.map +1 -1
  897. package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts +25 -0
  898. package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -0
  899. package/dist/esm/i18n/errors_guidance/errors-guidance.en.js +26 -0
  900. package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -0
  901. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts +26 -3
  902. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
  903. package/dist/esm/i18n/errors_messages/errors-messages.en.js +25 -3
  904. package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
  905. package/dist/esm/i18n/index.d.ts +10 -8
  906. package/dist/esm/i18n/index.d.ts.map +1 -1
  907. package/dist/esm/i18n/index.js +10 -8
  908. package/dist/esm/i18n/index.js.map +1 -1
  909. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +10 -0
  910. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
  911. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +2 -0
  912. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
  913. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
  914. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
  915. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
  916. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
  917. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts +97 -0
  918. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -0
  919. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js +60 -0
  920. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -0
  921. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
  922. package/dist/esm/i18n/resources/workbenchAspects.en.js +6 -0
  923. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
  924. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -1
  925. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -1
  926. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts +5 -0
  927. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -1
  928. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js +1 -0
  929. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -1
  930. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
  931. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
  932. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts +24 -0
  933. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -1
  934. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js +8 -0
  935. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -1
  936. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -1
  937. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -1
  938. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -1
  939. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -1
  940. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
  941. package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
  942. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +30 -0
  943. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
  944. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +9 -0
  945. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
  946. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts +17 -4
  947. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
  948. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js +32 -4
  949. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -1
  950. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -1
  951. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -1
  952. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts +8 -2
  953. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
  954. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js +6 -2
  955. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
  956. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts +18 -7
  957. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
  958. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js +17 -7
  959. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
  960. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts +28 -3
  961. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
  962. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js +13 -3
  963. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
  964. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts +3 -2
  965. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
  966. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js +8 -2
  967. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
  968. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +118 -8
  969. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  970. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +42 -16
  971. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  972. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
  973. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
  974. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts +12 -2
  975. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
  976. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js +16 -2
  977. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
  978. package/dist/esm/i18n/system_enums/application-creation.en.d.ts +10 -0
  979. package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
  980. package/dist/esm/i18n/system_enums/application-creation.en.js +11 -0
  981. package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
  982. package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -1
  983. package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -1
  984. package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -1
  985. package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -1
  986. package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
  987. package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
  988. package/dist/esm/i18n/system_enums/processor-register.en.d.ts +6 -0
  989. package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -1
  990. package/dist/esm/i18n/system_enums/processor-register.en.js +6 -0
  991. package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
  992. package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -1
  993. package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -1
  994. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
  995. package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
  996. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
  997. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
  998. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +4 -1
  999. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
  1000. package/dist/esm/i18n/system_enums/workbench-dossier.en.js +5 -1
  1001. package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
  1002. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -1
  1003. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -1
  1004. package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts +46 -0
  1005. package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -0
  1006. package/dist/esm/i18n/system_enums/workbench-secrets.en.js +46 -0
  1007. package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -0
  1008. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts +8 -0
  1009. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -1
  1010. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js +13 -0
  1011. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -1
  1012. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts +61 -0
  1013. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -0
  1014. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js +22 -0
  1015. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -0
  1016. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +105 -24
  1017. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
  1018. package/dist/esm/i18n-labelling/models/labelling-unit.models.js +55 -24
  1019. package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
  1020. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
  1021. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js +0 -2
  1022. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
  1023. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
  1024. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.js.map +1 -1
  1025. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts +48 -0
  1026. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -0
  1027. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js +145 -0
  1028. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -0
  1029. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +70 -18
  1030. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  1031. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +330 -113
  1032. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  1033. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts +45 -0
  1034. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
  1035. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js +208 -6
  1036. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
  1037. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +11 -2
  1038. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  1039. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +101 -18
  1040. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  1041. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts +64 -1
  1042. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  1043. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +393 -70
  1044. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  1045. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -1
  1046. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -1
  1047. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +9 -5
  1048. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
  1049. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
  1050. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts +54 -0
  1051. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -0
  1052. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js +74 -0
  1053. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -0
  1054. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts +3 -3
  1055. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
  1056. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
  1057. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
  1058. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js.map +1 -1
  1059. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts +24 -0
  1060. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -0
  1061. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js +34 -0
  1062. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -0
  1063. package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
  1064. package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
  1065. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -1
  1066. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -1
  1067. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
  1068. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js +5 -1
  1069. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
  1070. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
  1071. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
  1072. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts +76 -0
  1073. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -0
  1074. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js +110 -0
  1075. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -0
  1076. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts +17 -0
  1077. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -0
  1078. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js +23 -0
  1079. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -0
  1080. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
  1081. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.js.map +1 -1
  1082. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +36 -3
  1083. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
  1084. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +77 -5
  1085. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
  1086. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
  1087. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
  1088. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts +38 -0
  1089. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -0
  1090. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js +66 -0
  1091. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -0
  1092. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
  1093. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.js.map +1 -1
  1094. package/dist/esm/index.d.ts.map +1 -1
  1095. package/dist/esm/index.js +9 -3
  1096. package/dist/esm/index.js.map +1 -1
  1097. package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
  1098. package/dist/esm/market/services/market-generation.companion.service.js.map +1 -1
  1099. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -1
  1100. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js +0 -1
  1101. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -1
  1102. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  1103. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +1 -3
  1104. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  1105. package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts +11 -0
  1106. package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -0
  1107. package/dist/esm/meta-workflows/models/application-line-catalog.models.js +17 -0
  1108. package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -0
  1109. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  1110. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js +0 -1
  1111. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  1112. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
  1113. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js +1 -1
  1114. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
  1115. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -1
  1116. package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -1
  1117. package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -1
  1118. package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -1
  1119. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts +14 -0
  1120. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -1
  1121. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js +18 -0
  1122. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
  1123. package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts +14 -0
  1124. package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -0
  1125. package/dist/esm/meta-workflows/models/human-decision-settler.models.js +18 -0
  1126. package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -0
  1127. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +31 -23
  1128. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  1129. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +36 -5
  1130. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
  1131. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
  1132. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js +1 -3
  1133. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
  1134. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +19 -0
  1135. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
  1136. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +38 -6
  1137. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
  1138. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +48 -3
  1139. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
  1140. package/dist/esm/meta-workflows/models/playbook-run-record.models.js +61 -8
  1141. package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
  1142. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -1
  1143. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -1
  1144. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
  1145. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +1 -1
  1146. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +15 -1
  1147. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -1
  1148. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +50 -5
  1149. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -1
  1150. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +52 -9
  1151. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  1152. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +131 -59
  1153. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  1154. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts +19 -0
  1155. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -0
  1156. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js +36 -0
  1157. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -0
  1158. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +9 -0
  1159. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  1160. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +41 -17
  1161. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  1162. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +42 -2
  1163. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  1164. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +121 -4
  1165. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  1166. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts +32 -0
  1167. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -0
  1168. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +161 -0
  1169. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -0
  1170. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -1
  1171. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -1
  1172. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts +2 -0
  1173. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -1
  1174. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js +1 -0
  1175. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
  1176. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts +3 -2
  1177. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
  1178. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +12 -3
  1179. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
  1180. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +74 -1
  1181. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
  1182. package/dist/esm/meta-workflows/services/dossier.companion.service.js +227 -30
  1183. package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
  1184. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts.map +1 -1
  1185. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js.map +1 -1
  1186. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
  1187. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js.map +1 -1
  1188. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map +1 -1
  1189. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map +1 -1
  1190. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +29 -2
  1191. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  1192. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +68 -5
  1193. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  1194. package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts +40 -0
  1195. package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -0
  1196. package/dist/esm/meta-workflows/services/governed-document-texts.companion.js +91 -0
  1197. package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -0
  1198. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts +25 -0
  1199. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -0
  1200. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js +40 -0
  1201. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -0
  1202. package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -1
  1203. package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -1
  1204. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
  1205. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.js.map +1 -1
  1206. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts +90 -0
  1207. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -0
  1208. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +307 -0
  1209. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -0
  1210. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +29 -0
  1211. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  1212. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +44 -4
  1213. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  1214. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +360 -47
  1215. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  1216. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +1424 -246
  1217. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  1218. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -1
  1219. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -1
  1220. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -1
  1221. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -1
  1222. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -1
  1223. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -1
  1224. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
  1225. package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
  1226. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
  1227. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
  1228. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
  1229. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.js.map +1 -1
  1230. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
  1231. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.js.map +1 -1
  1232. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
  1233. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
  1234. package/package.json +17 -17
  1235. package/dist/esm/__time-gov.probe.d.mts +0 -0
  1236. package/dist/esm/__time-gov.probe.d.mts.map +0 -0
  1237. package/dist/esm/__time-gov.probe.mjs.map +0 -0
  1238. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts +0 -0
  1239. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts.map +0 -0
  1240. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.js.map +0 -0
  1241. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts +0 -0
  1242. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +0 -0
  1243. package/dist/esm/i18n/composite_views/app.creation-board.en.js.map +0 -0
  1244. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts +0 -0
  1245. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts.map +0 -0
  1246. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.js.map +0 -0
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Every placeholder OCCURRENCE in `value`, as its exact source text (`{appName}`), sorted.
3
+ *
4
+ * Deliberately stricter than `extractLabelPlaceholderTokens` (same `{name}` grammar as the runtime's `interpolateLabelParams`), which answers the DISTINCT names: a source
5
+ * that says `{appName}` twice and a translation that says it once agree there, yet the recipient loses
6
+ * a value. An email's placeholders must survive byte for byte and count for count.
7
+ */
8
+ export function listPlaceholderOccurrences(value) {
9
+ const occurrences = [];
10
+ const regex = /\{(\w+)\}/g;
11
+ let match;
12
+ while ((match = regex.exec(value)) !== null)
13
+ occurrences.push(match[0]);
14
+ return occurrences.sort();
15
+ }
16
+ /**
17
+ * Restore the source's leading and trailing whitespace on a translated value.
18
+ *
19
+ * Email templates join fragments with live values — `' suspended a member'`, `' in '` — so the edge
20
+ * spaces are STRUCTURE, not words: a model that trims `' in '` to `'dans'` produces "Alicedansl'équipe".
21
+ * Normalising deterministically is safer than refusing (a model trims edges constantly and the fix is
22
+ * never in doubt). A source that is ONLY whitespace is returned as-is.
23
+ */
24
+ export function restoreSourceEdgeWhitespace(source, translated) {
25
+ if (source.trim().length === 0)
26
+ return source;
27
+ const leading = /^\s*/.exec(source)?.[0] ?? '';
28
+ const trailing = /\s*$/.exec(source)?.[0] ?? '';
29
+ return `${leading}${translated.trim()}${trailing}`;
30
+ }
31
+ /**
32
+ * Accept or refuse one email unit×locale's assembled translation.
33
+ *
34
+ * @param keys - every key of the email, in source order.
35
+ * @param sourceWords - the primary-locale words, keyed like `keys`.
36
+ * @param assemblies - what the translation chunks produced (each already repaired once for drift).
37
+ */
38
+ export function judgeEmailTranslation(args) {
39
+ const { keys, sourceWords, assemblies } = args;
40
+ const missing = assemblies.flatMap((assembly) => assembly.missingKeys);
41
+ if (missing.length > 0) {
42
+ return { accepted: false, reason: `the translation left ${missing.length} label(s) unanswered: ${missing.join(', ')}` };
43
+ }
44
+ const drifted = assemblies.flatMap((assembly) => assembly.rejectedDrifts.map((drift) => drift.key));
45
+ if (drifted.length > 0) {
46
+ return { accepted: false, reason: `the translation changed the placeholders of ${drifted.length} label(s): ${drifted.join(', ')}` };
47
+ }
48
+ const translated = Object.assign({}, ...assemblies.map((assembly) => assembly.values));
49
+ const words = {};
50
+ const occurrenceMismatches = [];
51
+ for (const key of keys) {
52
+ const source = sourceWords[key];
53
+ const value = translated[key];
54
+ if (typeof source !== 'string' || typeof value !== 'string') {
55
+ return { accepted: false, reason: `no translated words for label ${key}` };
56
+ }
57
+ const restored = restoreSourceEdgeWhitespace(source, value);
58
+ const expected = listPlaceholderOccurrences(source);
59
+ const emitted = listPlaceholderOccurrences(restored);
60
+ if (expected.length !== emitted.length || expected.some((token, index) => token !== emitted[index])) {
61
+ occurrenceMismatches.push(`${key} (source ${expected.join(' ') || 'none'}, translation ${emitted.join(' ') || 'none'})`);
62
+ continue;
63
+ }
64
+ words[key] = restored;
65
+ }
66
+ if (occurrenceMismatches.length > 0) {
67
+ return {
68
+ accepted: false,
69
+ reason: `the translation does not carry every placeholder occurrence of its source: ${occurrenceMismatches.join('; ')}`,
70
+ };
71
+ }
72
+ return { accepted: true, words };
73
+ }
74
+ //# sourceMappingURL=email-template-translation.utils.js.map
@@ -0,0 +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,CAA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\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"]}
@@ -67,9 +67,9 @@ export interface FrontendDerivedLabelKeys {
67
67
  * fallback in `ResourceEmptyState` — it renders ONLY when `frontendConfiguration.emptyState
68
68
  * .secondaryAction` is set (a frontend-only fact). So generating it for every resource is
69
69
  * pure waste. The planner emits `resources.{type}.emptyState.secondaryActionLabel` only for
70
- * the resource types in this list. (Empty-state *presence* and `primaryActionLabel` are
71
- * gated by the planner directly off backend collection/CREATE operations — title and
72
- * primaryActionLabel DO have generic fallbacks, so they need no bridge.) Tolerant `string[]`:
70
+ * the resource types in this list. (Empty-state *presence* is gated by the planner directly
71
+ * off backend collection operations — the title DOES have a generic fallback, so it needs no
72
+ * bridge, and the primary action is the CREATE operation named by its title.) Tolerant `string[]`:
73
73
  * defaults to `[]` for a stale subprocess (a configured secondary label simply renders empty
74
74
  * until the dist catches up — same best-effort contract as the guidance/onboarding fields).
75
75
  */
@@ -1 +1 @@
1
- {"version":3,"file":"frontend-derived-label-keys.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/frontend-derived-label-keys.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,wBAAwB;IACvC,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,6BAA6B,EAAE,MAAM,EAAE,CAAC;IACxC,uBAAuB,EAAE,MAAM,EAAE,CAAC;IAClC;;;;;OAKG;IACH,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC1C;;;;;;;;;;;;OAYG;IACH,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C;;;;;;;;;;;;;;;;;OAiBG;IACH,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACrD;;;;;;;;;;;;OAYG;IACH,6BAA6B,EAAE,MAAM,EAAE,CAAC;IACxC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;QAAC,WAAW,EAAE,MAAM,EAAE,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAC;QAAC,aAAa,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;CAC9H;AAED;;;;;GAKG;AACH,eAAO,MAAM,iCAAiC,EAAE,wBAS/C,CAAC;AAwDF;;;;;;;;;;;;GAYG;AACH,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,OAAO,GAAG,wBAAwB,GAAG,IAAI,CA4BhG"}
1
+ {"version":3,"file":"frontend-derived-label-keys.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/frontend-derived-label-keys.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,wBAAwB;IACvC,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,6BAA6B,EAAE,MAAM,EAAE,CAAC;IACxC,uBAAuB,EAAE,MAAM,EAAE,CAAC;IAClC;;;;;OAKG;IACH,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC1C;;;;;;;;;;;;OAYG;IACH,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C;;;;;;;;;;;;;;;;;OAiBG;IACH,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACrD;;;;;;;;;;;;OAYG;IACH,6BAA6B,EAAE,MAAM,EAAE,CAAC;IACxC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;QAAC,WAAW,EAAE,MAAM,EAAE,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAC;QAAC,aAAa,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;CAC9H;AAED;;;;;GAKG;AACH,eAAO,MAAM,iCAAiC,EAAE,wBAS/C,CAAC;AAwDF;;;;;;;;;;;;GAYG;AACH,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,OAAO,GAAG,wBAAwB,GAAG,IAAI,CA4BhG"}
@@ -1 +1 @@
1
- {"version":3,"file":"frontend-derived-label-keys.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/frontend-derived-label-keys.utils.ts"],"names":[],"mappings":"AAoGA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAA6B;IACzE,oBAAoB,EAAE,EAAE;IACxB,6BAA6B,EAAE,EAAE;IACjC,uBAAuB,EAAE,EAAE;IAC3B,eAAe,EAAE,EAAE;IACnB,kBAAkB,EAAE,EAAE;IACtB,0BAA0B,EAAE,EAAE;IAC9B,6BAA6B,EAAE,EAAE;IACjC,kBAAkB,EAAE,EAAE;CACvB,CAAC;AAEF,SAAS,gBAAgB,CAAC,KAAc;IACtC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACnF,MAAM,MAAM,GAA2B,EAAE,CAAC;IAC1C,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAgC,CAAC,EAAE,CAAC;QAC5E,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;YAAE,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACzE,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,WAAW,CAAC,KAAc;IACjC,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QACzB,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAiB,EAAE,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC;QAC/D,CAAC,CAAC,EAAE,CAAC;AACT,CAAC;AAED;;;;GAIG;AACH,SAAS,qBAAqB,CAAC,KAAc;IAC3C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,K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MAAM,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;QAC9B,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,iCAAiC,CAAC,IAAa;IAC7D,MAAM,OAAO,GAAG,IASH,CAAC;IAEd,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,oBAAoB,CAAC,EAAE,CAAC;QAClD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO;QACL,oBAAoB,EAAE,WAAW,CAAC,OAAO,CAAC,oBAAoB,CAAC;QAC/D,6BAA6B,EAAE,WAAW,CAAC,OAAO,EAAE,6BAA6B,CAAC;QAClF,uBAAuB,EAAE,WAAW,CAAC,OAAO,EAAE,uBAAuB,CAAC;QACtE,eAAe,EAAE,qBAAqB,CAAC,OAAO,EAAE,eAAe,CAAC;QAChE,wEAAwE;QACxE,qEAAqE;QACrE,kBAAkB,EAAE,gBAAgB,CAAC,OAAO,EAAE,kBAAkB,CAAC;QACjE,0BAA0B,EAAE,qBAAqB,CAAC,OAAO,EAAE,0BAA0B,CAAC;QACtF,6BAA6B,EAAE,WAAW,CAAC,OAAO,EAAE,6BAA6B,CAAC;QAClF,kBAAkB,EAAE,oBAAoB,CAAC,OAAO,EAAE,kBAAkB,CAAC;KACtE,CAAC;AACJ,CAAC","sourcesContent":["/**\n * The frontend-derived label-key snapshot returned by the\n * `frontend-labels-needed-info` introspection behavior. It runs once per plan in\n * the companion SUBPROCESS — the only process that can import the frontend module\n * graph — and is split by ownership so the planner can route each part:\n * - `appSpecificLabelKeys`: consumed SELECTIVELY by `planFrontendDerivedUnits`\n * (composite_views / views / sidebar_sections kept; resources + resource-scoped\n * guidance dropped — those are owned by `planResourceUnits`).\n * - `appLevelGuidanceFlowLabelKeys`: app-level `module.guidanceFlows`, used by\n * `planAppGuidanceUnit` as the fallback when no `setGuidanceFlowProvider`\n * override is registered.\n * - `onboardingViewLabelKeys`: `module.onboardingViews`, always owned by\n * `planAppGuidanceUnit` (onboarding views have no provider contract).\n *\n * Lives in a light util (no frontend-lib / saas-specifications imports) so the\n * parsing contract is unit-testable without loading the heavy planner module\n * graph.\n */\nexport interface FrontendDerivedLabelKeys {\n appSpecificLabelKeys: string[];\n appLevelGuidanceFlowLabelKeys: string[];\n onboardingViewLabelKeys: string[];\n /**\n * Per-key interpolation params (full `views.*` key → param names) for CUSTOM\n * execution-view labels. Consumed by `planFrontendDerivedUnits` to thread the\n * placeholder contract into the `views:root` unit's chunks (mirrors the\n * components bucket). Defaults to `{}` for stale subprocesses / no param'd labels.\n */\n viewLabelParams: Record<string, string[]>;\n /**\n * Per-key AUTHORED wording for settings-hub labels (full `settings_hub.*` key\n * → the label the application/engine already wrote).\n *\n * Threaded into the `settings-hub:root` unit as `purpose`, because without it\n * the labellize prompt sees only the REF and invents from it. Measured on\n * Wonder CRM 2026-08-30: `scim` became \"SCIM\" where the rail said \"User\n * provisioning\", and `siem` became \"SIEM\" where it said \"Audit streaming\" —\n * and since a generated key WINS over the authored fallback\n * (`tSettingsHubSection`), that is a live wording regression, not a cosmetic\n * one. The authored string is the intent; generation should translate it, not\n * replace it.\n */\n settingsHubKeyMeta: Record<string, string>;\n /**\n * Per-operation description OPT-IN, keyed `resourceType → operationIdentifier[]`.\n *\n * Authored ENTIRELY in the frontend ui-behavior (`operationFrontendConfig.hasDescription`),\n * so it is a frontend-only fact that ONLY the subprocess can read — the planner\n * main process sees the backend registry + policy, never `operationFrontendConfig`\n * (it carries React components: `iconOverride`, `customView`). This is the\n * dedicated bridge field that routes that fact to `planResourceUnits`, which emits\n * the `resources.{type}.operations.{op}.description` key for each flagged op so it\n * flows through `projectResourceKeyMeta` (spec-driven copy quality) like every other\n * resource key. Covers EVERY resource in the merged ui-behavior — including engine\n * resources (e.g. `organizations`) that are NOT materialized in the subprocess's\n * shared base but ARE present in the `RESOURCES_FRONTEND_MAIN_APP` overlay.\n *\n * Mirrors `viewLabelParams`' tolerant `Record<string, string[]>` shape: defaults to\n * `{}` for stale subprocesses (operation descriptions silently no-op until the\n * subprocess dist catches up — titles still generate off the policy).\n */\n operationDescriptionOptIns: Record<string, string[]>;\n /**\n * Resource types whose frontend empty-state config declares a `secondaryAction`.\n *\n * The empty-state `secondaryActionLabel` is the one empty-state label with NO generic\n * fallback in `ResourceEmptyState` — it renders ONLY when `frontendConfiguration.emptyState\n * .secondaryAction` is set (a frontend-only fact). So generating it for every resource is\n * pure waste. The planner emits `resources.{type}.emptyState.secondaryActionLabel` only for\n * the resource types in this list. (Empty-state *presence* and `primaryActionLabel` are\n * gated by the planner directly off backend collection/CREATE operations — title and\n * primaryActionLabel DO have generic fallbacks, so they need no bridge.) Tolerant `string[]`:\n * defaults to `[]` for a stale subprocess (a configured secondary label simply renders empty\n * until the dist catches up — same best-effort contract as the guidance/onboarding fields).\n */\n emptyStateSecondaryActionRefs: string[];\n /**\n * Structural layout refs per resource — `resourceType → { sections, wizardSteps, groups,\n * filterPresets }`.\n *\n * The same frontend-only-fact problem as `operationDescriptionOptIns`, and it had no bridge, so\n * NO SECTION IN ANY APPLICATION HAS EVER BEEN LABELLED. Measured 2026-09-18 across both dogfood\n * applications: 0 of 315 resource label units carry a `sections` block, while the section policy\n * (`RESOURCES_SECTIONS`) is populated and `<Section>` resolves\n * `resources.{type}.sections.{ref}.title` — so every sectioned form rendered its own raw ref as a\n * heading (`who`, `reach`, `occurrence`).\n *\n * The refs are authored in the ui-behavior (`layout.refs`), which only the SUBPROCESS can import.\n * `planResourceUnits` read them from `resourceConfig.frontendConfiguration.layout.refs` on the\n * backend registry, where they are always absent, and the subprocess — which computes the very\n * same keys correctly — has its `resources.*` keys DROPPED as \"owned by planResourceUnits\". So the\n * party that could see them was ignored, and the party that emitted them was blind: the keys fell\n * through the gap between the two rather than being forgotten by either.\n *\n * Tolerant `Record<string, string[]>` per axis, like every sibling: a stale subprocess degrades to\n * no section labels (today's behaviour) instead of crashing the plan.\n */\n resourceLayoutRefs: Record<string, { sections: string[]; wizardSteps: string[]; groups: string[]; filterPresets: string[] }>;\n}\n\n/**\n * Shared empty snapshot returned when discovery is skipped (no SAAS_APP frontend\n * service, subprocess failure, or malformed payload). Read-only by every consumer\n * (`planFrontendDerivedUnits` filters into new arrays; `planAppGuidanceUnit`\n * spreads into a new Set), so the singleton reference is safe to share.\n */\nexport const EMPTY_FRONTEND_DERIVED_LABEL_KEYS: FrontendDerivedLabelKeys = {\n appSpecificLabelKeys: [],\n appLevelGuidanceFlowLabelKeys: [],\n onboardingViewLabelKeys: [],\n viewLabelParams: {},\n settingsHubKeyMeta: {},\n operationDescriptionOptIns: {},\n emptyStateSecondaryActionRefs: [],\n resourceLayoutRefs: {},\n};\n\nfunction onlyStringRecord(value: unknown): Record<string, string> {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) return {};\n const result: Record<string, string> = {};\n for (const [key, entry] of Object.entries(value as Record<string, unknown>)) {\n if (typeof entry === 'string' && entry.length > 0) result[key] = entry;\n }\n return result;\n}\n\nfunction onlyStrings(value: unknown): string[] {\n return Array.isArray(value)\n ? value.filter((key): key is string => typeof key === 'string')\n : [];\n}\n\n/**\n * Coerce an unknown into `Record<string, string[]>`, dropping non-string entries\n * and empty arrays. Used for the `viewLabelParams` map (tolerant of absence or a\n * malformed shape from a stale subprocess).\n */\nfunction onlyStringArrayRecord(value: unknown): Record<string, string[]> {\n if (typeof value !== 'object' || value === null) return {};\n const result: Record<string, string[]> = {};\n for (const [key, entry] of Object.entries(value as Record<string, unknown>)) {\n const params = onlyStrings(entry);\n if (params.length > 0) result[key] = params;\n }\n return result;\n}\n\n/**\n * Coerce an unknown into the per-resource structural-ref map, dropping malformed entries and\n * resources that declare no ref on any axis. Same tolerance contract as `onlyStringArrayRecord`:\n * a stale subprocess simply contributes nothing rather than failing the plan.\n */\nfunction onlyLayoutRefsRecord(value: unknown): Record<string, { sections: string[]; wizardSteps: string[]; groups: string[]; filterPresets: string[] }> {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) return {};\n const result: Record<string, { sections: string[]; wizardSteps: string[]; groups: string[]; filterPresets: string[] }> = {};\n for (const [resourceType, entry] of Object.entries(value as Record<string, unknown>)) {\n if (typeof entry !== 'object' || entry === null) continue;\n const axes = entry as { sections?: unknown; wizardSteps?: unknown; groups?: unknown; filterPresets?: unknown };\n const refs = {\n sections: onlyStrings(axes.sections),\n wizardSteps: onlyStrings(axes.wizardSteps),\n groups: onlyStrings(axes.groups),\n filterPresets: onlyStrings(axes.filterPresets),\n };\n if (refs.sections.length || refs.wizardSteps.length || refs.groups.length || refs.filterPresets.length) {\n result[resourceType] = refs;\n }\n }\n return result;\n}\n\n/**\n * Parse the raw `frontend-labels-needed-info` IPC payload into a typed snapshot.\n *\n * Returns `null` when the payload is missing the required `appSpecificLabelKeys`\n * array (malformed / non-success subprocess), so the caller can log + fall back\n * to {@link EMPTY_FRONTEND_DERIVED_LABEL_KEYS}.\n *\n * The two app-level guidance fields are TOLERANT of absence (default `[]`): a\n * stale subprocess emitting only the original single-field shape degrades\n * gracefully instead of throwing — composite/view/sidebar labels still generate;\n * only app-level guidance flows + onboarding views silently no-op until the\n * subprocess dist catches up. Non-string array entries are filtered out.\n */\nexport function parseFrontendDerivedLabelSnapshot(data: unknown): FrontendDerivedLabelKeys | null {\n const payload = data as {\n appSpecificLabelKeys?: unknown;\n appLevelGuidanceFlowLabelKeys?: unknown;\n onboardingViewLabelKeys?: unknown;\n viewLabelParams?: unknown;\n settingsHubKeyMeta?: unknown;\n operationDescriptionOptIns?: unknown;\n emptyStateSecondaryActionRefs?: unknown;\n resourceLayoutRefs?: unknown;\n } | undefined;\n\n if (!Array.isArray(payload?.appSpecificLabelKeys)) {\n return null;\n }\n\n return {\n appSpecificLabelKeys: onlyStrings(payload.appSpecificLabelKeys),\n appLevelGuidanceFlowLabelKeys: onlyStrings(payload?.appLevelGuidanceFlowLabelKeys),\n onboardingViewLabelKeys: onlyStrings(payload?.onboardingViewLabelKeys),\n viewLabelParams: onlyStringArrayRecord(payload?.viewLabelParams),\n // Tolerant of absence, like every sibling: a STALE subprocess predating\n // this field must degrade to no keyMeta, never crash the whole plan.\n settingsHubKeyMeta: onlyStringRecord(payload?.settingsHubKeyMeta),\n operationDescriptionOptIns: onlyStringArrayRecord(payload?.operationDescriptionOptIns),\n emptyStateSecondaryActionRefs: onlyStrings(payload?.emptyStateSecondaryActionRefs),\n resourceLayoutRefs: onlyLayoutRefsRecord(payload?.resourceLayoutRefs),\n };\n}\n"]}
1
+ {"version":3,"file":"frontend-derived-label-keys.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/frontend-derived-label-keys.utils.ts"],"names":[],"mappings":"AAoGA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAA6B;IACzE,oBAAoB,EAAE,EAAE;IACxB,6BAA6B,EAAE,EAAE;IACjC,uBAAuB,EAAE,EAAE;IAC3B,eAAe,EAAE,EAAE;IACnB,kBAAkB,EAAE,EAAE;IACtB,0BAA0B,EAAE,EAAE;IAC9B,6BAA6B,EAAE,EAAE;IACjC,kBAAkB,EAAE,EAAE;CACvB,CAAC;AAEF,SAAS,gBAAgB,CAAC,KAAc;IACtC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACnF,MAAM,MAAM,GAA2B,EAAE,CAAC;IAC1C,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAgC,CAAC,EAAE,CAAC;QAC5E,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;YAAE,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACzE,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,WAAW,CAAC,KAAc;IACjC,OAAO,KAAK,CAAC,OAAO,C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,CAAC,MAAM,CAAC;YAChC,aAAa,EAAE,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC;SAC/C,CAAC;QACF,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,IAAI,IAAI,CAAC,WAAW,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC;YACvG,MAAM,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;QAC9B,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,iCAAiC,CAAC,IAAa;IAC7D,MAAM,OAAO,GAAG,IASH,CAAC;IAEd,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,oBAAoB,CAAC,EAAE,CAAC;QAClD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO;QACL,oBAAoB,EAAE,WAAW,CAAC,OAAO,CAAC,oBAAoB,CAAC;QAC/D,6BAA6B,EAAE,WAAW,CAAC,OAAO,EAAE,6BAA6B,CAAC;QAClF,uBAAuB,EAAE,WAAW,CAAC,OAAO,EAAE,uBAAuB,CAAC;QACtE,eAAe,EAAE,qBAAqB,CAAC,OAAO,EAAE,eAAe,CAAC;QAChE,wEAAwE;QACxE,qEAAqE;QACrE,kBAAkB,EAAE,gBAAgB,CAAC,OAAO,EAAE,kBAAkB,CAAC;QACjE,0BAA0B,EAAE,qBAAqB,CAAC,OAAO,EAAE,0BAA0B,CAAC;QACtF,6BAA6B,EAAE,WAAW,CAAC,OAAO,EAAE,6BAA6B,CAAC;QAClF,kBAAkB,EAAE,oBAAoB,CAAC,OAAO,EAAE,kBAAkB,CAAC;KACtE,CAAC;AACJ,CAAC","sourcesContent":["/**\n * The frontend-derived label-key snapshot returned by the\n * `frontend-labels-needed-info` introspection behavior. It runs once per plan in\n * the companion SUBPROCESS — the only process that can import the frontend module\n * graph — and is split by ownership so the planner can route each part:\n * - `appSpecificLabelKeys`: consumed SELECTIVELY by `planFrontendDerivedUnits`\n * (composite_views / views / sidebar_sections kept; resources + resource-scoped\n * guidance dropped — those are owned by `planResourceUnits`).\n * - `appLevelGuidanceFlowLabelKeys`: app-level `module.guidanceFlows`, used by\n * `planAppGuidanceUnit` as the fallback when no `setGuidanceFlowProvider`\n * override is registered.\n * - `onboardingViewLabelKeys`: `module.onboardingViews`, always owned by\n * `planAppGuidanceUnit` (onboarding views have no provider contract).\n *\n * Lives in a light util (no frontend-lib / saas-specifications imports) so the\n * parsing contract is unit-testable without loading the heavy planner module\n * graph.\n */\nexport interface FrontendDerivedLabelKeys {\n appSpecificLabelKeys: string[];\n appLevelGuidanceFlowLabelKeys: string[];\n onboardingViewLabelKeys: string[];\n /**\n * Per-key interpolation params (full `views.*` key → param names) for CUSTOM\n * execution-view labels. Consumed by `planFrontendDerivedUnits` to thread the\n * placeholder contract into the `views:root` unit's chunks (mirrors the\n * components bucket). Defaults to `{}` for stale subprocesses / no param'd labels.\n */\n viewLabelParams: Record<string, string[]>;\n /**\n * Per-key AUTHORED wording for settings-hub labels (full `settings_hub.*` key\n * → the label the application/engine already wrote).\n *\n * Threaded into the `settings-hub:root` unit as `purpose`, because without it\n * the labellize prompt sees only the REF and invents from it. Measured on\n * Wonder CRM 2026-08-30: `scim` became \"SCIM\" where the rail said \"User\n * provisioning\", and `siem` became \"SIEM\" where it said \"Audit streaming\" —\n * and since a generated key WINS over the authored fallback\n * (`tSettingsHubSection`), that is a live wording regression, not a cosmetic\n * one. The authored string is the intent; generation should translate it, not\n * replace it.\n */\n settingsHubKeyMeta: Record<string, string>;\n /**\n * Per-operation description OPT-IN, keyed `resourceType → operationIdentifier[]`.\n *\n * Authored ENTIRELY in the frontend ui-behavior (`operationFrontendConfig.hasDescription`),\n * so it is a frontend-only fact that ONLY the subprocess can read — the planner\n * main process sees the backend registry + policy, never `operationFrontendConfig`\n * (it carries React components: `iconOverride`, `customView`). This is the\n * dedicated bridge field that routes that fact to `planResourceUnits`, which emits\n * the `resources.{type}.operations.{op}.description` key for each flagged op so it\n * flows through `projectResourceKeyMeta` (spec-driven copy quality) like every other\n * resource key. Covers EVERY resource in the merged ui-behavior — including engine\n * resources (e.g. `organizations`) that are NOT materialized in the subprocess's\n * shared base but ARE present in the `RESOURCES_FRONTEND_MAIN_APP` overlay.\n *\n * Mirrors `viewLabelParams`' tolerant `Record<string, string[]>` shape: defaults to\n * `{}` for stale subprocesses (operation descriptions silently no-op until the\n * subprocess dist catches up — titles still generate off the policy).\n */\n operationDescriptionOptIns: Record<string, string[]>;\n /**\n * Resource types whose frontend empty-state config declares a `secondaryAction`.\n *\n * The empty-state `secondaryActionLabel` is the one empty-state label with NO generic\n * fallback in `ResourceEmptyState` — it renders ONLY when `frontendConfiguration.emptyState\n * .secondaryAction` is set (a frontend-only fact). So generating it for every resource is\n * pure waste. The planner emits `resources.{type}.emptyState.secondaryActionLabel` only for\n * the resource types in this list. (Empty-state *presence* is gated by the planner directly\n * off backend collection operations — the title DOES have a generic fallback, so it needs no\n * bridge, and the primary action is the CREATE operation named by its title.) Tolerant `string[]`:\n * defaults to `[]` for a stale subprocess (a configured secondary label simply renders empty\n * until the dist catches up — same best-effort contract as the guidance/onboarding fields).\n */\n emptyStateSecondaryActionRefs: string[];\n /**\n * Structural layout refs per resource — `resourceType → { sections, wizardSteps, groups,\n * filterPresets }`.\n *\n * The same frontend-only-fact problem as `operationDescriptionOptIns`, and it had no bridge, so\n * NO SECTION IN ANY APPLICATION HAS EVER BEEN LABELLED. Measured 2026-09-18 across both dogfood\n * applications: 0 of 315 resource label units carry a `sections` block, while the section policy\n * (`RESOURCES_SECTIONS`) is populated and `<Section>` resolves\n * `resources.{type}.sections.{ref}.title` — so every sectioned form rendered its own raw ref as a\n * heading (`who`, `reach`, `occurrence`).\n *\n * The refs are authored in the ui-behavior (`layout.refs`), which only the SUBPROCESS can import.\n * `planResourceUnits` read them from `resourceConfig.frontendConfiguration.layout.refs` on the\n * backend registry, where they are always absent, and the subprocess — which computes the very\n * same keys correctly — has its `resources.*` keys DROPPED as \"owned by planResourceUnits\". So the\n * party that could see them was ignored, and the party that emitted them was blind: the keys fell\n * through the gap between the two rather than being forgotten by either.\n *\n * Tolerant `Record<string, string[]>` per axis, like every sibling: a stale subprocess degrades to\n * no section labels (today's behaviour) instead of crashing the plan.\n */\n resourceLayoutRefs: Record<string, { sections: string[]; wizardSteps: string[]; groups: string[]; filterPresets: string[] }>;\n}\n\n/**\n * Shared empty snapshot returned when discovery is skipped (no SAAS_APP frontend\n * service, subprocess failure, or malformed payload). Read-only by every consumer\n * (`planFrontendDerivedUnits` filters into new arrays; `planAppGuidanceUnit`\n * spreads into a new Set), so the singleton reference is safe to share.\n */\nexport const EMPTY_FRONTEND_DERIVED_LABEL_KEYS: FrontendDerivedLabelKeys = {\n appSpecificLabelKeys: [],\n appLevelGuidanceFlowLabelKeys: [],\n onboardingViewLabelKeys: [],\n viewLabelParams: {},\n settingsHubKeyMeta: {},\n operationDescriptionOptIns: {},\n emptyStateSecondaryActionRefs: [],\n resourceLayoutRefs: {},\n};\n\nfunction onlyStringRecord(value: unknown): Record<string, string> {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) return {};\n const result: Record<string, string> = {};\n for (const [key, entry] of Object.entries(value as Record<string, unknown>)) {\n if (typeof entry === 'string' && entry.length > 0) result[key] = entry;\n }\n return result;\n}\n\nfunction onlyStrings(value: unknown): string[] {\n return Array.isArray(value)\n ? value.filter((key): key is string => typeof key === 'string')\n : [];\n}\n\n/**\n * Coerce an unknown into `Record<string, string[]>`, dropping non-string entries\n * and empty arrays. Used for the `viewLabelParams` map (tolerant of absence or a\n * malformed shape from a stale subprocess).\n */\nfunction onlyStringArrayRecord(value: unknown): Record<string, string[]> {\n if (typeof value !== 'object' || value === null) return {};\n const result: Record<string, string[]> = {};\n for (const [key, entry] of Object.entries(value as Record<string, unknown>)) {\n const params = onlyStrings(entry);\n if (params.length > 0) result[key] = params;\n }\n return result;\n}\n\n/**\n * Coerce an unknown into the per-resource structural-ref map, dropping malformed entries and\n * resources that declare no ref on any axis. Same tolerance contract as `onlyStringArrayRecord`:\n * a stale subprocess simply contributes nothing rather than failing the plan.\n */\nfunction onlyLayoutRefsRecord(value: unknown): Record<string, { sections: string[]; wizardSteps: string[]; groups: string[]; filterPresets: string[] }> {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) return {};\n const result: Record<string, { sections: string[]; wizardSteps: string[]; groups: string[]; filterPresets: string[] }> = {};\n for (const [resourceType, entry] of Object.entries(value as Record<string, unknown>)) {\n if (typeof entry !== 'object' || entry === null) continue;\n const axes = entry as { sections?: unknown; wizardSteps?: unknown; groups?: unknown; filterPresets?: unknown };\n const refs = {\n sections: onlyStrings(axes.sections),\n wizardSteps: onlyStrings(axes.wizardSteps),\n groups: onlyStrings(axes.groups),\n filterPresets: onlyStrings(axes.filterPresets),\n };\n if (refs.sections.length || refs.wizardSteps.length || refs.groups.length || refs.filterPresets.length) {\n result[resourceType] = refs;\n }\n }\n return result;\n}\n\n/**\n * Parse the raw `frontend-labels-needed-info` IPC payload into a typed snapshot.\n *\n * Returns `null` when the payload is missing the required `appSpecificLabelKeys`\n * array (malformed / non-success subprocess), so the caller can log + fall back\n * to {@link EMPTY_FRONTEND_DERIVED_LABEL_KEYS}.\n *\n * The two app-level guidance fields are TOLERANT of absence (default `[]`): a\n * stale subprocess emitting only the original single-field shape degrades\n * gracefully instead of throwing — composite/view/sidebar labels still generate;\n * only app-level guidance flows + onboarding views silently no-op until the\n * subprocess dist catches up. Non-string array entries are filtered out.\n */\nexport function parseFrontendDerivedLabelSnapshot(data: unknown): FrontendDerivedLabelKeys | null {\n const payload = data as {\n appSpecificLabelKeys?: unknown;\n appLevelGuidanceFlowLabelKeys?: unknown;\n onboardingViewLabelKeys?: unknown;\n viewLabelParams?: unknown;\n settingsHubKeyMeta?: unknown;\n operationDescriptionOptIns?: unknown;\n emptyStateSecondaryActionRefs?: unknown;\n resourceLayoutRefs?: unknown;\n } | undefined;\n\n if (!Array.isArray(payload?.appSpecificLabelKeys)) {\n return null;\n }\n\n return {\n appSpecificLabelKeys: onlyStrings(payload.appSpecificLabelKeys),\n appLevelGuidanceFlowLabelKeys: onlyStrings(payload?.appLevelGuidanceFlowLabelKeys),\n onboardingViewLabelKeys: onlyStrings(payload?.onboardingViewLabelKeys),\n viewLabelParams: onlyStringArrayRecord(payload?.viewLabelParams),\n // Tolerant of absence, like every sibling: a STALE subprocess predating\n // this field must degrade to no keyMeta, never crash the whole plan.\n settingsHubKeyMeta: onlyStringRecord(payload?.settingsHubKeyMeta),\n operationDescriptionOptIns: onlyStringArrayRecord(payload?.operationDescriptionOptIns),\n emptyStateSecondaryActionRefs: onlyStrings(payload?.emptyStateSecondaryActionRefs),\n resourceLayoutRefs: onlyLayoutRefsRecord(payload?.resourceLayoutRefs),\n };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"guidance-keys.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/guidance-keys.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC5B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,+BAA+B,EAAE,iCAAiC,EAAE,MAAM,+BAA+B,CAAC;AAExH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE;IAC1C,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;CAClC,GAAG,MAAM,EAAE,CAmDX;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,aAAa,CAAC,sBAAsB,CAAC,GAAG,MAAM,EAAE,CAU7F;AAED,wBAAgB,2BAA2B,CACzC,YAAY,EAAE,MAAM,EACpB,cAAc,EAAE,wBAAwB,GACvC,M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CAAC,SAAS,CAAC,OAAO;YAChD,CAAC,CAAC,KAAK,KAAK,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM;gBAC5C,CAAC,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO;oBACzC,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC;QAC1B,MAAM,OAAO,GAAG,IAAI,EAAE,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC;QACjD,MAAM,KAAK,GAAG,IAAI,EAAE,KAAK,CAAC;QAC1B,OAAO,OAAO;YACZ,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE;YACpE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["import {\n GUIDANCE_ELEMENT_FIELDS,\n OnboardingElementType,\n type AnyResourceConfiguration,\n type GuidanceFlowDefinition,\n} from '@wildo-ai/saas-models';\nimport { LabelKind, LabellingTypes } from '@wildo-ai/presets-components-models';\nimport type { GuidanceFlowSpecificationConfig, OnboardingViewSpecificationConfig } from '@wildo-ai/saas-specifications';\n\nimport type { LabelKeyMeta } from '../models/labelling-unit.models';\n\n/**\n * Shared guidance-flow → translation-key extractor used by both the\n * app-level guidance unit and the per-resource guidance subgroup.\n *\n * The `flowNamespace` parameter is the segment that appears between\n * `LabellingTypes.GUIDANCE` and the rest of the path:\n * - app-level: `<flowRef>`\n * - resource-scoped: `<resourceType>.<flowRef>`\n */\nexport function buildGuidanceFlowKeys(args: {\n flowNamespace: string;\n elements: ReadonlyArray<unknown>;\n}): string[] {\n const prefix = LabellingTypes.GUIDANCE;\n const keys: string[] = [];\n\n keys.push(`${prefix}.${args.flowNamespace}.title`);\n keys.push(`${prefix}.${args.flowNamespace}.description`);\n\n for (const rawElement of args.elements) {\n const element = rawElement as {\n ref?: string;\n type?: OnboardingElementType;\n steps?: Array<{ ref?: string }>;\n questions?: Array<{ id?: string; ref?: string; options?: Array<{ ref?: string }> }>;\n };\n const elementRef = element?.ref;\n const elementType = element?.type;\n if (!elementRef || !elementType) continue;\n\n const fields = GUIDANCE_ELEMENT_FIELDS[elementType] ?? [];\n for (const field of fields) {\n keys.push(`${prefix}.${args.flowNamespace}.elements.${elementRef}.${field}`);\n }\n\n if (elementType === OnboardingElementType.TOUR && Array.isArray(element.steps)) {\n for (const step of element.steps) {\n const stepRef = step?.ref;\n if (!stepRef) continue;\n for (const stepField of ['title', 'description', 'content'] as const) {\n keys.push(`${prefix}.${args.flowNamespace}.elements.${elementRef}.tour_steps.${stepRef}.${stepField}`);\n }\n }\n }\n\n if (elementType === OnboardingElementType.SURVEY && Array.isArray(element.questions)) {\n for (const question of element.questions) {\n const questionId = question?.id || question?.ref;\n if (!questionId) continue;\n keys.push(`${prefix}.${args.flowNamespace}.elements.${elementRef}.survey_questions.${questionId}.question`);\n\n if (Array.isArray(question.options)) {\n for (const option of question.options) {\n const optionRef = option?.ref;\n if (!optionRef) continue;\n keys.push(`${prefix}.${args.flowNamespace}.elements.${elementRef}.survey_questions.${questionId}.options.${optionRef}.label`);\n }\n }\n }\n }\n }\n\n return keys;\n}\n\nexport function collectAppGuidanceKeys(flows: ReadonlyArray<GuidanceFlowDefinition>): string[] {\n const keys: string[] = [];\n for (const flow of flows) {\n if (!flow?.ref) continue;\n keys.push(...buildGuidanceFlowKeys({\n flowNamespace: flow.ref,\n elements: flow.elements ?? [],\n }));\n }\n return keys;\n}\n\nexport function collectResourceGuidanceKeys(\n resourceType: string,\n resourceConfig: AnyResourceConfiguration,\n): string[] {\n const guidance = (resourceConfig as { frontendConfiguration?: { guidance?: Array<{ ref?: string; elements?: unknown[] }> } })\n .frontendConfiguration?.guidance;\n if (!Array.isArray(guidance) || guidance.length === 0) return [];\n const keys: string[] = [];\n for (const flow of guidance) {\n // A resource-scoped flow with missing/non-array `elements` is\n // skipped entirely (no title/description either). Diverging here\n // would silently widen the planned key set and shift the input\n // fingerprint for any resource that drifts into a malformed state.\n if (!flow?.ref || !Array.isArray(flow.elements)) continue;\n keys.push(...buildGuidanceFlowKeys({\n flowNamespace: `${resourceType}.${flow.ref}`,\n elements: flow.elements,\n }));\n }\n return keys;\n}\n\n/**\n * Resolve the final app-level `guidance.*` key set for the planner's\n * app-guidance unit. The `guidance.*` namespace at app level has two sub-sources\n * with DIFFERENT ownership rules:\n *\n * - **App-level guidance flows** (`module.guidanceFlows`): the app-bootstrap\n * `setGuidanceFlowProvider` is the OVERRIDE owner. When an app registers a\n * provider, the planner trusts it as the single source of guidance-flow keys;\n * otherwise it falls back to the frontend-module discovery keys (the only\n * other place `module.guidanceFlows` is visible, since the planner runs in a\n * process that cannot import the frontend module graph).\n * - **Onboarding views** (`module.onboardingViews`): ALWAYS sourced from\n * frontend-module discovery. Onboarding views share the `guidance.*` runtime\n * namespace but are NOT part of the `GuidanceFlowDefinition` provider\n * contract, so a registered provider must never suppress them.\n *\n * Keys are de-duplicated because, in principle, a guidance flow and an\n * onboarding view could be authored with the same ref (they share the\n * `guidance.<ref>` namespace), and the override branch and the onboarding branch\n * could otherwise emit overlapping keys.\n */\nexport function resolveAppLevelGuidanceLabelKeys(args: {\n /** Whether an app called `setGuidanceFlowProvider` (true) — provider wins. */\n guidanceFlowProviderRegistered: boolean;\n /** `guidance.<flowRef>.*` keys from the registered provider (empty if none). */\n providerGuidanceFlowKeys: ReadonlyArray<string>;\n /** `guidance.<flowRef>.*` keys discovered from `module.guidanceFlows`. */\n discoveredGuidanceFlowKeys: ReadonlyArray<string>;\n /** `guidance.<viewRef>.*` keys discovered from `module.onboardingViews`. */\n onboardingViewKeys: ReadonlyArray<string>;\n}): string[] {\n const guidanceFlowKeys = args.guidanceFlowProviderRegistered\n ? args.providerGuidanceFlowKeys\n : args.discoveredGuidanceFlowKeys;\n return Array.from(new Set([...guidanceFlowKeys, ...args.onboardingViewKeys]));\n}\n\n/**\n * Map ONE guidance label sub-path (everything after `guidance.<ref>.`) to the authored meta that\n * grounds its generated copy: `title` / `description` at flow level,\n * `elements.<ref>.{title,description,content,actionLabel}` per element, and a survey's\n * `elements.<ref>.survey_questions.<questionId>.question`.\n *\n * Pure, and lives here rather than inside the loader so the mapping can be read and tested without\n * a companion context — the loader only decides WHICH spec a key belongs to.\n */\nexport function projectGuidanceLabelKeyMeta(\n suffix: string,\n spec: GuidanceFlowSpecificationConfig | OnboardingViewSpecificationConfig,\n): LabelKeyMeta | undefined {\n if (suffix === 'title' || suffix === 'description') {\n const slot = spec.textSlots?.[suffix];\n const kind = suffix === 'title' ? LabelKind.HEADING : LabelKind.DESCRIPTION;\n const purpose = slot?.purpose ?? spec.purpose;\n const notes = slot?.notes;\n return { kind, ...(purpose ? { purpose } : {}), ...(notes && notes.length > 0 ? { notes } : {}) };\n }\n if (suffix.startsWith('elements.')) {\n const [, elementRef, field, questionId, questionField] = suffix.split('.');\n if (!elementRef || !field) return undefined;\n const element = spec.elements?.find((e) => e.ref === elementRef);\n if (!element) return undefined;\n /*\n * A SURVEY's QUESTION — `elements.<ref>.survey_questions.<id>.question`. Its wording is the one\n * piece of guidance copy with no `GUIDANCE_ELEMENT_FIELDS` slot, so it is authored per question\n * id on the element spec. Without it the generator saw only the refs: a question bound to a\n * person's profile `displayName`, in a module named tasks-manager, was generated as \"What should\n * this task be called?\".\n *\n * LABEL rather than DESCRIPTION, because a question is the prompt above an input — the register\n * of a field label, not of supporting prose beneath one.\n */\n if (field === 'survey_questions' && questionId && questionField === 'question') {\n const questionSlot = element.surveyQuestions?.[questionId];\n const questionPurpose = questionSlot?.purpose ?? element.purpose;\n const questionNotes = questionSlot?.notes;\n return {\n kind: LabelKind.LABEL,\n ...(questionPurpose ? { purpose: questionPurpose } : {}),\n ...(questionNotes && questionNotes.length > 0 ? { notes: questionNotes } : {}),\n };\n }\n const slot = element.textSlots?.[field];\n const kind = field === 'title' ? LabelKind.HEADING\n : field === 'actionLabel' ? LabelKind.BUTTON\n : field === 'content' ? LabelKind.MESSAGE\n : LabelKind.DESCRIPTION;\n const purpose = slot?.purpose ?? element.purpose;\n const notes = slot?.notes;\n return purpose\n ? { kind, purpose, ...(notes && notes.length > 0 ? { notes } : {}) }\n : { kind };\n }\n return undefined;\n}\n"]}
1
+ {"version":3,"file":"guidance-keys.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/guidance-keys.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,qBAAqB,GAGtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAKhF;;;;;;;;GAQG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAGrC;IACC,MAAM,MAAM,GAAG,cAAc,CAAC,QAAQ,CAAC;IACvC,MAAM,IAAI,GAAa,EAAE,CAAC;IAE1B,IAAI,CAAC,IAAI,CAAC,GAAG,MAAM,IAAI,IAAI,CAAC,aAAa,QAAQ,CAAC,CAAC;IACnD,IAAI,CAAC,IAAI,CAAC,GAAG,MAAM,IAAI,IAAI,CAAC,aAAa,cAAc,CAAC,CAAC;IAEzD,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;QACvC,MAAM,OAAO,GAAG,UAKf,CAAC;QACF,MAAM,UAAU,GAAG,OAAO,EAAE,GAAG,CAAC;QAChC,MAAM,WAAW,GAAG,OAAO,EAAE,IAAI,CAAC;QAClC,IAAI,CAAC,UAAU,IAAI,CAAC,WAAW;YAAE,SAAS;QAE1C,MAAM,MAAM,GAAG,uBAAuB,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;QAC1D,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAC3B,IAAI,CAAC,IAAI,CAAC,GAAG,MAAM,IAAI,IAAI,CAAC,aAAa,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AW,CAAC;QAC1B,MAAM,OAAO,GAAG,IAAI,EAAE,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC;QACjD,MAAM,KAAK,GAAG,IAAI,EAAE,KAAK,CAAC;QAC1B,OAAO,OAAO;YACZ,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE;YACpE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["import {\n GUIDANCE_ELEMENT_FIELDS,\n OnboardingElementType,\n type AnyResourceConfiguration,\n type GuidanceFlowDefinition,\n} from '@wildo-ai/saas-models';\nimport { LabelKind, LabellingTypes } from '@wildo-ai/presets-components-models';\nimport type { GuidanceFlowSpecificationConfig, OnboardingViewSpecificationConfig } from '@wildo-ai/saas-specifications';\n\nimport type { LabelKeyMeta } from '../models/labelling-unit.models';\n\n/**\n * Shared guidance-flow → translation-key extractor used by both the\n * app-level guidance unit and the per-resource guidance subgroup.\n *\n * The `flowNamespace` parameter is the segment that appears between\n * `LabellingTypes.GUIDANCE` and the rest of the path:\n * - app-level: `<flowRef>`\n * - resource-scoped: `<resourceType>.<flowRef>`\n */\nexport function buildGuidanceFlowKeys(args: {\n flowNamespace: string;\n elements: ReadonlyArray<unknown>;\n}): string[] {\n const prefix = LabellingTypes.GUIDANCE;\n const keys: string[] = [];\n\n keys.push(`${prefix}.${args.flowNamespace}.title`);\n keys.push(`${prefix}.${args.flowNamespace}.description`);\n\n for (const rawElement of args.elements) {\n const element = rawElement as {\n ref?: string;\n type?: OnboardingElementType;\n steps?: Array<{ ref?: string }>;\n questions?: Array<{ id?: string; ref?: string; options?: Array<{ ref?: string }> }>;\n };\n const elementRef = element?.ref;\n const elementType = element?.type;\n if (!elementRef || !elementType) continue;\n\n const fields = GUIDANCE_ELEMENT_FIELDS[elementType] ?? [];\n for (const field of fields) {\n keys.push(`${prefix}.${args.flowNamespace}.elements.${elementRef}.${field}`);\n }\n\n if (elementType === OnboardingElementType.TOUR && Array.isArray(element.steps)) {\n for (const step of element.steps) {\n const stepRef = step?.ref;\n if (!stepRef) continue;\n for (const stepField of ['title', 'description', 'content'] as const) {\n keys.push(`${prefix}.${args.flowNamespace}.elements.${elementRef}.tour_steps.${stepRef}.${stepField}`);\n }\n }\n }\n\n if (elementType === OnboardingElementType.SURVEY && Array.isArray(element.questions)) {\n for (const question of element.questions) {\n const questionId = question?.id || question?.ref;\n if (!questionId) continue;\n keys.push(`${prefix}.${args.flowNamespace}.elements.${elementRef}.survey_questions.${questionId}.question`);\n\n if (Array.isArray(question.options)) {\n for (const option of question.options) {\n const optionRef = option?.ref;\n if (!optionRef) continue;\n keys.push(`${prefix}.${args.flowNamespace}.elements.${elementRef}.survey_questions.${questionId}.options.${optionRef}.label`);\n }\n }\n }\n }\n }\n\n return keys;\n}\n\nexport function collectAppGuidanceKeys(flows: ReadonlyArray<GuidanceFlowDefinition>): string[] {\n const keys: string[] = [];\n for (const flow of flows) {\n if (!flow?.ref) continue;\n keys.push(...buildGuidanceFlowKeys({\n flowNamespace: flow.ref,\n elements: flow.elements ?? [],\n }));\n }\n return keys;\n}\n\nexport function collectResourceGuidanceKeys(\n resourceType: string,\n resourceConfig: AnyResourceConfiguration,\n): string[] {\n const guidance = (resourceConfig as { frontendConfiguration?: { guidance?: Array<{ ref?: string; elements?: unknown[] }> } })\n .frontendConfiguration?.guidance;\n if (!Array.isArray(guidance) || guidance.length === 0) return [];\n const keys: string[] = [];\n for (const flow of guidance) {\n // A resource-scoped flow with missing/non-array `elements` is\n // skipped entirely (no title/description either). Diverging here\n // would silently widen the planned key set and shift the input\n // fingerprint for any resource that drifts into a malformed state.\n if (!flow?.ref || !Array.isArray(flow.elements)) continue;\n keys.push(...buildGuidanceFlowKeys({\n flowNamespace: `${resourceType}.${flow.ref}`,\n elements: flow.elements,\n }));\n }\n return keys;\n}\n\n/**\n * Resolve the final app-level `guidance.*` key set for the planner's\n * app-guidance unit. The `guidance.*` namespace at app level has two sub-sources\n * with DIFFERENT ownership rules:\n *\n * - **App-level guidance flows** (`module.guidanceFlows`): the app-bootstrap\n * `setGuidanceFlowProvider` is the OVERRIDE owner. When an app registers a\n * provider, the planner trusts it as the single source of guidance-flow keys;\n * otherwise it falls back to the frontend-module discovery keys (the only\n * other place `module.guidanceFlows` is visible, since the planner runs in a\n * process that cannot import the frontend module graph).\n * - **Onboarding views** (`module.onboardingViews`): ALWAYS sourced from\n * frontend-module discovery. Onboarding views share the `guidance.*` runtime\n * namespace but are NOT part of the `GuidanceFlowDefinition` provider\n * contract, so a registered provider must never suppress them.\n *\n * Keys are de-duplicated because, in principle, a guidance flow and an\n * onboarding view could be authored with the same ref (they share the\n * `guidance.<ref>` namespace), and the override branch and the onboarding branch\n * could otherwise emit overlapping keys.\n */\nexport function resolveAppLevelGuidanceLabelKeys(args: {\n /** Whether an app called `setGuidanceFlowProvider` (true) — provider wins. */\n guidanceFlowProviderRegistered: boolean;\n /** `guidance.<flowRef>.*` keys from the registered provider (empty if none). */\n providerGuidanceFlowKeys: ReadonlyArray<string>;\n /** `guidance.<flowRef>.*` keys discovered from `module.guidanceFlows`. */\n discoveredGuidanceFlowKeys: ReadonlyArray<string>;\n /** `guidance.<viewRef>.*` keys discovered from `module.onboardingViews`. */\n onboardingViewKeys: ReadonlyArray<string>;\n}): string[] {\n const guidanceFlowKeys = args.guidanceFlowProviderRegistered\n ? args.providerGuidanceFlowKeys\n : args.discoveredGuidanceFlowKeys;\n return Array.from(new Set([...guidanceFlowKeys, ...args.onboardingViewKeys]));\n}\n\n/**\n * Map ONE guidance label sub-path (everything after `guidance.<ref>.`) to the authored meta that\n * grounds its generated copy: `title` / `description` at flow level,\n * `elements.<ref>.{title,description,content,actionLabel}` per element, and a survey's\n * `elements.<ref>.survey_questions.<questionId>.question`.\n *\n * Pure, and lives here rather than inside the loader so the mapping can be read and tested without\n * a companion context — the loader only decides WHICH spec a key belongs to.\n */\nexport function projectGuidanceLabelKeyMeta(\n suffix: string,\n spec: GuidanceFlowSpecificationConfig | OnboardingViewSpecificationConfig,\n): LabelKeyMeta | undefined {\n if (suffix === 'title' || suffix === 'description') {\n const slot = spec.textSlots?.[suffix];\n const kind = suffix === 'title' ? LabelKind.HEADING : LabelKind.DESCRIPTION;\n const purpose = slot?.purpose ?? spec.purpose;\n const notes = slot?.notes;\n return { kind, ...(purpose ? { purpose } : {}), ...(notes && notes.length > 0 ? { notes } : {}) };\n }\n if (suffix.startsWith('elements.')) {\n const [, elementRef, field, questionId, questionField] = suffix.split('.');\n if (!elementRef || !field) return undefined;\n const element = spec.elements?.find((e) => e.ref === elementRef);\n if (!element) return undefined;\n /*\n * A SURVEY's QUESTION — `elements.<ref>.survey_questions.<id>.question`. Its wording is the one\n * piece of guidance copy with no `GUIDANCE_ELEMENT_FIELDS` slot, so it is authored per question\n * id on the element spec. Without it the generator saw only the refs: a question bound to a\n * person's profile `displayName`, in a module named tasks-manager, was generated as \"What should\n * this task be called?\".\n *\n * LABEL rather than DESCRIPTION, because a question is the prompt above an input — the register\n * of a field label, not of supporting prose beneath one.\n */\n if (field === 'survey_questions' && questionId && questionField === 'question') {\n const questionSlot = element.surveyQuestions?.[questionId];\n const questionPurpose = questionSlot?.purpose ?? element.purpose;\n const questionNotes = questionSlot?.notes;\n return {\n kind: LabelKind.LABEL,\n ...(questionPurpose ? { purpose: questionPurpose } : {}),\n ...(questionNotes && questionNotes.length > 0 ? { notes: questionNotes } : {}),\n };\n }\n const slot = element.textSlots?.[field];\n const kind = field === 'title' ? LabelKind.HEADING\n : field === 'actionLabel' ? LabelKind.BUTTON\n : field === 'content' ? LabelKind.MESSAGE\n : LabelKind.DESCRIPTION;\n const purpose = slot?.purpose ?? element.purpose;\n const notes = slot?.notes;\n return purpose\n ? { kind, purpose, ...(notes && notes.length > 0 ? { notes } : {}) }\n : { kind };\n }\n return undefined;\n}\n"]}
@@ -0,0 +1,24 @@
1
+ import { type LabellingPlanIncompleteness, type LabellingUnit } from '../models/labelling-unit.models';
2
+ /**
3
+ * Whether a unit must be REFUSED by every path that writes its label files, and why.
4
+ *
5
+ * A unit carrying `plannedFromIncompleteInputs` holds a SUBSET of its real keys, and each of the three
6
+ * write paths prunes what the plan does not hold: labellize generation, labellize adoption, and
7
+ * translate (which drops target-locale keys the plan lacks and records the locale `fresh`, so the loss
8
+ * would be permanent — later runs skip a fresh locale). One predicate and one message for all three, so
9
+ * a fourth writer cannot guard differently.
10
+ *
11
+ * @returns the refusal message, or `undefined` when the unit's plan is complete.
12
+ */
13
+ export declare function incompletePlanRefusal(unit: Pick<LabellingUnit, 'plannedFromIncompleteInputs'>): string | undefined;
14
+ /**
15
+ * Which frontend incompleteness makes the key set of a unit that reads the frontend snapshot PARTIAL.
16
+ *
17
+ * An application with no SAAS_APP frontend service is not partial: it genuinely has no layout, no
18
+ * description opt-ins and no discovered guidance, so the empty snapshot is its complete answer, and
19
+ * tagging it would refuse its units for ever with a "repair the cause" that has no cause. Only a
20
+ * snapshot that SHOULD have answered and did not — the introspection failed, or answered malformed —
21
+ * is partial.
22
+ */
23
+ export declare function resolveFrontendPlanDegradation(incompleteness: LabellingPlanIncompleteness | undefined): LabellingPlanIncompleteness | undefined;
24
+ //# sourceMappingURL=incomplete-plan-refusal.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incomplete-plan-refusal.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/incomplete-plan-refusal.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,2BAA2B,EAChC,KAAK,aAAa,EACnB,MAAM,iCAAiC,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI,CAAC,aAAa,EAAE,6BAA6B,CAAC,GAAG,MAAM,GAAG,SAAS,CAOlH;AAED;;;;;;;;GAQG;AACH,wBAAgB,8BAA8B,CAC5C,cAAc,EAAE,2BAA2B,GAAG,SAAS,GACtD,2BAA2B,GAAG,SAAS,CAGzC"}
@@ -0,0 +1,34 @@
1
+ import { LabellingPlanIncompletenessReason, } from '../models/labelling-unit.models.js';
2
+ /**
3
+ * Whether a unit must be REFUSED by every path that writes its label files, and why.
4
+ *
5
+ * A unit carrying `plannedFromIncompleteInputs` holds a SUBSET of its real keys, and each of the three
6
+ * write paths prunes what the plan does not hold: labellize generation, labellize adoption, and
7
+ * translate (which drops target-locale keys the plan lacks and records the locale `fresh`, so the loss
8
+ * would be permanent — later runs skip a fresh locale). One predicate and one message for all three, so
9
+ * a fourth writer cannot guard differently.
10
+ *
11
+ * @returns the refusal message, or `undefined` when the unit's plan is complete.
12
+ */
13
+ export function incompletePlanRefusal(unit) {
14
+ const reasons = unit.plannedFromIncompleteInputs;
15
+ if (!reasons || reasons.length === 0)
16
+ return undefined;
17
+ return (`Not rewritten: part of this unit's keys come from a family that could not answer (${reasons.join(', ')}), ` +
18
+ 'so the plan is partial and writing it would delete the labels that family plans. Repair the cause and run again.');
19
+ }
20
+ /**
21
+ * Which frontend incompleteness makes the key set of a unit that reads the frontend snapshot PARTIAL.
22
+ *
23
+ * An application with no SAAS_APP frontend service is not partial: it genuinely has no layout, no
24
+ * description opt-ins and no discovered guidance, so the empty snapshot is its complete answer, and
25
+ * tagging it would refuse its units for ever with a "repair the cause" that has no cause. Only a
26
+ * snapshot that SHOULD have answered and did not — the introspection failed, or answered malformed —
27
+ * is partial.
28
+ */
29
+ export function resolveFrontendPlanDegradation(incompleteness) {
30
+ if (!incompleteness)
31
+ return undefined;
32
+ return incompleteness.reason === LabellingPlanIncompletenessReason.FRONTEND_INTROSPECTION_NO_APP_SERVICE ? undefined : incompleteness;
33
+ }
34
+ //# sourceMappingURL=incomplete-plan-refusal.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incomplete-plan-refusal.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/incomplete-plan-refusal.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,GAGlC,MAAM,iCAAiC,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAAwD;IAC5F,MAAM,OAAO,GAAG,IAAI,CAAC,2BAA2B,CAAC;IACjD,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IACvD,OAAO,CACL,qFAAqF,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK;QAC5G,kHAAkH,CACnH,CAAC;AACJ,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,8BAA8B,CAC5C,cAAuD;IAEvD,IAAI,CAAC,cAAc;QAAE,OAAO,SAAS,CAAC;IACtC,OAAO,cAAc,CAAC,MAAM,KAAK,iCAAiC,CAAC,qCAAqC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC;AACxI,CAAC","sourcesContent":["import {\n LabellingPlanIncompletenessReason,\n type LabellingPlanIncompleteness,\n type LabellingUnit,\n} from '../models/labelling-unit.models';\n\n/**\n * Whether a unit must be REFUSED by every path that writes its label files, and why.\n *\n * A unit carrying `plannedFromIncompleteInputs` holds a SUBSET of its real keys, and each of the three\n * write paths prunes what the plan does not hold: labellize generation, labellize adoption, and\n * translate (which drops target-locale keys the plan lacks and records the locale `fresh`, so the loss\n * would be permanent — later runs skip a fresh locale). One predicate and one message for all three, so\n * a fourth writer cannot guard differently.\n *\n * @returns the refusal message, or `undefined` when the unit's plan is complete.\n */\nexport function incompletePlanRefusal(unit: Pick<LabellingUnit, 'plannedFromIncompleteInputs'>): string | undefined {\n const reasons = unit.plannedFromIncompleteInputs;\n if (!reasons || reasons.length === 0) return undefined;\n return (\n `Not rewritten: part of this unit's keys come from a family that could not answer (${reasons.join(', ')}), ` +\n 'so the plan is partial and writing it would delete the labels that family plans. Repair the cause and run again.'\n );\n}\n\n/**\n * Which frontend incompleteness makes the key set of a unit that reads the frontend snapshot PARTIAL.\n *\n * An application with no SAAS_APP frontend service is not partial: it genuinely has no layout, no\n * description opt-ins and no discovered guidance, so the empty snapshot is its complete answer, and\n * tagging it would refuse its units for ever with a \"repair the cause\" that has no cause. Only a\n * snapshot that SHOULD have answered and did not — the introspection failed, or answered malformed —\n * is partial.\n */\nexport function resolveFrontendPlanDegradation(\n incompleteness: LabellingPlanIncompleteness | undefined,\n): LabellingPlanIncompleteness | undefined {\n if (!incompleteness) return undefined;\n return incompleteness.reason === LabellingPlanIncompletenessReason.FRONTEND_INTROSPECTION_NO_APP_SERVICE ? undefined : incompleteness;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"label-file-source.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/label-file-source.utils.ts"],"names":[],"mappings":"AAEA,KAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,QAAQ,EAAE,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAA;CAAE,CAAC;AAE5F,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CAClC;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,GAAG,sBAAsB,CAahF;AAED,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,EAC/B,IAAI,GAAE,MAAM,EAAO,EACnB,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GAC/B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAcxB;AAED,wBAAgB,gCAAgC,CAC9C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC9B,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAmB1B;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,OAAO,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CAClC,GAAG,MAAM,CA8BT"}
1
+ {"version":3,"file":"label-file-source.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/label-file-source.utils.ts"],"names":[],"mappings":"AAEA,KAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,QAAQ,EAAE,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAA;CAAE,CAAC;AAE5F,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CAClC;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,GAAG,sBAAsB,CAahF;AAED,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,EAC/B,IAAI,GAAE,MAAM,EAAO,EACnB,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GAC/B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAcxB;AAED,wBAAgB,gCAAgC,CAC9C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC9B,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAmB1B;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,OAAO,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CAClC,GAAG,MAAM,CA8BT"}
@@ -1 +1 @@
1
- {"version":3,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;AAChE,CAAC","sourcesContent":["import { extractLabelsObjectInnerSource } from '../../email/utils/email-labels-file-source.utils';\n\ntype JsonLike = string | number | boolean | null | JsonLike[] | { [key: string]: JsonLike };\n\nexport interface ParsedNestedLabelsFile {\n labels: Record<string, JsonLike>;\n}\n\nexport function parseNestedLabelsTsSource(source: string): ParsedNestedLabelsFile {\n const inner = extractLabelsObjectInnerSource(source);\n if (inner === null) {\n throw new Error('Could not find export const labels = { ... }');\n }\n\n const labels = JSON.parse(`{${inner}}`) as Record<string, JsonLike>;\n\n if (!labels || typeof labels !== 'object' || Array.isArray(labels)) {\n throw new Error('Parsed labels object is not a plain object');\n }\n\n return { labels };\n}\n\nexport function flattenNestedStringLabels(\n input: Record<string, JsonLike>,\n path: string[] = [],\n out: Record<string, string> = {},\n): Record<string, string> {\n for (const [key, value] of Object.entries(input)) {\n const nextPath = [...path, key];\n if (typeof value === 'string') {\n out[nextPath.join('.')] = value;\n continue;\n }\n\n if (value && typeof value === 'object' && !Array.isArray(value)) {\n flattenNestedStringLabels(value as Record<string, JsonLike>, nextPath, out);\n }\n }\n\n return out;\n}\n\nexport function buildNestedLabelsFromFlatEntries(\n entries: Record<string, string>,\n): Record<string, JsonLike> {\n const root: Record<string, JsonLike> = {};\n\n for (const [path, value] of Object.entries(entries)) {\n const segments = path.split('.');\n let cursor: Record<string, JsonLike> = root;\n\n for (const segment of segments.slice(0, -1)) {\n const current = cursor[segment];\n if (!current || typeof current !== 'object' || Array.isArray(current)) {\n cursor[segment] = {};\n }\n cursor = cursor[segment] as Record<string, JsonLike>;\n }\n\n cursor[segments[segments.length - 1]!] = value;\n }\n\n return root;\n}\n\nexport function formatNestedLabelsTsFile(options: {\n localeCode: string;\n localeDisplayName: string;\n isPrimaryLocale: boolean;\n labels: Record<string, JsonLike>;\n}): string {\n /*\n * The DO-NOT-EDIT marker is the only thing standing between a person and a silently lost edit, and\n * it was missing from every file this writer has ever produced (#1297).\n *\n * A hand edit to one of these files survives until the next pipeline run and is then overwritten\n * with no warning — the `i18n-rerun-pipeline` skill names that hazard explicitly and tells the\n * reader to fix the SOURCE (spec / ui-behavior / preset registration) and re-translate instead. The\n * same skill ships a verification invariant and a red flag keyed on exactly this string, both\n * installed into every generated application; with no writer emitting it, the invariant reported\n * all 604 files of a healthy Wonder Todos tree as violations and the red flag told the reader that\n * somebody had hand-edited every one of them.\n *\n * Spelled to match the skill's grep verbatim (`DO NOT EDIT THIS FILE MANUALLY`) — the check and the\n * marker are one contract, so a reworded marker is the same defect with better prose.\n */\n const header = `/**\n * ${options.localeDisplayName} (${options.localeCode}) — application labels.\n * ${options.isPrimaryLocale\n ? 'Primary locale source-of-truth file generated from application context.'\n : 'Translated from the primary locale; keep semantic keys and placeholders faithful to the source.'}\n *\n * DO NOT EDIT THIS FILE MANUALLY — it is regenerated by the labelling pipeline and a hand edit is\n * overwritten on the next run. Change the source it derives from (specification, ui-behavior, or\n * component label registration) and re-run \\`wildo generate labels\\` / \\`wildo generate translate\\`.\n */`;\n\n const body = JSON.stringify(options.labels, null, 2);\n\n return `${header}\\nexport const labels = ${body} as const;\\n`;\n}\n\n"]}
1
+ {"version":3,"file":"label-file-source.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/label-file-source.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,kDAAkD,CAAC;AAQlG,MAAM,UAAU,yBAAyB,CAAC,MAAc;IACtD,MAAM,KAAK,GAAG,8BAA8B,CAAC,MAAM,CAAC,CAAC;IACrD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;IAClE,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAA6B,CAAC;IAEpE,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC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QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;gBACtE,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;YACvB,CAAC;YACD,MAAM,GAAG,MAAM,CAAC,OAAO,CAA6B,CAAC;QACvD,CAAC;QAED,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAE,CAAC,GAAG,KAAK,CAAC;IACjD,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,OAKxC;IACC;;;;;;;;;;;;;;OAcG;IACH,MAAM,MAAM,GAAG;KACZ,OAAO,CAAC,iBAAiB,KAAK,OAAO,CAAC,UAAU;KAChD,OAAO,CAAC,eAAe;QACxB,CAAC,CAAC,yEAAyE;QAC3E,CAAC,CAAC,iGAAiG;;;;;IAKnG,CAAC;IAEH,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAErD,OAAO,GAAG,MAAM,2BAA2B,IAAI,cAAc,CAAC;AAChE,CAAC","sourcesContent":["import { extractLabelsObjectInnerSource } from '../../email/utils/email-labels-file-source.utils';\n\ntype JsonLike = string | number | boolean | null | JsonLike[] | { [key: string]: JsonLike };\n\nexport interface ParsedNestedLabelsFile {\n labels: Record<string, JsonLike>;\n}\n\nexport function parseNestedLabelsTsSource(source: string): ParsedNestedLabelsFile {\n const inner = extractLabelsObjectInnerSource(source);\n if (inner === null) {\n throw new Error('Could not find export const labels = { ... }');\n }\n\n const labels = JSON.parse(`{${inner}}`) as Record<string, JsonLike>;\n\n if (!labels || typeof labels !== 'object' || Array.isArray(labels)) {\n throw new Error('Parsed labels object is not a plain object');\n }\n\n return { labels };\n}\n\nexport function flattenNestedStringLabels(\n input: Record<string, JsonLike>,\n path: string[] = [],\n out: Record<string, string> = {},\n): Record<string, string> {\n for (const [key, value] of Object.entries(input)) {\n const nextPath = [...path, key];\n if (typeof value === 'string') {\n out[nextPath.join('.')] = value;\n continue;\n }\n\n if (value && typeof value === 'object' && !Array.isArray(value)) {\n flattenNestedStringLabels(value as Record<string, JsonLike>, nextPath, out);\n }\n }\n\n return out;\n}\n\nexport function buildNestedLabelsFromFlatEntries(\n entries: Record<string, string>,\n): Record<string, JsonLike> {\n const root: Record<string, JsonLike> = {};\n\n for (const [path, value] of Object.entries(entries)) {\n const segments = path.split('.');\n let cursor: Record<string, JsonLike> = root;\n\n for (const segment of segments.slice(0, -1)) {\n const current = cursor[segment];\n if (!current || typeof current !== 'object' || Array.isArray(current)) {\n cursor[segment] = {};\n }\n cursor = cursor[segment] as Record<string, JsonLike>;\n }\n\n cursor[segments[segments.length - 1]!] = value;\n }\n\n return root;\n}\n\nexport function formatNestedLabelsTsFile(options: {\n localeCode: string;\n localeDisplayName: string;\n isPrimaryLocale: boolean;\n labels: Record<string, JsonLike>;\n}): string {\n /*\n * The DO-NOT-EDIT marker is the only thing standing between a person and a silently lost edit, and\n * it was missing from every file this writer has ever produced (#1297).\n *\n * A hand edit to one of these files survives until the next pipeline run and is then overwritten\n * with no warning — the `i18n-rerun-pipeline` skill names that hazard explicitly and tells the\n * reader to fix the SOURCE (spec / ui-behavior / preset registration) and re-translate instead. The\n * same skill ships a verification invariant and a red flag keyed on exactly this string, both\n * installed into every generated application; with no writer emitting it, the invariant reported\n * all 604 files of a healthy Wonder Todos tree as violations and the red flag told the reader that\n * somebody had hand-edited every one of them.\n *\n * Spelled to match the skill's grep verbatim (`DO NOT EDIT THIS FILE MANUALLY`) — the check and the\n * marker are one contract, so a reworded marker is the same defect with better prose.\n */\n const header = `/**\n * ${options.localeDisplayName} (${options.localeCode}) — application labels.\n * ${options.isPrimaryLocale\n ? 'Primary locale source-of-truth file generated from application context.'\n : 'Translated from the primary locale; keep semantic keys and placeholders faithful to the source.'}\n *\n * DO NOT EDIT THIS FILE MANUALLY — it is regenerated by the labelling pipeline and a hand edit is\n * overwritten on the next run. Change the source it derives from (specification, ui-behavior, or\n * component label registration) and re-run \\`wildo generate labels\\` / \\`wildo generate translate\\`.\n */`;\n\n const body = JSON.stringify(options.labels, null, 2);\n\n return `${header}\\nexport const labels = ${body} as const;\\n`;\n}\n\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"label-placeholder-drift.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/label-placeholder-drift.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAUH;;;;;;;;GAQG;AACH,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,+EAA+E;AAC/E,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAMrE;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE;IAC7C,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,gBAAgB,GAAG,SAAS,CAW/B;AAED;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAAC,IAAI,EAAE;IACnD,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC;IACnE,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAC7C,GAAG,gBAAgB,EAAE,CAYrB;AAED;;;;;;;;;GASG;AACH,wBAAgB,iCAAiC,CAAC,IAAI,EAAE;IACtD,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAChD,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAC9C,GAAG,gBAAgB,EAAE,CAYrB;AAED,uEAAuE;AACvE,MAAM,WAAW,uBAAuB;IACtC,oFAAoF;IACpF,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,cAAc,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACrD,uFAAuF;IACvF,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;CACzC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE;IAClD,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAChD,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;CAChE,GAAG,uBAAuB,CAmC1B"}
1
+ {"version":3,"file":"label-placeholder-drift.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/label-placeholder-drift.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAUH;;;;;;;;GAQG;AACH,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,OAA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zC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE;IAClD,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAChD,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;CAChE,GAAG,uBAAuB,CAmC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"label-placeholder-drift.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/label-placeholder-drift.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH;;;;;GAKG;AACH,MAAM,0BAA0B,GAAG,GAAW,EAAE,CAAC,YAAY,CAAC;AAoB9D,+EAA+E;AAC/E,MAAM,UAAU,6BAA6B,CAAC,KAAa;IACzD,MAAM,KAAK,GAAG,0BAA0B,EAAE,CAAC;IAC3C,MAAM,MAAM,GAAG,IAAI,GAAG,EAAU,CAAC;IACjC,IAAI,KAA6B,CAAC;IAClC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI;QAAE,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,CAAC;IACnE,OAAO,CAAC,GAAG,MAAM,CAAC,CAAC;AACrB,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,wBAAwB,CAAC,IAIxC;IACC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IAC5B,MAAM,QAAQ,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7C,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC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Q;gBAAE,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;YACrD,SAAS;QACX,CAAC;QAED,4EAA4E;QAC5E,2EAA2E;QAC3E,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC/B,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;YACpB,SAAS;QACX,CAAC;QAED,MAAM,KAAK,GAAG,wBAAwB,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,6BAA6B,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QACxG,IAAI,KAAK,EAAE,CAAC;YACV,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC3B,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;YACrB,SAAS;QACX,CAAC;QAED,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACtB,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC;AACjD,CAAC","sourcesContent":["/**\n * The ONE implementation of \"do these placeholders match?\", shared by both\n * label-generation orchestrators.\n *\n * # Why it is shared\n *\n * `interpolateLabelParams` substitutes a single-brace `{name}` token only when\n * `name` is a param the render call actually passes. Everything else about a\n * placeholder is a failure mode:\n * - a token OUTSIDE the expected set renders literally to the user (`{limite}`\n * shows up in the UI as those eight characters), and\n * - an expected token that never appears means the runtime value silently\n * never shows.\n *\n * Both orchestrators must enforce that, and they were enforcing it in one place\n * only — labellize. A second, independently written copy in translate would be a\n * second grammar (`\\{(\\w+)\\}` is easy to write subtly differently), a second set\n * of edge cases (duplicate tokens, non-string values) and, in time, a second\n * answer to the same question. So the COMPARISON lives here once; each caller\n * supplies its own notion of what the EXPECTED tokens are, because that is the\n * one thing that genuinely differs between them:\n *\n * | caller | expected tokens come from | applies to |\n * |-----------|------------------------------------------|-------------------------------------|\n * | labellize | the key's DECLARED params (`keyParams`) | param-validated chunks only |\n * | translate | the tokens present in the SOURCE string | EVERY chunk, in every bucket |\n *\n * The translate side is source-scanned rather than `keyParams`-driven on purpose\n * — it mirrors exactly what `buildTranslatePrompt` tells the model to preserve,\n * and it therefore works for buckets that thread no declared params at all\n * (where `keyParams` is absent and labellize's check correctly stands down).\n */\n\n/**\n * The runtime's token grammar, mirrored so a check can never disagree with what\n * will actually be interpolated. Kept as a factory rather than a shared\n * `RegExp` constant: a `g`-flagged regex carries mutable `lastIndex`, and a\n * module-level one shared across calls is a classic source of skipped matches.\n */\nconst buildPlaceholderTokenRegex = (): RegExp => /\\{(\\w+)\\}/g;\n\n/**\n * One label value whose placeholders do not match the tokens expected of it.\n *\n * `unexpected` = emitted but not expected (renders literally to the user);\n * `missing` = expected but never emitted (the runtime value silently won't show).\n *\n * `expected` is deliberately NOT called `declared`: for a translation the\n * expectation comes from the source string, not from a declaration.\n */\nexport interface PlaceholderDrift {\n key: string;\n expected: string[];\n emitted: string[];\n unexpected: string[];\n missing: string[];\n value: string;\n}\n\n/** Every distinct single-brace token in `value`, in first-appearance order. */\nexport function extractLabelPlaceholderTokens(value: string): string[] {\n const regex = buildPlaceholderTokenRegex();\n const tokens = new Set<string>();\n let match: RegExpExecArray | null;\n while ((match = regex.exec(value)) !== null) tokens.add(match[1]!);\n return [...tokens];\n}\n\n/**\n * Compare one value's emitted tokens against the tokens expected of it.\n * Returns `undefined` when they agree — the common path — so callers can build\n * a drift list by filtering, and an empty list unambiguously means \"clean\".\n *\n * A key with no expected tokens is held to \"must contain no placeholder at\n * all\", which is what catches a plain-text label drifting to `{value}`.\n */\nexport function comparePlaceholderTokens(args: {\n key: string;\n expected: readonly string[];\n value: string;\n}): PlaceholderDrift | undefined {\n const { key, value } = args;\n const expected = [...new Set(args.expected)];\n const expectedSet = new Set(expected);\n const emitted = extractLabelPlaceholderTokens(value);\n const emittedSet = new Set(emitted);\n\n const unexpected = emitted.filter((token) => !expectedSet.has(token));\n const missing = expected.filter((token) => !emittedSet.has(token));\n if (unexpected.length === 0 && missing.length === 0) return undefined;\n return { key, expected, emitted, unexpected, missing, value };\n}\n\n/**\n * Labellize's expectation: emitted tokens must equal the key's DECLARED params.\n *\n * `keyParams` absent means the bucket does not thread declared params, so there\n * is nothing to compare against and the check stands down — the caller's\n * pre-existing contract, preserved verbatim.\n */\nexport function detectDeclaredPlaceholderDrift(args: {\n keys: readonly string[];\n keyParams: Readonly<Record<string, readonly string[]>> | undefined;\n generated: Readonly<Record<string, string>>;\n}): PlaceholderDrift[] {\n const { keys, keyParams, generated } = args;\n if (!keyParams) return [];\n\n const drifts: PlaceholderDrift[] = [];\n for (const key of keys) {\n const value = generated[key];\n if (typeof value !== 'string') continue;\n const drift = comparePlaceholderTokens({ key, expected: keyParams[key] ?? [], value });\n if (drift) drifts.push(drift);\n }\n return drifts;\n}\n\n/**\n * Translate's expectation: a translated value must carry EXACTLY the tokens its\n * SOURCE value carries — no more, no fewer. That is precisely the contract\n * `buildTranslatePrompt`'s \"# Variable keys — DO NOT translate\" block states to\n * the model, and until now nothing checked the answer against it.\n *\n * A key with no source entry is skipped rather than held to \"no placeholders\":\n * there is no source to compare against, and such a key is already handled by\n * the missing-key fallback.\n */\nexport function detectTranslationPlaceholderDrift(args: {\n keys: readonly string[];\n sourceEntries: Readonly<Record<string, string>>;\n translated: Readonly<Record<string, string>>;\n}): PlaceholderDrift[] {\n const { keys, sourceEntries, translated } = args;\n\n const drifts: PlaceholderDrift[] = [];\n for (const key of keys) {\n const value = translated[key];\n const source = sourceEntries[key];\n if (typeof value !== 'string' || typeof source !== 'string') continue;\n const drift = comparePlaceholderTokens({ key, expected: extractLabelPlaceholderTokens(source), value });\n if (drift) drifts.push(drift);\n }\n return drifts;\n}\n\n/** The outcome of assembling one translated chunk's on-disk values. */\nexport interface TranslatedChunkAssembly {\n /** What will be written for this chunk. Every value here is placeholder-correct. */\n readonly values: Record<string, string>;\n /**\n * Keys whose returned translation was REJECTED for placeholder drift and\n * replaced by the source string. Empty on the healthy path.\n */\n readonly rejectedDrifts: readonly PlaceholderDrift[];\n /** Keys that arrived as no usable string at all and fell back to the source string. */\n readonly missingKeys: readonly string[];\n}\n\n/**\n * Assemble the values a translated chunk will write, enforcing the placeholder\n * contract as it goes.\n *\n * Two distinct fallbacks land on the SAME value — the source string — for two\n * different reasons, and the caller reports them separately:\n *\n * - `missingKeys`: the model never returned a usable string (the pre-existing\n * behaviour; the repair loop has already spent its budget on these).\n * - `rejectedDrifts`: the model DID return a string and its placeholders do\n * not match the source's. This is the case that used to be written straight\n * through, and it is the worse of the two: an untranslated English label\n * still renders correctly, whereas `Limite atteinte : {limite}` renders the\n * eight literal characters `{limite}` to a user and drops the number.\n *\n * Falling back to the source is chosen over three alternatives:\n * - KEEPING the drifted translation (what labellize does with its persisted\n * drift, and what translate did implicitly): labellize writes into the\n * PRIMARY file, where a drifted token is the only text there is and a loud\n * on-disk signal beats an empty label. Translate always has a known-good\n * alternative sitting right there, so there is no reason to ship the broken\n * one.\n * - OMITTING the key: the planned-key set is written as a complete locale\n * bundle, nothing else in this orchestrator produces an absent planned key,\n * and an absent key is a different product (a different runtime path) from a\n * present-but-untranslated one.\n * - FAILING the unit: it would discard every good translation in the chunk\n * over one cosmetic key, and it is asymmetric with the missing-key path,\n * which deliberately does not fail.\n *\n * The source string is placeholder-correct BY CONSTRUCTION — it is the string\n * the expected token set was extracted from — so this makes the invariant total:\n * every value this function returns carries exactly its source's placeholders.\n */\nexport function assembleTranslatedChunkResult(args: {\n keys: readonly string[];\n sourceEntries: Readonly<Record<string, string>>;\n translatedValues: Readonly<Record<string, string | undefined>>;\n}): TranslatedChunkAssembly {\n const { keys, sourceEntries, translatedValues } = args;\n\n const values: Record<string, string> = {};\n const rejectedDrifts: PlaceholderDrift[] = [];\n const missingKeys: string[] = [];\n\n for (const key of keys) {\n const source = sourceEntries[key];\n const value = translatedValues[key];\n\n if (typeof value !== 'string' || value.length === 0) {\n missingKeys.push(key);\n if (typeof source === 'string') values[key] = source;\n continue;\n }\n\n // No source to compare against: there is nothing to preserve and nothing to\n // fall back to either, so the returned value stands as the only candidate.\n if (typeof source !== 'string') {\n values[key] = value;\n continue;\n }\n\n const drift = comparePlaceholderTokens({ key, expected: extractLabelPlaceholderTokens(source), value });\n if (drift) {\n rejectedDrifts.push(drift);\n values[key] = source;\n continue;\n }\n\n values[key] = value;\n }\n\n return { values, rejectedDrifts, missingKeys };\n}\n"]}
1
+ {"version":3,"file":"label-placeholder-drift.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/label-placeholder-drift.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH;;;;;GAKG;AACH,MAAM,0BAA0B,GAAG,GAAW,EAAE,CAAC,YAAY,CAAC;AAoB9D,+EAA+E;AAC/E,MAAM,UAAU,6BAA6B,CAAC,KAAa;IACzD,MAAM,KAAK,GAAG,0BAA0B,EAAE,CAAC;IAC3C,MAAM,MAAM,GAAG,IAAI,GAAG,EAAU,CAAC;IACjC,IAAI,KAA6B,CAAC;IAClC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI;QAAE,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,CAAC;IACnE,OAAO,CAAC,GAAG,MAAM,CAAC,CAAC;AACrB,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,wBAAwB,CAAC,IAIxC;IACC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IAC5B,MAAM,QAAQ,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7C,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC;IACtC,MAAM,OAAO,GAAG,6BAA6B,CAAC,KAAK,CAAC,CAAC;IACrD,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;IAEpC,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AAM,KAAK,QAAQ,EAAE,CAAC;YAC/B,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;YACpB,SAAS;QACX,CAAC;QAED,MAAM,KAAK,GAAG,wBAAwB,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,6BAA6B,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QACxG,IAAI,KAAK,EAAE,CAAC;YACV,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC3B,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;YACrB,SAAS;QACX,CAAC;QAED,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACtB,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC;AACjD,CAAC","sourcesContent":["/**\n * The ONE implementation of \"do these placeholders match?\", shared by both\n * label-generation orchestrators.\n *\n * # Why it is shared\n *\n * `interpolateLabelParams` substitutes a single-brace `{name}` token only when\n * `name` is a param the render call actually passes. Everything else about a\n * placeholder is a failure mode:\n * - a token OUTSIDE the expected set renders literally to the user (`{limite}`\n * shows up in the UI as those eight characters), and\n * - an expected token that never appears means the runtime value silently\n * never shows.\n *\n * Both orchestrators must enforce that, and they were enforcing it in one place\n * only — labellize. A second, independently written copy in translate would be a\n * second grammar (`\\{(\\w+)\\}` is easy to write subtly differently), a second set\n * of edge cases (duplicate tokens, non-string values) and, in time, a second\n * answer to the same question. So the COMPARISON lives here once; each caller\n * supplies its own notion of what the EXPECTED tokens are, because that is the\n * one thing that genuinely differs between them:\n *\n * | caller | expected tokens come from | applies to |\n * |-----------|------------------------------------------|-------------------------------------|\n * | labellize | the key's DECLARED params (`keyParams`) | param-validated chunks only |\n * | translate | the tokens present in the SOURCE string | EVERY chunk, in every bucket |\n *\n * The translate side is source-scanned rather than `keyParams`-driven on purpose\n * — it mirrors exactly what `buildTranslatePrompt` tells the model to preserve,\n * and it therefore works for buckets that thread no declared params at all\n * (where `keyParams` is absent and labellize's check correctly stands down).\n */\n\n/**\n * The runtime's token grammar, mirrored so a check can never disagree with what\n * will actually be interpolated. Kept as a factory rather than a shared\n * `RegExp` constant: a `g`-flagged regex carries mutable `lastIndex`, and a\n * module-level one shared across calls is a classic source of skipped matches.\n */\nconst buildPlaceholderTokenRegex = (): RegExp => /\\{(\\w+)\\}/g;\n\n/**\n * One label value whose placeholders do not match the tokens expected of it.\n *\n * `unexpected` = emitted but not expected (renders literally to the user);\n * `missing` = expected but never emitted (the runtime value silently won't show).\n *\n * `expected` is deliberately NOT called `declared`: for a translation the\n * expectation comes from the source string, not from a declaration.\n */\nexport interface PlaceholderDrift {\n key: string;\n expected: string[];\n emitted: string[];\n unexpected: string[];\n missing: string[];\n value: string;\n}\n\n/** Every distinct single-brace token in `value`, in first-appearance order. */\nexport function extractLabelPlaceholderTokens(value: string): string[] {\n const regex = buildPlaceholderTokenRegex();\n const tokens = new Set<string>();\n let match: RegExpExecArray | null;\n while ((match = regex.exec(value)) !== null) tokens.add(match[1]!);\n return [...tokens];\n}\n\n/**\n * Compare one value's emitted tokens against the tokens expected of it.\n * Returns `undefined` when they agree — the common path — so callers can build\n * a drift list by filtering, and an empty list unambiguously means \"clean\".\n *\n * A key with no expected tokens is held to \"must contain no placeholder at\n * all\", which is what catches a plain-text label drifting to `{value}`.\n */\nexport function comparePlaceholderTokens(args: {\n key: string;\n expected: readonly string[];\n value: string;\n}): PlaceholderDrift | undefined {\n const { key, value } = args;\n const expected = [...new Set(args.expected)];\n const expectedSet = new Set(expected);\n const emitted = extractLabelPlaceholderTokens(value);\n const emittedSet = new Set(emitted);\n\n const unexpected = emitted.filter((token) => !expectedSet.has(token));\n const missing = expected.filter((token) => !emittedSet.has(token));\n if (unexpected.length === 0 && missing.length === 0) return undefined;\n return { key, expected, emitted, unexpected, missing, value };\n}\n\n/**\n * Labellize's expectation: emitted tokens must equal the key's DECLARED params.\n *\n * `keyParams` absent means the bucket does not thread declared params, so there\n * is nothing to compare against and the check stands down — the caller's\n * pre-existing contract, preserved verbatim.\n */\nexport function detectDeclaredPlaceholderDrift(args: {\n keys: readonly string[];\n keyParams: Readonly<Record<string, readonly string[]>> | undefined;\n generated: Readonly<Record<string, string>>;\n}): PlaceholderDrift[] {\n const { keys, keyParams, generated } = args;\n if (!keyParams) return [];\n\n const drifts: PlaceholderDrift[] = [];\n for (const key of keys) {\n const value = generated[key];\n if (typeof value !== 'string') continue;\n const drift = comparePlaceholderTokens({ key, expected: keyParams[key] ?? [], value });\n if (drift) drifts.push(drift);\n }\n return drifts;\n}\n\n/**\n * Translate's expectation: a translated value must carry EXACTLY the tokens its\n * SOURCE value carries — no more, no fewer. That is precisely the contract\n * `buildTranslatePrompt`'s \"# Variable keys — DO NOT translate\" block states to\n * the model, and until now nothing checked the answer against it.\n *\n * A key with no source entry is skipped rather than held to \"no placeholders\":\n * there is no source to compare against, and such a key is already handled by\n * the missing-key fallback.\n */\nexport function detectTranslationPlaceholderDrift(args: {\n keys: readonly string[];\n sourceEntries: Readonly<Record<string, string>>;\n translated: Readonly<Record<string, string>>;\n}): PlaceholderDrift[] {\n const { keys, sourceEntries, translated } = args;\n\n const drifts: PlaceholderDrift[] = [];\n for (const key of keys) {\n const value = translated[key];\n const source = sourceEntries[key];\n if (typeof value !== 'string' || typeof source !== 'string') continue;\n const drift = comparePlaceholderTokens({ key, expected: extractLabelPlaceholderTokens(source), value });\n if (drift) drifts.push(drift);\n }\n return drifts;\n}\n\n/** The outcome of assembling one translated chunk's on-disk values. */\nexport interface TranslatedChunkAssembly {\n /** What will be written for this chunk. Every value here is placeholder-correct. */\n readonly values: Record<string, string>;\n /**\n * Keys whose returned translation was REJECTED for placeholder drift and\n * replaced by the source string. Empty on the healthy path.\n */\n readonly rejectedDrifts: readonly PlaceholderDrift[];\n /** Keys that arrived as no usable string at all and fell back to the source string. */\n readonly missingKeys: readonly string[];\n}\n\n/**\n * Assemble the values a translated chunk will write, enforcing the placeholder\n * contract as it goes.\n *\n * Two distinct fallbacks land on the SAME value — the source string — for two\n * different reasons, and the caller reports them separately:\n *\n * - `missingKeys`: the model never returned a usable string (the pre-existing\n * behaviour; the repair loop has already spent its budget on these).\n * - `rejectedDrifts`: the model DID return a string and its placeholders do\n * not match the source's. This is the case that used to be written straight\n * through, and it is the worse of the two: an untranslated English label\n * still renders correctly, whereas `Limite atteinte : {limite}` renders the\n * eight literal characters `{limite}` to a user and drops the number.\n *\n * Falling back to the source is chosen over three alternatives:\n * - KEEPING the drifted translation (what labellize does with its persisted\n * drift, and what translate did implicitly): labellize writes into the\n * PRIMARY file, where a drifted token is the only text there is and a loud\n * on-disk signal beats an empty label. Translate always has a known-good\n * alternative sitting right there, so there is no reason to ship the broken\n * one.\n * - OMITTING the key: the planned-key set is written as a complete locale\n * bundle, nothing else in this orchestrator produces an absent planned key,\n * and an absent key is a different product (a different runtime path) from a\n * present-but-untranslated one.\n * - FAILING the unit: it would discard every good translation in the chunk\n * over one cosmetic key, and it is asymmetric with the missing-key path,\n * which deliberately does not fail.\n *\n * The source string is placeholder-correct BY CONSTRUCTION — it is the string\n * the expected token set was extracted from — so this makes the invariant total:\n * every value this function returns carries exactly its source's placeholders.\n */\nexport function assembleTranslatedChunkResult(args: {\n keys: readonly string[];\n sourceEntries: Readonly<Record<string, string>>;\n translatedValues: Readonly<Record<string, string | undefined>>;\n}): TranslatedChunkAssembly {\n const { keys, sourceEntries, translatedValues } = args;\n\n const values: Record<string, string> = {};\n const rejectedDrifts: PlaceholderDrift[] = [];\n const missingKeys: string[] = [];\n\n for (const key of keys) {\n const source = sourceEntries[key];\n const value = translatedValues[key];\n\n if (typeof value !== 'string' || value.length === 0) {\n missingKeys.push(key);\n if (typeof source === 'string') values[key] = source;\n continue;\n }\n\n // No source to compare against: there is nothing to preserve and nothing to\n // fall back to either, so the returned value stands as the only candidate.\n if (typeof source !== 'string') {\n values[key] = value;\n continue;\n }\n\n const drift = comparePlaceholderTokens({ key, expected: extractLabelPlaceholderTokens(source), value });\n if (drift) {\n rejectedDrifts.push(drift);\n values[key] = source;\n continue;\n }\n\n values[key] = value;\n }\n\n return { values, rejectedDrifts, missingKeys };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"orphan-label-artifacts.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/orphan-label-artifacts.utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,2BAA2B,EAC3B,aAAa,EACd,MAAM,iCAAiC,CAAC;AAUzC;;;;;;;;GAQG;AACH,oBAAY,2BAA2B;IACrC,yFAAyF;IACzF,QAAQ,aAAa;IACrB,qFAAqF;IACrF,wBAAwB,6BAA6B;IACrD;;;;;;OAMG;IACH,uBAAuB,4BAA4B;CACpD;AAED,+DAA+D;AAC/D,MAAM,WAAW,kBAAkB;IACjC,oEAAoE;IACpE,YAAY,EAAE,MAAM,CAAC;IACrB,yFAAyF;IACzF,MAAM,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,2BAA2B,CAAC;IACrC,6EAA6E;IAC7E,cAAc,EAAE,SAAS,2BAA2B,EAAE,CAAC;IACvD;;;;OAIG;IACH,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,qEAAqE;IACrE,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,kFAAkF;IAClF,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,MAAM,GACf;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAU9C;AAED;;;;;;;;GAQG;AACH,wBAAsB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CA2BhG;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE;IAChD,YAAY,EAAE,SAAS,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,cAAc,CAAC,EAAE,CAAC;IACpE,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,aAAa,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAC7C,cAAc,EAAE,SAAS,2BAA2B,EAAE,CAAC;CACxD,GAAG,0BAA0B,CA2B7B;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,0BAA0B,GAAG,MAAM,CAqBvF"}
1
+ {"version":3,"file":"orphan-label-artifacts.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/orphan-label-artifacts.utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,2BAA2B,EAC3B,aAAa,EACd,MAAM,iCAAiC,CAAC;AAWzC;;;;;;;;GAQG;AACH,oBAAY,2BAA2B;IACrC,yFAAyF;IACzF,QAAQ,aAAa;IACrB,qFAAqF;IACrF,wBAAwB,6BAA6B;IACrD;;;;;;OAMG;IACH,uBAAuB,4BAA4B;CACpD;AAED,+DAA+D;AAC/D,MAAM,WAAW,kBAAkB;IACjC,oEAAoE;IACpE,YAAY,EAAE,MAAM,CAAC;IACrB,yFAAyF;IACzF,MAAM,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,2BAA2B,CAAC;IACrC,6EAA6E;IAC7E,cAAc,EAAE,SAAS,2BAA2B,EAAE,CAAC;IACvD;;;;OAIG;IACH,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,qEAAqE;IACrE,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,kFAAkF;IAClF,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,MAAM,GACf;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAU9C;AAED;;;;;;;;GAQG;AACH,wBAAsB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CA2BhG;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE;IAChD,YAAY,EAAE,SAAS,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,cAAc,CAAC,EAAE,CAAC;IACpE,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,aAAa,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAC7C,cAAc,EAAE,SAAS,2BAA2B,EAAE,CAAC;CACxD,GAAG,0BAA0B,CA8B7B;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,0BAA0B,GAAG,MAAM,CAqBvF"}
@@ -1,6 +1,7 @@
1
1
  import * as fs from 'node:fs/promises';
2
2
  import * as path from 'node:path';
3
3
  import { LANGUAGE_INFO_MAP } from '@wildo-ai/presets-components-models';
4
+ import { isEmailTemplateLabellingUnitId } from '../models/email-template-labelling-unit.models.js';
4
5
  /**
5
6
  * Every locale code the framework recognises. Total over `AvailableLanguage`
6
7
  * rather than a hand-kept list, so a language added to the vocabulary tomorrow
@@ -139,7 +140,10 @@ export function computeOrphanLabelArtifacts(args) {
139
140
  orphanFiles: existingFiles
140
141
  .filter((file) => !plannedPairs.has(`${file.bucket}/${file.slug}`))
141
142
  .map((file) => file.relativePath),
142
- orphanLockUnitIds: [...lockUnitIds].filter((id) => !plannedIds.has(id)).sort(),
143
+ // Email template rows (#1908) belong to the translate pipeline's email lane, which `planAllUnits()`
144
+ // never plans by design (an email's primary words are authored). Judged against this plan, every
145
+ // translated email would be named an orphan.
146
+ orphanLockUnitIds: [...lockUnitIds].filter((id) => !plannedIds.has(id) && !isEmailTemplateLabellingUnitId(id)).sort(),
143
147
  scannedFileCount: existingFiles.length,
144
148
  };
145
149
  }
@@ -1 +1 @@
1
- {"version":3,"file":"orphan-label-artifacts.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/orphan-label-artifacts.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAMxE;;;;;GAKG;AACH,MAAM,kBAAkB,GAAwB,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAExF;;;;;;;;GAQG;AACH,MAAM,CAAN,IAAY,2BAaX;AAbD,WAAY,2BAA2B;IACrC,yFAAyF;IACzF,oDAAqB,CAAA;IACrB,qFAAqF;IACrF,oFAAqD,CAAA;IACrD;;;;;;OAMG;IACH,kFAAmD,CAAA;AACrD,CAAC,EAbW,2BAA2B,KAA3B,2BAA2B,QAatC;AA0ED;;;;;;;;;GASG;AACH,MAAM,UAAU,2BAA2B,CACzC,QAAgB;IAEhB,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAChD,MAAM,gBAAgB,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1D,MAAM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AAK,KAAK,CAAC,EAAE,CAAC;QAChB,OAAO,6BAA6B,MAAM,CAAC,gBAAgB,6CAA6C,CAAC;IAC3G,CAAC;IACD,OAAO;QACL,GAAG,KAAK,gGAAgG;QACxG,MAAM,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;QAC9E,MAAM,CAAC,iBAAiB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,eAAe,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;KAChG;SACE,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;SACjC,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC","sourcesContent":["import * as fs from 'node:fs/promises';\nimport * as path from 'node:path';\nimport { LANGUAGE_INFO_MAP } from '@wildo-ai/presets-components-models';\nimport type {\n LabellingPlanIncompleteness,\n LabellingUnit,\n} from '../models/labelling-unit.models';\n\n/**\n * Every locale code the framework recognises. Total over `AvailableLanguage`\n * rather than a hand-kept list, so a language added to the vocabulary tomorrow\n * is parsed as a locale by every existing installation instead of being\n * silently misread as part of a slug.\n */\nconst KNOWN_LOCALE_CODES: ReadonlySet<string> = new Set(Object.keys(LANGUAGE_INFO_MAP));\n\n/**\n * Whether the orphan question could be answered at all on this run.\n *\n * The two members are NOT \"found some\" / \"found none\" — that distinction is\n * `orphanFiles.length`. They separate a judgement from a REFUSAL to judge,\n * because the same empty `orphanFiles` array means opposite things in the two\n * cases and a consumer that conflated them would read \"nothing is stale\" off a\n * run that never looked.\n */\nexport enum OrphanLabelArtifactsOutcome {\n /** The planned unit set was total; `orphanFiles` / `orphanLockUnitIds` are a verdict. */\n REPORTED = 'reported',\n /** The plan declared itself incomplete; nothing was judged. See `incompleteness`. */\n UNAVAILABLE_PARTIAL_PLAN = 'unavailable-partial-plan',\n /**\n * The plan may have been fine; reading the i18n state was not — the directory\n * scan or the lock read threw. Distinct from `UNAVAILABLE_PARTIAL_PLAN`\n * because the remedies are different (repair the filesystem/lock vs. start the\n * frontend / bind the registry), and because merging them would let a broken\n * read masquerade as a known-partial plan. See `scanFailure`.\n */\n UNAVAILABLE_SCAN_FAILED = 'unavailable-scan-failed',\n}\n\n/** One generated label file discovered under the i18n root. */\nexport interface GeneratedLabelFile {\n /** Path relative to the i18n root, e.g. `resources/todos.en.ts`. */\n relativePath: string;\n /** Directory segment, e.g. `resources` — matches `LabellingUnit.filePathHint.bucket`. */\n bucket: string;\n /** File stem before the locale, e.g. `todos` — matches `filePathHint.slug`. */\n slug: string;\n /** Locale segment, guaranteed to be a member of `AvailableLanguage`. */\n locale: string;\n}\n\n/**\n * What label generation LEFT BEHIND: files and lock rows belonging to units the\n * application no longer plans.\n *\n * ## Why this reports and does not delete\n *\n * Key pruning inside a unit's file is safe because the unit was just planned and\n * regenerated — the planned key set is authoritative BY CONSTRUCTION for that\n * one unit. Unit pruning is a different question and has no such guarantee: it\n * asks whether a unit the run never mentioned still EXISTS, and the plan answers\n * that only as well as every one of its families could enumerate itself.\n *\n * Measured on the live planner, the frontend key snapshot degrades to EMPTY on\n * three separate conditions (no `SAAS_APP` frontend service, a failed\n * introspection subprocess, a malformed payload), each a logged warning rather\n * than a throw. On any of them all four frontend-derived buckets disappear from\n * the plan — on Wonder Todos that is `composite_views`, `views` and\n * `sidebar_sections`, three buckets of live, LLM-generated copy that a prune\n * would delete for the sole reason that the frontend dev server was not running.\n * Two more families (`milestones`, `billing`) vanish when their registry is not\n * bound in the container.\n *\n * Those five are DECLARED, so this report suppresses itself on them\n * ({@link OrphanLabelArtifactsOutcome.UNAVAILABLE_PARTIAL_PLAN}). One class is\n * not declarable at all: a resources registry that loaded some of the\n * application's modules reports success with fewer resources, and no signal\n * distinguishes that from a resource genuinely removed. That residual is why the\n * outcome of this unit is a REPORT — a human reading a named list of six files\n * loses nothing if the list is wrong, and an unlink does not have that property.\n *\n * ## What would make deletion safe\n *\n * A plan whose totality is established rather than assumed: the resources\n * registry would have to report the module set it loaded against the module set\n * the application declares, and every remaining family would have to answer\n * \"I enumerate my whole space\" rather than merely \"I did not fail\". Given that,\n * a prune gated on `outcome === REPORTED` becomes defensible — and should still\n * be an explicit operator verb, never a side effect of a generation run.\n */\nexport interface OrphanLabelArtifactsReport {\n outcome: OrphanLabelArtifactsOutcome;\n /** The declared degradations. Empty exactly when `outcome` is `REPORTED`. */\n incompleteness: readonly LabellingPlanIncompleteness[];\n /**\n * i18n-root-relative paths of generated label files whose `(bucket, slug)`\n * belongs to no planned unit — BASE and TRANSLATION files alike (see the\n * translation note on {@link computeOrphanLabelArtifacts}).\n */\n orphanFiles: readonly string[];\n /** Lock `sections.i18n.units` ids that belong to no planned unit. */\n orphanLockUnitIds: readonly string[];\n /** Count of generated files considered — the denominator behind `orphanFiles`. */\n scannedFileCount: number;\n /**\n * Why the i18n state could not be READ, when that is what stopped the verdict.\n * Set exactly when `outcome` is `UNAVAILABLE_SCAN_FAILED`.\n */\n scanFailure?: string;\n}\n\n/**\n * Parse `<slug>.<locale>.ts` into its parts, or `undefined` when the name is not\n * a generated per-unit label file.\n *\n * Deliberately conservative in the ONE direction that matters: the locale\n * segment must be a known `AvailableLanguage` code. A hand-authored neighbour\n * (`index.ts`, a helper, anything whose penultimate segment is not a locale) is\n * therefore never parsed, so it can never be named an orphan. A slug containing\n * dots keeps them — only the LAST two dot-separated segments are structural.\n */\nexport function parseGeneratedLabelFileName(\n fileName: string,\n): { slug: string; locale: string } | undefined {\n if (!fileName.endsWith('.ts')) return undefined;\n const withoutExtension = fileName.slice(0, -'.ts'.length);\n const lastDot = withoutExtension.lastIndexOf('.');\n if (lastDot <= 0) return undefined;\n const locale = withoutExtension.slice(lastDot + 1);\n if (!KNOWN_LOCALE_CODES.has(locale)) return undefined;\n const slug = withoutExtension.slice(0, lastDot);\n if (slug.length === 0) return undefined;\n return { slug, locale };\n}\n\n/**\n * Walk `<i18nRoot>/<bucket>/<slug>.<locale>.ts` and return every generated label\n * file. One level deep, matching the layout `resolvePerUnitFilePath` writes.\n *\n * A missing root yields an empty list (a fresh application has generated\n * nothing yet); any other filesystem error propagates, because \"I could not read\n * the directory\" must never be reported to a caller as \"the directory is empty\"\n * — that is the reading a prune would act on.\n */\nexport async function collectGeneratedLabelFiles(i18nRoot: string): Promise<GeneratedLabelFile[]> {\n let bucketEntries;\n try {\n bucketEntries = await fs.readdir(i18nRoot, { withFileTypes: true });\n } catch (err: unknown) {\n if ((err as NodeJS.ErrnoException)?.code === 'ENOENT') return [];\n throw err;\n }\n\n const files: GeneratedLabelFile[] = [];\n for (const bucketEntry of bucketEntries) {\n if (!bucketEntry.isDirectory()) continue;\n const bucket = bucketEntry.name;\n const fileEntries = await fs.readdir(path.join(i18nRoot, bucket), { withFileTypes: true });\n for (const fileEntry of fileEntries) {\n if (!fileEntry.isFile()) continue;\n const parsed = parseGeneratedLabelFileName(fileEntry.name);\n if (!parsed) continue;\n files.push({\n relativePath: `${bucket}/${fileEntry.name}`,\n bucket,\n slug: parsed.slug,\n locale: parsed.locale,\n });\n }\n }\n return files.sort((a, b) => a.relativePath.localeCompare(b.relativePath));\n}\n\n/**\n * Decide which generated files and lock rows are orphaned by the current plan.\n *\n * Pure — the caller supplies the scan and the plan, so the decision is testable\n * without a filesystem and cannot be influenced by anything it did not receive.\n *\n * **Unit identity is `(bucket, slug)`, not a file name**, which is what makes one\n * sweep cover BOTH orphan shapes the pipeline can produce. A unit's base file\n * (`<slug>.<primaryLocale>.ts`) and every translation of it\n * (`<slug>.<targetLocale>.ts`) share that pair, so a unit that stops being\n * planned surfaces all of its files here at once — the translation files are not\n * a second mechanism needing a second answer. Nothing is judged per-locale: a\n * locale that is still on disk but no longer configured is a DIFFERENT question,\n * and it is deliberately not answered here because the lock's `trackedLocales`\n * only ever grows (`upsertI18nUnit` unions it) and therefore cannot serve as the\n * denominator for \"this locale was dropped\".\n *\n * @param incompleteness Declared degradations from `planAllUnitsWithCompleteness`.\n * Non-empty suppresses the whole verdict rather than only the suppressed\n * buckets: a family that could not enumerate itself is also unable to promise\n * that its units all live in the buckets it names.\n */\nexport function computeOrphanLabelArtifacts(args: {\n plannedUnits: readonly Pick<LabellingUnit, 'id' | 'filePathHint'>[];\n lockUnitIds: readonly string[];\n existingFiles: readonly GeneratedLabelFile[];\n incompleteness: readonly LabellingPlanIncompleteness[];\n}): OrphanLabelArtifactsReport {\n const { plannedUnits, lockUnitIds, existingFiles, incompleteness } = args;\n\n if (incompleteness.length > 0) {\n return {\n outcome: OrphanLabelArtifactsOutcome.UNAVAILABLE_PARTIAL_PLAN,\n incompleteness,\n orphanFiles: [],\n orphanLockUnitIds: [],\n scannedFileCount: existingFiles.length,\n };\n }\n\n const plannedPairs = new Set(\n plannedUnits.map((unit) => `${unit.filePathHint.bucket}/${unit.filePathHint.slug}`),\n );\n const plannedIds = new Set(plannedUnits.map((unit) => unit.id));\n\n return {\n outcome: OrphanLabelArtifactsOutcome.REPORTED,\n incompleteness: [],\n orphanFiles: existingFiles\n .filter((file) => !plannedPairs.has(`${file.bucket}/${file.slug}`))\n .map((file) => file.relativePath),\n orphanLockUnitIds: [...lockUnitIds].filter((id) => !plannedIds.has(id)).sort(),\n scannedFileCount: existingFiles.length,\n };\n}\n\n/**\n * One operator-facing line summarising a report, for the run log. Names the\n * artifacts rather than counting them: the whole value of a report over a delete\n * is that a human can look at the list and recognise a file that should not be\n * on it.\n */\nexport function describeOrphanLabelArtifacts(report: OrphanLabelArtifactsReport): string {\n if (report.outcome === OrphanLabelArtifactsOutcome.UNAVAILABLE_SCAN_FAILED) {\n return `Stale-unit detection skipped — the i18n state could not be read: ${report.scanFailure ?? 'unknown error'}`;\n }\n if (report.outcome === OrphanLabelArtifactsOutcome.UNAVAILABLE_PARTIAL_PLAN) {\n const reasons = report.incompleteness\n .map((entry) => `${entry.reason} (suppresses: ${entry.suppressedBuckets.join(', ') || 'none'})`)\n .join('; ');\n return `Stale-unit detection skipped — the plan is incomplete, so absence proves nothing: ${reasons}`;\n }\n const total = report.orphanFiles.length + report.orphanLockUnitIds.length;\n if (total === 0) {\n return `No stale label units: all ${report.scannedFileCount} generated file(s) belong to a planned unit`;\n }\n return [\n `${total} stale label artifact(s) from unit(s) no longer planned — NOT removed, review before deleting.`,\n report.orphanFiles.length > 0 ? `Files: ${report.orphanFiles.join(', ')}` : '',\n report.orphanLockUnitIds.length > 0 ? `Lock units: ${report.orphanLockUnitIds.join(', ')}` : '',\n ]\n .filter((part) => part.length > 0)\n .join(' ');\n}\n"]}
1
+ {"version":3,"file":"orphan-label-artifacts.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/orphan-label-artifacts.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAKxE,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAEhG;;;;;GAKG;AACH,MAAM,kBAAkB,GAAwB,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAExF;;;;;;;;GAQG;AACH,MAAM,CAAN,IAAY,2BAaX;AAbD,WAAY,2BAA2B;IACrC,yFAAyF;IACzF,oDAAqB,CAAA;IACrB,qFAAqF;IACrF,oFAAqD,CAAA;IACrD;;;;;;OAMG;IACH,kFAAmD,CAAA;AACrD,CAAC,EAbW,2BAA2B,KAA3B,2BAA2B,QAatC;AA0ED;;;;;;;;;GASG;AACH,MAAM,UAAU,2BAA2B,CACzC,QAAgB;IAEhB,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAChD,MAAM,gBAAgB,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CAAC,CAAC;QACd,OAAO,qFAAqF,OAAO,EAAE,CAAC;IACxG,CAAC;IACD,MAAM,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,GAAG,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC;IAC1E,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;QAChB,OAAO,6BAA6B,MAAM,CAAC,gBAAgB,6CAA6C,CAAC;IAC3G,CAAC;IACD,OAAO;QACL,GAAG,KAAK,gGAAgG;QACxG,MAAM,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;QAC9E,MAAM,CAAC,iBAAiB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,eAAe,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;KAChG;SACE,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;SACjC,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC","sourcesContent":["import * as fs from 'node:fs/promises';\nimport * as path from 'node:path';\nimport { LANGUAGE_INFO_MAP } from '@wildo-ai/presets-components-models';\nimport type {\n LabellingPlanIncompleteness,\n LabellingUnit,\n} from '../models/labelling-unit.models';\nimport { isEmailTemplateLabellingUnitId } from '../models/email-template-labelling-unit.models';\n\n/**\n * Every locale code the framework recognises. Total over `AvailableLanguage`\n * rather than a hand-kept list, so a language added to the vocabulary tomorrow\n * is parsed as a locale by every existing installation instead of being\n * silently misread as part of a slug.\n */\nconst KNOWN_LOCALE_CODES: ReadonlySet<string> = new Set(Object.keys(LANGUAGE_INFO_MAP));\n\n/**\n * Whether the orphan question could be answered at all on this run.\n *\n * The two members are NOT \"found some\" / \"found none\" — that distinction is\n * `orphanFiles.length`. They separate a judgement from a REFUSAL to judge,\n * because the same empty `orphanFiles` array means opposite things in the two\n * cases and a consumer that conflated them would read \"nothing is stale\" off a\n * run that never looked.\n */\nexport enum OrphanLabelArtifactsOutcome {\n /** The planned unit set was total; `orphanFiles` / `orphanLockUnitIds` are a verdict. */\n REPORTED = 'reported',\n /** The plan declared itself incomplete; nothing was judged. See `incompleteness`. */\n UNAVAILABLE_PARTIAL_PLAN = 'unavailable-partial-plan',\n /**\n * The plan may have been fine; reading the i18n state was not — the directory\n * scan or the lock read threw. Distinct from `UNAVAILABLE_PARTIAL_PLAN`\n * because the remedies are different (repair the filesystem/lock vs. start the\n * frontend / bind the registry), and because merging them would let a broken\n * read masquerade as a known-partial plan. See `scanFailure`.\n */\n UNAVAILABLE_SCAN_FAILED = 'unavailable-scan-failed',\n}\n\n/** One generated label file discovered under the i18n root. */\nexport interface GeneratedLabelFile {\n /** Path relative to the i18n root, e.g. `resources/todos.en.ts`. */\n relativePath: string;\n /** Directory segment, e.g. `resources` — matches `LabellingUnit.filePathHint.bucket`. */\n bucket: string;\n /** File stem before the locale, e.g. `todos` — matches `filePathHint.slug`. */\n slug: string;\n /** Locale segment, guaranteed to be a member of `AvailableLanguage`. */\n locale: string;\n}\n\n/**\n * What label generation LEFT BEHIND: files and lock rows belonging to units the\n * application no longer plans.\n *\n * ## Why this reports and does not delete\n *\n * Key pruning inside a unit's file is safe because the unit was just planned and\n * regenerated — the planned key set is authoritative BY CONSTRUCTION for that\n * one unit. Unit pruning is a different question and has no such guarantee: it\n * asks whether a unit the run never mentioned still EXISTS, and the plan answers\n * that only as well as every one of its families could enumerate itself.\n *\n * Measured on the live planner, the frontend key snapshot degrades to EMPTY on\n * three separate conditions (no `SAAS_APP` frontend service, a failed\n * introspection subprocess, a malformed payload), each a logged warning rather\n * than a throw. On any of them all four frontend-derived buckets disappear from\n * the plan — on Wonder Todos that is `composite_views`, `views` and\n * `sidebar_sections`, three buckets of live, LLM-generated copy that a prune\n * would delete for the sole reason that the frontend dev server was not running.\n * Two more families (`milestones`, `billing`) vanish when their registry is not\n * bound in the container.\n *\n * Those five are DECLARED, so this report suppresses itself on them\n * ({@link OrphanLabelArtifactsOutcome.UNAVAILABLE_PARTIAL_PLAN}). One class is\n * not declarable at all: a resources registry that loaded some of the\n * application's modules reports success with fewer resources, and no signal\n * distinguishes that from a resource genuinely removed. That residual is why the\n * outcome of this unit is a REPORT — a human reading a named list of six files\n * loses nothing if the list is wrong, and an unlink does not have that property.\n *\n * ## What would make deletion safe\n *\n * A plan whose totality is established rather than assumed: the resources\n * registry would have to report the module set it loaded against the module set\n * the application declares, and every remaining family would have to answer\n * \"I enumerate my whole space\" rather than merely \"I did not fail\". Given that,\n * a prune gated on `outcome === REPORTED` becomes defensible — and should still\n * be an explicit operator verb, never a side effect of a generation run.\n */\nexport interface OrphanLabelArtifactsReport {\n outcome: OrphanLabelArtifactsOutcome;\n /** The declared degradations. Empty exactly when `outcome` is `REPORTED`. */\n incompleteness: readonly LabellingPlanIncompleteness[];\n /**\n * i18n-root-relative paths of generated label files whose `(bucket, slug)`\n * belongs to no planned unit — BASE and TRANSLATION files alike (see the\n * translation note on {@link computeOrphanLabelArtifacts}).\n */\n orphanFiles: readonly string[];\n /** Lock `sections.i18n.units` ids that belong to no planned unit. */\n orphanLockUnitIds: readonly string[];\n /** Count of generated files considered — the denominator behind `orphanFiles`. */\n scannedFileCount: number;\n /**\n * Why the i18n state could not be READ, when that is what stopped the verdict.\n * Set exactly when `outcome` is `UNAVAILABLE_SCAN_FAILED`.\n */\n scanFailure?: string;\n}\n\n/**\n * Parse `<slug>.<locale>.ts` into its parts, or `undefined` when the name is not\n * a generated per-unit label file.\n *\n * Deliberately conservative in the ONE direction that matters: the locale\n * segment must be a known `AvailableLanguage` code. A hand-authored neighbour\n * (`index.ts`, a helper, anything whose penultimate segment is not a locale) is\n * therefore never parsed, so it can never be named an orphan. A slug containing\n * dots keeps them — only the LAST two dot-separated segments are structural.\n */\nexport function parseGeneratedLabelFileName(\n fileName: string,\n): { slug: string; locale: string } | undefined {\n if (!fileName.endsWith('.ts')) return undefined;\n const withoutExtension = fileName.slice(0, -'.ts'.length);\n const lastDot = withoutExtension.lastIndexOf('.');\n if (lastDot <= 0) return undefined;\n const locale = withoutExtension.slice(lastDot + 1);\n if (!KNOWN_LOCALE_CODES.has(locale)) return undefined;\n const slug = withoutExtension.slice(0, lastDot);\n if (slug.length === 0) return undefined;\n return { slug, locale };\n}\n\n/**\n * Walk `<i18nRoot>/<bucket>/<slug>.<locale>.ts` and return every generated label\n * file. One level deep, matching the layout `resolvePerUnitFilePath` writes.\n *\n * A missing root yields an empty list (a fresh application has generated\n * nothing yet); any other filesystem error propagates, because \"I could not read\n * the directory\" must never be reported to a caller as \"the directory is empty\"\n * — that is the reading a prune would act on.\n */\nexport async function collectGeneratedLabelFiles(i18nRoot: string): Promise<GeneratedLabelFile[]> {\n let bucketEntries;\n try {\n bucketEntries = await fs.readdir(i18nRoot, { withFileTypes: true });\n } catch (err: unknown) {\n if ((err as NodeJS.ErrnoException)?.code === 'ENOENT') return [];\n throw err;\n }\n\n const files: GeneratedLabelFile[] = [];\n for (const bucketEntry of bucketEntries) {\n if (!bucketEntry.isDirectory()) continue;\n const bucket = bucketEntry.name;\n const fileEntries = await fs.readdir(path.join(i18nRoot, bucket), { withFileTypes: true });\n for (const fileEntry of fileEntries) {\n if (!fileEntry.isFile()) continue;\n const parsed = parseGeneratedLabelFileName(fileEntry.name);\n if (!parsed) continue;\n files.push({\n relativePath: `${bucket}/${fileEntry.name}`,\n bucket,\n slug: parsed.slug,\n locale: parsed.locale,\n });\n }\n }\n return files.sort((a, b) => a.relativePath.localeCompare(b.relativePath));\n}\n\n/**\n * Decide which generated files and lock rows are orphaned by the current plan.\n *\n * Pure — the caller supplies the scan and the plan, so the decision is testable\n * without a filesystem and cannot be influenced by anything it did not receive.\n *\n * **Unit identity is `(bucket, slug)`, not a file name**, which is what makes one\n * sweep cover BOTH orphan shapes the pipeline can produce. A unit's base file\n * (`<slug>.<primaryLocale>.ts`) and every translation of it\n * (`<slug>.<targetLocale>.ts`) share that pair, so a unit that stops being\n * planned surfaces all of its files here at once — the translation files are not\n * a second mechanism needing a second answer. Nothing is judged per-locale: a\n * locale that is still on disk but no longer configured is a DIFFERENT question,\n * and it is deliberately not answered here because the lock's `trackedLocales`\n * only ever grows (`upsertI18nUnit` unions it) and therefore cannot serve as the\n * denominator for \"this locale was dropped\".\n *\n * @param incompleteness Declared degradations from `planAllUnitsWithCompleteness`.\n * Non-empty suppresses the whole verdict rather than only the suppressed\n * buckets: a family that could not enumerate itself is also unable to promise\n * that its units all live in the buckets it names.\n */\nexport function computeOrphanLabelArtifacts(args: {\n plannedUnits: readonly Pick<LabellingUnit, 'id' | 'filePathHint'>[];\n lockUnitIds: readonly string[];\n existingFiles: readonly GeneratedLabelFile[];\n incompleteness: readonly LabellingPlanIncompleteness[];\n}): OrphanLabelArtifactsReport {\n const { plannedUnits, lockUnitIds, existingFiles, incompleteness } = args;\n\n if (incompleteness.length > 0) {\n return {\n outcome: OrphanLabelArtifactsOutcome.UNAVAILABLE_PARTIAL_PLAN,\n incompleteness,\n orphanFiles: [],\n orphanLockUnitIds: [],\n scannedFileCount: existingFiles.length,\n };\n }\n\n const plannedPairs = new Set(\n plannedUnits.map((unit) => `${unit.filePathHint.bucket}/${unit.filePathHint.slug}`),\n );\n const plannedIds = new Set(plannedUnits.map((unit) => unit.id));\n\n return {\n outcome: OrphanLabelArtifactsOutcome.REPORTED,\n incompleteness: [],\n orphanFiles: existingFiles\n .filter((file) => !plannedPairs.has(`${file.bucket}/${file.slug}`))\n .map((file) => file.relativePath),\n // Email template rows (#1908) belong to the translate pipeline's email lane, which `planAllUnits()`\n // never plans by design (an email's primary words are authored). Judged against this plan, every\n // translated email would be named an orphan.\n orphanLockUnitIds: [...lockUnitIds].filter((id) => !plannedIds.has(id) && !isEmailTemplateLabellingUnitId(id)).sort(),\n scannedFileCount: existingFiles.length,\n };\n}\n\n/**\n * One operator-facing line summarising a report, for the run log. Names the\n * artifacts rather than counting them: the whole value of a report over a delete\n * is that a human can look at the list and recognise a file that should not be\n * on it.\n */\nexport function describeOrphanLabelArtifacts(report: OrphanLabelArtifactsReport): string {\n if (report.outcome === OrphanLabelArtifactsOutcome.UNAVAILABLE_SCAN_FAILED) {\n return `Stale-unit detection skipped — the i18n state could not be read: ${report.scanFailure ?? 'unknown error'}`;\n }\n if (report.outcome === OrphanLabelArtifactsOutcome.UNAVAILABLE_PARTIAL_PLAN) {\n const reasons = report.incompleteness\n .map((entry) => `${entry.reason} (suppresses: ${entry.suppressedBuckets.join(', ') || 'none'})`)\n .join('; ');\n return `Stale-unit detection skipped — the plan is incomplete, so absence proves nothing: ${reasons}`;\n }\n const total = report.orphanFiles.length + report.orphanLockUnitIds.length;\n if (total === 0) {\n return `No stale label units: all ${report.scannedFileCount} generated file(s) belong to a planned unit`;\n }\n return [\n `${total} stale label artifact(s) from unit(s) no longer planned — NOT removed, review before deleting.`,\n report.orphanFiles.length > 0 ? `Files: ${report.orphanFiles.join(', ')}` : '',\n report.orphanLockUnitIds.length > 0 ? `Lock units: ${report.orphanLockUnitIds.join(', ')}` : '',\n ]\n .filter((part) => part.length > 0)\n .join(' ');\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"per-unit-file.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/per-unit-file.utils.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,IAAI,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;IAC1C,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,mBAAmB,GAAG,MAAM,CAElG;AAED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