@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
@@ -0,0 +1,61 @@
1
+ import type { LabellingUnitCategory, LabellingUnitSpecContext } from './labelling-unit.models';
2
+ /**
3
+ * The translate pipeline's email lane (#1908): one unit per email template the application ships.
4
+ *
5
+ * ## Why emails are their own kind of unit
6
+ *
7
+ * Every other unit's primary-locale file is GENERATED (`wildo generate labels`) under
8
+ * `backend-api/src/engine/i18n/<bucket>/<slug>.<locale>.ts`, and translation reads it back. An email's
9
+ * primary words are AUTHORED beside its template — `labels.en.ts` next to `template.tsx` — and the
10
+ * runtime reads each locale from that same directory (`scanEmailTemplateDirectory` imports the named
11
+ * `labels` export of every `labels.<locale>` module it finds there). So an email unit:
12
+ *
13
+ * - is translate-only: labellize never plans it, and nothing writes its primary file but its author;
14
+ * - has no `filePathHint`: its files live in the template's own directory, which no i18n-root
15
+ * resolution reaches (and a `LabellingUnit` shape here would let `resolvePerUnitFilePath` write a
16
+ * French email into the i18n tree, where nothing reads it);
17
+ * - takes its keys from its source file rather than from a plan: the English file IS the declaration.
18
+ *
19
+ * Until this lane existed no generator wrote a second-locale email file at all, so every email to a
20
+ * French recipient went out in English while the backend warned about it at each start.
21
+ */
22
+ export interface EmailTemplateLabellingUnit {
23
+ category: LabellingUnitCategory.EMAIL_TEMPLATE;
24
+ /** `email_template:<templateRef>` — see {@link emailTemplateLabellingUnitId}. */
25
+ id: string;
26
+ /** Registry ref, e.g. `system.human_decision_deadline` or `email.organizations.create.user-self`. */
27
+ templateRef: string;
28
+ /** Owner (engine or module) whose email root holds the template, from the placement snapshot. */
29
+ ownerId: string;
30
+ displayLabel: string;
31
+ /** Absolute template directory: holds `template.tsx` and every `labels.<locale>.ts`. */
32
+ templateDirectory: string;
33
+ /** Rich context for the translation prompt (authored spec for system emails). Lazy, never throws. */
34
+ loadSpecContext: () => Promise<LabellingUnitSpecContext | undefined>;
35
+ }
36
+ /**
37
+ * Bucket the CLI groups email units under when it splits a translate run, and the prefix of their ids.
38
+ * Named once so the CLI's grouping, the lock's unit ids and the orphan report's exclusion cannot
39
+ * disagree about which units are emails.
40
+ */
41
+ export declare const EMAIL_TEMPLATE_LABELLING_BUCKET: "email_templates";
42
+ /** The unit id (and lock key) of the email template `templateRef`. */
43
+ export declare function emailTemplateLabellingUnitId(templateRef: string): string;
44
+ /**
45
+ * Is `unitId` an email template unit?
46
+ *
47
+ * Used where a caller holds ids from BOTH lanes: the translate route's `unitIds` filter, and the lock,
48
+ * whose `units` map carries email entries beside the i18n-root ones. The orphan report must not judge
49
+ * an email entry against `planAllUnits()`, which by design never contains one.
50
+ */
51
+ export declare function isEmailTemplateLabellingUnitId(unitId: string): boolean;
52
+ /** The email lane's plan: every template the placement snapshot declares, plus why any could not be seen. */
53
+ export interface EmailTemplateLabellingPlan {
54
+ units: EmailTemplateLabellingUnit[];
55
+ /**
56
+ * Placement warnings (an owner whose email placement could not be introspected). A non-empty list
57
+ * means the unit set may be SHORT — reported to the caller rather than read as "no emails".
58
+ */
59
+ warnings: string[];
60
+ }
61
+ //# sourceMappingURL=email-template-labelling-unit.models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-template-labelling-unit.models.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/models/email-template-labelling-unit.models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAE/F;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,qBAAqB,CAAC,cAAc,CAAC;IAC/C,iFAAiF;IACjF,EAAE,EAAE,MAAM,CAAC;IACX,qGAAqG;IACrG,WAAW,EAAE,MAAM,CAAC;IACpB,iGAAiG;IACjG,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,wFAAwF;IACxF,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qGAAqG;IACrG,eAAe,EAAE,MAAM,OAAO,CAAC,wBAAwB,GAAG,SAAS,CAAC,CAAC;CACtE;AAED;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,EAAG,iBAA0B,CAAC;AAI1E,sEAAsE;AACtE,wBAAgB,4BAA4B,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAExE;AAED;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEtE;AAED,6GAA6G;AAC7G,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,0BAA0B,EAAE,CAAC;IACpC;;;OAGG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Bucket the CLI groups email units under when it splits a translate run, and the prefix of their ids.
3
+ * Named once so the CLI's grouping, the lock's unit ids and the orphan report's exclusion cannot
4
+ * disagree about which units are emails.
5
+ */
6
+ export const EMAIL_TEMPLATE_LABELLING_BUCKET = 'email_templates';
7
+ const EMAIL_TEMPLATE_LABELLING_UNIT_ID_PREFIX = 'email_template:';
8
+ /** The unit id (and lock key) of the email template `templateRef`. */
9
+ export function emailTemplateLabellingUnitId(templateRef) {
10
+ return `${EMAIL_TEMPLATE_LABELLING_UNIT_ID_PREFIX}${templateRef}`;
11
+ }
12
+ /**
13
+ * Is `unitId` an email template unit?
14
+ *
15
+ * Used where a caller holds ids from BOTH lanes: the translate route's `unitIds` filter, and the lock,
16
+ * whose `units` map carries email entries beside the i18n-root ones. The orphan report must not judge
17
+ * an email entry against `planAllUnits()`, which by design never contains one.
18
+ */
19
+ export function isEmailTemplateLabellingUnitId(unitId) {
20
+ return unitId.startsWith(EMAIL_TEMPLATE_LABELLING_UNIT_ID_PREFIX);
21
+ }
22
+ //# sourceMappingURL=email-template-labelling-unit.models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-template-labelling-unit.models.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/models/email-template-labelling-unit.models.ts"],"names":[],"mappings":"AAqCA;;;;GAIG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,iBAA0B,CAAC;AAE1E,MAAM,uCAAuC,GAAG,iBAAiB,CAAC;AAElE,sEAAsE;AACtE,MAAM,UAAU,4BAA4B,CAAC,WAAmB;IAC9D,OAAO,GAAG,uCAAuC,GAAG,WAAW,EAAE,CAAC;AACpE,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,8BAA8B,CAAC,MAAc;IAC3D,OAAO,MAAM,CAAC,UAAU,CAAC,uCAAuC,CAAC,CAAC;AACpE,CAAC","sourcesContent":["import type { LabellingUnitCategory, LabellingUnitSpecContext } from './labelling-unit.models';\n\n/**\n * The translate pipeline's email lane (#1908): one unit per email template the application ships.\n *\n * ## Why emails are their own kind of unit\n *\n * Every other unit's primary-locale file is GENERATED (`wildo generate labels`) under\n * `backend-api/src/engine/i18n/<bucket>/<slug>.<locale>.ts`, and translation reads it back. An email's\n * primary words are AUTHORED beside its template — `labels.en.ts` next to `template.tsx` — and the\n * runtime reads each locale from that same directory (`scanEmailTemplateDirectory` imports the named\n * `labels` export of every `labels.<locale>` module it finds there). So an email unit:\n *\n * - is translate-only: labellize never plans it, and nothing writes its primary file but its author;\n * - has no `filePathHint`: its files live in the template's own directory, which no i18n-root\n * resolution reaches (and a `LabellingUnit` shape here would let `resolvePerUnitFilePath` write a\n * French email into the i18n tree, where nothing reads it);\n * - takes its keys from its source file rather than from a plan: the English file IS the declaration.\n *\n * Until this lane existed no generator wrote a second-locale email file at all, so every email to a\n * French recipient went out in English while the backend warned about it at each start.\n */\nexport interface EmailTemplateLabellingUnit {\n category: LabellingUnitCategory.EMAIL_TEMPLATE;\n /** `email_template:<templateRef>` — see {@link emailTemplateLabellingUnitId}. */\n id: string;\n /** Registry ref, e.g. `system.human_decision_deadline` or `email.organizations.create.user-self`. */\n templateRef: string;\n /** Owner (engine or module) whose email root holds the template, from the placement snapshot. */\n ownerId: string;\n displayLabel: string;\n /** Absolute template directory: holds `template.tsx` and every `labels.<locale>.ts`. */\n templateDirectory: string;\n /** Rich context for the translation prompt (authored spec for system emails). Lazy, never throws. */\n loadSpecContext: () => Promise<LabellingUnitSpecContext | undefined>;\n}\n\n/**\n * Bucket the CLI groups email units under when it splits a translate run, and the prefix of their ids.\n * Named once so the CLI's grouping, the lock's unit ids and the orphan report's exclusion cannot\n * disagree about which units are emails.\n */\nexport const EMAIL_TEMPLATE_LABELLING_BUCKET = 'email_templates' as const;\n\nconst EMAIL_TEMPLATE_LABELLING_UNIT_ID_PREFIX = 'email_template:';\n\n/** The unit id (and lock key) of the email template `templateRef`. */\nexport function emailTemplateLabellingUnitId(templateRef: string): string {\n return `${EMAIL_TEMPLATE_LABELLING_UNIT_ID_PREFIX}${templateRef}`;\n}\n\n/**\n * Is `unitId` an email template unit?\n *\n * Used where a caller holds ids from BOTH lanes: the translate route's `unitIds` filter, and the lock,\n * whose `units` map carries email entries beside the i18n-root ones. The orphan report must not judge\n * an email entry against `planAllUnits()`, which by design never contains one.\n */\nexport function isEmailTemplateLabellingUnitId(unitId: string): boolean {\n return unitId.startsWith(EMAIL_TEMPLATE_LABELLING_UNIT_ID_PREFIX);\n}\n\n/** The email lane's plan: every template the placement snapshot declares, plus why any could not be seen. */\nexport interface EmailTemplateLabellingPlan {\n units: EmailTemplateLabellingUnit[];\n /**\n * Placement warnings (an owner whose email placement could not be introspected). A non-empty list\n * means the unit set may be SHORT — reported to the caller rather than read as \"no emails\".\n */\n warnings: string[];\n}\n"]}
@@ -1,4 +1,5 @@
1
1
  import type { z } from 'zod';
2
+ import type { FeatureValueType } from '@wildo-ai/saas-models';
2
3
  /**
3
4
  * Categories a labellable unit can belong to. Drives output file layout
4
5
  * and grouping policy:
@@ -31,7 +32,30 @@ export declare enum LabellingUnitCategory {
31
32
  */
32
33
  SETTINGS_HUB_ROOT = "settings_hub_root",
33
34
  VIEW = "view",
