@wildo-ai/dev-companion 1.1.4 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1429) 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__/chdir-dogfood-app.setup.d.ts.map +1 -1
  4. package/dist/esm/__tests__/internal-test-view.d.ts.map +1 -1
  5. package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
  6. package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
  7. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js +0 -1
  8. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
  9. package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
  10. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +0 -1
  11. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
  12. package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
  13. package/dist/esm/brand/services/brand-accept.companion.service.d.ts +8 -0
  14. package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
  15. package/dist/esm/brand/services/brand-accept.companion.service.js +30 -5
  16. package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
  17. package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts +21 -0
  18. package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -0
  19. package/dist/esm/brand/services/brand-propagation.companion.utils.js +33 -0
  20. package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -0
  21. package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts +7 -0
  22. package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
  23. package/dist/esm/brand/services/logo-deliberation.companion.service.js +7 -0
  24. package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
  25. package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
  26. package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
  27. package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
  28. package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
  29. package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
  30. package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
  31. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts +143 -0
  32. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -0
  33. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js +84 -0
  34. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -0
  35. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +197 -16
  36. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  37. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +255 -12
  38. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  39. package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts +85 -0
  40. package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -0
  41. package/dist/esm/claude-cli/models/coding-session-frame-retention.js +122 -0
  42. package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -0
  43. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +102 -0
  44. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -0
  45. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +139 -0
  46. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -0
  47. package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts +94 -0
  48. package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -0
  49. package/dist/esm/claude-cli/models/parked-question-answer.models.js +137 -0
  50. package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -0
  51. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts +16 -0
  52. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -0
  53. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js +46 -0
  54. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -0
  55. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +50 -0
  56. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -0
  57. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +157 -0
  58. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -0
  59. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +279 -0
  60. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -0
  61. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +754 -0
  62. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -0
  63. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +957 -83
  64. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  65. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +2743 -410
  66. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  67. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts +115 -0
  68. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -0
  69. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js +192 -0
  70. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -0
  71. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts +215 -7
  72. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
  73. package/dist/esm/claude-cli/services/git-change-set.companion.service.js +532 -60
  74. package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
  75. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts +20 -0
  76. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -0
  77. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js +29 -0
  78. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -0
  79. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +38 -6
  80. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  81. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +156 -12
  82. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  83. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +5 -4
  84. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  85. package/dist/esm/claude-cli/services/research-evidence-store.companion.js +13 -4
  86. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  87. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
  88. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
  89. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js +8 -1
  90. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
  91. package/dist/esm/companion-api/companion-api.schemas.d.ts +408 -140
  92. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  93. package/dist/esm/companion-api/companion-api.schemas.js +72 -7
  94. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  95. package/dist/esm/companion-api/companion-error-guidance.models.d.ts +25 -0
  96. package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -0
  97. package/dist/esm/companion-api/companion-error-guidance.models.js +26 -0
  98. package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -0
  99. package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts +44 -0
  100. package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -0
  101. package/dist/esm/companion-api/controllers/companion-file-route-confinement.js +111 -0
  102. package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -0
  103. package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
  104. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts +6 -14
  105. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
  106. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +20 -17
  107. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
  108. package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts +12 -0
  109. package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -0
  110. package/dist/esm/companion-api/controllers/companion-trace-exemptions.js +20 -0
  111. package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -0
  112. package/dist/esm/companion-api/controllers/companion.controller.d.ts +268 -21
  113. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  114. package/dist/esm/companion-api/controllers/companion.controller.js +998 -171
  115. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  116. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts +39 -4
  117. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
  118. package/dist/esm/core/auth/companion-auth-floor.companion.service.js +39 -4
  119. package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
  120. package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
  121. package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
  122. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
  123. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
  124. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
  125. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
  126. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.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/offer-catalog-context.factory.d.ts.map +1 -1
  129. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
  130. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
  131. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
  132. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -1
  133. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -1
  134. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
  135. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
  136. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
  137. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
  138. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
  139. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js +6 -38
  140. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
  141. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts +54 -0
  142. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -0
  143. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js +78 -0
  144. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -0
  145. package/dist/esm/core/config/primary-language.companion.utils.d.ts +26 -0
  146. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  147. package/dist/esm/core/config/primary-language.companion.utils.js +31 -0
  148. package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
  149. package/dist/esm/core/context/companion-context.d.ts.map +1 -1
  150. package/dist/esm/core/context/companion-context.js +4 -0
  151. package/dist/esm/core/context/companion-context.js.map +1 -1
  152. package/dist/esm/core/context/companion-package-loaders.companion.d.ts +57 -0
  153. package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
  154. package/dist/esm/core/context/companion-package-loaders.companion.js +179 -43
  155. package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
  156. package/dist/esm/core/context/draft-family-values.companion.d.ts +23 -0
  157. package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -0
  158. package/dist/esm/core/context/draft-family-values.companion.js +49 -0
  159. package/dist/esm/core/context/draft-family-values.companion.js.map +1 -0
  160. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  161. package/dist/esm/core/inject/models/container.js +32 -4
  162. package/dist/esm/core/inject/models/container.js.map +1 -1
  163. package/dist/esm/core/inject/models/service-types.d.ts +16 -2
  164. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  165. package/dist/esm/core/inject/models/service-types.js +18 -2
  166. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  167. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  168. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js +90 -2
  169. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
  170. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts +37 -1
  171. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  172. package/dist/esm/core/introspection/models/companion-introspection.models.js +61 -0
  173. package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
  174. package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts +41 -0
  175. package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -0
  176. package/dist/esm/core/introspection/resources/application-secrets.companion.js +155 -0
  177. package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -0
  178. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts +76 -0
  179. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -0
  180. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js +197 -0
  181. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -0
  182. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts +47 -0
  183. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -0
  184. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +199 -0
  185. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -0
  186. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts +93 -0
  187. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -0
  188. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +290 -0
  189. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -0
  190. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +42 -0
  191. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  192. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +788 -23
  193. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  194. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts +580 -17
  195. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  196. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +1678 -91
  197. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  198. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts +80 -37
  199. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
  200. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js +181 -19
  201. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
  202. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts +1 -1
  203. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  204. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js +21 -15
  205. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
  206. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
  207. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts +21 -0
  208. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  209. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +21 -3
  210. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  211. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
  212. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js +11 -3
  213. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
  214. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +15 -5
  215. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  216. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js +28 -15
  217. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
  218. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts +24 -0
  219. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
  220. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js +29 -5
  221. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -1
  222. package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
  223. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts +116 -0
  224. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -0
  225. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js +223 -0
  226. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -0
  227. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +11 -6
  228. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
  229. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
  230. package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts +2 -1
  231. package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
  232. package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
  233. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts +4 -0
  234. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
  235. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.js.map +1 -1
  236. package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
  237. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
  238. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
  239. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  240. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +153 -52
  241. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  242. package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
  243. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
  244. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts +45 -3
  245. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
  246. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js +8 -1
  247. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
  248. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
  249. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts +33 -0
  250. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -0
  251. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js +59 -0
  252. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -0
  253. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
  254. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts +33 -0
  255. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
  256. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js +46 -140
  257. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
  258. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts +18 -2
  259. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
  260. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js +147 -48
  261. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
  262. package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
  263. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
  264. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +54 -1
  265. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
  266. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +242 -28
  267. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
  268. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts +79 -0
  269. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -0
  270. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js +49 -0
  271. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -0
  272. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts +13 -0
  273. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  274. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +334 -228
  275. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
  276. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts +72 -0
  277. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -0
  278. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js +123 -0
  279. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -0
  280. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts +184 -0
  281. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -0
  282. package/dist/esm/core/introspection/workspace-element-index.companion.js +311 -0
  283. package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -0
  284. package/dist/esm/core/introspection/workspace-elements.companion.d.ts +54 -0
  285. package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -0
  286. package/dist/esm/core/introspection/workspace-elements.companion.js +43 -0
  287. package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -0
  288. package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
  289. package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
  290. package/dist/esm/core/lock/wildo-saas-lock.models.d.ts +7 -0
  291. package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
  292. package/dist/esm/core/lock/wildo-saas-lock.models.js.map +1 -1
  293. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts +7 -4
  294. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
  295. package/dist/esm/core/lock/wildo-saas-lock.schemas.js +1 -0
  296. package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
  297. package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts +31 -0
  298. package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -0
  299. package/dist/esm/core/runtime/application-runtime-liveness.companion.js +53 -0
  300. package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -0
  301. package/dist/esm/core/runtime/companion-endpoint-record.d.ts +8 -0
  302. package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -0
  303. package/dist/esm/core/runtime/companion-endpoint-record.js +23 -0
  304. package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -0
  305. package/dist/esm/core/runtime/companion-env-file.d.ts +30 -0
  306. package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -0
  307. package/dist/esm/core/runtime/companion-env-file.js +53 -0
  308. package/dist/esm/core/runtime/companion-env-file.js.map +1 -0
  309. package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
  310. package/dist/esm/core/runtime/companion-startup-assembly.js +30 -1
  311. package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
  312. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +5 -0
  313. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
  314. package/dist/esm/core/runtime/dev-compile-quiet.companion.js +11 -0
  315. package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
  316. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts +56 -0
  317. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -0
  318. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js +97 -0
  319. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -0
  320. package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
  321. package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts +54 -0
  322. package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -0
  323. package/dist/esm/core/runtime/services/file-storage-initialization.companion.js +54 -0
  324. package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -0
  325. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +51 -2
  326. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  327. package/dist/esm/core/runtime/services/start-companion-application.service.js +290 -34
  328. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  329. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
  330. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts +14 -4
  331. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  332. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +69 -28
  333. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  334. package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
  335. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
  336. package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
  337. package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
  338. package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts +0 -4
  339. package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
  340. package/dist/esm/core/specifications/cross-registry-rendering.shared.js +0 -4
  341. package/dist/esm/core/specifications/cross-registry-rendering.shared.js.map +1 -1
  342. package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
  343. package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
  344. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
  345. package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
  346. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
  347. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
  348. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.js.map +1 -1
  349. package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
  350. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
  351. package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
  352. package/dist/esm/core/specifications/onboarding-element-rendering.shared.js +6 -34
  353. package/dist/esm/core/specifications/onboarding-element-rendering.shared.js.map +1 -1
  354. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
  355. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.js.map +1 -1
  356. package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
  357. package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
  358. package/dist/esm/core/specifications/resource-specification-context.factory.js +12 -1
  359. package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
  360. package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
  361. package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
  362. package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
  363. package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
  364. package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
  365. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
  366. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
  367. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
  368. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.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-custom-implementation-context.template.d.ts.map +1 -1
  371. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
  372. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
  373. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
  374. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
  375. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
  376. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
  377. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
  378. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
  379. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
  380. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
  381. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
  382. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
  383. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
  384. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
  385. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
  386. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
  387. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
  388. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
  389. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
  390. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
  391. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
  392. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
  393. package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
  394. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
  395. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
  396. package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
  397. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
  398. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
  399. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
  400. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
  401. package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
  402. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
  403. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
  404. package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
  405. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
  406. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
  407. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
  408. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
  409. package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
  410. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts +4 -2
  411. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
  412. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js +12 -2
  413. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
  414. package/dist/esm/core/traceability/companion-traceability.models.d.ts +1 -7
  415. package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
  416. package/dist/esm/core/traceability/companion-traceability.models.js +3 -5
  417. package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
  418. package/dist/esm/core/traceability/companion-traceability.service.d.ts +21 -1
  419. package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
  420. package/dist/esm/core/traceability/companion-traceability.service.js +25 -1
  421. package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
  422. package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
  423. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts +45 -0
  424. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -0
  425. package/dist/esm/core/utils/derived-input-signature.companion.utils.js +96 -0
  426. package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -0
  427. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts +35 -0
  428. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -0
  429. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +119 -0
  430. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -0
  431. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts +11 -0
  432. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -0
  433. package/dist/esm/creation-conversation/creation-conversation.function-tools.js +481 -0
  434. package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -0
  435. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  436. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +0 -2
  437. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  438. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts +19 -1
  439. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
  440. package/dist/esm/deliberations/services/deliberation.companion.service.js +63 -6
  441. package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
  442. package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts +3 -1
  443. package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
  444. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js +7 -2
  445. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
  446. package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
  447. package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
  448. package/dist/esm/email/models/email-template.actors-system.definitions.js +0 -1
  449. package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
  450. package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
  451. package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
  452. package/dist/esm/email/services/email-template.companion.service.d.ts +35 -3
  453. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  454. package/dist/esm/email/services/email-template.companion.service.js +145 -296
  455. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  456. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts +12 -0
  457. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
  458. package/dist/esm/email/utils/email-labels-file-source.utils.js +62 -3
  459. package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
  460. package/dist/esm/email/utils/email-labels-tree.utils.d.ts +52 -0
  461. package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -0
  462. package/dist/esm/email/utils/email-labels-tree.utils.js +261 -0
  463. package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -0
  464. package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
  465. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts +36 -0
  466. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -0
  467. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js +150 -0
  468. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -0
  469. package/dist/esm/executions/services/companion-executions.companion.service.d.ts +54 -4
  470. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  471. package/dist/esm/executions/services/companion-executions.companion.service.js +321 -49
  472. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  473. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  474. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +0 -1
  475. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  476. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  477. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +0 -1
  478. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  479. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
  480. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts +5 -0
  481. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  482. package/dist/esm/expert-personas/services/expert-persona.companion.service.js +68 -8
  483. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  484. package/dist/esm/expert-personas/services/persona-source-ownership.d.ts +8 -0
  485. package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -0
  486. package/dist/esm/expert-personas/services/persona-source-ownership.js +83 -0
  487. package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -0
  488. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts +1 -1
  489. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
  490. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js +1 -1
  491. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js.map +1 -1
  492. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts +4 -4
  493. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
  494. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js +4 -4
  495. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js.map +1 -1
  496. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts +2 -2
  497. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
  498. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js +2 -2
  499. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js.map +1 -1
  500. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
  501. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
  502. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts +5 -10
  503. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
  504. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js +6 -11
  505. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
  506. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts +2 -1
  507. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
  508. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js +2 -1
  509. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js.map +1 -1
  510. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts +1 -1
  511. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
  512. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js +1 -1
  513. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js.map +1 -1
  514. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts +6 -5
  515. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  516. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js +7 -6
  517. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js.map +1 -1
  518. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts +3 -3
  519. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
  520. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js +3 -3
  521. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js.map +1 -1
  522. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
  523. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts +4 -2
  524. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
  525. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js +5 -3
  526. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
  527. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts +2 -1
  528. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
  529. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js +2 -1
  530. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
  531. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts +32 -0
  532. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -0
  533. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js +32 -0
  534. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -0
  535. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts +0 -1
  536. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
  537. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js +0 -1
  538. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
  539. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts +0 -7
  540. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
  541. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js +0 -7
  542. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
  543. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts +69 -0
  544. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -0
  545. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js +69 -0
  546. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -0
  547. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts +26 -0
  548. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -0
  549. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js +26 -0
  550. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -0
  551. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts +18 -0
  552. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -0
  553. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js +18 -0
  554. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -0
  555. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts +3 -3
  556. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
  557. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js +3 -3
  558. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js.map +1 -1
  559. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts +1 -1
  560. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
  561. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js +1 -1
  562. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js.map +1 -1
  563. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts +1 -3
  564. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
  565. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js +1 -3
  566. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
  567. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts +8 -1
  568. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
  569. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js +8 -1
  570. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
  571. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts +10 -10
  572. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
  573. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js +10 -10
  574. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js.map +1 -1
  575. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts +21 -23
  576. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
  577. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js +21 -23
  578. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
  579. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts +1 -0
  580. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
  581. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js +2 -1
  582. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js.map +1 -1
  583. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts +17 -0
  584. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -0
  585. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js +17 -0
  586. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -0
  587. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts +5 -5
  588. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
  589. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js +5 -5
  590. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js.map +1 -1
  591. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts +1 -1
  592. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
  593. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js +1 -1
  594. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js.map +1 -1
  595. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts +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 +1 -1
  598. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js.map +1 -1
  599. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts +16 -2
  600. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
  601. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js +16 -2
  602. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js.map +1 -1
  603. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts +3 -3
  604. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
  605. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js +3 -3
  606. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js.map +1 -1
  607. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
  608. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts +8 -8
  609. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
  610. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js +8 -8
  611. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js.map +1 -1
  612. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts +14 -17
  613. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
  614. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js +14 -17
  615. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
  616. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts +54 -5
  617. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  618. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js +55 -6
  619. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
  620. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts +2 -2
  621. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
  622. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js +2 -2
  623. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js.map +1 -1
  624. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts +1 -1
  625. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
  626. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js +1 -1
  627. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js.map +1 -1
  628. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
  629. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
  630. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts +1 -1
  631. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
  632. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js +1 -1
  633. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js.map +1 -1
  634. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts +1 -1
  635. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
  636. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js +1 -1
  637. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js.map +1 -1
  638. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
  639. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts +2 -2
  640. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
  641. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js +2 -2
  642. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js.map +1 -1
  643. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts +21 -0
  644. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -0
  645. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js +21 -0
  646. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -0
  647. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts +1 -1
  648. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
  649. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js +1 -1
  650. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js.map +1 -1
  651. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts +1 -1
  652. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
  653. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js +1 -1
  654. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js.map +1 -1
  655. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
  656. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
  657. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
  658. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts +2 -2
  659. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
  660. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js +2 -2
  661. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js.map +1 -1
  662. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts +1 -1
  663. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
  664. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js +1 -1
  665. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js.map +1 -1
  666. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
  667. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
  668. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
  669. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts +4 -10
  670. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
  671. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js +4 -10
  672. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
  673. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts +4 -4
  674. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
  675. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js +4 -4
  676. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js.map +1 -1
  677. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts +2 -2
  678. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
  679. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js +2 -2
  680. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js.map +1 -1
  681. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts +1 -1
  682. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
  683. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js +1 -1
  684. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js.map +1 -1
  685. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts +1 -0
  686. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
  687. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js +2 -1
  688. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js.map +1 -1
  689. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts +28 -0
  690. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -0
  691. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +28 -0
  692. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -0
  693. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts +1 -0
  694. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
  695. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js +2 -1
  696. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js.map +1 -1
  697. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts +10 -3
  698. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
  699. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js +11 -4
  700. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
  701. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts +3 -2
  702. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
  703. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js +4 -3
  704. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js.map +1 -1
  705. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts +4 -1
  706. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
  707. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js +5 -2
  708. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
  709. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
  710. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
  711. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
  712. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
  713. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts +3 -3
  714. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
  715. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js +3 -3
  716. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js.map +1 -1
  717. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts +1 -1
  718. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
  719. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js +1 -1
  720. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js.map +1 -1
  721. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts +3 -3
  722. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
  723. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js +3 -3
  724. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
  725. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts +15 -0
  726. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -0
  727. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js +15 -0
  728. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -0
  729. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
  730. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts +12 -0
  731. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -0
  732. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js +12 -0
  733. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -0
  734. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts +1 -1
  735. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
  736. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js +1 -1
  737. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js.map +1 -1
  738. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
  739. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts +1 -1
  740. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
  741. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js +1 -1
  742. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js.map +1 -1
  743. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
  744. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts +5 -3
  745. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
  746. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js +5 -3
  747. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
  748. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts +1 -1
  749. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
  750. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js +1 -1
  751. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js.map +1 -1
  752. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts +3 -0
  753. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
  754. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js +4 -1
  755. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js.map +1 -1
  756. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
  757. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts +1 -1
  758. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
  759. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js +1 -1
  760. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js.map +1 -1
  761. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
  762. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
  763. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts +12 -0
  764. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -0
  765. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js +12 -0
  766. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -0
  767. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts +1 -1
  768. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
  769. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js +1 -1
  770. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js.map +1 -1
  771. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts +1 -1
  772. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
  773. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js +1 -1
  774. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js.map +1 -1
  775. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts +1 -1
  776. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
  777. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js +1 -1
  778. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js.map +1 -1
  779. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts +1 -1
  780. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
  781. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js +1 -1
  782. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js.map +1 -1
  783. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts +1 -1
  784. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
  785. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js +1 -1
  786. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js.map +1 -1
  787. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts +22 -0
  788. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -0
  789. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js +22 -0
  790. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -0
  791. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts +2 -2
  792. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
  793. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js +2 -2
  794. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js.map +1 -1
  795. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
  796. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts +6 -6
  797. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
  798. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js +6 -6
  799. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js.map +1 -1
  800. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts +3 -3
  801. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
  802. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js +3 -3
  803. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js.map +1 -1
  804. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts +16 -8
  805. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
  806. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js +17 -9
  807. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
  808. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts +30 -0
  809. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -0
  810. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js +30 -0
  811. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -0
  812. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
  813. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts +1 -1
  814. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
  815. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js +1 -1
  816. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js.map +1 -1
  817. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts +47 -20
  818. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
  819. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js +47 -20
  820. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
  821. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
  822. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts +3 -0
  823. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
  824. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js +4 -1
  825. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
  826. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts +5 -5
  827. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
  828. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js +5 -5
  829. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js.map +1 -1
  830. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
  831. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
  832. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
  833. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts +1 -1
  834. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
  835. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js +1 -1
  836. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js.map +1 -1
  837. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
  838. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
  839. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts +13 -0
  840. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -0
  841. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js +13 -0
  842. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -0
  843. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts +13 -0
  844. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -0
  845. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js +13 -0
  846. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -0
  847. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
  848. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
  849. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts +3 -3
  850. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  851. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js +3 -3
  852. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js.map +1 -1
  853. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts +15 -0
  854. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -0
  855. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js +15 -0
  856. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -0
  857. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts +5 -3
  858. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
  859. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js +6 -4
  860. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js.map +1 -1
  861. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts +10 -9
  862. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
  863. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js +11 -10
  864. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js.map +1 -1
  865. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -1
  866. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -1
  867. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts +5 -5
  868. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
  869. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js +5 -5
  870. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js.map +1 -1
  871. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts +6 -6
  872. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
  873. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js +6 -6
  874. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
  875. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts +7 -7
  876. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
  877. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js +7 -7
  878. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js.map +1 -1
  879. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts +1 -1
  880. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
  881. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js +1 -1
  882. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js.map +1 -1
  883. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts +1 -1
  884. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
  885. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js +1 -1
  886. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js.map +1 -1
  887. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts +4 -4
  888. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
  889. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js +4 -4
  890. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js.map +1 -1
  891. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts +24 -0
  892. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -0
  893. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js +24 -0
  894. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -0
  895. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts +6 -4
  896. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
  897. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js +6 -4
  898. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
  899. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts +14 -10
  900. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
  901. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js +14 -10
  902. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
  903. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts +6 -6
  904. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
  905. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js +6 -6
  906. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js.map +1 -1
  907. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts +11 -8
  908. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
  909. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js +12 -9
  910. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js.map +1 -1
  911. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts +9 -8
  912. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
  913. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js +9 -8
  914. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js.map +1 -1
  915. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts +25 -9
  916. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
  917. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js +25 -9
  918. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js.map +1 -1
  919. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts +1 -1
  920. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
  921. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js +1 -1
  922. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js.map +1 -1
  923. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts +2 -2
  924. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
  925. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js +2 -2
  926. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js.map +1 -1
  927. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts +1 -0
  928. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
  929. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js +2 -1
  930. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js.map +1 -1
  931. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts +25 -24
  932. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
  933. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js +26 -25
  934. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js.map +1 -1
  935. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts +1 -1
  936. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
  937. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js +1 -1
  938. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js.map +1 -1
  939. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts +3 -1
  940. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
  941. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js +4 -2
  942. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
  943. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts +2 -2
  944. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
  945. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js +2 -2
  946. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
  947. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +13 -12
  948. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
  949. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +13 -12
  950. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
  951. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts +7 -1
  952. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
  953. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js +7 -1
  954. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
  955. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts +13 -0
  956. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
  957. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js +14 -1
  958. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
  959. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
  960. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts +6 -6
  961. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
  962. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js +6 -6
  963. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
  964. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts +2 -2
  965. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
  966. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js +2 -2
  967. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
  968. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts +2 -2
  969. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
  970. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js +2 -2
  971. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js.map +1 -1
  972. package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
  973. package/dist/esm/i18n/components/guidance_banner.en.d.ts +1 -1
  974. package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
  975. package/dist/esm/i18n/components/guidance_banner.en.js +1 -1
  976. package/dist/esm/i18n/components/guidance_banner.en.js.map +1 -1
  977. package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
  978. package/dist/esm/i18n/components/guidance_checklist.en.d.ts +2 -2
  979. package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
  980. package/dist/esm/i18n/components/guidance_checklist.en.js +2 -2
  981. package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
  982. package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts +1 -0
  983. package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
  984. package/dist/esm/i18n/components/guidance_checklist_item.en.js +2 -1
  985. package/dist/esm/i18n/components/guidance_checklist_item.en.js.map +1 -1
  986. package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
  987. package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts +1 -1
  988. package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
  989. package/dist/esm/i18n/components/guidance_onboarding_view.en.js +1 -1
  990. package/dist/esm/i18n/components/guidance_onboarding_view.en.js.map +1 -1
  991. package/dist/esm/i18n/components/guidance_survey.en.d.ts +1 -0
  992. package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
  993. package/dist/esm/i18n/components/guidance_survey.en.js +2 -1
  994. package/dist/esm/i18n/components/guidance_survey.en.js.map +1 -1
  995. package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
  996. package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
  997. package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts +1 -1
  998. package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
  999. package/dist/esm/i18n/components/progression_achievement_badge.en.js +1 -1
  1000. package/dist/esm/i18n/components/progression_achievement_badge.en.js.map +1 -1
  1001. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts +5 -3
  1002. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
  1003. package/dist/esm/i18n/components/progression_milestone_tracker.en.js +6 -4
  1004. package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
  1005. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts +18 -0
  1006. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -0
  1007. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +356 -0
  1008. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -0
  1009. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts +15 -0
  1010. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -0
  1011. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js +70 -0
  1012. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -0
  1013. package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
  1014. package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts +25 -0
  1015. package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -0
  1016. package/dist/esm/i18n/errors_guidance/errors-guidance.en.js +26 -0
  1017. package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -0
  1018. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts +119 -0
  1019. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -0
  1020. package/dist/esm/i18n/errors_messages/errors-messages.en.js +76 -0
  1021. package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -0
  1022. package/dist/esm/i18n/index.d.ts +10 -8
  1023. package/dist/esm/i18n/index.d.ts.map +1 -1
  1024. package/dist/esm/i18n/index.js +10 -8
  1025. package/dist/esm/i18n/index.js.map +1 -1
  1026. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +2024 -1
  1027. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
  1028. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +518 -0
  1029. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
  1030. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts +878 -8
  1031. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
  1032. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js +247 -0
  1033. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
  1034. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts +504 -1
  1035. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
  1036. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js +153 -0
  1037. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
  1038. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts +97 -0
  1039. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -0
  1040. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js +60 -0
  1041. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -0
  1042. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts +78 -0
  1043. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -0
  1044. package/dist/esm/i18n/resources/workbenchAspects.en.js +261 -0
  1045. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -0
  1046. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts +149 -0
  1047. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -0
  1048. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js +79 -0
  1049. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -0
  1050. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts +94 -0
  1051. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -0
  1052. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js +75 -0
  1053. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -0
  1054. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts +70 -5
  1055. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
  1056. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js +67 -0
  1057. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
  1058. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts +104 -0
  1059. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -0
  1060. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js +58 -0
  1061. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -0
  1062. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts +95 -0
  1063. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -0
  1064. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js +54 -0
  1065. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -0
  1066. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts +95 -0
  1067. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -0
  1068. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js +51 -0
  1069. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -0
  1070. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts +1 -1
  1071. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
  1072. package/dist/esm/i18n/resources/workbenchDomainResources.en.js +2 -2
  1073. package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
  1074. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +138 -0
  1075. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -0
  1076. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +70 -0
  1077. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -0
  1078. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts +112 -0
  1079. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -0
  1080. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js +115 -0
  1081. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -0
  1082. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts +121 -0
  1083. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -0
  1084. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js +84 -0
  1085. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -0
  1086. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts +89 -0
  1087. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -0
  1088. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js +75 -0
  1089. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -0
  1090. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts +170 -0
  1091. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -0
  1092. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js +113 -0
  1093. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -0
  1094. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts +167 -6
  1095. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
  1096. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js +113 -0
  1097. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
  1098. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts +95 -4
  1099. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
  1100. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js +85 -0
  1101. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
  1102. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +5174 -247
  1103. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  1104. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +1238 -55
  1105. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  1106. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts +86 -3
  1107. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
  1108. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js +90 -0
  1109. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
  1110. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts +107 -0
  1111. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -0
  1112. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js +91 -0
  1113. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -0
  1114. package/dist/esm/i18n/system_enums/application-creation.en.d.ts +282 -0
  1115. package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -0
  1116. package/dist/esm/i18n/system_enums/application-creation.en.js +330 -0
  1117. package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -0
  1118. package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts +154 -0
  1119. package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -0
  1120. package/dist/esm/i18n/system_enums/compliance-programme.en.js +154 -0
  1121. package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -0
  1122. package/dist/esm/i18n/system_enums/flows-actors.en.d.ts +54 -0
  1123. package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -0
  1124. package/dist/esm/i18n/system_enums/flows-actors.en.js +54 -0
  1125. package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -0
  1126. package/dist/esm/i18n/system_enums/market.en.d.ts +12 -2
  1127. package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
  1128. package/dist/esm/i18n/system_enums/market.en.js +12 -2
  1129. package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
  1130. package/dist/esm/i18n/system_enums/processor-register.en.d.ts +49 -0
  1131. package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -0
  1132. package/dist/esm/i18n/system_enums/processor-register.en.js +49 -0
  1133. package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -0
  1134. package/dist/esm/i18n/system_enums/risk-register.en.d.ts +56 -0
  1135. package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -0
  1136. package/dist/esm/i18n/system_enums/risk-register.en.js +56 -0
  1137. package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -0
  1138. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts +50 -0
  1139. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -0
  1140. package/dist/esm/i18n/system_enums/workbench-build.en.js +55 -0
  1141. package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -0
  1142. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts +47 -0
  1143. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -0
  1144. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js +48 -0
  1145. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -0
  1146. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +21 -0
  1147. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -0
  1148. package/dist/esm/i18n/system_enums/workbench-dossier.en.js +22 -0
  1149. package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -0
  1150. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts +29 -0
  1151. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -0
  1152. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js +29 -0
  1153. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -0
  1154. package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts +46 -0
  1155. package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -0
  1156. package/dist/esm/i18n/system_enums/workbench-secrets.en.js +46 -0
  1157. package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -0
  1158. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts +32 -0
  1159. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -0
  1160. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js +37 -0
  1161. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -0
  1162. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts +61 -0
  1163. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -0
  1164. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js +22 -0
  1165. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -0
  1166. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +134 -5
  1167. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
  1168. package/dist/esm/i18n-labelling/models/labelling-unit.models.js +69 -4
  1169. package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
  1170. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
  1171. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js +0 -2
  1172. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
  1173. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
  1174. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts +48 -0
  1175. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -0
  1176. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js +145 -0
  1177. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -0
  1178. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +82 -20
  1179. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  1180. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +433 -89
  1181. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  1182. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts +53 -8
  1183. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
  1184. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js +253 -45
  1185. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
  1186. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +113 -0
  1187. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  1188. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +539 -16
  1189. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  1190. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts +64 -1
  1191. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  1192. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +423 -71
  1193. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  1194. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts +91 -0
  1195. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -0
  1196. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js +149 -0
  1197. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -0
  1198. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +31 -0
  1199. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -0
  1200. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js +44 -0
  1201. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -0
  1202. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts +54 -0
  1203. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -0
  1204. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js +74 -0
  1205. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -0
  1206. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts +30 -3
  1207. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
  1208. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js +27 -0
  1209. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
  1210. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts +12 -0
  1211. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
  1212. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js +58 -1
  1213. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js.map +1 -1
  1214. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts +24 -0
  1215. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -0
  1216. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js +34 -0
  1217. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -0
  1218. package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
  1219. package/dist/esm/i18n-labelling/utils/label-file-source.utils.js +19 -0
  1220. package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
  1221. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -1
  1222. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -1
  1223. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
  1224. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js +5 -1
  1225. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
  1226. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
  1227. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js +10 -0
  1228. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
  1229. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts +76 -0
  1230. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -0
  1231. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js +110 -0
  1232. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -0
  1233. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts +17 -0
  1234. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -0
  1235. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js +23 -0
  1236. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -0
  1237. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
  1238. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +63 -27
  1239. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
  1240. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +251 -139
  1241. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
  1242. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts +11 -0
  1243. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
  1244. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js +27 -3
  1245. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
  1246. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts +38 -0
  1247. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -0
  1248. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js +66 -0
  1249. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -0
  1250. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
  1251. package/dist/esm/index.d.ts.map +1 -1
  1252. package/dist/esm/index.js +9 -3
  1253. package/dist/esm/index.js.map +1 -1
  1254. package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
  1255. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts +29 -0
  1256. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -0
  1257. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js +58 -0
  1258. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -0
  1259. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts +35 -0
  1260. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  1261. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +69 -5
  1262. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  1263. package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts +11 -0
  1264. package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -0
  1265. package/dist/esm/meta-workflows/models/application-line-catalog.models.js +17 -0
  1266. package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -0
  1267. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  1268. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js +6 -5
  1269. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  1270. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts +1 -0
  1271. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
  1272. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js +22 -1
  1273. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
  1274. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts +46 -0
  1275. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -0
  1276. package/dist/esm/meta-workflows/models/build-task-rearm.models.js +43 -0
  1277. package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -0
  1278. package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts +34 -0
  1279. package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -0
  1280. package/dist/esm/meta-workflows/models/carried-verification-failure.models.js +59 -0
  1281. package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -0
  1282. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts +79 -0
  1283. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -0
  1284. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js +101 -0
  1285. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -0
  1286. package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts +14 -0
  1287. package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -0
  1288. package/dist/esm/meta-workflows/models/human-decision-settler.models.js +18 -0
  1289. package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -0
  1290. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +83 -13
  1291. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  1292. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +101 -7
  1293. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
  1294. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
  1295. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js +28 -8
  1296. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
  1297. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +227 -0
  1298. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -0
  1299. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +305 -0
  1300. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -0
  1301. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +401 -0
  1302. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -0
  1303. package/dist/esm/meta-workflows/models/playbook-run-record.models.js +470 -0
  1304. package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -0
  1305. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts +14 -0
  1306. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -0
  1307. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js +21 -0
  1308. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -0
  1309. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
  1310. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js +3 -1
  1311. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +1 -1
  1312. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +79 -0
  1313. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -0
  1314. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +193 -0
  1315. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -0
  1316. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +969 -48
  1317. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  1318. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +2123 -150
  1319. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  1320. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts +19 -0
  1321. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -0
  1322. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js +36 -0
  1323. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -0
  1324. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +124 -36
  1325. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  1326. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +305 -58
  1327. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  1328. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +442 -16
  1329. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  1330. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +1514 -69
  1331. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  1332. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts +32 -0
  1333. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -0
  1334. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +161 -0
  1335. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -0
  1336. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts +47 -0
  1337. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -0
  1338. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js +103 -0
  1339. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -0
  1340. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts +31 -0
  1341. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -0
  1342. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js +89 -0
  1343. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -0
  1344. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts +48 -0
  1345. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -0
  1346. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +111 -0
  1347. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -0
  1348. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +154 -0
  1349. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -0
  1350. package/dist/esm/meta-workflows/services/dossier.companion.service.js +428 -0
  1351. package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -0
  1352. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts +36 -0
  1353. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts.map +1 -0
  1354. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js +72 -0
  1355. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js.map +1 -0
  1356. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts +82 -1
  1357. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
  1358. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js +200 -31
  1359. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js.map +1 -1
  1360. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts +16 -0
  1361. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map +1 -0
  1362. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js +29 -0
  1363. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map +1 -0
  1364. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +225 -3
  1365. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  1366. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +445 -12
  1367. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  1368. package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts +40 -0
  1369. package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -0
  1370. package/dist/esm/meta-workflows/services/governed-document-texts.companion.js +91 -0
  1371. package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -0
  1372. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts +25 -0
  1373. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -0
  1374. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js +40 -0
  1375. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -0
  1376. package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts +2 -0
  1377. package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -0
  1378. package/dist/esm/meta-workflows/services/landed-module-import.companion.js +36 -0
  1379. package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -0
  1380. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
  1381. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts +90 -0
  1382. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -0
  1383. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +307 -0
  1384. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -0
  1385. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +86 -0
  1386. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  1387. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +126 -6
  1388. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  1389. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +1278 -193
  1390. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  1391. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +4375 -500
  1392. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  1393. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts +100 -0
  1394. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -0
  1395. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js +156 -0
  1396. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -0
  1397. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts +49 -0
  1398. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -0
  1399. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js +93 -0
  1400. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -0
  1401. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts +45 -0
  1402. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -0
  1403. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js +145 -0
  1404. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -0
  1405. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts +33 -9
  1406. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
  1407. package/dist/esm/technical-doc/services/technical-doc.companion.service.js +70 -29
  1408. package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
  1409. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts +20 -5
  1410. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
  1411. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js +38 -16
  1412. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
  1413. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
  1414. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
  1415. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
  1416. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
  1417. package/package.json +18 -18
  1418. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts +0 -13
  1419. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +0 -1
  1420. package/dist/esm/i18n/composite_views/app.creation-board.en.js +0 -91
  1421. package/dist/esm/i18n/composite_views/app.creation-board.en.js.map +0 -1
  1422. package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.d.ts +0 -92
  1423. package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.d.ts.map +0 -1
  1424. package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.js +0 -178
  1425. package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.js.map +0 -1
  1426. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts +0 -107
  1427. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts.map +0 -1
  1428. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.js +0 -188
  1429. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.js.map +0 -1
