@wildo-ai/dev-companion 1.1.7 → 1.1.8

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 (955) hide show
  1. package/dist/esm/__tests__/asset-noop.d.ts.map +1 -1
  2. package/dist/esm/__tests__/asset-noop.js.map +1 -1
  3. package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +1 -1
  4. package/dist/esm/__tests__/chdir-dogfood-app.setup.js.map +1 -1
  5. package/dist/esm/__tests__/internal-test-view.d.ts.map +1 -1
  6. package/dist/esm/__tests__/internal-test-view.js.map +1 -1
  7. package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
  8. package/dist/esm/brand/models/logo-creative-brief.schemas.js.map +1 -1
  9. package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
  10. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
  11. package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
  12. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
  13. package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
  14. package/dist/esm/brand/models/logo-judge.schemas.js.map +1 -1
  15. package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
  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.map +1 -1
  18. package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -1
  19. package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
  20. package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
  21. package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
  22. package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
  23. package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
  24. package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
  25. package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
  26. package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
  27. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -1
  28. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -1
  29. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  30. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  31. package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -1
  32. package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -1
  33. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
  34. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
  35. package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -1
  36. package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -1
  37. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -1
  38. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
  39. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -1
  40. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -1
  41. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
  42. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
  43. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  44. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  45. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -1
  46. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -1
  47. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
  48. package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
  49. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -1
  50. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -1
  51. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  52. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  53. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  54. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  55. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
  56. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.js.map +1 -1
  57. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
  58. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
  59. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  60. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  61. package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -1
  62. package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -1
  63. package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -1
  64. package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -1
  65. package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
  66. package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.js.map +1 -1
  67. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
  68. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
  69. package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -1
  70. package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -1
  71. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  72. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  73. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
  74. package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
  75. package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
  76. package/dist/esm/core/catalogs/catalog-context.factory.js.map +1 -1
  77. package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
  78. package/dist/esm/core/catalogs/catalog-context.factory.models.js.map +1 -1
  79. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
  80. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.js.map +1 -1
  81. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
  82. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.js.map +1 -1
  83. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
  84. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.js.map +1 -1
  85. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
  86. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.js.map +1 -1
  87. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
  88. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.js.map +1 -1
  89. package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
  90. package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.js.map +1 -1
  91. package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
  92. package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.js.map +1 -1
  93. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
  94. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.js.map +1 -1
  95. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
  96. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.js.map +1 -1
  97. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
  98. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.js.map +1 -1
  99. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -1
  100. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -1
  101. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
  102. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
  103. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
  104. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.js.map +1 -1
  105. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
  106. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.js.map +1 -1
  107. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
  108. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
  109. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -1
  110. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -1
  111. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  112. package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
  113. package/dist/esm/core/context/companion-context.d.ts.map +1 -1
  114. package/dist/esm/core/context/companion-context.js.map +1 -1
  115. package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
  116. package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
  117. package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -1
  118. package/dist/esm/core/context/draft-family-values.companion.js.map +1 -1
  119. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  120. package/dist/esm/core/inject/models/container.js.map +1 -1
  121. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  122. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  123. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  124. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
  125. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  126. package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
  127. package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -1
  128. package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -1
  129. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -1
  130. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -1
  131. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -1
  132. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -1
  133. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
  134. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
  135. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  136. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  137. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  138. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  139. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
  140. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
  141. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  142. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
  143. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
  144. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.js.map +1 -1
  145. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  146. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  147. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
  148. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
  149. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  150. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
  151. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
  152. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -1
  153. package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
  154. package/dist/esm/core/introspection/services/translation-placement.companion.service.js.map +1 -1
  155. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -1
  156. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -1
  157. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
  158. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
  159. package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
  160. package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
  161. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
  162. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.js.map +1 -1
  163. package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
  164. package/dist/esm/core/introspection/subprocess/asset-noop-register.js.map +1 -1
  165. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
  166. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.js.map +1 -1
  167. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
  168. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.js.map +1 -1
  169. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  170. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  171. package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
  172. package/dist/esm/core/introspection/subprocess/companion-introspection-child.js.map +1 -1
  173. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
  174. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.js.map +1 -1
  175. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
  176. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
  177. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
  178. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.js.map +1 -1
  179. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -1
  180. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -1
  181. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
  182. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js.map +1 -1
  183. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
  184. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
  185. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
  186. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
  187. package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
  188. package/dist/esm/core/introspection/subprocess/market-context-block.builder.js.map +1 -1
  189. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
  190. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js.map +1 -1
  191. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
  192. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
  193. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -1
  194. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -1
  195. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  196. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
  197. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -1
  198. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -1
  199. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -1
  200. package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -1
  201. package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -1
  202. package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -1
  203. package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
  204. package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
  205. package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
  206. package/dist/esm/core/lock/wildo-saas-lock.models.js.map +1 -1
  207. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
  208. package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
  209. package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -1
  210. package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -1
  211. package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -1
  212. package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -1
  213. package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -1
  214. package/dist/esm/core/runtime/companion-env-file.js.map +1 -1
  215. package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
  216. package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
  217. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
  218. package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
  219. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -1
  220. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -1
  221. package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
  222. package/dist/esm/core/runtime/models/companion-runtime.models.js.map +1 -1
  223. package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -1
  224. package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -1
  225. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  226. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  227. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
  228. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.js.map +1 -1
  229. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  230. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  231. package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
  232. package/dist/esm/core/runtime/utils/companion-workbench-topology.js.map +1 -1
  233. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
  234. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.js.map +1 -1
  235. package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
  236. package/dist/esm/core/specifications/chart-view-specification-context.factory.js.map +1 -1
  237. package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
  238. package/dist/esm/core/specifications/composite-view-specification-context.factory.js.map +1 -1
  239. package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
  240. package/dist/esm/core/specifications/cross-registry-rendering.shared.js.map +1 -1
  241. package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
  242. package/dist/esm/core/specifications/execution-view-specification-context.factory.js.map +1 -1
  243. package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
  244. package/dist/esm/core/specifications/feature-specification-context.factory.js.map +1 -1
  245. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
  246. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.js.map +1 -1
  247. package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
  248. package/dist/esm/core/specifications/frontend-component-specification-context.factory.js.map +1 -1
  249. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
  250. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.js.map +1 -1
  251. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
  252. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.js.map +1 -1
  253. package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
  254. package/dist/esm/core/specifications/milestone-specification-context.factory.js.map +1 -1
  255. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
  256. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.js.map +1 -1
  257. package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
  258. package/dist/esm/core/specifications/onboarding-element-rendering.shared.js.map +1 -1
  259. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
  260. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.js.map +1 -1
  261. package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
  262. package/dist/esm/core/specifications/product-specification-context.factory.js.map +1 -1
  263. package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
  264. package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
  265. package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
  266. package/dist/esm/core/specifications/role-specification-context.factory.js.map +1 -1
  267. package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
  268. package/dist/esm/core/specifications/specification-context-factory.js.map +1 -1
  269. package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
  270. package/dist/esm/core/specifications/specification-context-factory.models.js.map +1 -1
  271. package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
  272. package/dist/esm/core/specifications/specification-context-factory.shared.js.map +1 -1
  273. package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
  274. package/dist/esm/core/specifications/system-email-template-specification-context.factory.js.map +1 -1
  275. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
  276. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.js.map +1 -1
  277. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
  278. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.js.map +1 -1
  279. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
  280. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.js.map +1 -1
  281. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
  282. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.js.map +1 -1
  283. package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
  284. package/dist/esm/core/specifications/templates/feature/feature-all-information.template.js.map +1 -1
  285. package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
  286. package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.js.map +1 -1
  287. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
  288. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.js.map +1 -1
  289. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
  290. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.js.map +1 -1
  291. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
  292. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.js.map +1 -1
  293. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
  294. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.js.map +1 -1
  295. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
  296. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.js.map +1 -1
  297. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
  298. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.js.map +1 -1
  299. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
  300. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.js.map +1 -1
  301. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
  302. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.js.map +1 -1
  303. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
  304. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.js.map +1 -1
  305. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
  306. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.js.map +1 -1
  307. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
  308. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.js.map +1 -1
  309. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
  310. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.js.map +1 -1
  311. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
  312. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.js.map +1 -1
  313. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
  314. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.js.map +1 -1
  315. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
  316. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.js.map +1 -1
  317. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
  318. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.js.map +1 -1
  319. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
  320. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.js.map +1 -1
  321. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
  322. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.js.map +1 -1
  323. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
  324. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.js.map +1 -1
  325. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
  326. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.js.map +1 -1
  327. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
  328. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.js.map +1 -1
  329. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
  330. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.js.map +1 -1
  331. package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
  332. package/dist/esm/core/specifications/templates/product/product-all-information.template.js.map +1 -1
  333. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
  334. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.js.map +1 -1
  335. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
  336. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.js.map +1 -1
  337. package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
  338. package/dist/esm/core/specifications/templates/product/product-translation-context.template.js.map +1 -1
  339. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
  340. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.js.map +1 -1
  341. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
  342. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.js.map +1 -1
  343. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
  344. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.js.map +1 -1
  345. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
  346. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.js.map +1 -1
  347. package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
  348. package/dist/esm/core/specifications/templates/role/role-all-information.template.js.map +1 -1
  349. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
  350. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.js.map +1 -1
  351. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
  352. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.js.map +1 -1
  353. package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
  354. package/dist/esm/core/specifications/templates/role/role-translation-context.template.js.map +1 -1
  355. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
  356. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.js.map +1 -1
  357. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
  358. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.js.map +1 -1
  359. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
  360. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.js.map +1 -1
  361. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
  362. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.js.map +1 -1
  363. package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
  364. package/dist/esm/core/specifications/validate-resource-field-completeness.js.map +1 -1
  365. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
  366. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
  367. package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
  368. package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
  369. package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
  370. package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
  371. package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
  372. package/dist/esm/core/utils/atomic-write.utils.js.map +1 -1
  373. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -1
  374. package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -1
  375. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
  376. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
  377. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
  378. package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
  379. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  380. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  381. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
  382. package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
  383. package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
  384. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
  385. package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
  386. package/dist/esm/deliberations/utils/load-committed-expert-agents.js.map +1 -1
  387. package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
  388. package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
  389. package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
  390. package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
  391. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  392. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  393. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
  394. package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
  395. package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -1
  396. package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -1
  397. package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
  398. package/dist/esm/email/utils/email-template-fs-discovery.utils.js.map +1 -1
  399. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -1
  400. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -1
  401. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  402. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  403. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  404. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  405. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  406. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  407. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
  408. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.js.map +1 -1
  409. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  410. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  411. package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -1
  412. package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -1
  413. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
  414. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js.map +1 -1
  415. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
  416. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js.map +1 -1
  417. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
  418. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js.map +1 -1
  419. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
  420. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.js.map +1 -1
  421. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
  422. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.js.map +1 -1
  423. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
  424. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
  425. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
  426. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js.map +1 -1
  427. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
  428. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js.map +1 -1
  429. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  430. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js.map +1 -1
  431. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
  432. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js.map +1 -1
  433. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
  434. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.js.map +1 -1
  435. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
  436. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
  437. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
  438. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
  439. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -1
  440. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -1
  441. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
  442. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
  443. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
  444. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
  445. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -1
  446. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -1
  447. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -1
  448. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -1
  449. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -1
  450. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -1
  451. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
  452. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js.map +1 -1
  453. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
  454. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js.map +1 -1
  455. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
  456. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
  457. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
  458. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
  459. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
  460. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js.map +1 -1
  461. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
  462. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
  463. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
  464. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js.map +1 -1
  465. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -1
  466. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -1
  467. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
  468. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js.map +1 -1
  469. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
  470. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js.map +1 -1
  471. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
  472. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js.map +1 -1
  473. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
  474. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js.map +1 -1
  475. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
  476. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js.map +1 -1
  477. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
  478. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.js.map +1 -1
  479. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
  480. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js.map +1 -1
  481. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
  482. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
  483. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  484. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
  485. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
  486. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js.map +1 -1
  487. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
  488. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js.map +1 -1
  489. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
  490. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.js.map +1 -1
  491. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
  492. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.js.map +1 -1
  493. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
  494. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js.map +1 -1
  495. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
  496. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js.map +1 -1
  497. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
  498. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.js.map +1 -1
  499. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
  500. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js.map +1 -1
  501. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -1
  502. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -1
  503. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
  504. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js.map +1 -1
  505. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
  506. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js.map +1 -1
  507. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
  508. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.js.map +1 -1
  509. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
  510. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.js.map +1 -1
  511. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
  512. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.js.map +1 -1
  513. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
  514. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js.map +1 -1
  515. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
  516. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js.map +1 -1
  517. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
  518. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.js.map +1 -1
  519. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
  520. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.js.map +1 -1
  521. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
  522. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.js.map +1 -1
  523. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
  524. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
  525. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
  526. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js.map +1 -1
  527. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
  528. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js.map +1 -1
  529. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
  530. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js.map +1 -1
  531. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
  532. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js.map +1 -1
  533. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
  534. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
  535. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
  536. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js.map +1 -1
  537. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
  538. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
  539. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
  540. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js.map +1 -1
  541. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
  542. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
  543. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
  544. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.js.map +1 -1
  545. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
  546. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.js.map +1 -1
  547. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
  548. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.js.map +1 -1
  549. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
  550. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.js.map +1 -1
  551. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
  552. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js.map +1 -1
  553. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
  554. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js.map +1 -1
  555. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
  556. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
  557. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -1
  558. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -1
  559. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
  560. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.js.map +1 -1
  561. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -1
  562. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -1
  563. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
  564. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js.map +1 -1
  565. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
  566. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.js.map +1 -1
  567. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
  568. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js.map +1 -1
  569. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
  570. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.js.map +1 -1
  571. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
  572. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
  573. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
  574. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js.map +1 -1
  575. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
  576. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js.map +1 -1
  577. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
  578. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.js.map +1 -1
  579. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
  580. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js.map +1 -1
  581. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
  582. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.js.map +1 -1
  583. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
  584. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.js.map +1 -1
  585. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -1
  586. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -1
  587. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
  588. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js.map +1 -1
  589. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
  590. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js.map +1 -1
  591. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
  592. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js.map +1 -1
  593. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
  594. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js.map +1 -1
  595. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
  596. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js.map +1 -1
  597. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -1
  598. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -1
  599. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
  600. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js.map +1 -1
  601. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
  602. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.js.map +1 -1
  603. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
  604. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js.map +1 -1
  605. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
  606. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js.map +1 -1
  607. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
  608. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
  609. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -1
  610. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -1
  611. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
  612. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.js.map +1 -1
  613. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
  614. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js.map +1 -1
  615. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
  616. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
  617. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
  618. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.js.map +1 -1
  619. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
  620. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
  621. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
  622. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js.map +1 -1
  623. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
  624. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.js.map +1 -1
  625. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
  626. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.js.map +1 -1
  627. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
  628. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.js.map +1 -1
  629. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
  630. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js.map +1 -1
  631. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
  632. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.js.map +1 -1
  633. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
  634. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.js.map +1 -1
  635. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -1
  636. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -1
  637. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -1
  638. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -1
  639. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
  640. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.js.map +1 -1
  641. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
  642. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.js.map +1 -1
  643. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  644. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js.map +1 -1
  645. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -1
  646. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -1
  647. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
  648. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js.map +1 -1
  649. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
  650. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js.map +1 -1
  651. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -1
  652. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -1
  653. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
  654. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js.map +1 -1
  655. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
  656. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
  657. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
  658. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js.map +1 -1
  659. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
  660. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js.map +1 -1
  661. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
  662. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js.map +1 -1
  663. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
  664. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js.map +1 -1
  665. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -1
  666. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -1
  667. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
  668. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
  669. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
  670. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
  671. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
  672. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js.map +1 -1
  673. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
  674. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js.map +1 -1
  675. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
  676. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js.map +1 -1
  677. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
  678. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js.map +1 -1
  679. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
  680. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js.map +1 -1
  681. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
  682. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js.map +1 -1
  683. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
  684. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js.map +1 -1
  685. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
  686. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js.map +1 -1
  687. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
  688. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js.map +1 -1
  689. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
  690. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
  691. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
  692. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
  693. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
  694. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
  695. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
  696. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
  697. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
  698. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
  699. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
  700. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.js.map +1 -1
  701. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
  702. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
  703. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
  704. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
  705. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
  706. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js.map +1 -1
  707. package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
  708. package/dist/esm/i18n/components/guidance_announcement.en.js.map +1 -1
  709. package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
  710. package/dist/esm/i18n/components/guidance_banner.en.js.map +1 -1
  711. package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
  712. package/dist/esm/i18n/components/guidance_card.en.js.map +1 -1
  713. package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
  714. package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
  715. package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
  716. package/dist/esm/i18n/components/guidance_checklist_item.en.js.map +1 -1
  717. package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
  718. package/dist/esm/i18n/components/guidance_modal.en.js.map +1 -1
  719. package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
  720. package/dist/esm/i18n/components/guidance_onboarding_view.en.js.map +1 -1
  721. package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
  722. package/dist/esm/i18n/components/guidance_survey.en.js.map +1 -1
  723. package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
  724. package/dist/esm/i18n/components/guidance_tooltip.en.js.map +1 -1
  725. package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
  726. package/dist/esm/i18n/components/guidance_tour.en.js.map +1 -1
  727. package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
  728. package/dist/esm/i18n/components/progression_achievement_badge.en.js.map +1 -1
  729. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
  730. package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
  731. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
  732. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
  733. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -1
  734. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
  735. package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
  736. package/dist/esm/i18n/composite_views/app.domain-model.en.js.map +1 -1
  737. package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -1
  738. package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -1
  739. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
  740. package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
  741. package/dist/esm/i18n/index.d.ts.map +1 -1
  742. package/dist/esm/i18n/index.js.map +1 -1
  743. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
  744. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
  745. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
  746. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
  747. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
  748. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
  749. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -1
  750. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -1
  751. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
  752. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
  753. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -1
  754. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -1
  755. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -1
  756. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -1
  757. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
  758. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
  759. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -1
  760. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -1
  761. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -1
  762. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -1
  763. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -1
  764. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -1
  765. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
  766. package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
  767. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
  768. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
  769. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
  770. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -1
  771. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -1
  772. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -1
  773. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
  774. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
  775. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
  776. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
  777. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
  778. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
  779. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
  780. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
  781. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  782. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  783. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
  784. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
  785. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
  786. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
  787. package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
  788. package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
  789. package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -1
  790. package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -1
  791. package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -1
  792. package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -1
  793. package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
  794. package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
  795. package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -1
  796. package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
  797. package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -1
  798. package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -1
  799. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
  800. package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
  801. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
  802. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
  803. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
  804. package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
  805. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -1
  806. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -1
  807. package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -1
  808. package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -1
  809. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -1
  810. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -1
  811. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -1
  812. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -1
  813. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
  814. package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
  815. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
  816. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
  817. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
  818. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.js.map +1 -1
  819. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -1
  820. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -1
  821. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  822. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  823. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
  824. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
  825. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  826. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  827. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  828. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  829. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -1
  830. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -1
  831. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
  832. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
  833. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -1
  834. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -1
  835. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
  836. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
  837. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
  838. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js.map +1 -1
  839. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -1
  840. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -1
  841. package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
  842. package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
  843. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -1
  844. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -1
  845. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
  846. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
  847. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
  848. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
  849. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -1
  850. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -1
  851. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -1
  852. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -1
  853. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
  854. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.js.map +1 -1
  855. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
  856. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
  857. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
  858. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
  859. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -1
  860. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -1
  861. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
  862. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.js.map +1 -1
  863. package/dist/esm/index.d.ts.map +1 -1
  864. package/dist/esm/index.js.map +1 -1
  865. package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
  866. package/dist/esm/market/services/market-generation.companion.service.js.map +1 -1
  867. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -1
  868. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -1
  869. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  870. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  871. package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -1
  872. package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -1
  873. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  874. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  875. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
  876. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
  877. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -1
  878. package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -1
  879. package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -1
  880. package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -1
  881. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -1
  882. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
  883. package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -1
  884. package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -1
  885. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  886. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
  887. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
  888. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
  889. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
  890. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
  891. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
  892. package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
  893. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -1
  894. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -1
  895. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
  896. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +1 -1
  897. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -1
  898. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -1
  899. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  900. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  901. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -1
  902. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -1
  903. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  904. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  905. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  906. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  907. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -1
  908. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -1
  909. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -1
  910. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -1
  911. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -1
  912. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
  913. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
  914. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
  915. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
  916. package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
  917. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts.map +1 -1
  918. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js.map +1 -1
  919. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
  920. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js.map +1 -1
  921. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map +1 -1
  922. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map +1 -1
  923. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  924. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  925. package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -1
  926. package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -1
  927. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -1
  928. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -1
  929. package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -1
  930. package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -1
  931. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
  932. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.js.map +1 -1
  933. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -1
  934. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -1
  935. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  936. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  937. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  938. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  939. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -1
  940. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -1
  941. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -1
  942. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -1
  943. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -1
  944. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -1
  945. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
  946. package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
  947. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
  948. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
  949. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
  950. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.js.map +1 -1
  951. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
  952. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.js.map +1 -1
  953. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
  954. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
  955. package/package.json +17 -17