34
- ENGINE_PAGES_ROOT = "engine_pages_root"
35
+ ENGINE_PAGES_ROOT = "engine_pages_root",
36
+ /**
37
+ * Vendor display names, `providers.<ref>.displayName` (#1895), one key per provider the application declares in any
38
+ * runtime scope. Derived from the provider runtime artifacts, so the ref space is the application's declaration and
39
+ * never a hand-kept list. See `provider-display-name-keys.utils.ts`.
40
+ */
41
+ PROVIDERS_ROOT = "providers_root",
42
+ /**
43
+ * System-of-record instance names, `systems_of_record.<name>.displayName` (#1997), one key per instance the application
44
+ * declares in `systemsOfRecord`. The instance name is an environment-variable stem, so the words a reader sees — in
45
+ * the provenance note of a field a pipeline wrote — have to be generated. See `system-of-record-display-name-keys.utils.ts`.
46
+ */
47
+ SYSTEMS_OF_RECORD_ROOT = "systems_of_record_root",
48
+ /**
49
+ * One email template's words (`<template dir>/labels.<locale>.ts`), #1908.
50
+ *
51
+ * TRANSLATE-ONLY, and that is the difference from every member above: an email's primary-locale
52
+ * words are AUTHORED beside its `template.tsx` (by a person or by `wildo generate email`), never
53
+ * labellized, so the unit's source is that file itself and its only generated output is one
54
+ * `labels.<locale>.ts` per enabled secondary locale in the same directory. Such a unit is never
55
+ * part of `planAllUnits()` — labellize must not write English over an authored file — and is planned
56
+ * by `EmailTemplateLabellingUnitsCompanionService` instead. See `email-template-labelling-unit.models.ts`.
57
+ */
58
+ EMAIL_TEMPLATE = "email_template"
35
59
  }
36
60
  /**
37
61
  * Outcome of one labellize / translate roundtrip for a single unit (× target
@@ -89,6 +113,27 @@ export interface LabellingUnit {
89
113
  * Should print a console warning if context cannot be located.
90
114
  */
91
115
  loadSpecContext: () => Promise<LabellingUnitSpecContext | undefined>;
116
+ /**
117
+ * Set when part of this unit's key set comes from a family that could NOT answer on this run, with
118
+ * the reason(s) it declared. The unit's keys are then a SUBSET of the real ones, and nothing reading
119
+ * the plan can tell which keys are missing: a resource unit whose frontend introspection failed
120
+ * plans its fields and operations but none of its sections, wizard steps, groups, operation
121
+ * descriptions or empty-state secondary action.
122
+ *
123
+ * Every path that writes label files refuses such a unit (`incompletePlanRefusal`): labellize
124
+ * generation, labellize adoption, and translate. Each prunes the keys the plan does not hold — and
125
+ * translate then records the locale `fresh`, so its loss would never be revisited — so a unit written
126
+ * from a partial plan DELETES the labels the missing family would have planned. It is not seeded from
127
+ * the framework base either, which would write its file with no lock entry.
128
+ *
129
+ * Only an introspection that SHOULD have answered tags a unit (`resolveFrontendPlanDegradation`): an
130
+ * application with no frontend service has a complete, empty snapshot. Measured on
131
+ * Wonder Todos, 2026-09-26: a forced run while the introspection subprocess crashed on a stale
132
+ * injected snapshot removed every section title of all thirteen units it touched.
133
+ *
134
+ * Refusing costs one re-run once the family answers again; writing costs the words.
135
+ */
136
+ plannedFromIncompleteInputs?: readonly LabellingPlanIncompletenessReason[];
92
137
  }
93
138
  /**
94
139
  * Rich per-key semantic metadata threaded from a component label's enriched
@@ -219,8 +264,6 @@ export declare enum LabellingPlanIncompletenessReason {
219
264
  FRONTEND_INTROSPECTION_FAILED = "frontend-introspection-failed",
220
265
  /** The introspection answered, but with a payload that carried no key array. */
221
266
  FRONTEND_INTROSPECTION_MALFORMED = "frontend-introspection-malformed",
222
- /** The product-catalog sync service is not bound in this container. */
223
- PRODUCT_CATALOG_SYNC_UNBOUND = "product-catalog-sync-unbound",
224
267
  /**
225
268
  * The `resources-registry` introspection that carries milestone DECLARATIONS
226
269
  * did not answer, so the milestone family could not be enumerated.
@@ -234,28 +277,39 @@ export declare enum LabellingPlanIncompletenessReason {
234
277
  */
235
278
  MILESTONE_INTROSPECTION_FAILED = "milestone-introspection-failed",
236
279
  /**
237
- * The product-catalog sync service is BOUND and reports zero definitions,
238
- * which the companion cannot distinguish from an application that sells
239
- * nothing. Billing still reads a runtime singleton; #1405's argument applies
240
- * to it unchanged, and moving it to a declaration source is follow-up work.
280
+ * The `resources-registry` introspection that carries the product catalogue's DECLARATIONS did not answer, or
281
+ * answered without them, so the billing family (product, feature, limit and credit-pool words) could not be
282
+ * enumerated.
283
+ *
284
+ * Billing labels used to be planned from `ProductCatalogSyncBackendService`, a runtime singleton whose only writer
285
+ * is `startApplication()`'s billing bootstrap — which the companion never runs. It answered `[]` for every
286
+ * application, so no application had its plan names labelled and every pricing table rendered
287
+ * `billing_products.<key>.name`. #1405's argument, applied to its billing twin: declarations are a build-time fact
288
+ * on the snapshot, where a zero is authoritative (an application that sells nothing) and only a failed
289
+ * introspection degrades.
241
290
  */
242
- PRODUCT_CATALOG_UNPOPULATED = "product-catalog-unpopulated"
243
- }
244
- /**
245
- * Whether an `@optional()` runtime registry can answer for its label family.
246
- *
247
- * Named rather than an inline literal union because it is a closed semantic
248
- * vocabulary whose members each carry a distinct operator remedy: UNBOUND needs
249
- * a container binding, UNPOPULATED needs a source of definitions the companion
250
- * can actually read.
251
- */
252
- export declare enum LabellingRegistryReadiness {
253
- /** The service is not bound in this container. */
254
- UNBOUND = "unbound",
255
- /** Bound, but holding zero definitions. */
256
- UNPOPULATED = "unpopulated",
257
- /** Bound and holding at least one definition. */
258
- READY = "ready"
291
+ PRODUCT_CATALOG_INTROSPECTION_FAILED = "product-catalog-introspection-failed",
292
+ /**
293
+ * The merged resource-specification registry could not be loaded, so no resource's specification could be
294
+ * read. Several resource keys are planned FROM a specification's decision — a section description or an
295
+ * empty-state description is planned only when the specification documents one — and a missing registry reads
296
+ * exactly like "no specification", which plans every such key. Written, that would regenerate through the model
297
+ * the descriptions an application had just dropped. So every resource unit is tagged and its writes refused.
298
+ */
299
+ RESOURCE_SPECIFICATIONS_UNAVAILABLE = "resource-specifications-unavailable",
300
+ /**
301
+ * A provider runtime artifact under `.wildo-saas/generated/providers/` exists but could not be read, so the vendor
302
+ * population is incomplete: a vendor declared only in that runtime scope would be missing from the plan, and its
303
+ * existing `providers.<ref>.displayName` words would read as orphans (#1895). The remedy is `wildo config sync`,
304
+ * which rewrites the artifacts; an ABSENT artifact is not this — it means the application has no such runtime kind.
305
+ */
306
+ PROVIDER_RUNTIME_ARTIFACTS_UNREADABLE = "provider-runtime-artifacts-unreadable",
307
+ /**
308
+ * The `human-decision-gate-declarations` introspection did not answer, so the pause states the application's approval
309
+ * gates declare could not be read (#1864). Their words live in the `system_enums` theme unit, which then holds a
310
+ * SUBSET of its real keys and is tagged, so no write prunes the pause-state words it could not see.
311
+ */
312
+ HUMAN_DECISION_GATES_INTROSPECTION_FAILED = "human-decision-gates-introspection-failed"
259
313
  }
260
314
  /** One declared reason the plan could not enumerate part of the unit space. */
261
315
  export interface LabellingPlanIncompleteness {
@@ -296,4 +350,31 @@ export interface LabellingMilestoneDefinition {
296
350
  hasDescriptionLabel: boolean;
297
351
  category?: string;
298
352
  }
353
+ /**
354
+ * The product DECLARATION fields the billing label family needs, as projected by the `resources-registry`
355
+ * introspection behavior from the application's `ProductDefinition`s.
356
+ *
357
+ * Narrow for the milestone projection's reason: the planner emits a product's name / description / tagline, and the
358
+ * words of the features, limits and credit pool it grants — nothing else about a product reaches a label key.
359
+ */
360
+ export interface LabellingProductDefinition {
361
+ key: string;
362
+ grantedFeatures: string[];
363
+ /** The keys of `grantedLimits`: a limit's words are keyed by the limit, never by the value granted. */
364
+ grantedLimitKeys: string[];
365
+ /** `purchaseConfig.creditPoolKey`, for a product that tops up a credit pool. */
366
+ creditPoolKey?: string;
367
+ }
368
+ /**
369
+ * A feature DECLARATION, as the billing label family needs it (#1851): the feature's identifier, and whether it is an
370
+ * on/off feature (worded under `billing_features.<id>`) or a numeric limit (`billing_limits.<id>`).
371
+ *
372
+ * Planned from EVERY declared feature — the engine's core definitions and the application's own — and not only from
373
+ * those a product grants. A feature granted by default, by a feature profile or by an administrator's override is shown
374
+ * on the Entitlements screen exactly like one a plan grants, and it had no words at all.
375
+ */
376
+ export interface LabellingFeatureDefinition {
377
+ identifier: string;
378
+ valueType: FeatureValueType;
379
+ }
299
380
  //# sourceMappingURL=labelling-unit.models.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"labelling-unit.models.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/models/labelling-unit.models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B;;;;;;;;;GASG;AACH,oBAAY,qBAAqB;IAC/B,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,eAAe,oBAAoB;IACnC,aAAa,kBAAkB;IAC/B,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,gBAAgB,qBAAqB;IACrC,UAAU,eAAe;IACzB,cAAc,mBAAmB;IACjC,qBAAqB,0BAA0B;IAC/C;;;;;;OAMG;IACH,iBAAiB,sBAAsB;IACvC,IAAI,SAAS;IACb,iBAAiB,sBAAsB;CACxC;AAED;;;;;GAKG;AACH,oBAAY,iBAAiB;IAC3B,6EAA6E;IAC7E,KAAK,UAAU;IACf,yEAAyE;IACzE,OAAO,YAAY;IACnB,0EAA0E;IAC1E,MAAM,WAAW;IACjB;;;;OAIG;IACH,OAAO,YAAY;CACpB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,qBAAqB,CAAC;IAChC;4EACwE;IACxE,EAAE,EAAE,MAAM,CAAC;IACX,2DAA2D;IAC3D,YAAY,EAAE,MAAM,CAAC;IACrB;4DACwD;IACxD,YAAY,EAAE;QACZ,yEAAyE;QACzE,MAAM,EAAE,MAAM,CAAC;QACf,gEAAg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;;;;;;;GAOG;AACH,MAAM,WAAW,0BAA0B;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,gBAAgB,CAAC;CAC7B"}
@@ -32,6 +32,29 @@ export var LabellingUnitCategory;
32
32
  LabellingUnitCategory["SETTINGS_HUB_ROOT"] = "settings_hub_root";
33
33
  LabellingUnitCategory["VIEW"] = "view";
34
34
  LabellingUnitCategory["ENGINE_PAGES_ROOT"] = "engine_pages_root";
35
+ /**
36
+ * Vendor display names, `providers.<ref>.displayName` (#1895), one key per provider the application declares in any
37
+ * runtime scope. Derived from the provider runtime artifacts, so the ref space is the application's declaration and
38
+ * never a hand-kept list. See `provider-display-name-keys.utils.ts`.
39
+ */
40
+ LabellingUnitCategory["PROVIDERS_ROOT"] = "providers_root";
41
+ /**
42
+ * System-of-record instance names, `systems_of_record.<name>.displayName` (#1997), one key per instance the application
43
+ * declares in `systemsOfRecord`. The instance name is an environment-variable stem, so the words a reader sees — in
44
+ * the provenance note of a field a pipeline wrote — have to be generated. See `system-of-record-display-name-keys.utils.ts`.
45
+ */
46
+ LabellingUnitCategory["SYSTEMS_OF_RECORD_ROOT"] = "systems_of_record_root";
47
+ /**
48
+ * One email template's words (`<template dir>/labels.<locale>.ts`), #1908.
49
+ *
50
+ * TRANSLATE-ONLY, and that is the difference from every member above: an email's primary-locale
51
+ * words are AUTHORED beside its `template.tsx` (by a person or by `wildo generate email`), never
52
+ * labellized, so the unit's source is that file itself and its only generated output is one
53
+ * `labels.<locale>.ts` per enabled secondary locale in the same directory. Such a unit is never
54
+ * part of `planAllUnits()` — labellize must not write English over an authored file — and is planned
55
+ * by `EmailTemplateLabellingUnitsCompanionService` instead. See `email-template-labelling-unit.models.ts`.
56
+ */
57
+ LabellingUnitCategory["EMAIL_TEMPLATE"] = "email_template";
35
58
  })(LabellingUnitCategory || (LabellingUnitCategory = {}));