@@ -149,13 +149,17 @@ let IntrospectionDerivationStateCompanionService = class IntrospectionDerivation
149
149
  }
150
150
  const held = this.state.get(identity.cacheKey);
151
151
  if (held) {
152
+ const ageMs = Date.now() - held.compiledAt;
152
153
  this.logDebug('Introspection derivation served from compiled state', {
153
154
  behavior: identity.behavior,
154
155
  serviceKey: identity.serviceKey,
155
- ageMs: Date.now() - held.compiledAt,
156
+ ageMs,
156
157
  generation: held.generation,
157
158
  });
158
- return { ...held.result, servedFromCache: true };
159
+ // The age TRAVELS now (#1437). It was computed here for a debug line while the consumer that
160
+ // needs it — one deciding whether a held answer still describes the tree it is about to edit —
161
+ // could not see it.
162
+ return { ...held.result, servedFromCache: true, derivationAgeMs: ageMs };
159
163
  }
160
164
  return (await this.compileInto(identity.cacheKey, IntrospectionRecompileReason.COLD_READ))
161
165
  ?? compile();
@@ -175,7 +179,11 @@ let IntrospectionDerivationStateCompanionService = class IntrospectionDerivation
175
179
  serviceKey: identity.serviceKey,
176
180
  sourceObservationMs: observation.durationMs,
