@wildo-ai/dev-companion 1.1.5 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (596) hide show
  1. package/dist/esm/.tsbuildinfo +1 -1
  2. package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
  3. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js +0 -1
  4. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
  5. package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
  6. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +0 -1
  7. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
  8. package/dist/esm/brand/services/brand-accept.companion.service.d.ts +8 -0
  9. package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
  10. package/dist/esm/brand/services/brand-accept.companion.service.js +6 -0
  11. package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
  12. package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts +21 -0
  13. package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -0
  14. package/dist/esm/brand/services/brand-propagation.companion.utils.js +33 -0
  15. package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -0
  16. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +69 -1
  17. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  18. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +84 -3
  19. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  20. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +8 -4
  21. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
  22. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +9 -5
  23. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
  24. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js +1 -1
  25. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
  26. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +4 -0
  27. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -1
  28. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +25 -3
  29. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -1
  30. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +159 -11
  31. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
  32. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +424 -41
  33. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
  34. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +333 -60
  35. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  36. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +1029 -185
  37. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  38. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts +8 -2
  39. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -1
  40. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js +8 -2
  41. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -1
  42. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts +20 -0
  43. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -0
  44. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js +29 -0
  45. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -0
  46. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +11 -0
  47. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  48. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +60 -7
  49. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  50. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +5 -4
  51. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  52. package/dist/esm/claude-cli/services/research-evidence-store.companion.js +13 -4
  53. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  54. package/dist/esm/companion-api/companion-api.schemas.d.ts +193 -2
  55. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  56. package/dist/esm/companion-api/companion-api.schemas.js +20 -1
  57. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  58. package/dist/esm/companion-api/companion-error-guidance.models.d.ts +25 -0
  59. package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -0
  60. package/dist/esm/companion-api/companion-error-guidance.models.js +26 -0
  61. package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -0
  62. package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts +44 -0
  63. package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -0
  64. package/dist/esm/companion-api/controllers/companion-file-route-confinement.js +111 -0
  65. package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -0
  66. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts +6 -14
  67. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
  68. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +6 -14
  69. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
  70. package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts +12 -0
  71. package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -0
  72. package/dist/esm/companion-api/controllers/companion-trace-exemptions.js +20 -0
  73. package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -0
  74. package/dist/esm/companion-api/controllers/companion.controller.d.ts +104 -14
  75. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  76. package/dist/esm/companion-api/controllers/companion.controller.js +516 -122
  77. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  78. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
  79. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js +6 -38
  80. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
  81. package/dist/esm/core/config/primary-language.companion.utils.d.ts +13 -0
  82. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  83. package/dist/esm/core/config/primary-language.companion.utils.js +19 -0
  84. package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
  85. package/dist/esm/core/context/companion-package-loaders.companion.js +1 -39
  86. package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
  87. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  88. package/dist/esm/core/inject/models/container.js +4 -0
  89. package/dist/esm/core/inject/models/container.js.map +1 -1
  90. package/dist/esm/core/inject/models/service-types.d.ts +4 -0
  91. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  92. package/dist/esm/core/inject/models/service-types.js +4 -0
  93. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  94. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  95. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js +16 -0
  96. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
  97. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts +1 -1
  98. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  99. package/dist/esm/core/introspection/models/companion-introspection.models.js +6 -0
  100. package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
  101. package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts +41 -0
  102. package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -0
  103. package/dist/esm/core/introspection/resources/application-secrets.companion.js +155 -0
  104. package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -0
  105. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts +76 -0
  106. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -0
  107. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js +197 -0
  108. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -0
  109. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts +47 -0
  110. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -0
  111. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +199 -0
  112. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -0
  113. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +42 -0
  114. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  115. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +173 -22
  116. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  117. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts +78 -90
  118. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  119. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +288 -25
  120. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  121. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts +22 -36
  122. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
  123. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js +49 -13
  124. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
  125. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts +1 -1
  126. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  127. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js +10 -15
  128. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
  129. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +2 -0
  130. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
  131. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
  132. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts +4 -0
  133. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
  134. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.js.map +1 -1
  135. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  136. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +77 -9
  137. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  138. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts +45 -3
  139. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
  140. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js +8 -1
  141. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
  142. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts +3 -2
  143. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
  144. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js +8 -3
  145. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
  146. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +30 -1
  147. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
  148. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +128 -20
  149. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
  150. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts +13 -0
  151. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  152. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +21 -17
  153. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
  154. package/dist/esm/core/runtime/companion-endpoint-record.d.ts +8 -0
  155. package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -0
  156. package/dist/esm/core/runtime/companion-endpoint-record.js +23 -0
  157. package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -0
  158. package/dist/esm/core/runtime/companion-env-file.d.ts +30 -0
  159. package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -0
  160. package/dist/esm/core/runtime/companion-env-file.js +53 -0
  161. package/dist/esm/core/runtime/companion-env-file.js.map +1 -0
  162. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +5 -0
  163. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
  164. package/dist/esm/core/runtime/dev-compile-quiet.companion.js +11 -0
  165. package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
  166. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts +56 -0
  167. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -0
  168. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js +97 -0
  169. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -0
  170. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +43 -3
  171. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  172. package/dist/esm/core/runtime/services/start-companion-application.service.js +127 -22
  173. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  174. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts +11 -1
  175. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  176. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +42 -19
  177. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  178. package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
  179. package/dist/esm/core/specifications/resource-specification-context.factory.js +10 -1
  180. package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
  181. package/dist/esm/core/traceability/companion-traceability.models.d.ts +1 -7
  182. package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
  183. package/dist/esm/core/traceability/companion-traceability.models.js +3 -5
  184. package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
  185. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
  186. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +15 -14
  187. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
  188. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts +0 -23
  189. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
  190. package/dist/esm/creation-conversation/creation-conversation.function-tools.js +251 -50
  191. package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
  192. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  193. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +0 -2
  194. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  195. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
  196. package/dist/esm/deliberations/services/deliberation.companion.service.js +3 -2
  197. package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
  198. package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
  199. package/dist/esm/email/models/email-template.actors-system.definitions.js +0 -1
  200. package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
  201. package/dist/esm/email/services/email-template.companion.service.d.ts +5 -3
  202. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  203. package/dist/esm/email/services/email-template.companion.service.js +53 -255
  204. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  205. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts +12 -0
  206. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
  207. package/dist/esm/email/utils/email-labels-file-source.utils.js +62 -3
  208. package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
  209. package/dist/esm/email/utils/email-labels-tree.utils.d.ts +52 -0
  210. package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -0
  211. package/dist/esm/email/utils/email-labels-tree.utils.js +261 -0
  212. package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -0
  213. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts +2 -0
  214. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -1
  215. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js +21 -1
  216. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -1
  217. package/dist/esm/executions/services/companion-executions.companion.service.d.ts +18 -1
  218. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  219. package/dist/esm/executions/services/companion-executions.companion.service.js +187 -46
  220. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  221. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  222. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +0 -1
  223. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  224. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  225. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +0 -1
  226. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  227. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  228. package/dist/esm/expert-personas/services/expert-persona.companion.service.js +10 -0
  229. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  230. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts +1 -8
  231. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
  232. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js +2 -9
  233. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
  234. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts +2 -0
  235. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
  236. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js +3 -1
  237. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
  238. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts +32 -0
  239. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -0
  240. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js +32 -0
  241. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -0
  242. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts +0 -1
  243. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
  244. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js +0 -1
  245. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
  246. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts +0 -7
  247. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
  248. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js +0 -7
  249. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
  250. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts +30 -4
  251. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -1
  252. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js +31 -5
  253. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -1
  254. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts +0 -2
  255. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
  256. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js +0 -2
  257. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
  258. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts +4 -0
  259. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
  260. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js +5 -1
  261. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
  262. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts +1 -15
  263. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
  264. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js +1 -15
  265. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
  266. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts +0 -3
  267. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
  268. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js +0 -3
  269. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
  270. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts +49 -16
  271. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  272. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js +49 -16
  273. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
  274. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts +0 -5
  275. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
  276. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js +0 -5
  277. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
  278. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts +3 -0
  279. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
  280. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +4 -1
  281. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
  282. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts +7 -1
  283. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
  284. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js +8 -2
  285. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
  286. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts +1 -0
  287. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
  288. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js +2 -1
  289. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
  290. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts +1 -0
  291. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
  292. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js +2 -1
  293. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
  294. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts +12 -0
  295. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -0
  296. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js +12 -0
  297. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -0
  298. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts +1 -0
  299. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
  300. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js +2 -1
  301. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
  302. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts +10 -0
  303. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -1
  304. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js +11 -1
  305. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -1
  306. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts +8 -0
  307. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
  308. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js +9 -1
  309. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
  310. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts +3 -0
  311. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
  312. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js +4 -1
  313. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
  314. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +2 -1
  315. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
  316. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +3 -2
  317. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
  318. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts +6 -0
  319. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
  320. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js +7 -1
  321. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
  322. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts +1 -0
  323. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
  324. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js +2 -1
  325. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
  326. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts +0 -2
  327. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
  328. package/dist/esm/i18n/components/progression_milestone_tracker.en.js +0 -2
  329. package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
  330. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts +1 -0
  331. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
  332. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +123 -19
  333. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
  334. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -1
  335. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js +12 -0
  336. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
  337. package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts +25 -0
  338. package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -0
  339. package/dist/esm/i18n/errors_guidance/errors-guidance.en.js +26 -0
  340. package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -0
  341. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts +26 -3
  342. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
  343. package/dist/esm/i18n/errors_messages/errors-messages.en.js +25 -3
  344. package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
  345. package/dist/esm/i18n/index.d.ts +10 -8
  346. package/dist/esm/i18n/index.d.ts.map +1 -1
  347. package/dist/esm/i18n/index.js +10 -8
  348. package/dist/esm/i18n/index.js.map +1 -1
  349. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +10 -0
  350. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
  351. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +2 -0
  352. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
  353. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts +97 -0
  354. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -0
  355. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js +60 -0
  356. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -0
  357. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
  358. package/dist/esm/i18n/resources/workbenchAspects.en.js +6 -0
  359. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
  360. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts +5 -0
  361. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -1
  362. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js +1 -0
  363. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -1
  364. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts +24 -0
  365. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -1
  366. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js +8 -0
  367. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -1
  368. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +30 -0
  369. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
  370. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +9 -0
  371. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
  372. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts +17 -4
  373. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
  374. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js +32 -4
  375. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -1
  376. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts +8 -2
  377. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
  378. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js +6 -2
  379. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
  380. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts +18 -7
  381. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
  382. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js +17 -7
  383. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
  384. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts +28 -3
  385. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
  386. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js +13 -3
  387. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
  388. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts +3 -2
  389. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
  390. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js +8 -2
  391. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
  392. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +118 -8
  393. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  394. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +42 -16
  395. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  396. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts +12 -2
  397. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
  398. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js +16 -2
  399. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
  400. package/dist/esm/i18n/system_enums/application-creation.en.d.ts +10 -0
  401. package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
  402. package/dist/esm/i18n/system_enums/application-creation.en.js +11 -0
  403. package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
  404. package/dist/esm/i18n/system_enums/processor-register.en.d.ts +6 -0
  405. package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -1
  406. package/dist/esm/i18n/system_enums/processor-register.en.js +6 -0
  407. package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
  408. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +4 -1
  409. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
  410. package/dist/esm/i18n/system_enums/workbench-dossier.en.js +5 -1
  411. package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
  412. package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts +46 -0
  413. package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -0
  414. package/dist/esm/i18n/system_enums/workbench-secrets.en.js +46 -0
  415. package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -0
  416. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts +8 -0
  417. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -1
  418. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js +13 -0
  419. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -1
  420. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts +61 -0
  421. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -0
  422. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js +22 -0
  423. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -0
  424. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +105 -24
  425. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
  426. package/dist/esm/i18n-labelling/models/labelling-unit.models.js +55 -24
  427. package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
  428. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
  429. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js +0 -2
  430. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
  431. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts +48 -0
  432. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -0
  433. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js +145 -0
  434. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -0
  435. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +70 -18
  436. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  437. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +330 -113
  438. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  439. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts +45 -0
  440. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
  441. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js +208 -6
  442. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
  443. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +11 -2
  444. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  445. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +101 -18
  446. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  447. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts +64 -1
  448. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  449. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +393 -70
  450. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  451. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +9 -5
  452. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
  453. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
  454. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts +54 -0
  455. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -0
  456. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js +74 -0
  457. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -0
  458. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts +3 -3
  459. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
  460. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts +24 -0
  461. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -0
  462. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js +34 -0
  463. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -0
  464. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
  465. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js +5 -1
  466. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
  467. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts +76 -0
  468. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -0
  469. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js +110 -0
  470. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -0
  471. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts +17 -0
  472. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -0
  473. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js +23 -0
  474. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -0
  475. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +36 -3
  476. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
  477. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +77 -5
  478. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
  479. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts +38 -0
  480. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -0
  481. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js +66 -0
  482. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -0
  483. package/dist/esm/index.d.ts.map +1 -1
  484. package/dist/esm/index.js +9 -3
  485. package/dist/esm/index.js.map +1 -1
  486. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -1
  487. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js +0 -1
  488. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -1
  489. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  490. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +1 -3
  491. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  492. package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts +11 -0
  493. package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -0
  494. package/dist/esm/meta-workflows/models/application-line-catalog.models.js +17 -0
  495. package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -0
  496. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  497. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js +0 -1
  498. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  499. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js +1 -1
  500. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
  501. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts +14 -0
  502. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -1
  503. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js +18 -0
  504. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
  505. package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts +14 -0
  506. package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -0
  507. package/dist/esm/meta-workflows/models/human-decision-settler.models.js +18 -0
  508. package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -0
  509. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +31 -23
  510. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  511. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +36 -5
  512. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
  513. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
  514. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js +1 -3
  515. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
  516. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +19 -0
  517. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
  518. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +38 -6
  519. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
  520. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +48 -3
  521. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
  522. package/dist/esm/meta-workflows/models/playbook-run-record.models.js +61 -8
  523. package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
  524. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +15 -1
  525. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -1
  526. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +50 -5
  527. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -1
  528. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +52 -9
  529. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  530. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +131 -59
  531. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  532. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts +19 -0
  533. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -0
  534. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js +36 -0
  535. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -0
  536. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +9 -0
  537. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  538. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +41 -17
  539. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  540. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +42 -2
  541. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  542. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +121 -4
  543. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  544. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts +32 -0
  545. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -0
  546. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +161 -0
  547. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -0
  548. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts +2 -0
  549. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -1
  550. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js +1 -0
  551. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
  552. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts +3 -2
  553. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
  554. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +12 -3
  555. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
  556. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +74 -1
  557. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
  558. package/dist/esm/meta-workflows/services/dossier.companion.service.js +227 -30
  559. package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
  560. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +29 -2
  561. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  562. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +68 -5
  563. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  564. package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts +40 -0
  565. package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -0
  566. package/dist/esm/meta-workflows/services/governed-document-texts.companion.js +91 -0
  567. package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -0
  568. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts +25 -0
  569. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -0
  570. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js +40 -0
  571. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -0
  572. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts +90 -0
  573. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -0
  574. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +307 -0
  575. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -0
  576. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +29 -0
  577. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  578. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +44 -4
  579. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  580. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +360 -47
  581. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  582. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +1424 -246
  583. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  584. package/package.json +17 -17
  585. package/dist/esm/__time-gov.probe.d.mts +0 -0
  586. package/dist/esm/__time-gov.probe.d.mts.map +0 -0
  587. package/dist/esm/__time-gov.probe.mjs.map +0 -0
  588. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts +0 -0
  589. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts.map +0 -0
  590. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.js.map +0 -0
  591. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts +0 -0
  592. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +0 -0
  593. package/dist/esm/i18n/composite_views/app.creation-board.en.js.map +0 -0
  594. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts +0 -0
  595. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts.map +0 -0
  596. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.js.map +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"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* and `primaryActionLabel` are\n * gated by the planner directly off backend collection/CREATE operations — title and\n * primaryActionLabel DO have generic fallbacks, so they need no bridge.) Tolerant `string[]`:\n * defaults to `[]` for a stale subprocess (a configured secondary label simply renders empty\n * until the dist catches up — same best-effort contract as the guidance/onboarding fields).\n */\n emptyStateSecondaryActionRefs: string[];\n /**\n * Structural layout refs per resource — `resourceType → { sections, wizardSteps, groups,\n * filterPresets }`.\n *\n * The same frontend-only-fact problem as `operationDescriptionOptIns`, and it had no bridge, so\n * NO SECTION IN ANY APPLICATION HAS EVER BEEN LABELLED. Measured 2026-09-18 across both dogfood\n * applications: 0 of 315 resource label units carry a `sections` block, while the section policy\n * (`RESOURCES_SECTIONS`) is populated and `<Section>` resolves\n * `resources.{type}.sections.{ref}.title` — so every sectioned form rendered its own raw ref as a\n * heading (`who`, `reach`, `occurrence`).\n *\n * The refs are authored in the ui-behavior (`layout.refs`), which only the SUBPROCESS can import.\n * `planResourceUnits` read them from `resourceConfig.frontendConfiguration.layout.refs` on the\n * backend registry, where they are always absent, and the subprocess — which computes the very\n * same keys correctly — has its `resources.*` keys DROPPED as \"owned by planResourceUnits\". So the\n * party that could see them was ignored, and the party that emitted them was blind: the keys fell\n * through the gap between the two rather than being forgotten by either.\n *\n * Tolerant `Record<string, string[]>` per axis, like every sibling: a stale subprocess degrades to\n * no section labels (today's behaviour) instead of crashing the plan.\n */\n resourceLayoutRefs: Record<string, { sections: string[]; wizardSteps: string[]; groups: string[]; filterPresets: string[] }>;\n}\n\n/**\n * Shared empty snapshot returned when discovery is skipped (no SAAS_APP frontend\n * service, subprocess failure, or malformed payload). Read-only by every consumer\n * (`planFrontendDerivedUnits` filters into new arrays; `planAppGuidanceUnit`\n * spreads into a new Set), so the singleton reference is safe to share.\n */\nexport const EMPTY_FRONTEND_DERIVED_LABEL_KEYS: FrontendDerivedLabelKeys = {\n appSpecificLabelKeys: [],\n appLevelGuidanceFlowLabelKeys: [],\n onboardingViewLabelKeys: [],\n viewLabelParams: {},\n settingsHubKeyMeta: {},\n operationDescriptionOptIns: {},\n emptyStateSecondaryActionRefs: [],\n resourceLayoutRefs: {},\n};\n\nfunction onlyStringRecord(value: unknown): Record<string, string> {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) return {};\n const result: Record<string, string> = {};\n for (const [key, entry] of Object.entries(value as Record<string, unknown>)) {\n if (typeof entry === 'string' && entry.length > 0) result[key] = entry;\n }\n return result;\n}\n\nfunction onlyStrings(value: unknown): string[] {\n return Array.isArray(value)\n ? value.filter((key): key is string => typeof key === 'string')\n : [];\n}\n\n/**\n * Coerce an unknown into `Record<string, string[]>`, dropping non-string entries\n * and empty arrays. Used for the `viewLabelParams` map (tolerant of absence or a\n * malformed shape from a stale subprocess).\n */\nfunction onlyStringArrayRecord(value: unknown): Record<string, string[]> {\n if (typeof value !== 'object' || value === null) return {};\n const result: Record<string, string[]> = {};\n for (const [key, entry] of Object.entries(value as Record<string, unknown>)) {\n const params = onlyStrings(entry);\n if (params.length > 0) result[key] = params;\n }\n return result;\n}\n\n/**\n * Coerce an unknown into the per-resource structural-ref map, dropping malformed entries and\n * resources that declare no ref on any axis. Same tolerance contract as `onlyStringArrayRecord`:\n * a stale subprocess simply contributes nothing rather than failing the plan.\n */\nfunction onlyLayoutRefsRecord(value: unknown): Record<string, { sections: string[]; wizardSteps: string[]; groups: string[]; filterPresets: string[] }> {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) return {};\n const result: Record<string, { sections: string[]; wizardSteps: string[]; groups: string[]; filterPresets: string[] }> = {};\n for (const [resourceType, entry] of Object.entries(value as Record<string, unknown>)) {\n if (typeof entry !== 'object' || entry === null) continue;\n const axes = entry as { sections?: unknown; wizardSteps?: unknown; groups?: unknown; filterPresets?: unknown };\n const refs = {\n sections: onlyStrings(axes.sections),\n wizardSteps: onlyStrings(axes.wizardSteps),\n groups: onlyStrings(axes.groups),\n filterPresets: onlyStrings(axes.filterPresets),\n };\n if (refs.sections.length || refs.wizardSteps.length || refs.groups.length || refs.filterPresets.length) {\n result[resourceType] = refs;\n }\n }\n return result;\n}\n\n/**\n * Parse the raw `frontend-labels-needed-info` IPC payload into a typed snapshot.\n *\n * Returns `null` when the payload is missing the required `appSpecificLabelKeys`\n * array (malformed / non-success subprocess), so the caller can log + fall back\n * to {@link EMPTY_FRONTEND_DERIVED_LABEL_KEYS}.\n *\n * The two app-level guidance fields are TOLERANT of absence (default `[]`): a\n * stale subprocess emitting only the original single-field shape degrades\n * gracefully instead of throwing — composite/view/sidebar labels still generate;\n * only app-level guidance flows + onboarding views silently no-op until the\n * subprocess dist catches up. Non-string array entries are filtered out.\n */\nexport function parseFrontendDerivedLabelSnapshot(data: unknown): FrontendDerivedLabelKeys | null {\n const payload = data as {\n appSpecificLabelKeys?: unknown;\n appLevelGuidanceFlowLabelKeys?: unknown;\n onboardingViewLabelKeys?: unknown;\n viewLabelParams?: unknown;\n settingsHubKeyMeta?: unknown;\n operationDescriptionOptIns?: unknown;\n emptyStateSecondaryActionRefs?: unknown;\n resourceLayoutRefs?: unknown;\n } | undefined;\n\n if (!Array.isArray(payload?.appSpecificLabelKeys)) {\n return null;\n }\n\n return {\n appSpecificLabelKeys: onlyStrings(payload.appSpecificLabelKeys),\n appLevelGuidanceFlowLabelKeys: onlyStrings(payload?.appLevelGuidanceFlowLabelKeys),\n onboardingViewLabelKeys: onlyStrings(payload?.onboardingViewLabelKeys),\n viewLabelParams: onlyStringArrayRecord(payload?.viewLabelParams),\n // Tolerant of absence, like every sibling: a STALE subprocess predating\n // this field must degrade to no keyMeta, never crash the whole plan.\n settingsHubKeyMeta: onlyStringRecord(payload?.settingsHubKeyMeta),\n operationDescriptionOptIns: onlyStringArrayRecord(payload?.operationDescriptionOptIns),\n emptyStateSecondaryActionRefs: onlyStrings(payload?.emptyStateSecondaryActionRefs),\n resourceLayoutRefs: onlyLayoutRefsRecord(payload?.resourceLayoutRefs),\n };\n}\n"]}
