@wildo-ai/dev-companion 1.1.5 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1246) hide show
  1. package/dist/esm/.tsbuildinfo +1 -1
  2. package/dist/esm/__tests__/asset-noop.d.ts.map +1 -1
  3. package/dist/esm/__tests__/asset-noop.js.map +1 -1
  4. package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +1 -1
  5. package/dist/esm/__tests__/chdir-dogfood-app.setup.js.map +1 -1
  6. package/dist/esm/__tests__/internal-test-view.d.ts.map +1 -1
  7. package/dist/esm/__tests__/internal-test-view.js.map +1 -1
  8. package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
  9. package/dist/esm/brand/models/logo-creative-brief.schemas.js.map +1 -1
  10. package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
  11. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js +0 -1
  12. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
  13. package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
  14. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +0 -1
  15. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
  16. package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
  17. package/dist/esm/brand/models/logo-judge.schemas.js.map +1 -1
  18. package/dist/esm/brand/services/brand-accept.companion.service.d.ts +8 -0
  19. package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
  20. package/dist/esm/brand/services/brand-accept.companion.service.js +6 -0
  21. package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
  22. package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts +21 -0
  23. package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -0
  24. package/dist/esm/brand/services/brand-propagation.companion.utils.js +33 -0
  25. package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -0
  26. package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
  27. package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
  28. package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
  29. package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
  30. package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
  31. package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
  32. package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
  33. package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
  34. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -1
  35. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -1
  36. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +69 -1
  37. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  38. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +84 -3
  39. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  40. package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -1
  41. package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -1
  42. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +8 -4
  43. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
  44. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +9 -5
  45. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
  46. package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -1
  47. package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -1
  48. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -1
  49. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js +1 -1
  50. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
  51. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +4 -0
  52. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -1
  53. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +25 -3
  54. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -1
  55. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +159 -11
  56. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
  57. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +424 -41
  58. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
  59. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +333 -60
  60. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  61. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +1029 -185
  62. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  63. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts +8 -2
  64. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -1
  65. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js +8 -2
  66. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -1
  67. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
  68. package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
  69. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts +20 -0
  70. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -0
  71. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js +29 -0
  72. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -0
  73. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +11 -0
  74. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  75. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +60 -7
  76. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  77. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +5 -4
  78. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  79. package/dist/esm/claude-cli/services/research-evidence-store.companion.js +13 -4
  80. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  81. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
  82. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.js.map +1 -1
  83. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
  84. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
  85. package/dist/esm/companion-api/companion-api.schemas.d.ts +193 -2
  86. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  87. package/dist/esm/companion-api/companion-api.schemas.js +20 -1
  88. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  89. package/dist/esm/companion-api/companion-error-guidance.models.d.ts +25 -0
  90. package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -0
  91. package/dist/esm/companion-api/companion-error-guidance.models.js +26 -0
  92. package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -0
  93. package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts +44 -0
  94. package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -0
  95. package/dist/esm/companion-api/controllers/companion-file-route-confinement.js +111 -0
  96. package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -0
  97. package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
  98. package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.js.map +1 -1
  99. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts +6 -14
  100. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
  101. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +6 -14
  102. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
  103. package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts +12 -0
  104. package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -0
  105. package/dist/esm/companion-api/controllers/companion-trace-exemptions.js +20 -0
  106. package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -0
  107. package/dist/esm/companion-api/controllers/companion.controller.d.ts +104 -14
  108. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  109. package/dist/esm/companion-api/controllers/companion.controller.js +516 -122
  110. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  111. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
  112. package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
  113. package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
  114. package/dist/esm/core/catalogs/catalog-context.factory.js.map +1 -1
  115. package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
  116. package/dist/esm/core/catalogs/catalog-context.factory.models.js.map +1 -1
  117. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
  118. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.js.map +1 -1
  119. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
  120. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.js.map +1 -1
  121. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
  122. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.js.map +1 -1
  123. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
  124. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.js.map +1 -1
  125. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
  126. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.js.map +1 -1
  127. package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
  128. package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.js.map +1 -1
  129. package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
  130. package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.js.map +1 -1
  131. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
  132. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.js.map +1 -1
  133. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
  134. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.js.map +1 -1
  135. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
  136. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.js.map +1 -1
  137. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -1
  138. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -1
  139. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
  140. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
  141. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
  142. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.js.map +1 -1
  143. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
  144. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.js.map +1 -1
  145. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
  146. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js +6 -38
  147. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
  148. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -1
  149. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -1
  150. package/dist/esm/core/config/primary-language.companion.utils.d.ts +13 -0
  151. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  152. package/dist/esm/core/config/primary-language.companion.utils.js +19 -0
  153. package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
  154. package/dist/esm/core/context/companion-context.d.ts.map +1 -1
  155. package/dist/esm/core/context/companion-context.js.map +1 -1
  156. package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
  157. package/dist/esm/core/context/companion-package-loaders.companion.js +1 -39
  158. package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
  159. package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -1
  160. package/dist/esm/core/context/draft-family-values.companion.js.map +1 -1
  161. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  162. package/dist/esm/core/inject/models/container.js +4 -0
  163. package/dist/esm/core/inject/models/container.js.map +1 -1
  164. package/dist/esm/core/inject/models/service-types.d.ts +4 -0
  165. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  166. package/dist/esm/core/inject/models/service-types.js +4 -0
  167. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  168. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  169. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js +16 -0
  170. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
  171. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts +1 -1
  172. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  173. package/dist/esm/core/introspection/models/companion-introspection.models.js +6 -0
  174. package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
  175. package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts +41 -0
  176. package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -0
  177. package/dist/esm/core/introspection/resources/application-secrets.companion.js +155 -0
  178. package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -0
  179. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts +76 -0
  180. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -0
  181. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js +197 -0
  182. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -0
  183. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts +47 -0
  184. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -0
  185. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +199 -0
  186. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -0
  187. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
  188. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
  189. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +42 -0
  190. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  191. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +173 -22
  192. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  193. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts +78 -90
  194. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  195. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +288 -25
  196. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  197. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts +22 -36
  198. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
  199. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js +49 -13
  200. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
  201. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts +1 -1
  202. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  203. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js +10 -15
  204. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
  205. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
  206. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.js.map +1 -1
  207. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  208. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  209. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
  210. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
  211. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  212. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
  213. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
  214. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -1
  215. package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
  216. package/dist/esm/core/introspection/services/translation-placement.companion.service.js.map +1 -1
  217. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -1
  218. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -1
  219. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +2 -0
  220. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
  221. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
  222. package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
  223. package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
  224. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts +4 -0
  225. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
  226. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.js.map +1 -1
  227. package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
  228. package/dist/esm/core/introspection/subprocess/asset-noop-register.js.map +1 -1
  229. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
  230. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.js.map +1 -1
  231. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
  232. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.js.map +1 -1
  233. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  234. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +77 -9
  235. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  236. package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
  237. package/dist/esm/core/introspection/subprocess/companion-introspection-child.js.map +1 -1
  238. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
  239. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.js.map +1 -1
  240. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts +45 -3
  241. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
  242. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js +8 -1
  243. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
  244. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
  245. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.js.map +1 -1
  246. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -1
  247. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -1
  248. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
  249. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js.map +1 -1
  250. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
  251. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
  252. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts +3 -2
  253. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
  254. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js +8 -3
  255. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
  256. package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
  257. package/dist/esm/core/introspection/subprocess/market-context-block.builder.js.map +1 -1
  258. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
  259. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js.map +1 -1
  260. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +30 -1
  261. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
  262. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +128 -20
  263. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
  264. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -1
  265. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -1
  266. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts +13 -0
  267. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  268. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +21 -17
  269. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
  270. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -1
  271. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -1
  272. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -1
  273. package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -1
  274. package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -1
  275. package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -1
  276. package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
  277. package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
  278. package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
  279. package/dist/esm/core/lock/wildo-saas-lock.models.js.map +1 -1
  280. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
  281. package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
  282. package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -1
  283. package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -1
  284. package/dist/esm/core/runtime/companion-endpoint-record.d.ts +8 -0
  285. package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -0
  286. package/dist/esm/core/runtime/companion-endpoint-record.js +23 -0
  287. package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -0
  288. package/dist/esm/core/runtime/companion-env-file.d.ts +30 -0
  289. package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -0
  290. package/dist/esm/core/runtime/companion-env-file.js +53 -0
  291. package/dist/esm/core/runtime/companion-env-file.js.map +1 -0
  292. package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
  293. package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
  294. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +5 -0
  295. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
  296. package/dist/esm/core/runtime/dev-compile-quiet.companion.js +11 -0
  297. package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
  298. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts +56 -0
  299. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -0
  300. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js +97 -0
  301. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -0
  302. package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
  303. package/dist/esm/core/runtime/models/companion-runtime.models.js.map +1 -1
  304. package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -1
  305. package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -1
  306. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +43 -3
  307. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  308. package/dist/esm/core/runtime/services/start-companion-application.service.js +127 -22
  309. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  310. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
  311. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.js.map +1 -1
  312. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts +11 -1
  313. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  314. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +42 -19
  315. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  316. package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
  317. package/dist/esm/core/runtime/utils/companion-workbench-topology.js.map +1 -1
  318. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
  319. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.js.map +1 -1
  320. package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
  321. package/dist/esm/core/specifications/chart-view-specification-context.factory.js.map +1 -1
  322. package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
  323. package/dist/esm/core/specifications/composite-view-specification-context.factory.js.map +1 -1
  324. package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
  325. package/dist/esm/core/specifications/cross-registry-rendering.shared.js.map +1 -1
  326. package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
  327. package/dist/esm/core/specifications/execution-view-specification-context.factory.js.map +1 -1
  328. package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
  329. package/dist/esm/core/specifications/feature-specification-context.factory.js.map +1 -1
  330. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
  331. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.js.map +1 -1
  332. package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
  333. package/dist/esm/core/specifications/frontend-component-specification-context.factory.js.map +1 -1
  334. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
  335. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.js.map +1 -1
  336. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
  337. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.js.map +1 -1
  338. package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
  339. package/dist/esm/core/specifications/milestone-specification-context.factory.js.map +1 -1
  340. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
  341. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.js.map +1 -1
  342. package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
  343. package/dist/esm/core/specifications/onboarding-element-rendering.shared.js.map +1 -1
  344. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
  345. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.js.map +1 -1
  346. package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
  347. package/dist/esm/core/specifications/product-specification-context.factory.js.map +1 -1
  348. package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
  349. package/dist/esm/core/specifications/resource-specification-context.factory.js +10 -1
  350. package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
  351. package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
  352. package/dist/esm/core/specifications/role-specification-context.factory.js.map +1 -1
  353. package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
  354. package/dist/esm/core/specifications/specification-context-factory.js.map +1 -1
  355. package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
  356. package/dist/esm/core/specifications/specification-context-factory.models.js.map +1 -1
  357. package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
  358. package/dist/esm/core/specifications/specification-context-factory.shared.js.map +1 -1
  359. package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
  360. package/dist/esm/core/specifications/system-email-template-specification-context.factory.js.map +1 -1
  361. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
  362. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.js.map +1 -1
  363. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
  364. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.js.map +1 -1
  365. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
  366. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.js.map +1 -1
  367. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
  368. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.js.map +1 -1
  369. package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
  370. package/dist/esm/core/specifications/templates/feature/feature-all-information.template.js.map +1 -1
  371. package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
  372. package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.js.map +1 -1
  373. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
  374. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.js.map +1 -1
  375. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
  376. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.js.map +1 -1
  377. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
  378. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.js.map +1 -1
  379. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
  380. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.js.map +1 -1
  381. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
  382. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.js.map +1 -1
  383. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
  384. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.js.map +1 -1
  385. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
  386. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.js.map +1 -1
  387. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
  388. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.js.map +1 -1
  389. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
  390. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.js.map +1 -1
  391. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
  392. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.js.map +1 -1
  393. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
  394. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.js.map +1 -1
  395. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
  396. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.js.map +1 -1
  397. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
  398. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.js.map +1 -1
  399. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
  400. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.js.map +1 -1
  401. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
  402. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.js.map +1 -1
  403. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
  404. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.js.map +1 -1
  405. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
  406. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.js.map +1 -1
  407. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
  408. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.js.map +1 -1
  409. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
  410. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.js.map +1 -1
  411. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
  412. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.js.map +1 -1
  413. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
  414. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.js.map +1 -1
  415. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
  416. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.js.map +1 -1
  417. package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
  418. package/dist/esm/core/specifications/templates/product/product-all-information.template.js.map +1 -1
  419. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
  420. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.js.map +1 -1
  421. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
  422. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.js.map +1 -1
  423. package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
  424. package/dist/esm/core/specifications/templates/product/product-translation-context.template.js.map +1 -1
  425. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
  426. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.js.map +1 -1
  427. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
  428. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.js.map +1 -1
  429. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
  430. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.js.map +1 -1
  431. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
  432. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.js.map +1 -1
  433. package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
  434. package/dist/esm/core/specifications/templates/role/role-all-information.template.js.map +1 -1
  435. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
  436. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.js.map +1 -1
  437. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
  438. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.js.map +1 -1
  439. package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
  440. package/dist/esm/core/specifications/templates/role/role-translation-context.template.js.map +1 -1
  441. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
  442. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.js.map +1 -1
  443. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
  444. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.js.map +1 -1
  445. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
  446. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.js.map +1 -1
  447. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
  448. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.js.map +1 -1
  449. package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
  450. package/dist/esm/core/specifications/validate-resource-field-completeness.js.map +1 -1
  451. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
  452. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
  453. package/dist/esm/core/traceability/companion-traceability.models.d.ts +1 -7
  454. package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
  455. package/dist/esm/core/traceability/companion-traceability.models.js +3 -5
  456. package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
  457. package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
  458. package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
  459. package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
  460. package/dist/esm/core/utils/atomic-write.utils.js.map +1 -1
  461. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -1
  462. package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -1
  463. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
  464. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +15 -14
  465. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
  466. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts +0 -23
  467. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
  468. package/dist/esm/creation-conversation/creation-conversation.function-tools.js +251 -50
  469. package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
  470. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  471. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +0 -2
  472. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  473. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
  474. package/dist/esm/deliberations/services/deliberation.companion.service.js +3 -2
  475. package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
  476. package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
  477. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
  478. package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
  479. package/dist/esm/deliberations/utils/load-committed-expert-agents.js.map +1 -1
  480. package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
  481. package/dist/esm/email/models/email-template.actors-system.definitions.js +0 -1
  482. package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
  483. package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
  484. package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
  485. package/dist/esm/email/services/email-template.companion.service.d.ts +5 -3
  486. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  487. package/dist/esm/email/services/email-template.companion.service.js +53 -255
  488. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  489. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts +12 -0
  490. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
  491. package/dist/esm/email/utils/email-labels-file-source.utils.js +62 -3
  492. package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
  493. package/dist/esm/email/utils/email-labels-tree.utils.d.ts +52 -0
  494. package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -0
  495. package/dist/esm/email/utils/email-labels-tree.utils.js +261 -0
  496. package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -0
  497. package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
  498. package/dist/esm/email/utils/email-template-fs-discovery.utils.js.map +1 -1
  499. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts +2 -0
  500. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -1
  501. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js +21 -1
  502. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -1
  503. package/dist/esm/executions/services/companion-executions.companion.service.d.ts +18 -1
  504. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  505. package/dist/esm/executions/services/companion-executions.companion.service.js +187 -46
  506. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  507. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  508. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +0 -1
  509. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  510. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  511. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +0 -1
  512. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  513. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
  514. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.js.map +1 -1
  515. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  516. package/dist/esm/expert-personas/services/expert-persona.companion.service.js +10 -0
  517. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  518. package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -1
  519. package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -1
  520. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
  521. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js.map +1 -1
  522. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
  523. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js.map +1 -1
  524. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
  525. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js.map +1 -1
  526. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
  527. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.js.map +1 -1
  528. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
  529. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.js.map +1 -1
  530. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts +1 -8
  531. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
  532. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js +2 -9
  533. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
  534. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
  535. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js.map +1 -1
  536. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
  537. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js.map +1 -1
  538. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  539. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js.map +1 -1
  540. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
  541. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js.map +1 -1
  542. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
  543. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.js.map +1 -1
  544. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts +2 -0
  545. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
  546. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js +3 -1
  547. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
  548. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
  549. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
  550. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts +32 -0
  551. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -0
  552. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js +32 -0
  553. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -0
  554. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts +0 -1
  555. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
  556. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js +0 -1
  557. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
  558. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts +0 -7
  559. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
  560. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js +0 -7
  561. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
  562. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts +30 -4
  563. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -1
  564. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js +31 -5
  565. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -1
  566. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -1
  567. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -1
  568. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -1
  569. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -1
  570. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
  571. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js.map +1 -1
  572. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
  573. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js.map +1 -1
  574. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts +0 -2
  575. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
  576. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js +0 -2
  577. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
  578. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts +4 -0
  579. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
  580. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js +5 -1
  581. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
  582. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
  583. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js.map +1 -1
  584. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts +1 -15
  585. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
  586. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js +1 -15
  587. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
  588. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
  589. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js.map +1 -1
  590. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -1
  591. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -1
  592. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
  593. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js.map +1 -1
  594. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
  595. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js.map +1 -1
  596. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
  597. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js.map +1 -1
  598. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
  599. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js.map +1 -1
  600. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
  601. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js.map +1 -1
  602. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
  603. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.js.map +1 -1
  604. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
  605. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js.map +1 -1
  606. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts +0 -3
  607. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
  608. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js +0 -3
  609. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
  610. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts +49 -16
  611. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  612. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js +49 -16
  613. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
  614. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
  615. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js.map +1 -1
  616. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
  617. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js.map +1 -1
  618. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
  619. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.js.map +1 -1
  620. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
  621. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.js.map +1 -1
  622. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
  623. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js.map +1 -1
  624. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
  625. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js.map +1 -1
  626. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
  627. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.js.map +1 -1
  628. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
  629. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js.map +1 -1
  630. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -1
  631. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -1
  632. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
  633. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js.map +1 -1
  634. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
  635. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js.map +1 -1
  636. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
  637. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.js.map +1 -1
  638. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
  639. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.js.map +1 -1
  640. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
  641. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.js.map +1 -1
  642. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
  643. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js.map +1 -1
  644. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
  645. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js.map +1 -1
  646. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
  647. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.js.map +1 -1
  648. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
  649. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.js.map +1 -1
  650. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
  651. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.js.map +1 -1
  652. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts +0 -5
  653. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
  654. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js +0 -5
  655. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
  656. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
  657. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js.map +1 -1
  658. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
  659. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js.map +1 -1
  660. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
  661. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js.map +1 -1
  662. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
  663. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js.map +1 -1
  664. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts +3 -0
  665. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
  666. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +4 -1
  667. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
  668. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
  669. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js.map +1 -1
  670. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts +7 -1
  671. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
  672. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js +8 -2
  673. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
  674. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
  675. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js.map +1 -1
  676. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts +1 -0
  677. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
  678. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js +2 -1
  679. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
  680. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
  681. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.js.map +1 -1
  682. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
  683. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.js.map +1 -1
  684. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
  685. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.js.map +1 -1
  686. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
  687. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.js.map +1 -1
  688. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
  689. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js.map +1 -1
  690. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
  691. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js.map +1 -1
  692. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
  693. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
  694. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -1
  695. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -1
  696. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
  697. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.js.map +1 -1
  698. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -1
  699. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -1
  700. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
  701. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js.map +1 -1
  702. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
  703. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.js.map +1 -1
  704. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
  705. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js.map +1 -1
  706. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
  707. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.js.map +1 -1
  708. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts +1 -0
  709. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
  710. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js +2 -1
  711. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
  712. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
  713. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js.map +1 -1
  714. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
  715. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js.map +1 -1
  716. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
  717. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.js.map +1 -1
  718. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
  719. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js.map +1 -1
  720. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
  721. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.js.map +1 -1
  722. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
  723. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.js.map +1 -1
  724. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts +12 -0
  725. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -0
  726. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js +12 -0
  727. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -0
  728. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
  729. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js.map +1 -1
  730. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
  731. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js.map +1 -1
  732. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
  733. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js.map +1 -1
  734. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
  735. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js.map +1 -1
  736. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
  737. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js.map +1 -1
  738. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -1
  739. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -1
  740. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
  741. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js.map +1 -1
  742. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
  743. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.js.map +1 -1
  744. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
  745. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js.map +1 -1
  746. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
  747. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js.map +1 -1
  748. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts +1 -0
  749. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
  750. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js +2 -1
  751. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
  752. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts +10 -0
  753. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -1
  754. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js +11 -1
  755. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -1
  756. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
  757. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.js.map +1 -1
  758. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
  759. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js.map +1 -1
  760. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts +8 -0
  761. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
  762. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js +9 -1
  763. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
  764. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
  765. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.js.map +1 -1
  766. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts +3 -0
  767. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
  768. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js +4 -1
  769. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
  770. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
  771. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js.map +1 -1
  772. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
  773. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.js.map +1 -1
  774. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
  775. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.js.map +1 -1
  776. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
  777. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.js.map +1 -1
  778. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
  779. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js.map +1 -1
  780. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
  781. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.js.map +1 -1
  782. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
  783. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.js.map +1 -1
  784. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -1
  785. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -1
  786. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -1
  787. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -1
  788. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
  789. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.js.map +1 -1
  790. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
  791. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.js.map +1 -1
  792. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  793. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js.map +1 -1
  794. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -1
  795. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -1
  796. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
  797. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js.map +1 -1
  798. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
  799. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js.map +1 -1
  800. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -1
  801. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -1
  802. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
  803. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js.map +1 -1
  804. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
  805. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
  806. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
  807. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js.map +1 -1
  808. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
  809. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js.map +1 -1
  810. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
  811. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js.map +1 -1
  812. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
  813. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js.map +1 -1
  814. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -1
  815. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -1
  816. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
  817. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
  818. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
  819. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
  820. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
  821. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js.map +1 -1
  822. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
  823. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js.map +1 -1
  824. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
  825. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js.map +1 -1
  826. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
  827. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js.map +1 -1
  828. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
  829. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js.map +1 -1
  830. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
  831. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js.map +1 -1
  832. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
  833. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js.map +1 -1
  834. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
  835. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js.map +1 -1
  836. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
  837. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js.map +1 -1
  838. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
  839. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
  840. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
  841. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
  842. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +2 -1
  843. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
  844. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +3 -2
  845. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
  846. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts +6 -0
  847. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
  848. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js +7 -1
  849. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
  850. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts +1 -0
  851. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
  852. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js +2 -1
  853. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
  854. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
  855. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.js.map +1 -1
  856. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
  857. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
  858. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
  859. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
  860. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
  861. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js.map +1 -1
  862. package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
  863. package/dist/esm/i18n/components/guidance_announcement.en.js.map +1 -1
  864. package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
  865. package/dist/esm/i18n/components/guidance_banner.en.js.map +1 -1
  866. package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
  867. package/dist/esm/i18n/components/guidance_card.en.js.map +1 -1
  868. package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
  869. package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
  870. package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
  871. package/dist/esm/i18n/components/guidance_checklist_item.en.js.map +1 -1
  872. package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
  873. package/dist/esm/i18n/components/guidance_modal.en.js.map +1 -1
  874. package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
  875. package/dist/esm/i18n/components/guidance_onboarding_view.en.js.map +1 -1
  876. package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
  877. package/dist/esm/i18n/components/guidance_survey.en.js.map +1 -1
  878. package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
  879. package/dist/esm/i18n/components/guidance_tooltip.en.js.map +1 -1
  880. package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
  881. package/dist/esm/i18n/components/guidance_tour.en.js.map +1 -1
  882. package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
  883. package/dist/esm/i18n/components/progression_achievement_badge.en.js.map +1 -1
  884. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts +0 -2
  885. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
  886. package/dist/esm/i18n/components/progression_milestone_tracker.en.js +0 -2
  887. package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
  888. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts +1 -0
  889. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
  890. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +123 -19
  891. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
  892. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -1
  893. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js +12 -0
  894. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
  895. package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
  896. package/dist/esm/i18n/composite_views/app.domain-model.en.js.map +1 -1
  897. package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts +25 -0
  898. package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -0
  899. package/dist/esm/i18n/errors_guidance/errors-guidance.en.js +26 -0
  900. package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -0
  901. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts +26 -3
  902. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
  903. package/dist/esm/i18n/errors_messages/errors-messages.en.js +25 -3
  904. package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
  905. package/dist/esm/i18n/index.d.ts +10 -8
  906. package/dist/esm/i18n/index.d.ts.map +1 -1
  907. package/dist/esm/i18n/index.js +10 -8
  908. package/dist/esm/i18n/index.js.map +1 -1
  909. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +10 -0
  910. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
  911. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +2 -0
  912. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
  913. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
  914. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
  915. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
  916. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
  917. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts +97 -0
  918. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -0
  919. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js +60 -0
  920. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -0
  921. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
  922. package/dist/esm/i18n/resources/workbenchAspects.en.js +6 -0
  923. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
  924. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -1
  925. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -1
  926. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts +5 -0
  927. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -1
  928. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js +1 -0
  929. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -1
  930. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
  931. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
  932. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts +24 -0
  933. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -1
  934. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js +8 -0
  935. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -1
  936. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -1
  937. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -1
  938. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -1
  939. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -1
  940. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
  941. package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
  942. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +30 -0
  943. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
  944. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +9 -0
  945. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
  946. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts +17 -4
  947. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
  948. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js +32 -4
  949. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -1
  950. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -1
  951. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -1
  952. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts +8 -2
  953. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
  954. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js +6 -2
  955. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
  956. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts +18 -7
  957. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
  958. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js +17 -7
  959. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
  960. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts +28 -3
  961. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
  962. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js +13 -3
  963. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
  964. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts +3 -2
  965. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
  966. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js +8 -2
  967. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
  968. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +118 -8
  969. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  970. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +42 -16
  971. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  972. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
  973. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
  974. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts +12 -2
  975. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
  976. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js +16 -2
  977. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
  978. package/dist/esm/i18n/system_enums/application-creation.en.d.ts +10 -0
  979. package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
  980. package/dist/esm/i18n/system_enums/application-creation.en.js +11 -0
  981. package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
  982. package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -1
  983. package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -1
  984. package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -1
  985. package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -1
  986. package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
  987. package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
  988. package/dist/esm/i18n/system_enums/processor-register.en.d.ts +6 -0
  989. package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -1
  990. package/dist/esm/i18n/system_enums/processor-register.en.js +6 -0
  991. package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
  992. package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -1
  993. package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -1
  994. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
  995. package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
  996. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
  997. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
  998. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +4 -1
  999. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
  1000. package/dist/esm/i18n/system_enums/workbench-dossier.en.js +5 -1
  1001. package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
  1002. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -1
  1003. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -1
  1004. package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts +46 -0
  1005. package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -0
  1006. package/dist/esm/i18n/system_enums/workbench-secrets.en.js +46 -0
  1007. package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -0
  1008. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts +8 -0
  1009. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -1
  1010. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js +13 -0
  1011. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -1
  1012. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts +61 -0
  1013. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -0
  1014. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js +22 -0
  1015. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -0
  1016. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +105 -24
  1017. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
  1018. package/dist/esm/i18n-labelling/models/labelling-unit.models.js +55 -24
  1019. package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
  1020. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
  1021. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js +0 -2
  1022. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
  1023. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
  1024. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.js.map +1 -1
  1025. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts +48 -0
  1026. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -0
  1027. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js +145 -0
  1028. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -0
  1029. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +70 -18
  1030. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  1031. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +330 -113
  1032. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  1033. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts +45 -0
  1034. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
  1035. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js +208 -6
  1036. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
  1037. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +11 -2
  1038. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  1039. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +101 -18
  1040. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  1041. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts +64 -1
  1042. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  1043. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +393 -70
  1044. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  1045. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -1
  1046. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -1
  1047. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +9 -5
  1048. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
  1049. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
  1050. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts +54 -0
  1051. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -0
  1052. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js +74 -0
  1053. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -0
  1054. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts +3 -3
  1055. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
  1056. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
  1057. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
  1058. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js.map +1 -1
  1059. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts +24 -0
  1060. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -0
  1061. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js +34 -0
  1062. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -0
  1063. package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
  1064. package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
  1065. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -1
  1066. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -1
  1067. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
  1068. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js +5 -1
  1069. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
  1070. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
  1071. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
  1072. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts +76 -0
  1073. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -0
  1074. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js +110 -0
  1075. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -0
  1076. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts +17 -0
  1077. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -0
  1078. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js +23 -0
  1079. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -0
  1080. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
  1081. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.js.map +1 -1
  1082. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +36 -3
  1083. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
  1084. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +77 -5
  1085. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
  1086. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
  1087. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
  1088. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts +38 -0
  1089. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -0
  1090. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js +66 -0
  1091. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -0
  1092. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
  1093. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.js.map +1 -1
  1094. package/dist/esm/index.d.ts.map +1 -1
  1095. package/dist/esm/index.js +9 -3
  1096. package/dist/esm/index.js.map +1 -1
  1097. package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
  1098. package/dist/esm/market/services/market-generation.companion.service.js.map +1 -1
  1099. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -1
  1100. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js +0 -1
  1101. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -1
  1102. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  1103. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +1 -3
  1104. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  1105. package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts +11 -0
  1106. package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -0
  1107. package/dist/esm/meta-workflows/models/application-line-catalog.models.js +17 -0
  1108. package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -0
  1109. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  1110. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js +0 -1
  1111. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  1112. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
  1113. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js +1 -1
  1114. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
  1115. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -1
  1116. package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -1
  1117. package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -1
  1118. package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -1
  1119. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts +14 -0
  1120. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -1
  1121. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js +18 -0
  1122. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
  1123. package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts +14 -0
  1124. package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -0
  1125. package/dist/esm/meta-workflows/models/human-decision-settler.models.js +18 -0
  1126. package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -0
  1127. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +31 -23
  1128. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  1129. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +36 -5
  1130. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
  1131. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
  1132. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js +1 -3
  1133. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
  1134. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +19 -0
  1135. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
  1136. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +38 -6
  1137. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
  1138. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +48 -3
  1139. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
  1140. package/dist/esm/meta-workflows/models/playbook-run-record.models.js +61 -8
  1141. package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
  1142. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -1
  1143. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -1
  1144. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
  1145. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +1 -1
  1146. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +15 -1
  1147. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -1
  1148. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +50 -5
  1149. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -1
  1150. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +52 -9
  1151. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  1152. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +131 -59
  1153. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  1154. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts +19 -0
  1155. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -0
  1156. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js +36 -0
  1157. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -0
  1158. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +9 -0
  1159. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  1160. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +41 -17
  1161. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  1162. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +42 -2
  1163. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  1164. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +121 -4
  1165. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  1166. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts +32 -0
  1167. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -0
  1168. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +161 -0
  1169. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -0
  1170. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -1
  1171. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -1
  1172. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts +2 -0
  1173. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -1
  1174. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js +1 -0
  1175. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
  1176. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts +3 -2
  1177. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
  1178. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +12 -3
  1179. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
  1180. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +74 -1
  1181. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
  1182. package/dist/esm/meta-workflows/services/dossier.companion.service.js +227 -30
  1183. package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
  1184. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts.map +1 -1
  1185. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js.map +1 -1
  1186. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
  1187. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js.map +1 -1
  1188. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map +1 -1
  1189. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map +1 -1
  1190. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +29 -2
  1191. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  1192. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +68 -5
  1193. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  1194. package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts +40 -0
  1195. package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -0
  1196. package/dist/esm/meta-workflows/services/governed-document-texts.companion.js +91 -0
  1197. package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -0
  1198. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts +25 -0
  1199. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -0
  1200. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js +40 -0
  1201. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -0
  1202. package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -1
  1203. package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -1
  1204. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
  1205. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.js.map +1 -1
  1206. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts +90 -0
  1207. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -0
  1208. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +307 -0
  1209. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -0
  1210. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +29 -0
  1211. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  1212. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +44 -4
  1213. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  1214. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +360 -47
  1215. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  1216. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +1424 -246
  1217. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  1218. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -1
  1219. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -1
  1220. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -1
  1221. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -1
  1222. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -1
  1223. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -1
  1224. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
  1225. package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
  1226. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
  1227. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
  1228. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
  1229. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.js.map +1 -1
  1230. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
  1231. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.js.map +1 -1
  1232. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
  1233. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
  1234. package/package.json +17 -17
  1235. package/dist/esm/__time-gov.probe.d.mts +0 -0
  1236. package/dist/esm/__time-gov.probe.d.mts.map +0 -0
  1237. package/dist/esm/__time-gov.probe.mjs.map +0 -0
  1238. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts +0 -0
  1239. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts.map +0 -0
  1240. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.js.map +0 -0
  1241. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts +0 -0
  1242. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +0 -0
  1243. package/dist/esm/i18n/composite_views/app.creation-board.en.js.map +0 -0
  1244. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts +0 -0
  1245. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts.map +0 -0
  1246. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.js.map +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"workspace-element-index.companion.js","sourceRoot":"","sources":["../../../../../src/core/introspection/workspace-element-index.companion.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,mFAAmF;AACnF,MAAM,CAAN,IAAY,yBAOX;AAPD,WAAY,yBAAyB;IACnC,mGAAmG;IACnG,wCAAW,CAAA;IACX,8EAA8E;IAC9E,wCAAW,CAAA;IACX,oEAAoE;IACpE,gDAAm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CAAC;QACH,CAAC;QACD,QAAQ,GAAG,IAAI,CAAC;QAChB,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;YAAE,MAAM;IACnC,CAAC;IAED,MAAM,SAAS,GAAG,CAAC,GAAG,OAAO,CAAC;SAC3B,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,oBAAoB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;SACtD,MAAM,CAAC,CAAC,IAAI,EAAiC,EAAE,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC;IACvE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,GAAG,UAAU,CAAC,EAAE,CAAC;AACpG,CAAC","sourcesContent":["import type {\n DomainModelFieldRow,\n DomainModelOperationRow,\n DomainModelProjection,\n DomainModelRelationshipRow,\n DomainModelResourceRow,\n} from './subprocess/application-domain-model.behavior';\n\n/**\n * MAP / GET / RELATED over the application's OWN CODE TRUTH (#1437).\n *\n * The third knowledge slice of epic #1415, beside decided families (what the creation run decided,\n * #1416) and framework knowledge (the reusable how). Workspace truth is what the application's code\n * CURRENTLY IS — its resources, fields, relationships and operations — and every build task depends\n * on it.\n *\n * ## Why an index and not a filter on the derivation\n *\n * It could only be read whole. Of the pull door's behaviors, `resources-registry` answers 43 KB and\n * `resource-specifications` **227 KB** on the dogfood application, and no filter on the door reaches\n * a module, a resource, a field, a relationship or an operation. The one existing slice is\n * hand-coded — `buildContextSources` cuts one module's field names out of the registry, 8% of it,\n * with no relationships, operations or specifications, and `resourceRef` does not narrow it further.\n *\n * The narrowing is deliberately NOT a behavior input. `application-domain-model` costs ~35 s (it\n * materializes every factory and the specification overlay), and the introspection cache keys on\n * the behavior's INPUT — so a per-resource filter pushed into the derivation would make every\n * distinct question a fresh 35-second subprocess. One derivation, cached, sliced many times is the\n * only shape that is both cheap and consistent: two slices of one projection cannot disagree about\n * an application that is being edited underneath them.\n *\n * ## Pure, and that is what makes it testable\n *\n * Nothing here reads a file, spawns a child or knows what a companion is. It takes the projection\n * and answers three questions about it — the same separation `decided-aspect-index` has on the\n * decided side, and for the same reason: the interesting failures are in the slicing, not in the\n * plumbing that fetches the input.\n */\n\n/** What a caller asks for. One verb per question, named as the caller names it. */\nexport enum WorkspaceElementOperation {\n /** Every element of a kind, as `ref — one line`. The cheapest answer, and the one that orients. */\n MAP = 'map',\n /** One resource in full: its fields, its relationships and its operations. */\n GET = 'get',\n /** What a resource is CONNECTED to, following its relationships. */\n RELATED = 'related',\n}\n\n/** The element kinds a MAP can enumerate. */\nexport enum WorkspaceElementKind {\n RESOURCE = 'resource',\n FIELD = 'field',\n OPERATION = 'operation',\n RELATIONSHIP = 'relationship',\n}\n\n/** One MAP line: how to address the element, and one line saying what it is. */\nexport interface WorkspaceElementMapLine {\n readonly kind: WorkspaceElementKind;\n readonly ref: string;\n readonly label: string;\n /** The resource this element belongs to. Its own `resourceType` for a resource. */\n readonly resourceType: string;\n}\n\n/** What a relationship looks like once it is addressable. */\nexport interface WorkspaceRelationshipView {\n readonly ref: string;\n readonly from: string;\n readonly to: string;\n readonly nature: string;\n readonly cardinality: string;\n readonly foreignKeyField: string | null;\n /** Which side's rows CARRY the key — the direction an arrow points. */\n readonly foreignKeyHolderResourceType: string;\n readonly jointResourceType: string | null;\n readonly isDisabled: boolean;\n}\n\n/** One resource, in full. */\nexport interface WorkspaceResourceView {\n readonly ref: string;\n readonly resourceType: string;\n readonly moduleId: string | null;\n readonly purpose: string | null;\n readonly fields: readonly { readonly ref: string; readonly fieldName: string; readonly meaning: string | null }[];\n readonly operations: readonly { readonly ref: string; readonly operationIdentifier: string; readonly variantType: string | null; readonly variantKey: string | null; readonly purpose: string | null }[];\n readonly relationships: readonly WorkspaceRelationshipView[];\n}\n\n/**\n * The separator between a resource and what it owns.\n *\n * Three distinct ones rather than one, because a ref should say WHAT IT ADDRESSES without a kind\n * beside it: `todos.dueDate` is a field, `todos#read` is an operation, `todos~users~assignedToUserId`\n * is an edge. A single separator would make `todos.read` ambiguous between a field and an operation\n * on a resource that has both, and a reader resolving that ambiguity by trying one and then the\n * other is a reader the ref failed.\n */\nconst FIELD_SEPARATOR = '.';\nconst OPERATION_SEPARATOR = '#';\nconst RELATIONSHIP_SEPARATOR = '~';\n\n/** `todos.dueDate` */\nexport function workspaceFieldRef(resourceType: string, fieldName: string): string {\n return `${resourceType}${FIELD_SEPARATOR}${fieldName}`;\n}\n\n/**\n * `todos#read`, `todos#read@api_call`, `todos#read@api_call/admin`.\n *\n * The variant halves are appended only when they exist, so the common case — a resource's one\n * `read` — is addressed by the name a person would use. They matter: measured across the engine's\n * core map, 133 of 794 operations collide on `identifier × variantType` and are separated only by\n * `variantKey`, so a ref built from the pair alone would address several operations at once.\n */\nexport function workspaceOperationRef(\n resourceType: string,\n operation: Pick<DomainModelOperationRow, 'operationIdentifier' | 'variantType' | 'variantKey'>,\n): string {\n const variant = operation.variantType === null ? '' : `@${operation.variantType}`;\n const key = operation.variantKey === null ? '' : `/${operation.variantKey}`;\n return `${resourceType}${OPERATION_SEPARATOR}${operation.operationIdentifier}${variant}${key}`;\n}\n\n/**\n * A SHORT, readable ref for one relationship — the thing #1437 says relationships do not have.\n *\n * The projection's own `relationshipId` is total and deliberately unreadable: it joins twelve fields\n * with `|` and its docstring says it \"never becomes a URL path parameter\". That is right for an\n * identity a graph de-duplicates on, and useless as something an agent types.\n *\n * So this composes the pair with whatever DISCRIMINATES the edge — the foreign-key field, else the\n * junction resource of a many-to-many, else the nature. Those cover every edge in the dogfood\n * applications. Where two edges still collide, the caller appends an ordinal (see\n * {@link indexWorkspaceElements}), which keeps the ref total without making the common case\n * unreadable.\n *\n * The pair is NOT sorted: `resourceType1`/`resourceType2` carry the declaration's own direction, and\n * `foreignKeyHolderResourceType` beside it says which side holds the key. Sorting the pair would\n * make two edges that differ only in direction produce the same ref.\n */\nexport function workspaceRelationshipRefBase(relationship: DomainModelRelationshipRow): string {\n const discriminator = relationship.foreignKeyField ?? relationship.jointResourceType ?? relationship.nature;\n return [relationship.resourceType1, relationship.resourceType2, discriminator].join(RELATIONSHIP_SEPARATOR);\n}\n\n/** The whole index: every element addressable, and the rows behind each ref. */\nexport interface WorkspaceElementIndex {\n readonly resources: ReadonlyMap<string, DomainModelResourceRow>;\n /** Short relationship ref → the row, and the row's own `relationshipId` for the graph that needs it. */\n readonly relationships: ReadonlyMap<string, DomainModelRelationshipRow>;\n}\n\n/**\n * Index one projection so every element has a ref.\n *\n * Relationship refs are de-collided here rather than at each call site: the same edge rides on BOTH\n * resources it joins, so a ref computed per resource would give one edge two names. The projection's\n * `relationshipId` is what identifies it across those two appearances.\n */\nexport function indexWorkspaceElements(projection: DomainModelProjection): WorkspaceElementIndex {\n const resources = new Map<string, DomainModelResourceRow>();\n for (const resource of projection.domainResources) resources.set(resource.resourceType, resource);\n\n // Deduplicate by the projection's own identity: one edge appears on both endpoints' rows.\n const rowsByIdentity = new Map<string, DomainModelRelationshipRow>();\n for (const resource of projection.domainResources) {\n for (const relationship of resource.relationships) {\n if (!rowsByIdentity.has(relationship.relationshipId)) rowsByIdentity.set(relationship.relationshipId, relationship);\n }\n }\n\n /*\n * Sorted by the full identity before ordinals are assigned, so a colliding pair's suffixes are a\n * function of the edges themselves rather than of the order the projection happened to emit them.\n * Two reads of an unchanged application therefore produce the same refs.\n */\n const relationships = new Map<string, DomainModelRelationshipRow>();\n const seenBase = new Map<string, number>();\n for (const relationship of [...rowsByIdentity.values()].sort((left, right) => left.relationshipId.localeCompare(right.relationshipId))) {\n const base = workspaceRelationshipRefBase(relationship);\n const seen = seenBase.get(base) ?? 0;\n seenBase.set(base, seen + 1);\n relationships.set(seen === 0 ? base : `${base}${RELATIONSHIP_SEPARATOR}${seen + 1}`, relationship);\n }\n return { resources, relationships };\n}\n\n/** The authored `meaning` of a field, when its specification carries one. */\nfunction fieldMeaning(field: DomainModelFieldRow): string | null {\n const meaning = field.params?.['meaning'];\n return typeof meaning === 'string' && meaning.length > 0 ? meaning : null;\n}\n\n/** The authored `purpose` of an operation, when its specification carries one. */\nfunction operationPurpose(operation: DomainModelOperationRow): string | null {\n const purpose = operation.specification?.['purpose'];\n return typeof purpose === 'string' && purpose.length > 0 ? purpose : null;\n}\n\nfunction relationshipView(ref: string, relationship: DomainModelRelationshipRow): WorkspaceRelationshipView {\n return {\n ref,\n from: relationship.resourceType1,\n to: relationship.resourceType2,\n nature: relationship.nature,\n cardinality: `${relationship.cardinality1}-to-${relationship.cardinality2}`,\n foreignKeyField: relationship.foreignKeyField,\n foreignKeyHolderResourceType: relationship.foreignKeyHolderResourceType,\n jointResourceType: relationship.jointResourceType,\n isDisabled: relationship.isDisabled,\n };\n}\n\n/**\n * MAP — every element of the requested kinds as `ref — label`.\n *\n * The label is the AUTHORED prose where there is any: a resource's `purpose`, a field's `meaning`,\n * an operation's `purpose`. Where a specification says nothing, the label states the structural\n * fact instead and says nothing more — an invented sentence would read exactly like an authored one,\n * and the gap is what a reader should see.\n *\n * `resourceTypes` narrows the map to named resources; omitted means every resource, which is what a\n * caller orienting itself asks for and is still two orders of magnitude smaller than the projection.\n */\nexport function mapWorkspaceElements(\n index: WorkspaceElementIndex,\n request: { readonly kinds?: readonly WorkspaceElementKind[]; readonly resourceTypes?: readonly string[] } = {},\n): readonly WorkspaceElementMapLine[] {\n const kinds = new Set(request.kinds ?? [WorkspaceElementKind.RESOURCE]);\n const wanted = request.resourceTypes === undefined ? null : new Set(request.resourceTypes);\n const lines: WorkspaceElementMapLine[] = [];\n\n for (const resource of index.resources.values()) {\n if (wanted !== null && !wanted.has(resource.resourceType)) continue;\n if (kinds.has(WorkspaceElementKind.RESOURCE)) {\n lines.push({\n kind: WorkspaceElementKind.RESOURCE,\n ref: resource.resourceType,\n resourceType: resource.resourceType,\n label: resource.specification?.purpose\n ?? `${resource.fields.length} field(s), ${resource.operations.length} operation(s)${resource.moduleId === null ? ' — engine resource' : `, module \\`${resource.moduleId}\\``}`,\n });\n }\n if (kinds.has(WorkspaceElementKind.FIELD)) {\n for (const field of resource.fields) {\n lines.push({\n kind: WorkspaceElementKind.FIELD,\n ref: workspaceFieldRef(resource.resourceType, field.fieldName),\n resourceType: resource.resourceType,\n label: fieldMeaning(field) ?? String(field.derived?.['kind'] ?? 'field'),\n });\n }\n }\n if (kinds.has(WorkspaceElementKind.OPERATION)) {\n for (const operation of resource.operations) {\n lines.push({\n kind: WorkspaceElementKind.OPERATION,\n ref: workspaceOperationRef(resource.resourceType, operation),\n resourceType: resource.resourceType,\n label: operationPurpose(operation) ?? `${operation.operationIdentifier}${operation.isUnimplemented ? ' (declared, not implemented)' : ''}`,\n });\n }\n }\n }\n\n if (kinds.has(WorkspaceElementKind.RELATIONSHIP)) {\n for (const [ref, relationship] of index.relationships) {\n // An edge belongs to BOTH its endpoints, so a resource narrowing keeps it when either side matches.\n if (wanted !== null && !wanted.has(relationship.resourceType1) && !wanted.has(relationship.resourceType2)) continue;\n lines.push({\n kind: WorkspaceElementKind.RELATIONSHIP,\n ref,\n resourceType: relationship.resourceType1,\n label: `${relationship.resourceType1} ${relationship.cardinality1}-to-${relationship.cardinality2} ${relationship.resourceType2}`\n + ` (${relationship.nature}${relationship.foreignKeyField ? `, fk \\`${relationship.foreignKeyField}\\` on ${relationship.foreignKeyHolderResourceType}` : ''})`\n + (relationship.isDisabled ? ' — DISABLED' : ''),\n });\n }\n }\n return lines;\n}\n\n/**\n * GET — one resource in full, by ref.\n *\n * An unknown ref answers `undefined` rather than throwing: a caller that named a resource the\n * application does not have needs to be told that, and a refusal one layer up can say so with the\n * map beside it. Inventing an empty resource would be the worse answer — it reads as \"exists and\n * holds nothing\".\n */\nexport function getWorkspaceResource(index: WorkspaceElementIndex, resourceType: string): WorkspaceResourceView | undefined {\n const resource = index.resources.get(resourceType);\n if (resource === undefined) return undefined;\n const refByIdentity = new Map([...index.relationships].map(([ref, relationship]) => [relationship.relationshipId, ref]));\n return {\n ref: resource.resourceType,\n resourceType: resource.resourceType,\n moduleId: resource.moduleId,\n purpose: resource.specification?.purpose ?? null,\n fields: resource.fields.map((field) => ({\n ref: workspaceFieldRef(resource.resourceType, field.fieldName),\n fieldName: field.fieldName,\n meaning: fieldMeaning(field),\n })),\n operations: resource.operations.map((operation) => ({\n ref: workspaceOperationRef(resource.resourceType, operation),\n operationIdentifier: operation.operationIdentifier,\n variantType: operation.variantType,\n variantKey: operation.variantKey,\n purpose: operationPurpose(operation),\n })),\n relationships: resource.relationships.map((relationship) => relationshipView(\n refByIdentity.get(relationship.relationshipId) ?? workspaceRelationshipRefBase(relationship),\n relationship,\n )),\n };\n}\n\n/** What RELATED answers: the edges walked, and the resources they reached. */\nexport interface WorkspaceRelatedResult {\n readonly from: string;\n readonly edges: readonly WorkspaceRelationshipView[];\n readonly resources: readonly WorkspaceResourceView[];\n /** Named but not on record — an edge pointing at a resource the projection does not carry. */\n readonly unresolved: readonly string[];\n}\n\n/**\n * RELATED — what a resource is connected to, following its declared relationships.\n *\n * This is what replaces the coding floor's hand-cut module slice. A build task targets ONE resource,\n * and what it needs is that resource plus the ones its edges reach — which is neither \"the whole\n * registry\" nor \"everything in its module\": a module slice over-supplies the siblings a task never\n * touches and UNDER-supplies the engine resources its own foreign keys point at (`users`,\n * `organizations` — the scope anchors, and the most load-bearing edges a resource has).\n *\n * `hops` defaults to 1. Bounded rather than transitive-by-default because the relationship graph of\n * a real application is nearly connected through the scope anchors: two hops from any resource\n * reaches most of the application, which is the whole-registry answer with extra steps.\n *\n * A DISABLED edge is walked and reported as disabled rather than skipped. It is declared, a reader\n * asking what a resource is connected to should see it, and the view says `isDisabled` so nothing\n * mistakes it for a live one.\n */\nexport function relatedWorkspaceResources(\n index: WorkspaceElementIndex,\n resourceType: string,\n options: { readonly hops?: number } = {},\n): WorkspaceRelatedResult {\n const hops = Math.max(1, Math.trunc(options.hops ?? 1));\n const refByIdentity = new Map([...index.relationships].map(([ref, relationship]) => [relationship.relationshipId, ref]));\n const visited = new Set<string>([resourceType]);\n const edges = new Map<string, WorkspaceRelationshipView>();\n const unresolved = new Set<string>();\n\n let frontier: string[] = [resourceType];\n for (let hop = 0; hop < hops; hop += 1) {\n const next: string[] = [];\n for (const current of frontier) {\n const resource = index.resources.get(current);\n if (resource === undefined) {\n // Only reachable for the SEED: a neighbour is only ever added after its row is found.\n unresolved.add(current);\n continue;\n }\n for (const relationship of resource.relationships) {\n const ref = refByIdentity.get(relationship.relationshipId) ?? workspaceRelationshipRefBase(relationship);\n if (!edges.has(ref)) edges.set(ref, relationshipView(ref, relationship));\n const neighbour = relationship.resourceType1 === current ? relationship.resourceType2 : relationship.resourceType1;\n if (visited.has(neighbour)) continue;\n if (!index.resources.has(neighbour)) {\n unresolved.add(neighbour);\n continue;\n }\n visited.add(neighbour);\n next.push(neighbour);\n }\n }\n frontier = next;\n if (frontier.length === 0) break;\n }\n\n const resources = [...visited]\n .map((reached) => getWorkspaceResource(index, reached))\n .filter((view): view is WorkspaceResourceView => view !== undefined);\n return { from: resourceType, edges: [...edges.values()], resources, unresolved: [...unresolved] };\n}\n"]}