36
59
  /**
37
60
  * Outcome of one labellize / translate roundtrip for a single unit (× target
@@ -85,8 +108,6 @@ export var LabellingPlanIncompletenessReason;
85
108
  LabellingPlanIncompletenessReason["FRONTEND_INTROSPECTION_FAILED"] = "frontend-introspection-failed";
86
109
  /** The introspection answered, but with a payload that carried no key array. */
87
110
  LabellingPlanIncompletenessReason["FRONTEND_INTROSPECTION_MALFORMED"] = "frontend-introspection-malformed";
88
- /** The product-catalog sync service is not bound in this container. */
89
- LabellingPlanIncompletenessReason["PRODUCT_CATALOG_SYNC_UNBOUND"] = "product-catalog-sync-unbound";
90
111
  /**
91
112
  * The `resources-registry` introspection that carries milestone DECLARATIONS
92
113
  * did not answer, so the milestone family could not be enumerated.
@@ -100,28 +121,38 @@ export var LabellingPlanIncompletenessReason;
100
121
  */
101
122
  LabellingPlanIncompletenessReason["MILESTONE_INTROSPECTION_FAILED"] = "milestone-introspection-failed";
102
123
  /**
103
- * The product-catalog sync service is BOUND and reports zero definitions,
104
- * which the companion cannot distinguish from an application that sells
105
- * nothing. Billing still reads a runtime singleton; #1405's argument applies
106
- * to it unchanged, and moving it to a declaration source is follow-up work.
124
+ * The `resources-registry` introspection that carries the product catalogue's DECLARATIONS did not answer, or
125
+ * answered without them, so the billing family (product, feature, limit and credit-pool words) could not be
126
+ * enumerated.
127
+ *
128
+ * Billing labels used to be planned from `ProductCatalogSyncBackendService`, a runtime singleton whose only writer
129
+ * is `startApplication()`'s billing bootstrap — which the companion never runs. It answered `[]` for every
130
+ * application, so no application had its plan names labelled and every pricing table rendered
131
+ * `billing_products.<key>.name`. #1405's argument, applied to its billing twin: declarations are a build-time fact
132
+ * on the snapshot, where a zero is authoritative (an application that sells nothing) and only a failed
133
+ * introspection degrades.
107
134
  */
108
- LabellingPlanIncompletenessReason["PRODUCT_CATALOG_UNPOPULATED"] = "product-catalog-unpopulated";
135
+ LabellingPlanIncompletenessReason["PRODUCT_CATALOG_INTROSPECTION_FAILED"] = "product-catalog-introspection-failed";
136
+ /**
137
+ * The merged resource-specification registry could not be loaded, so no resource's specification could be
138
+ * read. Several resource keys are planned FROM a specification's decision — a section description or an
139
+ * empty-state description is planned only when the specification documents one — and a missing registry reads
140
+ * exactly like "no specification", which plans every such key. Written, that would regenerate through the model
141
+ * the descriptions an application had just dropped. So every resource unit is tagged and its writes refused.
142
+ */
143
+ LabellingPlanIncompletenessReason["RESOURCE_SPECIFICATIONS_UNAVAILABLE"] = "resource-specifications-unavailable";
144
+ /**
145
+ * A provider runtime artifact under `.wildo-saas/generated/providers/` exists but could not be read, so the vendor
146
+ * population is incomplete: a vendor declared only in that runtime scope would be missing from the plan, and its
147
+ * existing `providers.<ref>.displayName` words would read as orphans (#1895). The remedy is `wildo config sync`,
148
+ * which rewrites the artifacts; an ABSENT artifact is not this — it means the application has no such runtime kind.
149
+ */
150
+ LabellingPlanIncompletenessReason["PROVIDER_RUNTIME_ARTIFACTS_UNREADABLE"] = "provider-runtime-artifacts-unreadable";
151
+ /**
152
+ * The `human-decision-gate-declarations` introspection did not answer, so the pause states the application's approval
153
+ * gates declare could not be read (#1864). Their words live in the `system_enums` theme unit, which then holds a
154
+ * SUBSET of its real keys and is tagged, so no write prunes the pause-state words it could not see.
155
+ */
156
+ LabellingPlanIncompletenessReason["HUMAN_DECISION_GATES_INTROSPECTION_FAILED"] = "human-decision-gates-introspection-failed";
109
157
  })(LabellingPlanIncompletenessReason || (LabellingPlanIncompletenessReason = {}));