1
+ {"version":3,"file":"frontend-derived-label-keys.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/frontend-derived-label-keys.utils.ts"],"names":[],"mappings":"AAoGA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAA6B;IACzE,oBAAoB,EAAE,EAAE;IACxB,6BAA6B,EAAE,EAAE;IACjC,uBAAuB,EAAE,EAAE;IAC3B,eAAe,EAAE,EAAE;IACnB,kBAAkB,EAAE,EAAE;IACtB,0BAA0B,EAAE,EAAE;IAC9B,6BAA6B,EAAE,EAAE;IACjC,kBAAkB,EAAE,EAAE;CACvB,CAAC;AAEF,SAAS,gBAAgB,CAAC,KAAc;IACtC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,CAA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AC;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"]}
@@ -0,0 +1,24 @@
1
+ import { type LabellingPlanIncompleteness, type LabellingUnit } from '../models/labelling-unit.models';
2
+ /**
3
+ * Whether a unit must be REFUSED by every path that writes its label files, and why.
4
+ *
5
+ * A unit carrying `plannedFromIncompleteInputs` holds a SUBSET of its real keys, and each of the three
6
+ * write paths prunes what the plan does not hold: labellize generation, labellize adoption, and
7
+ * translate (which drops target-locale keys the plan lacks and records the locale `fresh`, so the loss
8
+ * would be permanent — later runs skip a fresh locale). One predicate and one message for all three, so
9
+ * a fourth writer cannot guard differently.
10
+ *
11
+ * @returns the refusal message, or `undefined` when the unit's plan is complete.
12
+ */
13
+ export declare function incompletePlanRefusal(unit: Pick<LabellingUnit, 'plannedFromIncompleteInputs'>): string | undefined;
14
+ /**
15
+ * Which frontend incompleteness makes the key set of a unit that reads the frontend snapshot PARTIAL.
16
+ *
17
+ * An application with no SAAS_APP frontend service is not partial: it genuinely has no layout, no
18
+ * description opt-ins and no discovered guidance, so the empty snapshot is its complete answer, and
19
+ * tagging it would refuse its units for ever with a "repair the cause" that has no cause. Only a
20
+ * snapshot that SHOULD have answered and did not — the introspection failed, or answered malformed —
21
+ * is partial.
22
+ */
23
+ export declare function resolveFrontendPlanDegradation(incompleteness: LabellingPlanIncompleteness | undefined): LabellingPlanIncompleteness | undefined;
24
+ //# sourceMappingURL=incomplete-plan-refusal.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incomplete-plan-refusal.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/incomplete-plan-refusal.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,2BAA2B,EAChC,KAAK,aAAa,EACnB,MAAM,iCAAiC,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI,CAAC,aAAa,EAAE,6BAA6B,CAAC,GAAG,MAAM,GAAG,SAAS,CAOlH;AAED;;;;;;;;GAQG;AACH,wBAAgB,8BAA8B,CAC5C,cAAc,EAAE,2BAA2B,GAAG,SAAS,GACtD,2BAA2B,GAAG,SAAS,CAGzC"}
@@ -0,0 +1,34 @@
1
+ import { LabellingPlanIncompletenessReason, } from '../models/labelling-unit.models.js';
2
+ /**
3
+ * Whether a unit must be REFUSED by every path that writes its label files, and why.
4
+ *
5
+ * A unit carrying `plannedFromIncompleteInputs` holds a SUBSET of its real keys, and each of the three
6
+ * write paths prunes what the plan does not hold: labellize generation, labellize adoption, and
7
+ * translate (which drops target-locale keys the plan lacks and records the locale `fresh`, so the loss
8
+ * would be permanent — later runs skip a fresh locale). One predicate and one message for all three, so
9
+ * a fourth writer cannot guard differently.
10
+ *
11
+ * @returns the refusal message, or `undefined` when the unit's plan is complete.
12
+ */
13
+ export function incompletePlanRefusal(unit) {
14
+ const reasons = unit.plannedFromIncompleteInputs;
15
+ if (!reasons || reasons.length === 0)
16
+ return undefined;
17
+ return (`Not rewritten: part of this unit's keys come from a family that could not answer (${reasons.join(', ')}), ` +
18
+ 'so the plan is partial and writing it would delete the labels that family plans. Repair the cause and run again.');
19
+ }
20
+ /**
21
+ * Which frontend incompleteness makes the key set of a unit that reads the frontend snapshot PARTIAL.
22
+ *
23
+ * An application with no SAAS_APP frontend service is not partial: it genuinely has no layout, no
24
+ * description opt-ins and no discovered guidance, so the empty snapshot is its complete answer, and
25
+ * tagging it would refuse its units for ever with a "repair the cause" that has no cause. Only a
26
+ * snapshot that SHOULD have answered and did not — the introspection failed, or answered malformed —
27
+ * is partial.
28
+ */
29
+ export function resolveFrontendPlanDegradation(incompleteness) {
30
+ if (!incompleteness)
31
+ return undefined;
32
+ return incompleteness.reason === LabellingPlanIncompletenessReason.FRONTEND_INTROSPECTION_NO_APP_SERVICE ? undefined : incompleteness;
33
+ }
34
+ //# sourceMappingURL=incomplete-plan-refusal.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incomplete-plan-refusal.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/incomplete-plan-refusal.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,GAGlC,MAAM,iCAAiC,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAAwD;IAC5F,MAAM,OAAO,GAAG,IAAI,CAAC,2BAA2B,CAAC;IACjD,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IACvD,OAAO,CACL,qFAAqF,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK;QAC5G,kHAAkH,CACnH,CAAC;AACJ,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,8BAA8B,CAC5C,cAAuD;IAEvD,IAAI,CAAC,cAAc;QAAE,OAAO,SAAS,CAAC;IACtC,OAAO,cAAc,CAAC,MAAM,KAAK,iCAAiC,CAAC,qCAAqC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC;AACxI,CAAC","sourcesContent":["import {\n LabellingPlanIncompletenessReason,\n type LabellingPlanIncompleteness,\n type LabellingUnit,\n} from '../models/labelling-unit.models';\n\n/**\n * Whether a unit must be REFUSED by every path that writes its label files, and why.\n *\n * A unit carrying `plannedFromIncompleteInputs` holds a SUBSET of its real keys, and each of the three\n * write paths prunes what the plan does not hold: labellize generation, labellize adoption, and\n * translate (which drops target-locale keys the plan lacks and records the locale `fresh`, so the loss\n * would be permanent — later runs skip a fresh locale). One predicate and one message for all three, so\n * a fourth writer cannot guard differently.\n *\n * @returns the refusal message, or `undefined` when the unit's plan is complete.\n */\nexport function incompletePlanRefusal(unit: Pick<LabellingUnit, 'plannedFromIncompleteInputs'>): string | undefined {\n const reasons = unit.plannedFromIncompleteInputs;\n if (!reasons || reasons.length === 0) return undefined;\n return (\n `Not rewritten: part of this unit's keys come from a family that could not answer (${reasons.join(', ')}), ` +\n 'so the plan is partial and writing it would delete the labels that family plans. Repair the cause and run again.'\n );\n}\n\n/**\n * Which frontend incompleteness makes the key set of a unit that reads the frontend snapshot PARTIAL.\n *\n * An application with no SAAS_APP frontend service is not partial: it genuinely has no layout, no\n * description opt-ins and no discovered guidance, so the empty snapshot is its complete answer, and\n * tagging it would refuse its units for ever with a \"repair the cause\" that has no cause. Only a\n * snapshot that SHOULD have answered and did not — the introspection failed, or answered malformed —\n * is partial.\n */\nexport function resolveFrontendPlanDegradation(\n incompleteness: LabellingPlanIncompleteness | undefined,\n): LabellingPlanIncompleteness | undefined {\n if (!incompleteness) return undefined;\n return incompleteness.reason === LabellingPlanIncompletenessReason.FRONTEND_INTROSPECTION_NO_APP_SERVICE ? undefined : incompleteness;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"orphan-label-artifacts.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/orphan-label-artifacts.utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,2BAA2B,EAC3B,aAAa,EACd,MAAM,iCAAiC,CAAC;AAUzC;;;;;;;;GAQG;AACH,oBAAY,2BAA2B;IACrC,yFAAyF;IACzF,QAAQ,aAAa;IACrB,qFAAqF;IACrF,wBAAwB,6BAA6B;IACrD;;;;;;OAMG;IACH,uBAAuB,4BAA4B;CACpD;AAED,+DAA+D;AAC/D,MAAM,WAAW,kBAAkB;IACjC,oEAAoE;IACpE,YAAY,EAAE,MAAM,CAAC;IACrB,yFAAyF;IACzF,MAAM,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,2BAA2B,CAAC;IACrC,6EAA6E;IAC7E,cAAc,EAAE,SAAS,2BAA2B,EAAE,CAAC;IACvD;;;;OAIG;IACH,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,qEAAqE;IACrE,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,kFAAkF;IAClF,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,MAAM,GACf;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAU9C;AAED;;;;;;;;GAQG;AACH,wBAAsB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CA2BhG;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE;IAChD,YAAY,EAAE,SAAS,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,cAAc,CAAC,EAAE,CAAC;IACpE,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,aAAa,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAC7C,cAAc,EAAE,SAAS,2BAA2B,EAAE,CAAC;CACxD,GAAG,0BAA0B,CA2B7B;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,0BAA0B,GAAG,MAAM,CAqBvF"}
1
+ {"version":3,"file":"orphan-label-artifacts.utils.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/orphan-label-artifacts.utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,2BAA2B,EAC3B,aAAa,EACd,MAAM,iCAAiC,CAAC;AAWzC;;;;;;;;GAQG;AACH,oBAAY,2BAA2B;IACrC,yFAAyF;IACzF,QAAQ,aAAa;IACrB,qFAAqF;IACrF,wBAAwB,6BAA6B;IACrD;;;;;;OAMG;IACH,uBAAuB,4BAA4B;CACpD;AAED,+DAA+D;AAC/D,MAAM,WAAW,kBAAkB;IACjC,oEAAoE;IACpE,YAAY,EAAE,MAAM,CAAC;IACrB,yFAAyF;IACzF,MAAM,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,2BAA2B,CAAC;IACrC,6EAA6E;IAC7E,cAAc,EAAE,SAAS,2BAA2B,EAAE,CAAC;IACvD;;;;OAIG;IACH,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,qEAAqE;IACrE,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,kFAAkF;IAClF,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,MAAM,GACf;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAU9C;AAED;;;;;;;;GAQG;AACH,wBAAsB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CA2BhG;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE;IAChD,YAAY,EAAE,SAAS,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,cAAc,CAAC,EAAE,CAAC;IACpE,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,aAAa,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAC7C,cAAc,EAAE,SAAS,2BAA2B,EAAE,CAAC;CACxD,GAAG,0BAA0B,CA8B7B;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,0BAA0B,GAAG,MAAM,CAqBvF"}
@@ -1,6 +1,7 @@
1
1
  import * as fs from 'node:fs/promises';