1
+ {"version":3,"file":"workspace-element-index.companion.js","sourceRoot":"","sources":["../../../../src/core/introspection/workspace-element-index.companion.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,mFAAmF;AACnF,MAAM,CAAN,IAAY,yBAOX;AAPD,WAAY,yBAAyB;IACnC,mGAAmG;IACnG,wCAAW,CAAA;IACX,8EAA8E;IAC9E,wCAAW,CAAA;IACX,oEAAoE;IACpE,gDAAmB,CAAA;AACrB,CAAC,EAPW,yBAAyB,KAAzB,yBAAyB,QAOpC;AAED,6CAA6C;AAC7C,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,6CAAqB,CAAA;IACrB,uCAAe,CAAA;IACf,+CAAuB,CAAA;IACvB,qDAA6B,CAAA;AAC/B,CAAC,EALW,oBAAoB,KAApB,oBAAoB,QAK/B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AAC;SACtD,MAAM,CAAC,CAAC,IAAI,EAAiC,EAAE,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC;IACvE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,GAAG,UAAU,CAAC,EAAE,CAAC;AACpG,CAAC","sourcesContent":["import type {\n DomainModelFieldRow,\n DomainModelOperationRow,\n DomainModelProjection,\n DomainModelRelationshipRow,\n DomainModelResourceRow,\n} from './subprocess/application-domain-model.behavior';\n\n/**\n * MAP / GET / RELATED over the application's OWN CODE TRUTH (#1437).\n *\n * The third knowledge slice of epic #1415, beside decided families (what the creation run decided,\n * #1416) and framework knowledge (the reusable how). Workspace truth is what the application's code\n * CURRENTLY IS — its resources, fields, relationships and operations — and every build task depends\n * on it.\n *\n * ## Why an index and not a filter on the derivation\n *\n * It could only be read whole. Of the pull door's behaviors, `resources-registry` answers 43 KB and\n * `resource-specifications` **227 KB** on the dogfood application, and no filter on the door reaches\n * a module, a resource, a field, a relationship or an operation. The one existing slice is\n * hand-coded — `buildContextSources` cuts one module's field names out of the registry, 8% of it,\n * with no relationships, operations or specifications, and `resourceRef` does not narrow it further.\n *\n * The narrowing is deliberately NOT a behavior input. `application-domain-model` costs ~35 s (it\n * materializes every factory and the specification overlay), and the introspection cache keys on\n * the behavior's INPUT — so a per-resource filter pushed into the derivation would make every\n * distinct question a fresh 35-second subprocess. One derivation, cached, sliced many times is the\n * only shape that is both cheap and consistent: two slices of one projection cannot disagree about\n * an application that is being edited underneath them.\n *\n * ## Pure, and that is what makes it testable\n *\n * Nothing here reads a file, spawns a child or knows what a companion is. It takes the projection\n * and answers three questions about it — the same separation `decided-aspect-index` has on the\n * decided side, and for the same reason: the interesting failures are in the slicing, not in the\n * plumbing that fetches the input.\n */\n\n/** What a caller asks for. One verb per question, named as the caller names it. */\nexport enum WorkspaceElementOperation {\n /** Every element of a kind, as `ref — one line`. The cheapest answer, and the one that orients. */\n MAP = 'map',\n /** One resource in full: its fields, its relationships and its operations. */\n GET = 'get',\n /** What a resource is CONNECTED to, following its relationships. */\n RELATED = 'related',\n}\n\n/** The element kinds a MAP can enumerate. */\nexport enum WorkspaceElementKind {\n RESOURCE = 'resource',\n FIELD = 'field',\n OPERATION = 'operation',\n RELATIONSHIP = 'relationship',\n}\n\n/** One MAP line: how to address the element, and one line saying what it is. */\nexport interface WorkspaceElementMapLine {\n readonly kind: WorkspaceElementKind;\n readonly ref: string;\n readonly label: string;\n /** The resource this element belongs to. Its own `resourceType` for a resource. */\n readonly resourceType: string;\n}\n\n/** What a relationship looks like once it is addressable. */\nexport interface WorkspaceRelationshipView {\n readonly ref: string;\n readonly from: string;\n readonly to: string;\n readonly nature: string;\n readonly cardinality: string;\n readonly foreignKeyField: string | null;\n /** Which side's rows CARRY the key — the direction an arrow points. */\n readonly foreignKeyHolderResourceType: string;\n readonly jointResourceType: string | null;\n readonly isDisabled: boolean;\n}\n\n/** One resource, in full. */\nexport interface WorkspaceResourceView {\n readonly ref: string;\n readonly resourceType: string;\n readonly moduleId: string | null;\n readonly purpose: string | null;\n readonly fields: readonly { readonly ref: string; readonly fieldName: string; readonly meaning: string | null }[];\n readonly operations: readonly { readonly ref: string; readonly operationIdentifier: string; readonly variantType: string | null; readonly variantKey: string | null; readonly purpose: string | null }[];\n readonly relationships: readonly WorkspaceRelationshipView[];\n}\n\n/**\n * The separator between a resource and what it owns.\n *\n * Three distinct ones rather than one, because a ref should say WHAT IT ADDRESSES without a kind\n * beside it: `todos.dueDate` is a field, `todos#read` is an operation, `todos~users~assignedToUserId`\n * is an edge. A single separator would make `todos.read` ambiguous between a field and an operation\n * on a resource that has both, and a reader resolving that ambiguity by trying one and then the\n * other is a reader the ref failed.\n */\nconst FIELD_SEPARATOR = '.';\nconst OPERATION_SEPARATOR = '#';\nconst RELATIONSHIP_SEPARATOR = '~';\n\n/** `todos.dueDate` */\nexport function workspaceFieldRef(resourceType: string, fieldName: string): string {\n return `${resourceType}${FIELD_SEPARATOR}${fieldName}`;\n}\n\n/**\n * `todos#read`, `todos#read@api_call`, `todos#read@api_call/admin`.\n *\n * The variant halves are appended only when they exist, so the common case — a resource's one\n * `read` — is addressed by the name a person would use. They matter: measured across the engine's\n * core map, 133 of 794 operations collide on `identifier × variantType` and are separated only by\n * `variantKey`, so a ref built from the pair alone would address several operations at once.\n */\nexport function workspaceOperationRef(\n resourceType: string,\n operation: Pick<DomainModelOperationRow, 'operationIdentifier' | 'variantType' | 'variantKey'>,\n): string {\n const variant = operation.variantType === null ? '' : `@${operation.variantType}`;\n const key = operation.variantKey === null ? '' : `/${operation.variantKey}`;\n return `${resourceType}${OPERATION_SEPARATOR}${operation.operationIdentifier}${variant}${key}`;\n}\n\n/**\n * A SHORT, readable ref for one relationship — the thing #1437 says relationships do not have.\n *\n * The projection's own `relationshipId` is total and deliberately unreadable: it joins twelve fields\n * with `|` and its docstring says it \"never becomes a URL path parameter\". That is right for an\n * identity a graph de-duplicates on, and useless as something an agent types.\n *\n * So this composes the pair with whatever DISCRIMINATES the edge — the foreign-key field, else the\n * junction resource of a many-to-many, else the nature. Those cover every edge in the dogfood\n * applications. Where two edges still collide, the caller appends an ordinal (see\n * {@link indexWorkspaceElements}), which keeps the ref total without making the common case\n * unreadable.\n *\n * The pair is NOT sorted: `resourceType1`/`resourceType2` carry the declaration's own direction, and\n * `foreignKeyHolderResourceType` beside it says which side holds the key. Sorting the pair would\n * make two edges that differ only in direction produce the same ref.\n */\nexport function workspaceRelationshipRefBase(relationship: DomainModelRelationshipRow): string {\n const discriminator = relationship.foreignKeyField ?? relationship.jointResourceType ?? relationship.nature;\n return [relationship.resourceType1, relationship.resourceType2, discriminator].join(RELATIONSHIP_SEPARATOR);\n}\n\n/** The whole index: every element addressable, and the rows behind each ref. */\nexport interface WorkspaceElementIndex {\n readonly resources: ReadonlyMap<string, DomainModelResourceRow>;\n /** Short relationship ref → the row, and the row's own `relationshipId` for the graph that needs it. */\n readonly relationships: ReadonlyMap<string, DomainModelRelationshipRow>;\n}\n\n/**\n * Index one projection so every element has a ref.\n *\n * Relationship refs are de-collided here rather than at each call site: the same edge rides on BOTH\n * resources it joins, so a ref computed per resource would give one edge two names. The projection's\n * `relationshipId` is what identifies it across those two appearances.\n */\nexport function indexWorkspaceElements(projection: DomainModelProjection): WorkspaceElementIndex {\n const resources = new Map<string, DomainModelResourceRow>();\n for (const resource of projection.domainResources) resources.set(resource.resourceType, resource);\n\n // Deduplicate by the projection's own identity: one edge appears on both endpoints' rows.\n const rowsByIdentity = new Map<string, DomainModelRelationshipRow>();\n for (const resource of projection.domainResources) {\n for (const relationship of resource.relationships) {\n if (!rowsByIdentity.has(relationship.relationshipId)) rowsByIdentity.set(relationship.relationshipId, relationship);\n }\n }\n\n /*\n * Sorted by the full identity before ordinals are assigned, so a colliding pair's suffixes are a\n * function of the edges themselves rather than of the order the projection happened to emit them.\n * Two reads of an unchanged application therefore produce the same refs.\n */\n const relationships = new Map<string, DomainModelRelationshipRow>();\n const seenBase = new Map<string, number>();\n for (const relationship of [...rowsByIdentity.values()].sort((left, right) => left.relationshipId.localeCompare(right.relationshipId))) {\n const base = workspaceRelationshipRefBase(relationship);\n const seen = seenBase.get(base) ?? 0;\n seenBase.set(base, seen + 1);\n relationships.set(seen === 0 ? base : `${base}${RELATIONSHIP_SEPARATOR}${seen + 1}`, relationship);\n }\n return { resources, relationships };\n}\n\n/** The authored `meaning` of a field, when its specification carries one. */\nfunction fieldMeaning(field: DomainModelFieldRow): string | null {\n const meaning = field.params?.['meaning'];\n return typeof meaning === 'string' && meaning.length > 0 ? meaning : null;\n}\n\n/** The authored `purpose` of an operation, when its specification carries one. */\nfunction operationPurpose(operation: DomainModelOperationRow): string | null {\n const purpose = operation.specification?.['purpose'];\n return typeof purpose === 'string' && purpose.length > 0 ? purpose : null;\n}\n\nfunction relationshipView(ref: string, relationship: DomainModelRelationshipRow): WorkspaceRelationshipView {\n return {\n ref,\n from: relationship.resourceType1,\n to: relationship.resourceType2,\n nature: relationship.nature,\n cardinality: `${relationship.cardinality1}-to-${relationship.cardinality2}`,\n foreignKeyField: relationship.foreignKeyField,\n foreignKeyHolderResourceType: relationship.foreignKeyHolderResourceType,\n jointResourceType: relationship.jointResourceType,\n isDisabled: relationship.isDisabled,\n };\n}\n\n/**\n * MAP — every element of the requested kinds as `ref — label`.\n *\n * The label is the AUTHORED prose where there is any: a resource's `purpose`, a field's `meaning`,\n * an operation's `purpose`. Where a specification says nothing, the label states the structural\n * fact instead and says nothing more — an invented sentence would read exactly like an authored one,\n * and the gap is what a reader should see.\n *\n * `resourceTypes` narrows the map to named resources; omitted means every resource, which is what a\n * caller orienting itself asks for and is still two orders of magnitude smaller than the projection.\n */\nexport function mapWorkspaceElements(\n index: WorkspaceElementIndex,\n request: { readonly kinds?: readonly WorkspaceElementKind[]; readonly resourceTypes?: readonly string[] } = {},\n): readonly WorkspaceElementMapLine[] {\n const kinds = new Set(request.kinds ?? [WorkspaceElementKind.RESOURCE]);\n const wanted = request.resourceTypes === undefined ? null : new Set(request.resourceTypes);\n const lines: WorkspaceElementMapLine[] = [];\n\n for (const resource of index.resources.values()) {\n if (wanted !== null && !wanted.has(resource.resourceType)) continue;\n if (kinds.has(WorkspaceElementKind.RESOURCE)) {\n lines.push({\n kind: WorkspaceElementKind.RESOURCE,\n ref: resource.resourceType,\n resourceType: resource.resourceType,\n label: resource.specification?.purpose\n ?? `${resource.fields.length} field(s), ${resource.operations.length} operation(s)${resource.moduleId === null ? ' — engine resource' : `, module \\`${resource.moduleId}\\``}`,\n });\n }\n if (kinds.has(WorkspaceElementKind.FIELD)) {\n for (const field of resource.fields) {\n lines.push({\n kind: WorkspaceElementKind.FIELD,\n ref: workspaceFieldRef(resource.resourceType, field.fieldName),\n resourceType: resource.resourceType,\n label: fieldMeaning(field) ?? String(field.derived?.['kind'] ?? 'field'),\n });\n }\n }\n if (kinds.has(WorkspaceElementKind.OPERATION)) {\n for (const operation of resource.operations) {\n lines.push({\n kind: WorkspaceElementKind.OPERATION,\n ref: workspaceOperationRef(resource.resourceType, operation),\n resourceType: resource.resourceType,\n label: operationPurpose(operation) ?? `${operation.operationIdentifier}${operation.isUnimplemented ? ' (declared, not implemented)' : ''}`,\n });\n }\n }\n }\n\n if (kinds.has(WorkspaceElementKind.RELATIONSHIP)) {\n for (const [ref, relationship] of index.relationships) {\n // An edge belongs to BOTH its endpoints, so a resource narrowing keeps it when either side matches.\n if (wanted !== null && !wanted.has(relationship.resourceType1) && !wanted.has(relationship.resourceType2)) continue;\n lines.push({\n kind: WorkspaceElementKind.RELATIONSHIP,\n ref,\n resourceType: relationship.resourceType1,\n label: `${relationship.resourceType1} ${relationship.cardinality1}-to-${relationship.cardinality2} ${relationship.resourceType2}`\n + ` (${relationship.nature}${relationship.foreignKeyField ? `, fk \\`${relationship.foreignKeyField}\\` on ${relationship.foreignKeyHolderResourceType}` : ''})`\n + (relationship.isDisabled ? ' — DISABLED' : ''),\n });\n }\n }\n return lines;\n}\n\n/**\n * GET — one resource in full, by ref.\n *\n * An unknown ref answers `undefined` rather than throwing: a caller that named a resource the\n * application does not have needs to be told that, and a refusal one layer up can say so with the\n * map beside it. Inventing an empty resource would be the worse answer — it reads as \"exists and\n * holds nothing\".\n */\nexport function getWorkspaceResource(index: WorkspaceElementIndex, resourceType: string): WorkspaceResourceView | undefined {\n const resource = index.resources.get(resourceType);\n if (resource === undefined) return undefined;\n const refByIdentity = new Map([...index.relationships].map(([ref, relationship]) => [relationship.relationshipId, ref]));\n return {\n ref: resource.resourceType,\n resourceType: resource.resourceType,\n moduleId: resource.moduleId,\n purpose: resource.specification?.purpose ?? null,\n fields: resource.fields.map((field) => ({\n ref: workspaceFieldRef(resource.resourceType, field.fieldName),\n fieldName: field.fieldName,\n meaning: fieldMeaning(field),\n })),\n operations: resource.operations.map((operation) => ({\n ref: workspaceOperationRef(resource.resourceType, operation),\n operationIdentifier: operation.operationIdentifier,\n variantType: operation.variantType,\n variantKey: operation.variantKey,\n purpose: operationPurpose(operation),\n })),\n relationships: resource.relationships.map((relationship) => relationshipView(\n refByIdentity.get(relationship.relationshipId) ?? workspaceRelationshipRefBase(relationship),\n relationship,\n )),\n };\n}\n\n/** What RELATED answers: the edges walked, and the resources they reached. */\nexport interface WorkspaceRelatedResult {\n readonly from: string;\n readonly edges: readonly WorkspaceRelationshipView[];\n readonly resources: readonly WorkspaceResourceView[];\n /** Named but not on record — an edge pointing at a resource the projection does not carry. */\n readonly unresolved: readonly string[];\n}\n\n/**\n * RELATED — what a resource is connected to, following its declared relationships.\n *\n * This is what replaces the coding floor's hand-cut module slice. A build task targets ONE resource,\n * and what it needs is that resource plus the ones its edges reach — which is neither \"the whole\n * registry\" nor \"everything in its module\": a module slice over-supplies the siblings a task never\n * touches and UNDER-supplies the engine resources its own foreign keys point at (`users`,\n * `organizations` — the scope anchors, and the most load-bearing edges a resource has).\n *\n * `hops` defaults to 1. Bounded rather than transitive-by-default because the relationship graph of\n * a real application is nearly connected through the scope anchors: two hops from any resource\n * reaches most of the application, which is the whole-registry answer with extra steps.\n *\n * A DISABLED edge is walked and reported as disabled rather than skipped. It is declared, a reader\n * asking what a resource is connected to should see it, and the view says `isDisabled` so nothing\n * mistakes it for a live one.\n */\nexport function relatedWorkspaceResources(\n index: WorkspaceElementIndex,\n resourceType: string,\n options: { readonly hops?: number } = {},\n): WorkspaceRelatedResult {\n const hops = Math.max(1, Math.trunc(options.hops ?? 1));\n const refByIdentity = new Map([...index.relationships].map(([ref, relationship]) => [relationship.relationshipId, ref]));\n const visited = new Set<string>([resourceType]);\n const edges = new Map<string, WorkspaceRelationshipView>();\n const unresolved = new Set<string>();\n\n let frontier: string[] = [resourceType];\n for (let hop = 0; hop < hops; hop += 1) {\n const next: string[] = [];\n for (const current of frontier) {\n const resource = index.resources.get(current);\n if (resource === undefined) {\n // Only reachable for the SEED: a neighbour is only ever added after its row is found.\n unresolved.add(current);\n continue;\n }\n for (const relationship of resource.relationships) {\n const ref = refByIdentity.get(relationship.relationshipId) ?? workspaceRelationshipRefBase(relationship);\n if (!edges.has(ref)) edges.set(ref, relationshipView(ref, relationship));\n const neighbour = relationship.resourceType1 === current ? relationship.resourceType2 : relationship.resourceType1;\n if (visited.has(neighbour)) continue;\n if (!index.resources.has(neighbour)) {\n unresolved.add(neighbour);\n continue;\n }\n visited.add(neighbour);\n next.push(neighbour);\n }\n }\n frontier = next;\n if (frontier.length === 0) break;\n }\n\n const resources = [...visited]\n .map((reached) => getWorkspaceResource(index, reached))\n .filter((view): view is WorkspaceResourceView => view !== undefined);\n return { from: resourceType, edges: [...edges.values()], resources, unresolved: [...unresolved] };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"workspace-elements.companion.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/workspace-elements.companion.ts"],"names":[],"mappings":"AACA,OAAO,EAA0B,KAAK,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAEzG;;;;;;;GAOG;AAEH,uEAAuE;AACvE,MAAM,WAAW,yBAAyB;IACxC,WAAW,CAAC,OAAO,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,0BAA0B,CAAA;KAAE,GAAG,OAAO,CAAC;QAC1F,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;QAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;QACxB,QAAQ,CAAC,eAAe,CAAC,EAAE,IAAI,CAAC;QAChC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;KACnC,CAAC,CAAC;CACJ;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,KAAK,EAAE,qBAAqB,CAAC;IACtC,QAAQ,CAAC,SAAS,EAAE,0BAA0B,CAAC;CAChD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,qBAAqB,CACzC,aAAa,EAAE,yBAAyB,EACxC,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,yBAAyB,CAAC,CAkBpC;AAED,kFAAkF;AAClF,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,0BAA0B,GAAG,MAAM,CAKxF"}
1
+ {"version":3,"file":"workspace-elements.companion.d.ts","sourceRoot":"","sources":["../../../../src/core/introspection/workspace-elements.companion.ts"],"names":[],"mappings":"AACA,OAAO,EAA0B,KAAK,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAEzG;;;;;;;GAOG;AAEH,uEAAuE;AACvE,MAAM,WAAW,yBAAyB;IACxC,WAAW,CAAC,OAAO,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,0BAA0B,CAAA;KAAE,GAAG,OAAO,CAAC;QAC1F,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;QAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;QACxB,QAAQ,CAAC,eAAe,CAAC,EAAE,IAAI,CAAC;QAChC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;KACnC,CAAC,CAAC;CACJ;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,KAAK,EAAE,qBAAqB,CAAC;IACtC,QAAQ,CAAC,SAAS,EAAE,0BAA0B,CAAC;CAChD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,qBAAqB,CACzC,aAAa,EAAE,yBAAyB,EACxC,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,yBAAyB,CAAC,CAkBpC;AAED,kFAAkF;AAClF,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,0BAA0B,GAAG,MAAM,CAKxF"}
@@ -1 +1 @@
1
- {"version":3,"file":"workspace-elements.companion.js","sourceRoot":"","sources":["../../../../../src/core/introspection/workspace-elements.companion.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAA8B,MAAM,qCAAqC,CAAC;AAuCzG;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,aAAwC,EACxC,UAAkB;IAElB,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,0BAA0B,EAAE,CAAC,CAAC;IACrG,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CAAC,wDAAwD,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;IAClH,CAAC;IACD,MAAM,UAAU,GAAG,MAAM,CAAC,IAAyC,CAAC;IACpE,IAAI,UAAU,KAAK,SAAS,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,CAAC;QAC3E,MAAM,IAAI,KAAK,CAAC,0EAA0E,CAAC,CAAC;IAC9F,CAAC;IACD,OAAO;QACL,KAAK,EAAE,sBAAsB,CAAC,UAAU,CAAC;QACzC,SAAS,EAAE;YACT,IAAI,EAAE,MAAM,CAAC,eAAe,KAAK,IAAI;YACrC,4FAA4F;YAC5F,+DAA+D;YAC/D,KAAK,EAAE,MAAM,CAAC,eAAe,IAAI,IAAI;SACtC;KACF,CAAC;AACJ,CAAC;AAED,kFAAkF;AAClF,MAAM,UAAU,0BAA0B,CAAC,SAAqC;IAC9E,IAAI,CAAC,SAAS,CAAC,IAAI;QAAE,OAAO,iDAAiD,CAAC;IAC9E,IAAI,SAAS,CAAC,KAAK,KAAK,IAAI;QAAE,OAAO,6FAA6F,CAAC;IACnI,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;IACnD,OAAO,4BAA4B,OAAO,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC,KAAK,MAAM,CAAC;AAC3G,CAAC","sourcesContent":["import type { DomainModelProjection } from './subprocess/application-domain-model.behavior';\nimport { indexWorkspaceElements, type WorkspaceElementIndex } from './workspace-element-index.companion';\n\n/**\n * How a caller reaches the application's own code truth, once (#1437).\n *\n * The index itself is pure and knows nothing about a companion. This is the one place that FETCHES\n * the projection behind it, so the coding floor, the HTTP door and the CLI cannot end up with three\n * ways of asking — and, more importantly, cannot end up asking for three different derivations of an\n * application that is being edited underneath them.\n */\n\n/** Just enough of the introspection service to ask it one question. */\nexport interface WorkspaceProjectionReader {\n requestInfo(request: { serviceKey: string; behavior: 'application-domain-model' }): Promise<{\n readonly success: boolean;\n readonly data?: unknown;\n readonly servedFromCache?: true;\n readonly derivationAgeMs?: number;\n }>;\n}\n\n/**\n * Whether the answer was taken NOW or is being re-served, and how old it is.\n *\n * #1437's third acceptance line, and it is not bookkeeping. The registry once reported 15 resources\n * as a held derivation while the specification set and the compiled dist both had 16 — another\n * session had just added one. An agent about to edit that tree needs to be able to tell a derivation\n * taken seconds ago from one taken before the thing it is about to change.\n */\nexport interface WorkspaceElementsFreshness {\n readonly held: boolean;\n readonly ageMs: number | null;\n}\n\nexport interface WorkspaceElementsSnapshot {\n readonly index: WorkspaceElementIndex;\n readonly freshness: WorkspaceElementsFreshness;\n}\n\n/**\n * Read the application's domain model and index it.\n *\n * ONE derivation, deliberately: `application-domain-model` costs ~35 s and the introspection cache\n * keys on a behavior's INPUT, so a narrowing pushed into the derivation would make every distinct\n * question a fresh subprocess. Asking for the whole thing means the cache actually serves — the\n * first question pays, every later one is a map lookup — and two slices of one projection cannot\n * disagree about the application.\n *\n * Throws on a failed derivation rather than answering an empty index: a caller handed an index with\n * no resources cannot tell \"this application has none\" from \"the read failed\", and the second is the\n * only one that has ever been true.\n */\nexport async function readWorkspaceElements(\n introspection: WorkspaceProjectionReader,\n serviceKey: string,\n): Promise<WorkspaceElementsSnapshot> {\n const result = await introspection.requestInfo({ serviceKey, behavior: 'application-domain-model' });\n if (!result.success) {\n throw new Error(`The application's domain model could not be derived: ${JSON.stringify(result).slice(0, 400)}`);\n }\n const projection = result.data as DomainModelProjection | undefined;\n if (projection === undefined || !Array.isArray(projection.domainResources)) {\n throw new Error(\"The application's domain model derivation returned no `domainResources`.\");\n }\n return {\n index: indexWorkspaceElements(projection),\n freshness: {\n held: result.servedFromCache === true,\n // `null` rather than 0 for a fresh derivation: zero is an age, and \"taken just now\" and \"an\n // older companion that reports no age\" must not read the same.\n ageMs: result.derivationAgeMs ?? null,\n },\n };\n}\n\n/** One line a reader can act on: is this now, or is it held, and for how long. */\nexport function describeWorkspaceFreshness(freshness: WorkspaceElementsFreshness): string {\n if (!freshness.held) return 'derived now, from the working tree as it stands';\n if (freshness.ageMs === null) return 'a HELD derivation of unknown age — re-derive before trusting it against a tree being edited';\n const seconds = Math.round(freshness.ageMs / 1000);\n return `a HELD derivation, taken ${seconds < 60 ? `${seconds}s` : `${Math.round(seconds / 60)}min`} ago`;\n}\n"]}
1
+ {"version":3,"file":"workspace-elements.companion.js","sourceRoot":"","sources":["../../../../src/core/introspection/workspace-elements.companion.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAA8B,MAAM,qCAAqC,CAAC;AAuCzG;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,aAAwC,EACxC,UAAkB;IAElB,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,0BAA0B,EAAE,CAAC,CAAC;IACrG,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CAAC,wDAAwD,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;IAClH,CAAC;IACD,MAAM,UAAU,GAAG,MAAM,CAAC,IAAyC,CAAC;IACpE,IAAI,UAAU,KAAK,SAAS,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,CAAC;QAC3E,MAAM,IAAI,KAAK,CAAC,0EAA0E,CAAC,CAAC;IAC9F,CAAC;IACD,OAAO;QACL,KAAK,EAAE,sBAAsB,CAAC,UAAU,CAAC;QACzC,SAAS,EAAE;YACT,IAAI,EAAE,MAAM,CAAC,eAAe,KAAK,IAAI;YACrC,4FAA4F;YAC5F,+DAA+D;YAC/D,KAAK,EAAE,MAAM,CAAC,eAAe,IAAI,IAAI;SACtC;KACF,CAAC;AACJ,CAAC;AAED,kFAAkF;AAClF,MAAM,UAAU,0BAA0B,CAAC,SAAqC;IAC9E,IAAI,CAAC,SAAS,CAAC,IAAI;QAAE,OAAO,iDAAiD,CAAC;IAC9E,IAAI,SAAS,CAAC,KAAK,KAAK,IAAI;QAAE,OAAO,6FAA6F,CAAC;IACnI,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;IACnD,OAAO,4BAA4B,OAAO,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC,KAAK,MAAM,CAAC;AAC3G,CAAC","sourcesContent":["import type { DomainModelProjection } from './subprocess/application-domain-model.behavior';\nimport { indexWorkspaceElements, type WorkspaceElementIndex } from './workspace-element-index.companion';\n\n/**\n * How a caller reaches the application's own code truth, once (#1437).\n *\n * The index itself is pure and knows nothing about a companion. This is the one place that FETCHES\n * the projection behind it, so the coding floor, the HTTP door and the CLI cannot end up with three\n * ways of asking — and, more importantly, cannot end up asking for three different derivations of an\n * application that is being edited underneath them.\n */\n\n/** Just enough of the introspection service to ask it one question. */\nexport interface WorkspaceProjectionReader {\n requestInfo(request: { serviceKey: string; behavior: 'application-domain-model' }): Promise<{\n readonly success: boolean;\n readonly data?: unknown;\n readonly servedFromCache?: true;\n readonly derivationAgeMs?: number;\n }>;\n}\n\n/**\n * Whether the answer was taken NOW or is being re-served, and how old it is.\n *\n * #1437's third acceptance line, and it is not bookkeeping. The registry once reported 15 resources\n * as a held derivation while the specification set and the compiled dist both had 16 — another\n * session had just added one. An agent about to edit that tree needs to be able to tell a derivation\n * taken seconds ago from one taken before the thing it is about to change.\n */\nexport interface WorkspaceElementsFreshness {\n readonly held: boolean;\n readonly ageMs: number | null;\n}\n\nexport interface WorkspaceElementsSnapshot {\n readonly index: WorkspaceElementIndex;\n readonly freshness: WorkspaceElementsFreshness;\n}\n\n/**\n * Read the application's domain model and index it.\n *\n * ONE derivation, deliberately: `application-domain-model` costs ~35 s and the introspection cache\n * keys on a behavior's INPUT, so a narrowing pushed into the derivation would make every distinct\n * question a fresh subprocess. Asking for the whole thing means the cache actually serves — the\n * first question pays, every later one is a map lookup — and two slices of one projection cannot\n * disagree about the application.\n *\n * Throws on a failed derivation rather than answering an empty index: a caller handed an index with\n * no resources cannot tell \"this application has none\" from \"the read failed\", and the second is the\n * only one that has ever been true.\n */\nexport async function readWorkspaceElements(\n introspection: WorkspaceProjectionReader,\n serviceKey: string,\n): Promise<WorkspaceElementsSnapshot> {\n const result = await introspection.requestInfo({ serviceKey, behavior: 'application-domain-model' });\n if (!result.success) {\n throw new Error(`The application's domain model could not be derived: ${JSON.stringify(result).slice(0, 400)}`);\n }\n const projection = result.data as DomainModelProjection | undefined;\n if (projection === undefined || !Array.isArray(projection.domainResources)) {\n throw new Error(\"The application's domain model derivation returned no `domainResources`.\");\n }\n return {\n index: indexWorkspaceElements(projection),\n freshness: {\n held: result.servedFromCache === true,\n // `null` rather than 0 for a fresh derivation: zero is an age, and \"taken just now\" and \"an\n // older companion that reports no age\" must not read the same.\n ageMs: result.derivationAgeMs ?? null,\n },\n };\n}\n\n/** One line a reader can act on: is this now, or is it held, and for how long. */\nexport function describeWorkspaceFreshness(freshness: WorkspaceElementsFreshness): string {\n if (!freshness.held) return 'derived now, from the working tree as it stands';\n if (freshness.ageMs === null) return 'a HELD derivation of unknown age — re-derive before trusting it against a tree being edited';\n const seconds = Math.round(freshness.ageMs / 1000);\n return `a HELD derivation, taken ${seconds < 60 ? `${seconds}s` : `${Math.round(seconds / 60)}min`} ago`;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-saas-lock.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/core/lock/wildo-saas-lock.companion.service.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAEL,6BAA6B,EAK9B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACvB,MAAM,0BAA0B,CAAC;AAGlC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,qBACa,6BAA6B;IAIH,OAAO,CAAC,QAAQ,CAAC,MAAM;IACR,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAJrF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+D;gBAGlC,MAAM,EAAE,aAAa,EACN,gBAAgB,EAAE,gBAAgB;IAKhG,eAAe,IAAI,MAAM;IAIhC;;;;;;;;;;OAUG;IACU,IAAI,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAkC/C;;;;;;;;;;OAUG;IACU,MAAM,CACjB,OAAO,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GACzD,OAAO,CAAC,iBAAiB,CAAC;IAqB7B;;;;;;;;OAQG;IACI,eAAe,IAAI,IAAI;IAQ9B,6CAA6C;IACtC,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAI1C;;;;OAIG;IACI,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM;IAQnC,eAAe,IAAI,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC;IAKpE;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACU,cAAc,CACzB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,iBAAiB,EAIxB,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,cAAc,EAAE,MAAM,EAAE,GACvB,OAAO,CAAC,IAAI,CAAC;CAsBjB;AAyBD,OAAO,EAAE,6BAA6B,EAAE,CAAC"}
1
+ {"version":3,"file":"wildo-saas-lock.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/core/lock/wildo-saas-lock.companion.service.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAEL,6BAA6B,EAK9B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACvB,MAAM,0BAA0B,CAAC;AAGlC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,qBACa,6BAA6B;IAIH,OAAO,CAAC,QAAQ,CAAC,MAAM;IACR,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAJrF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+D;gBAGlC,MAAM,EAAE,aAAa,EACN,gBAAgB,EAAE,gBAAgB;IAKhG,eAAe,IAAI,MAAM;IAIhC;;;;;;;;;;OAUG;IACU,IAAI,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAkC/C;;;;;;;;;;OAUG;IACU,MAAM,CACjB,OAAO,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GACzD,OAAO,CAAC,iBAAiB,CAAC;IAqB7B;;;;;;;;OAQG;IACI,eAAe,IAAI,IAAI;IAQ9B,6CAA6C;IACtC,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAI1C;;;;OAIG;IACI,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM;IAQnC,eAAe,IAAI,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC;IAKpE;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACU,cAAc,CACzB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,iBAAiB,EAIxB,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,cAAc,EAAE,MAAM,EAAE,GACvB,OAAO,CAAC,IAAI,CAAC;CAsBjB;AAyBD,OAAO,EAAE,6BAA6B,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-saas-lock.companion.service.js","sourceRoot":"","sources":["../../../../../src/core/lock/wildo-saas-lock.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,EACL,+BAA+B,EAC/B,6BAA6B,EAC7B,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,GAElB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,OA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AC,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AA1LY,6BAA6B;IADzC,UAAU,EAAE;IAKR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;;GALxC,6BAA6B,CA0LzC;;AAED;;;;;GAKG;AACH,SAAS,2BAA2B,CAAC,QAA8B;IACjE,OAAO,QAAwC,CAAC;AAClD,CAAC;AAED,SAAS,eAAe,CAAC,KAAc;IACrC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACpC,IAAI,CAAC,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;YACpD,MAAM,MAAM,GAA4B,EAAE,CAAC;YAC3C,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,CAA4B,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;gBACnE,MAAM,CAAC,GAAG,CAAC,GAAI,CAA6B,CAAC,GAAG,CAAC,CAAC;YACpD,CAAC;YACD,OAAO,MAAM,CAAC;QAChB,CAAC;QACD,OAAO,CAAC,CAAC;IACX,CAAC,CAAC,CAAC;AACL,CAAC;AAED,OAAO,EAAE,6BAA6B,EAAE,CAAC","sourcesContent":["import { createHash } from 'node:crypto';\nimport { inject, injectable } from 'inversify';\nimport { ZodError } from 'zod';\nimport { SAAS_SERVICE_TYPES } from '@wildo-ai/saas-backend-lib';\nimport type { LoggerService } from '@wildo-ai/saas-backend-lib';\nimport {\n RegistryLockfileRepairableError,\n WILDO_SAAS_LOCK_RELATIVE_PATH,\n getWildoSaasLockPath,\n withLockfileMutate,\n readWildoSaasLock,\n type SaasLockfileEnvelope,\n} from '@wildo-ai/platform-config-lib';\nimport { COMPANION_SERVICE_TYPES } from '../inject/models/service-types';\nimport type { CompanionContext } from '../context/companion-context';\nimport {\n emptyLockFile,\n type WildoSaasLockFile,\n type I18nLockSection,\n type I18nLockUnitEntry,\n} from './wildo-saas-lock.models';\nimport { I18nLockSectionSchema } from './wildo-saas-lock.schemas';\n\n/**\n * Read/write access to `<saasRoot>/.wildo-saas/wildo-saas.lock.json`.\n *\n * Phase 1 refactor (`module-registry-analysis.md`): the companion\n * delegates locking + atomic-write to\n * `@wildo-ai/platform-config-lib`'s `withLockfileMutate(...)`. The\n * shared primitive uses `proper-lockfile` (cross-process safe) +\n * `write-file-atomic` (fsync-safe), validated by the Phase 0.B\n * contention spike.\n *\n * Removed:\n * - `writeChain` — the OS-level lock subsumes the in-memory\n * write serialization.\n * - `cached` — every read goes under the lock so cross-process\n * readers and the CLI never observe a stale cache.\n *\n * Preserved (call-sites depend on it):\n * - `mutate(file => void)` — full-envelope callback API for\n * orchestrators that need cross-section visibility.\n * - `invalidateCache(): void` — kept as a documented no-op\n * (Review-pass-4 / MEDIUM-FF). The shared library does not\n * cache; calling `invalidateCache()` is a hint with no effect.\n * - `readI18nSection`, `upsertI18nUnit`, `hashString`,\n * `hashFingerprint` — public API surface consumed by\n * `LabellizeOrchestrator` and `TranslateOrchestrator`.\n *\n * Phase 1 review hardening:\n * - H-1.1: `read()` no longer swallows ZodError into an empty\n * envelope (which silently destroyed sibling sections on\n * overwrite). Malformed envelopes throw\n * `RegistryLockfileRepairableError`; only ENOENT falls back to\n * `emptyLockFile()`.\n * - M-1.1: every read + mutate threads\n * `sectionSchemas: { i18n: I18nLockSectionSchema }` so the\n * companion-owned section is validated on the boundary.\n * - M-1.3: dead `envelope.sections = view.sections` line removed\n * (the cast already shares the underlying reference).\n * - L-1.2: file path comes from the shared\n * `getWildoSaasLockPath(saasRoot)` helper, removing the\n * companion-local `WILDO_SAAS_LOCK_FILE_NAME` constant drift.\n */\n@injectable()\nexport class WildoSaasLockCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n ) {\n this.logDebug = this.logger.debugByType('WildoSaasLockService');\n }\n\n public getLockFilePath(): string {\n return getWildoSaasLockPath(this.companionContext.saasRoot);\n }\n\n /**\n * Read the current lockfile envelope. Unsynchronized — callers\n * needing read-after-write coherence must read INSIDE\n * `mutate(...)`.\n *\n * Returns an empty envelope when the file does not yet exist\n * (ENOENT). Throws `RegistryLockfileRepairableError` when the\n * file exists but fails Zod schema validation, so the\n * orchestrator surfaces a repairable diagnostic rather than\n * silently overwriting valid sibling sections.\n */\n public async read(): Promise<WildoSaasLockFile> {\n try {\n const envelope = await readWildoSaasLock({\n saasRoot: this.companionContext.saasRoot,\n sectionSchemas: { i18n: I18nLockSectionSchema },\n createIfMissing: true,\n });\n // The two envelope types are structurally compatible — both\n // are `{ schemaVersion: 2, generatedAt, sections }`. The\n // companion's `WildoSaasLockFile` types `sections` more\n // permissively than the shared schema, so a downcast is safe.\n return envelopeToWildoSaasLockFile(envelope);\n } catch (err: unknown) {\n if (err instanceof ZodError) {\n throw new RegistryLockfileRepairableError(\n `wildo-saas.lock.json failed schema validation. Run \\`wildo registry repair-lockfile\\` to inspect.`,\n [\n `at: ${this.getLockFilePath()}`,\n ...err.issues.slice(0, 5).map(\n (issue) => `${issue.path.join('.') || '<root>'}: ${issue.message}`,\n ),\n ],\n );\n }\n const errno = (err as NodeJS.ErrnoException)?.code;\n if (errno === 'ENOENT') {\n return emptyLockFile();\n }\n // Anything else (EACCES, EIO, JSON.parse SyntaxError, ...) is\n // a real bug; do not silently overwrite the file.\n throw err;\n }\n }\n\n /**\n * Atomically apply a mutation to the lock file under an OS-level\n * lock + atomic-write commit. The mutator receives a deep-cloned\n * envelope; in-place mutation is safe.\n *\n * Cross-section preservation guarantees (KD-4 / KD-15 / KD-18) are\n * inherited from `withLockfileMutate`: every `sections.*` key the\n * mutator did NOT touch round-trips verbatim. The companion-owned\n * `sections.i18n` schema is validated on read AND post-mutation,\n * so a buggy mutator can never persist an invalid i18n payload.\n */\n public async mutate(\n mutator: (file: WildoSaasLockFile) => void | Promise<void>,\n ): Promise<WildoSaasLockFile> {\n const result = await withLockfileMutate(\n {\n saasRoot: this.companionContext.saasRoot,\n sectionSchemas: { i18n: I18nLockSectionSchema },\n },\n async (envelope) => {\n const view = envelopeToWildoSaasLockFile(envelope);\n await mutator(view);\n // `view` IS `envelope` (the cast is structural), so the\n // mutator's in-place changes are already on `envelope` —\n // no explicit re-assignment needed (M-1.3).\n },\n );\n this.logDebug('Lock file written', {\n filePath: this.getLockFilePath(),\n sectionCount: Object.keys(result.sections).length,\n });\n return envelopeToWildoSaasLockFile(result);\n }\n\n /**\n * Documented no-op. The shared library does not cache reads —\n * every read goes under the OS-level lock. This method is kept\n * to preserve the public API for external callers (Review-pass-4\n * / MEDIUM-FF). Calls have no observable effect.\n *\n * @deprecated The shared lockfile library performs read-under-lock\n * on every call; cache invalidation is no longer meaningful.\n */\n public invalidateCache(): void {\n // intentionally empty\n }\n\n // ================================================================\n // SHA helpers\n // ================================================================\n\n /** sha256 of a UTF-8 string, hex-encoded. */\n public hashString(content: string): string {\n return createHash('sha256').update(content, 'utf-8').digest('hex');\n }\n\n /**\n * Stable hash for an input \"fingerprint\": sorts keys and serializes\n * with a deterministic JSON layout so two runs with the same logical\n * payload produce the same SHA.\n */\n public hashFingerprint(payload: unknown): string {\n return this.hashString(stableStringify(payload));\n }\n\n // ================================================================\n // i18n section helpers (typed convenience over generic mutate)\n // ================================================================\n\n public async readI18nSection(): Promise<I18nLockSection | undefined> {\n const file = await this.read();\n return file.sections.i18n;\n }\n\n /**\n * Insert or replace one unit's i18n lock entry.\n *\n * **Additive only, and there is deliberately NO removal counterpart.** A unit\n * row outlives the unit — rename a resource and the old `resource:todoLists`\n * row stays forever, alongside its generated label files. That leak is known\n * and is reported rather than repaired: see `OrphanLabelArtifactsReport` in\n * `i18n-labelling/utils/orphan-label-artifacts.utils.ts` for the measurement\n * and the reasoning.\n *\n * The short version, so nobody adds the obvious `removeI18nUnit` here as a\n * tidy-up: the only available answer to \"does this unit still exist?\" is the\n * planner's unit list, and that list degrades SILENTLY — a frontend\n * introspection that could not run drops four whole label families from it\n * while looking exactly like an application that has none. A removal API on\n * this service would be called from there, so it would delete lock rows for\n * live units on any run where the frontend dev server was down. Build the\n * removal when the plan's totality is established rather than assumed, and\n * make it an explicit operator verb rather than a side effect of generation.\n *\n * `trackedLocales` is likewise a UNION and never shrinks, which is why it\n * cannot serve as the denominator for \"this locale was dropped\".\n */\n public async upsertI18nUnit(\n unitId: string,\n entry: I18nLockUnitEntry,\n // Only labellize should set / change the section's primary locale.\n // Translate passes `undefined` so locale updates do not rewrite the\n // app-config source-of-truth identity.\n primaryLocale: string | undefined,\n trackedLocales: string[],\n ): Promise<void> {\n await this.mutate((file) => {\n if (!file.sections.i18n && !primaryLocale) {\n throw new Error(\n 'Cannot create i18n lock section without a configured primaryLocale',\n );\n }\n const section: I18nLockSection = file.sections.i18n ?? {\n sectionVersion: 1,\n primaryLocale: primaryLocale!,\n trackedLocales: [],\n units: {},\n };\n if (primaryLocale) {\n section.primaryLocale = primaryLocale;\n }\n const localeSet = new Set([...section.trackedLocales, ...trackedLocales]);\n section.trackedLocales = [...localeSet].sort();\n section.units[unitId] = entry;\n file.sections.i18n = section;\n });\n }\n}\n\n/**\n * Cast the shared envelope into the companion's `WildoSaasLockFile`\n * shape. The two types share a runtime layout (`{ schemaVersion: 2,\n * generatedAt, sections }`); the companion's view types `sections`\n * more permissively, so the cross-cast is safe.\n */\nfunction envelopeToWildoSaasLockFile(envelope: SaasLockfileEnvelope): WildoSaasLockFile {\n return envelope as unknown as WildoSaasLockFile;\n}\n\nfunction stableStringify(value: unknown): string {\n return JSON.stringify(value, (_, v) => {\n if (v && typeof v === 'object' && !Array.isArray(v)) {\n const sorted: Record<string, unknown> = {};\n for (const key of Object.keys(v as Record<string, unknown>).sort()) {\n sorted[key] = (v as Record<string, unknown>)[key];\n }\n return sorted;\n }\n return v;\n });\n}\n\nexport { WILDO_SAAS_LOCK_RELATIVE_PATH };\n"]}
1
+ {"version":3,"file":"wildo-saas-lock.companion.service.js","sourceRoot":"","sources":["../../../../src/core/lock/wildo-saas-lock.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,EACL,+BAA+B,EAC/B,6BAA6B,EAC7B,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,GAElB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,OAAO,EACL,aAAa,GAId,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEI,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;IAIc;IACe;IAJpD,QAAQ,CAA+D;IAExF,YACsD,MAAqB,EACN,gBAAkC;QADjD,WAAM,GAAN,MAAM,CAAe;QACN,qBAAgB,GAAhB,gBAAgB,CAAkB;QAErG,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;IAClE,CAAC;IAEM,eAAe;QACpB,OAAO,oBAAoB,CAAC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;;;;OAUG;IACI,KAAK,CAAC,IAAI;QACf,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,iBAAiB,CAAC;g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,IAAI,EAAE,EAAE,CAAC;gBACnE,MAAM,CAAC,GAAG,CAAC,GAAI,CAA6B,CAAC,GAAG,CAAC,CAAC;YACpD,CAAC;YACD,OAAO,MAAM,CAAC;QAChB,CAAC;QACD,OAAO,CAAC,CAAC;IACX,CAAC,CAAC,CAAC;AACL,CAAC;AAED,OAAO,EAAE,6BAA6B,EAAE,CAAC","sourcesContent":["import { createHash } from 'node:crypto';\nimport { inject, injectable } from 'inversify';\nimport { ZodError } from 'zod';\nimport { SAAS_SERVICE_TYPES } from '@wildo-ai/saas-backend-lib';\nimport type { LoggerService } from '@wildo-ai/saas-backend-lib';\nimport {\n RegistryLockfileRepairableError,\n WILDO_SAAS_LOCK_RELATIVE_PATH,\n getWildoSaasLockPath,\n withLockfileMutate,\n readWildoSaasLock,\n type SaasLockfileEnvelope,\n} from '@wildo-ai/platform-config-lib';\nimport { COMPANION_SERVICE_TYPES } from '../inject/models/service-types';\nimport type { CompanionContext } from '../context/companion-context';\nimport {\n emptyLockFile,\n type WildoSaasLockFile,\n type I18nLockSection,\n type I18nLockUnitEntry,\n} from './wildo-saas-lock.models';\nimport { I18nLockSectionSchema } from './wildo-saas-lock.schemas';\n\n/**\n * Read/write access to `<saasRoot>/.wildo-saas/wildo-saas.lock.json`.\n *\n * Phase 1 refactor (`module-registry-analysis.md`): the companion\n * delegates locking + atomic-write to\n * `@wildo-ai/platform-config-lib`'s `withLockfileMutate(...)`. The\n * shared primitive uses `proper-lockfile` (cross-process safe) +\n * `write-file-atomic` (fsync-safe), validated by the Phase 0.B\n * contention spike.\n *\n * Removed:\n * - `writeChain` — the OS-level lock subsumes the in-memory\n * write serialization.\n * - `cached` — every read goes under the lock so cross-process\n * readers and the CLI never observe a stale cache.\n *\n * Preserved (call-sites depend on it):\n * - `mutate(file => void)` — full-envelope callback API for\n * orchestrators that need cross-section visibility.\n * - `invalidateCache(): void` — kept as a documented no-op\n * (Review-pass-4 / MEDIUM-FF). The shared library does not\n * cache; calling `invalidateCache()` is a hint with no effect.\n * - `readI18nSection`, `upsertI18nUnit`, `hashString`,\n * `hashFingerprint` — public API surface consumed by\n * `LabellizeOrchestrator` and `TranslateOrchestrator`.\n *\n * Phase 1 review hardening:\n * - H-1.1: `read()` no longer swallows ZodError into an empty\n * envelope (which silently destroyed sibling sections on\n * overwrite). Malformed envelopes throw\n * `RegistryLockfileRepairableError`; only ENOENT falls back to\n * `emptyLockFile()`.\n * - M-1.1: every read + mutate threads\n * `sectionSchemas: { i18n: I18nLockSectionSchema }` so the\n * companion-owned section is validated on the boundary.\n * - M-1.3: dead `envelope.sections = view.sections` line removed\n * (the cast already shares the underlying reference).\n * - L-1.2: file path comes from the shared\n * `getWildoSaasLockPath(saasRoot)` helper, removing the\n * companion-local `WILDO_SAAS_LOCK_FILE_NAME` constant drift.\n */\n@injectable()\nexport class WildoSaasLockCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n ) {\n this.logDebug = this.logger.debugByType('WildoSaasLockService');\n }\n\n public getLockFilePath(): string {\n return getWildoSaasLockPath(this.companionContext.saasRoot);\n }\n\n /**\n * Read the current lockfile envelope. Unsynchronized — callers\n * needing read-after-write coherence must read INSIDE\n * `mutate(...)`.\n *\n * Returns an empty envelope when the file does not yet exist\n * (ENOENT). Throws `RegistryLockfileRepairableError` when the\n * file exists but fails Zod schema validation, so the\n * orchestrator surfaces a repairable diagnostic rather than\n * silently overwriting valid sibling sections.\n */\n public async read(): Promise<WildoSaasLockFile> {\n try {\n const envelope = await readWildoSaasLock({\n saasRoot: this.companionContext.saasRoot,\n sectionSchemas: { i18n: I18nLockSectionSchema },\n createIfMissing: true,\n });\n // The two envelope types are structurally compatible — both\n // are `{ schemaVersion: 2, generatedAt, sections }`. The\n // companion's `WildoSaasLockFile` types `sections` more\n // permissively than the shared schema, so a downcast is safe.\n return envelopeToWildoSaasLockFile(envelope);\n } catch (err: unknown) {\n if (err instanceof ZodError) {\n throw new RegistryLockfileRepairableError(\n `wildo-saas.lock.json failed schema validation. Run \\`wildo registry repair-lockfile\\` to inspect.`,\n [\n `at: ${this.getLockFilePath()}`,\n ...err.issues.slice(0, 5).map(\n (issue) => `${issue.path.join('.') || '<root>'}: ${issue.message}`,\n ),\n ],\n );\n }\n const errno = (err as NodeJS.ErrnoException)?.code;\n if (errno === 'ENOENT') {\n return emptyLockFile();\n }\n // Anything else (EACCES, EIO, JSON.parse SyntaxError, ...) is\n // a real bug; do not silently overwrite the file.\n throw err;\n }\n }\n\n /**\n * Atomically apply a mutation to the lock file under an OS-level\n * lock + atomic-write commit. The mutator receives a deep-cloned\n * envelope; in-place mutation is safe.\n *\n * Cross-section preservation guarantees (KD-4 / KD-15 / KD-18) are\n * inherited from `withLockfileMutate`: every `sections.*` key the\n * mutator did NOT touch round-trips verbatim. The companion-owned\n * `sections.i18n` schema is validated on read AND post-mutation,\n * so a buggy mutator can never persist an invalid i18n payload.\n */\n public async mutate(\n mutator: (file: WildoSaasLockFile) => void | Promise<void>,\n ): Promise<WildoSaasLockFile> {\n const result = await withLockfileMutate(\n {\n saasRoot: this.companionContext.saasRoot,\n sectionSchemas: { i18n: I18nLockSectionSchema },\n },\n async (envelope) => {\n const view = envelopeToWildoSaasLockFile(envelope);\n await mutator(view);\n // `view` IS `envelope` (the cast is structural), so the\n // mutator's in-place changes are already on `envelope` —\n // no explicit re-assignment needed (M-1.3).\n },\n );\n this.logDebug('Lock file written', {\n filePath: this.getLockFilePath(),\n sectionCount: Object.keys(result.sections).length,\n });\n return envelopeToWildoSaasLockFile(result);\n }\n\n /**\n * Documented no-op. The shared library does not cache reads —\n * every read goes under the OS-level lock. This method is kept\n * to preserve the public API for external callers (Review-pass-4\n * / MEDIUM-FF). Calls have no observable effect.\n *\n * @deprecated The shared lockfile library performs read-under-lock\n * on every call; cache invalidation is no longer meaningful.\n */\n public invalidateCache(): void {\n // intentionally empty\n }\n\n // ================================================================\n // SHA helpers\n // ================================================================\n\n /** sha256 of a UTF-8 string, hex-encoded. */\n public hashString(content: string): string {\n return createHash('sha256').update(content, 'utf-8').digest('hex');\n }\n\n /**\n * Stable hash for an input \"fingerprint\": sorts keys and serializes\n * with a deterministic JSON layout so two runs with the same logical\n * payload produce the same SHA.\n */\n public hashFingerprint(payload: unknown): string {\n return this.hashString(stableStringify(payload));\n }\n\n // ================================================================\n // i18n section helpers (typed convenience over generic mutate)\n // ================================================================\n\n public async readI18nSection(): Promise<I18nLockSection | undefined> {\n const file = await this.read();\n return file.sections.i18n;\n }\n\n /**\n * Insert or replace one unit's i18n lock entry.\n *\n * **Additive only, and there is deliberately NO removal counterpart.** A unit\n * row outlives the unit — rename a resource and the old `resource:todoLists`\n * row stays forever, alongside its generated label files. That leak is known\n * and is reported rather than repaired: see `OrphanLabelArtifactsReport` in\n * `i18n-labelling/utils/orphan-label-artifacts.utils.ts` for the measurement\n * and the reasoning.\n *\n * The short version, so nobody adds the obvious `removeI18nUnit` here as a\n * tidy-up: the only available answer to \"does this unit still exist?\" is the\n * planner's unit list, and that list degrades SILENTLY — a frontend\n * introspection that could not run drops four whole label families from it\n * while looking exactly like an application that has none. A removal API on\n * this service would be called from there, so it would delete lock rows for\n * live units on any run where the frontend dev server was down. Build the\n * removal when the plan's totality is established rather than assumed, and\n * make it an explicit operator verb rather than a side effect of generation.\n *\n * `trackedLocales` is likewise a UNION and never shrinks, which is why it\n * cannot serve as the denominator for \"this locale was dropped\".\n */\n public async upsertI18nUnit(\n unitId: string,\n entry: I18nLockUnitEntry,\n // Only labellize should set / change the section's primary locale.\n // Translate passes `undefined` so locale updates do not rewrite the\n // app-config source-of-truth identity.\n primaryLocale: string | undefined,\n trackedLocales: string[],\n ): Promise<void> {\n await this.mutate((file) => {\n if (!file.sections.i18n && !primaryLocale) {\n throw new Error(\n 'Cannot create i18n lock section without a configured primaryLocale',\n );\n }\n const section: I18nLockSection = file.sections.i18n ?? {\n sectionVersion: 1,\n primaryLocale: primaryLocale!,\n trackedLocales: [],\n units: {},\n };\n if (primaryLocale) {\n section.primaryLocale = primaryLocale;\n }\n const localeSet = new Set([...section.trackedLocales, ...trackedLocales]);\n section.trackedLocales = [...localeSet].sort();\n section.units[unitId] = entry;\n file.sections.i18n = section;\n });\n }\n}\n\n/**\n * Cast the shared envelope into the companion's `WildoSaasLockFile`\n * shape. The two types share a runtime layout (`{ schemaVersion: 2,\n * generatedAt, sections }`); the companion's view types `sections`\n * more permissively, so the cross-cast is safe.\n */\nfunction envelopeToWildoSaasLockFile(envelope: SaasLockfileEnvelope): WildoSaasLockFile {\n return envelope as unknown as WildoSaasLockFile;\n}\n\nfunction stableStringify(value: unknown): string {\n return JSON.stringify(value, (_, v) => {\n if (v && typeof v === 'object' && !Array.isArray(v)) {\n const sorted: Record<string, unknown> = {};\n for (const key of Object.keys(v as Record<string, unknown>).sort()) {\n sorted[key] = (v as Record<string, unknown>)[key];\n }\n return sorted;\n }\n return v;\n });\n}\n\nexport { WILDO_SAAS_LOCK_RELATIVE_PATH };\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-saas-lock.models.d.ts","sourceRoot":"","sources":["../../../../../src/core/lock/wildo-saas-lock.models.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,WAAW,iBAAiB;IAChC,iFAAiF;IACjF,aAAa,EAAE,CAAC,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE;QACR,IAAI,CAAC,EAAE,eAAe,CAAC;QACvB,4EAA4E;QAC5E,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,uEAAuE;QACvE,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,6EAA6E;QAC7E,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC;KAChC,CAAC;CACH;AAED,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,CAAC,CAAC;IAClB,0FAA0F;IAC1F,aAAa,EAAE,MAAM,CAAC;IACtB,4CAA4C;IAC5C,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;CAC1C;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,sEAAsE;IACtE,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6EAA6E;IAC7E,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,MAAM,oBAAoB,GAC5B,OAAO,GACP,OAAO,GACP,QAAQ,GACR,WAAW,CAAC;AAEhB,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,wBAAgB,oBAAoB,CAAC,aAAa,EAAE,MAAM,GAAG,eAAe,CAO3E;AAED,wBAAgB,aAAa,IAAI,iBAAiB,CAMjD"}
1
+ {"version":3,"file":"wildo-saas-lock.models.d.ts","sourceRoot":"","sources":["../../../../src/core/lock/wildo-saas-lock.models.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,WAAW,iBAAiB;IAChC,iFAAiF;IACjF,aAAa,EAAE,CAAC,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE;QACR,IAAI,CAAC,EAAE,eAAe,CAAC;QACvB,4EAA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["../../../../../src/core/lock/wildo-saas-lock.models.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAwEH,MAAM,UAAU,oBAAoB,CAAC,aAAqB;IACxD,OAAO;QACL,cAAc,EAAE,CAAC;QACjB,aAAa;QACb,cAAc,EAAE,EAAE;QAClB,KAAK,EAAE,EAAE;KACV,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,aAAa;IAC3B,OAAO;QACL,aAAa,EAAE,CAAC;QAChB,WAAW,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACrC,QAAQ,EAAE,EAAE;KACb,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Schema of `<saasRoot>/.wildo-saas/wildo-saas.lock.json`.\n *\n * Single companion-managed lock file shared by every concern that\n * needs incremental / SHA-tracked work (today: `i18n`; planned shared\n * sections include `providers` for provider/capability bindings and\n * `modules` for registry-installed code modules).\n *\n * Top-level shape is intentionally a discriminated map of sections so\n * adding a new concern only adds a new key, never mutates existing\n * ones. Every section is independently version-stamped so we can\n * migrate one concern's schema without invalidating the whole file.\n */\n\nexport interface WildoSaasLockFile {\n /** Schema marker for forward-compat. Bump only on file-wide breaking changes. */\n schemaVersion: 2;\n generatedAt: string;\n sections: {\n i18n?: I18nLockSection;\n /** Provider/capability bindings from the provider-registration refactor. */\n providers?: unknown;\n /** Installed registry code modules from the module-registry system. */\n modules?: unknown;\n /** Unknown sections must round-trip so one concern never deletes another. */\n [sectionName: string]: unknown;\n };\n}\n\nexport interface I18nLockSection {\n sectionVersion: 1;\n /** Configured application primary locale (`appPreferences.languages.defaultLanguage`). */\n primaryLocale: string;\n /** All target locales currently tracked. */\n trackedLocales: string[];\n /**\n * One entry per labellable unit (component / resource / theme group).\n * Keyed by the unit's stable `id` (see `LabellingUnit.id`).\n */\n units: Record<string, I18nLockUnitEntry>;\n}\n\nexport interface I18nLockUnitEntry {\n category: string;\n /** Display label cached for human-readable diffs in the lock file. */\n displayLabel: string;\n /**\n * SHA of the unit's *input* (sorted keys + spec-context fingerprint).\n * Changes => unit must be re-labellized for the primary locale and\n * re-translated for every target locale.\n */\n inputSha: string;\n /**\n * SHA of the unit's primary-language output file content. Changes =>\n * downstream locales become stale even if `inputSha` is identical\n * (e.g. a manual edit to the primary file should invalidate translations).\n */\n primarySha?: string;\n /** Per-locale translation status, keyed by locale code (e.g. `fr`, `de`). */\n locales: Record<string, I18nLockLocaleEntry>;\n lastLabellizedAt?: string;\n}\n\nexport type I18nLockLocaleStatus =\n | 'fresh' // sha matches inputSha+primarySha; output is up-to-date\n | 'stale' // input or primary changed; needs re-translation\n | 'failed' // last attempt errored\n | 'never_run'; // tracked but never produced\n\nexport interface I18nLockLocaleEntry {\n status: I18nLockLocaleStatus;\n /** SHA of the locale-specific output file content. */\n outputSha?: string;\n lastTranslatedAt?: string;\n lastErrorMessage?: string;\n /**\n * The primary-locale keys whose WORDS changed since this locale was last translated, when the\n * labeller knows exactly which (#1409). Translation then touches only those, so an established\n * translation is not re-worded because an unrelated key was added. ABSENT means \"unknown — translate\n * everything\", which is what a forced regeneration and every older lock entry mean.\n */\n staleKeys?: string[];\n}\n\nexport function emptyI18nLockSection(primaryLocale: string): I18nLockSection {\n return {\n sectionVersion: 1,\n primaryLocale,\n trackedLocales: [],\n units: {},\n };\n}\n\nexport function emptyLockFile(): WildoSaasLockFile {\n return {\n schemaVersion: 2,\n generatedAt: new Date().toISOString(),\n sections: {},\n };\n}\n"]}
1
+ {"version":3,"file":"wildo-saas-lock.models.js","sourceRoot":"","sources":["../../../../src/core/lock/wildo-saas-lock.models.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAwEH,MAAM,UAAU,oBAAoB,CAAC,aAAqB;IACxD,OAAO;QACL,cAAc,EAAE,CAAC;QACjB,aAAa;QACb,cAAc,EAAE,EAAE;QAClB,KAAK,EAAE,EAAE;KACV,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,aAAa;IAC3B,OAAO;QACL,aAAa,EAAE,CAAC;QAChB,WAAW,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACrC,QAAQ,EAAE,EAAE;KACb,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Schema of `<saasRoot>/.wildo-saas/wildo-saas.lock.json`.\n *\n * Single companion-managed lock file shared by every concern that\n * needs incremental / SHA-tracked work (today: `i18n`; planned shared\n * sections include `providers` for provider/capability bindings and\n * `modules` for registry-installed code modules).\n *\n * Top-level shape is intentionally a discriminated map of sections so\n * adding a new concern only adds a new key, never mutates existing\n * ones. Every section is independently version-stamped so we can\n * migrate one concern's schema without invalidating the whole file.\n */\n\nexport interface WildoSaasLockFile {\n /** Schema marker for forward-compat. Bump only on file-wide breaking changes. */\n schemaVersion: 2;\n generatedAt: string;\n sections: {\n i18n?: I18nLockSection;\n /** Provider/capability bindings from the provider-registration refactor. */\n providers?: unknown;\n /** Installed registry code modules from the module-registry system. */\n modules?: unknown;\n /** Unknown sections must round-trip so one concern never deletes another. */\n [sectionName: string]: unknown;\n };\n}\n\nexport interface I18nLockSection {\n sectionVersion: 1;\n /** Configured application primary locale (`appPreferences.languages.defaultLanguage`). */\n primaryLocale: string;\n /** All target locales currently tracked. */\n trackedLocales: string[];\n /**\n * One entry per labellable unit (component / resource / theme group).\n * Keyed by the unit's stable `id` (see `LabellingUnit.id`).\n */\n units: Record<string, I18nLockUnitEntry>;\n}\n\nexport interface I18nLockUnitEntry {\n category: string;\n /** Display label cached for human-readable diffs in the lock file. */\n displayLabel: string;\n /**\n * SHA of the unit's *input* (sorted keys + spec-context fingerprint).\n * Changes => unit must be re-labellized for the primary locale and\n * re-translated for every target locale.\n */\n inputSha: string;\n /**\n * SHA of the unit's primary-language output file content. Changes =>\n * downstream locales become stale even if `inputSha` is identical\n * (e.g. a manual edit to the primary file should invalidate translations).\n */\n primarySha?: string;\n /** Per-locale translation status, keyed by locale code (e.g. `fr`, `de`). */\n locales: Record<string, I18nLockLocaleEntry>;\n lastLabellizedAt?: string;\n}\n\nexport type I18nLockLocaleStatus =\n | 'fresh' // sha matches inputSha+primarySha; output is up-to-date\n | 'stale' // input or primary changed; needs re-translation\n | 'failed' // last attempt errored\n | 'never_run'; // tracked but never produced\n\nexport interface I18nLockLocaleEntry {\n status: I18nLockLocaleStatus;\n /** SHA of the locale-specific output file content. */\n outputSha?: string;\n lastTranslatedAt?: string;\n lastErrorMessage?: string;\n /**\n * The primary-locale keys whose WORDS changed since this locale was last translated, when the\n * labeller knows exactly which (#1409). Translation then touches only those, so an established\n * translation is not re-worded because an unrelated key was added. ABSENT means \"unknown — translate\n * everything\", which is what a forced regeneration and every older lock entry mean.\n */\n staleKeys?: string[];\n}\n\nexport function emptyI18nLockSection(primaryLocale: string): I18nLockSection {\n return {\n sectionVersion: 1,\n primaryLocale,\n trackedLocales: [],\n units: {},\n };\n}\n\nexport function emptyLockFile(): WildoSaasLockFile {\n return {\n schemaVersion: 2,\n generatedAt: new Date().toISOString(),\n sections: {},\n };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-saas-lock.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/core/lock/wildo-saas-lock.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B;;;;;EAKrC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;iBAMpC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;iBAOlC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;iBAKhC,CAAC"}
1
+ {"version":3,"file":"wildo-saas-lock.schemas.d.ts","sourceRoot":"","sources":["../../../../src/core/lock/wildo-saas-lock.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B;;;;;EAK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,CAAC;IACxD,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC5B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAChC,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC1C,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,uBAAuB,CAAC;CACrD,CAAC,CAAC","sourcesContent":["/**\n * Zod schemas mirroring the companion-owned section types in\n * `wildo-saas-lock.models.ts`.\n *\n * These are passed to the shared lockfile library\n * (`@wildo-ai/platform-config-lib > withLockfileMutate /\n * readWildoSaasLock`) as `sectionSchemas: { i18n: I18nLockSectionSchema }`\n * so the i18n payload is validated on every read + write — closing\n * the M-1.1 gap from the Phase 1 review (companion called the\n * shared library WITHOUT validating its own section).\n *\n * Schemas mirror the TypeScript interfaces 1:1; any drift between\n * this file and `wildo-saas-lock.models.ts` is a real bug surface.\n */\n\nimport { z } from 'zod';\n\nexport const I18nLockLocaleStatusSchema = z.enum([\n 'fresh',\n 'stale',\n 'failed',\n 'never_run',\n]);\n\nexport const I18nLockLocaleEntrySchema = z.object({\n status: I18nLockLocaleStatusSchema,\n outputSha: z.string().optional(),\n lastTranslatedAt: z.string().optional(),\n lastErrorMessage: z.string().optional(),\n staleKeys: z.array(z.string()).optional(),\n});\n\nexport const I18nLockUnitEntrySchema = z.object({\n category: z.string(),\n displayLabel: z.string(),\n inputSha: z.string(),\n primarySha: z.string().optional(),\n locales: z.record(z.string(), I18nLockLocaleEntrySchema),\n lastLabellizedAt: z.string().optional(),\n});\n\nexport const I18nLockSectionSchema = z.object({\n sectionVersion: z.literal(1),\n primaryLocale: z.string().min(1),\n trackedLocales: z.array(z.string().min(1)),\n units: z.record(z.string(), I18nLockUnitEntrySchema),\n});\n"]}
1
+ {"version":3,"file":"wildo-saas-lock.schemas.js","sourceRoot":"","sources":["../../../../src/core/lock/wildo-saas-lock.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,IAAI,CAAC;IAC/C,OAAO;IACP,OAAO;IACP,QAAQ;IACR,WAAW;CACZ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,MAAM,EAAE,0BAA0B;IAClC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,yBAAyB,CAAC;IACxD,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC5B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAChC,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC1C,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,uBAAuB,CAAC;CACrD,CAAC,CAAC","sourcesContent":["/**\n * Zod schemas mirroring the companion-owned section types in\n * `wildo-saas-lock.models.ts`.\n *\n * These are passed to the shared lockfile library\n * (`@wildo-ai/platform-config-lib > withLockfileMutate /\n * readWildoSaasLock`) as `sectionSchemas: { i18n: I18nLockSectionSchema }`\n * so the i18n payload is validated on every read + write — closing\n * the M-1.1 gap from the Phase 1 review (companion called the\n * shared library WITHOUT validating its own section).\n *\n * Schemas mirror the TypeScript interfaces 1:1; any drift between\n * this file and `wildo-saas-lock.models.ts` is a real bug surface.\n */\n\nimport { z } from 'zod';\n\nexport const I18nLockLocaleStatusSchema = z.enum([\n 'fresh',\n 'stale',\n 'failed',\n 'never_run',\n]);\n\nexport const I18nLockLocaleEntrySchema = z.object({\n status: I18nLockLocaleStatusSchema,\n outputSha: z.string().optional(),\n lastTranslatedAt: z.string().optional(),\n lastErrorMessage: z.string().optional(),\n staleKeys: z.array(z.string()).optional(),\n});\n\nexport const I18nLockUnitEntrySchema = z.object({\n category: z.string(),\n displayLabel: z.string(),\n inputSha: z.string(),\n primarySha: z.string().optional(),\n locales: z.record(z.string(), I18nLockLocaleEntrySchema),\n lastLabellizedAt: z.string().optional(),\n});\n\nexport const I18nLockSectionSchema = z.object({\n sectionVersion: z.literal(1),\n primaryLocale: z.string().min(1),\n trackedLocales: z.array(z.string().min(1)),\n units: z.record(z.string(), I18nLockUnitEntrySchema),\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"application-runtime-liveness.companion.d.ts","sourceRoot":"","sources":["../../../../../src/core/runtime/application-runtime-liveness.companion.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,6BAA6B;IAC5C,kGAAkG;IAClG,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,6GAA6G;IAC7G,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAoBD;;;;GAIG;AACH,wBAAsB,kCAAkC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,6BAA6B,EAAE,GAAG,SAAS,CAAC,CAuBxI"}
1
+ {"version":3,"file":"application-runtime-liveness.companion.d.ts","sourceRoot":"","sources":["../../../../src/core/runtime/application-runtime-liveness.companion.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,6BAA6B;IAC5C,kGAAkG;IAClG,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,6GAA6G;IAC7G,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAoBD;;;;GAIG;AACH,wBAAsB,kCAAkC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,6BAA6B,EAAE,GAAG,SAAS,CAAC,CAuBxI"}
@@ -1 +1 @@
1
- {"version":3,"file":"application-runtime-liveness.companion.js","sourceRoot":"","sources":["../../../../../src/core/runtime/application-runtime-liveness.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AA2BjC;;;;GAIG;AACH,MAAM,uBAAuB,GAAG,QAAQ,CAAC;AAEzC,SAAS,cAAc,CAAC,GAAY;IAClC,IAAI,OAAO,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E,OAAO,MAAM,CAAC,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;YACnH,OAAO,EAAE,OAAO,MAAM,CAAC,OAAO,KAAK,QAAQ,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI;SACjG,CAAC,CAAC;IACL,CAAC;IACD,OAAO,WAAW,CAAC;AACrB,CAAC","sourcesContent":["import { readdir, readFile } from 'node:fs/promises';\nimport { join } from 'node:path';\n\n/**\n * Which of the application's supervised runtimes CANNOT START right now (#1537).\n *\n * The creation lane never asked whether the application it builds is alive. On the first end-to-end\n * run the backend crashed on a missing column, the runtime supervisor respawned it five times and\n * PAUSED with `CRASH_RESPAWN_EXHAUSTED`, and the build went on landing tasks above it for hours while\n * Home read \"The application works\" as progress. The supervisor had decided, and said so on every\n * diagnostics cycle; nothing in the lane read it.\n *\n * So this reads exactly that decision rather than probing anything: each supervisor publishes its\n * state to `.wildo-saas/runtime-signals/supervisors/<label>.json`, and PAUSED is the supervisor\n * stating it will not start the runtime until something changes — a crash budget spent, or a\n * readiness condition (a migration owed, a dependency not built) that respawning cannot satisfy.\n *\n * Only a LIVE supervisor's word counts. When the dev stack is stopped the files stay behind holding\n * their last state, and a stale PAUSED would report an application down that nobody is running; its\n * producer's pid being gone makes that entry say nothing, rather than something false.\n */\nexport interface UnavailableApplicationRuntime {\n /** The supervisor's label — the runtime's name in the dev loop (`backend-api`, `main-app`, …). */\n readonly label: string;\n /** Why it is paused, as the supervisor names it (`CRASH_RESPAWN_EXHAUSTED`, a readiness reason), or null. */\n readonly blocker: string | null;\n}\n\n/*\n * semantic-literal-boundary: the dev loop's supervisor protocol is written by\n * `scripts/dev-orchestrator/local-dev-protocol.mjs` (`LocalDevSupervisorState.PAUSED`), a dependency-free\n * script the distributed companion cannot import. This is the one place its value is read.\n */\nconst SUPERVISOR_STATE_PAUSED = 'PAUSED';\n\nfunction isProcessAlive(pid: unknown): boolean {\n if (typeof pid !== 'number' || !Number.isInteger(pid) || pid <= 0) return false;\n try {\n process.kill(pid, 0);\n return true;\n } catch (error) {\n // EPERM: the process exists and belongs to someone else — alive.\n return (error as NodeJS.ErrnoException).code === 'EPERM';\n }\n}\n\n/**\n * The application's runtimes whose live supervisor has paused them. `undefined` when the application\n * runs under no supervised dev loop (no supervisor directory), which is \"cannot tell\" and never \"all\n * up\"; an empty list means every supervisor that could answer says its runtime is up or starting.\n */\nexport async function readUnavailableApplicationRuntimes(saasRoot: string): Promise<readonly UnavailableApplicationRuntime[] | undefined> {\n const directory = join(saasRoot, '.wildo-saas', 'runtime-signals', 'supervisors');\n let entries: string[];\n try {\n entries = await readdir(directory);\n } catch {\n return undefined;\n }\n const unavailable: UnavailableApplicationRuntime[] = [];\n for (const entry of entries.filter((name) => name.endsWith('.json')).sort()) {\n let status: Record<string, unknown>;\n try {\n status = JSON.parse(await readFile(join(directory, entry), 'utf8')) as Record<string, unknown>;\n } catch {\n continue;\n }\n if (status.state !== SUPERVISOR_STATE_PAUSED || !isProcessAlive(status.producerPid)) continue;\n unavailable.push({\n label: typeof status.label === 'string' && status.label.length > 0 ? status.label : entry.slice(0, -'.json'.length),\n blocker: typeof status.blocker === 'string' && status.blocker.length > 0 ? status.blocker : null,\n });\n }\n return unavailable;\n}\n"]}
1
+ {"version":3,"file":"application-runtime-liveness.companion.js","sourceRoot":"","sources":["../../../../src/core/runtime/application-runtime-liveness.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AA2BjC;;;;GAIG;AACH,MAAM,uBAAuB,G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AW,CAAC;YAAE,SAAS;QAC9F,WAAW,CAAC,IAAI,CAAC;YACf,KAAK,EAAE,OAAO,MAAM,CAAC,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;YACnH,OAAO,EAAE,OAAO,MAAM,CAAC,OAAO,KAAK,QAAQ,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI;SACjG,CAAC,CAAC;IACL,CAAC;IACD,OAAO,WAAW,CAAC;AACrB,CAAC","sourcesContent":["import { readdir, readFile } from 'node:fs/promises';\nimport { join } from 'node:path';\n\n/**\n * Which of the application's supervised runtimes CANNOT START right now (#1537).\n *\n * The creation lane never asked whether the application it builds is alive. On the first end-to-end\n * run the backend crashed on a missing column, the runtime supervisor respawned it five times and\n * PAUSED with `CRASH_RESPAWN_EXHAUSTED`, and the build went on landing tasks above it for hours while\n * Home read \"The application works\" as progress. The supervisor had decided, and said so on every\n * diagnostics cycle; nothing in the lane read it.\n *\n * So this reads exactly that decision rather than probing anything: each supervisor publishes its\n * state to `.wildo-saas/runtime-signals/supervisors/<label>.json`, and PAUSED is the supervisor\n * stating it will not start the runtime until something changes — a crash budget spent, or a\n * readiness condition (a migration owed, a dependency not built) that respawning cannot satisfy.\n *\n * Only a LIVE supervisor's word counts. When the dev stack is stopped the files stay behind holding\n * their last state, and a stale PAUSED would report an application down that nobody is running; its\n * producer's pid being gone makes that entry say nothing, rather than something false.\n */\nexport interface UnavailableApplicationRuntime {\n /** The supervisor's label — the runtime's name in the dev loop (`backend-api`, `main-app`, …). */\n readonly label: string;\n /** Why it is paused, as the supervisor names it (`CRASH_RESPAWN_EXHAUSTED`, a readiness reason), or null. */\n readonly blocker: string | null;\n}\n\n/*\n * semantic-literal-boundary: the dev loop's supervisor protocol is written by\n * `scripts/dev-orchestrator/local-dev-protocol.mjs` (`LocalDevSupervisorState.PAUSED`), a dependency-free\n * script the distributed companion cannot import. This is the one place its value is read.\n */\nconst SUPERVISOR_STATE_PAUSED = 'PAUSED';\n\nfunction isProcessAlive(pid: unknown): boolean {\n if (typeof pid !== 'number' || !Number.isInteger(pid) || pid <= 0) return false;\n try {\n process.kill(pid, 0);\n return true;\n } catch (error) {\n // EPERM: the process exists and belongs to someone else — alive.\n return (error as NodeJS.ErrnoException).code === 'EPERM';\n }\n}\n\n/**\n * The application's runtimes whose live supervisor has paused them. `undefined` when the application\n * runs under no supervised dev loop (no supervisor directory), which is \"cannot tell\" and never \"all\n * up\"; an empty list means every supervisor that could answer says its runtime is up or starting.\n */\nexport async function readUnavailableApplicationRuntimes(saasRoot: string): Promise<readonly UnavailableApplicationRuntime[] | undefined> {\n const directory = join(saasRoot, '.wildo-saas', 'runtime-signals', 'supervisors');\n let entries: string[];\n try {\n entries = await readdir(directory);\n } catch {\n return undefined;\n }\n const unavailable: UnavailableApplicationRuntime[] = [];\n for (const entry of entries.filter((name) => name.endsWith('.json')).sort()) {\n let status: Record<string, unknown>;\n try {\n status = JSON.parse(await readFile(join(directory, entry), 'utf8')) as Record<string, unknown>;\n } catch {\n continue;\n }\n if (status.state !== SUPERVISOR_STATE_PAUSED || !isProcessAlive(status.producerPid)) continue;\n unavailable.push({\n label: typeof status.label === 'string' && status.label.length > 0 ? status.label : entry.slice(0, -'.json'.length),\n blocker: typeof status.blocker === 'string' && status.blocker.length > 0 ? status.blocker : null,\n });\n }\n return unavailable;\n}\n"]}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Record where this companion listens, for the console's fast readers (#1657).
3
+ *
4
+ * Best-effort BY DESIGN: the record is a convenience for a hook and a status line, and a companion that
5
+ * cannot write it still serves every request. A failure is returned for the caller to log, never thrown.
6
+ */
7
+ export declare function recordCompanionEndpoint(saasRoot: string, origin: string): string | null;
8
+ //# sourceMappingURL=companion-endpoint-record.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"companion-endpoint-record.d.ts","sourceRoot":"","sources":["../../../../src/core/runtime/companion-endpoint-record.ts"],"names":[],"mappings":"AAMA;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAUvF"}
@@ -0,0 +1,23 @@
1
+ import { mkdirSync, writeFileSync } from 'node:fs';
2
+ import { join } from 'node:path';
3
+ import { resolveAppLayout } from '@wildo-ai/platform-config-lib';
4
+ import { COMPANION_ENDPOINT_FILE_NAME } from '@wildo-ai/platform-core-shared';
5
+ /**
6
+ * Record where this companion listens, for the console's fast readers (#1657).
7
+ *
8
+ * Best-effort BY DESIGN: the record is a convenience for a hook and a status line, and a companion that
9
+ * cannot write it still serves every request. A failure is returned for the caller to log, never thrown.
10
+ */
11
+ export function recordCompanionEndpoint(saasRoot, origin) {
12
+ try {
13
+ const stateHome = resolveAppLayout(saasRoot).stateHome;
14
+ mkdirSync(stateHome, { recursive: true });
15
+ const record = { origin, pid: process.pid, startedAt: new Date().toISOString() };
16
+ writeFileSync(join(stateHome, COMPANION_ENDPOINT_FILE_NAME), `${JSON.stringify(record, null, 2)}\n`);
17
+ return null;
18
+ }
19
+ catch (error) {
20
+ return error instanceof Error ? error.message : String(error);
21
+ }
22
+ }
23
+ //# sourceMappingURL=companion-endpoint-record.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"companion-endpoint-record.js","sourceRoot":"","sources":["../../../../src/core/runtime/companion-endpoint-record.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,4BAA4B,EAAgC,MAAM,gCAAgC,CAAC;AAE5G;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB,CAAC,QAAgB,EAAE,MAAc;IACtE,IAAI,CAAC;QACH,MAAM,SAAS,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC;QACvD,SAAS,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAC1C,MAAM,MAAM,GAA4B,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC;QAC1G,aAAa,CAAC,IAAI,CAAC,SAAS,EAAE,4BAA4B,CAAC,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;QACrG,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAChE,CAAC;AACH,CAAC","sourcesContent":["import { mkdirSync, writeFileSync } from 'node:fs';\nimport { join } from 'node:path';\n\nimport { resolveAppLayout } from '@wildo-ai/platform-config-lib';\nimport { COMPANION_ENDPOINT_FILE_NAME, type CompanionEndpointRecord } from '@wildo-ai/platform-core-shared';\n\n/**\n * Record where this companion listens, for the console's fast readers (#1657).\n *\n * Best-effort BY DESIGN: the record is a convenience for a hook and a status line, and a companion that\n * cannot write it still serves every request. A failure is returned for the caller to log, never thrown.\n */\nexport function recordCompanionEndpoint(saasRoot: string, origin: string): string | null {\n try {\n const stateHome = resolveAppLayout(saasRoot).stateHome;\n mkdirSync(stateHome, { recursive: true });\n const record: CompanionEndpointRecord = { origin, pid: process.pid, startedAt: new Date().toISOString() };\n writeFileSync(join(stateHome, COMPANION_ENDPOINT_FILE_NAME), `${JSON.stringify(record, null, 2)}\\n`);\n return null;\n } catch (error) {\n return error instanceof Error ? error.message : String(error);\n }\n}\n"]}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * The companion's package root: the nearest directory above `fromDirectory` holding a `package.json`.
3
+ *
4
+ * Anchored on the manifest rather than on a relative hop, because the hop differs by layout: this module is
5
+ * `src/core/runtime/` in the source tree and `dist/esm/core/runtime/` in the delivered companion, so a fixed
6
+ * `../../../.env` named the package root in one and `dist/.env` in the other. The #1637 review found the
7
+ * delivered companion resolving that `dist/.env`, which does not exist — while the file `config sync` writes,
8
+ * and the one the supervisor starts the companion beside (`--cwd <package root>`), is `<package root>/.env`.
9
+ */
10
+ export declare function resolveCompanionPackageRoot(fromDirectory?: string): string;
11
+ /**
12
+ * The environment file the companion loads at start: `<package root>/.env`, written by
13
+ * `wildo config sync --domain env-files`. ONE definition, read by the entry point and by the in-process
14
+ * secret apply below, so the two cannot disagree about which file a restart would load.
15
+ */
16
+ export declare const COMPANION_ENV_FILE_PATH: string;
17
+ /**
18
+ * Apply one variable of the companion's REGENERATED `.env` to this process, as a restart would (#1637).
19
+ *
20
+ * The workbench changes a secret through a request this process serves, so restarting the companion
21
+ * would end that request and any coding or playbook run in flight. Provider secrets are read from
22
+ * `process.env` at call time (`ExternalProvidersRegistryBackendService.getProviderSecret`), so setting the
23
+ * variable is enough for the next call to use it. The value is read back from the file `config sync`
24
+ * just wrote — the exact bytes a restart would load — rather than from the request, so a key the
25
+ * companion's scope does not receive (the env builder confines it) is removed here too, never injected.
26
+ *
27
+ * Returns whether the variable is now present.
28
+ */
29
+ export declare function applyCompanionEnvVariable(envVarName: string, envFilePath?: string): boolean;
30
+ //# sourceMappingURL=companion-env-file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"companion-env-file.d.ts","sourceRoot":"","sources":["../../../../src/core/runtime/companion-env-file.ts"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CAAC,aAAa,GAAE,MAAqD,GAAG,MAAM,CAQxH;AAED;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,QAAmD,CAAC;AAExF;;;;;;;;;;;GAWG;AACH,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,GAAE,MAAgC,GAAG,OAAO,CASpH"}
@@ -0,0 +1,53 @@
1
+ import { existsSync, readFileSync } from 'node:fs';
2
+ import path from 'node:path';
3
+ import { fileURLToPath } from 'node:url';
4
+ import dotenv from 'dotenv';
5
+ /**
6
+ * The companion's package root: the nearest directory above `fromDirectory` holding a `package.json`.
7
+ *
8
+ * Anchored on the manifest rather than on a relative hop, because the hop differs by layout: this module is
9
+ * `src/core/runtime/` in the source tree and `dist/esm/core/runtime/` in the delivered companion, so a fixed
10
+ * `../../../.env` named the package root in one and `dist/.env` in the other. The #1637 review found the
11
+ * delivered companion resolving that `dist/.env`, which does not exist — while the file `config sync` writes,
12
+ * and the one the supervisor starts the companion beside (`--cwd <package root>`), is `<package root>/.env`.
13
+ */
14
+ export function resolveCompanionPackageRoot(fromDirectory = path.dirname(fileURLToPath(import.meta.url))) {
15
+ let directory = fromDirectory;
16
+ for (;;) {
17
+ if (existsSync(path.join(directory, 'package.json')))
18
+ return directory;
19
+ const parent = path.dirname(directory);
20
+ if (parent === directory)
21
+ throw new Error(`No package.json above ${fromDirectory}: the companion's package root cannot be found.`);
22
+ directory = parent;
23
+ }
24
+ }
25
+ /**
26
+ * The environment file the companion loads at start: `<package root>/.env`, written by
27
+ * `wildo config sync --domain env-files`. ONE definition, read by the entry point and by the in-process
28
+ * secret apply below, so the two cannot disagree about which file a restart would load.
29
+ */
30
+ export const COMPANION_ENV_FILE_PATH = path.join(resolveCompanionPackageRoot(), '.env');
31
+ /**
32
+ * Apply one variable of the companion's REGENERATED `.env` to this process, as a restart would (#1637).
33
+ *
34
+ * The workbench changes a secret through a request this process serves, so restarting the companion
35
+ * would end that request and any coding or playbook run in flight. Provider secrets are read from
36
+ * `process.env` at call time (`ExternalProvidersRegistryBackendService.getProviderSecret`), so setting the
37
+ * variable is enough for the next call to use it. The value is read back from the file `config sync`
38
+ * just wrote — the exact bytes a restart would load — rather than from the request, so a key the
39
+ * companion's scope does not receive (the env builder confines it) is removed here too, never injected.
40
+ *
41
+ * Returns whether the variable is now present.
42
+ */
43
+ export function applyCompanionEnvVariable(envVarName, envFilePath = COMPANION_ENV_FILE_PATH) {
44
+ const parsed = dotenv.parse(readFileSync(envFilePath, 'utf8'));
45
+ const value = parsed[envVarName];
46
+ if (value === undefined || value.length === 0) {
47
+ delete process.env[envVarName];
48
+ return false;
49
+ }
50
+ process.env[envVarName] = value;
51
+ return true;
52
+ }
53
+ //# sourceMappingURL=companion-env-file.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"companion-env-file.js","sourceRoot":"","sources":["../../../../src/core/runtime/companion-env-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B;;;;;;;;GAQG;AACH,MAAM,UAAU,2BAA2B,CAAC,gBAAwB,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9G,IAAI,SAAS,GAAG,aAAa,CAAC;IAC9B,SAAS,CAAC;QACR,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;YAAE,OAAO,SAAS,CAAC;QACvE,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QACvC,IAAI,MAAM,KAAK,SAAS;YAAE,MAAM,IAAI,KAAK,CAAC,yBAAyB,aAAa,iDAAiD,CAAC,CAAC;QACnI,SAAS,GAAG,MAAM,CAAC;IACrB,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,MAAM,CAAC,CAAC;AAExF;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,yBAAyB,CAAC,UAAkB,EAAE,cAAsB,uBAAuB;IACzG,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;IAC/D,MAAM,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IACjC,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC9C,OAAO,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAC/B,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC;IAChC,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import { existsSync, readFileSync } from 'node:fs';\nimport path from 'node:path';\nimport { fileURLToPath } from 'node:url';\n\nimport dotenv from 'dotenv';\n\n/**\n * The companion's package root: the nearest directory above `fromDirectory` holding a `package.json`.\n *\n * Anchored on the manifest rather than on a relative hop, because the hop differs by layout: this module is\n * `src/core/runtime/` in the source tree and `dist/esm/core/runtime/` in the delivered companion, so a fixed\n * `../../../.env` named the package root in one and `dist/.env` in the other. The #1637 review found the\n * delivered companion resolving that `dist/.env`, which does not exist — while the file `config sync` writes,\n * and the one the supervisor starts the companion beside (`--cwd <package root>`), is `<package root>/.env`.\n */\nexport function resolveCompanionPackageRoot(fromDirectory: string = path.dirname(fileURLToPath(import.meta.url))): string {\n let directory = fromDirectory;\n for (;;) {\n if (existsSync(path.join(directory, 'package.json'))) return directory;\n const parent = path.dirname(directory);\n if (parent === directory) throw new Error(`No package.json above ${fromDirectory}: the companion's package root cannot be found.`);\n directory = parent;\n }\n}\n\n/**\n * The environment file the companion loads at start: `<package root>/.env`, written by\n * `wildo config sync --domain env-files`. ONE definition, read by the entry point and by the in-process\n * secret apply below, so the two cannot disagree about which file a restart would load.\n */\nexport const COMPANION_ENV_FILE_PATH = path.join(resolveCompanionPackageRoot(), '.env');\n\n/**\n * Apply one variable of the companion's REGENERATED `.env` to this process, as a restart would (#1637).\n *\n * The workbench changes a secret through a request this process serves, so restarting the companion\n * would end that request and any coding or playbook run in flight. Provider secrets are read from\n * `process.env` at call time (`ExternalProvidersRegistryBackendService.getProviderSecret`), so setting the\n * variable is enough for the next call to use it. The value is read back from the file `config sync`\n * just wrote — the exact bytes a restart would load — rather than from the request, so a key the\n * companion's scope does not receive (the env builder confines it) is removed here too, never injected.\n *\n * Returns whether the variable is now present.\n */\nexport function applyCompanionEnvVariable(envVarName: string, envFilePath: string = COMPANION_ENV_FILE_PATH): boolean {\n const parsed = dotenv.parse(readFileSync(envFilePath, 'utf8'));\n const value = parsed[envVarName];\n if (value === undefined || value.length === 0) {\n delete process.env[envVarName];\n return false;\n }\n process.env[envVarName] = value;\n return true;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"companion-startup-assembly.d.ts","sourceRoot":"","sources":["../../../../../src/core/runtime/companion-startup-assembly.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EAI1B,MAAM,4BAA4B,CAAC;AA2BpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AAI7F;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;IACjE,QAAQ,CAAC,aAAa,EAAE,sBAAsB,CAAC;CAChD;AA6DD;;;;;;;;;;;GAWG;AACH,wBAAsB,wBAAwB,CAC5C,gBAAgB,EAAE,gBAAgB,EAClC,aAAa,EAAE,sBAAsB,GACpC,OAAO,CAAC,yBAAyB,CAAC,CAwIpC"}
1
+ {"version":3,"file":"companion-startup-assembly.d.ts","sourceRoot":"","sources":["../../../../src/core/runtime/companion-startup-assembly.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EAI1B,MAAM,4BAA4B,CAAC;AA2BpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AAI7F;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;IACjE,QAAQ,CAAC,aAAa,EAAE,sBAAsB,CAAC;CAChD;AA6DD;;;;;;;;;;;GAWG;AACH,wBAAsB,wBAAwB,CAC5C,gBAAgB,EAAE,gBAAgB,EAClC,aAAa,EAAE,sBAAsB,GACpC,OAAO,CAAC,yBAAyB,CAAC,CAwIpC"}