@wildo-ai/dev-companion 1.1.6 → 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 (956) 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.map +1 -1
  12. package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
  13. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
  14. package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
  15. package/dist/esm/brand/models/logo-judge.schemas.js.map +1 -1
  16. package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
  17. package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
  18. package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -1
  19. package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -1
  20. package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
  21. package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
  22. package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
  23. package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
  24. package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
  25. package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
  26. package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
  27. package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
  28. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -1
  29. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -1
  30. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  31. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  32. package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -1
  33. package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -1
  34. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
  35. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
  36. package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -1
  37. package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -1
  38. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -1
  39. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
  40. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -1
  41. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -1
  42. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
  43. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
  44. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  45. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  46. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -1
  47. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -1
  48. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
  49. package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
  50. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -1
  51. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -1
  52. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  53. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  54. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  55. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  56. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
  57. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.js.map +1 -1
  58. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
  59. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
  60. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  61. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  62. package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -1
  63. package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -1
  64. package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -1
  65. package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -1
  66. package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
  67. package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.js.map +1 -1
  68. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
  69. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
  70. package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -1
  71. package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -1
  72. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  73. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  74. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
  75. package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
  76. package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
  77. package/dist/esm/core/catalogs/catalog-context.factory.js.map +1 -1
  78. package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
  79. package/dist/esm/core/catalogs/catalog-context.factory.models.js.map +1 -1
  80. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
  81. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.js.map +1 -1
  82. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
  83. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.js.map +1 -1
  84. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
  85. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.js.map +1 -1
  86. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
  87. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.js.map +1 -1
  88. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
  89. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.js.map +1 -1
  90. package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
  91. package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.js.map +1 -1
  92. package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
  93. package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.js.map +1 -1
  94. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
  95. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.js.map +1 -1
  96. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
  97. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.js.map +1 -1
  98. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
  99. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.js.map +1 -1
  100. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -1
  101. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -1
  102. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
  103. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
  104. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
  105. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.js.map +1 -1
  106. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
  107. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.js.map +1 -1
  108. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
  109. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
  110. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -1
  111. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -1
  112. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  113. package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
  114. package/dist/esm/core/context/companion-context.d.ts.map +1 -1
  115. package/dist/esm/core/context/companion-context.js.map +1 -1
  116. package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
  117. package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
  118. package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -1
  119. package/dist/esm/core/context/draft-family-values.companion.js.map +1 -1
  120. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  121. package/dist/esm/core/inject/models/container.js.map +1 -1
  122. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  123. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  124. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  125. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
  126. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  127. package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
  128. package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -1
  129. package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -1
  130. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -1
  131. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -1
  132. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -1
  133. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -1
  134. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
  135. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
  136. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  137. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  138. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  139. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  140. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
  141. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
  142. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  143. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
  144. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
  145. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.js.map +1 -1
  146. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  147. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  148. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
  149. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
  150. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  151. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
  152. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
  153. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -1
  154. package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
  155. package/dist/esm/core/introspection/services/translation-placement.companion.service.js.map +1 -1
  156. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -1
  157. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -1
  158. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
  159. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
  160. package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
  161. package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
  162. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
  163. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.js.map +1 -1
  164. package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
  165. package/dist/esm/core/introspection/subprocess/asset-noop-register.js.map +1 -1
  166. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
  167. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.js.map +1 -1
  168. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
  169. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.js.map +1 -1
  170. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  171. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  172. package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
  173. package/dist/esm/core/introspection/subprocess/companion-introspection-child.js.map +1 -1
  174. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
  175. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.js.map +1 -1
  176. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
  177. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
  178. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
  179. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.js.map +1 -1
  180. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -1
  181. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -1
  182. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
  183. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js.map +1 -1
  184. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
  185. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
  186. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
  187. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
  188. package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
  189. package/dist/esm/core/introspection/subprocess/market-context-block.builder.js.map +1 -1
  190. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
  191. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js.map +1 -1
  192. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
  193. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
  194. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -1
  195. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -1
  196. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  197. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
  198. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -1
  199. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -1
  200. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -1
  201. package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -1
  202. package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -1
  203. package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -1
  204. package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
  205. package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
  206. package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
  207. package/dist/esm/core/lock/wildo-saas-lock.models.js.map +1 -1
  208. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
  209. package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
  210. package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -1
  211. package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -1
  212. package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -1
  213. package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -1
  214. package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -1
  215. package/dist/esm/core/runtime/companion-env-file.js.map +1 -1
  216. package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
  217. package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
  218. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
  219. package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
  220. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -1
  221. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -1
  222. package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
  223. package/dist/esm/core/runtime/models/companion-runtime.models.js.map +1 -1
  224. package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -1
  225. package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -1
  226. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  227. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  228. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
  229. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.js.map +1 -1
  230. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  231. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  232. package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
  233. package/dist/esm/core/runtime/utils/companion-workbench-topology.js.map +1 -1
  234. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
  235. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.js.map +1 -1
  236. package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
  237. package/dist/esm/core/specifications/chart-view-specification-context.factory.js.map +1 -1
  238. package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
  239. package/dist/esm/core/specifications/composite-view-specification-context.factory.js.map +1 -1
  240. package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
  241. package/dist/esm/core/specifications/cross-registry-rendering.shared.js.map +1 -1
  242. package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
  243. package/dist/esm/core/specifications/execution-view-specification-context.factory.js.map +1 -1
  244. package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
  245. package/dist/esm/core/specifications/feature-specification-context.factory.js.map +1 -1
  246. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
  247. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.js.map +1 -1
  248. package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
  249. package/dist/esm/core/specifications/frontend-component-specification-context.factory.js.map +1 -1
  250. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
  251. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.js.map +1 -1
  252. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
  253. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.js.map +1 -1
  254. package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
  255. package/dist/esm/core/specifications/milestone-specification-context.factory.js.map +1 -1
  256. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
  257. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.js.map +1 -1
  258. package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
  259. package/dist/esm/core/specifications/onboarding-element-rendering.shared.js.map +1 -1
  260. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
  261. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.js.map +1 -1
  262. package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
  263. package/dist/esm/core/specifications/product-specification-context.factory.js.map +1 -1
  264. package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
  265. package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
  266. package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
  267. package/dist/esm/core/specifications/role-specification-context.factory.js.map +1 -1
  268. package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
  269. package/dist/esm/core/specifications/specification-context-factory.js.map +1 -1
  270. package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
  271. package/dist/esm/core/specifications/specification-context-factory.models.js.map +1 -1
  272. package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
  273. package/dist/esm/core/specifications/specification-context-factory.shared.js.map +1 -1
  274. package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
  275. package/dist/esm/core/specifications/system-email-template-specification-context.factory.js.map +1 -1
  276. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
  277. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.js.map +1 -1
  278. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
  279. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.js.map +1 -1
  280. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
  281. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.js.map +1 -1
  282. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
  283. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.js.map +1 -1
  284. package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
  285. package/dist/esm/core/specifications/templates/feature/feature-all-information.template.js.map +1 -1
  286. package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
  287. package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.js.map +1 -1
  288. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
  289. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.js.map +1 -1
  290. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
  291. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.js.map +1 -1
  292. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
  293. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.js.map +1 -1
  294. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
  295. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.js.map +1 -1
  296. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
  297. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.js.map +1 -1
  298. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
  299. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.js.map +1 -1
  300. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
  301. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.js.map +1 -1
  302. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
  303. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.js.map +1 -1
  304. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
  305. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.js.map +1 -1
  306. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
  307. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.js.map +1 -1
  308. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
  309. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.js.map +1 -1
  310. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
  311. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.js.map +1 -1
  312. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
  313. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.js.map +1 -1
  314. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
  315. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.js.map +1 -1
  316. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
  317. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.js.map +1 -1
  318. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
  319. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.js.map +1 -1
  320. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
  321. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.js.map +1 -1
  322. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
  323. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.js.map +1 -1
  324. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
  325. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.js.map +1 -1
  326. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
  327. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.js.map +1 -1
  328. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
  329. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.js.map +1 -1
  330. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
  331. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.js.map +1 -1
  332. package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
  333. package/dist/esm/core/specifications/templates/product/product-all-information.template.js.map +1 -1
  334. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
  335. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.js.map +1 -1
  336. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
  337. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.js.map +1 -1
  338. package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
  339. package/dist/esm/core/specifications/templates/product/product-translation-context.template.js.map +1 -1
  340. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
  341. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.js.map +1 -1
  342. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
  343. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.js.map +1 -1
  344. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
  345. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.js.map +1 -1
  346. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
  347. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.js.map +1 -1
  348. package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
  349. package/dist/esm/core/specifications/templates/role/role-all-information.template.js.map +1 -1
  350. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
  351. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.js.map +1 -1
  352. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
  353. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.js.map +1 -1
  354. package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
  355. package/dist/esm/core/specifications/templates/role/role-translation-context.template.js.map +1 -1
  356. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
  357. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.js.map +1 -1
  358. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
  359. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.js.map +1 -1
  360. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
  361. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.js.map +1 -1
  362. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
  363. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.js.map +1 -1
  364. package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
  365. package/dist/esm/core/specifications/validate-resource-field-completeness.js.map +1 -1
  366. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
  367. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
  368. package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
  369. package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
  370. package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
  371. package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
  372. package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
  373. package/dist/esm/core/utils/atomic-write.utils.js.map +1 -1
  374. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -1
  375. package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -1
  376. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
  377. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
  378. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
  379. package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
  380. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  381. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  382. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
  383. package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
  384. package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
  385. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
  386. package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
  387. package/dist/esm/deliberations/utils/load-committed-expert-agents.js.map +1 -1
  388. package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
  389. package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
  390. package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
  391. package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
  392. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  393. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  394. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
  395. package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
  396. package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -1
  397. package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -1
  398. package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
  399. package/dist/esm/email/utils/email-template-fs-discovery.utils.js.map +1 -1
  400. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -1
  401. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -1
  402. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  403. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  404. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  405. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  406. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  407. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  408. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
  409. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.js.map +1 -1
  410. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  411. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  412. package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -1
  413. package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -1
  414. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
  415. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js.map +1 -1
  416. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
  417. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js.map +1 -1
  418. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
  419. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js.map +1 -1
  420. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
  421. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.js.map +1 -1
  422. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
  423. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.js.map +1 -1
  424. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
  425. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
  426. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
  427. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js.map +1 -1
  428. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
  429. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js.map +1 -1
  430. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  431. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js.map +1 -1
  432. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
  433. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js.map +1 -1
  434. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
  435. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.js.map +1 -1
  436. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
  437. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
  438. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
  439. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
  440. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -1
  441. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -1
  442. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
  443. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
  444. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
  445. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
  446. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -1
  447. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -1
  448. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -1
  449. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -1
  450. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -1
  451. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -1
  452. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
  453. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js.map +1 -1
  454. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
  455. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js.map +1 -1
  456. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
  457. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
  458. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
  459. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
  460. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
  461. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js.map +1 -1
  462. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
  463. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
  464. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
  465. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js.map +1 -1
  466. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -1
  467. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -1
  468. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
  469. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js.map +1 -1
  470. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
  471. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js.map +1 -1
  472. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
  473. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js.map +1 -1
  474. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
  475. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js.map +1 -1
  476. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
  477. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js.map +1 -1
  478. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
  479. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.js.map +1 -1
  480. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
  481. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js.map +1 -1
  482. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
  483. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
  484. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  485. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
  486. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
  487. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js.map +1 -1
  488. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
  489. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js.map +1 -1
  490. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
  491. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.js.map +1 -1
  492. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
  493. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.js.map +1 -1
  494. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
  495. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js.map +1 -1
  496. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
  497. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js.map +1 -1
  498. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
  499. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.js.map +1 -1
  500. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
  501. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js.map +1 -1
  502. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -1
  503. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -1
  504. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
  505. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js.map +1 -1
  506. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
  507. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js.map +1 -1
  508. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
  509. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.js.map +1 -1
  510. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
  511. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.js.map +1 -1
  512. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
  513. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.js.map +1 -1
  514. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
  515. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js.map +1 -1
  516. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
  517. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js.map +1 -1
  518. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
  519. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.js.map +1 -1
  520. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
  521. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.js.map +1 -1
  522. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
  523. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.js.map +1 -1
  524. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
  525. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
  526. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
  527. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js.map +1 -1
  528. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
  529. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js.map +1 -1
  530. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
  531. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js.map +1 -1
  532. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
  533. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js.map +1 -1
  534. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
  535. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
  536. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
  537. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js.map +1 -1
  538. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
  539. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
  540. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
  541. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js.map +1 -1
  542. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
  543. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
  544. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
  545. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.js.map +1 -1
  546. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
  547. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.js.map +1 -1
  548. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
  549. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.js.map +1 -1
  550. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
  551. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.js.map +1 -1
  552. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
  553. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js.map +1 -1
  554. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
  555. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js.map +1 -1
  556. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
  557. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
  558. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -1
  559. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -1
  560. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
  561. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.js.map +1 -1
  562. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -1
  563. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -1
  564. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
  565. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js.map +1 -1
  566. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
  567. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.js.map +1 -1
  568. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
  569. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js.map +1 -1
  570. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
  571. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.js.map +1 -1
  572. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
  573. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
  574. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
  575. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js.map +1 -1
  576. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
  577. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js.map +1 -1
  578. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
  579. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.js.map +1 -1
  580. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
  581. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js.map +1 -1
  582. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
  583. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.js.map +1 -1
  584. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
  585. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.js.map +1 -1
  586. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -1
  587. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -1
  588. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
  589. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js.map +1 -1
  590. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
  591. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js.map +1 -1
  592. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
  593. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js.map +1 -1
  594. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
  595. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js.map +1 -1
  596. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
  597. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js.map +1 -1
  598. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -1
  599. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -1
  600. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
  601. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js.map +1 -1
  602. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
  603. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.js.map +1 -1
  604. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
  605. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js.map +1 -1
  606. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
  607. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js.map +1 -1
  608. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
  609. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
  610. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -1
  611. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -1
  612. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
  613. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.js.map +1 -1
  614. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
  615. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js.map +1 -1
  616. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
  617. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
  618. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
  619. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.js.map +1 -1
  620. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
  621. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
  622. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
  623. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js.map +1 -1
  624. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
  625. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.js.map +1 -1
  626. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
  627. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.js.map +1 -1
  628. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
  629. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.js.map +1 -1
  630. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
  631. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js.map +1 -1
  632. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
  633. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.js.map +1 -1
  634. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
  635. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.js.map +1 -1
  636. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -1
  637. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -1
  638. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -1
  639. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -1
  640. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
  641. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.js.map +1 -1
  642. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
  643. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.js.map +1 -1
  644. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  645. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js.map +1 -1
  646. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -1
  647. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -1
  648. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
  649. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js.map +1 -1
  650. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
  651. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js.map +1 -1
  652. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -1
  653. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -1
  654. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
  655. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js.map +1 -1
  656. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
  657. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
  658. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
  659. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js.map +1 -1
  660. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
  661. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js.map +1 -1
  662. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
  663. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js.map +1 -1
  664. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
  665. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js.map +1 -1
  666. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -1
  667. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -1
  668. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
  669. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
  670. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
  671. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
  672. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
  673. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js.map +1 -1
  674. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
  675. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js.map +1 -1
  676. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
  677. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js.map +1 -1
  678. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
  679. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js.map +1 -1
  680. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
  681. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js.map +1 -1
  682. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
  683. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js.map +1 -1
  684. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
  685. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js.map +1 -1
  686. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
  687. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js.map +1 -1
  688. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
  689. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js.map +1 -1
  690. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
  691. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
  692. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
  693. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
  694. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
  695. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
  696. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
  697. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
  698. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
  699. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
  700. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
  701. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.js.map +1 -1
  702. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
  703. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
  704. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
  705. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
  706. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
  707. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js.map +1 -1
  708. package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
  709. package/dist/esm/i18n/components/guidance_announcement.en.js.map +1 -1
  710. package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
  711. package/dist/esm/i18n/components/guidance_banner.en.js.map +1 -1
  712. package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
  713. package/dist/esm/i18n/components/guidance_card.en.js.map +1 -1
  714. package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
  715. package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
  716. package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
  717. package/dist/esm/i18n/components/guidance_checklist_item.en.js.map +1 -1
  718. package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
  719. package/dist/esm/i18n/components/guidance_modal.en.js.map +1 -1
  720. package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
  721. package/dist/esm/i18n/components/guidance_onboarding_view.en.js.map +1 -1
  722. package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
  723. package/dist/esm/i18n/components/guidance_survey.en.js.map +1 -1
  724. package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
  725. package/dist/esm/i18n/components/guidance_tooltip.en.js.map +1 -1
  726. package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
  727. package/dist/esm/i18n/components/guidance_tour.en.js.map +1 -1
  728. package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
  729. package/dist/esm/i18n/components/progression_achievement_badge.en.js.map +1 -1
  730. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
  731. package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
  732. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
  733. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
  734. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -1
  735. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
  736. package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
  737. package/dist/esm/i18n/composite_views/app.domain-model.en.js.map +1 -1
  738. package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -1
  739. package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -1
  740. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
  741. package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
  742. package/dist/esm/i18n/index.d.ts.map +1 -1
  743. package/dist/esm/i18n/index.js.map +1 -1
  744. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
  745. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
  746. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
  747. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
  748. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
  749. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
  750. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -1
  751. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -1
  752. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
  753. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
  754. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -1
  755. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -1
  756. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -1
  757. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -1
  758. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
  759. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
  760. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -1
  761. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -1
  762. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -1
  763. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -1
  764. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -1
  765. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -1
  766. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
  767. package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
  768. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
  769. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
  770. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
  771. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -1
  772. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -1
  773. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -1
  774. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
  775. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
  776. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
  777. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
  778. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
  779. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
  780. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
  781. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
  782. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  783. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  784. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
  785. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
  786. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
  787. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
  788. package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
  789. package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
  790. package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -1
  791. package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -1
  792. package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -1
  793. package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -1
  794. package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
  795. package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
  796. package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -1
  797. package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
  798. package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -1
  799. package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -1
  800. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
  801. package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
  802. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
  803. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
  804. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
  805. package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
  806. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -1
  807. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -1
  808. package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -1
  809. package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -1
  810. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -1
  811. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -1
  812. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -1
  813. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -1
  814. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
  815. package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
  816. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
  817. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
  818. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
  819. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.js.map +1 -1
  820. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -1
  821. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -1
  822. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  823. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  824. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
  825. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
  826. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  827. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  828. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  829. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  830. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -1
  831. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -1
  832. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
  833. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
  834. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -1
  835. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -1
  836. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
  837. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
  838. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
  839. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js.map +1 -1
  840. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -1
  841. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -1
  842. package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
  843. package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
  844. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -1
  845. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -1
  846. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
  847. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
  848. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
  849. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
  850. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -1
  851. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -1
  852. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -1
  853. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -1
  854. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
  855. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.js.map +1 -1
  856. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
  857. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
  858. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
  859. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
  860. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -1
  861. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -1
  862. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
  863. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.js.map +1 -1
  864. package/dist/esm/index.d.ts.map +1 -1
  865. package/dist/esm/index.js.map +1 -1
  866. package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
  867. package/dist/esm/market/services/market-generation.companion.service.js.map +1 -1
  868. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -1
  869. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -1
  870. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  871. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  872. package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -1
  873. package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -1
  874. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  875. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  876. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
  877. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
  878. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -1
  879. package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -1
  880. package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -1
  881. package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -1
  882. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -1
  883. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
  884. package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -1
  885. package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -1
  886. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  887. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
  888. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
  889. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
  890. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
  891. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
  892. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
  893. package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
  894. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -1
  895. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -1
  896. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
  897. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +1 -1
  898. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -1
  899. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -1
  900. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  901. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  902. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -1
  903. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -1
  904. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  905. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  906. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  907. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  908. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -1
  909. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -1
  910. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -1
  911. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -1
  912. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -1
  913. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
  914. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
  915. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
  916. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
  917. package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
  918. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts.map +1 -1
  919. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js.map +1 -1
  920. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
  921. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js.map +1 -1
  922. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map +1 -1
  923. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map +1 -1
  924. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  925. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  926. package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -1
  927. package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -1
  928. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -1
  929. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -1
  930. package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -1
  931. package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -1
  932. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
  933. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.js.map +1 -1
  934. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -1
  935. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -1
  936. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  937. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  938. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  939. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  940. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -1
  941. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -1
  942. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -1
  943. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -1
  944. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -1
  945. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -1
  946. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
  947. package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
  948. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
  949. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
  950. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
  951. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.js.map +1 -1
  952. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
  953. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.js.map +1 -1
  954. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
  955. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
  956. package/package.json +17 -17