2
2
  import * as path from 'node:path';
3
3
  import { LANGUAGE_INFO_MAP } from '@wildo-ai/presets-components-models';
4
+ import { isEmailTemplateLabellingUnitId } from '../models/email-template-labelling-unit.models.js';
4
5
  /**
5
6
  * Every locale code the framework recognises. Total over `AvailableLanguage`
6
7
  * rather than a hand-kept list, so a language added to the vocabulary tomorrow
@@ -139,7 +140,10 @@ export function computeOrphanLabelArtifacts(args) {
139
140
  orphanFiles: existingFiles
140
141
  .filter((file) => !plannedPairs.has(`${file.bucket}/${file.slug}`))
141
142
  .map((file) => file.relativePath),
142
- orphanLockUnitIds: [...lockUnitIds].filter((id) => !plannedIds.has(id)).sort(),
143
+ // Email template rows (#1908) belong to the translate pipeline's email lane, which `planAllUnits()`
144
+ // never plans by design (an email's primary words are authored). Judged against this plan, every
145
+ // translated email would be named an orphan.
146
+ orphanLockUnitIds: [...lockUnitIds].filter((id) => !plannedIds.has(id) && !isEmailTemplateLabellingUnitId(id)).sort(),
143
147
  scannedFileCount: existingFiles.length,
144
148
  };
145
149
  }
@@ -1 +1 @@
1
- {"version":3,"file":"orphan-label-artifacts.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/orphan-label-artifacts.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAMxE;;;;;GAKG;AACH,MAAM,kBAAkB,GAAwB,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAExF;;;;;;;;GAQG;AACH,MAAM,CAAN,IAAY,2BAaX;AAbD,WAAY,2BAA2B;IACrC,yFAAyF;IACzF,oDAAqB,CAAA;IACrB,qFAAqF;IACrF,oFAAqD,CAAA;IACrD;;;;;;OAMG;IACH,kFAAmD,CAAA;AACrD,CAAC,EAbW,2BAA2B,KAA3B,2BAA2B,QAatC;AA0ED;;;;;;;;;GASG;AACH,MAAM,UAAU,2BAA2B,CACzC,QAAgB;IAEhB,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAChD,MAAM,gBAAgB,GAAG,QAAQ,CAAC,KAAK,C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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';\n\n/**\n * Every locale code the framework recognises. Total over `AvailableLanguage`\n * rather than a hand-kept list, so a language added to the vocabulary tomorrow\n * is parsed as a locale by every existing installation instead of being\n * silently misread as part of a slug.\n */\nconst KNOWN_LOCALE_CODES: ReadonlySet<string> = new Set(Object.keys(LANGUAGE_INFO_MAP));\n\n/**\n * Whether the orphan question could be answered at all on this run.\n *\n * The two members are NOT \"found some\" / \"found none\" — that distinction is\n * `orphanFiles.length`. They separate a judgement from a REFUSAL to judge,\n * because the same empty `orphanFiles` array means opposite things in the two\n * cases and a consumer that conflated them would read \"nothing is stale\" off a\n * run that never looked.\n */\nexport enum OrphanLabelArtifactsOutcome {\n /** The planned unit set was total; `orphanFiles` / `orphanLockUnitIds` are a verdict. */\n REPORTED = 'reported',\n /** The plan declared itself incomplete; nothing was judged. See `incompleteness`. */\n UNAVAILABLE_PARTIAL_PLAN = 'unavailable-partial-plan',\n /**\n * The plan may have been fine; reading the i18n state was not — the directory\n * scan or the lock read threw. Distinct from `UNAVAILABLE_PARTIAL_PLAN`\n * because the remedies are different (repair the filesystem/lock vs. start the\n * frontend / bind the registry), and because merging them would let a broken\n * read masquerade as a known-partial plan. See `scanFailure`.\n */\n UNAVAILABLE_SCAN_FAILED = 'unavailable-scan-failed',\n}\n\n/** One generated label file discovered under the i18n root. */\nexport interface GeneratedLabelFile {\n /** Path relative to the i18n root, e.g. `resources/todos.en.ts`. */\n relativePath: string;\n /** Directory segment, e.g. `resources` — matches `LabellingUnit.filePathHint.bucket`. */\n bucket: string;\n /** File stem before the locale, e.g. `todos` — matches `filePathHint.slug`. */\n slug: string;\n /** Locale segment, guaranteed to be a member of `AvailableLanguage`. */\n locale: string;\n}\n\n/**\n * What label generation LEFT BEHIND: files and lock rows belonging to units the\n * application no longer plans.\n *\n * ## Why this reports and does not delete\n *\n * Key pruning inside a unit's file is safe because the unit was just planned and\n * regenerated — the planned key set is authoritative BY CONSTRUCTION for that\n * one unit. Unit pruning is a different question and has no such guarantee: it\n * asks whether a unit the run never mentioned still EXISTS, and the plan answers\n * that only as well as every one of its families could enumerate itself.\n *\n * Measured on the live planner, the frontend key snapshot degrades to EMPTY on\n * three separate conditions (no `SAAS_APP` frontend service, a failed\n * introspection subprocess, a malformed payload), each a logged warning rather\n * than a throw. On any of them all four frontend-derived buckets disappear from\n * the plan — on Wonder Todos that is `composite_views`, `views` and\n * `sidebar_sections`, three buckets of live, LLM-generated copy that a prune\n * would delete for the sole reason that the frontend dev server was not running.\n * Two more families (`milestones`, `billing`) vanish when their registry is not\n * bound in the container.\n *\n * Those five are DECLARED, so this report suppresses itself on them\n * ({@link OrphanLabelArtifactsOutcome.UNAVAILABLE_PARTIAL_PLAN}). One class is\n * not declarable at all: a resources registry that loaded some of the\n * application's modules reports success with fewer resources, and no signal\n * distinguishes that from a resource genuinely removed. That residual is why the\n * outcome of this unit is a REPORT — a human reading a named list of six files\n * loses nothing if the list is wrong, and an unlink does not have that property.\n *\n * ## What would make deletion safe\n *\n * A plan whose totality is established rather than assumed: the resources\n * registry would have to report the module set it loaded against the module set\n * the application declares, and every remaining family would have to answer\n * \"I enumerate my whole space\" rather than merely \"I did not fail\". Given that,\n * a prune gated on `outcome === REPORTED` becomes defensible — and should still\n * be an explicit operator verb, never a side effect of a generation run.\n */\nexport interface OrphanLabelArtifactsReport {\n outcome: OrphanLabelArtifactsOutcome;\n /** The declared degradations. Empty exactly when `outcome` is `REPORTED`. */\n incompleteness: readonly LabellingPlanIncompleteness[];\n /**\n * i18n-root-relative paths of generated label files whose `(bucket, slug)`\n * belongs to no planned unit — BASE and TRANSLATION files alike (see the\n * translation note on {@link computeOrphanLabelArtifacts}).\n */\n orphanFiles: readonly string[];\n /** Lock `sections.i18n.units` ids that belong to no planned unit. */\n orphanLockUnitIds: readonly string[];\n /** Count of generated files considered — the denominator behind `orphanFiles`. */\n scannedFileCount: number;\n /**\n * Why the i18n state could not be READ, when that is what stopped the verdict.\n * Set exactly when `outcome` is `UNAVAILABLE_SCAN_FAILED`.\n */\n scanFailure?: string;\n}\n\n/**\n * Parse `<slug>.<locale>.ts` into its parts, or `undefined` when the name is not\n * a generated per-unit label file.\n *\n * Deliberately conservative in the ONE direction that matters: the locale\n * segment must be a known `AvailableLanguage` code. A hand-authored neighbour\n * (`index.ts`, a helper, anything whose penultimate segment is not a locale) is\n * therefore never parsed, so it can never be named an orphan. A slug containing\n * dots keeps them — only the LAST two dot-separated segments are structural.\n */\nexport function parseGeneratedLabelFileName(\n fileName: string,\n): { slug: string; locale: string } | undefined {\n if (!fileName.endsWith('.ts')) return undefined;\n const withoutExtension = fileName.slice(0, -'.ts'.length);\n const lastDot = withoutExtension.lastIndexOf('.');\n if (lastDot <= 0) return undefined;\n const locale = withoutExtension.slice(lastDot + 1);\n if (!KNOWN_LOCALE_CODES.has(locale)) return undefined;\n const slug = withoutExtension.slice(0, lastDot);\n if (slug.length === 0) return undefined;\n return { slug, locale };\n}\n\n/**\n * Walk `<i18nRoot>/<bucket>/<slug>.<locale>.ts` and return every generated label\n * file. One level deep, matching the layout `resolvePerUnitFilePath` writes.\n *\n * A missing root yields an empty list (a fresh application has generated\n * nothing yet); any other filesystem error propagates, because \"I could not read\n * the directory\" must never be reported to a caller as \"the directory is empty\"\n * — that is the reading a prune would act on.\n */\nexport async function collectGeneratedLabelFiles(i18nRoot: string): Promise<GeneratedLabelFile[]> {\n let bucketEntries;\n try {\n bucketEntries = await fs.readdir(i18nRoot, { withFileTypes: true });\n } catch (err: unknown) {\n if ((err as NodeJS.ErrnoException)?.code === 'ENOENT') return [];\n throw err;\n }\n\n const files: GeneratedLabelFile[] = [];\n for (const bucketEntry of bucketEntries) {\n if (!bucketEntry.isDirectory()) continue;\n const bucket = bucketEntry.name;\n const fileEntries = await fs.readdir(path.join(i18nRoot, bucket), { withFileTypes: true });\n for (const fileEntry of fileEntries) {\n if (!fileEntry.isFile()) continue;\n const parsed = parseGeneratedLabelFileName(fileEntry.name);\n if (!parsed) continue;\n files.push({\n relativePath: `${bucket}/${fileEntry.name}`,\n bucket,\n slug: parsed.slug,\n locale: parsed.locale,\n });\n }\n }\n return files.sort((a, b) => a.relativePath.localeCompare(b.relativePath));\n}\n\n/**\n * Decide which generated files and lock rows are orphaned by the current plan.\n *\n * Pure — the caller supplies the scan and the plan, so the decision is testable\n * without a filesystem and cannot be influenced by anything it did not receive.\n *\n * **Unit identity is `(bucket, slug)`, not a file name**, which is what makes one\n * sweep cover BOTH orphan shapes the pipeline can produce. A unit's base file\n * (`<slug>.<primaryLocale>.ts`) and every translation of it\n * (`<slug>.<targetLocale>.ts`) share that pair, so a unit that stops being\n * planned surfaces all of its files here at once — the translation files are not\n * a second mechanism needing a second answer. Nothing is judged per-locale: a\n * locale that is still on disk but no longer configured is a DIFFERENT question,\n * and it is deliberately not answered here because the lock's `trackedLocales`\n * only ever grows (`upsertI18nUnit` unions it) and therefore cannot serve as the\n * denominator for \"this locale was dropped\".\n *\n * @param incompleteness Declared degradations from `planAllUnitsWithCompleteness`.\n * Non-empty suppresses the whole verdict rather than only the suppressed\n * buckets: a family that could not enumerate itself is also unable to promise\n * that its units all live in the buckets it names.\n */\nexport function computeOrphanLabelArtifacts(args: {\n plannedUnits: readonly Pick<LabellingUnit, 'id' | 'filePathHint'>[];\n lockUnitIds: readonly string[];\n existingFiles: readonly GeneratedLabelFile[];\n incompleteness: readonly LabellingPlanIncompleteness[];\n}): OrphanLabelArtifactsReport {\n const { plannedUnits, lockUnitIds, existingFiles, incompleteness } = args;\n\n if (incompleteness.length > 0) {\n return {\n outcome: OrphanLabelArtifactsOutcome.UNAVAILABLE_PARTIAL_PLAN,\n incompleteness,\n orphanFiles: [],\n orphanLockUnitIds: [],\n scannedFileCount: existingFiles.length,\n };\n }\n\n const plannedPairs = new Set(\n plannedUnits.map((unit) => `${unit.filePathHint.bucket}/${unit.filePathHint.slug}`),\n );\n const plannedIds = new Set(plannedUnits.map((unit) => unit.id));\n\n return {\n outcome: OrphanLabelArtifactsOutcome.REPORTED,\n incompleteness: [],\n orphanFiles: existingFiles\n .filter((file) => !plannedPairs.has(`${file.bucket}/${file.slug}`))\n .map((file) => file.relativePath),\n orphanLockUnitIds: [...lockUnitIds].filter((id) => !plannedIds.has(id)).sort(),\n scannedFileCount: existingFiles.length,\n };\n}\n\n/**\n * One operator-facing line summarising a report, for the run log. Names the\n * artifacts rather than counting them: the whole value of a report over a delete\n * is that a human can look at the list and recognise a file that should not be\n * on it.\n */\nexport function describeOrphanLabelArtifacts(report: OrphanLabelArtifactsReport): string {\n if (report.outcome === OrphanLabelArtifactsOutcome.UNAVAILABLE_SCAN_FAILED) {\n return `Stale-unit detection skipped — the i18n state could not be read: ${report.scanFailure ?? 'unknown error'}`;\n }\n if (report.outcome === OrphanLabelArtifactsOutcome.UNAVAILABLE_PARTIAL_PLAN) {\n const reasons = report.incompleteness\n .map((entry) => `${entry.reason} (suppresses: ${entry.suppressedBuckets.join(', ') || 'none'})`)\n .join('; ');\n return `Stale-unit detection skipped — the plan is incomplete, so absence proves nothing: ${reasons}`;\n }\n const total = report.orphanFiles.length + report.orphanLockUnitIds.length;\n if (total === 0) {\n return `No stale label units: all ${report.scannedFileCount} generated file(s) belong to a planned unit`;\n }\n return [\n `${total} stale label artifact(s) from unit(s) no longer planned — NOT removed, review before deleting.`,\n report.orphanFiles.length > 0 ? `Files: ${report.orphanFiles.join(', ')}` : '',\n report.orphanLockUnitIds.length > 0 ? `Lock units: ${report.orphanLockUnitIds.join(', ')}` : '',\n ]\n .filter((part) => part.length > 0)\n .join(' ');\n}\n"]}
1
+ {"version":3,"file":"orphan-label-artifacts.utils.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/utils/orphan-label-artifacts.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAKxE,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAEhG;;;;;GAKG;AACH,MAAM,kBAAkB,GAAwB,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAExF;;;;;;;;GAQG;AACH,MAAM,CAAN,IAAY,2BAaX;AAbD,WAAY,2BAA2B;IACrC,yFAAyF;IACzF,oDAAqB,CAAA;IACrB,qFAAqF;IACrF,oFAAqD,CAAA;IACrD;;;;;;OAMG;IACH,kFAAmD,CAAA;AACrD,CAAC,EAbW,2BAA2B,KAA3B,2BAA2B,QAatC;AA0ED;;;;;;;;;GASG;AACH,MAAM,UAAU,2BAA2B,CACzC,QAAgB;IAEhB,IAAI,CAAC,QAAQ,CAAC,QAA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AAC,IAAI,CAAC,IAAI,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"]}
@@ -0,0 +1,76 @@
1
+ import { type ProviderRuntimeArtifactKind } from '@wildo-ai/platform-config-lib';
2
+ import type { LabelKeyMeta } from '../models/labelling-unit.models';
3
+ /**
4
+ * Vendor display names — `providers.<ref>.displayName` — planned TOTAL over the providers an application declares
5
+ * (#1895).
6
+ *
7
+ * Every surface that names a third-party vendor resolves the name through that key
8
+ * (`buildProviderDisplayNameLabelKey`): the connected-accounts screen, the Security settings identity links, the social
9
+ * sign-in buttons, the billing provider label. Provider modules are deliberately locale-neutral — they carry the KEY,
10
+ * never the word — so the words have to be authored somewhere, and until this family existed nothing planned them: every
11
+ * vendor rendered its raw ref (`google-calendar`) in every locale. That was the "missing label looks missing" behaviour
12
+ * `display-text-comes-from-i18n.md` asks for; the gap was that nothing ever authored the words.
13
+ *
14
+ * ## Where the population comes from
15
+ *
16
+ * The per-runtime-kind provider artifacts `wildo config sync` writes under `.wildo-saas/generated/providers/`
17
+ * ({@link PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS}). Their `providerRefs` are the providers the application declares,
18
+ * already resolved per runtime scope, and the union over every kind is the set of vendors any of the application's
19
+ * processes may name — the backend's connected accounts, the frontend's social sign-in, a minion's integration.
20
+ * Reading the union rather than one scope matters: a vendor declared only for a frontend service (an analytics or
21
+ * captcha provider) is still a name the application may show.
22
+ *
23
+ * Derived rather than hand-listed, and total over what is declared, so a provider declared tomorrow is planned by
24
+ * construction and a withdrawn one stops being planned (`derive-before-you-ask.md`). A connection's BASE ref, which the
25
+ * connected-accounts screen keys the name on, is always itself a declared ref, so it is covered by the same union.
26
+ *
27
+ * ## What this does NOT do
28
+ *
29
+ * It never derives a WORD from the ref. The ref reaches the generator as intent (which vendor this is), and the
30
+ * generator writes the vendor's own product name — the thing a humanizing fallback would get wrong (`immudb`,
31
+ * `posthog`, `email-preview`). A key nobody generated still renders its raw ref.
32
+ */
33
+ /** The labelling bucket (and file-path bucket) the vendor-name unit writes to — the first segment of every key. */
34
+ export declare const PROVIDERS_LABEL_BUCKET: string;
35
+ /** One artifact that exists on disk but could not be read as a provider artifact. */
36
+ export interface UnreadableProviderRuntimeArtifact {
37
+ kind: ProviderRuntimeArtifactKind;
38
+ path: string;
39
+ detail: string;
40
+ }
41
+ /** Result of reading the application's declared provider population. */
42
+ export interface DeclaredProviderRefsReading {
43
+ /** Sorted, de-duplicated union of `providerRefs` over every readable artifact. */
44
+ refs: string[];
45
+ /**
46
+ * Artifacts present but unreadable. A non-empty list means the population is INCOMPLETE: a vendor declared only in
47
+ * the unreadable scope would be missing, and an orphan report must not condemn its existing words.
48
+ */
49
+ unreadable: UnreadableProviderRuntimeArtifact[];
50
+ }
51
+ /** File-system seam, so the reader is testable without a real application tree. */
52
+ export interface ProviderArtifactFileSystem {
53
+ exists(path: string): boolean;
54
+ read(path: string): string;
55
+ }
56
+ /**
57
+ * Read the union of declared provider refs from every per-runtime-kind artifact of the application at `saasRoot`.
58
+ *
59
+ * An ABSENT artifact is not a degradation: `wildo config sync` writes one only for the runtime kinds the application
60
+ * has (Wonder CRM has no node workers, so it has no `node-workers` artifact). A PRESENT artifact that does not parse is,
61
+ * and is reported so the caller can mark the family incomplete.
62
+ */
63
+ export declare function readDeclaredProviderRefs(saasRoot: string, fileSystem?: ProviderArtifactFileSystem): DeclaredProviderRefsReading;
64
+ /** The planned keys of the vendor-name family, with the per-key generation intent. */
65
+ export interface ProviderDisplayNameKeyPlan {
66
+ keys: string[];
67
+ keyMeta: Record<string, LabelKeyMeta>;
68
+ }
69
+ /**
70
+ * `providers.<ref>.displayName` for every declared ref, each carrying the ref as INTENT, never as the word.
71
+ *
72
+ * The purpose tells the generator the thing a ref cannot: that the label is a vendor's own product name, which users
73
+ * recognise by its official spelling and which is normally not translated.
74
+ */
75
+ export declare function planProviderDisplayNameKeys(refs: readonly string[]): ProviderDisplayNameKeyPlan;
76
+ //# sourceMappingURL=provider-display-name-keys.utils.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,110 @@
1
+ import { existsSync, readFileSync } from 'node:fs';
2
+ import { join } from 'node:path';
3
+ import { z } from 'zod';
4
+ import { LabelAudience, LabelKind } from '@wildo-ai/presets-components-models';
5
+ import { buildProviderDisplayNameLabelKey } from '@wildo-ai/saas-models';
6
+ import { PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS, SaasRuntimeProvidersArtifactSchema, } from '@wildo-ai/platform-config-lib';
7
+ /**
8
+ * Vendor display names — `providers.<ref>.displayName` — planned TOTAL over the providers an application declares
9
+ * (#1895).
10
+ *
11
+ * Every surface that names a third-party vendor resolves the name through that key
12
+ * (`buildProviderDisplayNameLabelKey`): the connected-accounts screen, the Security settings identity links, the social
13
+ * sign-in buttons, the billing provider label. Provider modules are deliberately locale-neutral — they carry the KEY,
14
+ * never the word — so the words have to be authored somewhere, and until this family existed nothing planned them: every
15
+ * vendor rendered its raw ref (`google-calendar`) in every locale. That was the "missing label looks missing" behaviour
16
+ * `display-text-comes-from-i18n.md` asks for; the gap was that nothing ever authored the words.
17
+ *
18
+ * ## Where the population comes from
19
+ *
20
+ * The per-runtime-kind provider artifacts `wildo config sync` writes under `.wildo-saas/generated/providers/`
21
+ * ({@link PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS}). Their `providerRefs` are the providers the application declares,
22
+ * already resolved per runtime scope, and the union over every kind is the set of vendors any of the application's
23
+ * processes may name — the backend's connected accounts, the frontend's social sign-in, a minion's integration.
24
+ * Reading the union rather than one scope matters: a vendor declared only for a frontend service (an analytics or
25
+ * captcha provider) is still a name the application may show.
26
+ *
27
+ * Derived rather than hand-listed, and total over what is declared, so a provider declared tomorrow is planned by
28
+ * construction and a withdrawn one stops being planned (`derive-before-you-ask.md`). A connection's BASE ref, which the
29
+ * connected-accounts screen keys the name on, is always itself a declared ref, so it is covered by the same union.
30
+ *
31
+ * ## What this does NOT do
32
+ *
33
+ * It never derives a WORD from the ref. The ref reaches the generator as intent (which vendor this is), and the
34
+ * generator writes the vendor's own product name — the thing a humanizing fallback would get wrong (`immudb`,
35
+ * `posthog`, `email-preview`). A key nobody generated still renders its raw ref.
36
+ */
37
+ /** The labelling bucket (and file-path bucket) the vendor-name unit writes to — the first segment of every key. */
38
+ export const PROVIDERS_LABEL_BUCKET = buildProviderDisplayNameLabelKey('_').split('.')[0];
39
+ /**
40
+ * Only the field this family reads, taken from the artifact's own schema so the two cannot disagree about its shape.
41
+ *
42
+ * Loose on purpose: the rest of the artifact (imports, digests, augmentations, scopes) is irrelevant to which vendors
43
+ * exist, and a strict parse would let an unrelated artifact-schema change — a field added by a newer `wildo config sync`
44
+ * — withhold every vendor name. The field itself is still validated exactly as the artifact declares it.
45
+ */
46
+ const ProviderRefsOnlySchema = z.looseObject({
47
+ providerRefs: SaasRuntimeProvidersArtifactSchema.shape.providerRefs,
48
+ });
49
+ const NODE_FILE_SYSTEM = {
50
+ exists: (path) => existsSync(path),
51
+ read: (path) => readFileSync(path, 'utf8'),
52
+ };
53
+ /**
54
+ * Read the union of declared provider refs from every per-runtime-kind artifact of the application at `saasRoot`.
55
+ *
56
+ * An ABSENT artifact is not a degradation: `wildo config sync` writes one only for the runtime kinds the application
57
+ * has (Wonder CRM has no node workers, so it has no `node-workers` artifact). A PRESENT artifact that does not parse is,
58
+ * and is reported so the caller can mark the family incomplete.
59
+ */
60
+ export function readDeclaredProviderRefs(saasRoot, fileSystem = NODE_FILE_SYSTEM) {
61
+ const refs = new Set();
62
+ const unreadable = [];
63
+ for (const [kind, relativePath] of Object.entries(PROVIDER_RUNTIME_ARTIFACT_RELATIVE_PATHS)) {
64
+ const path = join(saasRoot, relativePath);
65
+ if (!fileSystem.exists(path))
66
+ continue;
67
+ try {
68
+ const parsed = ProviderRefsOnlySchema.safeParse(JSON.parse(fileSystem.read(path)));
69
+ if (!parsed.success) {
70
+ unreadable.push({ kind, path, detail: parsed.error.message });
71
+ continue;
72
+ }
73
+ for (const ref of parsed.data.providerRefs)
74
+ refs.add(ref);
75
+ }
76
+ catch (error) {
77
+ unreadable.push({ kind, path, detail: error instanceof Error ? error.message : String(error) });
78
+ }
79
+ }
80
+ return { refs: [...refs].sort(), unreadable };
81
+ }
82
+ /**
83
+ * `providers.<ref>.displayName` for every declared ref, each carrying the ref as INTENT, never as the word.
84
+ *
85
+ * The purpose tells the generator the thing a ref cannot: that the label is a vendor's own product name, which users
86
+ * recognise by its official spelling and which is normally not translated.
87
+ */
88
+ export function planProviderDisplayNameKeys(refs) {
89
+ const keys = [];
90
+ const keyMeta = {};
91
+ for (const ref of [...new Set(refs)].sort()) {
92
+ const key = buildProviderDisplayNameLabelKey(ref);
93
+ keys.push(key);
94
+ keyMeta[key] = {
95
+ kind: LabelKind.LABEL,
96
+ audience: LabelAudience.END_USER,
97
+ purpose: `The name of the third-party service this application integrates with under the identifier "${ref}", written as ` +
98
+ 'that service\'s own users know it — its official product or brand name, shown on the screens where a person ' +
99
+ 'connects an account, signs in with it, or sees which service a feature uses. The identifier is a technical ' +
100
+ 'reference, not the name: write the name the vendor itself uses.',
101
+ notes: [
102
+ 'A brand name: keep the vendor\'s official spelling and capitalization.',
103
+ 'Do not translate it unless the vendor itself publishes a localized name in that language.',
104
+ 'The name only: no description, no "account" or "integration" suffix.',
105
+ ],
106
+ };
107
+ }
108
+ return { keys, keyMeta };
109
+ }
110
+ //# sourceMappingURL=provider-display-name-keys.utils.js.map
@@ -0,0 +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;IAC3C,YAAY,EAAE,kCAAkC,CAAC,KAAK,CAAC,YAAY;CACpE,CAAC,CAAC;AA0BH,MAAM,gBAAgB,GAA+B;IACnD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC;IAClC,IAAI,EAAE,CAAC,IAAI,EAAE,EA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,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"]}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The label keys a resource's layout SECTIONS need: one per section per policy slot
3
+ * (`resources.<type>.sections.<ref>.<slot>`), except a `description` its specification does not
4
+ * document.
5
+ *
6
+ * A section description is optional (`RESOURCE_LAYOUT_REQUIRED_TEXT_SLOTS` in the specification
7
+ * schemas). Planned regardless, the model wrote one for every section, restating the title — "Workflow —
8
+ * Choose a workflow". `sectionsWithoutDescription` is `undefined` when the resource has no
9
+ * specification to read the decision from, and then every slot is planned, as before. Pure.
10
+ */
11
+ export declare function planResourceSectionLabelKeys(args: {
12
+ resourceType: string;
13
+ sectionRefs: readonly string[];
14
+ slotKeys: readonly string[];
15
+ sectionsWithoutDescription: ReadonlySet<string> | undefined;
16
+ }): string[];
17
+ //# sourceMappingURL=resource-section-label-keys.utils.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,23 @@
1
+ import { LabellingTypes } from '@wildo-ai/presets-components-models';
2
+ /**
3
+ * The label keys a resource's layout SECTIONS need: one per section per policy slot
4
+ * (`resources.<type>.sections.<ref>.<slot>`), except a `description` its specification does not
5
+ * document.
6
+ *
7
+ * A section description is optional (`RESOURCE_LAYOUT_REQUIRED_TEXT_SLOTS` in the specification
8
+ * schemas). Planned regardless, the model wrote one for every section, restating the title — "Workflow —
9
+ * Choose a workflow". `sectionsWithoutDescription` is `undefined` when the resource has no
10
+ * specification to read the decision from, and then every slot is planned, as before. Pure.
11
+ */
12
+ export function planResourceSectionLabelKeys(args) {
13
+ const keys = [];
14
+ for (const sectionRef of args.sectionRefs) {
15
+ for (const slot of args.slotKeys) {
16
+ if (slot === 'description' && args.sectionsWithoutDescription?.has(sectionRef))
17
+ continue;
18
+ keys.push(`${LabellingTypes.RESOURCES}.${args.resourceType}.sections.${sectionRef}.${slot}`);
19
+ }
20
+ }
21
+ return keys;
22
+ }
23
+ //# sourceMappingURL=resource-section-label-keys.utils.js.map
@@ -0,0 +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,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import type { AnyResourceConfiguration } from '@wildo-ai/saas-models';
2
+ import { type AnyResourceConfiguration } from '@wildo-ai/saas-models';
3
3
  import type { LabelKeyMeta } from '../models/labelling-unit.models';