177
181
  });
178
- return { ...held.result, servedFromCache: true };
182
+ // BOTH read paths, and stating why they differ: this one has already checked the source token,
183
+ // so the age says how long ago the answer was taken rather than how long it MIGHT be stale.
184
+ // Reporting it on only one path would make the field mean different things per freshness mode,
185
+ // which is worse than not having it.
186
+ return { ...held.result, servedFromCache: true, derivationAgeMs: Date.now() - held.compiledAt };
179
187
  }
180
188
  /*
181
189
  * Routed through `compileInto` rather than calling the closure here, because that is where the
@@ -1 +1 @@
1
- {"version":3,"file":"introspection-derivation-state.companion.service.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/services/introspection-derivation-state.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,gDAAgD,CAAC;AAMlG;;;;;;;;;;;;GAYG;AACH,MAAM,CAAN,IAAY,0BAKX;AALD,WAAY,0BAA0B;IACpC,iFAAiF;IACjF,mEAAqC,CAAA;IACrC,sFAAsF;IACtF,2CAAa,CAAA;AACf,CAAC,EALW,0BAA0B,KAA1B,0BAA0B,QAKrC;AAED,0FAA0F;AAC1F,MAAM,CAAN,IAAY,4BASX;AATD,WAAY,4BAA4B;IACtC,mDAAmD;IACnD,mEAAmC,CAAA;IACnC,sFAAsF;IACtF,iEAAiC,CAAA;IACjC,iDAAiD;IACjD,uDAAuB,CAAA;IACvB,6CAA6C;IAC7C,uDAAuB,CAAA;AACzB,CAAC,EATW,4BAA4B,KAA5B,4BAA4B,QASvC;AAqDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEI,IAAM,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OAAO,GAAG,CAAC;IACb,CAAC;IAED,6FAA6F;IACrF,KAAK,CACX,QAAgB,EAChB,MAA2C,EAC3C,gBAAwB;QAExB,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAC9B,+FAA+F;QAC/F,iGAAiG;QACjG,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC,CAAC;QACpE,MAAM,QAAQ,GAAoC;YAChD,MAAM;YACN,gBAAgB;YAChB,UAAU,EAAE,IAAI,CAAC,cAAc;YAC/B,UAAU;SACX,CAAC;QACF;;;;;;;;;;;;;;;;;;WAkBG;QACH,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACnC,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF,CAAA;AA/UY,4CAA4C;IADxD,UAAU,EAAE;IAeR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;;GAfxC,4CAA4C,CA+UxD;;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,UAAU,0BAA0B,CACxC,IAAqD,EACrD,KAAsD;IAEtD,IAAI,IAAI,KAAK,SAAS,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5D,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAClE,CAAC","sourcesContent":["import { inject, injectable } from 'inversify';\nimport type { LoggerService } from '@wildo-ai/saas-backend-lib';\nimport { SAAS_SERVICE_TYPES } from '@wildo-ai/saas-backend-lib';\n\nimport { COMPANION_SERVICE_TYPES } from '../../inject/models/service-types';\nimport type { CompanionContext } from '../../context/companion-context';\nimport { IntrospectionSourceStateObserver } from './introspection-source-state.companion.service';\nimport type {\n CompanionIntrospectionResult,\n CompanionIntrospectionSuccessResult,\n} from '../models/companion-introspection.models';\n\n/**\n * How a derivation's freshness is currently decided.\n *\n * The two modes are not a preference. `OBSERVE_PER_READ` is exactly the behaviour issue #159 shipped\n * — sweep the source on every read, serve the memo only when the token still matches — and it is the\n * FALLBACK, kept because it is correct without any collaborator. `PUSH` is the mode this service\n * exists for: a freshness authority (the source watcher) tells the state when the source moved, so a\n * read consults nothing but memory.\n *\n * The service starts in `OBSERVE_PER_READ` and is promoted only when an authority registers. That\n * ordering is deliberate: a companion whose watcher failed to start, or a unit test that wires none,\n * degrades to slow-and-correct rather than to fast-and-stale.\n */\nexport enum IntrospectionFreshnessMode {\n /** No authority registered. Every read sweeps, exactly as issue #159 left it. */\n OBSERVE_PER_READ = 'observe-per-read',\n /** An authority is live. Reads consult memory; the authority drives recompilation. */\n PUSH = 'push',\n}\n\n/** Why a recompilation was triggered, carried into the log line and the change report. */\nexport enum IntrospectionRecompileReason {\n /** The freshness authority saw the source move. */\n SOURCE_MUTATION = 'source-mutation',\n /** The periodic reconciliation sweep found a token the authority had not reported. */\n RECONCILIATION = 'reconciliation',\n /** Startup warming, before anybody has asked. */\n BOOT_WARM = 'boot-warm',\n /** A read found no compiled state at all. */\n COLD_READ = 'cold-read',\n}\n\n/**\n * One compiled derivation, and everything a consumer needs to talk about it without recompiling.\n */\nexport interface IntrospectionCompiledDerivation {\n /**\n * The child's answer, exactly as `requestInfo` would have returned it.\n *\n * Typed as the SUCCESS result rather than the union, because only a success is ever retained —\n * see `store`. That is not a narrowing for convenience: `servedFromCache` exists only on the\n * success arm, so a union here would make the flag unassignable, and the type is the place that\n * says a failure is never held.\n */\n readonly result: CompanionIntrospectionSuccessResult;\n /** The source-state token this was compiled against. */\n readonly sourceStateToken: string;\n /**\n * A monotonically increasing stamp for this derivation, used as the WebSocket sync `version`.\n *\n * **It must never go backwards, including across a companion restart.** `ResourceMutationManager`\n * drops any pushed update whose `version <= this._version`, so a counter that resets to zero on\n * restart makes every browser tab that stayed open ignore every later update — silently, with no\n * error and no refetch, leaving a permanently frozen view. Wall-clock milliseconds cannot regress\n * across a restart, which is the whole reason they are used here rather than a counter.\n */\n readonly generation: number;\n /** When this was compiled, for the debug line that explains a lookup's age. */\n readonly compiledAt: number;\n}\n\n/** What one recompilation did, per derivation, so a caller can emit a diff without re-reading. */\nexport interface IntrospectionRecompileOutcome {\n readonly cacheKey: string;\n readonly behavior: string;\n readonly serviceKey: string;\n /** The state before, absent on a first compile. */\n readonly previous: IntrospectionCompiledDerivation | undefined;\n /** The state after. Absent when the recompilation FAILED and the previous state was kept. */\n readonly next: IntrospectionCompiledDerivation | undefined;\n /** `false` when the recompilation produced a byte-identical payload — nothing to notify about. */\n readonly changed: boolean;\n}\n\n/** A registered derivation the state service knows how to recompile without being asked again. */\ninterface KnownDerivation {\n readonly cacheKey: string;\n readonly behavior: string;\n readonly serviceKey: string;\n /** The closure that compiles this exact question. Held so recompilation needs no caller. */\n readonly compile: () => Promise<CompanionIntrospectionResult>;\n}\n\n/**\n * Owns COMPILED introspection state, so that reading one is not the act that compiles it.\n *\n * ## Why this is a separate service rather than a better cache\n *\n * Before this, compilation and retrieval were the same code path: `requestInfo` observed the source,\n * compared a token, and compiled on a miss — all inside the caller's request. That fusion has three\n * consequences that no amount of cache tuning removes.\n *\n * 1. **Every read pays the freshness probe.** Measured on wonder-crm, 2026-09-02: a warm\n * `LIST /api/v1/workbench-domain-resources` answered in 200–270 ms, of which the source sweep is\n * 180–225 ms. The cache was working perfectly and almost all of the remaining latency was the act\n * of asking whether it could be used.\n * 2. **A miss is charged to whoever happened to ask.** Same session: a cold `LIST` cost 8.95 s and an\n * addressed `READ` cost 44.4 s, then 500. In a tree with the engine's `tsc-watch` fleet running,\n * the token moves constantly, so a miss is the NORMAL case rather than the exception.\n * 3. **Nothing can be notified.** A pull-shaped cache learns that the source moved only while\n * somebody is waiting for an answer, so there is no moment at which it could tell a frontend that\n * a row changed. Push requires knowing BEFORE the read.\n *\n * Separating the two makes each answerable on its own terms: compilation is triggered by the source\n * moving, retrieval is a map lookup, and the moment between them is where a notification can exist.\n *\n * ## What this holds is TIME, never TRUTH\n *\n * `one-source-of-truth.md` Rule 5: this is per-run runtime state. Deleting all of it costs a\n * recompilation and changes no answer — {@link clear} is the proof obligation, and the byte-identical\n * payload across it is the test. Nothing here is a ledger, nothing is persisted, and no decision\n * anywhere may be made from the absence of an entry.\n */\n@injectable()\nexport class IntrospectionDerivationStateCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n private readonly state = new Map<string, IntrospectionCompiledDerivation>();\n private readonly known = new Map<string, KnownDerivation>();\n /** Recompilations currently running, so two triggers cannot compile the same question twice. */\n private readonly inFlight = new Map<string, Promise<CompanionIntrospectionResult>>();\n private readonly observer: IntrospectionSourceStateObserver;\n private freshnessMode: IntrospectionFreshnessMode = IntrospectionFreshnessMode.OBSERVE_PER_READ;\n private freshnessAuthorityName: string | undefined;\n /** The token the state was last compiled against, in `PUSH` mode. */\n private currentToken: string | undefined;\n private lastGeneration = 0;\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('IntrospectionDerivationState');\n this.logger.setDebugTypeLogging('IntrospectionDerivationState', true);\n this.observer = new IntrospectionSourceStateObserver(this.companionContext);\n }\n\n public get mode(): IntrospectionFreshnessMode {\n return this.freshnessMode;\n }\n\n /**\n * Promote the service out of per-read observation.\n *\n * Called by the source watcher once it is actually watching. The name is carried so an operator\n * reading a log line can tell WHICH authority is responsible for freshness, and so a second\n * registration is visible rather than silent.\n */\n public registerFreshnessAuthority(name: string): void {\n this.freshnessAuthorityName = name;\n this.freshnessMode = IntrospectionFreshnessMode.PUSH;\n this.logger.info('Introspection derivation state promoted to push freshness', { authority: name });\n }\n\n /**\n * Demote back to per-read observation.\n *\n * The watcher calls this when it errors or closes. Demoting is always safe and never wrong — it\n * only costs time — whereas staying in `PUSH` with a dead authority serves a tree that has moved.\n */\n public noteFreshnessAuthorityLost(reason: string): void {\n if (this.freshnessMode === IntrospectionFreshnessMode.OBSERVE_PER_READ) return;\n this.freshnessMode = IntrospectionFreshnessMode.OBSERVE_PER_READ;\n this.logger.warn('Introspection freshness authority lost; falling back to per-read source observation', {\n authority: this.freshnessAuthorityName,\n reason,\n });\n this.freshnessAuthorityName = undefined;\n }\n\n /**\n * Read a derivation, compiling only when there is nothing to read.\n *\n * `compile` is retained against the cache key on first sight, which is what lets a later\n * source mutation recompile this question with no caller present. That is the whole mechanism by\n * which retrieval stops driving compilation: the FIRST read teaches the service the question, and\n * every subsequent answer — including the ones nobody asked for yet — is produced by the source\n * moving instead.\n *\n * In `OBSERVE_PER_READ` mode the freshness probe still runs here, because without an authority\n * there is nothing else that could run it.\n */\n public async read(\n identity: { readonly cacheKey: string; readonly behavior: string; readonly serviceKey: string },\n compile: () => Promise<CompanionIntrospectionResult>,\n ): Promise<CompanionIntrospectionResult> {\n if (!this.known.has(identity.cacheKey)) {\n this.known.set(identity.cacheKey, { ...identity, compile });\n }\n\n if (this.freshnessMode === IntrospectionFreshnessMode.OBSERVE_PER_READ) {\n return this.readWithPerReadObservation(identity, compile);\n }\n\n const held = this.state.get(identity.cacheKey);\n if (held) {\n this.logDebug('Introspection derivation served from compiled state', {\n behavior: identity.behavior,\n serviceKey: identity.serviceKey,\n ageMs: Date.now() - held.compiledAt,\n generation: held.generation,\n });\n return { ...held.result, servedFromCache: true };\n }\n\n return (await this.compileInto(identity.cacheKey, IntrospectionRecompileReason.COLD_READ))\n ?? compile();\n }\n\n /**\n * The pre-#159-separation path, kept verbatim in behaviour for the no-authority case.\n *\n * A read observes the source, serves the held derivation when the token still matches, and\n * compiles otherwise. Slower by exactly one sweep per read, and correct with no collaborator.\n */\n private async readWithPerReadObservation(\n identity: { readonly cacheKey: string; readonly behavior: string; readonly serviceKey: string },\n compile: () => Promise<CompanionIntrospectionResult>,\n ): Promise<CompanionIntrospectionResult> {\n const observation = await this.observer.observe(Date.now());\n const held = this.state.get(identity.cacheKey);\n if (held && held.sourceStateToken === observation.token) {\n this.logDebug('Introspection derivation served from compiled state (per-read observation)', {\n behavior: identity.behavior,\n serviceKey: identity.serviceKey,\n sourceObservationMs: observation.durationMs,\n });\n return { ...held.result, servedFromCache: true };\n }\n\n /*\n * Routed through `compileInto` rather than calling the closure here, because that is where the\n * in-flight join lives. `maxConcurrency` caps how many subprocesses run at once; it does not\n * notice that two of them are asking the identical question. Two concurrent reads of one\n * behavior must cost ONE subprocess, and calling the closure directly would silently\n * reintroduce the second child.\n *\n * `bounded: false` means the sweep gave up before seeing the whole tree, so its token says\n * nothing about whether the source moved. Compiling is still correct; RETAINING against that\n * token would not be — which is why the token is handed over only when the sweep completed.\n */\n return (await this.compileInto(\n identity.cacheKey,\n IntrospectionRecompileReason.COLD_READ,\n observation.bounded ? observation.token : undefined,\n )) ?? compile();\n }\n\n /**\n * Recompile everything this service knows about, if the source has actually moved.\n *\n * Returns one outcome per known derivation, with `changed` telling the caller whether anything\n * downstream needs to hear about it. A recompilation that produces a byte-identical payload is\n * reported as unchanged, because an operator saving a file that alters nothing observable must not\n * produce a wave of notifications.\n *\n * A FAILED recompilation keeps the previous state rather than dropping it. The dominant failure\n * here is an application mid-build, and answering \"could not look\" for the seconds a `tsc` takes —\n * when a correct answer from one second ago is in hand — is worse than answering slightly late.\n */\n public async recompileIfSourceMoved(\n reason: IntrospectionRecompileReason,\n ): Promise<{ readonly moved: boolean; readonly outcomes: readonly IntrospectionRecompileOutcome[] }> {\n const observation = await this.observer.observe(Date.now());\n if (!observation.bounded) {\n this.logger.warn('Introspection source observation exceeded its ceiling; recompiling without remembering', {\n reason,\n observedEntryCount: observation.observedEntryCount,\n });\n }\n\n if (this.currentToken === observation.token && observation.bounded) {\n return { moved: false, outcomes: [] };\n }\n this.currentToken = observation.bounded ? observation.token : undefined;\n\n /*\n * Snapshot every previous state BEFORE compiling any of them.\n *\n * `store` prunes entries taken against a superseded token, so the FIRST compilation of this loop\n * deletes every OTHER derivation's previous state — they still carry the old token. Reading\n * `previous` inside the loop therefore returned `undefined` for every derivation after the first,\n * and each one reported its whole row set as CREATED.\n *\n * Measured before the fix on wonder-crm: 180 publications in three minutes, every one of them\n * `created: N, updated: 0, deleted: 0` — a full-repaint storm, the exact opposite of what the\n * diff exists to produce. Found by reading the live log rather than by a test, which is why the\n * regression pin below compares TWO derivations rather than one.\n */\n const previousByKey = new Map<string, IntrospectionCompiledDerivation>();\n for (const entry of this.known.values()) {\n const held = this.state.get(entry.cacheKey);\n if (held) previousByKey.set(entry.cacheKey, held);\n }\n\n const outcomes: IntrospectionRecompileOutcome[] = [];\n for (const entry of this.known.values()) {\n const previous = previousByKey.get(entry.cacheKey);\n await this.compileInto(entry.cacheKey, reason, observation.token);\n const next = this.state.get(entry.cacheKey);\n outcomes.push({\n cacheKey: entry.cacheKey,\n behavior: entry.behavior,\n serviceKey: entry.serviceKey,\n previous,\n next,\n changed: next !== undefined && next !== previous\n && !areDerivationPayloadsEqual(previous?.result, next.result),\n });\n }\n\n this.logDebug('Introspection source moved; recompiled known derivations', {\n reason,\n derivationCount: outcomes.length,\n changedCount: outcomes.filter((outcome) => outcome.changed).length,\n sourceObservationMs: observation.durationMs,\n });\n\n return { moved: true, outcomes };\n }\n\n /**\n * How many derivations are currently held.\n *\n * A diagnostic, and the pin for the pruning invariant: the map is bounded by the distinct\n * questions asked since the last source change, not by every question ever asked.\n */\n public get compiledDerivationCount(): number {\n return this.state.size;\n }\n\n /** The generation currently held for a derivation, for a caller stamping a notification. */\n public generationOf(cacheKey: string): number | undefined {\n return this.state.get(cacheKey)?.generation;\n }\n\n /**\n * Drop every compiled derivation.\n *\n * Costs a recompilation and changes no answer. That property is what makes this state rather than\n * a ledger, so it is exercised by a test rather than merely asserted here.\n */\n public clear(): void {\n this.state.clear();\n this.currentToken = undefined;\n }\n\n /**\n * Test seam: drop ONE compiled entry, to reproduce a single-key compile against a partly-empty\n * state. Production never evicts a single entry — see the note in `store`.\n */\n public clearOneForTesting(cacheKey: string): void {\n this.state.delete(cacheKey);\n }\n\n /** Test seam: replace the source observer with a fake. Production always observes real trees. */\n public setSourceStateObserverForTesting(observer: IntrospectionSourceStateObserver): void {\n (this as unknown as { observer: IntrospectionSourceStateObserver }).observer = observer;\n }\n\n /**\n * Compile one known derivation into the state, joining an identical in-flight compilation.\n *\n * The join matters more here than in a request-shaped cache: a watcher burst and a cold read can\n * arrive within the same millisecond, and a subprocess that imports the whole application is the\n * most expensive thing this process does.\n */\n private async compileInto(\n cacheKey: string,\n reason: IntrospectionRecompileReason,\n tokenOverride?: string,\n ): Promise<CompanionIntrospectionResult | undefined> {\n const existing = this.inFlight.get(cacheKey);\n if (existing) return existing;\n\n const entry = this.known.get(cacheKey);\n if (!entry) return undefined;\n\n const run = (async (): Promise<CompanionIntrospectionResult> => {\n let token = tokenOverride;\n if (token === undefined) {\n const observation = await this.observer.observe(Date.now());\n token = observation.bounded ? observation.token : undefined;\n }\n\n const result = await entry.compile();\n if (!result.success || token === undefined) {\n /*\n * A failure is never retained, and the reasoning is the same as before the split: the\n * dominant failure here is an application whose `dist` is not built, whose remedy moves the\n * source and would invalidate anyway; and a transient failure — a timeout on a loaded\n * machine — would otherwise stick to an unchanged tree and be served as the answer forever.\n */\n this.logDebug('Introspection compilation not retained', {\n behavior: entry.behavior,\n serviceKey: entry.serviceKey,\n reason,\n success: result.success,\n hasToken: token !== undefined,\n });\n return result;\n }\n this.store(cacheKey, result, token);\n return result;\n })().finally(() => {\n this.inFlight.delete(cacheKey);\n });\n\n this.inFlight.set(cacheKey, run);\n return run;\n }\n\n /** Write a compiled derivation into the state under a fresh, never-decreasing generation. */\n private store(\n cacheKey: string,\n result: CompanionIntrospectionSuccessResult,\n sourceStateToken: string,\n ): IntrospectionCompiledDerivation {\n const compiledAt = Date.now();\n // Wall-clock is monotone across a restart; the `+1` only breaks a tie between two compilations\n // landing inside the same millisecond, which a browser tab would otherwise read as a stale push.\n this.lastGeneration = Math.max(compiledAt, this.lastGeneration + 1);\n const compiled: IntrospectionCompiledDerivation = {\n result,\n sourceStateToken,\n generation: this.lastGeneration,\n compiledAt,\n };\n /*\n * NOTHING IS PRUNED HERE, and that REVERSES what issue #159's cache did — deliberately.\n *\n * That cache dropped every entry taken against a superseded token, on the reasoning that such an\n * entry \"describes a tree that no longer exists, so it can never be served again\". The first half\n * is still true; the conclusion is not, because an entry now has a SECOND job. It is the basis\n * the next recompilation diffs against, and being unservable as an ANSWER does not make it\n * useless as a BASELINE.\n *\n * Pruning here cost exactly that: compiling ONE derivation evicted every other derivation's\n * baseline, so the next recompile-all saw no previous state for them and reported their whole row\n * sets as CREATED. Measured on wonder-crm before the fix — 180 publications in three minutes,\n * every one a full repaint.\n *\n * The growth the pruning guarded against cannot occur any more either: this map holds ONE entry\n * per cache key, and a recompilation OVERWRITES that key rather than adding a second entry. Its\n * size is bounded by the number of distinct questions in {@link known}, which is the same bound\n * that map already carries.\n */\n this.state.set(cacheKey, compiled);\n return compiled;\n }\n}\n\n/**\n * Whether two derivations carry the same answer.\n *\n * Compared on the DATA the child returned, not on the envelope: a result carries timing and a\n * `servedFromCache` flag that differ between two compilations of an unchanged application, and\n * comparing those would report every recompilation as a change.\n *\n * A stable stringify is deliberately NOT used. The child's payload is produced by one code path from\n * one imported module graph, so key order is stable between two runs of the same bytes; and an\n * ordering difference that did appear would mean the application's own output was non-deterministic,\n * which is a change worth reporting rather than hiding.\n *\n * ## This OVER-reports, deliberately, and the row diff is the real decision\n *\n * Measured on wonder-crm 2026-09-02, by recompiling three times against byte-identical sources: two\n * of three derivations reported `changed` every time. Diffing two payloads leaf by leaf found exactly\n * one differing value — `specification-artifacts` stamps `trace.evaluatedAt` with the wall-clock\n * instant of the derivation, so its payload can never compare equal to its predecessor.\n * (`application-domain-model` differed in **0** leaves, so the volatility is per-behavior, not\n * general.)\n *\n * That is safe, and it is safe for a specific reason rather than by luck: `changed` only decides\n * whether the notifier is INVITED to look. What it publishes is decided by `diffProjectedRows` over\n * the projected ROWS, and `trace` sits outside this behavior's `rowsPath`. The live check confirms\n * it — three touch-only recompilations produced `changedCount: 2` and **zero** publications.\n *\n * The alternative — excluding known-volatile keys here — was rejected: it would be a second, drifting\n * description of what a row contains, when the projection already owns that answer. **But the\n * guarantee rests on volatile fields staying OUT of the projected rows.** A behavior that put a\n * timestamp INSIDE a row would push an update for every row on every recompilation, and nothing here\n * would catch it — the diff would be correct and the data would be noise.\n */\nexport function areDerivationPayloadsEqual(\n left: CompanionIntrospectionSuccessResult | undefined,\n right: CompanionIntrospectionSuccessResult | undefined,\n): boolean {\n if (left === undefined || right === undefined) return false;\n return JSON.stringify(left.data) === JSON.stringify(right.data);\n}\n"]}
1
+ {"version":3,"file":"introspection-derivation-state.companion.service.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/services/introspection-derivation-state.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,gDAAgD,CAAC;AAMlG;;;;;;;;;;;;GAYG;AACH,MAAM,CAAN,IAAY,0BAKX;AALD,WAAY,0BAA0B;IACpC,iFAAiF;IACjF,mEAAqC,CAAA;IACrC,sFAAsF;IACtF,2CAAa,CAAA;AACf,CAAC,EALW,0BAA0B,KAA1B,0BAA0B,QAKrC;AAED,0FAA0F;AAC1F,MAAM,CAAN,IAAY,4BASX;AATD,WAAY,4BAA4B;IACtC,mDAAmD;IACnD,mEAAmC,CAAA;IACnC,sFAAsF;IACtF,iEAAiC,CAAA;IACjC,iDAAiD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AAI,KAAK,SAAS,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5D,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAClE,CAAC","sourcesContent":["import { inject, injectable } from 'inversify';\nimport type { LoggerService } from '@wildo-ai/saas-backend-lib';\nimport { SAAS_SERVICE_TYPES } from '@wildo-ai/saas-backend-lib';\n\nimport { COMPANION_SERVICE_TYPES } from '../../inject/models/service-types';\nimport type { CompanionContext } from '../../context/companion-context';\nimport { IntrospectionSourceStateObserver } from './introspection-source-state.companion.service';\nimport type {\n CompanionIntrospectionResult,\n CompanionIntrospectionSuccessResult,\n} from '../models/companion-introspection.models';\n\n/**\n * How a derivation's freshness is currently decided.\n *\n * The two modes are not a preference. `OBSERVE_PER_READ` is exactly the behaviour issue #159 shipped\n * — sweep the source on every read, serve the memo only when the token still matches — and it is the\n * FALLBACK, kept because it is correct without any collaborator. `PUSH` is the mode this service\n * exists for: a freshness authority (the source watcher) tells the state when the source moved, so a\n * read consults nothing but memory.\n *\n * The service starts in `OBSERVE_PER_READ` and is promoted only when an authority registers. That\n * ordering is deliberate: a companion whose watcher failed to start, or a unit test that wires none,\n * degrades to slow-and-correct rather than to fast-and-stale.\n */\nexport enum IntrospectionFreshnessMode {\n /** No authority registered. Every read sweeps, exactly as issue #159 left it. */\n OBSERVE_PER_READ = 'observe-per-read',\n /** An authority is live. Reads consult memory; the authority drives recompilation. */\n PUSH = 'push',\n}\n\n/** Why a recompilation was triggered, carried into the log line and the change report. */\nexport enum IntrospectionRecompileReason {\n /** The freshness authority saw the source move. */\n SOURCE_MUTATION = 'source-mutation',\n /** The periodic reconciliation sweep found a token the authority had not reported. */\n RECONCILIATION = 'reconciliation',\n /** Startup warming, before anybody has asked. */\n BOOT_WARM = 'boot-warm',\n /** A read found no compiled state at all. */\n COLD_READ = 'cold-read',\n}\n\n/**\n * One compiled derivation, and everything a consumer needs to talk about it without recompiling.\n */\nexport interface IntrospectionCompiledDerivation {\n /**\n * The child's answer, exactly as `requestInfo` would have returned it.\n *\n * Typed as the SUCCESS result rather than the union, because only a success is ever retained —\n * see `store`. That is not a narrowing for convenience: `servedFromCache` exists only on the\n * success arm, so a union here would make the flag unassignable, and the type is the place that\n * says a failure is never held.\n */\n readonly result: CompanionIntrospectionSuccessResult;\n /** The source-state token this was compiled against. */\n readonly sourceStateToken: string;\n /**\n * A monotonically increasing stamp for this derivation, used as the WebSocket sync `version`.\n *\n * **It must never go backwards, including across a companion restart.** `ResourceMutationManager`\n * drops any pushed update whose `version <= this._version`, so a counter that resets to zero on\n * restart makes every browser tab that stayed open ignore every later update — silently, with no\n * error and no refetch, leaving a permanently frozen view. Wall-clock milliseconds cannot regress\n * across a restart, which is the whole reason they are used here rather than a counter.\n */\n readonly generation: number;\n /** When this was compiled, for the debug line that explains a lookup's age. */\n readonly compiledAt: number;\n}\n\n/** What one recompilation did, per derivation, so a caller can emit a diff without re-reading. */\nexport interface IntrospectionRecompileOutcome {\n readonly cacheKey: string;\n readonly behavior: string;\n readonly serviceKey: string;\n /** The state before, absent on a first compile. */\n readonly previous: IntrospectionCompiledDerivation | undefined;\n /** The state after. Absent when the recompilation FAILED and the previous state was kept. */\n readonly next: IntrospectionCompiledDerivation | undefined;\n /** `false` when the recompilation produced a byte-identical payload — nothing to notify about. */\n readonly changed: boolean;\n}\n\n/** A registered derivation the state service knows how to recompile without being asked again. */\ninterface KnownDerivation {\n readonly cacheKey: string;\n readonly behavior: string;\n readonly serviceKey: string;\n /** The closure that compiles this exact question. Held so recompilation needs no caller. */\n readonly compile: () => Promise<CompanionIntrospectionResult>;\n}\n\n/**\n * Owns COMPILED introspection state, so that reading one is not the act that compiles it.\n *\n * ## Why this is a separate service rather than a better cache\n *\n * Before this, compilation and retrieval were the same code path: `requestInfo` observed the source,\n * compared a token, and compiled on a miss — all inside the caller's request. That fusion has three\n * consequences that no amount of cache tuning removes.\n *\n * 1. **Every read pays the freshness probe.** Measured on wonder-crm, 2026-09-02: a warm\n * `LIST /api/v1/workbench-domain-resources` answered in 200–270 ms, of which the source sweep is\n * 180–225 ms. The cache was working perfectly and almost all of the remaining latency was the act\n * of asking whether it could be used.\n * 2. **A miss is charged to whoever happened to ask.** Same session: a cold `LIST` cost 8.95 s and an\n * addressed `READ` cost 44.4 s, then 500. In a tree with the engine's `tsc-watch` fleet running,\n * the token moves constantly, so a miss is the NORMAL case rather than the exception.\n * 3. **Nothing can be notified.** A pull-shaped cache learns that the source moved only while\n * somebody is waiting for an answer, so there is no moment at which it could tell a frontend that\n * a row changed. Push requires knowing BEFORE the read.\n *\n * Separating the two makes each answerable on its own terms: compilation is triggered by the source\n * moving, retrieval is a map lookup, and the moment between them is where a notification can exist.\n *\n * ## What this holds is TIME, never TRUTH\n *\n * `one-source-of-truth.md` Rule 5: this is per-run runtime state. Deleting all of it costs a\n * recompilation and changes no answer — {@link clear} is the proof obligation, and the byte-identical\n * payload across it is the test. Nothing here is a ledger, nothing is persisted, and no decision\n * anywhere may be made from the absence of an entry.\n */\n@injectable()\nexport class IntrospectionDerivationStateCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n private readonly state = new Map<string, IntrospectionCompiledDerivation>();\n private readonly known = new Map<string, KnownDerivation>();\n /** Recompilations currently running, so two triggers cannot compile the same question twice. */\n private readonly inFlight = new Map<string, Promise<CompanionIntrospectionResult>>();\n private readonly observer: IntrospectionSourceStateObserver;\n private freshnessMode: IntrospectionFreshnessMode = IntrospectionFreshnessMode.OBSERVE_PER_READ;\n private freshnessAuthorityName: string | undefined;\n /** The token the state was last compiled against, in `PUSH` mode. */\n private currentToken: string | undefined;\n private lastGeneration = 0;\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('IntrospectionDerivationState');\n this.logger.setDebugTypeLogging('IntrospectionDerivationState', true);\n this.observer = new IntrospectionSourceStateObserver(this.companionContext);\n }\n\n public get mode(): IntrospectionFreshnessMode {\n return this.freshnessMode;\n }\n\n /**\n * Promote the service out of per-read observation.\n *\n * Called by the source watcher once it is actually watching. The name is carried so an operator\n * reading a log line can tell WHICH authority is responsible for freshness, and so a second\n * registration is visible rather than silent.\n */\n public registerFreshnessAuthority(name: string): void {\n this.freshnessAuthorityName = name;\n this.freshnessMode = IntrospectionFreshnessMode.PUSH;\n this.logger.info('Introspection derivation state promoted to push freshness', { authority: name });\n }\n\n /**\n * Demote back to per-read observation.\n *\n * The watcher calls this when it errors or closes. Demoting is always safe and never wrong — it\n * only costs time — whereas staying in `PUSH` with a dead authority serves a tree that has moved.\n */\n public noteFreshnessAuthorityLost(reason: string): void {\n if (this.freshnessMode === IntrospectionFreshnessMode.OBSERVE_PER_READ) return;\n this.freshnessMode = IntrospectionFreshnessMode.OBSERVE_PER_READ;\n this.logger.warn('Introspection freshness authority lost; falling back to per-read source observation', {\n authority: this.freshnessAuthorityName,\n reason,\n });\n this.freshnessAuthorityName = undefined;\n }\n\n /**\n * Read a derivation, compiling only when there is nothing to read.\n *\n * `compile` is retained against the cache key on first sight, which is what lets a later\n * source mutation recompile this question with no caller present. That is the whole mechanism by\n * which retrieval stops driving compilation: the FIRST read teaches the service the question, and\n * every subsequent answer — including the ones nobody asked for yet — is produced by the source\n * moving instead.\n *\n * In `OBSERVE_PER_READ` mode the freshness probe still runs here, because without an authority\n * there is nothing else that could run it.\n */\n public async read(\n identity: { readonly cacheKey: string; readonly behavior: string; readonly serviceKey: string },\n compile: () => Promise<CompanionIntrospectionResult>,\n ): Promise<CompanionIntrospectionResult> {\n if (!this.known.has(identity.cacheKey)) {\n this.known.set(identity.cacheKey, { ...identity, compile });\n }\n\n if (this.freshnessMode === IntrospectionFreshnessMode.OBSERVE_PER_READ) {\n return this.readWithPerReadObservation(identity, compile);\n }\n\n const held = this.state.get(identity.cacheKey);\n if (held) {\n const ageMs = Date.now() - held.compiledAt;\n this.logDebug('Introspection derivation served from compiled state', {\n behavior: identity.behavior,\n serviceKey: identity.serviceKey,\n ageMs,\n generation: held.generation,\n });\n // The age TRAVELS now (#1437). It was computed here for a debug line while the consumer that\n // needs it — one deciding whether a held answer still describes the tree it is about to edit —\n // could not see it.\n return { ...held.result, servedFromCache: true, derivationAgeMs: ageMs };\n }\n\n return (await this.compileInto(identity.cacheKey, IntrospectionRecompileReason.COLD_READ))\n ?? compile();\n }\n\n /**\n * The pre-#159-separation path, kept verbatim in behaviour for the no-authority case.\n *\n * A read observes the source, serves the held derivation when the token still matches, and\n * compiles otherwise. Slower by exactly one sweep per read, and correct with no collaborator.\n */\n private async readWithPerReadObservation(\n identity: { readonly cacheKey: string; readonly behavior: string; readonly serviceKey: string },\n compile: () => Promise<CompanionIntrospectionResult>,\n ): Promise<CompanionIntrospectionResult> {\n const observation = await this.observer.observe(Date.now());\n const held = this.state.get(identity.cacheKey);\n if (held && held.sourceStateToken === observation.token) {\n this.logDebug('Introspection derivation served from compiled state (per-read observation)', {\n behavior: identity.behavior,\n serviceKey: identity.serviceKey,\n sourceObservationMs: observation.durationMs,\n });\n // BOTH read paths, and stating why they differ: this one has already checked the source token,\n // so the age says how long ago the answer was taken rather than how long it MIGHT be stale.\n // Reporting it on only one path would make the field mean different things per freshness mode,\n // which is worse than not having it.\n return { ...held.result, servedFromCache: true, derivationAgeMs: Date.now() - held.compiledAt };\n }\n\n /*\n * Routed through `compileInto` rather than calling the closure here, because that is where the\n * in-flight join lives. `maxConcurrency` caps how many subprocesses run at once; it does not\n * notice that two of them are asking the identical question. Two concurrent reads of one\n * behavior must cost ONE subprocess, and calling the closure directly would silently\n * reintroduce the second child.\n *\n * `bounded: false` means the sweep gave up before seeing the whole tree, so its token says\n * nothing about whether the source moved. Compiling is still correct; RETAINING against that\n * token would not be — which is why the token is handed over only when the sweep completed.\n */\n return (await this.compileInto(\n identity.cacheKey,\n IntrospectionRecompileReason.COLD_READ,\n observation.bounded ? observation.token : undefined,\n )) ?? compile();\n }\n\n /**\n * Recompile everything this service knows about, if the source has actually moved.\n *\n * Returns one outcome per known derivation, with `changed` telling the caller whether anything\n * downstream needs to hear about it. A recompilation that produces a byte-identical payload is\n * reported as unchanged, because an operator saving a file that alters nothing observable must not\n * produce a wave of notifications.\n *\n * A FAILED recompilation keeps the previous state rather than dropping it. The dominant failure\n * here is an application mid-build, and answering \"could not look\" for the seconds a `tsc` takes —\n * when a correct answer from one second ago is in hand — is worse than answering slightly late.\n */\n public async recompileIfSourceMoved(\n reason: IntrospectionRecompileReason,\n ): Promise<{ readonly moved: boolean; readonly outcomes: readonly IntrospectionRecompileOutcome[] }> {\n const observation = await this.observer.observe(Date.now());\n if (!observation.bounded) {\n this.logger.warn('Introspection source observation exceeded its ceiling; recompiling without remembering', {\n reason,\n observedEntryCount: observation.observedEntryCount,\n });\n }\n\n if (this.currentToken === observation.token && observation.bounded) {\n return { moved: false, outcomes: [] };\n }\n this.currentToken = observation.bounded ? observation.token : undefined;\n\n /*\n * Snapshot every previous state BEFORE compiling any of them.\n *\n * `store` prunes entries taken against a superseded token, so the FIRST compilation of this loop\n * deletes every OTHER derivation's previous state — they still carry the old token. Reading\n * `previous` inside the loop therefore returned `undefined` for every derivation after the first,\n * and each one reported its whole row set as CREATED.\n *\n * Measured before the fix on wonder-crm: 180 publications in three minutes, every one of them\n * `created: N, updated: 0, deleted: 0` — a full-repaint storm, the exact opposite of what the\n * diff exists to produce. Found by reading the live log rather than by a test, which is why the\n * regression pin below compares TWO derivations rather than one.\n */\n const previousByKey = new Map<string, IntrospectionCompiledDerivation>();\n for (const entry of this.known.values()) {\n const held = this.state.get(entry.cacheKey);\n if (held) previousByKey.set(entry.cacheKey, held);\n }\n\n const outcomes: IntrospectionRecompileOutcome[] = [];\n for (const entry of this.known.values()) {\n const previous = previousByKey.get(entry.cacheKey);\n await this.compileInto(entry.cacheKey, reason, observation.token);\n const next = this.state.get(entry.cacheKey);\n outcomes.push({\n cacheKey: entry.cacheKey,\n behavior: entry.behavior,\n serviceKey: entry.serviceKey,\n previous,\n next,\n changed: next !== undefined && next !== previous\n && !areDerivationPayloadsEqual(previous?.result, next.result),\n });\n }\n\n this.logDebug('Introspection source moved; recompiled known derivations', {\n reason,\n derivationCount: outcomes.length,\n changedCount: outcomes.filter((outcome) => outcome.changed).length,\n sourceObservationMs: observation.durationMs,\n });\n\n return { moved: true, outcomes };\n }\n\n /**\n * How many derivations are currently held.\n *\n * A diagnostic, and the pin for the pruning invariant: the map is bounded by the distinct\n * questions asked since the last source change, not by every question ever asked.\n */\n public get compiledDerivationCount(): number {\n return this.state.size;\n }\n\n /** The generation currently held for a derivation, for a caller stamping a notification. */\n public generationOf(cacheKey: string): number | undefined {\n return this.state.get(cacheKey)?.generation;\n }\n\n /**\n * Drop every compiled derivation.\n *\n * Costs a recompilation and changes no answer. That property is what makes this state rather than\n * a ledger, so it is exercised by a test rather than merely asserted here.\n */\n public clear(): void {\n this.state.clear();\n this.currentToken = undefined;\n }\n\n /**\n * Test seam: drop ONE compiled entry, to reproduce a single-key compile against a partly-empty\n * state. Production never evicts a single entry — see the note in `store`.\n */\n public clearOneForTesting(cacheKey: string): void {\n this.state.delete(cacheKey);\n }\n\n /** Test seam: replace the source observer with a fake. Production always observes real trees. */\n public setSourceStateObserverForTesting(observer: IntrospectionSourceStateObserver): void {\n (this as unknown as { observer: IntrospectionSourceStateObserver }).observer = observer;\n }\n\n /**\n * Compile one known derivation into the state, joining an identical in-flight compilation.\n *\n * The join matters more here than in a request-shaped cache: a watcher burst and a cold read can\n * arrive within the same millisecond, and a subprocess that imports the whole application is the\n * most expensive thing this process does.\n */\n private async compileInto(\n cacheKey: string,\n reason: IntrospectionRecompileReason,\n tokenOverride?: string,\n ): Promise<CompanionIntrospectionResult | undefined> {\n const existing = this.inFlight.get(cacheKey);\n if (existing) return existing;\n\n const entry = this.known.get(cacheKey);\n if (!entry) return undefined;\n\n const run = (async (): Promise<CompanionIntrospectionResult> => {\n let token = tokenOverride;\n if (token === undefined) {\n const observation = await this.observer.observe(Date.now());\n token = observation.bounded ? observation.token : undefined;\n }\n\n const result = await entry.compile();\n if (!result.success || token === undefined) {\n /*\n * A failure is never retained, and the reasoning is the same as before the split: the\n * dominant failure here is an application whose `dist` is not built, whose remedy moves the\n * source and would invalidate anyway; and a transient failure — a timeout on a loaded\n * machine — would otherwise stick to an unchanged tree and be served as the answer forever.\n */\n this.logDebug('Introspection compilation not retained', {\n behavior: entry.behavior,\n serviceKey: entry.serviceKey,\n reason,\n success: result.success,\n hasToken: token !== undefined,\n });\n return result;\n }\n this.store(cacheKey, result, token);\n return result;\n })().finally(() => {\n this.inFlight.delete(cacheKey);\n });\n\n this.inFlight.set(cacheKey, run);\n return run;\n }\n\n /** Write a compiled derivation into the state under a fresh, never-decreasing generation. */\n private store(\n cacheKey: string,\n result: CompanionIntrospectionSuccessResult,\n sourceStateToken: string,\n ): IntrospectionCompiledDerivation {\n const compiledAt = Date.now();\n // Wall-clock is monotone across a restart; the `+1` only breaks a tie between two compilations\n // landing inside the same millisecond, which a browser tab would otherwise read as a stale push.\n this.lastGeneration = Math.max(compiledAt, this.lastGeneration + 1);\n const compiled: IntrospectionCompiledDerivation = {\n result,\n sourceStateToken,\n generation: this.lastGeneration,\n compiledAt,\n };\n /*\n * NOTHING IS PRUNED HERE, and that REVERSES what issue #159's cache did — deliberately.\n *\n * That cache dropped every entry taken against a superseded token, on the reasoning that such an\n * entry \"describes a tree that no longer exists, so it can never be served again\". The first half\n * is still true; the conclusion is not, because an entry now has a SECOND job. It is the basis\n * the next recompilation diffs against, and being unservable as an ANSWER does not make it\n * useless as a BASELINE.\n *\n * Pruning here cost exactly that: compiling ONE derivation evicted every other derivation's\n * baseline, so the next recompile-all saw no previous state for them and reported their whole row\n * sets as CREATED. Measured on wonder-crm before the fix — 180 publications in three minutes,\n * every one a full repaint.\n *\n * The growth the pruning guarded against cannot occur any more either: this map holds ONE entry\n * per cache key, and a recompilation OVERWRITES that key rather than adding a second entry. Its\n * size is bounded by the number of distinct questions in {@link known}, which is the same bound\n * that map already carries.\n */\n this.state.set(cacheKey, compiled);\n return compiled;\n }\n}\n\n/**\n * Whether two derivations carry the same answer.\n *\n * Compared on the DATA the child returned, not on the envelope: a result carries timing and a\n * `servedFromCache` flag that differ between two compilations of an unchanged application, and\n * comparing those would report every recompilation as a change.\n *\n * A stable stringify is deliberately NOT used. The child's payload is produced by one code path from\n * one imported module graph, so key order is stable between two runs of the same bytes; and an\n * ordering difference that did appear would mean the application's own output was non-deterministic,\n * which is a change worth reporting rather than hiding.\n *\n * ## This OVER-reports, deliberately, and the row diff is the real decision\n *\n * Measured on wonder-crm 2026-09-02, by recompiling three times against byte-identical sources: two\n * of three derivations reported `changed` every time. Diffing two payloads leaf by leaf found exactly\n * one differing value — `specification-artifacts` stamps `trace.evaluatedAt` with the wall-clock\n * instant of the derivation, so its payload can never compare equal to its predecessor.\n * (`application-domain-model` differed in **0** leaves, so the volatility is per-behavior, not\n * general.)\n *\n * That is safe, and it is safe for a specific reason rather than by luck: `changed` only decides\n * whether the notifier is INVITED to look. What it publishes is decided by `diffProjectedRows` over\n * the projected ROWS, and `trace` sits outside this behavior's `rowsPath`. The live check confirms\n * it — three touch-only recompilations produced `changedCount: 2` and **zero** publications.\n *\n * The alternative — excluding known-volatile keys here — was rejected: it would be a second, drifting\n * description of what a row contains, when the projection already owns that answer. **But the\n * guarantee rests on volatile fields staying OUT of the projected rows.** A behavior that put a\n * timestamp INSIDE a row would push an update for every row on every recompilation, and nothing here\n * would catch it — the diff would be correct and the data would be noise.\n */\nexport function areDerivationPayloadsEqual(\n left: CompanionIntrospectionSuccessResult | undefined,\n right: CompanionIntrospectionSuccessResult | undefined,\n): boolean {\n if (left === undefined || right === undefined) return false;\n return JSON.stringify(left.data) === JSON.stringify(right.data);\n}\n"]}
@@ -29,11 +29,12 @@ export interface IntrospectionSourceStateObservation {
29
29
  *
30
30
  * ## Why a token rather than a watcher
31
31
  *
32
- * The companion has no file watcher and adding one would mean a new always-on dependency, a new
33
- * always-on process cost, and a new class of missed-event bug on the platforms this repository does
34
- * not test on. A sweep answers the same question on demand, costs ~125 ms against the largest
35
- * dogfood application, and cannot miss an event because it does not observe events at all — it
36
- * observes the tree.
32
+ * The companion's file watcher (`IntrospectionSourceWatcherCompanionService`) is best-effort —
33
+ * `fs.watch` can go deaf with no error — so it only says WHEN to look; this observer says WHETHER
34
+ * anything moved. A sweep answers that on demand, costs ~125 ms against the largest dogfood
35
+ * application, and cannot miss an event because it does not observe events at all — it observes the
36
+ * tree. (This paragraph said "the companion has no file watcher" until 2026-09-24; the watcher was
37
+ * added on top of the observer, not instead of it.)
37
38
  *
38
39
  * ## Why mtimes rather than content
39
40
  *
@@ -183,4 +184,13 @@ export declare class IntrospectionSourceStateObserver {
183
184
  */
184
185
  private visitDirectory;
185
186
  }
187
+ /**
188
+ * Every APPLICATION package an introspection derivation can import: each declared service, each
189
+ * resolved library, and the specifications package.
190
+ *
191
+ * ONE enumeration, shared by this observer and by the creation-plane projection's input signature
192
+ * (#1310, seventh review G1), because both answer the same question — "which built trees can move an
193
+ * introspection result?" — and two lists of one population agree only until one gains an entry.
194
+ */
195
+ export declare function resolveIntrospectedApplicationPackageRoots(companionContext: Pick<CompanionContext, 'saasRoot' | 'servicesByKey' | 'resolvedLibraries' | 'resolvedSpecifications'>): readonly string[];
186
196
  //# sourceMappingURL=introspection-source-state.companion.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"introspection-source-state.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/services/introspection-source-state.companion.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAsCxE;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB,4FAA4F;IAC5F,UAAU,EAAE,MAAM,CAAC;IACnB,mFAAmF;IACnF,iBAAiB,EAAE,MAAM,CAAC;IAC1B,2FAA2F;IAC3F,kBAAkB,EAAE,MAAM,CAAC;IAC3B,+EAA+E;IAC/E,SAAS,EAAE,MAAM,CAAC;CACnB;AASD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,qBAAa,gCAAgC;IAC3C,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA0H;IAC3J,OAAO,CAAC,mBAAmB,CAAK;IAChC,OAAO,CAAC,QAAQ,CAAiG;gBAG/G,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,eAAe,GAAG,eAAe,GAAG,mBAAmB,GAAG,wBAAwB,CAAC;IAK3I;;;;;;;;;OASG;IACU,OAAO,CAAC,WAAW,GAAE,MAAmB,GAAG,OAAO,CAAC,mCAAmC,CAAC;YAuBtF,cAAc;IA4B5B;;;;;;;;;;;;;OAaG;IACU,8BAA8B,IAAI,OAAO,CAAC;QACrD,QAAQ,CAAC,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;QAC7C,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;KAC5C,CAAC;IAuCF;;;;;;;;;;;;;;;;;;;OAmBG;YACW,oBAAoB;IAKlC;;;;;;;;;;;;OAYG;YACW,+BAA+B;IAuB7C;;;;;;;;;OASG;YACW,IAAI;IA4BlB;;;;;;OAMG;YACW,cAAc;CAyD7B"}
1
+ {"version":3,"file":"introspection-source-state.companion.service.d.ts","sourceRoot":"","sources":["../../../../../../src/core/introspection/services/introspection-source-state.companion.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAsCxE;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD;;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AAE,CAYnB"}
@@ -39,11 +39,12 @@ const MAXIMUM_OBSERVED_ENTRIES = 250_000;
39
39
  *
40
40
  * ## Why a token rather than a watcher
41
41
  *
42
- * The companion has no file watcher and adding one would mean a new always-on dependency, a new
43
- * always-on process cost, and a new class of missed-event bug on the platforms this repository does
44
- * not test on. A sweep answers the same question on demand, costs ~125 ms against the largest
45
- * dogfood application, and cannot miss an event because it does not observe events at all — it
46
- * observes the tree.
42
+ * The companion's file watcher (`IntrospectionSourceWatcherCompanionService`) is best-effort —
43
+ * `fs.watch` can go deaf with no error — so it only says WHEN to look; this observer says WHETHER
44
+ * anything moved. A sweep answers that on demand, costs ~125 ms against the largest dogfood
45
+ * application, and cannot miss an event because it does not observe events at all — it observes the
46
+ * tree. (This paragraph said "the companion has no file watcher" until 2026-09-24; the watcher was
47
+ * added on top of the observer, not instead of it.)
47
48
  *
48
49
  * ## Why mtimes rather than content
49
50
  *
@@ -179,16 +180,7 @@ export class IntrospectionSourceStateObserver {
179
180
  * agree only until one side gains an entry.
180
181
  */
181
182
  async resolveObservedRootPopulations() {
182
- const applicationRoots = new Set();
183
- for (const serviceDefinition of Object.values(this.companionContext.servicesByKey)) {
184
- applicationRoots.add(resolve(this.companionContext.saasRoot, serviceDefinition.path));
185
- }
186
- for (const resolvedLibrary of Object.values(this.companionContext.resolvedLibraries)) {
187
- applicationRoots.add(resolvedLibrary.packageRoot);
188
- }
189
- if (this.companionContext.resolvedSpecifications) {
190
- applicationRoots.add(this.companionContext.resolvedSpecifications.packageRoot);
191
- }
183
+ const applicationRoots = resolveIntrospectedApplicationPackageRoots(this.companionContext);
192
184
  const frameworkScopeOwners = [
193
185
  ...applicationRoots,
194
186
  this.companionContext.saasRoot,
@@ -365,4 +357,25 @@ export class IntrospectionSourceStateObserver {
365
357
  }
366
358
  }
367
359
  }
360
+ /**
361
+ * Every APPLICATION package an introspection derivation can import: each declared service, each
362
+ * resolved library, and the specifications package.
363
+ *
364
+ * ONE enumeration, shared by this observer and by the creation-plane projection's input signature
365
+ * (#1310, seventh review G1), because both answer the same question — "which built trees can move an
366
+ * introspection result?" — and two lists of one population agree only until one gains an entry.
367
+ */
368
+ export function resolveIntrospectedApplicationPackageRoots(companionContext) {
369
+ const applicationRoots = new Set();
370
+ for (const serviceDefinition of Object.values(companionContext.servicesByKey)) {
371
+ applicationRoots.add(resolve(companionContext.saasRoot, serviceDefinition.path));
372
+ }
373
+ for (const resolvedLibrary of Object.values(companionContext.resolvedLibraries)) {
374
+ applicationRoots.add(resolvedLibrary.packageRoot);
375
+ }
376
+ if (companionContext.resolvedSpecifications) {
377
+ applicationRoots.add(companionContext.resolvedSpecifications.packageRoot);
378
+ }
379
+ return [...applicationRoots];
380
+ }
368
381
  //# sourceMappingURL=introspection-source-state.companion.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"introspection-source-state.companion.service.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/services/introspection-source-state.companion.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAG1C;;;;;;;;;;;GAWG;AACH,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAEtC;;;;;;;GAOG;AACH,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC;AAElE;;;;;;;;;GASG;AACH,MAAM,wBAAwB,GAAG,OAAO,CAAC;AAkCzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,MAAM,OAAO,gCAAgC;IAC1B,gBAAgB,CAA0H;IACnJ,mBAAmB,GAAG,CAAC,CAAC;IACxB,QAAQ,GAA4F,IAAI,CAAC;IAEjH,YACE,gBAAyI;QAEzI,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;I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S,GAAG,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;YAC9C,IAAI,KAAK,CAAC,WAAW,EAAE,EAAE,CAAC;gBACxB,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBACxB,SAAS;YACX,CAAC;YACD,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC;gBACpB,yFAAyF;gBACzF,wFAAwF;gBACxF,uEAAuE;gBACvE,WAAW,CAAC,SAAS,IAAI,CAAC,CAAC;gBAC3B,SAAS;YACX,CAAC;YACD,SAAS,CAAC,IAAI,CACZ,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAC7B,CAAC,UAAU,EAAE,EAAE;gBACb,WAAW,CAAC,SAAS,IAAI,CAAC,CAAC;gBAC3B,IAAI,UAAU,CAAC,OAAO,GAAG,WAAW,CAAC,cAAc,EAAE,CAAC;oBACpD,WAAW,CAAC,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;gBAClD,CAAC;YACH,CAAC,EACD,GAAG,EAAE;gBACH,WAAW,CAAC,SAAS,IAAI,CAAC,CAAC;YAC7B,CAAC,CACF,CACF,CAAC;QACJ,CAAC;QACD,MAAM,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAE7B,IAAI,WAAW,CAAC,SAAS,GAAG,WAAW,CAAC,cAAc,GAAG,wBAAwB,EAAE,CAAC;YAClF,WAAW,CAAC,eAAe,GAAG,IAAI,CAAC;QACrC,CAAC;IACH,CAAC;CACF","sourcesContent":["import { promises as fsPromises } from 'node:fs';\nimport { join, resolve } from 'node:path';\nimport type { CompanionContext } from '../../context/companion-context';\n\n/**\n * How many directories are walked concurrently.\n *\n * Measured on `examples/wonder-crm` (23,758 files + 2,706 directories across the three application\n * package roots and the 19 distinct `@wildo-ai/*` roots they resolve to): 350 ms at concurrency 1,\n * **125 ms at 16**, 142 ms at 64, 134 ms at 128. The curve is flat past 16, so 16 is the point where\n * the walk stops being latency-bound without turning into an open-ended file-descriptor burst.\n *\n * The walk is deliberately ASYNC rather than the ~30 % faster synchronous form. A synchronous sweep\n * measured 175 ms on the same tree, but it holds the event loop for that whole time — and this runs\n * inside a long-lived HTTP server that is also serving the workbench.\n */\nconst DIRECTORY_WALK_CONCURRENCY = 16;\n\n/**\n * Directory names never descended into.\n *\n * `node_modules` is skipped during the walk and reached only through the explicit `@wildo-ai/*`\n * roots below: descending into it from an application package would sweep the app's entire\n * dependency graph (hundreds of thousands of files) to learn nothing the resolved engine roots do\n * not already say.\n */\nconst SKIPPED_DIRECTORY_NAMES = new Set(['node_modules', '.git']);\n\n/**\n * A ceiling on how much this observer will walk before it gives up on caching.\n *\n * Chosen ~10x above the measured 26k-entry dogfood application, so it can only be reached by a\n * pathological root (a `dist` holding a build cache, an application that vendored something large).\n * Crossing it does not disable the walk half-way and report a plausible number — it returns\n * `bounded: false`, which the caller MUST read as \"do not cache this derivation\". Failing toward\n * re-deriving is the only safe direction here: an under-observed token is a cache key that stops\n * moving when the source does.\n */\nconst MAXIMUM_OBSERVED_ENTRIES = 250_000;\n\n/**\n * What a completed sweep learned about the source that feeds an introspection derivation.\n */\nexport interface IntrospectionSourceStateObservation {\n /**\n * The comparable value. Two observations with the same token describe the same source tree; a\n * different token means SOMETHING moved and every cached derivation is void.\n */\n token: string;\n /**\n * `false` when the sweep hit {@link MAXIMUM_OBSERVED_ENTRIES}. The token is then deliberately\n * unique per observation, so a caller that ignores this flag still re-derives rather than serving\n * a stale answer.\n */\n bounded: boolean;\n /** Wall-clock cost of the sweep, for the debug line that explains a cache hit's latency. */\n durationMs: number;\n /** Number of roots actually walked (a root that does not exist yet is not one). */\n observedRootCount: number;\n /** Files plus directories visited. Reported so an operator can see why a sweep is slow. */\n observedEntryCount: number;\n /** The instant the sweep STARTED, which is the instant the token describes. */\n startedAt: number;\n}\n\ninterface SweepAccumulator {\n fileCount: number;\n directoryCount: number;\n maximumMtimeMs: number;\n exceededCeiling: boolean;\n}\n\n/**\n * Observes the state of every source tree an introspection derivation can read, as one comparable\n * token.\n *\n * ## Why a token rather than a watcher\n *\n * The companion has no file watcher and adding one would mean a new always-on dependency, a new\n * always-on process cost, and a new class of missed-event bug on the platforms this repository does\n * not test on. A sweep answers the same question on demand, costs ~125 ms against the largest\n * dogfood application, and cannot miss an event because it does not observe events at all — it\n * observes the tree.\n *\n * ## Why mtimes rather than content\n *\n * `.claude/rules/application-creation-directive.md` forbids digests, of any kind, for any purpose,\n * and `.claude/rules/one-source-of-truth.md` Rule 0 refuses anything that is not branchable on git.\n * A content hash compared against a stored one is exactly the second-source-of-truth shape both\n * rules exist to keep out. An mtime observation stores nothing about the application: it is a\n * reading taken now, compared against a reading taken earlier in the same process, and deleting it\n * costs a re-derivation and nothing else.\n *\n * ## What the token is made of, and what each part catches\n *\n * | Component | Catches |\n * |---|---|\n * | maximum file/directory mtime | a file written in place (the ordinary edit, and every `tsc` emit) |\n * | file count | a file added or deleted |\n * | directory count | a directory added or deleted |\n * | directory mtimes, in the maximum | a RENAME, which preserves the file's own mtime and would otherwise be invisible while the file count stayed equal |\n *\n * Directory mtimes are the non-obvious member and they are load-bearing: without them,\n * `mv a.ts b.ts` moves neither the count nor any file mtime, and the cache would keep answering\n * from the pre-rename derivation for as long as nothing else in the tree moved.\n *\n * The one mutation this cannot see is an mtime pushed BACKWARD in place on a file that is not the\n * newest in the tree (`touch -t 200001010000 <file>` on an already-old file). Nothing in a dev loop\n * does that; a real editor, `tsc`, `git checkout` and pnpm's hard-link relink all move an mtime\n * forward or move a directory. Recorded rather than papered over, because a reader who assumes the\n * token is total would be assuming something false.\n *\n * ## Which trees, and why the engine ones are in there\n *\n * An application resolving `@wildo-ai/*` through `file:` links — every dogfood app does — changes\n * its derivation when the engine is rebuilt, with no application file touched. The engine bytes the\n * child actually imports are the ones pnpm hard-linked into the app's store, NOT the ones in\n * `engine/<package>/dist`, and the two are reconciled at supervised (re)start rather than continuously. So\n * the framework signal has to be the injected snapshot itself. `.wildo-runtime-signals/dev-compile-status.json`\n * was considered and rejected for exactly this: it is a LEADING indicator, moving when the engine\n * compiles and therefore possibly before the bytes this process would import have changed — which\n * would let a derivation be cached against a token that has already advanced past it, and never\n * re-derived when the injection finally lands.\n *\n * For an application consuming published `@wildo-ai/*` tarballs the same roots are simply immutable\n * between installs, so the sweep costs a little and proves the same thing.\n *\n * ## What it costs, and one narrowing that was measured and REJECTED\n *\n * 176–225 ms against `examples/wonder-crm` (23 roots, 27,050 entries), versus a 3.1–4.2 s cold\n * import of that application's specifications package alone. So a cache hit is ~15x cheaper than\n * the cheapest possible miss.\n *\n * Skipping `*.d.ts` and `*.map` would roughly halve it — they are **55 %** of the swept files\n * (8,830 maps + 4,417 declarations of 24,243) and neither can change a runtime derivation. It was\n * rejected anyway: the saving is ~90 ms nobody can perceive, and it would buy that with an\n * assumption about what a future behavior may read. No behavior under `introspection/subprocess/`\n * imports `node:fs` at all today — every one of them is a pure function of the imported module\n * graph — but that is a fact about today, and the direction to be wrong in here is toward\n * re-deriving. Recorded so the next reader does not re-derive the numbers before reaching the same\n * conclusion.\n */\nexport class IntrospectionSourceStateObserver {\n private readonly companionContext: Pick<CompanionContext, 'saasRoot' | 'companionHome' | 'servicesByKey' | 'resolvedLibraries' | 'resolvedSpecifications'>;\n private observationSequence = 0;\n private inFlight: { startedAt: number; observation: Promise<IntrospectionSourceStateObservation> } | null = null;\n\n constructor(\n companionContext: Pick<CompanionContext, 'saasRoot' | 'companionHome' | 'servicesByKey' | 'resolvedLibraries' | 'resolvedSpecifications'>,\n ) {\n this.companionContext = companionContext;\n }\n\n /**\n * Take a reading of the source trees, reusing an in-flight one ONLY when that reading started at\n * or after the caller's own arrival.\n *\n * The condition is the whole point of the coalescing. A sweep takes ~125 ms; a request arriving\n * 100 ms into someone else's sweep and adopting its token would be answered from a picture of the\n * world taken 100 ms before it asked — a window in which the operator could have saved a file. So\n * a late arrival waits for the running sweep to finish and takes a fresh one, which is slower and\n * correct, while genuinely concurrent callers share one walk, which is what the coalescing is for.\n */\n public async observe(requestedAt: number = Date.now()): Promise<IntrospectionSourceStateObservation> {\n const current = this.inFlight;\n if (current !== null && current.startedAt >= requestedAt) {\n return current.observation;\n }\n\n if (current !== null) {\n // Let the running sweep finish before starting another; two concurrent walks of the same\n // trees would only contend for the same file descriptors.\n await current.observation.catch(() => undefined);\n return this.observe(requestedAt);\n }\n\n const startedAt = Date.now();\n const observation = this.runObservation(startedAt).finally(() => {\n if (this.inFlight?.startedAt === startedAt) {\n this.inFlight = null;\n }\n });\n this.inFlight = { startedAt, observation };\n return observation;\n }\n\n private async runObservation(startedAt: number): Promise<IntrospectionSourceStateObservation> {\n const roots = await this.resolveObservedRoots();\n const accumulator: SweepAccumulator = {\n fileCount: 0,\n directoryCount: 0,\n maximumMtimeMs: 0,\n exceededCeiling: false,\n };\n\n await this.observeApplicationRootManifests(accumulator);\n await this.walk(roots, accumulator);\n\n this.observationSequence += 1;\n const bounded = !accumulator.exceededCeiling;\n const token = bounded\n ? `roots:${roots.length}|files:${accumulator.fileCount}|dirs:${accumulator.directoryCount}|mtime:${accumulator.maximumMtimeMs}`\n : `unbounded:${this.observationSequence}`;\n\n return {\n token,\n bounded,\n durationMs: Date.now() - startedAt,\n observedRootCount: roots.length,\n observedEntryCount: accumulator.fileCount + accumulator.directoryCount,\n startedAt,\n };\n }\n\n /**\n * The two ROOT populations a derivation reads from, kept apart because a watcher treats them\n * differently.\n *\n * An APPLICATION root is a package the operator edits: its `src` moves first and its `dist` moves\n * second, and only the second changes what a derivation imports —\n * `resolvePackageCompanionEntryPath` resolves the package's `exports['./companion']`, which is\n * `./dist/esm/companion-exports.js` on every application package. A FRAMEWORK root is the injected\n * `@wildo-ai/*` copy in the application's own store: dist-only bytes, hard-linked at supervised\n * (re)start, carrying no runtime-signal files of its own.\n *\n * Exposed so the watcher and the sweep observe one population rather than two enumerations that\n * agree only until one side gains an entry.\n */\n public async resolveObservedRootPopulations(): Promise<{\n readonly applicationRoots: readonly string[];\n readonly frameworkRoots: readonly string[];\n }> {\n const applicationRoots = new Set<string>();\n for (const serviceDefinition of Object.values(this.companionContext.servicesByKey)) {\n applicationRoots.add(resolve(this.companionContext.saasRoot, serviceDefinition.path));\n }\n for (const resolvedLibrary of Object.values(this.companionContext.resolvedLibraries)) {\n applicationRoots.add(resolvedLibrary.packageRoot);\n }\n if (this.companionContext.resolvedSpecifications) {\n applicationRoots.add(this.companionContext.resolvedSpecifications.packageRoot);\n }\n\n const frameworkScopeOwners = [\n ...applicationRoots,\n this.companionContext.saasRoot,\n this.companionContext.companionHome,\n ];\n const frameworkRoots = new Set<string>();\n for (const owner of frameworkScopeOwners) {\n const scopeDirectory = join(owner, 'node_modules', '@wildo-ai');\n let scopeEntries: string[];\n try {\n scopeEntries = await fsPromises.readdir(scopeDirectory);\n } catch {\n continue;\n }\n for (const scopeEntry of scopeEntries) {\n try {\n frameworkRoots.add(await fsPromises.realpath(join(scopeDirectory, scopeEntry)));\n } catch {\n // A dangling link contributes nothing to observe; its disappearance shows up as a\n // directory-mtime change on the scope directory's owner instead.\n }\n }\n }\n\n return { applicationRoots: [...applicationRoots], frameworkRoots: [...frameworkRoots] };\n }\n\n /**\n * Every tree whose bytes can reach a derivation, de-duplicated by resolved real path.\n *\n * Two families, and the second is the one a reader would not think of:\n *\n * 1. The APPLICATION package roots — every declared service, every resolved library, and the\n * specifications package. Whole roots rather than `src/` alone, because\n * `resolvePackageCompanionEntryPath` prefers a package's built `./companion` export when it\n * exists, so the child commonly imports `dist/`, not source. Sweeping both means neither\n * resolution mode has a blind spot.\n * 2. The FRAMEWORK packages, reached by reading each of those roots' (and the companion home's)\n * `node_modules/@wildo-ai` scope directory and resolving each link to its real path. Reading\n * the scope directory rather than listing package names keeps this from becoming a second\n * enumeration of the engine's package set that could drift from the real one.\n *\n * The application root itself is NOT walked recursively — its interesting children are already in\n * family 1, and descending it would pull in `.wildo-saas` (the companion's own dist plus the\n * runtime-signal files that churn on a heartbeat, which would make every token unique and every\n * cache read a miss).\n */\n private async resolveObservedRoots(): Promise<string[]> {\n const { applicationRoots, frameworkRoots } = await this.resolveObservedRootPopulations();\n return [...new Set([...applicationRoots, ...frameworkRoots])];\n }\n\n /**\n * Fold the application root's own top-level FILES in, without descending it.\n *\n * These are `pnpm-lock.yaml`, `package.json` and `wildo.saas.config.ts` — the manifests that\n * decide which third-party bytes the child imports. Without them there is a narrow but real hole:\n * an install that moves a non-`@wildo-ai` dependency changes a derivation while touching nothing\n * inside a package root, because the walk enters `node_modules` only through the resolved\n * `@wildo-ai` scope. The lockfile moves on every such install, so one shallow read closes it.\n *\n * The root is NOT descended, because doing so would pull in `.wildo-saas` — the companion's own\n * dist and the runtime-signal files that are rewritten on a heartbeat, which would make every\n * token unique and every cache read a miss.\n */\n private async observeApplicationRootManifests(accumulator: SweepAccumulator): Promise<void> {\n let entries;\n try {\n entries = await fsPromises.readdir(this.companionContext.saasRoot, { withFileTypes: true });\n } catch {\n return;\n }\n\n await Promise.all(entries.map(async (entry) => {\n if (!entry.isFile()) return;\n accumulator.fileCount += 1;\n try {\n const entryStats = await fsPromises.stat(join(this.companionContext.saasRoot, entry.name));\n if (entryStats.mtimeMs > accumulator.maximumMtimeMs) {\n accumulator.maximumMtimeMs = entryStats.mtimeMs;\n }\n } catch {\n // Counted above; a file that vanished between readdir and stat is itself a change, and the\n // count will differ on the next observation.\n }\n }));\n }\n\n /**\n * Breadth-of-tree walk with a fixed directory concurrency.\n *\n * A worker-pool built over the ROOT list was written first and was wrong: it sizes its pool from\n * the number of roots, so a single-root application would walk its whole tree one directory at a\n * time, and a worker that finds the queue momentarily empty cannot tell \"finished\" from \"another\n * worker is about to push children\". The pump below sizes on IN-FLIGHT directories instead, which\n * is the quantity the concurrency limit is actually about, and terminates on the only condition\n * that means finished: nothing queued and nothing running.\n */\n private async walk(roots: readonly string[], accumulator: SweepAccumulator): Promise<void> {\n const pending: string[] = [...roots];\n let inFlightDirectories = 0;\n\n return new Promise<void>((resolveWalk) => {\n const pump = (): void => {\n while (\n !accumulator.exceededCeiling\n && inFlightDirectories < DIRECTORY_WALK_CONCURRENCY\n && pending.length > 0\n ) {\n const directory = pending.pop() as string;\n inFlightDirectories += 1;\n void this.visitDirectory(directory, accumulator, pending).then(() => {\n inFlightDirectories -= 1;\n pump();\n });\n }\n\n if (inFlightDirectories === 0 && (pending.length === 0 || accumulator.exceededCeiling)) {\n resolveWalk();\n }\n };\n\n pump();\n });\n }\n\n /**\n * Read one directory: count it, fold its own mtime in, stat its files, and queue its children.\n *\n * Never rejects. A directory that cannot be read (an unbuilt `dist`, a permission) contributes\n * nothing and is not an error — when it appears later it is a new directory, which moves the\n * counts and invalidates every cached derivation.\n */\n private async visitDirectory(\n directory: string,\n accumulator: SweepAccumulator,\n pending: string[],\n ): Promise<void> {\n let entries;\n try {\n entries = await fsPromises.readdir(directory, { withFileTypes: true });\n } catch {\n return;\n }\n\n accumulator.directoryCount += 1;\n try {\n const directoryStats = await fsPromises.stat(directory);\n if (directoryStats.mtimeMs > accumulator.maximumMtimeMs) {\n accumulator.maximumMtimeMs = directoryStats.mtimeMs;\n }\n } catch {\n // Counted above regardless: the directory demonstrably exists, we just read it.\n }\n\n const fileStats: Promise<void>[] = [];\n for (const entry of entries) {\n if (SKIPPED_DIRECTORY_NAMES.has(entry.name)) continue;\n const entryPath = join(directory, entry.name);\n if (entry.isDirectory()) {\n pending.push(entryPath);\n continue;\n }\n if (!entry.isFile()) {\n // A symlink is counted but never followed — following one inside a package tree can walk\n // back out into a dependency graph. Retargeting one rewrites its directory entry, which\n // moves the parent directory's mtime, so the change is still observed.\n accumulator.fileCount += 1;\n continue;\n }\n fileStats.push(\n fsPromises.stat(entryPath).then(\n (entryStats) => {\n accumulator.fileCount += 1;\n if (entryStats.mtimeMs > accumulator.maximumMtimeMs) {\n accumulator.maximumMtimeMs = entryStats.mtimeMs;\n }\n },\n () => {\n accumulator.fileCount += 1;\n },\n ),\n );\n }\n await Promise.all(fileStats);\n\n if (accumulator.fileCount + accumulator.directoryCount > MAXIMUM_OBSERVED_ENTRIES) {\n accumulator.exceededCeiling = true;\n }\n }\n}\n"]}
1
+ {"version":3,"file":"introspection-source-state.companion.service.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/services/introspection-source-state.companion.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAG1C;;;;;;;;;;;GAWG;AACH,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAEtC;;;;;;;GAOG;AACH,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC;AAElE;;;;;;;;;GASG;AACH,MAAM,wBAAwB,GAAG,OAAO,CAAC;AAkCzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,MAAM,OAAO,gCAAgC;IAC1B,gBAAgB,CAA0H;IACnJ,mBAAmB,GAAG,CAAC,CAAC;IACxB,QAAQ,GAA4F,IAAI,CAAC;IAEjH,YACE,gBAAyI;QAEzI,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC3C,CAAC;IAED;;;;;;;;;OASG;IACI,KAAK,CAAC,OAAO,CAAC,cAAsB,IAAI,CAAC,GAAG,EAAE;QACnD,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,CAAC,SAAS,IAAI,WAAW,EAAE,CAAC;YACzD,OAAO,OAAO,CAAC,WAAW,CAAC;QAC7B,CAAC;QAED,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;YACrB,yFAAyF;YACzF,0DAA0D;YAC1D,MAAM,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,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,MAAM,UAAU,0CAA0C,CACxD,gBAAuH;IAEvH,MAAM,gBAAgB,GAAG,IAAI,GAAG,EAAU,CAAC;IAC3C,KAAK,MAAM,iBAAiB,IAAI,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAAE,CAAC;QAC9E,gBAAgB,CAAC,GAAG,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;IACnF,CAAC;IACD,KAAK,MAAM,eAAe,IAAI,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,EAAE,CAAC;QAChF,gBAAgB,CAAC,GAAG,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;IACpD,CAAC;IACD,IAAI,gBAAgB,CAAC,sBAAsB,EAAE,CAAC;QAC5C,gBAAgB,CAAC,GAAG,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,WAAW,CAAC,CAAC;IAC5E,CAAC;IACD,OAAO,CAAC,GAAG,gBAAgB,CAAC,CAAC;AAC/B,CAAC","sourcesContent":["import { promises as fsPromises } from 'node:fs';\nimport { join, resolve } from 'node:path';\nimport type { CompanionContext } from '../../context/companion-context';\n\n/**\n * How many directories are walked concurrently.\n *\n * Measured on `examples/wonder-crm` (23,758 files + 2,706 directories across the three application\n * package roots and the 19 distinct `@wildo-ai/*` roots they resolve to): 350 ms at concurrency 1,\n * **125 ms at 16**, 142 ms at 64, 134 ms at 128. The curve is flat past 16, so 16 is the point where\n * the walk stops being latency-bound without turning into an open-ended file-descriptor burst.\n *\n * The walk is deliberately ASYNC rather than the ~30 % faster synchronous form. A synchronous sweep\n * measured 175 ms on the same tree, but it holds the event loop for that whole time — and this runs\n * inside a long-lived HTTP server that is also serving the workbench.\n */\nconst DIRECTORY_WALK_CONCURRENCY = 16;\n\n/**\n * Directory names never descended into.\n *\n * `node_modules` is skipped during the walk and reached only through the explicit `@wildo-ai/*`\n * roots below: descending into it from an application package would sweep the app's entire\n * dependency graph (hundreds of thousands of files) to learn nothing the resolved engine roots do\n * not already say.\n */\nconst SKIPPED_DIRECTORY_NAMES = new Set(['node_modules', '.git']);\n\n/**\n * A ceiling on how much this observer will walk before it gives up on caching.\n *\n * Chosen ~10x above the measured 26k-entry dogfood application, so it can only be reached by a\n * pathological root (a `dist` holding a build cache, an application that vendored something large).\n * Crossing it does not disable the walk half-way and report a plausible number — it returns\n * `bounded: false`, which the caller MUST read as \"do not cache this derivation\". Failing toward\n * re-deriving is the only safe direction here: an under-observed token is a cache key that stops\n * moving when the source does.\n */\nconst MAXIMUM_OBSERVED_ENTRIES = 250_000;\n\n/**\n * What a completed sweep learned about the source that feeds an introspection derivation.\n */\nexport interface IntrospectionSourceStateObservation {\n /**\n * The comparable value. Two observations with the same token describe the same source tree; a\n * different token means SOMETHING moved and every cached derivation is void.\n */\n token: string;\n /**\n * `false` when the sweep hit {@link MAXIMUM_OBSERVED_ENTRIES}. The token is then deliberately\n * unique per observation, so a caller that ignores this flag still re-derives rather than serving\n * a stale answer.\n */\n bounded: boolean;\n /** Wall-clock cost of the sweep, for the debug line that explains a cache hit's latency. */\n durationMs: number;\n /** Number of roots actually walked (a root that does not exist yet is not one). */\n observedRootCount: number;\n /** Files plus directories visited. Reported so an operator can see why a sweep is slow. */\n observedEntryCount: number;\n /** The instant the sweep STARTED, which is the instant the token describes. */\n startedAt: number;\n}\n\ninterface SweepAccumulator {\n fileCount: number;\n directoryCount: number;\n maximumMtimeMs: number;\n exceededCeiling: boolean;\n}\n\n/**\n * Observes the state of every source tree an introspection derivation can read, as one comparable\n * token.\n *\n * ## Why a token rather than a watcher\n *\n * The companion's file watcher (`IntrospectionSourceWatcherCompanionService`) is best-effort —\n * `fs.watch` can go deaf with no error — so it only says WHEN to look; this observer says WHETHER\n * anything moved. A sweep answers that on demand, costs ~125 ms against the largest dogfood\n * application, and cannot miss an event because it does not observe events at all — it observes the\n * tree. (This paragraph said \"the companion has no file watcher\" until 2026-09-24; the watcher was\n * added on top of the observer, not instead of it.)\n *\n * ## Why mtimes rather than content\n *\n * `.claude/rules/application-creation-directive.md` forbids digests, of any kind, for any purpose,\n * and `.claude/rules/one-source-of-truth.md` Rule 0 refuses anything that is not branchable on git.\n * A content hash compared against a stored one is exactly the second-source-of-truth shape both\n * rules exist to keep out. An mtime observation stores nothing about the application: it is a\n * reading taken now, compared against a reading taken earlier in the same process, and deleting it\n * costs a re-derivation and nothing else.\n *\n * ## What the token is made of, and what each part catches\n *\n * | Component | Catches |\n * |---|---|\n * | maximum file/directory mtime | a file written in place (the ordinary edit, and every `tsc` emit) |\n * | file count | a file added or deleted |\n * | directory count | a directory added or deleted |\n * | directory mtimes, in the maximum | a RENAME, which preserves the file's own mtime and would otherwise be invisible while the file count stayed equal |\n *\n * Directory mtimes are the non-obvious member and they are load-bearing: without them,\n * `mv a.ts b.ts` moves neither the count nor any file mtime, and the cache would keep answering\n * from the pre-rename derivation for as long as nothing else in the tree moved.\n *\n * The one mutation this cannot see is an mtime pushed BACKWARD in place on a file that is not the\n * newest in the tree (`touch -t 200001010000 <file>` on an already-old file). Nothing in a dev loop\n * does that; a real editor, `tsc`, `git checkout` and pnpm's hard-link relink all move an mtime\n * forward or move a directory. Recorded rather than papered over, because a reader who assumes the\n * token is total would be assuming something false.\n *\n * ## Which trees, and why the engine ones are in there\n *\n * An application resolving `@wildo-ai/*` through `file:` links — every dogfood app does — changes\n * its derivation when the engine is rebuilt, with no application file touched. The engine bytes the\n * child actually imports are the ones pnpm hard-linked into the app's store, NOT the ones in\n * `engine/<package>/dist`, and the two are reconciled at supervised (re)start rather than continuously. So\n * the framework signal has to be the injected snapshot itself. `.wildo-runtime-signals/dev-compile-status.json`\n * was considered and rejected for exactly this: it is a LEADING indicator, moving when the engine\n * compiles and therefore possibly before the bytes this process would import have changed — which\n * would let a derivation be cached against a token that has already advanced past it, and never\n * re-derived when the injection finally lands.\n *\n * For an application consuming published `@wildo-ai/*` tarballs the same roots are simply immutable\n * between installs, so the sweep costs a little and proves the same thing.\n *\n * ## What it costs, and one narrowing that was measured and REJECTED\n *\n * 176–225 ms against `examples/wonder-crm` (23 roots, 27,050 entries), versus a 3.1–4.2 s cold\n * import of that application's specifications package alone. So a cache hit is ~15x cheaper than\n * the cheapest possible miss.\n *\n * Skipping `*.d.ts` and `*.map` would roughly halve it — they are **55 %** of the swept files\n * (8,830 maps + 4,417 declarations of 24,243) and neither can change a runtime derivation. It was\n * rejected anyway: the saving is ~90 ms nobody can perceive, and it would buy that with an\n * assumption about what a future behavior may read. No behavior under `introspection/subprocess/`\n * imports `node:fs` at all today — every one of them is a pure function of the imported module\n * graph — but that is a fact about today, and the direction to be wrong in here is toward\n * re-deriving. Recorded so the next reader does not re-derive the numbers before reaching the same\n * conclusion.\n */\nexport class IntrospectionSourceStateObserver {\n private readonly companionContext: Pick<CompanionContext, 'saasRoot' | 'companionHome' | 'servicesByKey' | 'resolvedLibraries' | 'resolvedSpecifications'>;\n private observationSequence = 0;\n private inFlight: { startedAt: number; observation: Promise<IntrospectionSourceStateObservation> } | null = null;\n\n constructor(\n companionContext: Pick<CompanionContext, 'saasRoot' | 'companionHome' | 'servicesByKey' | 'resolvedLibraries' | 'resolvedSpecifications'>,\n ) {\n this.companionContext = companionContext;\n }\n\n /**\n * Take a reading of the source trees, reusing an in-flight one ONLY when that reading started at\n * or after the caller's own arrival.\n *\n * The condition is the whole point of the coalescing. A sweep takes ~125 ms; a request arriving\n * 100 ms into someone else's sweep and adopting its token would be answered from a picture of the\n * world taken 100 ms before it asked — a window in which the operator could have saved a file. So\n * a late arrival waits for the running sweep to finish and takes a fresh one, which is slower and\n * correct, while genuinely concurrent callers share one walk, which is what the coalescing is for.\n */\n public async observe(requestedAt: number = Date.now()): Promise<IntrospectionSourceStateObservation> {\n const current = this.inFlight;\n if (current !== null && current.startedAt >= requestedAt) {\n return current.observation;\n }\n\n if (current !== null) {\n // Let the running sweep finish before starting another; two concurrent walks of the same\n // trees would only contend for the same file descriptors.\n await current.observation.catch(() => undefined);\n return this.observe(requestedAt);\n }\n\n const startedAt = Date.now();\n const observation = this.runObservation(startedAt).finally(() => {\n if (this.inFlight?.startedAt === startedAt) {\n this.inFlight = null;\n }\n });\n this.inFlight = { startedAt, observation };\n return observation;\n }\n\n private async runObservation(startedAt: number): Promise<IntrospectionSourceStateObservation> {\n const roots = await this.resolveObservedRoots();\n const accumulator: SweepAccumulator = {\n fileCount: 0,\n directoryCount: 0,\n maximumMtimeMs: 0,\n exceededCeiling: false,\n };\n\n await this.observeApplicationRootManifests(accumulator);\n await this.walk(roots, accumulator);\n\n this.observationSequence += 1;\n const bounded = !accumulator.exceededCeiling;\n const token = bounded\n ? `roots:${roots.length}|files:${accumulator.fileCount}|dirs:${accumulator.directoryCount}|mtime:${accumulator.maximumMtimeMs}`\n : `unbounded:${this.observationSequence}`;\n\n return {\n token,\n bounded,\n durationMs: Date.now() - startedAt,\n observedRootCount: roots.length,\n observedEntryCount: accumulator.fileCount + accumulator.directoryCount,\n startedAt,\n };\n }\n\n /**\n * The two ROOT populations a derivation reads from, kept apart because a watcher treats them\n * differently.\n *\n * An APPLICATION root is a package the operator edits: its `src` moves first and its `dist` moves\n * second, and only the second changes what a derivation imports —\n * `resolvePackageCompanionEntryPath` resolves the package's `exports['./companion']`, which is\n * `./dist/esm/companion-exports.js` on every application package. A FRAMEWORK root is the injected\n * `@wildo-ai/*` copy in the application's own store: dist-only bytes, hard-linked at supervised\n * (re)start, carrying no runtime-signal files of its own.\n *\n * Exposed so the watcher and the sweep observe one population rather than two enumerations that\n * agree only until one side gains an entry.\n */\n public async resolveObservedRootPopulations(): Promise<{\n readonly applicationRoots: readonly string[];\n readonly frameworkRoots: readonly string[];\n }> {\n const applicationRoots = resolveIntrospectedApplicationPackageRoots(this.companionContext);\n\n const frameworkScopeOwners = [\n ...applicationRoots,\n this.companionContext.saasRoot,\n this.companionContext.companionHome,\n ];\n const frameworkRoots = new Set<string>();\n for (const owner of frameworkScopeOwners) {\n const scopeDirectory = join(owner, 'node_modules', '@wildo-ai');\n let scopeEntries: string[];\n try {\n scopeEntries = await fsPromises.readdir(scopeDirectory);\n } catch {\n continue;\n }\n for (const scopeEntry of scopeEntries) {\n try {\n frameworkRoots.add(await fsPromises.realpath(join(scopeDirectory, scopeEntry)));\n } catch {\n // A dangling link contributes nothing to observe; its disappearance shows up as a\n // directory-mtime change on the scope directory's owner instead.\n }\n }\n }\n\n return { applicationRoots: [...applicationRoots], frameworkRoots: [...frameworkRoots] };\n }\n\n /**\n * Every tree whose bytes can reach a derivation, de-duplicated by resolved real path.\n *\n * Two families, and the second is the one a reader would not think of:\n *\n * 1. The APPLICATION package roots — every declared service, every resolved library, and the\n * specifications package. Whole roots rather than `src/` alone, because\n * `resolvePackageCompanionEntryPath` prefers a package's built `./companion` export when it\n * exists, so the child commonly imports `dist/`, not source. Sweeping both means neither\n * resolution mode has a blind spot.\n * 2. The FRAMEWORK packages, reached by reading each of those roots' (and the companion home's)\n * `node_modules/@wildo-ai` scope directory and resolving each link to its real path. Reading\n * the scope directory rather than listing package names keeps this from becoming a second\n * enumeration of the engine's package set that could drift from the real one.\n *\n * The application root itself is NOT walked recursively — its interesting children are already in\n * family 1, and descending it would pull in `.wildo-saas` (the companion's own dist plus the\n * runtime-signal files that churn on a heartbeat, which would make every token unique and every\n * cache read a miss).\n */\n private async resolveObservedRoots(): Promise<string[]> {\n const { applicationRoots, frameworkRoots } = await this.resolveObservedRootPopulations();\n return [...new Set([...applicationRoots, ...frameworkRoots])];\n }\n\n /**\n * Fold the application root's own top-level FILES in, without descending it.\n *\n * These are `pnpm-lock.yaml`, `package.json` and `wildo.saas.config.ts` — the manifests that\n * decide which third-party bytes the child imports. Without them there is a narrow but real hole:\n * an install that moves a non-`@wildo-ai` dependency changes a derivation while touching nothing\n * inside a package root, because the walk enters `node_modules` only through the resolved\n * `@wildo-ai` scope. The lockfile moves on every such install, so one shallow read closes it.\n *\n * The root is NOT descended, because doing so would pull in `.wildo-saas` — the companion's own\n * dist and the runtime-signal files that are rewritten on a heartbeat, which would make every\n * token unique and every cache read a miss.\n */\n private async observeApplicationRootManifests(accumulator: SweepAccumulator): Promise<void> {\n let entries;\n try {\n entries = await fsPromises.readdir(this.companionContext.saasRoot, { withFileTypes: true });\n } catch {\n return;\n }\n\n await Promise.all(entries.map(async (entry) => {\n if (!entry.isFile()) return;\n accumulator.fileCount += 1;\n try {\n const entryStats = await fsPromises.stat(join(this.companionContext.saasRoot, entry.name));\n if (entryStats.mtimeMs > accumulator.maximumMtimeMs) {\n accumulator.maximumMtimeMs = entryStats.mtimeMs;\n }\n } catch {\n // Counted above; a file that vanished between readdir and stat is itself a change, and the\n // count will differ on the next observation.\n }\n }));\n }\n\n /**\n * Breadth-of-tree walk with a fixed directory concurrency.\n *\n * A worker-pool built over the ROOT list was written first and was wrong: it sizes its pool from\n * the number of roots, so a single-root application would walk its whole tree one directory at a\n * time, and a worker that finds the queue momentarily empty cannot tell \"finished\" from \"another\n * worker is about to push children\". The pump below sizes on IN-FLIGHT directories instead, which\n * is the quantity the concurrency limit is actually about, and terminates on the only condition\n * that means finished: nothing queued and nothing running.\n */\n private async walk(roots: readonly string[], accumulator: SweepAccumulator): Promise<void> {\n const pending: string[] = [...roots];\n let inFlightDirectories = 0;\n\n return new Promise<void>((resolveWalk) => {\n const pump = (): void => {\n while (\n !accumulator.exceededCeiling\n && inFlightDirectories < DIRECTORY_WALK_CONCURRENCY\n && pending.length > 0\n ) {\n const directory = pending.pop() as string;\n inFlightDirectories += 1;\n void this.visitDirectory(directory, accumulator, pending).then(() => {\n inFlightDirectories -= 1;\n pump();\n });\n }\n\n if (inFlightDirectories === 0 && (pending.length === 0 || accumulator.exceededCeiling)) {\n resolveWalk();\n }\n };\n\n pump();\n });\n }\n\n /**\n * Read one directory: count it, fold its own mtime in, stat its files, and queue its children.\n *\n * Never rejects. A directory that cannot be read (an unbuilt `dist`, a permission) contributes\n * nothing and is not an error — when it appears later it is a new directory, which moves the\n * counts and invalidates every cached derivation.\n */\n private async visitDirectory(\n directory: string,\n accumulator: SweepAccumulator,\n pending: string[],\n ): Promise<void> {\n let entries;\n try {\n entries = await fsPromises.readdir(directory, { withFileTypes: true });\n } catch {\n return;\n }\n\n accumulator.directoryCount += 1;\n try {\n const directoryStats = await fsPromises.stat(directory);\n if (directoryStats.mtimeMs > accumulator.maximumMtimeMs) {\n accumulator.maximumMtimeMs = directoryStats.mtimeMs;\n }\n } catch {\n // Counted above regardless: the directory demonstrably exists, we just read it.\n }\n\n const fileStats: Promise<void>[] = [];\n for (const entry of entries) {\n if (SKIPPED_DIRECTORY_NAMES.has(entry.name)) continue;\n const entryPath = join(directory, entry.name);\n if (entry.isDirectory()) {\n pending.push(entryPath);\n continue;\n }\n if (!entry.isFile()) {\n // A symlink is counted but never followed — following one inside a package tree can walk\n // back out into a dependency graph. Retargeting one rewrites its directory entry, which\n // moves the parent directory's mtime, so the change is still observed.\n accumulator.fileCount += 1;\n continue;\n }\n fileStats.push(\n fsPromises.stat(entryPath).then(\n (entryStats) => {\n accumulator.fileCount += 1;\n if (entryStats.mtimeMs > accumulator.maximumMtimeMs) {\n accumulator.maximumMtimeMs = entryStats.mtimeMs;\n }\n },\n () => {\n accumulator.fileCount += 1;\n },\n ),\n );\n }\n await Promise.all(fileStats);\n\n if (accumulator.fileCount + accumulator.directoryCount > MAXIMUM_OBSERVED_ENTRIES) {\n accumulator.exceededCeiling = true;\n }\n }\n}\n\n/**\n * Every APPLICATION package an introspection derivation can import: each declared service, each\n * resolved library, and the specifications package.\n *\n * ONE enumeration, shared by this observer and by the creation-plane projection's input signature\n * (#1310, seventh review G1), because both answer the same question — \"which built trees can move an\n * introspection result?\" — and two lists of one population agree only until one gains an entry.\n */\nexport function resolveIntrospectedApplicationPackageRoots(\n companionContext: Pick<CompanionContext, 'saasRoot' | 'servicesByKey' | 'resolvedLibraries' | 'resolvedSpecifications'>,\n): readonly string[] {\n const applicationRoots = new Set<string>();\n for (const serviceDefinition of Object.values(companionContext.servicesByKey)) {\n applicationRoots.add(resolve(companionContext.saasRoot, serviceDefinition.path));\n }\n for (const resolvedLibrary of Object.values(companionContext.resolvedLibraries)) {\n applicationRoots.add(resolvedLibrary.packageRoot);\n }\n if (companionContext.resolvedSpecifications) {\n applicationRoots.add(companionContext.resolvedSpecifications.packageRoot);\n }\n return [...applicationRoots];\n}\n"]}
@@ -3,6 +3,19 @@ import type { CompanionContext } from '../../context/companion-context';
3
3
  import { IntrospectionRecompileReason, type IntrospectionDerivationStateCompanionService, type IntrospectionRecompileOutcome } from './introspection-derivation-state.companion.service';
4
4
  /** A consumer notified after every recompilation that actually changed something. */
5
5
  export type IntrospectionRecompileListener = (outcomes: readonly IntrospectionRecompileOutcome[], reason: IntrospectionRecompileReason) => void;
6
+ /**
7
+ * A consumer notified when a burst of filesystem events has SETTLED — before, and independently of,
8
+ * whether any introspection derivation turns out to have changed.
9
+ *
10
+ * A separate seam from {@link IntrospectionRecompileListener} because the two answer different
11
+ * questions. That one says "an introspection derivation's rows moved"; this one says "the bytes this
12
+ * watcher covers just moved". The creation plane (#1310) needs the second: its boards read the
13
+ * working tree, git and the packages' built companion trees — some through introspection, most not —
14
+ * so an emit that changes no introspection row can still change which playbook is eligible, and
15
+ * waiting for a recompilation to report a change would miss exactly those. The creation plane
16
+ * answers the event by re-reading its own input signature, which signs those built trees.
17
+ */
18
+ export type IntrospectionSourceSettledListener = () => void;
6
19
  /**
7
20
  * Watches the bytes an introspection derivation actually imports, and drives recompilation from
8
21
  * them rather than from somebody asking for a read.
@@ -55,6 +68,7 @@ export declare class IntrospectionSourceWatcherCompanionService {
55
68
  private readonly observer;
56
69
  private readonly watchers;
57
70
  private readonly listeners;
71
+ private readonly settledListeners;
58
72
  private settleTimer;
59
73
  private reconcileTimer;
60
74
  /** Guards against a reconciliation and a settle firing into the same recompilation. */
@@ -63,6 +77,8 @@ export declare class IntrospectionSourceWatcherCompanionService {
63
77
  constructor(logger: LoggerService, companionContext: CompanionContext, derivationState: IntrospectionDerivationStateCompanionService);
64
78
  /** Register a consumer of recompilation outcomes — the seam the WebSocket notifier plugs into. */
65
79
  onRecompiled(listener: IntrospectionRecompileListener): () => void;
80
+ /** Register a consumer of settled source movements — see {@link IntrospectionSourceSettledListener}. */
81
+ onSourceSettled(listener: IntrospectionSourceSettledListener): () => void;
66
82
  /**
67
83
  * Begin watching, and promote the derivation state out of per-read observation.
68
84
  *
@@ -88,6 +104,14 @@ export declare class IntrospectionSourceWatcherCompanionService {
88
104
  private resolveWatchTargets;
89
105
  /** Restart the settle window. Called on every filesystem event, so it must stay trivial. */
90
106
  private noteFilesystemEvent;
107
+ /**
108
+ * Tell the settled-source consumers, each isolated from the others and from the recompilation.
109
+ *
110
+ * Called BEFORE the recompile rather than after it: a recompilation imports the whole application
111
+ * and can take seconds, and a consumer asking "did my inputs move?" should not wait behind a
112
+ * question it did not ask.
113
+ */
114
+ private notifySourceSettled;
91
115
  /**
92
116
  * Recompile, at most one at a time.
93
117
  *
@@ -1 +1 @@
1
- {"version":3,"file":"introspection-source-watcher.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/services/introspection-source-watcher.companion.service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAIhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,EACL,4BAA4B,EAC5B,KAAK,4CAA4C,EACjD,KAAK,6BAA6B,EACnC,MAAM,oDAAoD,CAAC;AA6B5D,qFAAqF;AACrF,MAAM,MAAM,8BAA8B,GAAG,CAC3C,QAAQ,EAAE,SAAS,6BAA6B,EAAE,EAClD,MAAM,EAAE,4BAA4B,KACjC,IAAI,CAAC;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,qBACa,0CAA0C;IAYhB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACR,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAEnF,OAAO,CAAC,QAAQ,CAAC,eAAe;IAdlC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+D;IACxF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmC;IAC5D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmB;IAC5C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA6C;IACvE,OAAO,CAAC,WAAW,CAA6B;IAChD,OAAO,CAAC,cAAc,CAA6B;IACnD,uFAAuF;IACvF,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,OAAO,CAAS;gBAG8B,MAAM,EAAE,aAAa,EACN,gBAAgB,EAAE,gBAAgB,EAEpF,eAAe,EAAE,4CAA4C;IAOhF,kGAAkG;IAC3F,YAAY,CAAC,QAAQ,EAAE,8BAA8B,GAAG,MAAM,IAAI;IAKzE;;;;;;OAMG;IACU,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAgDnC,qEAAqE;IAC9D,IAAI,IAAI,IAAI;IAkBnB;;;;;;;;;;;OAWG;YACW,mBAAmB;IAajC,4FAA4F;IAC5F,OAAO,CAAC,mBAAmB;IAS3B;;;;;;;OAOG;YACW,SAAS;CAsCxB"}
1
+ {"version":3,"file":"introspection-source-watcher.companion.service.d.ts","sourceRoot":"","sources":["../../../../../../src/core/introspection/services/introspection-source-watcher.companion.service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAIhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,EACL,4BAA4B,EAC5B,KAAK,4CAA4C,EACjD,KAAK,6BAA6B,EACnC,MAAM,oDAAoD,CAAC;AA6B5D,qFAAqF;AACrF,MAAM,MAAM,8BAA8B,GAAG,CAC3C,QAAQ,EAAE,SAAS,6BAA6B,EAAE,EAClD,MAAM,EAAE,4BAA4B,KACjC,IAAI,CAAC;AAEV;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,kCAAkC,GAAG,MAAM,IAAI,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,qBACa,0CAA0C;IAahB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACR,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAEnF,OAAO,CAAC,QAAQ,CAAC,eAAe;IAflC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+D;IACxF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmC;IAC5D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmB;IAC5C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA6C;IACvE,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAiD;IAClF,OAAO,CAAC,WAAW,CAA6B;IAChD,OAAO,CAAC,cAAc,CAA6B;IACnD,uFAAuF;IACvF,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,OAAO,CAAS;gBAG8B,MAAM,EAAE,aAAa,EACN,gBAAgB,EAAE,gBAAgB,EAEpF,eAAe,EAAE,4CAA4C;IAOhF,kGAAkG;IAC3F,YAAY,CAAC,QAAQ,EAAE,8BAA8B,GAAG,MAAM,IAAI;IAKzE,wGAAwG;IACjG,eAAe,CAAC,QAAQ,EAAE,kCAAkC,GAAG,MAAM,IAAI;IAKhF;;;;;;OAMG;IACU,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAgDnC,qEAAqE;IAC9D,IAAI,IAAI,IAAI;IAkBnB;;;;;;;;;;;OAWG;YACW,mBAAmB;IAajC,4FAA4F;IAC5F,OAAO,CAAC,mBAAmB;IAU3B;;;;;;OAMG;IACH,OAAO,CAAC,mBAAmB;IAU3B;;;;;;;OAOG;YACW,SAAS;CAsCxB"}
@@ -13,7 +13,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
13
13
  import { watch } from 'node:fs';
14
14
  import { join } from 'node:path';
15
15
  import { inject, injectable } from 'inversify';
16
- import { SAAS_SERVICE_TYPES } from '@wildo-ai/saas-backend-lib';
16
+ import { SAAS_SERVICE_TYPES, describeCaughtError } from '@wildo-ai/saas-backend-lib';
17
17
  import { COMPANION_SERVICE_TYPES } from '../../inject/models/service-types.js';
18
18
  import { IntrospectionSourceStateObserver } from './introspection-source-state.companion.service.js';
19
19
  import { IntrospectionRecompileReason, } from './introspection-derivation-state.companion.service.js';
@@ -93,6 +93,7 @@ let IntrospectionSourceWatcherCompanionService = class IntrospectionSourceWatche
93
93
  observer;
94
94
  watchers = [];
95
95
  listeners = new Set();
96
+ settledListeners = new Set();
96
97
  settleTimer;
97
98
  reconcileTimer;
98
99
  /** Guards against a reconciliation and a settle firing into the same recompilation. */
@@ -111,6 +112,11 @@ let IntrospectionSourceWatcherCompanionService = class IntrospectionSourceWatche
111
112
  this.listeners.add(listener);
112
113
  return () => this.listeners.delete(listener);
113
114
  }
115
+ /** Register a consumer of settled source movements — see {@link IntrospectionSourceSettledListener}. */
116
+ onSourceSettled(listener) {
117
+ this.settledListeners.add(listener);
118
+ return () => this.settledListeners.delete(listener);
119
+ }
114
120
  /**
115
121
  * Begin watching, and promote the derivation state out of per-read observation.
116
122
  *
@@ -129,7 +135,7 @@ let IntrospectionSourceWatcherCompanionService = class IntrospectionSourceWatche
129
135
  watcher.on('error', (error) => {
130
136
  this.logger.warn('Introspection source watcher target failed', {
131
137
  target,
132
- error: error instanceof Error ? error.message : String(error),
138
+ error: describeCaughtError(error),
133
139
  });
134
140
  });
135
141
  this.watchers.push(watcher);
@@ -140,7 +146,7 @@ let IntrospectionSourceWatcherCompanionService = class IntrospectionSourceWatche
140
146
  // the next start after it exists.
141
147
  this.logDebug('Introspection source watch target not established', {
142
148
  target,
143
- error: error instanceof Error ? error.message : String(error),
149
+ error: describeCaughtError(error),
144
150
  });
145
151
  }
146
152
  }
@@ -212,10 +218,28 @@ let IntrospectionSourceWatcherCompanionService = class IntrospectionSourceWatche
212
218
  clearTimeout(this.settleTimer);
213
219
  this.settleTimer = setTimeout(() => {
214
220
  this.settleTimer = undefined;
221
+ this.notifySourceSettled();
215
222
  void this.recompile(IntrospectionRecompileReason.SOURCE_MUTATION);
216
223
  }, EVENT_SETTLE_MS);
217
224
  this.settleTimer.unref?.();
218
225
  }
226
+ /**
227
+ * Tell the settled-source consumers, each isolated from the others and from the recompilation.
228
+ *
229
+ * Called BEFORE the recompile rather than after it: a recompilation imports the whole application
230
+ * and can take seconds, and a consumer asking "did my inputs move?" should not wait behind a
231
+ * question it did not ask.
232
+ */
233
+ notifySourceSettled() {
234
+ for (const listener of this.settledListeners) {
235
+ try {
236
+ listener();
237
+ }
238
+ catch (error) {
239
+ this.logger.warn('Introspection source-settled listener failed', { error: describeCaughtError(error) });
240
+ }
241
+ }
242
+ }
219
243
  /**
220
244
  * Recompile, at most one at a time.
221
245
  *
@@ -249,7 +273,7 @@ let IntrospectionSourceWatcherCompanionService = class IntrospectionSourceWatche
249
273
  // the state, nor the next listener from hearing about it.
250
274
  this.logger.warn('Introspection recompile listener failed', {
251
275
  reason,
252
- error: error instanceof Error ? error.message : String(error),
276
+ error: describeCaughtError(error),
253
277
  });
254
278
  }
255
279
  }
@@ -257,7 +281,7 @@ let IntrospectionSourceWatcherCompanionService = class IntrospectionSourceWatche
257
281
  catch (error) {
258
282
  this.logger.warn('Introspection recompilation failed', {
259
283
  reason,
260
- error: error instanceof Error ? error.message : String(error),
284
+ error: describeCaughtError(error),
261
285
  });
262
286
  }
263
287
  finally {