110
- /**
111
- * Whether an `@optional()` runtime registry can answer for its label family.
112
- *
113
- * Named rather than an inline literal union because it is a closed semantic
114
- * vocabulary whose members each carry a distinct operator remedy: UNBOUND needs
115
- * a container binding, UNPOPULATED needs a source of definitions the companion
116
- * can actually read.
117
- */
118
- export var LabellingRegistryReadiness;
119
- (function (LabellingRegistryReadiness) {
120
- /** The service is not bound in this container. */
121
- LabellingRegistryReadiness["UNBOUND"] = "unbound";
122
- /** Bound, but holding zero definitions. */
123
- LabellingRegistryReadiness["UNPOPULATED"] = "unpopulated";
124
- /** Bound and holding at least one definition. */
125
- LabellingRegistryReadiness["READY"] = "ready";
126
- })(LabellingRegistryReadiness || (LabellingRegistryReadiness = {}));
127
158
  //# sourceMappingURL=labelling-unit.models.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"labelling-unit.models.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/models/labelling-unit.models.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,MAAM,CAAN,IAAY,qBAuBX;AAvBD,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,8CAAqB,CAAA;IACrB,wCAAe,CAAA;IACf,4DAAmC,CAAA;IACnC,wDAA+B,CAAA;IAC/B,4CAAmB,CAAA;IACnB,wCAAe,CAAA;IACf,gDAAuB,CAAA;IACvB,8DAAqC,CAAA;IACrC,kDAAyB,CAAA;IACzB,0DAAiC,CAAA;IACjC,wEAA+C,CAAA;IAC/C;;;;;;OAMG;IACH,gEAAuC,CAAA;IACvC,sCAAa,CAAA;IACb,gEAAuC,CAAA;AACzC,CAAC,EAvBW,qBAAqB,KAArB,qBAAqB,QAuBhC;AAED;;;;;GAKG;AACH,MAAM,CAAN,IAAY,iBAaX;AAbD,WAAY,iBAAiB;IAC3B,6EAA6E;IAC7E,oCAAe,CAAA;IACf,yEAAyE;IACzE,wCAAmB,CAAA;IACnB,0EAA0E;IAC1E,sCAAiB,CAAA;IACjB;;;;OAIG;IACH,wCAAmB,CAAA;AACrB,CAAC,EAbW,iBAAiB,KAAjB,iBAAiB,QAa5B;AA8ID,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAW,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAN,IAAY,iCA4BX;AA5BD,WAAY,iCAAiC;IAC3C,wFAAwF;IACxF,oHAA+E,CAAA;IAC/E,yEAAyE;IACzE,oGAA+D,CAAA;IAC/D,gFAAgF;IAChF,0GAAqE,CAAA;IACrE,uEAAuE;IACvE,kGAA6D,CAAA;IAC7D;;;;;;;;;;OAUG;IACH,sGAAiE,CAAA;IACjE;;;;;OAKG;IACH,gGAA2D,CAAA;AAC7D,CAAC,EA5BW,iCAAiC,KAAjC,iCAAiC,QA4B5C;AAED;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,0BAOX;AAPD,WAAY,0BAA0B;IACpC,kDAAkD;IAClD,iDAAmB,CAAA;IACnB,2CAA2C;IAC3C,yDAA2B,CAAA;IAC3B,iDAAiD;IACjD,6CAAe,CAAA;AACjB,CAAC,EAPW,0BAA0B,KAA1B,0BAA0B,QAOrC","sourcesContent":["import type { z } from 'zod';\n\n/**\n * Categories a labellable unit can belong to. Drives output file layout\n * and grouping policy:\n * - `component` / `resource` => one file per unit (e.g. `i18n/components/AlertDialog.en.ts`)\n * - `theme` / `milestones` / `billing` etc => grouped (one file for all\n * system enums together, one file for all errors together, etc.)\n * - `resource_attached` => attached to a parent resource unit, written\n * inside the resource's own file (e.g. resource-scoped guidance, milestones\n * keyed off a resource).\n */\nexport enum LabellingUnitCategory {\n COMPONENT = 'component',\n RESOURCE = 'resource',\n THEME = 'theme',\n MILESTONES_ROOT = 'milestones_root',\n GUIDANCE_ROOT = 'guidance_root',\n BILLING = 'billing',\n ROLES = 'roles',\n LIFECYCLE = 'lifecycle',\n BACKEND_MESSAGES = 'backend_messages',\n ADDITIONAL = 'additional',\n COMPOSITE_VIEW = 'composite_view',\n SIDEBAR_SECTIONS_ROOT = 'sidebar_sections_root',\n /**\n * The Settings Hub's category + section rail labels.\n *\n * A sibling of {@link SIDEBAR_SECTIONS_ROOT} and for the same reason: the ref\n * space is authored by the application (its `settingsHub.placements`), so it\n * cannot be statically enumerated from a policy table.\n */\n SETTINGS_HUB_ROOT = 'settings_hub_root',\n VIEW = 'view',\n ENGINE_PAGES_ROOT = 'engine_pages_root',\n}\n\n/**\n * Outcome of one labellize / translate roundtrip for a single unit (× target\n * locale, for translate). This is the RUN-result vocabulary reported back to\n * callers — distinct from `I18nLockLocaleStatus` (wildo-saas-lock.models.ts),\n * which is the durable freshness state persisted in the lock file.\n */\nexport enum I18nUnitRunStatus {\n /** The freshness lock said the unit is up-to-date — no LLM call was made. */\n FRESH = 'fresh',\n /** The unit was (re)generated and its output file rewritten this run. */\n UPDATED = 'updated',\n /** The attempt errored; `error` on the unit result carries the reason. */\n FAILED = 'failed',\n /**\n * Translate-only: the unit×locale roundtrip could not run at all — e.g. the\n * unit has no recorded labellize state yet. Labellize never produces this\n * member (its result type excludes it).\n */\n SKIPPED = 'skipped',\n}\n\n/**\n * A unit is the smallest addressable thing the labellize / translate\n * pipeline operates on. One unit = one disk file (per locale) + one\n * lock entry + one (or several, when chunked) LLM round-trip.\n *\n * Stable shape across components / resources / theme groups so the\n * orchestrator can iterate uniformly.\n */\nexport interface LabellingUnit {\n category: LabellingUnitCategory;\n /** Stable identifier, e.g. `component:AVATAR`, `resource:todoLists`,\n * `theme:system_enums`, `theme:errors_messages`, `milestones:root`. */\n id: string;\n /** Human-friendly display label, used in logs / traces. */\n displayLabel: string;\n /** Path relative to the unit's host backend service (or empty for root\n * themes that live in the engine root i18n folder). */\n filePathHint: {\n /** e.g. `components`, `resources`, `themes`, `milestones`, `billing`. */\n bucket: string;\n /** Slug used as the file name (without locale or extension). */\n slug: string;\n };\n /**\n * Sub-groups inside the unit, each capped at `maxItemsPerChunk` (90).\n * If a unit produces fewer than 90 keys total it has exactly one chunk.\n * Sub-groups are natural for resources (header / operations / fields blocks)\n * and degrade to a single chunk for tiny units.\n */\n chunks: LabellingUnitChunk[];\n /**\n * Loader for the rich specification context (resource spec / component spec).\n * Lazy: only invoked when this unit is about to be sent to the LLM.\n * Should print a console warning if context cannot be located.\n */\n loadSpecContext: () => Promise<LabellingUnitSpecContext | undefined>;\n}\n\n/**\n * Rich per-key semantic metadata threaded from a component label's enriched\n * `registerComponentLabels` def (`{ ref, purpose?, kind?, params:[{key,meaning}], notes? }`).\n * Feeds authoritative per-key context to the labelling + translation prompts\n * instead of name-inference. All fields optional/sparse.\n */\nexport interface LabelKeyMeta {\n /** What this label must communicate (drives generation). */\n purpose?: string;\n /** Declared UI kind (e.g. `heading`/`aria`/`empty-state`) — overrides inference. */\n kind?: string;\n /** Per-variable meaning, keyed by param name (e.g. `current` → \"amount used\"). */\n paramMeanings?: Readonly<Record<string, string>>;\n /** Extra wording / translation constraints. */\n notes?: readonly string[];\n /**\n * Intended reader/register for THIS key (a `LabelAudience` value:\n * `end-user` / `admin` / `developer`). Set only to OVERRIDE the unit-level\n * audience — e.g. an admin-only operation on a mostly-end-user resource;\n * otherwise the unit's `LabellingUnitSpecContext.audience` applies. Drives the\n * prompt's per-audience register instruction.\n */\n audience?: string;\n}\n\nexport interface LabellingUnitChunk {\n /** Identifier within the unit (e.g. `header`, `fields-1`, `operations`). */\n chunkId: string;\n /** Flat translation keys this chunk owns (full dotted path). */\n keys: string[];\n /**\n * Declared interpolation parameters, keyed by FULL dotted key, for the\n * subset of this chunk's keys that declare any. The runtime substitutes a\n * `{name}` placeholder ONLY when `name` is a passed param (see\n * `interpolateLabelParams`), so the label the agent emits for such a key\n * MUST use exactly `{<param>}` for each declared param and nothing else.\n *\n * Param names come from each component label's\n * `registerComponentLabels({ ref, params })` declaration (object-form\n * params `{ key }` collapse to `key`), e.g.\n * `components.RESOURCES_LAYOUTS_PAGINATION.showing → [\"from\",\"to\",\"total\"]`.\n *\n * Consumed by the labellize prompt (to instruct EXACT placeholders instead\n * of the historical generic `{value}`) and the post-generation drift\n * validator. Optional + sparse: keys without declared params are absent, and\n * buckets that don't thread params (themes/resources today) omit it entirely.\n */\n keyParams?: Readonly<Record<string, readonly string[]>>;\n /**\n * Rich per-key semantic metadata (purpose, declared kind, per-param meaning,\n * notes) threaded from each component label's enriched `registerComponentLabels`\n * def. Drives the labellize prompt (per-key purpose + kind + variable meanings)\n * and the translate prompt (variable meanings). Optional + sparse, like\n * `keyParams`; absent for buckets that don't author per-key metadata.\n */\n keyMeta?: Readonly<Record<string, LabelKeyMeta>>;\n /**\n * Build the structured zod schema describing the expected agent response.\n *\n * Shaped as `z.object({ [key]: z.string().optional() })` over `requestedKeys`\n * (default: every key this chunk owns).\n *\n * ## Why the values are OPTIONAL\n *\n * This schema is a statement about what the caller TOLERATES, not about what\n * the prompt asks for — the prompt still demands a value for every listed key,\n * and both orchestrators repair whatever comes back missing (see\n * `completeStructuredChunkKeys`).\n *\n * Declaring them required made the contract all-or-nothing against a provider\n * that is deliberately non-strict (`strictJsonSchema: false`, so nothing\n * constrains decoding to emit every key). One stochastically omitted leaf out\n * of ~90 made the AI SDK reject the ENTIRE object, the engine return\n * `{ object: undefined }`, and the orchestrator discard a whole unit whose\n * other 89 labels had arrived correctly. Five Wonder Todos units failed that\n * way on every run for weeks, one of which (`organizationOAuthClients`) had\n * therefore never been generated at all.\n *\n * @param requestedKeys - the subset to request. Passed by the repair loop so a\n * follow-up call carries ONLY the omitted keys. Must be a subset of `keys`;\n * a key this chunk does not own would produce a label nothing ever reads.\n */\n buildOutputSchema: (requestedKeys?: readonly string[]) => z.ZodObject<Record<string, z.ZodOptional<z.ZodString>>>;\n}\n\nexport interface LabellingUnitSpecContext {\n /** Free-form text the LLM gets to read before producing labels. */\n description?: string;\n /** Structured hints (e.g. resource intent, operation list, field types). */\n hints?: Record<string, unknown>;\n /**\n * Intended reader/register for this unit's labels (a `LabelAudience` value:\n * `end-user` / `admin` / `developer`). Drives a plain \"# Audience\" cue + the\n * per-audience register instruction in the labellize prompt so the generator\n * calibrates VOICE deliberately instead of guessing from the prose. Per-key\n * overrides ride on `LabelKeyMeta.audience`.\n */\n audience?: string;\n /** Origin file path(s) used to build the context; surfaced in traces. */\n origin?: string[];\n}\n\nexport const MAX_ITEMS_PER_CHUNK = 90 as const;\n\n/**\n * Why a labelling PLAN is not TOTAL over the application's units.\n *\n * `planAllUnits()` degrades silently by design — a frontend introspection that\n * cannot run must never take down backend-only label generation. That is right\n * for GENERATION and catastrophic for any consumer that reads the plan as the\n * complete set of units the application has: on such a run the four\n * frontend-derived buckets (`composite_views`, `views`, `sidebar_sections`,\n * `settings_hub`) are simply ABSENT from the result, indistinguishable from an\n * application that legitimately has none.\n *\n * So a run records, per degraded family, WHY it could not answer and WHICH\n * output buckets that suppresses. An empty incompleteness list is the explicit\n * assertion \"every family answered authoritatively\"; it is the precondition the\n * orphan report checks before it is willing to call anything an orphan.\n *\n * NOTE the boundary of that guarantee, because it is narrower than \"total\":\n * these members cover the degradations a family DECLARES. A resources registry\n * that loaded three of five application modules is undetectable here — it\n * reports success with fewer resources — which is exactly why the orphan report\n * REPORTS rather than deletes. See `orphan-label-artifacts.utils.ts`.\n */\nexport enum LabellingPlanIncompletenessReason {\n /** No `SAAS_APP` frontend service is configured, so no frontend key snapshot exists. */\n FRONTEND_INTROSPECTION_NO_APP_SERVICE = 'frontend-introspection-no-app-service',\n /** The `frontend-labels-needed-info` introspection subprocess failed. */\n FRONTEND_INTROSPECTION_FAILED = 'frontend-introspection-failed',\n /** The introspection answered, but with a payload that carried no key array. */\n FRONTEND_INTROSPECTION_MALFORMED = 'frontend-introspection-malformed',\n /** The product-catalog sync service is not bound in this container. */\n PRODUCT_CATALOG_SYNC_UNBOUND = 'product-catalog-sync-unbound',\n /**\n * The `resources-registry` introspection that carries milestone DECLARATIONS\n * did not answer, so the milestone family could not be enumerated.\n *\n * Milestone labels are planned from the introspection snapshot rather than\n * from `MilestoneDefinitionRegistry`: that registry's only production writer\n * is `startApplication()`, which the companion never runs, so it answered `[]`\n * for every application and the family was silently never planned (#1405).\n * Reading declarations instead means a zero IS authoritative, and only a\n * failed introspection is a degradation.\n */\n MILESTONE_INTROSPECTION_FAILED = 'milestone-introspection-failed',\n /**\n * The product-catalog sync service is BOUND and reports zero definitions,\n * which the companion cannot distinguish from an application that sells\n * nothing. Billing still reads a runtime singleton; #1405's argument applies\n * to it unchanged, and moving it to a declaration source is follow-up work.\n */\n PRODUCT_CATALOG_UNPOPULATED = 'product-catalog-unpopulated',\n}\n\n/**\n * Whether an `@optional()` runtime registry can answer for its label family.\n *\n * Named rather than an inline literal union because it is a closed semantic\n * vocabulary whose members each carry a distinct operator remedy: UNBOUND needs\n * a container binding, UNPOPULATED needs a source of definitions the companion\n * can actually read.\n */\nexport enum LabellingRegistryReadiness {\n /** The service is not bound in this container. */\n UNBOUND = 'unbound',\n /** Bound, but holding zero definitions. */\n UNPOPULATED = 'unpopulated',\n /** Bound and holding at least one definition. */\n READY = 'ready',\n}\n\n/** One declared reason the plan could not enumerate part of the unit space. */\nexport interface LabellingPlanIncompleteness {\n reason: LabellingPlanIncompletenessReason;\n /** Operator-facing detail (service key, underlying error message, …). */\n detail: string;\n /**\n * The `filePathHint.bucket` values this degradation suppresses. Anything on\n * disk under one of these buckets is UNJUDGEABLE on this run — it may be a\n * live unit the plan simply could not see.\n */\n suppressedBuckets: readonly string[];\n}\n\n/**\n * `planAllUnits()` plus the explicit answer to \"is this set TOTAL?\".\n *\n * `planAllUnits()` remains the units-only accessor for every consumer that only\n * generates; consumers that reason about ABSENCE must use\n * `planAllUnitsWithCompleteness()` and honour `incompleteness`.\n */\nexport interface LabellingPlanResult {\n units: LabellingUnit[];\n /** Empty ⇒ every family answered authoritatively (see the enum's JSDoc). */\n incompleteness: readonly LabellingPlanIncompleteness[];\n}\n\n/**\n * The milestone DECLARATION fields the labelling planner needs, as projected by\n * the `resources-registry` introspection behavior.\n *\n * Deliberately three fields rather than the whole `MilestoneDefinition`: the\n * planner only ever emits title / description / reward keys and a per-category\n * label, so a wider projection would couple the snapshot contract to parts of\n * the definition labelling does not read.\n */\nexport interface LabellingMilestoneDefinition {\n identifier: string;\n /** `labels.description === true` — whether a `.description` key is emitted. */\n hasDescriptionLabel: boolean;\n category?: string;\n}\n"]}