@@ -1 +1 @@
1
- {"version":3,"file":"application-schema-plan-obligation.companion.utils.d.ts","sourceRoot":"","sources":["../../../../src/core/config/application-schema-plan-obligation.companion.utils.ts"],"names":[],"mappings":"AAMA,4GAA4G;AAC5G,eAAO,MAAM,kCAAkC,iDAAiD,CAAC;AAEjG;;;;;;;;;;;;;GAaG;AACH,oBAAY,+BAA+B;IACzC,+GAA+G;IAC/G,aAAa,kBAAkB;IAC/B;;;;OAIG;IACH,aAAa,kBAAkB;IAC/B,yGAAyG;IACzG,QAAQ,aAAa;IACrB,gIAAgI;IAChI,YAAY,iBAAiB;CAC9B;AAED,MAAM,MAAM,yCAAyC,GACjD;IAAE,QAAQ,CAAC,UAAU,EAAE,+BAA+B,CAAC,aAAa,CAAA;CAAE,GACtE;IAAE,QAAQ,CAAC,UAAU,EAAE,+BAA+B,CAAC,aAAa,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GACnG;IAAE,QAAQ,CAAC,UAAU,EAAE,+BAA+B,CAAC,QAAQ,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAC9F;IAAE,QAAQ,CAAC,UAAU,EAAE,+BAA+B,CAAC,YAAY,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnG;;;;;;;;;GASG;AACH,wBAAsB,qCAAqC,CACzD,QAAQ,EAAE,MAAM,EAChB,aAAa,GAAE,MAAM,GAAG,SAA+C,GACtE,OAAO,CAAC,yCAAyC,CAAC,CA8BpD"}
1
+ {"version":3,"file":"application-schema-plan-obligation.companion.utils.d.ts","sourceRoot":"","sources":["../../../../../src/core/config/application-schema-plan-obligation.companion.utils.ts"],"names":[],"mappings":"AAMA,4GAA4G;AAC5G,eAAO,MAAM,kCAAkC,iDAAiD,CAAC;AAEjG;;;;;;;;;;;;;GAaG;AACH,oBAAY,+BAA+B;IACzC,+GAA+G;IAC/G,aAAa,kBAAkB;IAC/B;;;;OAIG;IACH,aAAa,kBAAkB;IAC/B,yGAAyG;IACzG,QAAQ,aAAa;IACrB,gIAAgI;IAChI,YAAY,iBAAiB;CAC9B;AAED,MAAM,MAAM,yCAAyC,GACjD;IAAE,QAAQ,CAAC,UAAU,EAAE,+BAA+B,CAAC,aAAa,CAAA;CAAE,GACtE;IAAE,QAAQ,CAAC,UAAU,EAAE,+BAA+B,CAAC,aAAa,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GACnG;IAAE,QAAQ,CAAC,UAAU,EAAE,+BAA+B,CAAC,QAAQ,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAC9F;IAAE,QAAQ,CAAC,UAAU,EAAE,+BAA+B,CAAC,YAAY,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnG;;;;;;;;;GASG;AACH,wBAAsB,qCAAqC,CACzD,QAAQ,EAAE,MAAM,EAChB,aAAa,GAAE,MAAM,GAAG,SAA+C,GACtE,OAAO,CAAC,yCAAyC,CAAC,CA8BpD"}
@@ -1 +1 @@
1
- {"version":3,"file":"application-schema-plan-obligation.companion.utils.js","sourceRoot":"","sources":["../../../../src/core/config/application-schema-plan-obligation.companion.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AAErH,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,4GAA4G;AAC5G,MAAM,CAAC,MAAM,kCAAkC,GAAG,8CAA8C,CAAC;AAEjG;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAN,IAAY,+BAaX;AAbD,WAAY,+BAA+B;IACzC,+GAA+G;IAC/G,kEAA+B,CAAA;IAC/B;;;;OAIG;IACH,kEAA+B,CAAA;IAC/B,yGAAyG;IACzG,wDAAqB,CAAA;IACrB,gIAAgI;IAChI,gEAA6B,CAAA;AAC/B,CAAC,EAbW,+BAA+B,KAA/B,+BAA+B,QAa1C;AAQD;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,qCAAqC,CACzD,QAAgB,EAChB,gBAAoC,OAAO,CAAC,GAAG,CAAC,uBAAuB;IAEvE,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,kCAAkC,CAAC,CAAC,EAAE,CAAC;QACxE,OAAO,EAAE,UAAU,EAAE,+BAA+B,CAAC,aAAa,EAAE,CAAC;IACvE,CAAC;IACD,IAAI,aAAa,KAAK,SAAS,IAAI,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QAC/D,OAAO;YACL,UAAU,EAAE,+BAA+B,CAAC,YAAY;YACxD,MAAM,EAAE,6GAA6G;SACtH,CAAC;IACJ,CAAC;IACD,IAAI,CAAC;QACH,0GAA0G;QAC1G,yEAAyE;QACzE,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,QAAQ,EAAE,aAAa,EAAE,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC;QAC7F,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;YACpB,OAAO;gBACL,UAAU,EAAE,+BAA+B,CAAC,YAAY;gBACxD,MAAM,EAAE,6CAA6C,aAAa,8EAA8E;aACjJ,CAAC;QACJ,CAAC;QACD,2FAA2F;QAC3F,OAAO,gCAAgC,CAAC,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,KAAK,cAAc,CAAC,UAAU;YACtG,CAAC,CAAC,EAAE,UAAU,EAAE,+BAA+B,CAAC,aAAa,EAAE,UAAU,EAAE,MAAM,CAAC,IAAI,EAAE;YACxF,CAAC,CAAC,EAAE,UAAU,EAAE,+BAA+B,CAAC,QAAQ,EAAE,UAAU,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;IACxF,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO;YACL,UAAU,EAAE,+BAA+B,CAAC,YAAY;YACxD,MAAM,EAAE,8CAA8C,aAAa,0BAA0B,mBAAmB,CAAC,KAAK,CAAC,EAAE;SAC1H,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["import * as path from 'node:path';\nimport { existsSync } from 'node:fs';\n\nimport { DatabaseEngine, loadInfraEnvConfig, resolveApplicationDatabaseEngine } from '@wildo-ai/platform-config-lib';\n\nimport { describeCaughtError } from '@wildo-ai/saas-backend-lib';\n/** The accepted schema plan of an application that has adopted migrations. Its presence is the adoption. */\nexport const SCHEMA_PLAN_LOCKFILE_RELATIVE_PATH = 'backend-api/migrations/schema-plan.lock.json';\n\n/**\n * Does this application owe migrations, and has it accepted a schema plan yet?\n *\n * FOUR answers, because the two facts they combine lead to different places (#1144):\n *\n * - the lockfile's existence says a plan was ACCEPTED, and nothing more;\n * - the authored `applicationDatabase.engine` says whether the application is OWED one.\n *\n * Until #1144 the build loop read only the first, on the premise that \"the foundation playbook writes the\n * baseline\". It does not: `bottom_up.foundation` runs a deterministic executor that never reads its method's\n * baseline step, so a PostgreSQL application built by the journey reached the build band with no lockfile, the\n * host derived no migration step, and its backend refused to boot on tables no migration ever created. Reading\n * the declaration is what turns that silence into an owed step.\n */\nexport enum ApplicationSchemaPlanObligation {\n /** A schema plan is accepted: migrations are adopted, and drift against the plan is what the step migrates. */\n ACCEPTED_PLAN = 'accepted_plan',\n /**\n * The application declares PostgreSQL and has accepted no plan yet. The INITIAL migration is owed: `wildo db\n * generate` with no lockfile renders the whole model as that migration and writes the baseline in the same\n * invocation, which is what creates the tables the backend's boot gate requires.\n */\n BASELINE_OWED = 'baseline_owed',\n /** No plan, and none owed: the application persists to MongoDB (declared, or by the field's absence). */\n NOT_OWED = 'not_owed',\n /** No plan, and the declaration could not be read — unknown environment, no authored config, or a config that fails to load. */\n UNDETERMINED = 'undetermined',\n}\n\nexport type ApplicationSchemaPlanObligationAssessment =\n | { readonly obligation: ApplicationSchemaPlanObligation.ACCEPTED_PLAN }\n | { readonly obligation: ApplicationSchemaPlanObligation.BASELINE_OWED; readonly declaredIn: string }\n | { readonly obligation: ApplicationSchemaPlanObligation.NOT_OWED; readonly declaredIn: string }\n | { readonly obligation: ApplicationSchemaPlanObligation.UNDETERMINED; readonly reason: string };\n\n/**\n * Assess an application's schema-plan obligation from its lockfile and its authored store declaration.\n *\n * The declaration is read from the authored `wildo.infra.<env>.config.ts` of the environment this companion runs\n * in (`PLATFORM_ENVIRONMENT_ID`, required by the companion's own platform env), through the same loader the CLI\n * uses. NOT from the companion's `DATABASE_DEFAULT_ADAPTER`: that names the PLATFORM's store, which is a different\n * decision from the application's.\n *\n * The lockfile is checked first, so an application that has adopted migrations never pays for a config load.\n */\nexport async function assessApplicationSchemaPlanObligation(\n saasRoot: string,\n environmentId: string | undefined = process.env.PLATFORM_ENVIRONMENT_ID,\n): Promise<ApplicationSchemaPlanObligationAssessment> {\n if (existsSync(path.join(saasRoot, SCHEMA_PLAN_LOCKFILE_RELATIVE_PATH))) {\n return { obligation: ApplicationSchemaPlanObligation.ACCEPTED_PLAN };\n }\n if (environmentId === undefined || environmentId.trim() === '') {\n return {\n obligation: ApplicationSchemaPlanObligation.UNDETERMINED,\n reason: 'PLATFORM_ENVIRONMENT_ID is not set, so there is no authored infra config to read the application store from',\n };\n }\n try {\n // Fresh on every read: the companion outlives edits to this file, and the one window this read exists for\n // (no lockfile yet) is exactly when an application may switch its store.\n const loaded = await loadInfraEnvConfig(saasRoot, environmentId, { freshModuleCache: true });\n if (loaded === null) {\n return {\n obligation: ApplicationSchemaPlanObligation.UNDETERMINED,\n reason: `no authored infra config for environment '${environmentId}', so the application store is not declared anywhere this companion can read`,\n };\n }\n // Resolved, so silence answers PostgreSQL here exactly as it does in provisioning (#1571).\n return resolveApplicationDatabaseEngine(loaded.config.applicationDatabase) === DatabaseEngine.POSTGRESQL\n ? { obligation: ApplicationSchemaPlanObligation.BASELINE_OWED, declaredIn: loaded.path }\n : { obligation: ApplicationSchemaPlanObligation.NOT_OWED, declaredIn: loaded.path };\n } catch (error) {\n return {\n obligation: ApplicationSchemaPlanObligation.UNDETERMINED,\n reason: `the authored infra config for environment '${environmentId}' could not be loaded: ${describeCaughtError(error)}`,\n };\n }\n}\n"]}
1
+ {"version":3,"file":"application-schema-plan-obligation.companion.utils.js","sourceRoot":"","sources":["../../../../../src/core/config/application-schema-plan-obligation.companion.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AAErH,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,4GAA4G;AAC5G,MAAM,CAAC,MAAM,kCAAkC,GAAG,8CAA8C,CAAC;AAEjG;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAN,IAA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AAC,EAAE,UAAU,EAAE,+BAA+B,CAAC,QAAQ,EAAE,UAAU,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;IACxF,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO;YACL,UAAU,EAAE,+BAA+B,CAAC,YAAY;YACxD,MAAM,EAAE,8CAA8C,aAAa,0BAA0B,mBAAmB,CAAC,KAAK,CAAC,EAAE;SAC1H,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["import * as path from 'node:path';\nimport { existsSync } from 'node:fs';\n\nimport { DatabaseEngine, loadInfraEnvConfig, resolveApplicationDatabaseEngine } from '@wildo-ai/platform-config-lib';\n\nimport { describeCaughtError } from '@wildo-ai/saas-backend-lib';\n/** The accepted schema plan of an application that has adopted migrations. Its presence is the adoption. */\nexport const SCHEMA_PLAN_LOCKFILE_RELATIVE_PATH = 'backend-api/migrations/schema-plan.lock.json';\n\n/**\n * Does this application owe migrations, and has it accepted a schema plan yet?\n *\n * FOUR answers, because the two facts they combine lead to different places (#1144):\n *\n * - the lockfile's existence says a plan was ACCEPTED, and nothing more;\n * - the authored `applicationDatabase.engine` says whether the application is OWED one.\n *\n * Until #1144 the build loop read only the first, on the premise that \"the foundation playbook writes the\n * baseline\". It does not: `bottom_up.foundation` runs a deterministic executor that never reads its method's\n * baseline step, so a PostgreSQL application built by the journey reached the build band with no lockfile, the\n * host derived no migration step, and its backend refused to boot on tables no migration ever created. Reading\n * the declaration is what turns that silence into an owed step.\n */\nexport enum ApplicationSchemaPlanObligation {\n /** A schema plan is accepted: migrations are adopted, and drift against the plan is what the step migrates. */\n ACCEPTED_PLAN = 'accepted_plan',\n /**\n * The application declares PostgreSQL and has accepted no plan yet. The INITIAL migration is owed: `wildo db\n * generate` with no lockfile renders the whole model as that migration and writes the baseline in the same\n * invocation, which is what creates the tables the backend's boot gate requires.\n */\n BASELINE_OWED = 'baseline_owed',\n /** No plan, and none owed: the application persists to MongoDB (declared, or by the field's absence). */\n NOT_OWED = 'not_owed',\n /** No plan, and the declaration could not be read — unknown environment, no authored config, or a config that fails to load. */\n UNDETERMINED = 'undetermined',\n}\n\nexport type ApplicationSchemaPlanObligationAssessment =\n | { readonly obligation: ApplicationSchemaPlanObligation.ACCEPTED_PLAN }\n | { readonly obligation: ApplicationSchemaPlanObligation.BASELINE_OWED; readonly declaredIn: string }\n | { readonly obligation: ApplicationSchemaPlanObligation.NOT_OWED; readonly declaredIn: string }\n | { readonly obligation: ApplicationSchemaPlanObligation.UNDETERMINED; readonly reason: string };\n\n/**\n * Assess an application's schema-plan obligation from its lockfile and its authored store declaration.\n *\n * The declaration is read from the authored `wildo.infra.<env>.config.ts` of the environment this companion runs\n * in (`PLATFORM_ENVIRONMENT_ID`, required by the companion's own platform env), through the same loader the CLI\n * uses. NOT from the companion's `DATABASE_DEFAULT_ADAPTER`: that names the PLATFORM's store, which is a different\n * decision from the application's.\n *\n * The lockfile is checked first, so an application that has adopted migrations never pays for a config load.\n */\nexport async function assessApplicationSchemaPlanObligation(\n saasRoot: string,\n environmentId: string | undefined = process.env.PLATFORM_ENVIRONMENT_ID,\n): Promise<ApplicationSchemaPlanObligationAssessment> {\n if (existsSync(path.join(saasRoot, SCHEMA_PLAN_LOCKFILE_RELATIVE_PATH))) {\n return { obligation: ApplicationSchemaPlanObligation.ACCEPTED_PLAN };\n }\n if (environmentId === undefined || environmentId.trim() === '') {\n return {\n obligation: ApplicationSchemaPlanObligation.UNDETERMINED,\n reason: 'PLATFORM_ENVIRONMENT_ID is not set, so there is no authored infra config to read the application store from',\n };\n }\n try {\n // Fresh on every read: the companion outlives edits to this file, and the one window this read exists for\n // (no lockfile yet) is exactly when an application may switch its store.\n const loaded = await loadInfraEnvConfig(saasRoot, environmentId, { freshModuleCache: true });\n if (loaded === null) {\n return {\n obligation: ApplicationSchemaPlanObligation.UNDETERMINED,\n reason: `no authored infra config for environment '${environmentId}', so the application store is not declared anywhere this companion can read`,\n };\n }\n // Resolved, so silence answers PostgreSQL here exactly as it does in provisioning (#1571).\n return resolveApplicationDatabaseEngine(loaded.config.applicationDatabase) === DatabaseEngine.POSTGRESQL\n ? { obligation: ApplicationSchemaPlanObligation.BASELINE_OWED, declaredIn: loaded.path }\n : { obligation: ApplicationSchemaPlanObligation.NOT_OWED, declaredIn: loaded.path };\n } catch (error) {\n return {\n obligation: ApplicationSchemaPlanObligation.UNDETERMINED,\n reason: `the authored infra config for environment '${environmentId}' could not be loaded: ${describeCaughtError(error)}`,\n };\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"primary-language.companion.utils.d.ts","sourceRoot":"","sources":["../../../../src/core/config/primary-language.companion.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,KAAK,6BAA6B,GAAG;IACnC,cAAc,CAAC,EAAE;QACf,SAAS,CAAC,EAAE;YACV,eAAe,CAAC,EAAE,OAAO,CAAC;YAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;YAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;SAC5B,CAAC;KACH,CAAC;CACH,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,qCAAqC,CACnD,MAAM,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,GACvD,iBAAiB,CAOnB;AAED,wBAAgB,sCAAsC,CACpD,MAAM,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,GACvD,iBAAiB,CAOnB;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,CAAC,6BAA6B,GAAG;IAAE,cAAc,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE;YAAE,gBAAgB,CAAC,EAAE,OAAO,CAAA;SAAE,CAAA;KAAE,CAAA;CAAE,CAAC,GAAG,IAAI,GAAG,SAAS,GAC/H,SAAS,MAAM,EAAE,CAKnB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,GAAG,iBAAiB,EAAE,CAOzH"}
1
+ {"version":3,"file":"primary-language.companion.utils.d.ts","sourceRoot":"","sources":["../../../../../src/core/config/primary-language.companion.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,KAAK,6BAA6B,GAAG;IACnC,cAAc,CAAC,EAAE;QACf,SAAS,CAAC,EAAE;YACV,eAAe,CAAC,EAAE,OAAO,CAAC;YAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;YAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;SAC5B,CAAC;KACH,CAAC;CACH,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,qCAAqC,CACnD,MAAM,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,GACvD,iBAAiB,CAOnB;AAED,wBAAgB,sCAAsC,CACpD,MAAM,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,GACvD,iBAAiB,CAOnB;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,CAAC,6BAA6B,GAAG;IAAE,cAAc,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE;YAAE,gBAAgB,CAAC,EAAE,OAAO,CAAA;SAAE,CAAA;KAAE,CAAA;CAAE,CAAC,GAAG,IAAI,GAAG,SAAS,GAC/H,SAAS,MAAM,EAAE,CAKnB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,GAAG,iBAAiB,EAAE,CAOzH"}
@@ -1 +1 @@
1
- {"version":3,"file":"primary-language.companion.utils.js","sourceRoot":"","sources":["../../../../src/core/config/primary-language.companion.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAYxE;;;;;;;GAOG;AACH,MAAM,UAAU,qCAAqC,CACnD,MAAwD;IAExD,MA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CAAC;IACrE,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,EAAoB,EAAE,CAAC,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACzH,OAAO,CAAC,GAAG,IAAI,GAAG,CAAS,CAAC,OAAO,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AACrD,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,2BAA2B,CAAC,MAAwD;IAClG,MAAM,OAAO,GAAG,qCAAqC,CAAC,MAAM,CAAC,CAAC;IAC9D,MAAM,QAAQ,GAAG,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,gBAAgB,CAAC;IACrE,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC;QACrC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,EAA+B,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,MAA2B,CAAC,CAAC;QAClI,CAAC,CAAC,EAAE,CAAC;IACP,OAAO,CAAC,GAAG,IAAI,GAAG,CAAoB,CAAC,OAAO,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAChE,CAAC","sourcesContent":["import { AvailableLanguage } from '@wildo-ai/presets-components-models';\n\ntype AppPrimaryLanguageConfigShape = {\n appPreferences?: {\n languages?: {\n defaultLanguage?: unknown;\n fallbackLanguage?: unknown;\n enabledLanguages?: unknown;\n };\n };\n};\n\n/**\n * Resolve the companion's configured primary locale from backend config.\n *\n * Keep this runtime-local helper aligned with\n * `getConfiguredPrimaryLanguage()` in `@wildo-ai/saas-backend-lib`; the\n * companion test/runtime path can execute against the built backend package,\n * while the config object remains the single source of truth.\n */\nexport function getCompanionConfiguredPrimaryLanguage(\n config: AppPrimaryLanguageConfigShape | null | undefined,\n): AvailableLanguage {\n const configured = config?.appPreferences?.languages?.defaultLanguage;\n if (configured !== undefined && !Object.values(AvailableLanguage).includes(configured as AvailableLanguage)) {\n throw new Error(`Invalid app primary language \"${String(configured)}\". Configure appPreferences.languages.defaultLanguage with a valid AvailableLanguage.`);\n }\n const found = Object.values(AvailableLanguage).find((value) => value === configured);\n return found ?? AvailableLanguage.EN;\n}\n\nexport function getCompanionConfiguredFallbackLanguage(\n config: AppPrimaryLanguageConfigShape | null | undefined,\n): AvailableLanguage {\n const configured = config?.appPreferences?.languages?.fallbackLanguage;\n if (configured !== undefined && !Object.values(AvailableLanguage).includes(configured as AvailableLanguage)) {\n throw new Error(`Invalid app fallback language \"${String(configured)}\". Configure appPreferences.languages.fallbackLanguage with a valid AvailableLanguage.`);\n }\n const found = Object.values(AvailableLanguage).find((value) => value === configured);\n return found ?? getCompanionConfiguredPrimaryLanguage(config);\n}\n\n/**\n * The locales an application SERVES: its primary locale plus whatever `appPreferences.languages.enabledLanguages`\n * declares, primary first. One answer for every companion step that writes per-locale files — the label\n * seeding, the email canon seeding and the generation steps — because two answers would let the seeded\n * set and the generated set disagree.\n */\nexport function getCompanionEnabledLocaleCodes(\n config: (AppPrimaryLanguageConfigShape & { appPreferences?: { languages?: { enabledLanguages?: unknown } } }) | null | undefined,\n): readonly string[] {\n const primary = String(getCompanionConfiguredPrimaryLanguage(config));\n const declared = config?.appPreferences?.languages?.enabledLanguages;\n const enabled = Array.isArray(declared) ? declared.filter((locale): locale is string => typeof locale === 'string') : [];\n return [...new Set<string>([primary, ...enabled])];\n}\n\n/**\n * Every language the application serves, PRIMARY FIRST: the configured default, then each enabled\n * language the `AvailableLanguage` vocabulary carries, without repeats. Values outside the vocabulary\n * are skipped rather than thrown on — `enabledLanguages` is a list, and one unknown entry must not\n * stop the languages that are valid.\n *\n * One reader for three consumers that must agree: the i18n generation step (which locales to\n * translate into), the capability composition (whether the website needs a second locale) and the\n * foundation (which locales to compose). Before this, the first read the configuration privately and\n * the other two could not read it at all.\n */\nexport function getCompanionServedLanguages(config: AppPrimaryLanguageConfigShape | null | undefined): AvailableLanguage[] {\n const primary = getCompanionConfiguredPrimaryLanguage(config);\n const declared = config?.appPreferences?.languages?.enabledLanguages;\n const enabled = Array.isArray(declared)\n ? declared.filter((locale): locale is AvailableLanguage => Object.values(AvailableLanguage).includes(locale as AvailableLanguage))\n : [];\n return [...new Set<AvailableLanguage>([primary, ...enabled])];\n}\n"]}
1
+ {"version":3,"file":"primary-language.companion.utils.js","sourceRoot":"","sources":["../../../../../src/core/config/primary-language.companion.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAYxE;;;;;;;GAOG;AACH,MAAM,UAAU,qCAAqC,CACnD,MAAwD;IAExD,MAAM,UAAU,GAAG,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,eAAe,CAAC;IACtE,IAAI,UAAU,KAAK,SAAS,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,UAA+B,CAAC,EAAE,CAAC;QAC5G,MAAM,IAAI,KAAK,CAAC,iCAAiC,MAAM,CAAC,UAAU,CAAC,uFAAuF,CAAC,CAAC;IAC9J,CAAC;IACD,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,UAAU,CAAC,CAAC;IACrF,OAAO,KAAK,IAAI,iBAAiB,CAAC,EAAE,CAAC;AACvC,CAAC;AAED,MAAM,UAAU,sCAAsC,CACpD,MAAwD;IAExD,MAAM,UAAU,GAAG,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,gBAAgB,CAAC;IACvE,IAAI,UAAU,KAAK,SAAS,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,UAA+B,CAAC,EAAE,CAAC;QAC5G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AC,EAAE,CAAC;IACP,OAAO,CAAC,GAAG,IAAI,GAAG,CAAoB,CAAC,OAAO,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAChE,CAAC","sourcesContent":["import { AvailableLanguage } from '@wildo-ai/presets-components-models';\n\ntype AppPrimaryLanguageConfigShape = {\n appPreferences?: {\n languages?: {\n defaultLanguage?: unknown;\n fallbackLanguage?: unknown;\n enabledLanguages?: unknown;\n };\n };\n};\n\n/**\n * Resolve the companion's configured primary locale from backend config.\n *\n * Keep this runtime-local helper aligned with\n * `getConfiguredPrimaryLanguage()` in `@wildo-ai/saas-backend-lib`; the\n * companion test/runtime path can execute against the built backend package,\n * while the config object remains the single source of truth.\n */\nexport function getCompanionConfiguredPrimaryLanguage(\n config: AppPrimaryLanguageConfigShape | null | undefined,\n): AvailableLanguage {\n const configured = config?.appPreferences?.languages?.defaultLanguage;\n if (configured !== undefined && !Object.values(AvailableLanguage).includes(configured as AvailableLanguage)) {\n throw new Error(`Invalid app primary language \"${String(configured)}\". Configure appPreferences.languages.defaultLanguage with a valid AvailableLanguage.`);\n }\n const found = Object.values(AvailableLanguage).find((value) => value === configured);\n return found ?? AvailableLanguage.EN;\n}\n\nexport function getCompanionConfiguredFallbackLanguage(\n config: AppPrimaryLanguageConfigShape | null | undefined,\n): AvailableLanguage {\n const configured = config?.appPreferences?.languages?.fallbackLanguage;\n if (configured !== undefined && !Object.values(AvailableLanguage).includes(configured as AvailableLanguage)) {\n throw new Error(`Invalid app fallback language \"${String(configured)}\". Configure appPreferences.languages.fallbackLanguage with a valid AvailableLanguage.`);\n }\n const found = Object.values(AvailableLanguage).find((value) => value === configured);\n return found ?? getCompanionConfiguredPrimaryLanguage(config);\n}\n\n/**\n * The locales an application SERVES: its primary locale plus whatever `appPreferences.languages.enabledLanguages`\n * declares, primary first. One answer for every companion step that writes per-locale files — the label\n * seeding, the email canon seeding and the generation steps — because two answers would let the seeded\n * set and the generated set disagree.\n */\nexport function getCompanionEnabledLocaleCodes(\n config: (AppPrimaryLanguageConfigShape & { appPreferences?: { languages?: { enabledLanguages?: unknown } } }) | null | undefined,\n): readonly string[] {\n const primary = String(getCompanionConfiguredPrimaryLanguage(config));\n const declared = config?.appPreferences?.languages?.enabledLanguages;\n const enabled = Array.isArray(declared) ? declared.filter((locale): locale is string => typeof locale === 'string') : [];\n return [...new Set<string>([primary, ...enabled])];\n}\n\n/**\n * Every language the application serves, PRIMARY FIRST: the configured default, then each enabled\n * language the `AvailableLanguage` vocabulary carries, without repeats. Values outside the vocabulary\n * are skipped rather than thrown on — `enabledLanguages` is a list, and one unknown entry must not\n * stop the languages that are valid.\n *\n * One reader for three consumers that must agree: the i18n generation step (which locales to\n * translate into), the capability composition (whether the website needs a second locale) and the\n * foundation (which locales to compose). Before this, the first read the configuration privately and\n * the other two could not read it at all.\n */\nexport function getCompanionServedLanguages(config: AppPrimaryLanguageConfigShape | null | undefined): AvailableLanguage[] {\n const primary = getCompanionConfiguredPrimaryLanguage(config);\n const declared = config?.appPreferences?.languages?.enabledLanguages;\n const enabled = Array.isArray(declared)\n ? declared.filter((locale): locale is AvailableLanguage => Object.values(AvailableLanguage).includes(locale as AvailableLanguage))\n : [];\n return [...new Set<AvailableLanguage>([primary, ...enabled])];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"companion-context.d.ts","sourceRoot":"","sources":["../../../../src/core/context/companion-context.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEtJ;;;;;;;;GAQG;AACH,MAAM,WAAW,gBAAgB;IAC/B,4CAA4C;IAC5C,cAAc,EAAE,oBAAoB,CAAC;IAErC,gEAAgE;IAChE,aAAa,EAAE,aAAa,CAAC;IAE7B,qEAAqE;IACrE,QAAQ,EAAE,MAAM,CAAC;IAEjB,6DAA6D;IAC7D,aAAa,EAAE,MAAM,CAAC;IAEt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AAC;KACzD,CAAC;AACJ,CAAC;AAED,SAAS,wCAAwC,CAC/C,QAAgB,EAChB,cAA4C;IAE5C,MAAM,eAAe,GAAG,0BAA0B,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;IAC7E,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO;QACL,GAAG,eAAe;KACnB,CAAC;AACJ,CAAC;AAOD;;;;;;;;;;;;;;GAcG;AACH,SAAS,6BAA6B;IACpC,IAAI,CAAC;QACH,MAAM,eAAe,GAAG,6BAA6B,EAAE,CAAC;QACxD,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,CAAC;YACjC,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAG3D,CAAC;QAEF,OAAO;YACL,aAAa,EAAE,OAAO,GAAG,CAAC,aAAa,KAAK,QAAQ,IAAI,GAAG,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI;YAC/G,oBAAoB,EAAE,GAAG,CAAC,oBAAoB,KAAK,IAAI;SACxD,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC","sourcesContent":["import { existsSync, readFileSync } from \"node:fs\";\nimport { resolve } from \"node:path\";\nimport {\n buildResolvedHomes,\n normalizeSaasRuntimeDescriptor,\n resolveMachinePreferencesPath,\n resolveWorkspaceScope,\n loadSaasConfig,\n resolvePackageCompanionEntryPath,\n WorkspaceScope,\n} from \"@wildo-ai/platform-config-lib\";\nimport type { AppLibraryDefinition, WildoSaasConfig, WorkspaceScopeResult, AppServiceDefinition, ResolvedHomes } from \"@wildo-ai/platform-config-lib\";\n\n/**\n * Resolved companion context — the companion's awareness of the app\n * it operates on. Resolved once at startup via workspace scope detection\n * and config loading from `wildo.saas.config.ts`.\n *\n * The companion is always placed in `.wildo-saas/wildo-dev-companion/`\n * inside a SaaS app directory. The saas config is at the app root\n * (two levels up from the companion).\n */\nexport interface CompanionContext {\n /** Full workspace scope detection result */\n workspaceScope: WorkspaceScopeResult;\n\n /** Trusted homes snapshot resolved once at companion startup */\n resolvedHomes: ResolvedHomes;\n\n /** The SaaS app root directory (where wildo.saas.config.ts lives) */\n saasRoot: string;\n\n /** The companion package home inside the app runtime home */\n companionHome: string;\n\n /** Loaded and validated SaaS config */\n saasConfig: WildoSaasConfig;\n\n /** All declared SaaS services keyed by SaaS service key (`app`, `backendApi`, ...) */\n servicesByKey: Record<string, AppServiceDefinition>;\n\n /** Frontend services keyed by runtime/public serviceName */\n frontendServices: Record<string, AppServiceDefinition>;\n\n /** Backend services keyed by declared serviceName */\n backendServices: Record<string, AppServiceDefinition>;\n\n /** Declarative domain modules from wildo.saas.config.ts */\n declaredModules: NonNullable<WildoSaasConfig[\"modules\"]>;\n\n /** All declared module ids */\n moduleIds: string[];\n\n /** Module ids keyed by declared SaaS service key */\n moduleIdsByService: Record<string, string[]>;\n\n /** Resolved library package roots and companion entrypoints */\n resolvedLibraries: Record<string, CompanionResolvedLibrary>;\n\n /** Resolved specifications package root, runtime entrypoint, and continuity declaration. */\n resolvedSpecifications: CompanionResolvedSpecificationsPackageRef | null;\n}\n\nexport interface CompanionResolvedPackageRef {\n declaredPath: string;\n packageRoot: string;\n entryPath: string;\n}\n\nexport interface CompanionResolvedSpecificationsPackageRef extends CompanionResolvedPackageRef {\n}\n\nexport interface CompanionResolvedLibrary extends CompanionResolvedPackageRef {\n libraryId: string;\n libraryType: AppLibraryDefinition[\"type\"];\n}\n\n/**\n * Resolves the companion's application context by detecting the workspace\n * scope from CWD and loading the saas configuration.\n *\n * The companion relies on `resolveWorkspaceScope()` which walks up from CWD\n * exactly once at startup, then upgrades that detection into the shared\n * `ResolvedHomes` snapshot so every later consumer reads the same app/framework\n * roots instead of re-deriving them independently.\n *\n * @throws If the companion is not running inside a SaaS app directory\n * @throws If the saas config cannot be loaded or fails validation\n */\nexport async function resolveCompanionContext(): Promise<CompanionContext> {\n const workspaceScope = resolveWorkspaceScope();\n const storedPreferences = loadMachinePreferencesForHint();\n const resolvedHomes = buildResolvedHomes(workspaceScope, {\n frameworkPathHint: storedPreferences?.frameworkPath ?? null,\n isFrameworkDeveloperHint: storedPreferences?.isFrameworkDeveloper ?? false,\n });\n\n if (resolvedHomes.scope < WorkspaceScope.SAAS_APP || !resolvedHomes.app.layout) {\n throw new Error(\n `Companion must run inside a SaaS application directory. ` +\n `Detected scope: ${WorkspaceScope[resolvedHomes.scope]}. ` +\n `No wildo.saas.config.ts found walking up from the current working directory.`,\n );\n }\n\n const saasRoot = resolvedHomes.app.declarationRoot!;\n const saasConfigPath = resolvedHomes.app.saasConfigPath!;\n const companionHome = resolvedHomes.app.layout.companionHome;\n\n const saasConfig = await loadSaasConfig(saasConfigPath);\n if (!saasConfig) {\n throw new Error(`Failed to load saas config at ${saasConfigPath}`);\n }\n\n const frontendServices: Record<string, AppServiceDefinition> = {};\n const backendServices: Record<string, AppServiceDefinition> = {};\n const normalizedRuntimeDescriptor = normalizeSaasRuntimeDescriptor({\n name: saasConfig.name,\n slug: saasConfig.slug,\n displayName: saasConfig.displayName,\n description: saasConfig.description,\n type: saasConfig.type,\n services: saasConfig.services,\n engineCapabilities: saasConfig.engineCapabilities,\n providers: saasConfig.providers,\n providerConfigurations: saasConfig.providerConfigurations,\n // Required by the managed declaration since #1032. This call used to be cast `as any`, so omitting it type-checked\n // and the companion crash-looped on `organizationTypes: expected record, received undefined`. The cast is gone:\n // a field the descriptor requires is now a compile error here.\n organizationTypes: saasConfig.organizationTypes,\n dataServices: saasConfig.dataServices,\n modules: saasConfig.modules,\n bootstrap: saasConfig.bootstrap,\n libraries: saasConfig.libraries,\n specifications: saasConfig.specifications,\n });\n\n const resolvedLibraries = resolveCompanionLibraries(saasRoot, normalizedRuntimeDescriptor.libraries);\n const resolvedSpecifications = resolveCompanionSpecificationsPackageRef(saasRoot, normalizedRuntimeDescriptor.specifications);\n\n for (const [, service] of Object.entries(saasConfig.services)) {\n if (service.frontendType) {\n frontendServices[service.serviceName] = service;\n } else {\n backendServices[service.serviceName] = service;\n }\n }\n\n return {\n workspaceScope,\n resolvedHomes,\n saasRoot,\n companionHome,\n saasConfig,\n servicesByKey: saasConfig.services,\n frontendServices,\n backendServices,\n declaredModules: normalizedRuntimeDescriptor.declaredModules,\n moduleIds: normalizedRuntimeDescriptor.moduleIds,\n moduleIdsByService: normalizedRuntimeDescriptor.moduleIdsByService,\n resolvedLibraries,\n resolvedSpecifications,\n };\n}\n\nfunction resolveCompanionLibraries(\n saasRoot: string,\n declaredLibraries: Record<string, AppLibraryDefinition> | undefined,\n): Record<string, CompanionResolvedLibrary> {\n const resolvedLibraries: Record<string, CompanionResolvedLibrary> = {};\n\n for (const [libraryId, declaredLibrary] of Object.entries(declaredLibraries ?? {})) {\n const packageRoot = resolve(saasRoot, declaredLibrary.path);\n resolvedLibraries[libraryId] = {\n libraryId,\n libraryType: declaredLibrary.type,\n declaredPath: declaredLibrary.path,\n packageRoot,\n entryPath: resolvePackageCompanionEntryPath(packageRoot),\n };\n }\n\n return resolvedLibraries;\n}\n\nfunction resolveCompanionPackageRef(saasRoot: string, declaredTarget: { path: string } | undefined): CompanionResolvedPackageRef | null {\n if (!declaredTarget) {\n return null;\n }\n\n const packageRoot = resolve(saasRoot, declaredTarget.path);\n return {\n declaredPath: declaredTarget.path,\n packageRoot,\n entryPath: resolvePackageCompanionEntryPath(packageRoot),\n };\n}\n\nfunction resolveCompanionSpecificationsPackageRef(\n saasRoot: string,\n declaredTarget: { path: string } | undefined,\n): CompanionResolvedSpecificationsPackageRef | null {\n const resolvedPackage = resolveCompanionPackageRef(saasRoot, declaredTarget);\n if (!resolvedPackage) {\n return null;\n }\n return {\n ...resolvedPackage,\n };\n}\n\ninterface CompanionMachinePreferencesHint {\n frameworkPath: string | null;\n isFrameworkDeveloper: boolean;\n}\n\n/**\n * Read the machine-level Wildo preferences file once at companion bootstrap\n * to produce a `frameworkPathHint` for `buildResolvedHomes`.\n *\n * The CLI does this in `ContextManager.detect()` so it can still resolve\n * framework-owned assets when the app workspace is installed outside the\n * framework monorepo. The companion must mirror that contract — without this\n * hint, `resolvedHomes.framework.repositoryRoot` is null whenever the app\n * lives outside the framework checkout, even if the operator already\n * configured a valid framework path in their global preferences.\n *\n * Failures are swallowed and logged indirectly via the returned null: an\n * unreadable preferences file is not a bootstrap blocker; the companion\n * simply falls back to whatever workspace-scope detection alone produced.\n */\nfunction loadMachinePreferencesForHint(): CompanionMachinePreferencesHint | null {\n try {\n const preferencesPath = resolveMachinePreferencesPath();\n if (!existsSync(preferencesPath)) {\n return null;\n }\n\n const raw = JSON.parse(readFileSync(preferencesPath, \"utf8\")) as {\n frameworkPath?: unknown;\n isFrameworkDeveloper?: unknown;\n };\n\n return {\n frameworkPath: typeof raw.frameworkPath === \"string\" && raw.frameworkPath.length > 0 ? raw.frameworkPath : null,\n isFrameworkDeveloper: raw.isFrameworkDeveloper === true,\n };\n } catch {\n return null;\n }\n}\n"]}
1
+ {"version":3,"file":"companion-context.js","sourceRoot":"","sources":["../../../../../src/core/context/companion-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,kBAAkB,EAClB,8BAA8B,EAC9B,6BAA6B,EAC7B,qBAAqB,EACrB,cAAc,EACd,gCAAgC,EAChC,cAAc,GACf,MAAM,+BAA+B,CAAC;AAmEvC;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB;IAC3C,MAAM,cAAc,GAAG,qBAAqB,EAAE,CAAC;IAC/C,MAAM,iBAAiB,GAAG,6BAA6B,EAAE,CAAC;IAC1D,MAAM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G3D,CAAC;QAEF,OAAO;YACL,aAAa,EAAE,OAAO,GAAG,CAAC,aAAa,KAAK,QAAQ,IAAI,GAAG,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI;YAC/G,oBAAoB,EAAE,GAAG,CAAC,oBAAoB,KAAK,IAAI;SACxD,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC","sourcesContent":["import { existsSync, readFileSync } from \"node:fs\";\nimport { resolve } from \"node:path\";\nimport {\n buildResolvedHomes,\n normalizeSaasRuntimeDescriptor,\n resolveMachinePreferencesPath,\n resolveWorkspaceScope,\n loadSaasConfig,\n resolvePackageCompanionEntryPath,\n WorkspaceScope,\n} from \"@wildo-ai/platform-config-lib\";\nimport type { AppLibraryDefinition, WildoSaasConfig, WorkspaceScopeResult, AppServiceDefinition, ResolvedHomes } from \"@wildo-ai/platform-config-lib\";\n\n/**\n * Resolved companion context — the companion's awareness of the app\n * it operates on. Resolved once at startup via workspace scope detection\n * and config loading from `wildo.saas.config.ts`.\n *\n * The companion is always placed in `.wildo-saas/wildo-dev-companion/`\n * inside a SaaS app directory. The saas config is at the app root\n * (two levels up from the companion).\n */\nexport interface CompanionContext {\n /** Full workspace scope detection result */\n workspaceScope: WorkspaceScopeResult;\n\n /** Trusted homes snapshot resolved once at companion startup */\n resolvedHomes: ResolvedHomes;\n\n /** The SaaS app root directory (where wildo.saas.config.ts lives) */\n saasRoot: string;\n\n /** The companion package home inside the app runtime home */\n companionHome: string;\n\n /** Loaded and validated SaaS config */\n saasConfig: WildoSaasConfig;\n\n /** All declared SaaS services keyed by SaaS service key (`app`, `backendApi`, ...) */\n servicesByKey: Record<string, AppServiceDefinition>;\n\n /** Frontend services keyed by runtime/public serviceName */\n frontendServices: Record<string, AppServiceDefinition>;\n\n /** Backend services keyed by declared serviceName */\n backendServices: Record<string, AppServiceDefinition>;\n\n /** Declarative domain modules from wildo.saas.config.ts */\n declaredModules: NonNullable<WildoSaasConfig[\"modules\"]>;\n\n /** All declared module ids */\n moduleIds: string[];\n\n /** Module ids keyed by declared SaaS service key */\n moduleIdsByService: Record<string, string[]>;\n\n /** Resolved library package roots and companion entrypoints */\n resolvedLibraries: Record<string, CompanionResolvedLibrary>;\n\n /** Resolved specifications package root, runtime entrypoint, and continuity declaration. */\n resolvedSpecifications: CompanionResolvedSpecificationsPackageRef | null;\n}\n\nexport interface CompanionResolvedPackageRef {\n declaredPath: string;\n packageRoot: string;\n entryPath: string;\n}\n\nexport interface CompanionResolvedSpecificationsPackageRef extends CompanionResolvedPackageRef {\n}\n\nexport interface CompanionResolvedLibrary extends CompanionResolvedPackageRef {\n libraryId: string;\n libraryType: AppLibraryDefinition[\"type\"];\n}\n\n/**\n * Resolves the companion's application context by detecting the workspace\n * scope from CWD and loading the saas configuration.\n *\n * The companion relies on `resolveWorkspaceScope()` which walks up from CWD\n * exactly once at startup, then upgrades that detection into the shared\n * `ResolvedHomes` snapshot so every later consumer reads the same app/framework\n * roots instead of re-deriving them independently.\n *\n * @throws If the companion is not running inside a SaaS app directory\n * @throws If the saas config cannot be loaded or fails validation\n */\nexport async function resolveCompanionContext(): Promise<CompanionContext> {\n const workspaceScope = resolveWorkspaceScope();\n const storedPreferences = loadMachinePreferencesForHint();\n const resolvedHomes = buildResolvedHomes(workspaceScope, {\n frameworkPathHint: storedPreferences?.frameworkPath ?? null,\n isFrameworkDeveloperHint: storedPreferences?.isFrameworkDeveloper ?? false,\n });\n\n if (resolvedHomes.scope < WorkspaceScope.SAAS_APP || !resolvedHomes.app.layout) {\n throw new Error(\n `Companion must run inside a SaaS application directory. ` +\n `Detected scope: ${WorkspaceScope[resolvedHomes.scope]}. ` +\n `No wildo.saas.config.ts found walking up from the current working directory.`,\n );\n }\n\n const saasRoot = resolvedHomes.app.declarationRoot!;\n const saasConfigPath = resolvedHomes.app.saasConfigPath!;\n const companionHome = resolvedHomes.app.layout.companionHome;\n\n const saasConfig = await loadSaasConfig(saasConfigPath);\n if (!saasConfig) {\n throw new Error(`Failed to load saas config at ${saasConfigPath}`);\n }\n\n const frontendServices: Record<string, AppServiceDefinition> = {};\n const backendServices: Record<string, AppServiceDefinition> = {};\n const normalizedRuntimeDescriptor = normalizeSaasRuntimeDescriptor({\n name: saasConfig.name,\n slug: saasConfig.slug,\n displayName: saasConfig.displayName,\n description: saasConfig.description,\n type: saasConfig.type,\n services: saasConfig.services,\n engineCapabilities: saasConfig.engineCapabilities,\n providers: saasConfig.providers,\n providerConfigurations: saasConfig.providerConfigurations,\n // Required by the managed declaration since #1032. This call used to be cast `as any`, so omitting it type-checked\n // and the companion crash-looped on `organizationTypes: expected record, received undefined`. The cast is gone:\n // a field the descriptor requires is now a compile error here.\n organizationTypes: saasConfig.organizationTypes,\n dataServices: saasConfig.dataServices,\n modules: saasConfig.modules,\n bootstrap: saasConfig.bootstrap,\n libraries: saasConfig.libraries,\n specifications: saasConfig.specifications,\n });\n\n const resolvedLibraries = resolveCompanionLibraries(saasRoot, normalizedRuntimeDescriptor.libraries);\n const resolvedSpecifications = resolveCompanionSpecificationsPackageRef(saasRoot, normalizedRuntimeDescriptor.specifications);\n\n for (const [, service] of Object.entries(saasConfig.services)) {\n if (service.frontendType) {\n frontendServices[service.serviceName] = service;\n } else {\n backendServices[service.serviceName] = service;\n }\n }\n\n return {\n workspaceScope,\n resolvedHomes,\n saasRoot,\n companionHome,\n saasConfig,\n servicesByKey: saasConfig.services,\n frontendServices,\n backendServices,\n declaredModules: normalizedRuntimeDescriptor.declaredModules,\n moduleIds: normalizedRuntimeDescriptor.moduleIds,\n moduleIdsByService: normalizedRuntimeDescriptor.moduleIdsByService,\n resolvedLibraries,\n resolvedSpecifications,\n };\n}\n\nfunction resolveCompanionLibraries(\n saasRoot: string,\n declaredLibraries: Record<string, AppLibraryDefinition> | undefined,\n): Record<string, CompanionResolvedLibrary> {\n const resolvedLibraries: Record<string, CompanionResolvedLibrary> = {};\n\n for (const [libraryId, declaredLibrary] of Object.entries(declaredLibraries ?? {})) {\n const packageRoot = resolve(saasRoot, declaredLibrary.path);\n resolvedLibraries[libraryId] = {\n libraryId,\n libraryType: declaredLibrary.type,\n declaredPath: declaredLibrary.path,\n packageRoot,\n entryPath: resolvePackageCompanionEntryPath(packageRoot),\n };\n }\n\n return resolvedLibraries;\n}\n\nfunction resolveCompanionPackageRef(saasRoot: string, declaredTarget: { path: string } | undefined): CompanionResolvedPackageRef | null {\n if (!declaredTarget) {\n return null;\n }\n\n const packageRoot = resolve(saasRoot, declaredTarget.path);\n return {\n declaredPath: declaredTarget.path,\n packageRoot,\n entryPath: resolvePackageCompanionEntryPath(packageRoot),\n };\n}\n\nfunction resolveCompanionSpecificationsPackageRef(\n saasRoot: string,\n declaredTarget: { path: string } | undefined,\n): CompanionResolvedSpecificationsPackageRef | null {\n const resolvedPackage = resolveCompanionPackageRef(saasRoot, declaredTarget);\n if (!resolvedPackage) {\n return null;\n }\n return {\n ...resolvedPackage,\n };\n}\n\ninterface CompanionMachinePreferencesHint {\n frameworkPath: string | null;\n isFrameworkDeveloper: boolean;\n}\n\n/**\n * Read the machine-level Wildo preferences file once at companion bootstrap\n * to produce a `frameworkPathHint` for `buildResolvedHomes`.\n *\n * The CLI does this in `ContextManager.detect()` so it can still resolve\n * framework-owned assets when the app workspace is installed outside the\n * framework monorepo. The companion must mirror that contract — without this\n * hint, `resolvedHomes.framework.repositoryRoot` is null whenever the app\n * lives outside the framework checkout, even if the operator already\n * configured a valid framework path in their global preferences.\n *\n * Failures are swallowed and logged indirectly via the returned null: an\n * unreadable preferences file is not a bootstrap blocker; the companion\n * simply falls back to whatever workspace-scope detection alone produced.\n */\nfunction loadMachinePreferencesForHint(): CompanionMachinePreferencesHint | null {\n try {\n const preferencesPath = resolveMachinePreferencesPath();\n if (!existsSync(preferencesPath)) {\n return null;\n }\n\n const raw = JSON.parse(readFileSync(preferencesPath, \"utf8\")) as {\n frameworkPath?: unknown;\n isFrameworkDeveloper?: unknown;\n };\n\n return {\n frameworkPath: typeof raw.frameworkPath === \"string\" && raw.frameworkPath.length > 0 ? raw.frameworkPath : null,\n isFrameworkDeveloper: raw.isFrameworkDeveloper === true,\n };\n } catch {\n return null;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"companion-package-loaders.companion.d.ts","sourceRoot":"","sources":["../../../../src/core/context/companion-package-loaders.companion.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAC9F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAI5D,MAAM,WAAW,8BAA8B;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,6BAA6B,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,GAAG,8BAA8B,CAYpI;AAED,wBAAgB,kCAAkC,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,8BAA8B,CAQrH;AAED,wBAAsB,2BAA2B,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAG3I;AAED,wBAAsB,iCAAiC,CACrD,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,GAAE,MAAiB,GAC3B,OAAO,CAAC,6BAA6B,CAAC,CAOxC;AAED,wBAAsB,4BAA4B,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,SAAS,GAAE,MAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAOrJ;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAsB,kCAAkC,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAkCpI;AAmBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAe7E;AAwDD;;;;;;;GAOG;AACH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CA4BzE"}
1
+ {"version":3,"file":"companion-package-loaders.companion.d.ts","sourceRoot":"","sources":["../../../../../src/core/context/companion-package-loaders.companion.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAC9F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAI5D,MAAM,WAAW,8BAA8B;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,6BAA6B,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,GAAG,8BAA8B,CAYpI;AAED,wBAAgB,kCAAkC,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,8BAA8B,CAQrH;AAED,wBAAsB,2BAA2B,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAG3I;AAED,wBAAsB,iCAAiC,CACrD,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,GAAE,MAAiB,GAC3B,OAAO,CAAC,6BAA6B,CAAC,CAOxC;AAED,wBAAsB,4BAA4B,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,SAAS,GAAE,MAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAOrJ;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAsB,kCAAkC,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAkCpI;AAmBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAe7E;AAwDD;;;;;;;GAOG;AACH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CA4BzE"}
@@ -1 +1 @@
1
- {"version":3,"file":"companion-package-loaders.companion.js","sourceRoot":"","sources":["../../../../src/core/context/companion-package-loaders.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAY,OAAO,EAAO,MAAM,WAAW,CAAC;AAClE,OAAO,EACL,0BAA0B,EAC1B,qCAAqC,EACrC,6BAA6B,EAC7B,gCAAgC,GACjC,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AAErF,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAOjE,MAAM,UAAU,6BAA6B,CAAC,gBAAkC,EAAE,UAAkB;IAClG,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACrE,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,6BAA6B,UAAU,yBAAyB,CAAC,CAAC;IACpF,CAAC;IAED,MAAM,WAAW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,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC;IAC1D,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,+DAA+D,YAAY,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;IACnH,CAAC;IACD,MAAM,KAAK,GAAI,MAA2D,EAAE,eAAe,EAAE,KAAK,CAAC;IACnG,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,EAAE,CAAC;IAClF,MAAM,OAAO,GAAsC,EAAE,CAAC;IACtD,KAAK,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAgC,CAAC,EAAE,CAAC;QAChF,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,EAAoB,EAAE,CAAC,OAAO,MAAM,KAAK,QAAQ,CAAC,EAAE,CAAC;YACtG,OAAO,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;QAC3B,CAAC;IACH,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["import { existsSync, readFileSync } from \"node:fs\";\nimport { pathToFileURL } from \"node:url\";\nimport { dirname, join, relative, resolve, sep } from \"node:path\";\nimport {\n loadPackageCompanionExport,\n normalizeCompilerPathAliasesForLoader,\n registerStaticAssetImportNoop,\n resolvePackageCompanionEntryPath,\n} from \"@wildo-ai/platform-config-lib\";\nimport type { SharedLibraryCompanionExports } from \"@wildo-ai/saas-models\";\nimport type { BackendCompanionExports } from \"@wildo-ai/saas-backend-lib/companion\";\nimport type { SpecificationsCompanionExports } from \"@wildo-ai/saas-specifications/companion\";\nimport type { CompanionContext } from \"./companion-context\";\nimport { signDerivedInputs } from \"../utils/derived-input-signature.companion.utils\";\n\nimport { describeCaughtError } from '@wildo-ai/saas-backend-lib';\nexport interface ResolvedCompanionServiceTarget {\n serviceKey: string;\n packageRoot: string;\n entryPath: string;\n}\n\nexport function resolveCompanionServiceTarget(companionContext: CompanionContext, serviceKey: string): ResolvedCompanionServiceTarget {\n const serviceDefinition = companionContext.servicesByKey[serviceKey];\n if (!serviceDefinition) {\n throw new Error(`Unknown SaaS service key \"${serviceKey}\" in companion context.`);\n }\n\n const packageRoot = resolve(companionContext.saasRoot, serviceDefinition.path);\n return {\n serviceKey,\n packageRoot,\n entryPath: resolvePackageCompanionEntryPath(packageRoot),\n };\n}\n\nexport function resolvePrimaryBackendServiceTarget(companionContext: CompanionContext): ResolvedCompanionServiceTarget {\n const backendServiceKey = Object.entries(companionContext.servicesByKey).find(([, serviceDefinition]) => !serviceDefinition.frontendType)?.[0];\n\n if (!backendServiceKey) {\n throw new Error(\"No backend SaaS service is declared in wildo.saas.config.ts.\");\n }\n\n return resolveCompanionServiceTarget(companionContext, backendServiceKey);\n}\n\nexport async function loadBackendCompanionExports(companionContext: CompanionContext, serviceKey?: string): Promise<BackendCompanionExports> {\n const resolvedTarget = serviceKey ? resolveCompanionServiceTarget(companionContext, serviceKey) : resolvePrimaryBackendServiceTarget(companionContext);\n return importCompanionDefaultExport<BackendCompanionExports>(resolvedTarget.entryPath, `Service \"${resolvedTarget.serviceKey}\"`);\n}\n\nexport async function loadSharedLibraryCompanionExports(\n companionContext: CompanionContext,\n libraryId: string = \"shared\",\n): Promise<SharedLibraryCompanionExports> {\n const resolvedLibrary = companionContext.resolvedLibraries[libraryId];\n if (!resolvedLibrary) {\n throw new Error(`Library \"${libraryId}\" is not declared in wildo.saas.config.ts.`);\n }\n\n return importCompanionDefaultExport<SharedLibraryCompanionExports>(resolvedLibrary.entryPath, `Library \"${libraryId}\"`);\n}\n\nexport async function loadLibraryRootModuleExports(companionContext: CompanionContext, libraryId: string = \"shared\"): Promise<Record<string, unknown>> {\n const resolvedLibrary = companionContext.resolvedLibraries[libraryId];\n if (!resolvedLibrary) {\n throw new Error(`Library \"${libraryId}\" is not declared in wildo.saas.config.ts.`);\n }\n\n return importCompanionModule(resolvePackageRootEntryPath(resolvedLibrary.packageRoot));\n}\n\n/**\n * Load the application's **authored** specifications companion surface.\n *\n * This deliberately does NOT go through a raw dynamic import of the resolved\n * `./companion` entry. For the specifications package that subpath is reserved\n * for the PROJECTED composition entrypoint — a contract enforced elsewhere\n * against the continuity declaration's `expectedCompanionImportPath` — so in a\n * working tree it never exists and resolution legitimately falls back to\n * authored TypeScript source, which plain Node cannot execute.\n *\n * Loading through `loadPackageCompanionExport` (jiti) is what makes that\n * authored fallback usable. The package addresses its own modules through a\n * compiler path alias, so the aliases the package declares in its own\n * `tsconfig.json` are normalized and supplied to the loader; without them the\n * authored source cannot resolve its own internal specifiers.\n *\n * **WHICH entry is resolved depends on an INFERRED option, and asking without it\n * gives the wrong answer** — worth stating because it cost this file a wrong\n * correction. `loadPackageCompanionExport` passes\n * `inferPackageCompanionModuleResolution(packageRoot)`, which answers\n * `framework-source` for a package inside the framework workspace and `package`\n * outside it. Measured on `examples/wonder-todos` (2026-09-18):\n * `framework-source` resolves `src/companion-exports.ts` (authored, jiti\n * evaluates it, so `freshModuleCache` genuinely re-reads it) while `package` —\n * and calling the resolver with NO options — answers\n * `dist/esm/companion-exports.js`, which Node's process-global ESM registry pins\n * for the process lifetime. Anything reasoning about this surface's freshness\n * must resolve the way the LOADER does, not the way the resolver defaults.\n *\n * **Authored, not accepted, is the correct surface here.** Consumers are i18n\n * label-key collection and cross-registry assertions, which must track what the\n * developer is currently writing. Reading the accepted projection instead would\n * make labels lag acceptance — a different concept that belongs to the durable\n * specification-family path, not this one.\n */\nexport async function loadSpecificationsCompanionExports(companionContext: CompanionContext): Promise<SpecificationsCompanionExports> {\n const packageRoot = companionContext.resolvedSpecifications?.packageRoot;\n // No specifications package: let the evaluator raise its own named error rather than duplicating it.\n if (packageRoot === undefined) return evaluateSpecificationsCompanionExports(companionContext);\n\n const signature = signEvaluatedCompanionTree(packageRoot);\n /*\n * A null signature means the tree could not be READ, which is never grounds to serve a cached\n * answer — an empty walk and an unchanged one are indistinguishable from their result\n * (`.claude/rules/negative-results-require-a-positive-probe.md`). It degrades to the uncached\n * behaviour that predates this cache, which is always correct and merely slow.\n */\n if (signature !== null) {\n const cached = specificationsCompanionExportsCache.get(packageRoot);\n if (cached?.signature === signature) return cached.exports;\n const inFlight = specificationsCompanionExportsInFlight.get(packageRoot);\n if (inFlight?.signature === signature) return inFlight.load;\n }\n\n const load = evaluateSpecificationsCompanionExports(companionContext);\n specificationsCompanionExportsInFlight.set(packageRoot, { signature, load });\n try {\n const companionExports = await load;\n // The signature is the one captured BEFORE the load, so an edit landing mid-load leaves the entry\n // stale-by-a-hair and the NEXT call re-signs, misses and reloads. That is exactly what an uncached\n // load already did: it too answers with the tree as it stood when it started.\n if (signature !== null) specificationsCompanionExportsCache.set(packageRoot, { signature, exports: companionExports });\n return companionExports;\n } finally {\n // A failed load caches nothing, so the next caller retries rather than inheriting the failure.\n if (specificationsCompanionExportsInFlight.get(packageRoot)?.load === load) {\n specificationsCompanionExportsInFlight.delete(packageRoot);\n }\n }\n}\n\n/** The last evaluated exports per specifications package root, valid while its tree signature holds. */\nconst specificationsCompanionExportsCache = new Map<string, { signature: string; exports: SpecificationsCompanionExports }>();\n\n/** Evaluations still running, so concurrent callers at the same signature share one of them. */\nconst specificationsCompanionExportsInFlight = new Map<string, { signature: string | null; load: Promise<SpecificationsCompanionExports> }>();\n\n/**\n * Every `moduleResolution` the companion entry resolver accepts.\n *\n * Total over the vocabulary rather than a list of the ones that matter today: a value added there must\n * widen what {@link signEvaluatedCompanionTree} covers, and a signature that silently stopped covering\n * a reachable tree would serve a stale evaluation with nothing reporting it.\n */\nconst COMPANION_MODULE_RESOLUTIONS = [\"framework-source\", \"package\"] as const satisfies readonly NonNullable<\n Parameters<typeof resolvePackageCompanionEntryPath>[2]\n>[\"moduleResolution\"][];\n\n/**\n * A cheap fingerprint of the module tree {@link loadSpecificationsCompanionExports} actually evaluates.\n *\n * **It signs every tree the resolver could land on, because this module cannot ask which one it DID.**\n * The deciding input is `inferPackageCompanionModuleResolution`, which `platform-config-lib` keeps\n * private — and the resolver's no-option default is NOT the loader's answer (see the JSDoc above; that\n * gap produced a wrong correction to this file before it produced a wrong signature). Resolving under\n * both declared values and signing the union is exact under either outcome, where naming one tree is\n * only exact under a guess. Its cost is that a rebuild of the tree NOT evaluated also invalidates —\n * one extra re-evaluation, never a stale answer, which is the direction this must err in.\n *\n * Why a signature instead of a TTL: `freshModuleCache: true` exists so a family landed while the\n * companion runs is visible without a restart (#170), and a TTL trades exactly that away for up to its\n * own length. A signature cannot — the tsc watcher writes the tree, the signature moves, the next call\n * misses and re-evaluates. What is bought is only the repeat of an evaluation of BYTES THAT DID NOT\n * CHANGE.\n *\n * Measured on `examples/wonder-todos` (444 files): ~2-5 ms to sign against ~1.2-2.9 s to re-evaluate, and\n * a creation-board refresh pays that evaluation twice — once for playbook eligibility, once for the build\n * plan — which is the bulk of the board's latency. The git probes behind the build plan cost ~0.15 s on\n * the same application and are not the bottleneck.\n *\n * Aggregates rather than hashes content: file count catches a deletion, newest mtime catches a write,\n * total bytes and the mtime sum catch a same-instant swap that preserves both, and the directories'\n * own mtimes catch a rename — see `signDerivedInputs`, which owns the technique. `dist` and `node_modules`\n * are skipped only when they sit BELOW the evaluated root, never when they are it.\n *\n * Returns `null` when the tree cannot be read or is empty. That is a refusal to authorize a cache hit,\n * not an answer.\n *\n * Exported for the creation-plane projection (#1310), whose cached boards sit ABOVE this evaluation:\n * they must drop when the tree this evaluates moves, so they sign exactly what this signs rather than\n * a second guess at which tree the loader lands on.\n */\nexport function signEvaluatedCompanionTree(packageRoot: string): string | null {\n const entryPaths: string[] = [];\n for (const moduleResolution of COMPANION_MODULE_RESOLUTIONS) {\n try {\n entryPaths.push(resolvePackageCompanionEntryPath(packageRoot, undefined, { moduleResolution }));\n } catch {\n // One value resolving and the other not is ordinary (a package with no build output yet). Only\n // NEITHER resolving means there is nothing to sign, which `signDerivedInputs` reports as null.\n }\n }\n entryPaths.sort();\n const evaluatedRoots = [...new Set(entryPaths.map((entryPath) => dirname(entryPath)))].sort();\n // The export map decides WHICH entry is evaluated, so a change to it must invalidate as surely as a\n // change to the modules behind it.\n return signDerivedInputs(evaluatedRoots, [join(packageRoot, \"package.json\")]);\n}\n\n/** Evaluates the specifications companion surface, with no caching — see {@link loadSpecificationsCompanionExports}. */\nasync function evaluateSpecificationsCompanionExports(companionContext: CompanionContext): Promise<SpecificationsCompanionExports> {\n const resolvedSpecifications = companionContext.resolvedSpecifications;\n if (!resolvedSpecifications) {\n throw new Error(\"No specifications package is declared in wildo.saas.config.ts.\");\n }\n\n const packageModuleAliases = normalizeCompilerPathAliasesForLoader(\n resolvedSpecifications.packageRoot,\n readPackageCompilerPathAliases(resolvedSpecifications.packageRoot),\n );\n\n // Application specifications are declarative control-plane input, but their\n // metadata can legitimately reach browser component modules. Static assets\n // carry no companion semantics; treating them as executable Node modules\n // would make an otherwise valid configured application unloadable solely\n // because a frontend library imports its stylesheet. Register the narrow\n // process-wide no-op hook before jiti evaluates the authored export graph.\n // The hook never handles JavaScript/TypeScript and remains inert for callers\n // that do not import a supported static asset.\n registerStaticAssetImportNoop();\n\n try {\n return await loadPackageCompanionExport<SpecificationsCompanionExports>(\n resolvedSpecifications.packageRoot,\n undefined,\n // freshModuleCache: this surface's CONTRACT is \"the working tree as the developer is writing\n // it\" (the JSDoc above), and jiti's process-global module cache broke exactly that: a family\n // landed (or a companion-exports slot wired) while the companion ran stayed invisible until\n // restart — J-1's stall B, one forced restart per landed family. Measured live 2026-08-27.\n { packageModuleAliases, freshModuleCache: true },\n );\n } catch (error) {\n /*\n * `freshModuleCache` covers the modules JITI evaluates — this package's own authored source. It\n * does NOT cover the application's compiled WORKSPACE PACKAGES: a bare specifier like\n * `@my-app/shared-lib` resolves into `node_modules` and is imported by NODE, whose ESM registry is\n * process-global and cannot be invalidated. So a symbol added to an application package while the\n * companion is running stays `undefined` in this process until it restarts.\n *\n * The symptom gives no hint of that. Measured 2026-09-16: a coding run added a `Deals_Operations`\n * enum to the application's shared-lib at 21:30 and every playbook run afterwards failed with\n * `Cannot read properties of undefined (reading 'ASSIGN_OWNER')` — which reads as a defect in the\n * freshly authored specification, and is not. Plain `node -e \"import('@my-app/shared-lib')\"` in the\n * same tree printed the enum correctly, because a fresh process has a fresh registry.\n *\n * So the loader names the condition rather than leaving the next reader to re-derive it. It does\n * not decide that this IS the cause — it cannot — it says what the cause usually is and what\n * clears it.\n */\n throw describeSpecificationsLoadFailure(error);\n }\n}\n\n/**\n * Add the pinned-registry hint to a specifications-load failure that looks like one, and leave every\n * other failure untouched.\n *\n * Exported so it can be pinned: the VALUE here is entirely in which failures get the hint. Attaching it\n * to a malformed build plan or a throwing module would send the next reader somewhere wrong, and that\n * is the half a test can hold.\n */\nexport function describeSpecificationsLoadFailure(error: unknown): unknown {\n const described = describeCaughtError(error);\n /*\n * `.*` with no space before `of`: the real message is \"Cannot read properties of undefined (reading\n * 'X')\", so a pattern requiring a segment between them matches NOTHING — which is what the first\n * draft did, and the pin below is what caught it before it shipped as a hint that never fires.\n */\n if (!/Cannot read propert(?:y|ies).*of undefined/u.test(described)) return error;\n /*\n * The AUTHORED frame — the first stack frame inside the application's specification source — is the one\n * fact that separates the two readings below, and the raw error buries it under a dozen loader frames.\n * Named here so the reader opens the right file first instead of restarting first.\n */\n const stack = error instanceof Error ? (error.stack ?? '') : '';\n const authoredFrame = stack.split('\\n').map((line) => line.trim()).find((line) => /specifications\\/src\\//u.test(line));\n const site = authoredFrame ? ` The first authored frame is: ${authoredFrame.replace(/^at\\s+/u, '')}.` : '';\n return new Error(\n `${described} — two readings, and a companion restart tells them apart.${site} `\n + '(1) A symbol was added to one of the application\\'s own packages while this companion process was '\n + 'running: authored specification SOURCE is re-read on every load, but the application\\'s compiled '\n + \"packages are pinned in Node's process-global ESM registry, so a new export stays undefined until the \"\n + 'companion restarts. (2) The failing file imports the symbol from a door that does not publish it — '\n + 'typically a subpath-only export of `@wildo-ai/saas-specifications` named at the package ROOT, which '\n + 'is undefined in a fresh process too, so a restart changes nothing (measured 2026-09-21: a landed '\n + 'risk register importing `ApplicationRiskRegisterSchema` from the root instead of `/assurance` failed '\n + 'this way across two restarts). If it survives a restart, fix the import at the frame named above.',\n { cause: error },\n );\n}\n\n\n/** Extensions a plain-Node dynamic import cannot execute. */\nconst NON_EXECUTABLE_COMPANION_ENTRY_EXTENSIONS = Object.freeze([\".ts\", \".tsx\", \".mts\", \".cts\"]);\n\n/**\n * Import one resolved companion entry.\n *\n * The companion runs as compiled JavaScript under plain Node with only an\n * asset-noop loader registered — it has no TypeScript loader. `resolvePackageCompanionEntryPath`\n * may legitimately hand back authored source: that fallback is load-bearing for\n * `loadPackageCompanionExport`, which resolves through jiti and CAN execute\n * TypeScript. Here it cannot.\n *\n * Rejecting a source entry explicitly turns a package misconfiguration into a\n * precise, actionable error. Letting it through instead produced a bare\n * `ERR_UNKNOWN_FILE_EXTENSION` from deep inside the module loader, which — because\n * several call sites are deliberately best-effort — was swallowed into a warning\n * that named neither the package nor the dangling export. That is how a\n * permanently-dangling `./companion` target stayed invisible until the companion\n * happened to survive continuity recovery for the first time.\n */\nasync function importCompanionModule(entryPath: string): Promise<Record<string, unknown>> {\n const nonExecutableExtension = NON_EXECUTABLE_COMPANION_ENTRY_EXTENSIONS.find((extension) => entryPath.endsWith(extension));\n if (nonExecutableExtension) {\n throw new Error(\n `Companion entry \"${entryPath}\" is TypeScript source, which this runtime cannot execute. `\n + \"The package's declared companion export is missing or unbuilt, so resolution fell back to authored source. \"\n + \"Build the package, or correct its package.json exports to point at a built entry.\",\n );\n }\n return import(pathToFileURL(entryPath).href) as Promise<Record<string, unknown>>;\n}\n\nasync function importCompanionDefaultExport<T extends object>(entryPath: string, exportOwnerLabel: string): Promise<T> {\n const moduleExports = await importCompanionModule(entryPath);\n const defaultExport = moduleExports.default;\n\n if (!defaultExport || typeof defaultExport !== \"object\") {\n throw new Error(`${exportOwnerLabel} companion export must default-export one typed object surface.`);\n }\n\n return defaultExport as T;\n}\n\nfunction resolvePackageRootEntryPath(packageRoot: string): string {\n const sourceCandidates = [\n join(packageRoot, \"src\", \"index.ts\"),\n join(packageRoot, \"src\", \"index.tsx\"),\n join(packageRoot, \"src\", \"index.js\"),\n join(packageRoot, \"src\", \"index.mjs\"),\n ];\n\n for (const candidate of sourceCandidates) {\n if (existsSync(candidate)) {\n return candidate;\n }\n }\n\n const packageJsonPath = join(packageRoot, \"package.json\");\n if (!existsSync(packageJsonPath)) {\n throw new Error(`Missing package.json for package root \"${packageRoot}\".`);\n }\n\n const packageJson = JSON.parse(readFileSync(packageJsonPath, \"utf-8\")) as {\n exports?: Record<string, string | { import?: string; default?: string }>;\n main?: string;\n module?: string;\n };\n const rootExport = packageJson.exports?.[\".\"];\n\n if (typeof rootExport === \"string\") {\n const rootExportPath = resolve(packageRoot, rootExport);\n if (existsSync(rootExportPath)) {\n return rootExportPath;\n }\n }\n\n if (rootExport && typeof rootExport === \"object\") {\n const declaredEntryPath = rootExport.import ?? rootExport.default;\n if (typeof declaredEntryPath === \"string\") {\n const rootExportPath = resolve(packageRoot, declaredEntryPath);\n if (existsSync(rootExportPath)) {\n return rootExportPath;\n }\n }\n }\n\n for (const declaredEntryPath of [packageJson.module, packageJson.main]) {\n if (!declaredEntryPath) {\n continue;\n }\n\n const resolvedEntryPath = resolve(packageRoot, declaredEntryPath);\n if (existsSync(resolvedEntryPath)) {\n return resolvedEntryPath;\n }\n }\n\n throw new Error(`Could not resolve root entry for package \"${packageRoot}\".`);\n}\n\n/**\n * The module aliases the specifications package declares for ITSELF, read from its `tsconfig.json`.\n *\n * These used to come from an app-authored continuity declaration (`specifications/src/continuity.ts` →\n * `composition.compilerPathAliases`), which was one more place an application had to restate something it\n * had already said. The compiler config is where a package declares how its own specifiers resolve, it is\n * a committed file, and two branches can carry different versions of it and merge — so it is the source\n * this loader should have been reading all along (`.claude/rules/one-source-of-truth.md`, Rule 0).\n *\n * Scope, stated rather than discovered later: only the package's OWN `compilerOptions.paths` is read. An\n * alias inherited through `extends` is not followed, because resolving that chain here would mean\n * reimplementing a slice of tsc for a case no application has. A missing file or a missing `paths` block\n * means no aliases — the honest answer, not a fallback. Malformed JSON throws: a package whose compiler\n * config cannot be parsed cannot have its authored exports loaded correctly either.\n */\nfunction readPackageCompilerPathAliases(packageRoot: string): Readonly<Record<string, readonly string[]>> {\n const tsconfigPath = join(packageRoot, \"tsconfig.json\");\n if (!existsSync(tsconfigPath)) return {};\n let parsed: unknown;\n try {\n parsed = JSON.parse(readFileSync(tsconfigPath, \"utf8\"));\n } catch (error) {\n throw new Error(`Specifications package tsconfig.json is not parseable JSON: ${tsconfigPath}`, { cause: error });\n }\n const paths = (parsed as { compilerOptions?: { paths?: unknown } } | null)?.compilerOptions?.paths;\n if (paths === null || paths === undefined || typeof paths !== \"object\") return {};\n const aliases: Record<string, readonly string[]> = {};\n for (const [alias, targets] of Object.entries(paths as Record<string, unknown>)) {\n if (Array.isArray(targets) && targets.every((target): target is string => typeof target === \"string\")) {\n aliases[alias] = targets;\n }\n }\n return aliases;\n}\n"]}
1
+ {"version":3,"file":"companion-package-loaders.companion.js","sourceRoot":"","sources":["../../../../../src/core/context/companion-package-loaders.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAY,OAAO,EAAO,MAAM,WAAW,CAAC;AAClE,OAAO,EACL,0BAA0B,EAC1B,qCAAqC,EACrC,6BAA6B,EAC7B,gCAAgC,GACjC,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AAErF,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAOjE,MAAM,UA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;GAcG;AACH,SAAS,8BAA8B,CAAC,WAAmB;IACzD,MAAM,YAAY,GAAG,IAAI,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;IACxD,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;QAAE,OAAO,EAAE,CAAC;IACzC,IAAI,MAAe,CAAC;IACpB,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC;IAC1D,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,+DAA+D,YAAY,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;IACnH,CAAC;IACD,MAAM,KAAK,GAAI,MAA2D,EAAE,eAAe,EAAE,KAAK,CAAC;IACnG,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,EAAE,CAAC;IAClF,MAAM,OAAO,GAAsC,EAAE,CAAC;IACtD,KAAK,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAgC,CAAC,EAAE,CAAC;QAChF,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,EAAoB,EAAE,CAAC,OAAO,MAAM,KAAK,QAAQ,CAAC,EAAE,CAAC;YACtG,OAAO,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;QAC3B,CAAC;IACH,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["import { existsSync, readFileSync } from \"node:fs\";\nimport { pathToFileURL } from \"node:url\";\nimport { dirname, join, relative, resolve, sep } from \"node:path\";\nimport {\n loadPackageCompanionExport,\n normalizeCompilerPathAliasesForLoader,\n registerStaticAssetImportNoop,\n resolvePackageCompanionEntryPath,\n} from \"@wildo-ai/platform-config-lib\";\nimport type { SharedLibraryCompanionExports } from \"@wildo-ai/saas-models\";\nimport type { BackendCompanionExports } from \"@wildo-ai/saas-backend-lib/companion\";\nimport type { SpecificationsCompanionExports } from \"@wildo-ai/saas-specifications/companion\";\nimport type { CompanionContext } from \"./companion-context\";\nimport { signDerivedInputs } from \"../utils/derived-input-signature.companion.utils\";\n\nimport { describeCaughtError } from '@wildo-ai/saas-backend-lib';\nexport interface ResolvedCompanionServiceTarget {\n serviceKey: string;\n packageRoot: string;\n entryPath: string;\n}\n\nexport function resolveCompanionServiceTarget(companionContext: CompanionContext, serviceKey: string): ResolvedCompanionServiceTarget {\n const serviceDefinition = companionContext.servicesByKey[serviceKey];\n if (!serviceDefinition) {\n throw new Error(`Unknown SaaS service key \"${serviceKey}\" in companion context.`);\n }\n\n const packageRoot = resolve(companionContext.saasRoot, serviceDefinition.path);\n return {\n serviceKey,\n packageRoot,\n entryPath: resolvePackageCompanionEntryPath(packageRoot),\n };\n}\n\nexport function resolvePrimaryBackendServiceTarget(companionContext: CompanionContext): ResolvedCompanionServiceTarget {\n const backendServiceKey = Object.entries(companionContext.servicesByKey).find(([, serviceDefinition]) => !serviceDefinition.frontendType)?.[0];\n\n if (!backendServiceKey) {\n throw new Error(\"No backend SaaS service is declared in wildo.saas.config.ts.\");\n }\n\n return resolveCompanionServiceTarget(companionContext, backendServiceKey);\n}\n\nexport async function loadBackendCompanionExports(companionContext: CompanionContext, serviceKey?: string): Promise<BackendCompanionExports> {\n const resolvedTarget = serviceKey ? resolveCompanionServiceTarget(companionContext, serviceKey) : resolvePrimaryBackendServiceTarget(companionContext);\n return importCompanionDefaultExport<BackendCompanionExports>(resolvedTarget.entryPath, `Service \"${resolvedTarget.serviceKey}\"`);\n}\n\nexport async function loadSharedLibraryCompanionExports(\n companionContext: CompanionContext,\n libraryId: string = \"shared\",\n): Promise<SharedLibraryCompanionExports> {\n const resolvedLibrary = companionContext.resolvedLibraries[libraryId];\n if (!resolvedLibrary) {\n throw new Error(`Library \"${libraryId}\" is not declared in wildo.saas.config.ts.`);\n }\n\n return importCompanionDefaultExport<SharedLibraryCompanionExports>(resolvedLibrary.entryPath, `Library \"${libraryId}\"`);\n}\n\nexport async function loadLibraryRootModuleExports(companionContext: CompanionContext, libraryId: string = \"shared\"): Promise<Record<string, unknown>> {\n const resolvedLibrary = companionContext.resolvedLibraries[libraryId];\n if (!resolvedLibrary) {\n throw new Error(`Library \"${libraryId}\" is not declared in wildo.saas.config.ts.`);\n }\n\n return importCompanionModule(resolvePackageRootEntryPath(resolvedLibrary.packageRoot));\n}\n\n/**\n * Load the application's **authored** specifications companion surface.\n *\n * This deliberately does NOT go through a raw dynamic import of the resolved\n * `./companion` entry. For the specifications package that subpath is reserved\n * for the PROJECTED composition entrypoint — a contract enforced elsewhere\n * against the continuity declaration's `expectedCompanionImportPath` — so in a\n * working tree it never exists and resolution legitimately falls back to\n * authored TypeScript source, which plain Node cannot execute.\n *\n * Loading through `loadPackageCompanionExport` (jiti) is what makes that\n * authored fallback usable. The package addresses its own modules through a\n * compiler path alias, so the aliases the package declares in its own\n * `tsconfig.json` are normalized and supplied to the loader; without them the\n * authored source cannot resolve its own internal specifiers.\n *\n * **WHICH entry is resolved depends on an INFERRED option, and asking without it\n * gives the wrong answer** — worth stating because it cost this file a wrong\n * correction. `loadPackageCompanionExport` passes\n * `inferPackageCompanionModuleResolution(packageRoot)`, which answers\n * `framework-source` for a package inside the framework workspace and `package`\n * outside it. Measured on `examples/wonder-todos` (2026-09-18):\n * `framework-source` resolves `src/companion-exports.ts` (authored, jiti\n * evaluates it, so `freshModuleCache` genuinely re-reads it) while `package` —\n * and calling the resolver with NO options — answers\n * `dist/esm/companion-exports.js`, which Node's process-global ESM registry pins\n * for the process lifetime. Anything reasoning about this surface's freshness\n * must resolve the way the LOADER does, not the way the resolver defaults.\n *\n * **Authored, not accepted, is the correct surface here.** Consumers are i18n\n * label-key collection and cross-registry assertions, which must track what the\n * developer is currently writing. Reading the accepted projection instead would\n * make labels lag acceptance — a different concept that belongs to the durable\n * specification-family path, not this one.\n */\nexport async function loadSpecificationsCompanionExports(companionContext: CompanionContext): Promise<SpecificationsCompanionExports> {\n const packageRoot = companionContext.resolvedSpecifications?.packageRoot;\n // No specifications package: let the evaluator raise its own named error rather than duplicating it.\n if (packageRoot === undefined) return evaluateSpecificationsCompanionExports(companionContext);\n\n const signature = signEvaluatedCompanionTree(packageRoot);\n /*\n * A null signature means the tree could not be READ, which is never grounds to serve a cached\n * answer — an empty walk and an unchanged one are indistinguishable from their result\n * (`.claude/rules/negative-results-require-a-positive-probe.md`). It degrades to the uncached\n * behaviour that predates this cache, which is always correct and merely slow.\n */\n if (signature !== null) {\n const cached = specificationsCompanionExportsCache.get(packageRoot);\n if (cached?.signature === signature) return cached.exports;\n const inFlight = specificationsCompanionExportsInFlight.get(packageRoot);\n if (inFlight?.signature === signature) return inFlight.load;\n }\n\n const load = evaluateSpecificationsCompanionExports(companionContext);\n specificationsCompanionExportsInFlight.set(packageRoot, { signature, load });\n try {\n const companionExports = await load;\n // The signature is the one captured BEFORE the load, so an edit landing mid-load leaves the entry\n // stale-by-a-hair and the NEXT call re-signs, misses and reloads. That is exactly what an uncached\n // load already did: it too answers with the tree as it stood when it started.\n if (signature !== null) specificationsCompanionExportsCache.set(packageRoot, { signature, exports: companionExports });\n return companionExports;\n } finally {\n // A failed load caches nothing, so the next caller retries rather than inheriting the failure.\n if (specificationsCompanionExportsInFlight.get(packageRoot)?.load === load) {\n specificationsCompanionExportsInFlight.delete(packageRoot);\n }\n }\n}\n\n/** The last evaluated exports per specifications package root, valid while its tree signature holds. */\nconst specificationsCompanionExportsCache = new Map<string, { signature: string; exports: SpecificationsCompanionExports }>();\n\n/** Evaluations still running, so concurrent callers at the same signature share one of them. */\nconst specificationsCompanionExportsInFlight = new Map<string, { signature: string | null; load: Promise<SpecificationsCompanionExports> }>();\n\n/**\n * Every `moduleResolution` the companion entry resolver accepts.\n *\n * Total over the vocabulary rather than a list of the ones that matter today: a value added there must\n * widen what {@link signEvaluatedCompanionTree} covers, and a signature that silently stopped covering\n * a reachable tree would serve a stale evaluation with nothing reporting it.\n */\nconst COMPANION_MODULE_RESOLUTIONS = [\"framework-source\", \"package\"] as const satisfies readonly NonNullable<\n Parameters<typeof resolvePackageCompanionEntryPath>[2]\n>[\"moduleResolution\"][];\n\n/**\n * A cheap fingerprint of the module tree {@link loadSpecificationsCompanionExports} actually evaluates.\n *\n * **It signs every tree the resolver could land on, because this module cannot ask which one it DID.**\n * The deciding input is `inferPackageCompanionModuleResolution`, which `platform-config-lib` keeps\n * private — and the resolver's no-option default is NOT the loader's answer (see the JSDoc above; that\n * gap produced a wrong correction to this file before it produced a wrong signature). Resolving under\n * both declared values and signing the union is exact under either outcome, where naming one tree is\n * only exact under a guess. Its cost is that a rebuild of the tree NOT evaluated also invalidates —\n * one extra re-evaluation, never a stale answer, which is the direction this must err in.\n *\n * Why a signature instead of a TTL: `freshModuleCache: true` exists so a family landed while the\n * companion runs is visible without a restart (#170), and a TTL trades exactly that away for up to its\n * own length. A signature cannot — the tsc watcher writes the tree, the signature moves, the next call\n * misses and re-evaluates. What is bought is only the repeat of an evaluation of BYTES THAT DID NOT\n * CHANGE.\n *\n * Measured on `examples/wonder-todos` (444 files): ~2-5 ms to sign against ~1.2-2.9 s to re-evaluate, and\n * a creation-board refresh pays that evaluation twice — once for playbook eligibility, once for the build\n * plan — which is the bulk of the board's latency. The git probes behind the build plan cost ~0.15 s on\n * the same application and are not the bottleneck.\n *\n * Aggregates rather than hashes content: file count catches a deletion, newest mtime catches a write,\n * total bytes and the mtime sum catch a same-instant swap that preserves both, and the directories'\n * own mtimes catch a rename — see `signDerivedInputs`, which owns the technique. `dist` and `node_modules`\n * are skipped only when they sit BELOW the evaluated root, never when they are it.\n *\n * Returns `null` when the tree cannot be read or is empty. That is a refusal to authorize a cache hit,\n * not an answer.\n *\n * Exported for the creation-plane projection (#1310), whose cached boards sit ABOVE this evaluation:\n * they must drop when the tree this evaluates moves, so they sign exactly what this signs rather than\n * a second guess at which tree the loader lands on.\n */\nexport function signEvaluatedCompanionTree(packageRoot: string): string | null {\n const entryPaths: string[] = [];\n for (const moduleResolution of COMPANION_MODULE_RESOLUTIONS) {\n try {\n entryPaths.push(resolvePackageCompanionEntryPath(packageRoot, undefined, { moduleResolution }));\n } catch {\n // One value resolving and the other not is ordinary (a package with no build output yet). Only\n // NEITHER resolving means there is nothing to sign, which `signDerivedInputs` reports as null.\n }\n }\n entryPaths.sort();\n const evaluatedRoots = [...new Set(entryPaths.map((entryPath) => dirname(entryPath)))].sort();\n // The export map decides WHICH entry is evaluated, so a change to it must invalidate as surely as a\n // change to the modules behind it.\n return signDerivedInputs(evaluatedRoots, [join(packageRoot, \"package.json\")]);\n}\n\n/** Evaluates the specifications companion surface, with no caching — see {@link loadSpecificationsCompanionExports}. */\nasync function evaluateSpecificationsCompanionExports(companionContext: CompanionContext): Promise<SpecificationsCompanionExports> {\n const resolvedSpecifications = companionContext.resolvedSpecifications;\n if (!resolvedSpecifications) {\n throw new Error(\"No specifications package is declared in wildo.saas.config.ts.\");\n }\n\n const packageModuleAliases = normalizeCompilerPathAliasesForLoader(\n resolvedSpecifications.packageRoot,\n readPackageCompilerPathAliases(resolvedSpecifications.packageRoot),\n );\n\n // Application specifications are declarative control-plane input, but their\n // metadata can legitimately reach browser component modules. Static assets\n // carry no companion semantics; treating them as executable Node modules\n // would make an otherwise valid configured application unloadable solely\n // because a frontend library imports its stylesheet. Register the narrow\n // process-wide no-op hook before jiti evaluates the authored export graph.\n // The hook never handles JavaScript/TypeScript and remains inert for callers\n // that do not import a supported static asset.\n registerStaticAssetImportNoop();\n\n try {\n return await loadPackageCompanionExport<SpecificationsCompanionExports>(\n resolvedSpecifications.packageRoot,\n undefined,\n // freshModuleCache: this surface's CONTRACT is \"the working tree as the developer is writing\n // it\" (the JSDoc above), and jiti's process-global module cache broke exactly that: a family\n // landed (or a companion-exports slot wired) while the companion ran stayed invisible until\n // restart — J-1's stall B, one forced restart per landed family. Measured live 2026-08-27.\n { packageModuleAliases, freshModuleCache: true },\n );\n } catch (error) {\n /*\n * `freshModuleCache` covers the modules JITI evaluates — this package's own authored source. It\n * does NOT cover the application's compiled WORKSPACE PACKAGES: a bare specifier like\n * `@my-app/shared-lib` resolves into `node_modules` and is imported by NODE, whose ESM registry is\n * process-global and cannot be invalidated. So a symbol added to an application package while the\n * companion is running stays `undefined` in this process until it restarts.\n *\n * The symptom gives no hint of that. Measured 2026-09-16: a coding run added a `Deals_Operations`\n * enum to the application's shared-lib at 21:30 and every playbook run afterwards failed with\n * `Cannot read properties of undefined (reading 'ASSIGN_OWNER')` — which reads as a defect in the\n * freshly authored specification, and is not. Plain `node -e \"import('@my-app/shared-lib')\"` in the\n * same tree printed the enum correctly, because a fresh process has a fresh registry.\n *\n * So the loader names the condition rather than leaving the next reader to re-derive it. It does\n * not decide that this IS the cause — it cannot — it says what the cause usually is and what\n * clears it.\n */\n throw describeSpecificationsLoadFailure(error);\n }\n}\n\n/**\n * Add the pinned-registry hint to a specifications-load failure that looks like one, and leave every\n * other failure untouched.\n *\n * Exported so it can be pinned: the VALUE here is entirely in which failures get the hint. Attaching it\n * to a malformed build plan or a throwing module would send the next reader somewhere wrong, and that\n * is the half a test can hold.\n */\nexport function describeSpecificationsLoadFailure(error: unknown): unknown {\n const described = describeCaughtError(error);\n /*\n * `.*` with no space before `of`: the real message is \"Cannot read properties of undefined (reading\n * 'X')\", so a pattern requiring a segment between them matches NOTHING — which is what the first\n * draft did, and the pin below is what caught it before it shipped as a hint that never fires.\n */\n if (!/Cannot read propert(?:y|ies).*of undefined/u.test(described)) return error;\n /*\n * The AUTHORED frame — the first stack frame inside the application's specification source — is the one\n * fact that separates the two readings below, and the raw error buries it under a dozen loader frames.\n * Named here so the reader opens the right file first instead of restarting first.\n */\n const stack = error instanceof Error ? (error.stack ?? '') : '';\n const authoredFrame = stack.split('\\n').map((line) => line.trim()).find((line) => /specifications\\/src\\//u.test(line));\n const site = authoredFrame ? ` The first authored frame is: ${authoredFrame.replace(/^at\\s+/u, '')}.` : '';\n return new Error(\n `${described} — two readings, and a companion restart tells them apart.${site} `\n + '(1) A symbol was added to one of the application\\'s own packages while this companion process was '\n + 'running: authored specification SOURCE is re-read on every load, but the application\\'s compiled '\n + \"packages are pinned in Node's process-global ESM registry, so a new export stays undefined until the \"\n + 'companion restarts. (2) The failing file imports the symbol from a door that does not publish it — '\n + 'typically a subpath-only export of `@wildo-ai/saas-specifications` named at the package ROOT, which '\n + 'is undefined in a fresh process too, so a restart changes nothing (measured 2026-09-21: a landed '\n + 'risk register importing `ApplicationRiskRegisterSchema` from the root instead of `/assurance` failed '\n + 'this way across two restarts). If it survives a restart, fix the import at the frame named above.',\n { cause: error },\n );\n}\n\n\n/** Extensions a plain-Node dynamic import cannot execute. */\nconst NON_EXECUTABLE_COMPANION_ENTRY_EXTENSIONS = Object.freeze([\".ts\", \".tsx\", \".mts\", \".cts\"]);\n\n/**\n * Import one resolved companion entry.\n *\n * The companion runs as compiled JavaScript under plain Node with only an\n * asset-noop loader registered — it has no TypeScript loader. `resolvePackageCompanionEntryPath`\n * may legitimately hand back authored source: that fallback is load-bearing for\n * `loadPackageCompanionExport`, which resolves through jiti and CAN execute\n * TypeScript. Here it cannot.\n *\n * Rejecting a source entry explicitly turns a package misconfiguration into a\n * precise, actionable error. Letting it through instead produced a bare\n * `ERR_UNKNOWN_FILE_EXTENSION` from deep inside the module loader, which — because\n * several call sites are deliberately best-effort — was swallowed into a warning\n * that named neither the package nor the dangling export. That is how a\n * permanently-dangling `./companion` target stayed invisible until the companion\n * happened to survive continuity recovery for the first time.\n */\nasync function importCompanionModule(entryPath: string): Promise<Record<string, unknown>> {\n const nonExecutableExtension = NON_EXECUTABLE_COMPANION_ENTRY_EXTENSIONS.find((extension) => entryPath.endsWith(extension));\n if (nonExecutableExtension) {\n throw new Error(\n `Companion entry \"${entryPath}\" is TypeScript source, which this runtime cannot execute. `\n + \"The package's declared companion export is missing or unbuilt, so resolution fell back to authored source. \"\n + \"Build the package, or correct its package.json exports to point at a built entry.\",\n );\n }\n return import(pathToFileURL(entryPath).href) as Promise<Record<string, unknown>>;\n}\n\nasync function importCompanionDefaultExport<T extends object>(entryPath: string, exportOwnerLabel: string): Promise<T> {\n const moduleExports = await importCompanionModule(entryPath);\n const defaultExport = moduleExports.default;\n\n if (!defaultExport || typeof defaultExport !== \"object\") {\n throw new Error(`${exportOwnerLabel} companion export must default-export one typed object surface.`);\n }\n\n return defaultExport as T;\n}\n\nfunction resolvePackageRootEntryPath(packageRoot: string): string {\n const sourceCandidates = [\n join(packageRoot, \"src\", \"index.ts\"),\n join(packageRoot, \"src\", \"index.tsx\"),\n join(packageRoot, \"src\", \"index.js\"),\n join(packageRoot, \"src\", \"index.mjs\"),\n ];\n\n for (const candidate of sourceCandidates) {\n if (existsSync(candidate)) {\n return candidate;\n }\n }\n\n const packageJsonPath = join(packageRoot, \"package.json\");\n if (!existsSync(packageJsonPath)) {\n throw new Error(`Missing package.json for package root \"${packageRoot}\".`);\n }\n\n const packageJson = JSON.parse(readFileSync(packageJsonPath, \"utf-8\")) as {\n exports?: Record<string, string | { import?: string; default?: string }>;\n main?: string;\n module?: string;\n };\n const rootExport = packageJson.exports?.[\".\"];\n\n if (typeof rootExport === \"string\") {\n const rootExportPath = resolve(packageRoot, rootExport);\n if (existsSync(rootExportPath)) {\n return rootExportPath;\n }\n }\n\n if (rootExport && typeof rootExport === \"object\") {\n const declaredEntryPath = rootExport.import ?? rootExport.default;\n if (typeof declaredEntryPath === \"string\") {\n const rootExportPath = resolve(packageRoot, declaredEntryPath);\n if (existsSync(rootExportPath)) {\n return rootExportPath;\n }\n }\n }\n\n for (const declaredEntryPath of [packageJson.module, packageJson.main]) {\n if (!declaredEntryPath) {\n continue;\n }\n\n const resolvedEntryPath = resolve(packageRoot, declaredEntryPath);\n if (existsSync(resolvedEntryPath)) {\n return resolvedEntryPath;\n }\n }\n\n throw new Error(`Could not resolve root entry for package \"${packageRoot}\".`);\n}\n\n/**\n * The module aliases the specifications package declares for ITSELF, read from its `tsconfig.json`.\n *\n * These used to come from an app-authored continuity declaration (`specifications/src/continuity.ts` →\n * `composition.compilerPathAliases`), which was one more place an application had to restate something it\n * had already said. The compiler config is where a package declares how its own specifiers resolve, it is\n * a committed file, and two branches can carry different versions of it and merge — so it is the source\n * this loader should have been reading all along (`.claude/rules/one-source-of-truth.md`, Rule 0).\n *\n * Scope, stated rather than discovered later: only the package's OWN `compilerOptions.paths` is read. An\n * alias inherited through `extends` is not followed, because resolving that chain here would mean\n * reimplementing a slice of tsc for a case no application has. A missing file or a missing `paths` block\n * means no aliases — the honest answer, not a fallback. Malformed JSON throws: a package whose compiler\n * config cannot be parsed cannot have its authored exports loaded correctly either.\n */\nfunction readPackageCompilerPathAliases(packageRoot: string): Readonly<Record<string, readonly string[]>> {\n const tsconfigPath = join(packageRoot, \"tsconfig.json\");\n if (!existsSync(tsconfigPath)) return {};\n let parsed: unknown;\n try {\n parsed = JSON.parse(readFileSync(tsconfigPath, \"utf8\"));\n } catch (error) {\n throw new Error(`Specifications package tsconfig.json is not parseable JSON: ${tsconfigPath}`, { cause: error });\n }\n const paths = (parsed as { compilerOptions?: { paths?: unknown } } | null)?.compilerOptions?.paths;\n if (paths === null || paths === undefined || typeof paths !== \"object\") return {};\n const aliases: Record<string, readonly string[]> = {};\n for (const [alias, targets] of Object.entries(paths as Record<string, unknown>)) {\n if (Array.isArray(targets) && targets.every((target): target is string => typeof target === \"string\")) {\n aliases[alias] = targets;\n }\n }\n return aliases;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"draft-family-values.companion.d.ts","sourceRoot":"","sources":["../../../../src/core/context/draft-family-values.companion.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,qBAAqB,CAAC,yBAAyB,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAkBxH"}
1
+ {"version":3,"file":"draft-family-values.companion.d.ts","sourceRoot":"","sources":["../../../../../src/core/context/draft-family-values.companion.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,qBAAqB,CAAC,yBAAyB,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAkBxH"}
@@ -1 +1 @@
1
- {"version":3,"file":"draft-family-values.companion.js","sourceRoot":"","sources":["../../../../src/core/context/draft-family-values.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AAErF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,yBAA6C;IACvF,MAAM,MAAM,GAAG,IAAI,GAAG,EAAmB,CAAC;IAC1C,IAAI,CAAC,yBAAyB;QAAE,OAAO,MAAM,CAAC;IAC9C,KAAK,MAAM,OAAO,IAAI,2BAA2B,EAAE,EAAE,CAAC;QACpD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,yBAAyB,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;YAAE,SAAS;QACxF,IAAI,CAAC;YACH,MAAM,aAAa,GAAG,MAAM,0BAA0B,CAA0B,yBAAyB,EAAE,OAAO,CAAC,OAAO,EAAE;gBAC1H,gBAAgB,EAAE,IAAI;aACvB,CAAC,CAAC;YACH,sFAAsF;YACtF,uFAAuF;YACvF,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC;YAC3G,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;gBAAE,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACjE,CAAC;QAAC,MAAM,CAAC;YACP,uDAAuD;QACzD,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import { existsSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { loadPackageCompanionExport } from '@wildo-ai/platform-config-lib';\nimport { readableDraftFamilyLandings } from '@wildo-ai/application-creation-runtime';\n\n/**\n * The landed value of every DRAFT family in a specifications package (#1426).\n *\n * A draft family has no companion-exports slot on purpose: it is committed, but it is not accepted\n * application truth, so eligibility keeps failing closed for it and the export wiring never gives it a\n * constant. That left two readers each needing its value, and one of them unable to get it:\n *\n * - the playbook lane's coherence report, which read drafts through its own loop;\n * - the decided-element index behind `family-aspects` and `specification-elements`, which read the\n * companion exports only, so the governed-document candidate set — 39KB on each dogfood application —\n * returned zero rows.\n *\n * Both now load through here, over the population `readableDraftFamilyLandings` derives, so they cannot\n * disagree about which families are drafts. The values are handed to the index as DRAFTS, and every\n * element read from them says so.\n *\n * `freshModuleCache` is required, and its absence was #170: jiti's module cache is process-global, so in\n * the long-lived companion a draft imported once would stay frozen for the process lifetime.\n *\n * Best-effort: an unreadable or half-written draft costs nobody their run, it is simply absent.\n */\nexport async function loadDraftFamilyValues(specificationsPackageRoot: string | undefined): Promise<Map<string, unknown>> {\n const drafts = new Map<string, unknown>();\n if (!specificationsPackageRoot) return drafts;\n for (const landing of readableDraftFamilyLandings()) {\n if (!existsSync(join(specificationsPackageRoot, landing.packageRelativePath))) continue;\n try {\n const moduleExports = await loadPackageCompanionExport<Record<string, unknown>>(specificationsPackageRoot, landing.subpath, {\n freshModuleCache: true,\n });\n // A landed family module exports exactly one constant, named by the landing profile's\n // `constantSuffix`. Taking the sole export keeps this from restating that naming rule.\n const values = Object.values(moduleExports ?? {}).filter((value) => value !== undefined && value !== null);\n if (values.length === 1) drafts.set(landing.family, values[0]);\n } catch {\n // Deliberately silent: see the best-effort note above.\n }\n }\n return drafts;\n}\n"]}
1
+ {"version":3,"file":"draft-family-values.companion.js","sourceRoot":"","sources":["../../../../../src/core/context/draft-family-values.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AAErF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,yBAA6C;IACvF,MAAM,MAAM,GAAG,IAAI,GAAG,EAAmB,CAAC;IAC1C,IAAI,CAAC,yBAAyB;QAAE,OAAO,MAAM,CAAC;IAC9C,KAAK,MAAM,OAAO,IAAI,2BAA2B,EAAE,EAAE,CAAC;QACpD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,yBAAyB,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;YAAE,SAAS;QACxF,IAAI,CAAC;YACH,MAAM,aAAa,GAAG,MAAM,0BAA0B,CAA0B,yBAAyB,EAAE,OAAO,CAAC,OAAO,EAAE;gBAC1H,gBAAgB,EAAE,IAAI;aACvB,CAAC,CAAC;YACH,sFAAsF;YACtF,uFAAuF;YACvF,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC;YAC3G,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;gBAAE,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACjE,CAAC;QAAC,MAAM,CAAC;YACP,uDAAuD;QACzD,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import { existsSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { loadPackageCompanionExport } from '@wildo-ai/platform-config-lib';\nimport { readableDraftFamilyLandings } from '@wildo-ai/application-creation-runtime';\n\n/**\n * The landed value of every DRAFT family in a specifications package (#1426).\n *\n * A draft family has no companion-exports slot on purpose: it is committed, but it is not accepted\n * application truth, so eligibility keeps failing closed for it and the export wiring never gives it a\n * constant. That left two readers each needing its value, and one of them unable to get it:\n *\n * - the playbook lane's coherence report, which read drafts through its own loop;\n * - the decided-element index behind `family-aspects` and `specification-elements`, which read the\n * companion exports only, so the governed-document candidate set — 39KB on each dogfood application —\n * returned zero rows.\n *\n * Both now load through here, over the population `readableDraftFamilyLandings` derives, so they cannot\n * disagree about which families are drafts. The values are handed to the index as DRAFTS, and every\n * element read from them says so.\n *\n * `freshModuleCache` is required, and its absence was #170: jiti's module cache is process-global, so in\n * the long-lived companion a draft imported once would stay frozen for the process lifetime.\n *\n * Best-effort: an unreadable or half-written draft costs nobody their run, it is simply absent.\n */\nexport async function loadDraftFamilyValues(specificationsPackageRoot: string | undefined): Promise<Map<string, unknown>> {\n const drafts = new Map<string, unknown>();\n if (!specificationsPackageRoot) return drafts;\n for (const landing of readableDraftFamilyLandings()) {\n if (!existsSync(join(specificationsPackageRoot, landing.packageRelativePath))) continue;\n try {\n const moduleExports = await loadPackageCompanionExport<Record<string, unknown>>(specificationsPackageRoot, landing.subpath, {\n freshModuleCache: true,\n });\n // A landed family module exports exactly one constant, named by the landing profile's\n // `constantSuffix`. Taking the sole export keeps this from restating that naming rule.\n const values = Object.values(moduleExports ?? {}).filter((value) => value !== undefined && value !== null);\n if (values.length === 1) drafts.set(landing.family, values[0]);\n } catch {\n // Deliberately silent: see the best-effort note above.\n }\n }\n return drafts;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../../../src/core/inject/models/container.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAShE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AA4D5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAE9F,OAAO,EAAE,gCAAgC,EAAE,MAAM,4DAA4D,CAAC;AAyB9G,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqB;gBAEnC,SAAS,CAAC,EAAE,kBAAkB,EAAE,gBAAgB,CAAC,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAAE,sBAAsB;IAKvH,OAAO,CAAC,YAAY;IAkLb,YAAY,IAAI,kBAAkB;CAG1C;AAED,wBAAgB,uBAAuB,CACrC,QAAQ,CAAC,EAAE,kBAAkB,EAC7B,gBAAgB,CAAC,EAAE,gBAAgB,EACnC,aAAa,CAAC,EAAE,sBAAsB,GACrC,kBAAkB,CAMpB;AAED,wBAAgB,qBAAqB,IAAI,kBAAkB,CAG1D;AAED,wBAAgB,uBAAuB,IAAI,IAAI,CAE9C"}
1
+ {"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../../../../src/core/inject/models/container.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAShE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AA4D5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAE9F,OAAO,EAAE,gCAAgC,EAAE,MAAM,4DAA4D,CAAC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AS,CAAC;IACxB,CAAC;CACF;AAED,MAAM,UAAU,uBAAuB,CACrC,QAA6B,EAC7B,gBAAmC,EACnC,aAAsC;IAEtC,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,MAAM,kBAAkB,GAAG,IAAI,kBAAkB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,aAAa,CAAC,CAAC;QAC7F,eAAe,GAAG,kBAAkB,CAAC,YAAY,EAAE,CAAC;IACtD,CAAC;IACD,OAAO,eAAe,CAAC;AACzB,CAAC;AAED,MAAM,UAAU,qBAAqB;IACnC,IAAI,CAAC,eAAe;QAAE,OAAO,uBAAuB,EAAE,CAAC;IACvD,OAAO,eAAe,CAAC;AACzB,CAAC;AAED,MAAM,UAAU,uBAAuB;IACrC,eAAe,GAAG,IAAI,CAAC;AACzB,CAAC","sourcesContent":["import { randomUUID } from \"node:crypto\";\n\nimport { InversifyContainer } from \"@wildo-ai/saas-backend-lib\";\nimport { SAAS_SERVICE_TYPES } from \"@wildo-ai/saas-backend-lib\";\nimport { CompositeAgentCallTraceSink } from \"@wildo-ai/saas-backend-lib\";\nimport type { AgentCallTraceSink } from \"@wildo-ai/saas-models\";\nimport type { AgentTraceabilityLevel, AgentTraceabilityPolicy } from \"@wildo-ai/saas-models\";\nimport { maxAgentTraceabilityLevel } from \"@wildo-ai/saas-models\";\nimport { setupPlatformSharedInjection } from \"@wildo-ai/platform-shared-lib\";\n\nimport { COMPANION_SERVICE_TYPES } from \"./service-types\";\nimport type { CompanionContext } from \"../../context/companion-context\";\nimport type { CompanionRuntimeConfig } from \"../../runtime/models/companion-runtime.models\";\nimport { CompanionTraceabilityLevel } from \"../../traceability/companion-traceability.models\";\n\n// Local services\nimport { CompanionController } from \"../../../companion-api/controllers/companion.controller\";\nimport { StartCompanionApplicationService } from \"../../runtime/services/start-companion-application.service\";\nimport { EmailTemplateCompanionService } from \"../../../email/services/email-template.companion.service\";\nimport { EmailSpecContextLoaderCompanionService } from \"../../../email/services/email-spec-context-loader.companion.service\";\nimport { MarketGenerationCompanionService } from \"../../../market/services/market-generation.companion.service\";\nimport { LogoGenerationCompanionService } from \"../../../brand/services/logo-generation.companion.service\";\nimport { LogoDeliberationCompanionService } from \"../../../brand/services/logo-deliberation.companion.service\";\nimport { BrandAcceptCompanionService } from \"../../../brand/services/brand-accept.companion.service\";\nimport { ExpertPersonaCompanionService } from \"../../../expert-personas/services/expert-persona.companion.service\";\nimport { DeliberationCompanionService } from \"../../../deliberations/services/deliberation.companion.service\";\nimport { StructuredDeliberationCompanionService } from \"../../../deliberations/services/structured-deliberation.companion.service\";\nimport { GitChangeSetCompanionService } from \"../../../claude-cli/services/git-change-set.companion.service\";\nimport { CodingAgentDispatchCompanionService } from \"../../../claude-cli/services/coding-agent-dispatch.companion.service\";\nimport { ResearchAgentDispatchCompanionService } from \"../../../claude-cli/services/research-agent-dispatch.companion.service\";\nimport { PlaybookSpendMeterCompanionService, installPlaybookSpendMeter } from \"../../../meta-workflows/services/playbook-spend-meter.companion.service\";\nimport { CompanionAuthFloorCompanionService } from \"../../auth/companion-auth-floor.companion.service\";\nimport { TechnicalDocCompanionService } from \"../../../technical-doc/services/technical-doc.companion.service\";\nimport { TechnicalDocumentationApplicationDerivationCompanionService } from \"../../../technical-doc/services/technical-documentation-application-derivation.companion.service\";\nimport {\n SystemTechnicalDocumentationEnvironmentClock,\n TechnicalDocumentationEnvironmentIdentityCompanionService,\n} from \"../../../technical-doc/services/technical-documentation-environment-identity.companion.service\";\nimport { CompanionIntrospectionBehaviorRegistryService } from \"../../introspection/services/companion-introspection-behavior-registry.companion.service\";\nimport { CompanionIntrospectionService } from \"../../introspection/services/companion-introspection.companion.service\";\nimport { IntrospectionDerivationStateCompanionService } from \"../../introspection/services/introspection-derivation-state.companion.service\";\nimport { IntrospectionSourceWatcherCompanionService } from \"../../introspection/services/introspection-source-watcher.companion.service\";\nimport { IntrospectionResourceNotifierCompanionService } from \"../../introspection/resources/introspection-resource-notifier.companion.service\";\nimport { IntrospectionResourceSourceCompanionService } from \"../../introspection/resources/introspection-resource-source.companion.service\";\nimport { CreationPlaneProjectionCompanionService } from \"../../introspection/resources/creation-plane-projection.companion.service\";\nimport { TranslationPlacementCompanionService } from \"../../introspection/services/translation-placement.companion.service\";\nimport { CompanionExecutionsCompanionService } from \"../../../executions/services/companion-executions.companion.service\";\nimport { CompanionActorExecutionPersistenceAdapter } from \"../../../executions/services/companion-actor-execution-persistence.adapter\";\nimport { CompanionTraceabilityService } from \"../../traceability/companion-traceability.service\";\nimport { CompanionAgentCallTraceSink, AGENT_TRACE_LEVEL_BY_COMPANION_LEVEL } from \"../../traceability/companion-agent-call-trace-sink.companion.service\";\nimport { WildoSaasLockCompanionService } from \"../../lock/wildo-saas-lock.companion.service\";\nimport { LabellingPlannerCompanionService } from \"../../../i18n-labelling/services/labelling-planner.companion.service\";\nimport { LabellingSpecContextLoaderCompanionService } from \"../../../i18n-labelling/services/labelling-spec-context-loader.companion.service\";\nimport { LabellizeOrchestratorCompanionService } from \"../../../i18n-labelling/services/labellize-orchestrator.companion.service\";\nimport { TranslateOrchestratorCompanionService } from \"../../../i18n-labelling/services/translate-orchestrator.companion.service\";\nimport { EmailTemplateLabellingUnitsCompanionService } from \"../../../i18n-labelling/services/email-template-labelling-units.companion.service\";\nimport { ComponentLabelsBootstrapCompanionService } from \"../../../i18n-labelling/services/component-labels-bootstrap.companion.service\";\n\nimport { PlaybookRunCompanionService } from \"../../../meta-workflows/services/playbook-run.companion.service\";\nimport { FoundationExecutorCompanionService } from \"../../../meta-workflows/services/foundation-executor.companion.service\";\nimport { CapabilityCompositionExecutorCompanionService } from \"../../../meta-workflows/services/capability-composition-executor.companion.service\";\nimport { ApplicationMaturityExecutorCompanionService } from \"../../../meta-workflows/services/application-maturity-executor.companion.service\";\nimport { ApplicationBuildDispatchCompanionService } from \"../../../meta-workflows/services/application-build-dispatch.companion.service\";\nimport { ApplicationBuildGenerationStepCompanionService } from \"../../../meta-workflows/services/application-build-generation-step.companion.service\";\nimport { PlaybookRunWriteRegisterCompanionService } from \"../../../meta-workflows/services/playbook-run-write-register.companion.service\";\nimport { ExecutionTraceReadCompanionService } from \"../../../meta-workflows/services/execution-trace-read.companion.service\";\nimport { DossierCompanionService } from \"../../../meta-workflows/services/dossier.companion.service\";\nimport { PlaybookInstanceCompanionService } from \"../../../meta-workflows/services/playbook-instance.companion.service\";\nimport { BuildPlanAuthoringCompanionService } from \"../../../meta-workflows/services/build-plan-authoring.companion.service\";\nimport { CodingRunWriteRegisterCompanionService } from \"../../../claude-cli/services/coding-run-write-register.companion.service\";\nimport { AcceptedChangeCommitCompanionService } from \"../../../claude-cli/services/accepted-change-commit.companion.service\";\n\nexport { CompanionController } from \"../../../companion-api/controllers/companion.controller\";\n\nexport { StartCompanionApplicationService } from \"../../runtime/services/start-companion-application.service\";\n\nlet globalContainer: InversifyContainer | null = null;\n\n/**\n * Process-safety ceilings for the local application reconciliation adapter.\n *\n * They are deliberately not semantic retry policy: retry count/backoff and\n * lease duration come from the resolved Work Cycle. Reaching either ceiling\n * fails readiness instead of publishing with hidden reconciliation debt.\n */\n/**\n * How many outboxes the STARTUP drain will attempt before giving up and letting boot continue.\n *\n * This is a COUNT bound and it does not bound duration -- reconciling one outbox left mid-flight by an\n * interrupted run was measured taking >90s on its own (2026-08-20), so lowering the count did not stop the\n * TASK_OUTBOX stage blowing its 300,000ms ceiling. The duration bound lives in\n * `reconcileOutstandingAtStartup`, which gives startup a fixed time slice and continues regardless.\n *\n * The count therefore stays generous enough for the EXECUTION-time drain, which shares this limit and\n * throws when work is still claimable after it. Lowering it to 1 broke exactly that path.\n */\nconst TASK_TERMINALIZATION_STARTUP_DRAIN_LIMIT = 64;\nconst TASK_AGGREGATE_CAS_ATTEMPT_LIMIT = 8;\n\nexport class CompanionContainer {\n private readonly container: InversifyContainer;\n\n constructor(container?: InversifyContainer, companionContext?: CompanionContext, runtimeConfig?: CompanionRuntimeConfig) {\n this.container = container ?? new InversifyContainer({ defaultScope: \"Singleton\" });\n this.bindServices(companionContext, runtimeConfig);\n }\n\n private bindServices(companionContext?: CompanionContext, runtimeConfig?: CompanionRuntimeConfig): void {\n setupPlatformSharedInjection(this.container);\n\n if (companionContext) {\n this.container.bind<CompanionContext>(COMPANION_SERVICE_TYPES.CompanionContext).toConstantValue(companionContext);\n }\n\n this.container\n .bind<CompanionRuntimeConfig>(COMPANION_SERVICE_TYPES.CompanionRuntimeConfig)\n .toConstantValue(runtimeConfig ?? { traceabilityLevel: CompanionTraceabilityLevel.NONE });\n\n // Controller (bind by symbol and by class for flexible retrieval)\n this.container.bind(COMPANION_SERVICE_TYPES.CompanionController).to(CompanionController).inSingletonScope();\n this.container.bind(CompanionController).to(CompanionController).inSingletonScope();\n\n // Start service (bind by class for retrieval)\n this.container.bind(StartCompanionApplicationService).to(StartCompanionApplicationService).inSingletonScope();\n\n // Shared companion lock file (wildo-saas.lock.json)\n this.container.bind(COMPANION_SERVICE_TYPES.WildoSaasLockService).to(WildoSaasLockCompanionService).inSingletonScope();\n\n // i18n Labelling pipeline\n this.container.bind(COMPANION_SERVICE_TYPES.LabellingSpecContextLoader).to(LabellingSpecContextLoaderCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.LabellingPlannerService).to(LabellingPlannerCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.LabellizeOrchestratorService).to(LabellizeOrchestratorCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.TranslateOrchestratorService).to(TranslateOrchestratorCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.EmailTemplateLabellingUnitsService).to(EmailTemplateLabellingUnitsCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.ComponentLabelsBootstrapService).to(ComponentLabelsBootstrapCompanionService).inSingletonScope();\n\n // Email template service\n this.container.bind(COMPANION_SERVICE_TYPES.EmailSpecContextLoader).to(EmailSpecContextLoaderCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.EmailTemplateService).to(EmailTemplateCompanionService).inSingletonScope();\n\n // Market generation service (Phase 4.2)\n this.container.bind(COMPANION_SERVICE_TYPES.MarketGenerationService).to(MarketGenerationCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.PlaybookRunService).to(PlaybookRunCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.FoundationExecutorService).to(FoundationExecutorCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.CapabilityCompositionExecutorService).to(CapabilityCompositionExecutorCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.ApplicationMaturityExecutorService).to(ApplicationMaturityExecutorCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.ApplicationBuildDispatchService).to(ApplicationBuildDispatchCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.BuildGenerationStepService).to(ApplicationBuildGenerationStepCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.PlaybookRunWriteRegisterService).to(PlaybookRunWriteRegisterCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.ExecutionTraceReadService).to(ExecutionTraceReadCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.DossierService).to(DossierCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.PlaybookInstanceService).to(PlaybookInstanceCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.BuildPlanAuthoringService).to(BuildPlanAuthoringCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.CodingRunWriteRegisterService).to(CodingRunWriteRegisterCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.AcceptedChangeCommitService).to(AcceptedChangeCommitCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.LogoGenerationService).to(LogoGenerationCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.LogoDeliberationService).to(LogoDeliberationCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.BrandAcceptService).to(BrandAcceptCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.ExpertPersonaService).to(ExpertPersonaCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.DeliberationService).to(DeliberationCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.StructuredDeliberationService).to(StructuredDeliberationCompanionService).inSingletonScope();\n\n // Claude-CLI direct invocation (lower-level than the agents path).\n // Reads the `kind: 'cli-runtime'` runtime contract from the\n // backend provider registry and spawns `claude` via\n // `anthropic` in `wildo.saas.config.ts` is what makes the\n // contract reachable from this process.\n\n // Coding-agent dispatch lane (meta-workflows Step 4 / L2): read-only\n // git change-set capture (DD-8 carve-out), async dispatch runs, and\n // the P-29 auth floor (loopback assertion + companion.token).\n this.container.bind(COMPANION_SERVICE_TYPES.GitChangeSetService).to(GitChangeSetCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.CodingAgentDispatchService).to(CodingAgentDispatchCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.ResearchAgentDispatchService).to(ResearchAgentDispatchCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.AuthFloorService).to(CompanionAuthFloorCompanionService).inSingletonScope();\n\n // Workbench construction is effect-free. The dynamic factory creates only\n // in-memory adapters; accepted embedding reads and application-local\n // activation begin later in StartCompanionApplicationService.\n\n // New-contract registry and read-only candidate projection. Executable\n // bindings remain inert until an internal application-creation service\n // supplies exact continuity and artifact inputs.\n\n // Bind the physical executions service once, then expose that same\n // singleton through the internal physical Task port. Public companion Task\n // CRUD and continuity CAS therefore share one repository/ownership view\n // without widening the public DTO's authority.\n if (!this.container.isBound(COMPANION_SERVICE_TYPES.ExecutionsService)) {\n this.container.bind(COMPANION_SERVICE_TYPES.ExecutionsService).to(CompanionExecutionsCompanionService).inSingletonScope();\n }\n /*\n * The ENGINE's actor-plane persistence port, bound to the platform rows (#1358). The engine's\n * `ActorsSystemBackendService` drives an execution's lifecycle and asks this port to write it; a\n * host that binds nothing gets a runtime that refuses to open an execution. Same shape as\n * `SAAS_SERVICE_TYPES.IntrospectionResourceSource` below: a companion supplying an engine seam.\n */\n if (!this.container.isBound(SAAS_SERVICE_TYPES.ActorExecutionPersistencePort)) {\n this.container.bind(SAAS_SERVICE_TYPES.ActorExecutionPersistencePort).to(CompanionActorExecutionPersistenceAdapter).inSingletonScope();\n }\n\n // Any participant not owned by the subject runtime or a concrete\n // family/Task adapter binds to one throwing service. The container remains\n // resolvable for health diagnostics while semantic startup fails closed.\n \n\n // Technical documentation orchestrator (saas-technical-doc.md Step 3)\n this.container.bind(COMPANION_SERVICE_TYPES.TechnicalDocumentationEnvironmentClock).to(SystemTechnicalDocumentationEnvironmentClock).inSingletonScope();\n this.container\n .bind(COMPANION_SERVICE_TYPES.TechnicalDocumentationEnvironmentIdentityService)\n .to(TechnicalDocumentationEnvironmentIdentityCompanionService)\n .inSingletonScope();\n this.container\n .bind(COMPANION_SERVICE_TYPES.TechnicalDocumentationApplicationDerivationService)\n .to(TechnicalDocumentationApplicationDerivationCompanionService)\n .inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.TechnicalDocService).to(TechnicalDocCompanionService).inSingletonScope();\n\n // Companion introspection\n this.container.bind(COMPANION_SERVICE_TYPES.IntrospectionBehaviorRegistryService).to(CompanionIntrospectionBehaviorRegistryService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.IntrospectionDerivationStateService)\n .to(IntrospectionDerivationStateCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.IntrospectionSourceWatcherService)\n .to(IntrospectionSourceWatcherCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.IntrospectionResourceNotifierService)\n .to(IntrospectionResourceNotifierCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.IntrospectionService).to(CompanionIntrospectionService).inSingletonScope();\n /*\n * Bound under the ENGINE's token, not a companion one.\n *\n * `PersistenceAdapter.INTROSPECTION`'s repository resolves this port lazily from the container\n * (`SAAS_SERVICE_TYPES.IntrospectionResourceSource`) and refuses cleanly when nothing is bound —\n * which is the normal state for any application running without a companion. Binding it here is\n * what makes introspected resources readable at all, and it is the same shape\n * `platform-apps-manager` uses to supply `SAAS_SERVICE_TYPES.StorageCredentialResolver`.\n */\n this.container.bind(COMPANION_SERVICE_TYPES.CreationPlaneProjectionService).to(CreationPlaneProjectionCompanionService).inSingletonScope();\n this.container.bind(SAAS_SERVICE_TYPES.IntrospectionResourceSource).to(IntrospectionResourceSourceCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.TranslationPlacementService).to(TranslationPlacementCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.TraceabilityService).to(CompanionTraceabilityService).inSingletonScope();\n // Engine agent-call traceability: bind the companion filesystem sink + a\n // policy bridged from the companion's level onto the engine SAAS symbols\n // that `AgentsBackendService` `@optional()`-injects. This is what makes\n // every `invokeAgent` call (companion services, market generation, future\n // backend/minion/worker callers) emit into the companion's session/step tree.\n // The companion always adds its filesystem sink (dev artifacts), composed ON\n // TOP of whatever the engine container bound for `AgentCallTraceSink`: when a\n // PostHog LLM-observability provider is configured the engine binds it (and\n // owns its lazy client + flush), so the companion just fans out\n // \"filesystem + <engine sink>\" with no re-construction. A NoOp engine sink\n // collapses to filesystem-only. Switchable: swapping the LLM-obs provider is an\n // engine-side re-bind, transparent here. Gating: the policy `rebind` below\n // COMPOSES the companion's level with the engine's live LLM-obs level (max);\n // each sink then self-gates.\n // NB: the engine PostHog sink lazy-loads `posthog-node` — an optional peer that\n // must be installed in any runtime that binds LLM_OBSERVABILITY (this companion\n // installs it for dev verification; the missing-package path is a graceful no-op).\n // The playbook lane's spend meter (#1507), installed where the trace sink is composed and for the\n // same reason: both must be in place before anything resolves `AgentsBackendService`. It decorates\n // the engine's provider-call recorder — the one seam every physical model call passes, ungated.\n this.container.bind(COMPANION_SERVICE_TYPES.PlaybookSpendMeter).to(PlaybookSpendMeterCompanionService).inSingletonScope();\n installPlaybookSpendMeter(this.container, this.container.get<PlaybookSpendMeterCompanionService>(COMPANION_SERVICE_TYPES.PlaybookSpendMeter));\n const companionTraceSink = new CompanionAgentCallTraceSink(this.container.get<CompanionTraceabilityService>(COMPANION_SERVICE_TYPES.TraceabilityService));\n const engineAgentTraceSink = this.container.get<AgentCallTraceSink>(SAAS_SERVICE_TYPES.AgentCallTraceSink);\n this.container.rebind(SAAS_SERVICE_TYPES.AgentCallTraceSink).toConstantValue(new CompositeAgentCallTraceSink([companionTraceSink, engineAgentTraceSink]));\n // COMPOSE the policy, never override it: the engine binds a LIVE policy\n // (`DEBUG` iff an LLM-observability provider is selected + configured, else\n // `NONE`) and the previous static rebind here REPLACED it with the\n // companion's filesystem-tracing level alone — with\n // `WILDO_DEV_COMPANION_TRACEABILITY_LEVEL` unset that froze the level at\n // `NONE`, so `emitAgentCallTrace` skipped BEFORE any sink and PostHog\n // capture (plus even its missing-secret warning) went silently dead. The\n // effective level is the MAX of the two concerns; each sink still\n // self-gates (the filesystem sink skips un-correlated calls and applies the\n // session's own level), so raising the policy for LLM-obs does NOT switch\n // on filesystem artifacts.\n const engineAgentTracePolicy = this.container.get<AgentTraceabilityPolicy>(SAAS_SERVICE_TYPES.AgentTraceabilityPolicy);\n const companionAgentTraceLevel = AGENT_TRACE_LEVEL_BY_COMPANION_LEVEL[runtimeConfig?.traceabilityLevel ?? CompanionTraceabilityLevel.NONE];\n this.container.rebind(SAAS_SERVICE_TYPES.AgentTraceabilityPolicy).toConstantValue({\n get level(): AgentTraceabilityLevel {\n return maxAgentTraceabilityLevel(companionAgentTraceLevel, engineAgentTracePolicy.level);\n },\n } satisfies AgentTraceabilityPolicy);\n }\n\n public getContainer(): InversifyContainer {\n return this.container;\n }\n}\n\nexport function setupCompanionInjection(\n existing?: InversifyContainer,\n companionContext?: CompanionContext,\n runtimeConfig?: CompanionRuntimeConfig,\n): InversifyContainer {\n if (!globalContainer) {\n const companionContainer = new CompanionContainer(existing, companionContext, runtimeConfig);\n globalContainer = companionContainer.getContainer();\n }\n return globalContainer;\n}\n\nexport function getCompanionContainer(): InversifyContainer {\n if (!globalContainer) return setupCompanionInjection();\n return globalContainer;\n}\n\nexport function resetCompanionContainer(): void {\n globalContainer = null;\n}\n\n"]}
1
+ {"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../../../src/core/inject/models/container.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAGzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAE7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAG1D,OAAO,EAAE,0BAA0B,EAAE,MAAM,kDAAkD,CAAC;AAE9F,iBAAiB;AACjB,OAAO,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAC9F,OAAO,EAAE,gCAAgC,EAAE,MAAM,4DAA4D,CAAC;AAC9G,OAAO,EAAE,6BAA6B,EAAE,MAAM,0DAA0D,CAAC;AACzG,OAAO,EAAE,sCAAsC,EAAE,MAAM,qEAAqE,CAAC;AAC7H,OAAO,EAAE,gCAAgC,EAAE,MAAM,8DAA8D,CAAC;AAChH,OAAO,EAAE,8BAA8B,EAAE,MAAM,2DAA2D,CAAC;AAC3G,OAAO,EAAE,gCAAgC,EAAE,MAAM,6DAA6D,CAAC;AAC/G,OAAO,EAAE,2BAA2B,EAAE,MAAM,wDAAwD,CAAC;AAC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kBAAkB,GAAG,IAAI,kBAAkB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,aAAa,CAAC,CAAC;QAC7F,eAAe,GAAG,kBAAkB,CAAC,YAAY,EAAE,CAAC;IACtD,CAAC;IACD,OAAO,eAAe,CAAC;AACzB,CAAC;AAED,MAAM,UAAU,qBAAqB;IACnC,IAAI,CAAC,eAAe;QAAE,OAAO,uBAAuB,EAAE,CAAC;IACvD,OAAO,eAAe,CAAC;AACzB,CAAC;AAED,MAAM,UAAU,uBAAuB;IACrC,eAAe,GAAG,IAAI,CAAC;AACzB,CAAC","sourcesContent":["import { randomUUID } from \"node:crypto\";\n\nimport { InversifyContainer } from \"@wildo-ai/saas-backend-lib\";\nimport { SAAS_SERVICE_TYPES } from \"@wildo-ai/saas-backend-lib\";\nimport { CompositeAgentCallTraceSink } from \"@wildo-ai/saas-backend-lib\";\nimport type { AgentCallTraceSink } from \"@wildo-ai/saas-models\";\nimport type { AgentTraceabilityLevel, AgentTraceabilityPolicy } from \"@wildo-ai/saas-models\";\nimport { maxAgentTraceabilityLevel } from \"@wildo-ai/saas-models\";\nimport { setupPlatformSharedInjection } from \"@wildo-ai/platform-shared-lib\";\n\nimport { COMPANION_SERVICE_TYPES } from \"./service-types\";\nimport type { CompanionContext } from \"../../context/companion-context\";\nimport type { CompanionRuntimeConfig } from \"../../runtime/models/companion-runtime.models\";\nimport { CompanionTraceabilityLevel } from \"../../traceability/companion-traceability.models\";\n\n// Local services\nimport { CompanionController } from \"../../../companion-api/controllers/companion.controller\";\nimport { StartCompanionApplicationService } from \"../../runtime/services/start-companion-application.service\";\nimport { EmailTemplateCompanionService } from \"../../../email/services/email-template.companion.service\";\nimport { EmailSpecContextLoaderCompanionService } from \"../../../email/services/email-spec-context-loader.companion.service\";\nimport { MarketGenerationCompanionService } from \"../../../market/services/market-generation.companion.service\";\nimport { LogoGenerationCompanionService } from \"../../../brand/services/logo-generation.companion.service\";\nimport { LogoDeliberationCompanionService } from \"../../../brand/services/logo-deliberation.companion.service\";\nimport { BrandAcceptCompanionService } from \"../../../brand/services/brand-accept.companion.service\";\nimport { ExpertPersonaCompanionService } from \"../../../expert-personas/services/expert-persona.companion.service\";\nimport { DeliberationCompanionService } from \"../../../deliberations/services/deliberation.companion.service\";\nimport { StructuredDeliberationCompanionService } from \"../../../deliberations/services/structured-deliberation.companion.service\";\nimport { GitChangeSetCompanionService } from \"../../../claude-cli/services/git-change-set.companion.service\";\nimport { CodingAgentDispatchCompanionService } from \"../../../claude-cli/services/coding-agent-dispatch.companion.service\";\nimport { ResearchAgentDispatchCompanionService } from \"../../../claude-cli/services/research-agent-dispatch.companion.service\";\nimport { PlaybookSpendMeterCompanionService, installPlaybookSpendMeter } from \"../../../meta-workflows/services/playbook-spend-meter.companion.service\";\nimport { CompanionAuthFloorCompanionService } from \"../../auth/companion-auth-floor.companion.service\";\nimport { TechnicalDocCompanionService } from \"../../../technical-doc/services/technical-doc.companion.service\";\nimport { TechnicalDocumentationApplicationDerivationCompanionService } from \"../../../technical-doc/services/technical-documentation-application-derivation.companion.service\";\nimport {\n SystemTechnicalDocumentationEnvironmentClock,\n TechnicalDocumentationEnvironmentIdentityCompanionService,\n} from \"../../../technical-doc/services/technical-documentation-environment-identity.companion.service\";\nimport { CompanionIntrospectionBehaviorRegistryService } from \"../../introspection/services/companion-introspection-behavior-registry.companion.service\";\nimport { CompanionIntrospectionService } from \"../../introspection/services/companion-introspection.companion.service\";\nimport { IntrospectionDerivationStateCompanionService } from \"../../introspection/services/introspection-derivation-state.companion.service\";\nimport { IntrospectionSourceWatcherCompanionService } from \"../../introspection/services/introspection-source-watcher.companion.service\";\nimport { IntrospectionResourceNotifierCompanionService } from \"../../introspection/resources/introspection-resource-notifier.companion.service\";\nimport { IntrospectionResourceSourceCompanionService } from \"../../introspection/resources/introspection-resource-source.companion.service\";\nimport { CreationPlaneProjectionCompanionService } from \"../../introspection/resources/creation-plane-projection.companion.service\";\nimport { TranslationPlacementCompanionService } from \"../../introspection/services/translation-placement.companion.service\";\nimport { CompanionExecutionsCompanionService } from \"../../../executions/services/companion-executions.companion.service\";\nimport { CompanionActorExecutionPersistenceAdapter } from \"../../../executions/services/companion-actor-execution-persistence.adapter\";\nimport { CompanionTraceabilityService } from \"../../traceability/companion-traceability.service\";\nimport { CompanionAgentCallTraceSink, AGENT_TRACE_LEVEL_BY_COMPANION_LEVEL } from \"../../traceability/companion-agent-call-trace-sink.companion.service\";\nimport { WildoSaasLockCompanionService } from \"../../lock/wildo-saas-lock.companion.service\";\nimport { LabellingPlannerCompanionService } from \"../../../i18n-labelling/services/labelling-planner.companion.service\";\nimport { LabellingSpecContextLoaderCompanionService } from \"../../../i18n-labelling/services/labelling-spec-context-loader.companion.service\";\nimport { LabellizeOrchestratorCompanionService } from \"../../../i18n-labelling/services/labellize-orchestrator.companion.service\";\nimport { TranslateOrchestratorCompanionService } from \"../../../i18n-labelling/services/translate-orchestrator.companion.service\";\nimport { EmailTemplateLabellingUnitsCompanionService } from \"../../../i18n-labelling/services/email-template-labelling-units.companion.service\";\nimport { ComponentLabelsBootstrapCompanionService } from \"../../../i18n-labelling/services/component-labels-bootstrap.companion.service\";\n\nimport { PlaybookRunCompanionService } from \"../../../meta-workflows/services/playbook-run.companion.service\";\nimport { FoundationExecutorCompanionService } from \"../../../meta-workflows/services/foundation-executor.companion.service\";\nimport { CapabilityCompositionExecutorCompanionService } from \"../../../meta-workflows/services/capability-composition-executor.companion.service\";\nimport { ApplicationMaturityExecutorCompanionService } from \"../../../meta-workflows/services/application-maturity-executor.companion.service\";\nimport { ApplicationBuildDispatchCompanionService } from \"../../../meta-workflows/services/application-build-dispatch.companion.service\";\nimport { ApplicationBuildGenerationStepCompanionService } from \"../../../meta-workflows/services/application-build-generation-step.companion.service\";\nimport { PlaybookRunWriteRegisterCompanionService } from \"../../../meta-workflows/services/playbook-run-write-register.companion.service\";\nimport { ExecutionTraceReadCompanionService } from \"../../../meta-workflows/services/execution-trace-read.companion.service\";\nimport { DossierCompanionService } from \"../../../meta-workflows/services/dossier.companion.service\";\nimport { PlaybookInstanceCompanionService } from \"../../../meta-workflows/services/playbook-instance.companion.service\";\nimport { BuildPlanAuthoringCompanionService } from \"../../../meta-workflows/services/build-plan-authoring.companion.service\";\nimport { CodingRunWriteRegisterCompanionService } from \"../../../claude-cli/services/coding-run-write-register.companion.service\";\nimport { AcceptedChangeCommitCompanionService } from \"../../../claude-cli/services/accepted-change-commit.companion.service\";\n\nexport { CompanionController } from \"../../../companion-api/controllers/companion.controller\";\n\nexport { StartCompanionApplicationService } from \"../../runtime/services/start-companion-application.service\";\n\nlet globalContainer: InversifyContainer | null = null;\n\n/**\n * Process-safety ceilings for the local application reconciliation adapter.\n *\n * They are deliberately not semantic retry policy: retry count/backoff and\n * lease duration come from the resolved Work Cycle. Reaching either ceiling\n * fails readiness instead of publishing with hidden reconciliation debt.\n */\n/**\n * How many outboxes the STARTUP drain will attempt before giving up and letting boot continue.\n *\n * This is a COUNT bound and it does not bound duration -- reconciling one outbox left mid-flight by an\n * interrupted run was measured taking >90s on its own (2026-08-20), so lowering the count did not stop the\n * TASK_OUTBOX stage blowing its 300,000ms ceiling. The duration bound lives in\n * `reconcileOutstandingAtStartup`, which gives startup a fixed time slice and continues regardless.\n *\n * The count therefore stays generous enough for the EXECUTION-time drain, which shares this limit and\n * throws when work is still claimable after it. Lowering it to 1 broke exactly that path.\n */\nconst TASK_TERMINALIZATION_STARTUP_DRAIN_LIMIT = 64;\nconst TASK_AGGREGATE_CAS_ATTEMPT_LIMIT = 8;\n\nexport class CompanionContainer {\n private readonly container: InversifyContainer;\n\n constructor(container?: InversifyContainer, companionContext?: CompanionContext, runtimeConfig?: CompanionRuntimeConfig) {\n this.container = container ?? new InversifyContainer({ defaultScope: \"Singleton\" });\n this.bindServices(companionContext, runtimeConfig);\n }\n\n private bindServices(companionContext?: CompanionContext, runtimeConfig?: CompanionRuntimeConfig): void {\n setupPlatformSharedInjection(this.container);\n\n if (companionContext) {\n this.container.bind<CompanionContext>(COMPANION_SERVICE_TYPES.CompanionContext).toConstantValue(companionContext);\n }\n\n this.container\n .bind<CompanionRuntimeConfig>(COMPANION_SERVICE_TYPES.CompanionRuntimeConfig)\n .toConstantValue(runtimeConfig ?? { traceabilityLevel: CompanionTraceabilityLevel.NONE });\n\n // Controller (bind by symbol and by class for flexible retrieval)\n this.container.bind(COMPANION_SERVICE_TYPES.CompanionController).to(CompanionController).inSingletonScope();\n this.container.bind(CompanionController).to(CompanionController).inSingletonScope();\n\n // Start service (bind by class for retrieval)\n this.container.bind(StartCompanionApplicationService).to(StartCompanionApplicationService).inSingletonScope();\n\n // Shared companion lock file (wildo-saas.lock.json)\n this.container.bind(COMPANION_SERVICE_TYPES.WildoSaasLockService).to(WildoSaasLockCompanionService).inSingletonScope();\n\n // i18n Labelling pipeline\n this.container.bind(COMPANION_SERVICE_TYPES.LabellingSpecContextLoader).to(LabellingSpecContextLoaderCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.LabellingPlannerService).to(LabellingPlannerCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.LabellizeOrchestratorService).to(LabellizeOrchestratorCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.TranslateOrchestratorService).to(TranslateOrchestratorCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.EmailTemplateLabellingUnitsService).to(EmailTemplateLabellingUnitsCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.ComponentLabelsBootstrapService).to(ComponentLabelsBootstrapCompanionService).inSingletonScope();\n\n // Email template service\n this.container.bind(COMPANION_SERVICE_TYPES.EmailSpecContextLoader).to(EmailSpecContextLoaderCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.EmailTemplateService).to(EmailTemplateCompanionService).inSingletonScope();\n\n // Market generation service (Phase 4.2)\n this.container.bind(COMPANION_SERVICE_TYPES.MarketGenerationService).to(MarketGenerationCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.PlaybookRunService).to(PlaybookRunCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.FoundationExecutorService).to(FoundationExecutorCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.CapabilityCompositionExecutorService).to(CapabilityCompositionExecutorCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.ApplicationMaturityExecutorService).to(ApplicationMaturityExecutorCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.ApplicationBuildDispatchService).to(ApplicationBuildDispatchCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.BuildGenerationStepService).to(ApplicationBuildGenerationStepCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.PlaybookRunWriteRegisterService).to(PlaybookRunWriteRegisterCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.ExecutionTraceReadService).to(ExecutionTraceReadCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.DossierService).to(DossierCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.PlaybookInstanceService).to(PlaybookInstanceCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.BuildPlanAuthoringService).to(BuildPlanAuthoringCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.CodingRunWriteRegisterService).to(CodingRunWriteRegisterCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.AcceptedChangeCommitService).to(AcceptedChangeCommitCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.LogoGenerationService).to(LogoGenerationCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.LogoDeliberationService).to(LogoDeliberationCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.BrandAcceptService).to(BrandAcceptCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.ExpertPersonaService).to(ExpertPersonaCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.DeliberationService).to(DeliberationCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.StructuredDeliberationService).to(StructuredDeliberationCompanionService).inSingletonScope();\n\n // Claude-CLI direct invocation (lower-level than the agents path).\n // Reads the `kind: 'cli-runtime'` runtime contract from the\n // backend provider registry and spawns `claude` via\n // `anthropic` in `wildo.saas.config.ts` is what makes the\n // contract reachable from this process.\n\n // Coding-agent dispatch lane (meta-workflows Step 4 / L2): read-only\n // git change-set capture (DD-8 carve-out), async dispatch runs, and\n // the P-29 auth floor (loopback assertion + companion.token).\n this.container.bind(COMPANION_SERVICE_TYPES.GitChangeSetService).to(GitChangeSetCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.CodingAgentDispatchService).to(CodingAgentDispatchCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.ResearchAgentDispatchService).to(ResearchAgentDispatchCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.AuthFloorService).to(CompanionAuthFloorCompanionService).inSingletonScope();\n\n // Workbench construction is effect-free. The dynamic factory creates only\n // in-memory adapters; accepted embedding reads and application-local\n // activation begin later in StartCompanionApplicationService.\n\n // New-contract registry and read-only candidate projection. Executable\n // bindings remain inert until an internal application-creation service\n // supplies exact continuity and artifact inputs.\n\n // Bind the physical executions service once, then expose that same\n // singleton through the internal physical Task port. Public companion Task\n // CRUD and continuity CAS therefore share one repository/ownership view\n // without widening the public DTO's authority.\n if (!this.container.isBound(COMPANION_SERVICE_TYPES.ExecutionsService)) {\n this.container.bind(COMPANION_SERVICE_TYPES.ExecutionsService).to(CompanionExecutionsCompanionService).inSingletonScope();\n }\n /*\n * The ENGINE's actor-plane persistence port, bound to the platform rows (#1358). The engine's\n * `ActorsSystemBackendService` drives an execution's lifecycle and asks this port to write it; a\n * host that binds nothing gets a runtime that refuses to open an execution. Same shape as\n * `SAAS_SERVICE_TYPES.IntrospectionResourceSource` below: a companion supplying an engine seam.\n */\n if (!this.container.isBound(SAAS_SERVICE_TYPES.ActorExecutionPersistencePort)) {\n this.container.bind(SAAS_SERVICE_TYPES.ActorExecutionPersistencePort).to(CompanionActorExecutionPersistenceAdapter).inSingletonScope();\n }\n\n // Any participant not owned by the subject runtime or a concrete\n // family/Task adapter binds to one throwing service. The container remains\n // resolvable for health diagnostics while semantic startup fails closed.\n \n\n // Technical documentation orchestrator (saas-technical-doc.md Step 3)\n this.container.bind(COMPANION_SERVICE_TYPES.TechnicalDocumentationEnvironmentClock).to(SystemTechnicalDocumentationEnvironmentClock).inSingletonScope();\n this.container\n .bind(COMPANION_SERVICE_TYPES.TechnicalDocumentationEnvironmentIdentityService)\n .to(TechnicalDocumentationEnvironmentIdentityCompanionService)\n .inSingletonScope();\n this.container\n .bind(COMPANION_SERVICE_TYPES.TechnicalDocumentationApplicationDerivationService)\n .to(TechnicalDocumentationApplicationDerivationCompanionService)\n .inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.TechnicalDocService).to(TechnicalDocCompanionService).inSingletonScope();\n\n // Companion introspection\n this.container.bind(COMPANION_SERVICE_TYPES.IntrospectionBehaviorRegistryService).to(CompanionIntrospectionBehaviorRegistryService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.IntrospectionDerivationStateService)\n .to(IntrospectionDerivationStateCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.IntrospectionSourceWatcherService)\n .to(IntrospectionSourceWatcherCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.IntrospectionResourceNotifierService)\n .to(IntrospectionResourceNotifierCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.IntrospectionService).to(CompanionIntrospectionService).inSingletonScope();\n /*\n * Bound under the ENGINE's token, not a companion one.\n *\n * `PersistenceAdapter.INTROSPECTION`'s repository resolves this port lazily from the container\n * (`SAAS_SERVICE_TYPES.IntrospectionResourceSource`) and refuses cleanly when nothing is bound —\n * which is the normal state for any application running without a companion. Binding it here is\n * what makes introspected resources readable at all, and it is the same shape\n * `platform-apps-manager` uses to supply `SAAS_SERVICE_TYPES.StorageCredentialResolver`.\n */\n this.container.bind(COMPANION_SERVICE_TYPES.CreationPlaneProjectionService).to(CreationPlaneProjectionCompanionService).inSingletonScope();\n this.container.bind(SAAS_SERVICE_TYPES.IntrospectionResourceSource).to(IntrospectionResourceSourceCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.TranslationPlacementService).to(TranslationPlacementCompanionService).inSingletonScope();\n this.container.bind(COMPANION_SERVICE_TYPES.TraceabilityService).to(CompanionTraceabilityService).inSingletonScope();\n // Engine agent-call traceability: bind the companion filesystem sink + a\n // policy bridged from the companion's level onto the engine SAAS symbols\n // that `AgentsBackendService` `@optional()`-injects. This is what makes\n // every `invokeAgent` call (companion services, market generation, future\n // backend/minion/worker callers) emit into the companion's session/step tree.\n // The companion always adds its filesystem sink (dev artifacts), composed ON\n // TOP of whatever the engine container bound for `AgentCallTraceSink`: when a\n // PostHog LLM-observability provider is configured the engine binds it (and\n // owns its lazy client + flush), so the companion just fans out\n // \"filesystem + <engine sink>\" with no re-construction. A NoOp engine sink\n // collapses to filesystem-only. Switchable: swapping the LLM-obs provider is an\n // engine-side re-bind, transparent here. Gating: the policy `rebind` below\n // COMPOSES the companion's level with the engine's live LLM-obs level (max);\n // each sink then self-gates.\n // NB: the engine PostHog sink lazy-loads `posthog-node` — an optional peer that\n // must be installed in any runtime that binds LLM_OBSERVABILITY (this companion\n // installs it for dev verification; the missing-package path is a graceful no-op).\n // The playbook lane's spend meter (#1507), installed where the trace sink is composed and for the\n // same reason: both must be in place before anything resolves `AgentsBackendService`. It decorates\n // the engine's provider-call recorder — the one seam every physical model call passes, ungated.\n this.container.bind(COMPANION_SERVICE_TYPES.PlaybookSpendMeter).to(PlaybookSpendMeterCompanionService).inSingletonScope();\n installPlaybookSpendMeter(this.container, this.container.get<PlaybookSpendMeterCompanionService>(COMPANION_SERVICE_TYPES.PlaybookSpendMeter));\n const companionTraceSink = new CompanionAgentCallTraceSink(this.container.get<CompanionTraceabilityService>(COMPANION_SERVICE_TYPES.TraceabilityService));\n const engineAgentTraceSink = this.container.get<AgentCallTraceSink>(SAAS_SERVICE_TYPES.AgentCallTraceSink);\n this.container.rebind(SAAS_SERVICE_TYPES.AgentCallTraceSink).toConstantValue(new CompositeAgentCallTraceSink([companionTraceSink, engineAgentTraceSink]));\n // COMPOSE the policy, never override it: the engine binds a LIVE policy\n // (`DEBUG` iff an LLM-observability provider is selected + configured, else\n // `NONE`) and the previous static rebind here REPLACED it with the\n // companion's filesystem-tracing level alone — with\n // `WILDO_DEV_COMPANION_TRACEABILITY_LEVEL` unset that froze the level at\n // `NONE`, so `emitAgentCallTrace` skipped BEFORE any sink and PostHog\n // capture (plus even its missing-secret warning) went silently dead. The\n // effective level is the MAX of the two concerns; each sink still\n // self-gates (the filesystem sink skips un-correlated calls and applies the\n // session's own level), so raising the policy for LLM-obs does NOT switch\n // on filesystem artifacts.\n const engineAgentTracePolicy = this.container.get<AgentTraceabilityPolicy>(SAAS_SERVICE_TYPES.AgentTraceabilityPolicy);\n const companionAgentTraceLevel = AGENT_TRACE_LEVEL_BY_COMPANION_LEVEL[runtimeConfig?.traceabilityLevel ?? CompanionTraceabilityLevel.NONE];\n this.container.rebind(SAAS_SERVICE_TYPES.AgentTraceabilityPolicy).toConstantValue({\n get level(): AgentTraceabilityLevel {\n return maxAgentTraceabilityLevel(companionAgentTraceLevel, engineAgentTracePolicy.level);\n },\n } satisfies AgentTraceabilityPolicy);\n }\n\n public getContainer(): InversifyContainer {\n return this.container;\n }\n}\n\nexport function setupCompanionInjection(\n existing?: InversifyContainer,\n companionContext?: CompanionContext,\n runtimeConfig?: CompanionRuntimeConfig,\n): InversifyContainer {\n if (!globalContainer) {\n const companionContainer = new CompanionContainer(existing, companionContext, runtimeConfig);\n globalContainer = companionContainer.getContainer();\n }\n return globalContainer;\n}\n\nexport function getCompanionContainer(): InversifyContainer {\n if (!globalContainer) return setupCompanionInjection();\n return globalContainer;\n}\n\nexport function resetCompanionContainer(): void {\n globalContainer = null;\n}\n\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"service-types.d.ts","sourceRoot":"","sources":["../../../../../src/core/inject/models/service-types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,uBAAuB;;IAElC,8FAA8F;;;IAG9F,mFAAmF;;;IAGnF,qFAAqF;;;;IAIrF,8DAA8D;;IAE9D,kGAAkG;;IAElG,qGAAqG;;IAErG,8EAA8E;;IAE9E,0GAA0G;;IAE1G,oIAAoI;;IAEpI,qIAAqI;;;;;;;;IAYrI,uFAAuF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwG/E,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC"}
1
+ {"version":3,"file":"service-types.d.ts","sourceRoot":"","sources":["../../../../../../src/core/inject/models/service-types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,uBAAuB;;IAElC,8FAA8F;;;IAG9F,mFAAmF;;;IAGnF,qFAAqF;;;;IAIrF,8DAA8D;;IAE9D,kGAAkG;;IAElG,qGAAqG;;IAErG,8EAA8E;;IAE9E,0GAA0G;;IAE1G,oIAAoI;;IAEpI,qIAAqI;;;;;;;;IAYrI,uFAAuF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwG/E,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC"}