@@ -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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AC;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
+ {"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,G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AAE,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,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G,MAAM,EAAE,CAU7F;AAED,wBAAgB,2BAA2B,CACzC,YAAY,EAAE,MAAM,EACpB,cAAc,EAAE,wBAAwB,GACvC,MAAM,EAAE,CAiBV;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,gCAAgC,CAAC,IAAI,EAAE;IACrD,8EAA8E;IAC9E,8BAA8B,EAAE,OAAO,CAAC;IACxC,gFAAgF;IAChF,wBAAwB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAChD,0EAA0E;IAC1E,0BAA0B,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAClD,4EAA4E;IAC5E,kBAAkB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAC3C,GAAG,MAAM,EAAE,CAKX;AAED;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,+BAA+B,GAAG,iCAAiC,GACxE,YAAY,GAAG,SAAS,CA6C1B"}
@@ -1 +1 @@
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;Q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AC,EAAE,CAAC;aAC/E,CAAC;QACJ,CAAC;QACD,MAAM,IAAI,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC;QACxC,MAAM,IAAI,GAAG,KAAK,KAAK,OAAO,CAAC,CAAC,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,G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AC,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 +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"}
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"}
@@ -1 +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
+ {"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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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,"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;QACnE,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;IAChE,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,CAAC;AACpB,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,KAA+B,EAC/B,OAAiB,EAAE,EACnB,MAA8B,EAAE;IAEhC,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EA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AC;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
+ {"version":3,"file":"label-file-source.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/label-file-source.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,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,EAAE,CAAC;IAE1C,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QACpD,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACjC,IAAI,MAAM,GAA6B,IAAI,CAAC;QAE5C,KAAK,MAAM,OAAO,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC5C,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;YAChC,IAAI,CAAC,OAAO,IAAI,OAAO,OAAO,KAAK,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,EA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E,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,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 +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,CAA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GAA2B,EAAE,CAAC;IAC1C,MAAM,cAAc,GAAuB,EAAE,CAAC;IAC9C,MAAM,WAAW,GAAa,EAAE,CAAC;IAEjC,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,MAAM,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;QAClC,MAAM,KAAK,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC;QAEpC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACpD,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACtB,IAAI,OAAO,MAAM,KAAK,QAAQ;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,MA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,IAAI,EAAE,CAAC;QACvB,MAAM,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;QAClC,MAAM,KAAK,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC;QAEpC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACpD,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACtB,IAAI,OAAO,MAAM,KAAK,QAAQ;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 +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;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
+ {"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,6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;CACxD,GAAG,0BAA0B,CA8B7B;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,0BAA0B,GAAG,MAAM,CAqBvF"}
@@ -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;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,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1D,MAAM,OAAO,GAAG,gBAAgB,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAClD,IAAI,OAAO,IAAI,CAAC;QAAE,OAAO,SAAS,CAAC;IACnC,MAAM,MAAM,GAAG,gBAAgB,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC;IACnD,IAAI,CA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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
+ {"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;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,MAAM,GAAG,CAAC;aAC/F,IAAI,CAAC,IAAI,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,UAA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MAAM,CAAC,CAsBlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"per-unit-file.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/per-unit-file.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EACL,gCAAgC,EAChC,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AASxF;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,sBAAsB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAuB;IACxF,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,UAAU,KAAK,CAAC,CAAC;AACxG,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,QAAgB;IACtD,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACjD,MAAM,MAAM,GAAG,yBAAyB,CAAC,GAAG,CAAC,CAAC;QAC9C,OAAO,yBAAyB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAClD,CAAC;IAAC,OAAO,GAAY,EAAE,CAAC;QACtB,IAAK,GAA6B,EAAE,IAAI,KAAK,QAAQ;YAAE,OAAO,EAAE,CAAC;QACjE,MAAM,GAAG,CAAC;IACZ,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,IAMxC;IACC,2FAA2F;IAC3F,yFAAyF;IACzF,6FAA6F;IAC7F,wFAAwF;IACxF,4CAA4C;IAC5C,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,iCAAiC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC;IACrI,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CACb,qBAAqB,IAAI,CAAC,QAAQ,KAAK,OAAO,CAAC,MAAM,8CAA8C,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,gHAAgH,CACpR,CAAC;IACJ,CAAC;IACD,MAAM,MAAM,GAAG,gCAAgC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAClE,MAAM,OAAO,GAAG,wBAAwB,CAAC;QACvC,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;QACzC,eAAe,EAAE,IAAI,CAAC,eAAe;QACrC,MAAM,EAAE,MAAM;KACf,CAAC,CAAC;IACH,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACjE,MAAM,eAAe,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC9C,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["import * as fs from 'node:fs/promises';\nimport * as path from 'node:path';\nimport {\n buildNestedLabelsFromFlatEntries,\n flattenNestedStringLabels,\n formatNestedLabelsTsFile,\n parseNestedLabelsTsSource,\n} from './label-file-source.utils';\nimport { writeFileAtomic } from '../../core/utils/atomic-write.utils';\nimport { labelValueCarriesControlCharacter } from './structured-chunk-completion.utils';\nimport type { LabellingUnit } from '../models/labelling-unit.models';\n\nexport interface PerUnitFilePathArgs {\n i18nRoot: string;\n unit: Pick<LabellingUnit, 'filePathHint'>;\n localeCode: string;\n}\n\n/**\n * Resolve the on-disk path for a unit's per-locale labels file.\n * Layout (under `<backendRoot>/src/engine/i18n/`):\n * - `components/<slug>.<locale>.ts`\n * - `resources/<slug>.<locale>.ts`\n * - `themes/<slug>.<locale>.ts`\n * - `milestones/<slug>.<locale>.ts`\n * - `billing/<slug>.<locale>.ts`\n *\n * These per-unit files are the runtime source of truth — there is no\n * monolithic `labels.<locale>.ts`. The backend's engine i18n barrel\n * walks this tree at module load via\n * {@link scanCustomLabelsDirectory} from `@wildo-ai/saas-backend-lib`.\n */\nexport function resolvePerUnitFilePath({ i18nRoot, unit, localeCode }: PerUnitFilePathArgs): string {\n return path.resolve(i18nRoot, unit.filePathHint.bucket, `${unit.filePathHint.slug}.${localeCode}.ts`);\n}\n\nexport async function readPerUnitLabels(filePath: string): Promise<Record<string, string>> {\n try {\n const raw = await fs.readFile(filePath, 'utf-8');\n const parsed = parseNestedLabelsTsSource(raw);\n return flattenNestedStringLabels(parsed.labels);\n } catch (err: unknown) {\n if ((err as NodeJS.ErrnoException)?.code === 'ENOENT') return {};\n throw err;\n }\n}\n\nexport async function writePerUnitLabels(args: {\n filePath: string;\n localeCode: string;\n localeDisplayName: string;\n isPrimaryLocale: boolean;\n flatEntries: Record<string, string>;\n}): Promise<string> {\n // The last door before disk (#1109). The completion loop already refuses and re-requests a\n // value carrying a control character, so a value arriving here is one no generation path\n // produced — a corrupt prior file being carried forward, or a caller that bypassed the loop.\n // A bundle is loaded by the backend and served to every client, so refusing the unit is\n // cheaper than any reader finding the byte.\n const corrupt = Object.entries(args.flatEntries).filter(([, value]) => labelValueCarriesControlCharacter(value)).map(([key]) => key);\n if (corrupt.length > 0) {\n throw new Error(\n `Refusing to write ${args.filePath}: ${corrupt.length} label value(s) carry a control character (${corrupt.slice(0, 5).join(', ')}${corrupt.length > 5 ? ', …' : ''}). A control byte in a label reaches the UI, the logs and every export of the label tree; regenerate the unit.`,\n );\n }\n const nested = buildNestedLabelsFromFlatEntries(args.flatEntries);\n const content = formatNestedLabelsTsFile({\n localeCode: args.localeCode,\n localeDisplayName: args.localeDisplayName,\n isPrimaryLocale: args.isPrimaryLocale,\n labels: nested,\n });\n await fs.mkdir(path.dirname(args.filePath), { recursive: true });\n await writeFileAtomic(args.filePath, content);\n return content;\n}\n"]}
1
+ {"version":3,"file":"per-unit-file.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/per-unit-file.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EACL,gCAAgC,EAChC,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AASxF;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,sBAAsB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAuB;IACxF,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,UAAU,KAAK,CAAC,CAAC;AACxG,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,QAAgB;IACtD,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACjD,MAAM,MAAM,GAAG,yBAAyB,CAAC,GAAG,CA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,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACjE,MAAM,eAAe,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC9C,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["import * as fs from 'node:fs/promises';\nimport * as path from 'node:path';\nimport {\n buildNestedLabelsFromFlatEntries,\n flattenNestedStringLabels,\n formatNestedLabelsTsFile,\n parseNestedLabelsTsSource,\n} from './label-file-source.utils';\nimport { writeFileAtomic } from '../../core/utils/atomic-write.utils';\nimport { labelValueCarriesControlCharacter } from './structured-chunk-completion.utils';\nimport type { LabellingUnit } from '../models/labelling-unit.models';\n\nexport interface PerUnitFilePathArgs {\n i18nRoot: string;\n unit: Pick<LabellingUnit, 'filePathHint'>;\n localeCode: string;\n}\n\n/**\n * Resolve the on-disk path for a unit's per-locale labels file.\n * Layout (under `<backendRoot>/src/engine/i18n/`):\n * - `components/<slug>.<locale>.ts`\n * - `resources/<slug>.<locale>.ts`\n * - `themes/<slug>.<locale>.ts`\n * - `milestones/<slug>.<locale>.ts`\n * - `billing/<slug>.<locale>.ts`\n *\n * These per-unit files are the runtime source of truth — there is no\n * monolithic `labels.<locale>.ts`. The backend's engine i18n barrel\n * walks this tree at module load via\n * {@link scanCustomLabelsDirectory} from `@wildo-ai/saas-backend-lib`.\n */\nexport function resolvePerUnitFilePath({ i18nRoot, unit, localeCode }: PerUnitFilePathArgs): string {\n return path.resolve(i18nRoot, unit.filePathHint.bucket, `${unit.filePathHint.slug}.${localeCode}.ts`);\n}\n\nexport async function readPerUnitLabels(filePath: string): Promise<Record<string, string>> {\n try {\n const raw = await fs.readFile(filePath, 'utf-8');\n const parsed = parseNestedLabelsTsSource(raw);\n return flattenNestedStringLabels(parsed.labels);\n } catch (err: unknown) {\n if ((err as NodeJS.ErrnoException)?.code === 'ENOENT') return {};\n throw err;\n }\n}\n\nexport async function writePerUnitLabels(args: {\n filePath: string;\n localeCode: string;\n localeDisplayName: string;\n isPrimaryLocale: boolean;\n flatEntries: Record<string, string>;\n}): Promise<string> {\n // The last door before disk (#1109). The completion loop already refuses and re-requests a\n // value carrying a control character, so a value arriving here is one no generation path\n // produced — a corrupt prior file being carried forward, or a caller that bypassed the loop.\n // A bundle is loaded by the backend and served to every client, so refusing the unit is\n // cheaper than any reader finding the byte.\n const corrupt = Object.entries(args.flatEntries).filter(([, value]) => labelValueCarriesControlCharacter(value)).map(([key]) => key);\n if (corrupt.length > 0) {\n throw new Error(\n `Refusing to write ${args.filePath}: ${corrupt.length} label value(s) carry a control character (${corrupt.slice(0, 5).join(', ')}${corrupt.length > 5 ? ', …' : ''}). A control byte in a label reaches the UI, the logs and every export of the label tree; regenerate the unit.`,\n );\n }\n const nested = buildNestedLabelsFromFlatEntries(args.flatEntries);\n const content = formatNestedLabelsTsFile({\n localeCode: args.localeCode,\n localeDisplayName: args.localeDisplayName,\n isPrimaryLocale: args.isPrimaryLocale,\n labels: nested,\n });\n await fs.mkdir(path.dirname(args.filePath), { recursive: true });\n await writeFileAtomic(args.filePath, content);\n return content;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"provider-display-name-keys.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/provider-display-name-keys.utils.ts"],"names":[],"mappings":"AAKA,OAAO,EAGL,KAAK,2BAA2B,EACjC,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,mHAAmH;AACnH,eAAO,MAAM,sBAAsB,QAAuD,CAAC;AAa3F,qFAAqF;AACrF,MAAM,WAAW,iCAAiC;IAChD,IAAI,EAAE,2BAA2B,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wEAAwE;AACxE,MAAM,WAAW,2BAA2B;IAC1C,kFAAkF;IAClF,IAAI,EAAE,MAAM,EAAE,CAAC;IACf;;;OAGG;IACH,UAAU,EAAE,iCAAiC,EAAE,CAAC;CACjD;AAED,mFAAmF;AACnF,MAAM,WAAW,0BAA0B;IACzC,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9B,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAOD;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,MAAM,EAChB,UAAU,GAAE,0BAA6C,GACxD,2BAA2B,CAkB7B;AAED,sFAAsF;AACtF,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;CACvC;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,0BAA0B,CAsB/F"}
1
+ {"version":3,"file":"provider-display-name-keys.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/provider-display-name-keys.utils.ts"],"names":[],"mappings":"AAKA,OAAO,EAGL,KAAK,2BAA2B,EACjC,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,mHAAmH;AACnH,eAAO,MAAM,sBAAsB,QAAuD,CAAC;AAa3F,qFAAqF;AACrF,MAAM,WAAW,iCAAiC;IAChD,IAAI,EAAE,2BAA2B,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wEAAwE;AACxE,MAAM,WAAW,2BAA2B;IAC1C,kFAAkF;IAClF,IAAI,EAAE,MAAM,EAAE,CAAC;IACf;;;OAGG;IACH,UAAU,EAAE,iCAAiC,EAAE,CAAC;CACjD;AAED,mFAAmF;AACnF,MAAM,WAAW,0BAA0B;IACzC,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9B,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAOD;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,MAAM,EAChB,UAAU,GAAE,0BAA6C,GACxD,2BAA2B,CAkB7B;AAED,sFAAsF;AACtF,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;CACvC;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,0BAA0B,CAsB/F"}
@@ -1 +1 @@
1
- {"version":3,"file":"provider-display-name-keys.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/provider-display-name-keys.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,gCAAgC,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EACL,wCAAwC,EACxC,kCAAkC,GAEnC,MAAM,+BAA+B,CAAC;AAGvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,mHAAmH;AACnH,MAAM,CAAC,MAAM,sBAAsB,GAAG,gCAAgC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAE,CAAC;AAE3F;;;;;;GAMG;AACH,MAAM,sBAAsB,GAAG,CAAC,CAAC,WAAW,CAAC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AM,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAClG,CAAC;IACH,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,CAAC;AAChD,CAAC;AAQD;;;;;GAKG;AACH,MAAM,UAAU,2BAA2B,CAAC,IAAuB;IACjE,MAAM,IAAI,GAAa,EAAE,CAAC;IAC1B,MAAM,OAAO,GAAiC,EAAE,CAAC;IACjD,KAAK,MAAM,GAAG,IAAI,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;QAC5C,MAAM,GAAG,GAAG,gCAAgC,CAAC,GAAG,CAAC,CAAC;QAClD,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACf,OAAO,CAAC,GAAG,CAAC,GAAG;YACb,IAAI,EAAE,SAAS,CAAC,KAAK;YACrB,QAAQ,EAAE,aAAa,CAAC,QAAQ;YAChC,OAAO,EACL,8FAA8F,GAAG,gBAAgB;gBACjH,8GAA8G;gBAC9G,6GAA6G;gBAC7G,iEAAiE;YACnE,KAAK,EAAE;gBACL,wEAAwE;gBACxE,2FAA2F;gBAC3F,sEAAsE;aACvE;SACF,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AAC3B,CAAC","sourcesContent":["import { existsSync, readFileSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { z } from 'zod';\nimport { LabelAudience, LabelKind } from '@wildo-ai/presets-components-models';\nimport { buildProviderDisplayNameLabelKey } from '@wildo-ai/saas-models';\nimport {\n PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS,\n SaasRuntimeProvidersArtifactSchema,\n type ProviderRuntimeArtifactKind,\n} from '@wildo-ai/platform-config-lib';\nimport type { LabelKeyMeta } from '../models/labelling-unit.models';\n\n/**\n * Vendor display names — `providers.<ref>.displayName` — planned TOTAL over the providers an application declares\n * (#1895).\n *\n * Every surface that names a third-party vendor resolves the name through that key\n * (`buildProviderDisplayNameLabelKey`): the connected-accounts screen, the Security settings identity links, the social\n * sign-in buttons, the billing provider label. Provider modules are deliberately locale-neutral — they carry the KEY,\n * never the word — so the words have to be authored somewhere, and until this family existed nothing planned them: every\n * vendor rendered its raw ref (`google-calendar`) in every locale. That was the \"missing label looks missing\" behaviour\n * `display-text-comes-from-i18n.md` asks for; the gap was that nothing ever authored the words.\n *\n * ## Where the population comes from\n *\n * The per-runtime-kind provider artifacts `wildo config sync` writes under `.wildo-saas/generated/providers/`\n * ({@link PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS}). Their `providerRefs` are the providers the application declares,\n * already resolved per runtime scope, and the union over every kind is the set of vendors any of the application's\n * processes may name — the backend's connected accounts, the frontend's social sign-in, a minion's integration.\n * Reading the union rather than one scope matters: a vendor declared only for a frontend service (an analytics or\n * captcha provider) is still a name the application may show.\n *\n * Derived rather than hand-listed, and total over what is declared, so a provider declared tomorrow is planned by\n * construction and a withdrawn one stops being planned (`derive-before-you-ask.md`). A connection's BASE ref, which the\n * connected-accounts screen keys the name on, is always itself a declared ref, so it is covered by the same union.\n *\n * ## What this does NOT do\n *\n * It never derives a WORD from the ref. The ref reaches the generator as intent (which vendor this is), and the\n * generator writes the vendor's own product name — the thing a humanizing fallback would get wrong (`immudb`,\n * `posthog`, `email-preview`). A key nobody generated still renders its raw ref.\n */\n\n/** The labelling bucket (and file-path bucket) the vendor-name unit writes to — the first segment of every key. */\nexport const PROVIDERS_LABEL_BUCKET = buildProviderDisplayNameLabelKey('_').split('.')[0]!;\n\n/**\n * Only the field this family reads, taken from the artifact's own schema so the two cannot disagree about its shape.\n *\n * Loose on purpose: the rest of the artifact (imports, digests, augmentations, scopes) is irrelevant to which vendors\n * exist, and a strict parse would let an unrelated artifact-schema change — a field added by a newer `wildo config sync`\n * — withhold every vendor name. The field itself is still validated exactly as the artifact declares it.\n */\nconst ProviderRefsOnlySchema = z.looseObject({\n providerRefs: SaasRuntimeProvidersArtifactSchema.shape.providerRefs,\n});\n\n/** One artifact that exists on disk but could not be read as a provider artifact. */\nexport interface UnreadableProviderRuntimeArtifact {\n kind: ProviderRuntimeArtifactKind;\n path: string;\n detail: string;\n}\n\n/** Result of reading the application's declared provider population. */\nexport interface DeclaredProviderRefsReading {\n /** Sorted, de-duplicated union of `providerRefs` over every readable artifact. */\n refs: string[];\n /**\n * Artifacts present but unreadable. A non-empty list means the population is INCOMPLETE: a vendor declared only in\n * the unreadable scope would be missing, and an orphan report must not condemn its existing words.\n */\n unreadable: UnreadableProviderRuntimeArtifact[];\n}\n\n/** File-system seam, so the reader is testable without a real application tree. */\nexport interface ProviderArtifactFileSystem {\n exists(path: string): boolean;\n read(path: string): string;\n}\n\nconst NODE_FILE_SYSTEM: ProviderArtifactFileSystem = {\n exists: (path) => existsSync(path),\n read: (path) => readFileSync(path, 'utf8'),\n};\n\n/**\n * Read the union of declared provider refs from every per-runtime-kind artifact of the application at `saasRoot`.\n *\n * An ABSENT artifact is not a degradation: `wildo config sync` writes one only for the runtime kinds the application\n * has (Wonder CRM has no node workers, so it has no `node-workers` artifact). A PRESENT artifact that does not parse is,\n * and is reported so the caller can mark the family incomplete.\n */\nexport function readDeclaredProviderRefs(\n saasRoot: string,\n fileSystem: ProviderArtifactFileSystem = NODE_FILE_SYSTEM,\n): DeclaredProviderRefsReading {\n const refs = new Set<string>();\n const unreadable: UnreadableProviderRuntimeArtifact[] = [];\n for (const [kind, relativePath] of Object.entries(PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS) as [ProviderRuntimeArtifactKind, string][]) {\n const path = join(saasRoot, relativePath);\n if (!fileSystem.exists(path)) continue;\n try {\n const parsed = ProviderRefsOnlySchema.safeParse(JSON.parse(fileSystem.read(path)));\n if (!parsed.success) {\n unreadable.push({ kind, path, detail: parsed.error.message });\n continue;\n }\n for (const ref of parsed.data.providerRefs) refs.add(ref);\n } catch (error: unknown) {\n unreadable.push({ kind, path, detail: error instanceof Error ? error.message : String(error) });\n }\n }\n return { refs: [...refs].sort(), unreadable };\n}\n\n/** The planned keys of the vendor-name family, with the per-key generation intent. */\nexport interface ProviderDisplayNameKeyPlan {\n keys: string[];\n keyMeta: Record<string, LabelKeyMeta>;\n}\n\n/**\n * `providers.<ref>.displayName` for every declared ref, each carrying the ref as INTENT, never as the word.\n *\n * The purpose tells the generator the thing a ref cannot: that the label is a vendor's own product name, which users\n * recognise by its official spelling and which is normally not translated.\n */\nexport function planProviderDisplayNameKeys(refs: readonly string[]): ProviderDisplayNameKeyPlan {\n const keys: string[] = [];\n const keyMeta: Record<string, LabelKeyMeta> = {};\n for (const ref of [...new Set(refs)].sort()) {\n const key = buildProviderDisplayNameLabelKey(ref);\n keys.push(key);\n keyMeta[key] = {\n kind: LabelKind.LABEL,\n audience: LabelAudience.END_USER,\n purpose:\n `The name of the third-party service this application integrates with under the identifier \"${ref}\", written as ` +\n 'that service\\'s own users know it — its official product or brand name, shown on the screens where a person ' +\n 'connects an account, signs in with it, or sees which service a feature uses. The identifier is a technical ' +\n 'reference, not the name: write the name the vendor itself uses.',\n notes: [\n 'A brand name: keep the vendor\\'s official spelling and capitalization.',\n 'Do not translate it unless the vendor itself publishes a localized name in that language.',\n 'The name only: no description, no \"account\" or \"integration\" suffix.',\n ],\n };\n }\n return { keys, keyMeta };\n}\n"]}
1
+ {"version":3,"file":"provider-display-name-keys.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/provider-display-name-keys.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,SAA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E,2FAA2F;gBAC3F,sEAAsE;aACvE;SACF,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AAC3B,CAAC","sourcesContent":["import { existsSync, readFileSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { z } from 'zod';\nimport { LabelAudience, LabelKind } from '@wildo-ai/presets-components-models';\nimport { buildProviderDisplayNameLabelKey } from '@wildo-ai/saas-models';\nimport {\n PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS,\n SaasRuntimeProvidersArtifactSchema,\n type ProviderRuntimeArtifactKind,\n} from '@wildo-ai/platform-config-lib';\nimport type { LabelKeyMeta } from '../models/labelling-unit.models';\n\n/**\n * Vendor display names — `providers.<ref>.displayName` — planned TOTAL over the providers an application declares\n * (#1895).\n *\n * Every surface that names a third-party vendor resolves the name through that key\n * (`buildProviderDisplayNameLabelKey`): the connected-accounts screen, the Security settings identity links, the social\n * sign-in buttons, the billing provider label. Provider modules are deliberately locale-neutral — they carry the KEY,\n * never the word — so the words have to be authored somewhere, and until this family existed nothing planned them: every\n * vendor rendered its raw ref (`google-calendar`) in every locale. That was the \"missing label looks missing\" behaviour\n * `display-text-comes-from-i18n.md` asks for; the gap was that nothing ever authored the words.\n *\n * ## Where the population comes from\n *\n * The per-runtime-kind provider artifacts `wildo config sync` writes under `.wildo-saas/generated/providers/`\n * ({@link PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS}). Their `providerRefs` are the providers the application declares,\n * already resolved per runtime scope, and the union over every kind is the set of vendors any of the application's\n * processes may name — the backend's connected accounts, the frontend's social sign-in, a minion's integration.\n * Reading the union rather than one scope matters: a vendor declared only for a frontend service (an analytics or\n * captcha provider) is still a name the application may show.\n *\n * Derived rather than hand-listed, and total over what is declared, so a provider declared tomorrow is planned by\n * construction and a withdrawn one stops being planned (`derive-before-you-ask.md`). A connection's BASE ref, which the\n * connected-accounts screen keys the name on, is always itself a declared ref, so it is covered by the same union.\n *\n * ## What this does NOT do\n *\n * It never derives a WORD from the ref. The ref reaches the generator as intent (which vendor this is), and the\n * generator writes the vendor's own product name — the thing a humanizing fallback would get wrong (`immudb`,\n * `posthog`, `email-preview`). A key nobody generated still renders its raw ref.\n */\n\n/** The labelling bucket (and file-path bucket) the vendor-name unit writes to — the first segment of every key. */\nexport const PROVIDERS_LABEL_BUCKET = buildProviderDisplayNameLabelKey('_').split('.')[0]!;\n\n/**\n * Only the field this family reads, taken from the artifact's own schema so the two cannot disagree about its shape.\n *\n * Loose on purpose: the rest of the artifact (imports, digests, augmentations, scopes) is irrelevant to which vendors\n * exist, and a strict parse would let an unrelated artifact-schema change — a field added by a newer `wildo config sync`\n * — withhold every vendor name. The field itself is still validated exactly as the artifact declares it.\n */\nconst ProviderRefsOnlySchema = z.looseObject({\n providerRefs: SaasRuntimeProvidersArtifactSchema.shape.providerRefs,\n});\n\n/** One artifact that exists on disk but could not be read as a provider artifact. */\nexport interface UnreadableProviderRuntimeArtifact {\n kind: ProviderRuntimeArtifactKind;\n path: string;\n detail: string;\n}\n\n/** Result of reading the application's declared provider population. */\nexport interface DeclaredProviderRefsReading {\n /** Sorted, de-duplicated union of `providerRefs` over every readable artifact. */\n refs: string[];\n /**\n * Artifacts present but unreadable. A non-empty list means the population is INCOMPLETE: a vendor declared only in\n * the unreadable scope would be missing, and an orphan report must not condemn its existing words.\n */\n unreadable: UnreadableProviderRuntimeArtifact[];\n}\n\n/** File-system seam, so the reader is testable without a real application tree. */\nexport interface ProviderArtifactFileSystem {\n exists(path: string): boolean;\n read(path: string): string;\n}\n\nconst NODE_FILE_SYSTEM: ProviderArtifactFileSystem = {\n exists: (path) => existsSync(path),\n read: (path) => readFileSync(path, 'utf8'),\n};\n\n/**\n * Read the union of declared provider refs from every per-runtime-kind artifact of the application at `saasRoot`.\n *\n * An ABSENT artifact is not a degradation: `wildo config sync` writes one only for the runtime kinds the application\n * has (Wonder CRM has no node workers, so it has no `node-workers` artifact). A PRESENT artifact that does not parse is,\n * and is reported so the caller can mark the family incomplete.\n */\nexport function readDeclaredProviderRefs(\n saasRoot: string,\n fileSystem: ProviderArtifactFileSystem = NODE_FILE_SYSTEM,\n): DeclaredProviderRefsReading {\n const refs = new Set<string>();\n const unreadable: UnreadableProviderRuntimeArtifact[] = [];\n for (const [kind, relativePath] of Object.entries(PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS) as [ProviderRuntimeArtifactKind, string][]) {\n const path = join(saasRoot, relativePath);\n if (!fileSystem.exists(path)) continue;\n try {\n const parsed = ProviderRefsOnlySchema.safeParse(JSON.parse(fileSystem.read(path)));\n if (!parsed.success) {\n unreadable.push({ kind, path, detail: parsed.error.message });\n continue;\n }\n for (const ref of parsed.data.providerRefs) refs.add(ref);\n } catch (error: unknown) {\n unreadable.push({ kind, path, detail: error instanceof Error ? error.message : String(error) });\n }\n }\n return { refs: [...refs].sort(), unreadable };\n}\n\n/** The planned keys of the vendor-name family, with the per-key generation intent. */\nexport interface ProviderDisplayNameKeyPlan {\n keys: string[];\n keyMeta: Record<string, LabelKeyMeta>;\n}\n\n/**\n * `providers.<ref>.displayName` for every declared ref, each carrying the ref as INTENT, never as the word.\n *\n * The purpose tells the generator the thing a ref cannot: that the label is a vendor's own product name, which users\n * recognise by its official spelling and which is normally not translated.\n */\nexport function planProviderDisplayNameKeys(refs: readonly string[]): ProviderDisplayNameKeyPlan {\n const keys: string[] = [];\n const keyMeta: Record<string, LabelKeyMeta> = {};\n for (const ref of [...new Set(refs)].sort()) {\n const key = buildProviderDisplayNameLabelKey(ref);\n keys.push(key);\n keyMeta[key] = {\n kind: LabelKind.LABEL,\n audience: LabelAudience.END_USER,\n purpose:\n `The name of the third-party service this application integrates with under the identifier \"${ref}\", written as ` +\n 'that service\\'s own users know it — its official product or brand name, shown on the screens where a person ' +\n 'connects an account, signs in with it, or sees which service a feature uses. The identifier is a technical ' +\n 'reference, not the name: write the name the vendor itself uses.',\n notes: [\n 'A brand name: keep the vendor\\'s official spelling and capitalization.',\n 'Do not translate it unless the vendor itself publishes a localized name in that language.',\n 'The name only: no description, no \"account\" or \"integration\" suffix.',\n ],\n };\n }\n return { keys, keyMeta };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"resource-section-label-keys.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/resource-section-label-keys.utils.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,wBAAgB,4BAA4B,CAAC,IAAI,EAAE;IACjD,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,0BAA0B,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;CAC7D,GAAG,MAAM,EAAE,CASX"}
1
+ {"version":3,"file":"resource-section-label-keys.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/resource-section-label-keys.utils.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,wBAAgB,4BAA4B,CAAC,IAAI,EAAE;IACjD,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,0BAA0B,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;CAC7D,GAAG,MAAM,EAAE,CASX"}
@@ -1 +1 @@
1
- {"version":3,"file":"resource-section-label-keys.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/resource-section-label-keys.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAErE;;;;;;;;;GASG;AACH,MAAM,UAAU,4BAA4B,CAAC,IAK5C;IACC,MAAM,IAAI,GAAa,EAAE,CAAC;IAC1B,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;QAC1C,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YACjC,IAAI,IAAI,KAAK,aAAa,IAAI,IAAI,CAAC,0BAA0B,EAAE,GAAG,CAAC,UAAU,CAAC;gBAAE,SAAS;YACzF,IAAI,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,SAAS,IAAI,IAAI,CAAC,YAAY,aAAa,UAAU,IAAI,IAAI,EAAE,CAAC,CAAC;QAC/F,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import { LabellingTypes } from '@wildo-ai/presets-components-models';\n\n/**\n * The label keys a resource's layout SECTIONS need: one per section per policy slot\n * (`resources.<type>.sections.<ref>.<slot>`), except a `description` its specification does not\n * document.\n *\n * A section description is optional (`RESOURCE_LAYOUT_REQUIRED_TEXT_SLOTS` in the specification\n * schemas). Planned regardless, the model wrote one for every section, restating the title — \"Workflow —\n * Choose a workflow\". `sectionsWithoutDescription` is `undefined` when the resource has no\n * specification to read the decision from, and then every slot is planned, as before. Pure.\n */\nexport function planResourceSectionLabelKeys(args: {\n resourceType: string;\n sectionRefs: readonly string[];\n slotKeys: readonly string[];\n sectionsWithoutDescription: ReadonlySet<string> | undefined;\n}): string[] {\n const keys: string[] = [];\n for (const sectionRef of args.sectionRefs) {\n for (const slot of args.slotKeys) {\n if (slot === 'description' && args.sectionsWithoutDescription?.has(sectionRef)) continue;\n keys.push(`${LabellingTypes.RESOURCES}.${args.resourceType}.sections.${sectionRef}.${slot}`);\n }\n }\n return keys;\n}\n"]}
1
+ {"version":3,"file":"resource-section-label-keys.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/resource-section-label-keys.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAErE;;;;;;;;;GASG;AACH,MAAM,UAAU,4BAA4B,CAAC,IAK5C;IACC,MAAM,IAAI,GAAa,EAAE,CAAC;IAC1B,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;QAC1C,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YACjC,IAAI,IAAI,KAAK,aAAa,IAAI,IAAI,CAAC,0BAA0B,EAAE,GAAG,CAAC,UAAU,CAAC;gBAAE,SAAS;YACzF,IAAI,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,SAAS,IAAI,IAAI,CAAC,YAAY,aAAa,UAAU,IAAI,IAAI,EAAE,CAAC,CAAC;QAC/F,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import { LabellingTypes } from '@wildo-ai/presets-components-models';\n\n/**\n * The label keys a resource's layout SECTIONS need: one per section per policy slot\n * (`resources.<type>.sections.<ref>.<slot>`), except a `description` its specification does not\n * document.\n *\n * A section description is optional (`RESOURCE_LAYOUT_REQUIRED_TEXT_SLOTS` in the specification\n * schemas). Planned regardless, the model wrote one for every section, restating the title — \"Workflow —\n * Choose a workflow\". `sectionsWithoutDescription` is `undefined` when the resource has no\n * specification to read the decision from, and then every slot is planned, as before. Pure.\n */\nexport function planResourceSectionLabelKeys(args: {\n resourceType: string;\n sectionRefs: readonly string[];\n slotKeys: readonly string[];\n sectionsWithoutDescription: ReadonlySet<string> | undefined;\n}): string[] {\n const keys: string[] = [];\n for (const sectionRef of args.sectionRefs) {\n for (const slot of args.slotKeys) {\n if (slot === 'description' && args.sectionsWithoutDescription?.has(sectionRef)) continue;\n keys.push(`${LabellingTypes.RESOURCES}.${args.resourceType}.sections.${sectionRef}.${slot}`);\n }\n }\n return keys;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"role-lifecycle-keys.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/role-lifecycle-keys.utils.ts"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,eAAO,MAAM,kCAAkC;;;EAG7C,CAAC;AAEH;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,MAAM,EAAE,CAwB1C;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,EAAE,CAmB/C"}
1
+ {"version":3,"file":"role-lifecycle-keys.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/role-lifecycle-keys.utils.ts"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,eAAO,MAAM,kCAAkC;;;EAG7C,CAAC;AAEH;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,MAAM,EAAE,CAwB1C;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,EAAE,CAmB/C"}
@@ -1 +1 @@
1
- {"version":3,"file":"role-lifecycle-keys.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/role-lifecycle-keys.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,sBAAsB,GACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,cAAc,EACd,eAAe,GAEhB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,kCAAkC,EAAE,MAAM,+BAA+B,CAAC;AAEnF;;;;GAIG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,OAAO;IACf,IAAI,EAAE,MAAM;CACb,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,UAAU,eAAe;IAC7B,MAAM,eAAe,GAAG,kCAAkC,EAAE,CAAC;IAC7D,IAAI,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEzD,MAAM,MAAM,GAAG,eAAe,CAAC,cAAc,CAAC,KAAK,CAAsD,CAAC;IAC1G,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC;SACrC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,C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C;IAED,MAAM,QAAQ,GAAG,CAAC,0BAA0B,EAAE,mBAAmB,EAAE,gBAAgB,CAAU,CAAC;IAC9F,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,KAAK,MAAM,KAAK,IAAI,sBAAsB,CAAC,OAAO,CAAC,EAAE,CAAC;YACpD,IAAI,CAAC,IAAI,CAAC,GAAG,MAAM,IAAI,OAAO,IAAI,KAAK,EAAE,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import {\n LifecycleStage,\n LIFECYCLE_LABEL_FIELDS,\n} from '@wildo-ai/saas-models';\nimport {\n LabellingTypes,\n LabellingPolicy,\n type LabellingUnitaryDef,\n} from '@wildo-ai/presets-components-models';\nimport { getAllRegisteredRoleSpecifications } from '@wildo-ai/saas-specifications';\n\n/**\n * Canonical per-unit location for application role labels. The labelling\n * planner writes this unit and consumer-documentation publication reads the\n * same primary-locale unit; keeping one named value prevents path drift.\n */\nexport const ROLE_LABELLING_UNIT_FILE_PATH_HINT = Object.freeze({\n bucket: 'roles',\n slug: 'root',\n});\n\n/**\n * Roles emit one set of keys per unique role `ref` (engine + app\n * specifications collapse into the same flat namespace because the\n * runtime role token is globally unique).\n */\nexport function collectRoleKeys(): string[] {\n const registeredSpecs = getAllRegisteredRoleSpecifications();\n if (Object.keys(registeredSpecs).length === 0) return [];\n\n const policy = LabellingPolicy[LabellingTypes.ROLES] as Record<string, LabellingUnitaryDef[]> | undefined;\n const roleSubKeys = (policy?.role ?? [])\n .map((def) => (typeof def === 'string' ? def : def?.ref))\n .filter((value): value is string => typeof value === 'string' && value.length > 0);\n\n if (roleSubKeys.length === 0) return [];\n\n const uniqueRefs = new Set<string>();\n for (const specification of Object.values(registeredSpecs)) {\n const ref = (specification as { ref?: string })?.ref;\n if (typeof ref === 'string' && ref.length > 0) uniqueRefs.add(ref);\n }\n\n const keys: string[] = [];\n for (const ref of uniqueRefs) {\n for (const subKey of roleSubKeys) {\n keys.push(`${LabellingTypes.ROLES}.${ref}.${subKey}`);\n }\n }\n return keys;\n}\n\n/**\n * Lifecycle stages + home-page sections. Both are static so the key\n * shape is fully determined by `LIFECYCLE_LABEL_FIELDS`.\n */\nexport function collectLifecycleKeys(): string[] {\n const prefix = LabellingTypes.LIFECYCLE;\n const keys: string[] = [];\n\n const stageFields = LIFECYCLE_LABEL_FIELDS.stage;\n for (const stageValue of Object.values(LifecycleStage)) {\n for (const field of stageFields) {\n keys.push(`${prefix}.stage.${stageValue}.${field}`);\n }\n }\n\n const sections = ['home_activation_progress', 'home_welcome_back', 'home_dashboard'] as const;\n for (const section of sections) {\n for (const field of LIFECYCLE_LABEL_FIELDS[section]) {\n keys.push(`${prefix}.${section}.${field}`);\n }\n }\n\n return keys;\n}\n"]}
1
+ {"version":3,"file":"role-lifecycle-keys.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/role-lifecycle-keys.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,sBAAsB,GACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,cAAc,EACd,eAAe,GAEhB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,kCAAkC,EAAE,MAAM,+BAA+B,CAAC;AAEnF;;;;GAIG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,OAAO;IACf,IAAI,EAAE,MAAM;CACb,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,UAAU,eAAe;IAC7B,MAAM,eAAe,GAAG,kCAAkC,EAAE,CAAC;IAC7D,IAAI,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEzD,MAAM,MAAM,GAAG,eAAe,CAAC,cAAc,CAAC,KAAK,CAAsD,CAAC;IAC1G,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,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KAAK,IAAI,WAAW,EAAE,CAAC;YAChC,IAAI,CAAC,IAAI,CAAC,GAAG,MAAM,UAAU,UAAU,IAAI,KAAK,EAAE,CAAC,CAAC;QACtD,CAAC;IACH,CAAC;IAED,MAAM,QAAQ,GAAG,CAAC,0BAA0B,EAAE,mBAAmB,EAAE,gBAAgB,CAAU,CAAC;IAC9F,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,KAAK,MAAM,KAAK,IAAI,sBAAsB,CAAC,OAAO,CAAC,EAAE,CAAC;YACpD,IAAI,CAAC,IAAI,CAAC,GAAG,MAAM,IAAI,OAAO,IAAI,KAAK,EAAE,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import {\n LifecycleStage,\n LIFECYCLE_LABEL_FIELDS,\n} from '@wildo-ai/saas-models';\nimport {\n LabellingTypes,\n LabellingPolicy,\n type LabellingUnitaryDef,\n} from '@wildo-ai/presets-components-models';\nimport { getAllRegisteredRoleSpecifications } from '@wildo-ai/saas-specifications';\n\n/**\n * Canonical per-unit location for application role labels. The labelling\n * planner writes this unit and consumer-documentation publication reads the\n * same primary-locale unit; keeping one named value prevents path drift.\n */\nexport const ROLE_LABELLING_UNIT_FILE_PATH_HINT = Object.freeze({\n bucket: 'roles',\n slug: 'root',\n});\n\n/**\n * Roles emit one set of keys per unique role `ref` (engine + app\n * specifications collapse into the same flat namespace because the\n * runtime role token is globally unique).\n */\nexport function collectRoleKeys(): string[] {\n const registeredSpecs = getAllRegisteredRoleSpecifications();\n if (Object.keys(registeredSpecs).length === 0) return [];\n\n const policy = LabellingPolicy[LabellingTypes.ROLES] as Record<string, LabellingUnitaryDef[]> | undefined;\n const roleSubKeys = (policy?.role ?? [])\n .map((def) => (typeof def === 'string' ? def : def?.ref))\n .filter((value): value is string => typeof value === 'string' && value.length > 0);\n\n if (roleSubKeys.length === 0) return [];\n\n const uniqueRefs = new Set<string>();\n for (const specification of Object.values(registeredSpecs)) {\n const ref = (specification as { ref?: string })?.ref;\n if (typeof ref === 'string' && ref.length > 0) uniqueRefs.add(ref);\n }\n\n const keys: string[] = [];\n for (const ref of uniqueRefs) {\n for (const subKey of roleSubKeys) {\n keys.push(`${LabellingTypes.ROLES}.${ref}.${subKey}`);\n }\n }\n return keys;\n}\n\n/**\n * Lifecycle stages + home-page sections. Both are static so the key\n * shape is fully determined by `LIFECYCLE_LABEL_FIELDS`.\n */\nexport function collectLifecycleKeys(): string[] {\n const prefix = LabellingTypes.LIFECYCLE;\n const keys: string[] = [];\n\n const stageFields = LIFECYCLE_LABEL_FIELDS.stage;\n for (const stageValue of Object.values(LifecycleStage)) {\n for (const field of stageFields) {\n keys.push(`${prefix}.stage.${stageValue}.${field}`);\n }\n }\n\n const sections = ['home_activation_progress', 'home_welcome_back', 'home_dashboard'] as const;\n for (const section of sections) {\n for (const field of LIFECYCLE_LABEL_FIELDS[section]) {\n keys.push(`${prefix}.${section}.${field}`);\n }\n }\n\n return keys;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"schema-fields-extractor.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/schema-fields-extractor.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB,OAAO,EAA8D,KAAK,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAElI,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC;IACtB;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,8CAA8C,CAC5D,SAAS,EAAE,kCAAkC,GAAG,SAAS,GACxD,GAAG,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAOhC;AAED,+GAA+G;AAC/G,MAAM,WAAW,kCAAkC;IACjD,QAAQ,CAAC,eAAe,CAAC,EAAE;QAAE,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,CAAC;IACxE,QAAQ,CAAC,iBAAiB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAChE;AAmBD;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE;IAC/C,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,wBAAwB,CAAC;CAC1C,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAkB/B"}
1
+ {"version":3,"file":"schema-fields-extractor.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/schema-fields-extractor.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB,OAAO,EAA8D,KAAK,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAElI,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC;IACtB;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;;;;;;;;;;;OAeG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,kBAAk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