1
+ {"version":3,"file":"labelling-unit.models.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/models/labelling-unit.models.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,MAAM,CAAN,IAAY,qBA8CX;AA9CD,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,8CAAqB,CAAA;IACrB,wCAAe,CAAA;IACf,4DAAmC,CAAA;IACnC,wDAA+B,CAAA;IAC/B,4CAAmB,CAAA;IACnB,wCAAe,CAAA;IACf,gDAAuB,CAAA;IACvB,8DAAqC,CAAA;IACrC,kDAAyB,CAAA;IACzB,0DAAiC,CAAA;IACjC,wEAA+C,CAAA;IAC/C;;;;;;OAMG;IACH,gEAAuC,CAAA;IACvC,sCAAa,CAAA;IACb,gEAAuC,CAAA;IACvC;;;;OAIG;IACH,0DAAiC,CAAA;IACjC;;;;OAIG;IACH,0EAAiD,CAAA;IACjD;;;;;;;;;OASG;IACH,0DAAiC,CAAA;AACnC,CAAC,EA9CW,qBAAqB,KAArB,qBAAqB,QA8ChC;AAED;;;;;GAKG;AACH,MAAM,CAAN,IAAY,iBAaX;AAbD,WAAY,iBAAiB;IAC3B,6EAA6E;IAC7E,oCAAe,CAAA;IACf,yEAAyE;IACzE,wCAAmB,CAAA;IACnB,0EAA0E;IAC1E,sCAAiB,CAAA;IACjB;;;;OAIG;IACH,wCAAmB,CAAA;AACrB,CAAC,EAbW,iBAAiB,KAAjB,iBAAiB,QAa5B;AAmKD,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAW,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAN,IAAY,iCAqDX;AArDD,WAAY,iCAAiC;IAC3C,wFAAwF;IACxF,oHAA+E,CAAA;IAC/E,yEAAyE;IACzE,oGAA+D,CAAA;IAC/D,gFAAgF;IAChF,0GAAqE,CAAA;IACrE;;;;;;;;;;OAUG;IACH,sGAAiE,CAAA;IACjE;;;;;;;;;;;OAWG;IACH,kHAA6E,CAAA;IAC7E;;;;;;OAMG;IACH,gHAA2E,CAAA;IAC3E;;;;;OAKG;IACH,oHAA+E,CAAA;IAC/E;;;;OAIG;IACH,4HAAuF,CAAA;AACzF,CAAC,EArDW,iCAAiC,KAAjC,iCAAiC,QAqD5C","sourcesContent":["import type { z } from 'zod';\nimport type { FeatureValueType } from '@wildo-ai/saas-models';\n\n/**\n * Categories a labellable unit can belong to. Drives output file layout\n * and grouping policy:\n * - `component` / `resource` => one file per unit (e.g. `i18n/components/AlertDialog.en.ts`)\n * - `theme` / `milestones` / `billing` etc => grouped (one file for all\n * system enums together, one file for all errors together, etc.)\n * - `resource_attached` => attached to a parent resource unit, written\n * inside the resource's own file (e.g. resource-scoped guidance, milestones\n * keyed off a resource).\n */\nexport enum LabellingUnitCategory {\n COMPONENT = 'component',\n RESOURCE = 'resource',\n THEME = 'theme',\n MILESTONES_ROOT = 'milestones_root',\n GUIDANCE_ROOT = 'guidance_root',\n BILLING = 'billing',\n ROLES = 'roles',\n LIFECYCLE = 'lifecycle',\n BACKEND_MESSAGES = 'backend_messages',\n ADDITIONAL = 'additional',\n COMPOSITE_VIEW = 'composite_view',\n SIDEBAR_SECTIONS_ROOT = 'sidebar_sections_root',\n /**\n * The Settings Hub's category + section rail labels.\n *\n * A sibling of {@link SIDEBAR_SECTIONS_ROOT} and for the same reason: the ref\n * space is authored by the application (its `settingsHub.placements`), so it\n * cannot be statically enumerated from a policy table.\n */\n SETTINGS_HUB_ROOT = 'settings_hub_root',\n VIEW = 'view',\n ENGINE_PAGES_ROOT = 'engine_pages_root',\n /**\n * Vendor display names, `providers.<ref>.displayName` (#1895), one key per provider the application declares in any\n * runtime scope. Derived from the provider runtime artifacts, so the ref space is the application's declaration and\n * never a hand-kept list. See `provider-display-name-keys.utils.ts`.\n */\n PROVIDERS_ROOT = 'providers_root',\n /**\n * System-of-record instance names, `systems_of_record.<name>.displayName` (#1997), one key per instance the application\n * declares in `systemsOfRecord`. The instance name is an environment-variable stem, so the words a reader sees — in\n * the provenance note of a field a pipeline wrote — have to be generated. See `system-of-record-display-name-keys.utils.ts`.\n */\n SYSTEMS_OF_RECORD_ROOT = 'systems_of_record_root',\n /**\n * One email template's words (`<template dir>/labels.<locale>.ts`), #1908.\n *\n * TRANSLATE-ONLY, and that is the difference from every member above: an email's primary-locale\n * words are AUTHORED beside its `template.tsx` (by a person or by `wildo generate email`), never\n * labellized, so the unit's source is that file itself and its only generated output is one\n * `labels.<locale>.ts` per enabled secondary locale in the same directory. Such a unit is never\n * part of `planAllUnits()` — labellize must not write English over an authored file — and is planned\n * by `EmailTemplateLabellingUnitsCompanionService` instead. See `email-template-labelling-unit.models.ts`.\n */\n EMAIL_TEMPLATE = 'email_template',\n}\n\n/**\n * Outcome of one labellize / translate roundtrip for a single unit (× target\n * locale, for translate). This is the RUN-result vocabulary reported back to\n * callers — distinct from `I18nLockLocaleStatus` (wildo-saas-lock.models.ts),\n * which is the durable freshness state persisted in the lock file.\n */\nexport enum I18nUnitRunStatus {\n /** The freshness lock said the unit is up-to-date — no LLM call was made. */\n FRESH = 'fresh',\n /** The unit was (re)generated and its output file rewritten this run. */\n UPDATED = 'updated',\n /** The attempt errored; `error` on the unit result carries the reason. */\n FAILED = 'failed',\n /**\n * Translate-only: the unit×locale roundtrip could not run at all — e.g. the\n * unit has no recorded labellize state yet. Labellize never produces this\n * member (its result type excludes it).\n */\n SKIPPED = 'skipped',\n}\n\n/**\n * A unit is the smallest addressable thing the labellize / translate\n * pipeline operates on. One unit = one disk file (per locale) + one\n * lock entry + one (or several, when chunked) LLM round-trip.\n *\n * Stable shape across components / resources / theme groups so the\n * orchestrator can iterate uniformly.\n */\nexport interface LabellingUnit {\n category: LabellingUnitCategory;\n /** Stable identifier, e.g. `component:AVATAR`, `resource:todoLists`,\n * `theme:system_enums`, `theme:errors_messages`, `milestones:root`. */\n id: string;\n /** Human-friendly display label, used in logs / traces. */\n displayLabel: string;\n /** Path relative to the unit's host backend service (or empty for root\n * themes that live in the engine root i18n folder). */\n filePathHint: {\n /** e.g. `components`, `resources`, `themes`, `milestones`, `billing`. */\n bucket: string;\n /** Slug used as the file name (without locale or extension). */\n slug: string;\n };\n /**\n * Sub-groups inside the unit, each capped at `maxItemsPerChunk` (90).\n * If a unit produces fewer than 90 keys total it has exactly one chunk.\n * Sub-groups are natural for resources (header / operations / fields blocks)\n * and degrade to a single chunk for tiny units.\n */\n chunks: LabellingUnitChunk[];\n /**\n * Loader for the rich specification context (resource spec / component spec).\n * Lazy: only invoked when this unit is about to be sent to the LLM.\n * Should print a console warning if context cannot be located.\n */\n loadSpecContext: () => Promise<LabellingUnitSpecContext | undefined>;\n /**\n * Set when part of this unit's key set comes from a family that could NOT answer on this run, with\n * the reason(s) it declared. The unit's keys are then a SUBSET of the real ones, and nothing reading\n * the plan can tell which keys are missing: a resource unit whose frontend introspection failed\n * plans its fields and operations but none of its sections, wizard steps, groups, operation\n * descriptions or empty-state secondary action.\n *\n * Every path that writes label files refuses such a unit (`incompletePlanRefusal`): labellize\n * generation, labellize adoption, and translate. Each prunes the keys the plan does not hold — and\n * translate then records the locale `fresh`, so its loss would never be revisited — so a unit written\n * from a partial plan DELETES the labels the missing family would have planned. It is not seeded from\n * the framework base either, which would write its file with no lock entry.\n *\n * Only an introspection that SHOULD have answered tags a unit (`resolveFrontendPlanDegradation`): an\n * application with no frontend service has a complete, empty snapshot. Measured on\n * Wonder Todos, 2026-09-26: a forced run while the introspection subprocess crashed on a stale\n * injected snapshot removed every section title of all thirteen units it touched.\n *\n * Refusing costs one re-run once the family answers again; writing costs the words.\n */\n plannedFromIncompleteInputs?: readonly LabellingPlanIncompletenessReason[];\n}\n\n/**\n * Rich per-key semantic metadata threaded from a component label's enriched\n * `registerComponentLabels` def (`{ ref, purpose?, kind?, params:[{key,meaning}], notes? }`).\n * Feeds authoritative per-key context to the labelling + translation prompts\n * instead of name-inference. All fields optional/sparse.\n */\nexport interface LabelKeyMeta {\n /** What this label must communicate (drives generation). */\n purpose?: string;\n /** Declared UI kind (e.g. `heading`/`aria`/`empty-state`) — overrides inference. */\n kind?: string;\n /** Per-variable meaning, keyed by param name (e.g. `current` → \"amount used\"). */\n paramMeanings?: Readonly<Record<string, string>>;\n /** Extra wording / translation constraints. */\n notes?: readonly string[];\n /**\n * Intended reader/register for THIS key (a `LabelAudience` value:\n * `end-user` / `admin` / `developer`). Set only to OVERRIDE the unit-level\n * audience — e.g. an admin-only operation on a mostly-end-user resource;\n * otherwise the unit's `LabellingUnitSpecContext.audience` applies. Drives the\n * prompt's per-audience register instruction.\n */\n audience?: string;\n}\n\nexport interface LabellingUnitChunk {\n /** Identifier within the unit (e.g. `header`, `fields-1`, `operations`). */\n chunkId: string;\n /** Flat translation keys this chunk owns (full dotted path). */\n keys: string[];\n /**\n * Declared interpolation parameters, keyed by FULL dotted key, for the\n * subset of this chunk's keys that declare any. The runtime substitutes a\n * `{name}` placeholder ONLY when `name` is a passed param (see\n * `interpolateLabelParams`), so the label the agent emits for such a key\n * MUST use exactly `{<param>}` for each declared param and nothing else.\n *\n * Param names come from each component label's\n * `registerComponentLabels({ ref, params })` declaration (object-form\n * params `{ key }` collapse to `key`), e.g.\n * `components.RESOURCES_LAYOUTS_PAGINATION.showing → [\"from\",\"to\",\"total\"]`.\n *\n * Consumed by the labellize prompt (to instruct EXACT placeholders instead\n * of the historical generic `{value}`) and the post-generation drift\n * validator. Optional + sparse: keys without declared params are absent, and\n * buckets that don't thread params (themes/resources today) omit it entirely.\n */\n keyParams?: Readonly<Record<string, readonly string[]>>;\n /**\n * Rich per-key semantic metadata (purpose, declared kind, per-param meaning,\n * notes) threaded from each component label's enriched `registerComponentLabels`\n * def. Drives the labellize prompt (per-key purpose + kind + variable meanings)\n * and the translate prompt (variable meanings). Optional + sparse, like\n * `keyParams`; absent for buckets that don't author per-key metadata.\n */\n keyMeta?: Readonly<Record<string, LabelKeyMeta>>;\n /**\n * Build the structured zod schema describing the expected agent response.\n *\n * Shaped as `z.object({ [key]: z.string().optional() })` over `requestedKeys`\n * (default: every key this chunk owns).\n *\n * ## Why the values are OPTIONAL\n *\n * This schema is a statement about what the caller TOLERATES, not about what\n * the prompt asks for — the prompt still demands a value for every listed key,\n * and both orchestrators repair whatever comes back missing (see\n * `completeStructuredChunkKeys`).\n *\n * Declaring them required made the contract all-or-nothing against a provider\n * that is deliberately non-strict (`strictJsonSchema: false`, so nothing\n * constrains decoding to emit every key). One stochastically omitted leaf out\n * of ~90 made the AI SDK reject the ENTIRE object, the engine return\n * `{ object: undefined }`, and the orchestrator discard a whole unit whose\n * other 89 labels had arrived correctly. Five Wonder Todos units failed that\n * way on every run for weeks, one of which (`organizationOAuthClients`) had\n * therefore never been generated at all.\n *\n * @param requestedKeys - the subset to request. Passed by the repair loop so a\n * follow-up call carries ONLY the omitted keys. Must be a subset of `keys`;\n * a key this chunk does not own would produce a label nothing ever reads.\n */\n buildOutputSchema: (requestedKeys?: readonly string[]) => z.ZodObject<Record<string, z.ZodOptional<z.ZodString>>>;\n}\n\nexport interface LabellingUnitSpecContext {\n /** Free-form text the LLM gets to read before producing labels. */\n description?: string;\n /** Structured hints (e.g. resource intent, operation list, field types). */\n hints?: Record<string, unknown>;\n /**\n * Intended reader/register for this unit's labels (a `LabelAudience` value:\n * `end-user` / `admin` / `developer`). Drives a plain \"# Audience\" cue + the\n * per-audience register instruction in the labellize prompt so the generator\n * calibrates VOICE deliberately instead of guessing from the prose. Per-key\n * overrides ride on `LabelKeyMeta.audience`.\n */\n audience?: string;\n /** Origin file path(s) used to build the context; surfaced in traces. */\n origin?: string[];\n}\n\nexport const MAX_ITEMS_PER_CHUNK = 90 as const;\n\n/**\n * Why a labelling PLAN is not TOTAL over the application's units.\n *\n * `planAllUnits()` degrades silently by design — a frontend introspection that\n * cannot run must never take down backend-only label generation. That is right\n * for GENERATION and catastrophic for any consumer that reads the plan as the\n * complete set of units the application has: on such a run the four\n * frontend-derived buckets (`composite_views`, `views`, `sidebar_sections`,\n * `settings_hub`) are simply ABSENT from the result, indistinguishable from an\n * application that legitimately has none.\n *\n * So a run records, per degraded family, WHY it could not answer and WHICH\n * output buckets that suppresses. An empty incompleteness list is the explicit\n * assertion \"every family answered authoritatively\"; it is the precondition the\n * orphan report checks before it is willing to call anything an orphan.\n *\n * NOTE the boundary of that guarantee, because it is narrower than \"total\":\n * these members cover the degradations a family DECLARES. A resources registry\n * that loaded three of five application modules is undetectable here — it\n * reports success with fewer resources — which is exactly why the orphan report\n * REPORTS rather than deletes. See `orphan-label-artifacts.utils.ts`.\n */\nexport enum LabellingPlanIncompletenessReason {\n /** No `SAAS_APP` frontend service is configured, so no frontend key snapshot exists. */\n FRONTEND_INTROSPECTION_NO_APP_SERVICE = 'frontend-introspection-no-app-service',\n /** The `frontend-labels-needed-info` introspection subprocess failed. */\n FRONTEND_INTROSPECTION_FAILED = 'frontend-introspection-failed',\n /** The introspection answered, but with a payload that carried no key array. */\n FRONTEND_INTROSPECTION_MALFORMED = 'frontend-introspection-malformed',\n /**\n * The `resources-registry` introspection that carries milestone DECLARATIONS\n * did not answer, so the milestone family could not be enumerated.\n *\n * Milestone labels are planned from the introspection snapshot rather than\n * from `MilestoneDefinitionRegistry`: that registry's only production writer\n * is `startApplication()`, which the companion never runs, so it answered `[]`\n * for every application and the family was silently never planned (#1405).\n * Reading declarations instead means a zero IS authoritative, and only a\n * failed introspection is a degradation.\n */\n MILESTONE_INTROSPECTION_FAILED = 'milestone-introspection-failed',\n /**\n * The `resources-registry` introspection that carries the product catalogue's DECLARATIONS did not answer, or\n * answered without them, so the billing family (product, feature, limit and credit-pool words) could not be\n * enumerated.\n *\n * Billing labels used to be planned from `ProductCatalogSyncBackendService`, a runtime singleton whose only writer\n * is `startApplication()`'s billing bootstrap — which the companion never runs. It answered `[]` for every\n * application, so no application had its plan names labelled and every pricing table rendered\n * `billing_products.<key>.name`. #1405's argument, applied to its billing twin: declarations are a build-time fact\n * on the snapshot, where a zero is authoritative (an application that sells nothing) and only a failed\n * introspection degrades.\n */\n PRODUCT_CATALOG_INTROSPECTION_FAILED = 'product-catalog-introspection-failed',\n /**\n * The merged resource-specification registry could not be loaded, so no resource's specification could be\n * read. Several resource keys are planned FROM a specification's decision — a section description or an\n * empty-state description is planned only when the specification documents one — and a missing registry reads\n * exactly like \"no specification\", which plans every such key. Written, that would regenerate through the model\n * the descriptions an application had just dropped. So every resource unit is tagged and its writes refused.\n */\n RESOURCE_SPECIFICATIONS_UNAVAILABLE = 'resource-specifications-unavailable',\n /**\n * A provider runtime artifact under `.wildo-saas/generated/providers/` exists but could not be read, so the vendor\n * population is incomplete: a vendor declared only in that runtime scope would be missing from the plan, and its\n * existing `providers.<ref>.displayName` words would read as orphans (#1895). The remedy is `wildo config sync`,\n * which rewrites the artifacts; an ABSENT artifact is not this — it means the application has no such runtime kind.\n */\n PROVIDER_RUNTIME_ARTIFACTS_UNREADABLE = 'provider-runtime-artifacts-unreadable',\n /**\n * The `human-decision-gate-declarations` introspection did not answer, so the pause states the application's approval\n * gates declare could not be read (#1864). Their words live in the `system_enums` theme unit, which then holds a\n * SUBSET of its real keys and is tagged, so no write prunes the pause-state words it could not see.\n */\n HUMAN_DECISION_GATES_INTROSPECTION_FAILED = 'human-decision-gates-introspection-failed',\n}\n\n/** One declared reason the plan could not enumerate part of the unit space. */\nexport interface LabellingPlanIncompleteness {\n reason: LabellingPlanIncompletenessReason;\n /** Operator-facing detail (service key, underlying error message, …). */\n detail: string;\n /**\n * The `filePathHint.bucket` values this degradation suppresses. Anything on\n * disk under one of these buckets is UNJUDGEABLE on this run — it may be a\n * live unit the plan simply could not see.\n */\n suppressedBuckets: readonly string[];\n}\n\n/**\n * `planAllUnits()` plus the explicit answer to \"is this set TOTAL?\".\n *\n * `planAllUnits()` remains the units-only accessor for every consumer that only\n * generates; consumers that reason about ABSENCE must use\n * `planAllUnitsWithCompleteness()` and honour `incompleteness`.\n */\nexport interface LabellingPlanResult {\n units: LabellingUnit[];\n /** Empty ⇒ every family answered authoritatively (see the enum's JSDoc). */\n incompleteness: readonly LabellingPlanIncompleteness[];\n}\n\n/**\n * The milestone DECLARATION fields the labelling planner needs, as projected by\n * the `resources-registry` introspection behavior.\n *\n * Deliberately three fields rather than the whole `MilestoneDefinition`: the\n * planner only ever emits title / description / reward keys and a per-category\n * label, so a wider projection would couple the snapshot contract to parts of\n * the definition labelling does not read.\n */\nexport interface LabellingMilestoneDefinition {\n identifier: string;\n /** `labels.description === true` — whether a `.description` key is emitted. */\n hasDescriptionLabel: boolean;\n category?: string;\n}\n\n/**\n * The product DECLARATION fields the billing label family needs, as projected by the `resources-registry`\n * introspection behavior from the application's `ProductDefinition`s.\n *\n * Narrow for the milestone projection's reason: the planner emits a product's name / description / tagline, and the\n * words of the features, limits and credit pool it grants — nothing else about a product reaches a label key.\n */\nexport interface LabellingProductDefinition {\n key: string;\n grantedFeatures: string[];\n /** The keys of `grantedLimits`: a limit's words are keyed by the limit, never by the value granted. */\n grantedLimitKeys: string[];\n /** `purchaseConfig.creditPoolKey`, for a product that tops up a credit pool. */\n creditPoolKey?: string;\n}\n\n/**\n * A feature DECLARATION, as the billing label family needs it (#1851): the feature's identifier, and whether it is an\n * on/off feature (worded under `billing_features.<id>`) or a numeric limit (`billing_limits.<id>`).\n *\n * Planned from EVERY declared feature — the engine's core definitions and the application's own — and not only from\n * those a product grants. A feature granted by default, by a feature profile or by an administrator's override is shown\n * on the Entitlements screen exactly like one a plan grants, and it had no words at all.\n */\nexport interface LabellingFeatureDefinition {\n identifier: string;\n valueType: FeatureValueType;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"labelling.actors-system.definitions.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/models/labelling.actors-system.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAoG/D,MAAM,WAAW,+BAA+B;IAC9C,UAAU,EAAE,wCAAwC,CAAC;IACrD,MAAM,EAAE,iBAAiB,EAAE,CAAC;CAC7B;AAED,wBAAgB,oCAAoC,IAAI,+BAA+B,CAUtF"}
1
+ {"version":3,"file":"labelling.actors-system.definitions.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/models/labelling.actors-system.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAkG/D,MAAM,WAAW,+BAA+B;IAC9C,UAAU,EAAE,wCAAwC,CAAC;IACrD,MAAM,EAAE,iBAAiB,EAAE,CAAC;CAC7B;AAED,wBAAgB,oCAAoC,IAAI,+BAA+B,CAUtF"}
@@ -33,7 +33,6 @@ function buildLabellingTranslationAgent() {
33
33
  reasoningEffort: LLMProvider_ReasoningEffort.NONE,
34
34
  accessControl: [{
35
35
  primaryScope: ResourcePrimaryScope.APPLICATION,
36
- requiresApproval: false,
37
36
  }],
38
37
  riskLevel: ResourceOperationRiskLevel.LOW,
39
38
  },
@@ -73,7 +72,6 @@ function buildLabellingActorSystem(agent) {
73
72
  timeout: 30000,
74
73
  accessControl: [{
75
74
  primaryScope: ResourcePrimaryScope.APPLICATION,
76
- requiresApproval: false,
77
75
  }],
78
76
  riskLevel: ResourceOperationRiskLevel.LOW,
79
77
  },
@@ -1 +1 @@
1
- {"version":3,"file":"labelling.actors-system.definitions.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/models/labelling.actors-system.definitions.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,oBAAoB,EACpB,sBAAsB,EACtB,0BAA0B,EAC1B,mBAAmB,EACnB,mBAAmB,EACnB,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,yCAAyC,EAAE,0CAA0C,EAAE,uCAAuC,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAGtQ,MAAM,sBAAsB,GAAG,QAAQ,CAAC;AACxC;;;;GAIG;AACH,MAAM,uBAAuB,GAAG,uBAAuB,CAAC,sBAAsB,CAAC;AAE/E;;;;;;;;GAQG;AACH,SAAS,8BAA8B;IACrC,OAAO;QACL,GAAG,EAAE,6BAA6B;QAClC,WAAW,EAAE,6BAA6B;QAC1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EAAE,0BAA0B,CAAC,YAAY;QACnD,MAAM,EAAE,CAAC,cAAc,CAAC;QACxB,MAAM,EAAE;YACN,OAAO,EAAE,KAAK;YACd,aAAa,EAAE,CAAC;oBACd,YAAY,EAAE,oBAAoB,CAAC,WAAW;oBAC9C,gBAAgB,EAAE,KAAK;iBACxB,CAAC;YACF,SAAS,EAAE,0BAA0B,CAAC,GAAG;SAC1C;QACD,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;KACpC,CAAC;AACJ,CAAC;AAOD,MAAM,UAAU,oCAAoC;IAClD,MAAM,KAAK,GAAG,8BAA8B,EAAE,CAAC;IAC/C,MAAM,WAAW,GAAG,yBAAyB,CAAC,KAAK,CAAC,CAAC;IAErD,OAAO;QACL,UAAU,EAAE;YACV,kBAAkB,EAAE,GAAG,EAAE,CAAC,WAAW;SACtC;QACD,MAAM,EAAE,CAAC,KAAK,CAAC;KAChB,CAAC;AACJ,CAAC","sourcesContent":["import type { FlowActorSystem_InitializationFactoryMap } from '@wildo-ai/saas-backend-lib';\nimport type { FlowsActors_Agent } from '@wildo-ai/saas-models';\nimport {\n FlowsActors_Agent_Status,\n FlowsActors_Agent_Skill_Type,\n FlowActorSystem_Kind,\n FlowActorSystem_Status,\n FlowActorSystem_Visibility,\n Actor_Role_Category,\n Actor_ExecutionMode,\n ResourceOperationRiskLevel,\n ResourcePrimaryScope,\n} from '@wildo-ai/saas-models';\nimport type { ActorSystem, Actor } from '@wildo-ai/saas-models';\nimport { LLMProvider_GenerateStructuredInputSchema, LLMProvider_GenerateStructuredOutputSchema, LLMProvider_OperationContext_BaseSchema, LLMProvider_OperationKey, LLMProvider_ReasoningEffort, LLM_Model_Applicability } from '@wildo-ai/external-connectors-models';\nimport type { LLMProvider_OperationDefinitionBase } from '@wildo-ai/external-connectors-models';\n\nconst LABELLING_PROVIDER_REF = 'openai';\n/**\n * The KIND of work, not an id (#439). Labelling is the enum's own example of\n * HIGH_VOLUME_MECHANICAL — the same call thousands of times, checkable output, unit cost dominating\n * quality. Resolves to `gpt-5.6-luna` on `openai` today, which is the model this pinned.\n */\nconst LABELLING_APPLICABILITY = LLM_Model_Applicability.HIGH_VOLUME_MECHANICAL;\n\n/**\n * Build the mandatory labelling actor system.\n *\n * The current labelling execution path is intentionally locked to the OpenAI GPT\n * structured-output route so the companion behaves like a normal backend actor\n * configuration. Provider availability, enablement, and secret resolution are\n * still enforced later by the standard backend runtime path; if OpenAI is not\n * configured there, execution must fail instead of being guessed here.\n */\nfunction buildLabellingTranslationAgent(): FlowsActors_Agent {\n return {\n ref: 'labelling.translation.agent',\n displayName: 'Labelling Translation Agent',\n status: FlowsActors_Agent_Status.ACTIVE,\n config: {\n providerRef: LABELLING_PROVIDER_REF,\n modelApplicability: LABELLING_APPLICABILITY,\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n // No sampling params: the GPT-5.6 family rejects non-default temperature (verified live 2026-07-16).\n // NONE reasoning (Phase 3): labelling is mechanical structured extraction against a fixed\n // schema — deep reasoning adds latency + cost with no quality gain. GPT-5.6 native\n // reasoning_effort; `none` is the lowest supported level (verified live: gpt-5.6 supports\n // none/low/medium/high/xhigh — NOT minimal).\n reasoningEffort: LLMProvider_ReasoningEffort.NONE,\n accessControl: [{\n primaryScope: ResourcePrimaryScope.APPLICATION,\n requiresApproval: false,\n }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n operationDefinition: {\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n providerRef: LABELLING_PROVIDER_REF,\n inputSchema: LLMProvider_GenerateStructuredInputSchema,\n outputSchema: LLMProvider_GenerateStructuredOutputSchema,\n operationContextSchema: LLMProvider_OperationContext_BaseSchema,\n } satisfies LLMProvider_OperationDefinitionBase,\n promptSpec: {\n role: 'You are a professional UI/UX specialist that is accurately provide labels for SaaS software. your goal is to provide labels based on the provided context and the keys to translate.',\n persona: 'You provide labels with a tone and style that is appropriate for the software and the context, always matching the locale requested in the prompt with a professional tone of voice.',\n skillType: FlowsActors_Agent_Skill_Type.TRANSFORMATION,\n instructions: [],\n },\n createdAt: new Date().toISOString(),\n };\n}\n\nfunction buildLabellingActorSystem(agent: FlowsActors_Agent): ActorSystem {\n const labellingActor: Actor = {\n ref: 'labelling.translator',\n displayName: 'Labelling Translator Actor',\n roleCategory: Actor_Role_Category.OPERATOR,\n executionMode: Actor_ExecutionMode.AGENTIC,\n agentRef: agent.ref,\n };\n\n return {\n ref: 'labelling.system',\n displayName: 'Labelling Management System',\n description: 'Actor system for managing and generating application labels and translations using AI agents',\n kind: FlowActorSystem_Kind.ACTOR,\n status: FlowActorSystem_Status.ACTIVE,\n visibility: FlowActorSystem_Visibility.BACKEND_ONLY,\n actors: [labellingActor],\n config: {\n timeout: 30000,\n accessControl: [{\n primaryScope: ResourcePrimaryScope.APPLICATION,\n requiresApproval: false,\n }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n createdAt: new Date().toISOString(),\n };\n}\n\nexport interface LabellingActorSystemDefinitions {\n factoryMap: FlowActorSystem_InitializationFactoryMap;\n agents: FlowsActors_Agent[];\n}\n\nexport function buildLabellingActorSystemDefinitions(): LabellingActorSystemDefinitions {\n const agent = buildLabellingTranslationAgent();\n const actorSystem = buildLabellingActorSystem(agent);\n\n return {\n factoryMap: {\n 'labelling.system': () => actorSystem,\n },\n agents: [agent],\n };\n}\n"]}
1
+ {"version":3,"file":"labelling.actors-system.definitions.js","sourceRoot":"","sources":["../../../../../src/i18n-labelling/models/labelling.actors-system.definitions.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,oBAAoB,EACpB,sBAAsB,EACtB,0BAA0B,EAC1B,mBAAmB,EACnB,mBAAmB,EACnB,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,yCAAyC,EAAE,0CAA0C,EAAE,uCAAuC,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,uBAAuB,EAAE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AE,KAAK,CAAC,GAAG;KACpB,CAAC;IAEF,OAAO;QACL,GAAG,EAAE,kBAAkB;QACvB,WAAW,EAAE,6BAA6B;QAC1C,WAAW,EAAE,8FAA8F;QAC3G,IAAI,EAAE,oBAAoB,CAAC,KAAK;QAChC,MAAM,EAAE,sBAAsB,CAAC,MAAM;QACrC,UAAU,EAAE,0BAA0B,CAAC,YAAY;QACnD,MAAM,EAAE,CAAC,cAAc,CAAC;QACxB,MAAM,EAAE;YACN,OAAO,EAAE,KAAK;YACd,aAAa,EAAE,CAAC;oBACd,YAAY,EAAE,oBAAoB,CAAC,WAAW;iBAC/C,CAAC;YACF,SAAS,EAAE,0BAA0B,CAAC,GAAG;SAC1C;QACD,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;KACpC,CAAC;AACJ,CAAC;AAOD,MAAM,UAAU,oCAAoC;IAClD,MAAM,KAAK,GAAG,8BAA8B,EAAE,CAAC;IAC/C,MAAM,WAAW,GAAG,yBAAyB,CAAC,KAAK,CAAC,CAAC;IAErD,OAAO;QACL,UAAU,EAAE;YACV,kBAAkB,EAAE,GAAG,EAAE,CAAC,WAAW;SACtC;QACD,MAAM,EAAE,CAAC,KAAK,CAAC;KAChB,CAAC;AACJ,CAAC","sourcesContent":["import type { FlowActorSystem_InitializationFactoryMap } from '@wildo-ai/saas-backend-lib';\nimport type { FlowsActors_Agent } from '@wildo-ai/saas-models';\nimport {\n FlowsActors_Agent_Status,\n FlowsActors_Agent_Skill_Type,\n FlowActorSystem_Kind,\n FlowActorSystem_Status,\n FlowActorSystem_Visibility,\n Actor_Role_Category,\n Actor_ExecutionMode,\n ResourceOperationRiskLevel,\n ResourcePrimaryScope,\n} from '@wildo-ai/saas-models';\nimport type { ActorSystem, Actor } from '@wildo-ai/saas-models';\nimport { LLMProvider_GenerateStructuredInputSchema, LLMProvider_GenerateStructuredOutputSchema, LLMProvider_OperationContext_BaseSchema, LLMProvider_OperationKey, LLMProvider_ReasoningEffort, LLM_Model_Applicability } from '@wildo-ai/external-connectors-models';\nimport type { LLMProvider_OperationDefinitionBase } from '@wildo-ai/external-connectors-models';\n\nconst LABELLING_PROVIDER_REF = 'openai';\n/**\n * The KIND of work, not an id (#439). Labelling is the enum's own example of\n * HIGH_VOLUME_MECHANICAL — the same call thousands of times, checkable output, unit cost dominating\n * quality. Resolves to `gpt-5.6-luna` on `openai` today, which is the model this pinned.\n */\nconst LABELLING_APPLICABILITY = LLM_Model_Applicability.HIGH_VOLUME_MECHANICAL;\n\n/**\n * Build the mandatory labelling actor system.\n *\n * The current labelling execution path is intentionally locked to the OpenAI GPT\n * structured-output route so the companion behaves like a normal backend actor\n * configuration. Provider availability, enablement, and secret resolution are\n * still enforced later by the standard backend runtime path; if OpenAI is not\n * configured there, execution must fail instead of being guessed here.\n */\nfunction buildLabellingTranslationAgent(): FlowsActors_Agent {\n return {\n ref: 'labelling.translation.agent',\n displayName: 'Labelling Translation Agent',\n status: FlowsActors_Agent_Status.ACTIVE,\n config: {\n providerRef: LABELLING_PROVIDER_REF,\n modelApplicability: LABELLING_APPLICABILITY,\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n // No sampling params: the GPT-5.6 family rejects non-default temperature (verified live 2026-07-16).\n // NONE reasoning (Phase 3): labelling is mechanical structured extraction against a fixed\n // schema — deep reasoning adds latency + cost with no quality gain. GPT-5.6 native\n // reasoning_effort; `none` is the lowest supported level (verified live: gpt-5.6 supports\n // none/low/medium/high/xhigh — NOT minimal).\n reasoningEffort: LLMProvider_ReasoningEffort.NONE,\n accessControl: [{\n primaryScope: ResourcePrimaryScope.APPLICATION,\n }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n operationDefinition: {\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n providerRef: LABELLING_PROVIDER_REF,\n inputSchema: LLMProvider_GenerateStructuredInputSchema,\n outputSchema: LLMProvider_GenerateStructuredOutputSchema,\n operationContextSchema: LLMProvider_OperationContext_BaseSchema,\n } satisfies LLMProvider_OperationDefinitionBase,\n promptSpec: {\n role: 'You are a professional UI/UX specialist that is accurately provide labels for SaaS software. your goal is to provide labels based on the provided context and the keys to translate.',\n persona: 'You provide labels with a tone and style that is appropriate for the software and the context, always matching the locale requested in the prompt with a professional tone of voice.',\n skillType: FlowsActors_Agent_Skill_Type.TRANSFORMATION,\n instructions: [],\n },\n createdAt: new Date().toISOString(),\n };\n}\n\nfunction buildLabellingActorSystem(agent: FlowsActors_Agent): ActorSystem {\n const labellingActor: Actor = {\n ref: 'labelling.translator',\n displayName: 'Labelling Translator Actor',\n roleCategory: Actor_Role_Category.OPERATOR,\n executionMode: Actor_ExecutionMode.AGENTIC,\n agentRef: agent.ref,\n };\n\n return {\n ref: 'labelling.system',\n displayName: 'Labelling Management System',\n description: 'Actor system for managing and generating application labels and translations using AI agents',\n kind: FlowActorSystem_Kind.ACTOR,\n status: FlowActorSystem_Status.ACTIVE,\n visibility: FlowActorSystem_Visibility.BACKEND_ONLY,\n actors: [labellingActor],\n config: {\n timeout: 30000,\n accessControl: [{\n primaryScope: ResourcePrimaryScope.APPLICATION,\n }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n createdAt: new Date().toISOString(),\n };\n}\n\nexport interface LabellingActorSystemDefinitions {\n factoryMap: FlowActorSystem_InitializationFactoryMap;\n agents: FlowsActors_Agent[];\n}\n\nexport function buildLabellingActorSystemDefinitions(): LabellingActorSystemDefinitions {\n const agent = buildLabellingTranslationAgent();\n const actorSystem = buildLabellingActorSystem(agent);\n\n return {\n factoryMap: {\n 'labelling.system': () => actorSystem,\n },\n agents: [agent],\n };\n}\n"]}
@@ -0,0 +1,48 @@
1
+ import { type LoggerService } from '@wildo-ai/saas-backend-lib';
2
+ import type { CompanionContext } from '../../core/context/companion-context';
3
+ import { TranslationPlacementCompanionService } from '../../core/introspection/services/translation-placement.companion.service';
4
+ import { EmailSpecContextLoaderCompanionService } from '../../email/services/email-spec-context-loader.companion.service';
5
+ import { type EmailTemplateLabellingPlan } from '../models/email-template-labelling-unit.models';
6
+ /**
7
+ * Plans the translate pipeline's email lane (#1908): one {@link EmailTemplateLabellingUnit} per email
8
+ * template the application's backend owners declare.
9
+ *
10
+ * Discovery is the SAME the email generator and status routes use — the backend
11
+ * `email-template-placement-info` introspection (engine root + every module's email root) resolved to
12
+ * directories by `resolveEmailTemplateArtifactTargets` — so the translation lane cannot see a
13
+ * different set of templates from the one `wildo generate email` writes.
14
+ *
15
+ * Deliberately separate from `LabellingPlannerCompanionService.planAllUnits()`: that plan is what
16
+ * LABELLIZE iterates, and an email's primary words are authored, never labellized.
17
+ */
18
+ export declare class EmailTemplateLabellingUnitsCompanionService {
19
+ private readonly logger;
20
+ private readonly companionContext;
21
+ private readonly translationPlacementService;
22
+ private readonly emailSpecContextLoader;
23
+ constructor(logger: LoggerService, companionContext: CompanionContext, translationPlacementService: TranslationPlacementCompanionService, emailSpecContextLoader: EmailSpecContextLoaderCompanionService);
24
+ /**
25
+ * Every email template the backend owners declare, as translate units.
26
+ *
27
+ * @param templateRefs - restrict to these refs; omit for every template.
28
+ */
29
+ planEmailTemplateUnits(templateRefs?: readonly string[]): Promise<EmailTemplateLabellingPlan>;
30
+ /**
31
+ * The context replayed into an email's translation prompt: what the email is FOR, so terminology and
32
+ * register follow the message rather than a word-by-word reading of fragments.
33
+ *
34
+ * Two sources, both authored and both optional: the system email's `SystemEmailTemplateSpecification`
35
+ * (purpose, tone, per-slot meaning — the same TRANSLATION_CONTEXT the email generator's translator
36
+ * used), and the template's own `description`, which every template declares for diagnostics. Never
37
+ * throws: a missing context degrades the prompt, it does not fail the unit.
38
+ */
39
+ private loadSpecContext;
40
+ }
41
+ /**
42
+ * The `description: '…'` a template declares on its `EmailTemplateDefinition`, read without executing
43
+ * the template. Absent when the template declares none or the file cannot be read.
44
+ */
45
+ export declare function readTemplateDescription(templatePath: string): Promise<string | undefined>;
46
+ /** Pure half of {@link readTemplateDescription}, for tests. */
47
+ export declare function extractTemplateDescription(source: string): string | undefined;
48
+ //# sourceMappingURL=email-template-labelling-units.companion.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-template-labelling-units.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/i18n-labelling/services/email-template-labelling-units.companion.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsB,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEpF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,oCAAoC,EAAE,MAAM,2EAA2E,CAAC;AACjI,OAAO,EAAE,sCAAsC,EAAE,MAAM,kEAAkE,CAAC;AAG1H,OAAO,EAEL,KAAK,0BAA0B,EAEhC,MAAM,gDAAgD,CAAC;AAUxD;;;;;;;;;;;GAWG;AACH,qBACa,2CAA2C;IAEjB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACR,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAEnF,OAAO,CAAC,QAAQ,CAAC,2BAA2B;IAE5C,OAAO,CAAC,QAAQ,CAAC,sBAAsB;gBALa,MAAM,EAAE,aAAa,EACN,gBAAgB,EAAE,gBAAgB,EAEpF,2BAA2B,EAAE,oCAAoC,EAEjE,sBAAsB,EAAE,sCAAsC;IAGjF;;;;OAIG;IACU,sBAAsB,CAAC,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,0BAA0B,CAAC;IAiC1G;;;;;;;;OAQG;YACW,eAAe;CA0B9B;AAED;;;GAGG;AACH,wBAAsB,uBAAuB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAQ/F;AAED,+DAA+D;AAC/D,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAK7E"}