4
4
  /**
5
5
  * Per-field metadata captured while walking a Zod schema. Used to
@@ -154,7 +154,7 @@ export declare function collectSystemEnumVocabularies(resourceConfigs: Iterable<
154
154
  /**
155
155
  * Build the full `system_enums.<EnumName>.<value>` key list for the labelling plan.
156
156
  *
157
- * ## Two total sources, and why both are needed
157
+ * ## The sources, and why each is needed
158
158
  *
159
159
  * 1. **`SYSTEM_ENUM_VALUES`** — every member of the framework's declared `SystemEnumName`
160
160
  * vocabulary, unconditionally. These are framework-owned and an application may reach one
@@ -167,6 +167,15 @@ export declare function collectSystemEnumVocabularies(resourceConfigs: Iterable<
167
167
  * is the half no fixed list can have: `SubscriptionStatus` has no `SystemEnumName`
168
168
  * member, and an application that decorates a new vocabulary tomorrow is planned with no
169
169
  * edit anywhere.
170
+ * 3. **`applicationVocabularies`** — vocabularies whose NAME the framework owns and whose VALUES
171
+ * the application declares rather than a schema: in its configuration
172
+ * ({@link collectApplicationConfigSystemEnumVocabularies}), such as the reviewers' reason codes
173
+ * (#1921), or in its gates' `pauseStates`, which the planner adds from the backend introspection
174
+ * (#1864). No resource schema can carry those values, because they are the application's declarations.
175
+ * 4. **`ENGINE_OPEN_VOCABULARY_VALUES`** — the engine's OPEN vocabularies (#1791): a STRING field names one
176
+ * with `.systemEnum(EngineOpenVocabulary.X)` because the schema cannot enumerate its values (an audit
177
+ * event's `eventType`), so the values come from the one list the engine keeps of them. Planned for every
178
+ * application, like source 1.
170
179
  *
171
180
  * ## Why it lives HERE rather than in the planner
172
181
  *
@@ -181,7 +190,31 @@ export declare function collectSystemEnumVocabularies(resourceConfigs: Iterable<
181
190
  * alphabetically, so the key list is deterministic and the labelling lock's fingerprint is
182
191
  * stable across runs. A name in both sources contributes one group — the union of its values.
183
192
  */
184
- export declare function buildSystemEnumLabelKeys(resourceConfigs: Iterable<AnyResourceConfiguration>): string[];
193
+ export declare function buildSystemEnumLabelKeys(resourceConfigs: Iterable<AnyResourceConfiguration>, applicationVocabularies?: ReadonlyMap<string, readonly string[]>): string[];
194
+ /**
195
+ * The named vocabularies whose VALUES the application declares in its configuration — source 3 of
196
+ * {@link buildSystemEnumLabelKeys}, one entry per configuration-declared `ApplicationConfigVocabulary` member (the
197
+ * gates' pause states, #1864, are declared in backend modules; the planner adds them from the backend introspection):
198
+ *
199
+ * - the reason codes an expert may give for correcting an agent's work (`agentWorkReview.reasonCodes`, #1921),
200
+ * worded under `system_enums.AgentWorkReasonCode.<code>` and read by the reviewer's approval card;
201
+ * - the organization types (`organizationTypes`, keyed by type, #1851), worded under
202
+ * `system_enums.OrganizationType.<type>` and read wherever an organization's `type` is shown.
203
+ *
204
+ * A value the application declares is planned the moment it is declared and one it removes stops being planned —
205
+ * no hand-kept list of the application's values exists anywhere.
206
+ *
207
+ * Rejected: wording the codes inside the approval component's own labels. A component label key is fixed at
208
+ * authoring time, and these values are the application's; the component would need one key per code it cannot know.
209
+ */
210
+ export declare function collectApplicationConfigSystemEnumVocabularies(appConfig: ApplicationConfigVocabularySources | undefined): Map<string, readonly string[]>;
211
+ /** The parts of an application's configuration that declare the values of an `ApplicationConfigVocabulary`. */
212
+ export interface ApplicationConfigVocabularySources {
213
+ readonly agentWorkReview?: {
214
+ readonly reasonCodes?: readonly string[];
215
+ };
216
+ readonly organizationTypes?: Readonly<Record<string, unknown>>;
217
+ }
185
218
  /**
186
219
  * Build framework-general `LabelKeyMeta` for a resource's ephemeral fields.
187
220
  *
@@ -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;AA0BxB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE;;;;;;;;;;;;;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AC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAc1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,wBAAwB,CAAC,eAAe,EAAE,QAAQ,CAAC,wBAAwB,CAAC,GAAG,MAAM,EAAE,CAyBtG;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,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,MAAM,kBAAkB,GAAG,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;AA2I9D;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,CAAC,CAAC,UAAU,GAAG,SAAS,EAChC,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