@wildo-ai/dev-companion 1.1.7 → 1.1.9

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 (1145) hide show
  1. package/bin/companion-supervisor.d.mts +33 -0
  2. package/bin/companion-supervisor.mjs +174 -0
  3. package/bin/wildo-dev-companion-supervised.mjs +16 -0
  4. package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
  5. package/dist/esm/brand/models/logo-creative-brief.schemas.js.map +1 -1
  6. package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
  7. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js +8 -2
  8. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
  9. package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
  10. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +8 -2
  11. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
  12. package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
  13. package/dist/esm/brand/models/logo-judge.schemas.js.map +1 -1
  14. package/dist/esm/brand/services/brand-accept.companion.service.d.ts +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 +9 -11
  17. package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
  18. package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -1
  19. package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -1
  20. package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
  21. package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
  22. package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
  23. package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
  24. package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
  25. package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
  26. package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
  27. package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
  28. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts +21 -0
  29. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -1
  30. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js +33 -1
  31. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -1
  32. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +41 -2
  33. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  34. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +43 -1
  35. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  36. package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -1
  37. package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -1
  38. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
  39. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
  40. package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -1
  41. package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -1
  42. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -1
  43. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
  44. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +57 -1
  45. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
  46. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +75 -1
  47. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
  48. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +90 -5
  49. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  50. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +242 -22
  51. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  52. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -1
  53. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -1
  54. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
  55. package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
  56. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -1
  57. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -1
  58. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  59. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  60. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  61. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  62. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
  63. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.js.map +1 -1
  64. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
  65. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
  66. package/dist/esm/companion-api/companion-api.schemas.d.ts +23 -2
  67. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  68. package/dist/esm/companion-api/companion-api.schemas.js +13 -2
  69. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  70. package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -1
  71. package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -1
  72. package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -1
  73. package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -1
  74. package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
  75. package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.js.map +1 -1
  76. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
  77. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
  78. package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -1
  79. package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -1
  80. package/dist/esm/companion-api/controllers/companion.controller.d.ts +63 -7
  81. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  82. package/dist/esm/companion-api/controllers/companion.controller.js +315 -39
  83. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  84. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
  85. package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
  86. package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
  87. package/dist/esm/core/catalogs/catalog-context.factory.js.map +1 -1
  88. package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
  89. package/dist/esm/core/catalogs/catalog-context.factory.models.js.map +1 -1
  90. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
  91. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.js.map +1 -1
  92. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
  93. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.js.map +1 -1
  94. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
  95. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.js.map +1 -1
  96. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
  97. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.js.map +1 -1
  98. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
  99. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.js.map +1 -1
  100. package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
  101. package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.js.map +1 -1
  102. package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
  103. package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.js.map +1 -1
  104. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
  105. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.js.map +1 -1
  106. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
  107. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.js.map +1 -1
  108. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
  109. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.js.map +1 -1
  110. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -1
  111. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -1
  112. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
  113. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
  114. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
  115. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.js.map +1 -1
  116. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
  117. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.js.map +1 -1
  118. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
  119. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
  120. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -1
  121. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -1
  122. package/dist/esm/core/config/primary-language.companion.utils.d.ts +5 -4
  123. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  124. package/dist/esm/core/config/primary-language.companion.utils.js +5 -4
  125. package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
  126. package/dist/esm/core/context/application-module-generations.companion.d.ts +103 -0
  127. package/dist/esm/core/context/application-module-generations.companion.d.ts.map +1 -0
  128. package/dist/esm/core/context/application-module-generations.companion.js +313 -0
  129. package/dist/esm/core/context/application-module-generations.companion.js.map +1 -0
  130. package/dist/esm/core/context/companion-context.d.ts.map +1 -1
  131. package/dist/esm/core/context/companion-context.js.map +1 -1
  132. package/dist/esm/core/context/companion-package-loaders.companion.d.ts +19 -19
  133. package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
  134. package/dist/esm/core/context/companion-package-loaders.companion.js +52 -40
  135. package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
  136. package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -1
  137. package/dist/esm/core/context/draft-family-values.companion.js.map +1 -1
  138. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  139. package/dist/esm/core/inject/models/container.js +4 -0
  140. package/dist/esm/core/inject/models/container.js.map +1 -1
  141. package/dist/esm/core/inject/models/service-types.d.ts +4 -0
  142. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  143. package/dist/esm/core/inject/models/service-types.js +4 -0
  144. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  145. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  146. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
  147. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  148. package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
  149. package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -1
  150. package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -1
  151. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts +15 -1
  152. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -1
  153. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js +38 -3
  154. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -1
  155. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts +21 -0
  156. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -1
  157. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +64 -25
  158. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -1
  159. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
  160. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +2 -0
  161. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
  162. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +0 -28
  163. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  164. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +192 -19
  165. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  166. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  167. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +27 -5
  168. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  169. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
  170. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
  171. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  172. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
  173. package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts +47 -0
  174. package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts.map +1 -0
  175. package/dist/esm/core/introspection/resources/launch-blockers.companion.js +98 -0
  176. package/dist/esm/core/introspection/resources/launch-blockers.companion.js.map +1 -0
  177. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
  178. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.js.map +1 -1
  179. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts +6 -1
  180. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  181. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +20 -1
  182. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  183. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts +34 -8
  184. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
  185. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js +61 -12
  186. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
  187. package/dist/esm/core/introspection/services/introspection-input-closure.companion.d.ts +44 -0
  188. package/dist/esm/core/introspection/services/introspection-input-closure.companion.d.ts.map +1 -0
  189. package/dist/esm/core/introspection/services/introspection-input-closure.companion.js +104 -0
  190. package/dist/esm/core/introspection/services/introspection-input-closure.companion.js.map +1 -0
  191. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +41 -22
  192. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  193. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js +64 -47
  194. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
  195. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
  196. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -1
  197. package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
  198. package/dist/esm/core/introspection/services/translation-placement.companion.service.js.map +1 -1
  199. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -1
  200. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -1
  201. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
  202. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
  203. package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
  204. package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
  205. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
  206. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.js.map +1 -1
  207. package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
  208. package/dist/esm/core/introspection/subprocess/asset-noop-register.js.map +1 -1
  209. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
  210. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.js.map +1 -1
  211. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
  212. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.js.map +1 -1
  213. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  214. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  215. package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
  216. package/dist/esm/core/introspection/subprocess/companion-introspection-child.js.map +1 -1
  217. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
  218. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.js.map +1 -1
  219. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
  220. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
  221. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
  222. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.js.map +1 -1
  223. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -1
  224. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -1
  225. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts +7 -1
  226. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
  227. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js +13 -4
  228. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js.map +1 -1
  229. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
  230. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
  231. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
  232. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
  233. package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
  234. package/dist/esm/core/introspection/subprocess/market-context-block.builder.js.map +1 -1
  235. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
  236. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js.map +1 -1
  237. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
  238. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
  239. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -1
  240. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -1
  241. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  242. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +7 -0
  243. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
  244. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -1
  245. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -1
  246. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -1
  247. package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -1
  248. package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -1
  249. package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -1
  250. package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
  251. package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
  252. package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
  253. package/dist/esm/core/lock/wildo-saas-lock.models.js.map +1 -1
  254. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts +4 -4
  255. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
  256. package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
  257. package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -1
  258. package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -1
  259. package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -1
  260. package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -1
  261. package/dist/esm/core/runtime/companion-env-file.d.ts +39 -9
  262. package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -1
  263. package/dist/esm/core/runtime/companion-env-file.js +75 -16
  264. package/dist/esm/core/runtime/companion-env-file.js.map +1 -1
  265. package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
  266. package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
  267. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
  268. package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
  269. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -1
  270. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -1
  271. package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
  272. package/dist/esm/core/runtime/models/companion-runtime.models.js.map +1 -1
  273. package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -1
  274. package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -1
  275. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +7 -3
  276. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  277. package/dist/esm/core/runtime/services/start-companion-application.service.js +29 -11
  278. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  279. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
  280. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.js.map +1 -1
  281. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  282. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  283. package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
  284. package/dist/esm/core/runtime/utils/companion-workbench-topology.js.map +1 -1
  285. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
  286. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.js.map +1 -1
  287. package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
  288. package/dist/esm/core/specifications/chart-view-specification-context.factory.js.map +1 -1
  289. package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
  290. package/dist/esm/core/specifications/composite-view-specification-context.factory.js.map +1 -1
  291. package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
  292. package/dist/esm/core/specifications/cross-registry-rendering.shared.js.map +1 -1
  293. package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
  294. package/dist/esm/core/specifications/execution-view-specification-context.factory.js.map +1 -1
  295. package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
  296. package/dist/esm/core/specifications/feature-specification-context.factory.js.map +1 -1
  297. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
  298. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.js.map +1 -1
  299. package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
  300. package/dist/esm/core/specifications/frontend-component-specification-context.factory.js.map +1 -1
  301. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
  302. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.js.map +1 -1
  303. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
  304. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.js.map +1 -1
  305. package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
  306. package/dist/esm/core/specifications/milestone-specification-context.factory.js.map +1 -1
  307. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
  308. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.js.map +1 -1
  309. package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
  310. package/dist/esm/core/specifications/onboarding-element-rendering.shared.js.map +1 -1
  311. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
  312. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.js.map +1 -1
  313. package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
  314. package/dist/esm/core/specifications/product-specification-context.factory.js.map +1 -1
  315. package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
  316. package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
  317. package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
  318. package/dist/esm/core/specifications/role-specification-context.factory.js.map +1 -1
  319. package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
  320. package/dist/esm/core/specifications/specification-context-factory.js.map +1 -1
  321. package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
  322. package/dist/esm/core/specifications/specification-context-factory.models.js.map +1 -1
  323. package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
  324. package/dist/esm/core/specifications/specification-context-factory.shared.js.map +1 -1
  325. package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
  326. package/dist/esm/core/specifications/system-email-template-specification-context.factory.js.map +1 -1
  327. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
  328. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.js.map +1 -1
  329. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
  330. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.js.map +1 -1
  331. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
  332. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.js.map +1 -1
  333. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
  334. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.js.map +1 -1
  335. package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
  336. package/dist/esm/core/specifications/templates/feature/feature-all-information.template.js.map +1 -1
  337. package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
  338. package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.js.map +1 -1
  339. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
  340. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.js.map +1 -1
  341. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
  342. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.js.map +1 -1
  343. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
  344. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.js.map +1 -1
  345. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
  346. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.js.map +1 -1
  347. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
  348. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.js.map +1 -1
  349. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
  350. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.js.map +1 -1
  351. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
  352. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.js.map +1 -1
  353. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
  354. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.js.map +1 -1
  355. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
  356. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.js.map +1 -1
  357. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
  358. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.js.map +1 -1
  359. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
  360. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.js.map +1 -1
  361. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
  362. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.js.map +1 -1
  363. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
  364. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.js.map +1 -1
  365. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
  366. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.js.map +1 -1
  367. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
  368. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.js.map +1 -1
  369. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
  370. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.js.map +1 -1
  371. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
  372. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.js.map +1 -1
  373. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
  374. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.js.map +1 -1
  375. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
  376. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.js.map +1 -1
  377. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
  378. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.js.map +1 -1
  379. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
  380. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.js.map +1 -1
  381. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
  382. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.js.map +1 -1
  383. package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
  384. package/dist/esm/core/specifications/templates/product/product-all-information.template.js.map +1 -1
  385. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
  386. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.js.map +1 -1
  387. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
  388. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.js.map +1 -1
  389. package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
  390. package/dist/esm/core/specifications/templates/product/product-translation-context.template.js.map +1 -1
  391. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
  392. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.js.map +1 -1
  393. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
  394. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.js.map +1 -1
  395. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
  396. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.js.map +1 -1
  397. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
  398. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.js.map +1 -1
  399. package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
  400. package/dist/esm/core/specifications/templates/role/role-all-information.template.js.map +1 -1
  401. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
  402. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.js.map +1 -1
  403. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
  404. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.js.map +1 -1
  405. package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
  406. package/dist/esm/core/specifications/templates/role/role-translation-context.template.js.map +1 -1
  407. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
  408. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.js.map +1 -1
  409. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
  410. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.js.map +1 -1
  411. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
  412. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.js.map +1 -1
  413. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
  414. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.js.map +1 -1
  415. package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
  416. package/dist/esm/core/specifications/validate-resource-field-completeness.js.map +1 -1
  417. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
  418. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
  419. package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
  420. package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
  421. package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
  422. package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
  423. package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
  424. package/dist/esm/core/utils/atomic-write.utils.js.map +1 -1
  425. package/dist/esm/core/utils/bounded-concurrency.utils.d.ts +17 -0
  426. package/dist/esm/core/utils/bounded-concurrency.utils.d.ts.map +1 -0
  427. package/dist/esm/core/utils/bounded-concurrency.utils.js +37 -0
  428. package/dist/esm/core/utils/bounded-concurrency.utils.js.map +1 -0
  429. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts +10 -1
  430. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -1
  431. package/dist/esm/core/utils/derived-input-signature.companion.utils.js +9 -2
  432. package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -1
  433. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
  434. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +2 -0
  435. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
  436. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
  437. package/dist/esm/creation-conversation/creation-conversation.function-tools.js +66 -6
  438. package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
  439. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts +0 -17
  440. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  441. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +10 -4
  442. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  443. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
  444. package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
  445. package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
  446. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
  447. package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
  448. package/dist/esm/deliberations/utils/load-committed-expert-agents.js.map +1 -1
  449. package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
  450. package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
  451. package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
  452. package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
  453. package/dist/esm/email/services/email-template.companion.service.d.ts +6 -1
  454. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  455. package/dist/esm/email/services/email-template.companion.service.js +4 -1
  456. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  457. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
  458. package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
  459. package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -1
  460. package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -1
  461. package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
  462. package/dist/esm/email/utils/email-template-fs-discovery.utils.js.map +1 -1
  463. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -1
  464. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -1
  465. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  466. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  467. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  468. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +8 -2
  469. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  470. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  471. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +8 -2
  472. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  473. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
  474. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.js.map +1 -1
  475. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  476. package/dist/esm/expert-personas/services/expert-persona.companion.service.js +7 -7
  477. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  478. package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -1
  479. package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -1
  480. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
  481. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js.map +1 -1
  482. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
  483. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js.map +1 -1
  484. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
  485. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js.map +1 -1
  486. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
  487. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.js.map +1 -1
  488. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
  489. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.js.map +1 -1
  490. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
  491. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
  492. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
  493. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js.map +1 -1
  494. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
  495. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js.map +1 -1
  496. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  497. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js.map +1 -1
  498. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
  499. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js.map +1 -1
  500. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
  501. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.js.map +1 -1
  502. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
  503. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
  504. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
  505. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
  506. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -1
  507. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -1
  508. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
  509. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
  510. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
  511. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
  512. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -1
  513. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -1
  514. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -1
  515. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -1
  516. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -1
  517. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -1
  518. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
  519. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js.map +1 -1
  520. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
  521. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js.map +1 -1
  522. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
  523. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
  524. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
  525. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
  526. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
  527. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js.map +1 -1
  528. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
  529. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
  530. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
  531. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js.map +1 -1
  532. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -1
  533. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -1
  534. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
  535. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js.map +1 -1
  536. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
  537. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js.map +1 -1
  538. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
  539. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js.map +1 -1
  540. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
  541. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js.map +1 -1
  542. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
  543. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js.map +1 -1
  544. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
  545. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.js.map +1 -1
  546. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
  547. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js.map +1 -1
  548. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
  549. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
  550. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  551. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
  552. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
  553. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js.map +1 -1
  554. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
  555. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js.map +1 -1
  556. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
  557. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.js.map +1 -1
  558. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
  559. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.js.map +1 -1
  560. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
  561. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js.map +1 -1
  562. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
  563. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js.map +1 -1
  564. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
  565. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.js.map +1 -1
  566. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
  567. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js.map +1 -1
  568. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -1
  569. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -1
  570. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
  571. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js.map +1 -1
  572. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
  573. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js.map +1 -1
  574. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
  575. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.js.map +1 -1
  576. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
  577. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.js.map +1 -1
  578. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
  579. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.js.map +1 -1
  580. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
  581. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js.map +1 -1
  582. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
  583. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js.map +1 -1
  584. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
  585. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.js.map +1 -1
  586. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
  587. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.js.map +1 -1
  588. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
  589. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.js.map +1 -1
  590. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
  591. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
  592. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
  593. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js.map +1 -1
  594. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
  595. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js.map +1 -1
  596. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
  597. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js.map +1 -1
  598. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
  599. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js.map +1 -1
  600. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
  601. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
  602. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
  603. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js.map +1 -1
  604. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
  605. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
  606. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
  607. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js.map +1 -1
  608. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
  609. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
  610. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
  611. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.js.map +1 -1
  612. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
  613. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.js.map +1 -1
  614. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
  615. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.js.map +1 -1
  616. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
  617. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.js.map +1 -1
  618. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
  619. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js.map +1 -1
  620. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
  621. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js.map +1 -1
  622. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
  623. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
  624. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -1
  625. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -1
  626. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
  627. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.js.map +1 -1
  628. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -1
  629. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -1
  630. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
  631. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js.map +1 -1
  632. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
  633. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.js.map +1 -1
  634. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
  635. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js.map +1 -1
  636. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
  637. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.js.map +1 -1
  638. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
  639. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
  640. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
  641. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js.map +1 -1
  642. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
  643. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js.map +1 -1
  644. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
  645. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.js.map +1 -1
  646. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
  647. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js.map +1 -1
  648. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
  649. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.js.map +1 -1
  650. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
  651. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.js.map +1 -1
  652. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -1
  653. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -1
  654. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
  655. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js.map +1 -1
  656. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
  657. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js.map +1 -1
  658. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
  659. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js.map +1 -1
  660. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
  661. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js.map +1 -1
  662. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
  663. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js.map +1 -1
  664. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -1
  665. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -1
  666. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
  667. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js.map +1 -1
  668. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
  669. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.js.map +1 -1
  670. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
  671. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js.map +1 -1
  672. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
  673. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js.map +1 -1
  674. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
  675. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
  676. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -1
  677. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -1
  678. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
  679. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.js.map +1 -1
  680. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
  681. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js.map +1 -1
  682. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
  683. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
  684. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
  685. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.js.map +1 -1
  686. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
  687. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
  688. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
  689. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js.map +1 -1
  690. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
  691. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.js.map +1 -1
  692. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
  693. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.js.map +1 -1
  694. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
  695. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.js.map +1 -1
  696. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
  697. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js.map +1 -1
  698. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
  699. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.js.map +1 -1
  700. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
  701. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.js.map +1 -1
  702. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -1
  703. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -1
  704. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -1
  705. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -1
  706. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
  707. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.js.map +1 -1
  708. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
  709. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.js.map +1 -1
  710. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  711. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js.map +1 -1
  712. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -1
  713. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -1
  714. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
  715. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js.map +1 -1
  716. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
  717. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js.map +1 -1
  718. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -1
  719. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -1
  720. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
  721. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js.map +1 -1
  722. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
  723. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
  724. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
  725. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js.map +1 -1
  726. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
  727. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js.map +1 -1
  728. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
  729. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js.map +1 -1
  730. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
  731. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js.map +1 -1
  732. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -1
  733. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -1
  734. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
  735. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
  736. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
  737. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
  738. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
  739. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js.map +1 -1
  740. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
  741. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js.map +1 -1
  742. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
  743. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js.map +1 -1
  744. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
  745. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js.map +1 -1
  746. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
  747. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js.map +1 -1
  748. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
  749. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js.map +1 -1
  750. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
  751. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js.map +1 -1
  752. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
  753. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js.map +1 -1
  754. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
  755. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js.map +1 -1
  756. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
  757. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
  758. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
  759. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
  760. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
  761. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
  762. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
  763. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
  764. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
  765. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
  766. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
  767. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.js.map +1 -1
  768. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
  769. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
  770. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
  771. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
  772. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
  773. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js.map +1 -1
  774. package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
  775. package/dist/esm/i18n/components/guidance_announcement.en.js.map +1 -1
  776. package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
  777. package/dist/esm/i18n/components/guidance_banner.en.js.map +1 -1
  778. package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
  779. package/dist/esm/i18n/components/guidance_card.en.js.map +1 -1
  780. package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
  781. package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
  782. package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
  783. package/dist/esm/i18n/components/guidance_checklist_item.en.js.map +1 -1
  784. package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
  785. package/dist/esm/i18n/components/guidance_modal.en.js.map +1 -1
  786. package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
  787. package/dist/esm/i18n/components/guidance_onboarding_view.en.js.map +1 -1
  788. package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
  789. package/dist/esm/i18n/components/guidance_survey.en.js.map +1 -1
  790. package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
  791. package/dist/esm/i18n/components/guidance_tooltip.en.js.map +1 -1
  792. package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
  793. package/dist/esm/i18n/components/guidance_tour.en.js.map +1 -1
  794. package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
  795. package/dist/esm/i18n/components/progression_achievement_badge.en.js.map +1 -1
  796. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
  797. package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
  798. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
  799. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +41 -1
  800. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
  801. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -1
  802. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
  803. package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
  804. package/dist/esm/i18n/composite_views/app.domain-model.en.js.map +1 -1
  805. package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -1
  806. package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -1
  807. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
  808. package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
  809. package/dist/esm/i18n/index.d.ts.map +1 -1
  810. package/dist/esm/i18n/index.js.map +1 -1
  811. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
  812. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
  813. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
  814. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
  815. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
  816. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
  817. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -1
  818. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -1
  819. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
  820. package/dist/esm/i18n/resources/workbenchAspects.en.js +7 -0
  821. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
  822. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts +5 -0
  823. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -1
  824. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js +5 -0
  825. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -1
  826. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -1
  827. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -1
  828. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts +1 -1
  829. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
  830. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js +2 -1
  831. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
  832. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -1
  833. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -1
  834. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -1
  835. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -1
  836. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -1
  837. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -1
  838. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
  839. package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
  840. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +46 -0
  841. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
  842. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +12 -0
  843. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
  844. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
  845. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -1
  846. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -1
  847. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -1
  848. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
  849. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
  850. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
  851. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
  852. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
  853. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
  854. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
  855. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
  856. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +266 -0
  857. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  858. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +91 -5
  859. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  860. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
  861. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
  862. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
  863. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
  864. package/dist/esm/i18n/system_enums/application-creation.en.d.ts +41 -0
  865. package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
  866. package/dist/esm/i18n/system_enums/application-creation.en.js +45 -1
  867. package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
  868. package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -1
  869. package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -1
  870. package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -1
  871. package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -1
  872. package/dist/esm/i18n/system_enums/localization.en.d.ts +82 -0
  873. package/dist/esm/i18n/system_enums/localization.en.d.ts.map +1 -0
  874. package/dist/esm/i18n/system_enums/localization.en.js +82 -0
  875. package/dist/esm/i18n/system_enums/localization.en.js.map +1 -0
  876. package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
  877. package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
  878. package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -1
  879. package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
  880. package/dist/esm/i18n/system_enums/risk-register.en.d.ts +1 -0
  881. package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -1
  882. package/dist/esm/i18n/system_enums/risk-register.en.js +1 -0
  883. package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -1
  884. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
  885. package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
  886. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
  887. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
  888. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +10 -0
  889. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
  890. package/dist/esm/i18n/system_enums/workbench-dossier.en.js +13 -0
  891. package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
  892. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -1
  893. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -1
  894. package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -1
  895. package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -1
  896. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -1
  897. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -1
  898. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -1
  899. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -1
  900. package/dist/esm/i18n-labelling/models/labelling-progress.models.d.ts +43 -0
  901. package/dist/esm/i18n-labelling/models/labelling-progress.models.d.ts.map +1 -0
  902. package/dist/esm/i18n-labelling/models/labelling-progress.models.js +34 -0
  903. package/dist/esm/i18n-labelling/models/labelling-progress.models.js.map +1 -0
  904. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
  905. package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
  906. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
  907. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
  908. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
  909. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.js.map +1 -1
  910. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -1
  911. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -1
  912. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  913. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  914. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
  915. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
  916. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +8 -0
  917. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  918. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +97 -56
  919. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  920. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts +18 -0
  921. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  922. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +269 -153
  923. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  924. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -1
  925. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -1
  926. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
  927. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
  928. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -1
  929. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -1
  930. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
  931. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
  932. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
  933. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js.map +1 -1
  934. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -1
  935. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -1
  936. package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
  937. package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
  938. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -1
  939. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -1
  940. package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.d.ts +41 -0
  941. package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.d.ts.map +1 -0
  942. package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.js +47 -0
  943. package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.js.map +1 -0
  944. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
  945. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
  946. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts +12 -0
  947. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
  948. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js +10 -2
  949. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
  950. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -1
  951. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -1
  952. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -1
  953. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -1
  954. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
  955. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.js.map +1 -1
  956. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
  957. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
  958. package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.d.ts +89 -0
  959. package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.d.ts.map +1 -0
  960. package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.js +229 -0
  961. package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.js.map +1 -0
  962. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
  963. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
  964. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -1
  965. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -1
  966. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
  967. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.js.map +1 -1
  968. package/dist/esm/index.d.ts.map +1 -1
  969. package/dist/esm/index.js.map +1 -1
  970. package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
  971. package/dist/esm/market/services/market-generation.companion.service.js.map +1 -1
  972. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -1
  973. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -1
  974. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  975. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  976. package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -1
  977. package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -1
  978. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  979. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  980. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
  981. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
  982. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts +67 -1
  983. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -1
  984. package/dist/esm/meta-workflows/models/build-task-rearm.models.js +64 -0
  985. package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -1
  986. package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -1
  987. package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -1
  988. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -1
  989. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
  990. package/dist/esm/meta-workflows/models/creation-intervention.models.d.ts +308 -0
  991. package/dist/esm/meta-workflows/models/creation-intervention.models.d.ts.map +1 -0
  992. package/dist/esm/meta-workflows/models/creation-intervention.models.js +365 -0
  993. package/dist/esm/meta-workflows/models/creation-intervention.models.js.map +1 -0
  994. package/dist/esm/meta-workflows/models/generation-step-progress.models.d.ts +61 -0
  995. package/dist/esm/meta-workflows/models/generation-step-progress.models.d.ts.map +1 -0
  996. package/dist/esm/meta-workflows/models/generation-step-progress.models.js +58 -0
  997. package/dist/esm/meta-workflows/models/generation-step-progress.models.js.map +1 -0
  998. package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -1
  999. package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -1
  1000. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +10 -6
  1001. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  1002. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +11 -6
  1003. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
  1004. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
  1005. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
  1006. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +3 -0
  1007. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
  1008. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +8 -1
  1009. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
  1010. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +26 -0
  1011. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
  1012. package/dist/esm/meta-workflows/models/playbook-run-record.models.js +66 -10
  1013. package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
  1014. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -1
  1015. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -1
  1016. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts +13 -0
  1017. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts.map +1 -0
  1018. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js +33 -0
  1019. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js.map +1 -0
  1020. package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.d.ts +145 -0
  1021. package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.d.ts.map +1 -0
  1022. package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.js +179 -0
  1023. package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.js.map +1 -0
  1024. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +376 -17
  1025. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  1026. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +805 -39
  1027. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  1028. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -1
  1029. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -1
  1030. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +93 -7
  1031. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  1032. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +142 -25
  1033. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  1034. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +120 -3
  1035. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  1036. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +325 -16
  1037. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  1038. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -1
  1039. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +15 -6
  1040. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -1
  1041. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -1
  1042. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js +10 -11
  1043. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -1
  1044. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -1
  1045. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
  1046. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
  1047. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +10 -11
  1048. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
  1049. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts +82 -0
  1050. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts.map +1 -0
  1051. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js +291 -0
  1052. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js.map +1 -0
  1053. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts +60 -0
  1054. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts.map +1 -0
  1055. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js +66 -0
  1056. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js.map +1 -0
  1057. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts +53 -0
  1058. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts.map +1 -0
  1059. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js +164 -0
  1060. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js.map +1 -0
  1061. package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.d.ts +37 -0
  1062. package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.d.ts.map +1 -0
  1063. package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.js +52 -0
  1064. package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.js.map +1 -0
  1065. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +74 -14
  1066. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
  1067. package/dist/esm/meta-workflows/services/dossier.companion.service.js +180 -28
  1068. package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
  1069. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts.map +1 -1
  1070. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js.map +1 -1
  1071. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
  1072. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js.map +1 -1
  1073. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map +1 -1
  1074. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map +1 -1
  1075. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +2 -3
  1076. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  1077. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +2 -8
  1078. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  1079. package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -1
  1080. package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -1
  1081. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -1
  1082. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -1
  1083. package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.d.ts +67 -0
  1084. package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.d.ts.map +1 -0
  1085. package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.js +64 -0
  1086. package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.js.map +1 -0
  1087. package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -1
  1088. package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -1
  1089. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
  1090. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.js.map +1 -1
  1091. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -1
  1092. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +11 -3
  1093. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -1
  1094. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +92 -4
  1095. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  1096. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +328 -7
  1097. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  1098. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +105 -6
  1099. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  1100. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +309 -39
  1101. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  1102. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts +62 -1
  1103. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -1
  1104. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js +152 -2
  1105. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -1
  1106. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -1
  1107. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -1
  1108. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -1
  1109. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -1
  1110. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
  1111. package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
  1112. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
  1113. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
  1114. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
  1115. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.js.map +1 -1
  1116. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
  1117. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.js.map +1 -1
  1118. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
  1119. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
  1120. package/package.json +22 -18
  1121. package/dist/esm/.tsbuildinfo +0 -1
  1122. package/dist/esm/__tests__/asset-noop.d.ts +0 -3
  1123. package/dist/esm/__tests__/asset-noop.d.ts.map +0 -1
  1124. package/dist/esm/__tests__/asset-noop.js +0 -2
  1125. package/dist/esm/__tests__/asset-noop.js.map +0 -1
  1126. package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts +0 -2
  1127. package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +0 -1
  1128. package/dist/esm/__tests__/chdir-dogfood-app.setup.js +0 -44
  1129. package/dist/esm/__tests__/chdir-dogfood-app.setup.js.map +0 -1
  1130. package/dist/esm/__tests__/internal-test-view.d.ts +0 -39
  1131. package/dist/esm/__tests__/internal-test-view.d.ts.map +0 -1
  1132. package/dist/esm/__tests__/internal-test-view.js +0 -2
  1133. package/dist/esm/__tests__/internal-test-view.js.map +0 -1
  1134. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +0 -50
  1135. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +0 -1
  1136. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +0 -157
  1137. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +0 -1
  1138. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts +0 -8
  1139. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +0 -1
  1140. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js +0 -43
  1141. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +0 -1
  1142. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +0 -79
  1143. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +0 -1
  1144. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +0 -193
  1145. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"governed-document-texts.companion.js","sourceRoot":"","sources":["../../../../src/meta-workflows/services/governed-document-texts.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAClC,oCAAoC,EACpC,gCAAgC,EAChC,oCAAoC,GAGrC,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,6BAA6B,EAC7B,+CAA+C,GAEhD,MAAM,yCAAyC,CAAC;AAEjD;;;;;;;;;GASG;AACH,MAAM,qBAAqB,GAAG,KAAK,CAAC;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,UAAU,kCAAkC,CAAC,KAQlD;IACC,MAAM,KAAK,GAAG,IAAI,GAAG,EAA0C,CAAC;IAEhE,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAChC,MAAM,oBAAoB,GAAG,IAAI,GAAG,EAAqC,CAAC;IAC1E,KAAK,MAAM,OAAO,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;QACrC,MAAM,GAAG,GAAG,OAAO,CAAC,UAAU,CAAC,aAAuB,CAAC;QACvD,oBAAoB,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,oBAAoB,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;IACrF,CAAC;IACD,MAAM,kBAAkB,GAAG,IAAI,GAAG,EAAuC,CAAC;IAC1E,KAAK,MAAM,KAAK,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;QACjC,MAAM,aAAa,GAAG,KAAK,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;QACxD,kGAAkG;QAClG,IAAI,aAAa,KAAK,SAAS,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,aAAa,CAAC;YAAE,kBAAkB,CAAC,GAAG,CAAC,aAAa,EAAE,KAAK,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AAa,EAAE,CAAC;gBAChB,IAAI,EAAE,kCAAkC,CAAC,gBAAgB;gBACzD,WAAW,EAAE,KAAK,CAAC,WAAW;gBAC9B,OAAO,EAAE,+CAA+C,CAAC,KAAK,EAAE,gBAAgB,CAAC,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;aAClH,CAAC,CAAC,CAAC;QACN,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,gBAAgB,CACvB,KAAkC,EAClC,QAAwD;IAExD,IAAI,KAAK,CAAC,MAAM,KAAK,SAAS,IAAI,KAAK,CAAC,gBAAgB,KAAK,SAAS,EAAE,CAAC;QACvE,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,gBAAgB,EAAE,CAAC,GAAG,IAAI,GAAG,CAAS,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;IACzG,CAAC;IACD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAE,CAAC,MAAM,EAAE,gBAAgB,EAAE,CAAC,GAAG,IAAI,GAAG,CAAS,QAAQ,CAAC,CAAC,CAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;IACvH,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,qBAAqB,EAAE,gBAAgB,EAAE,CAAC,GAAG,IAAI,GAAG,CAAS,KAAK,CAAC,gBAAgB,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;AACxI,CAAC","sourcesContent":["import {\n GovernedDocumentPublicDocumentKind,\n GovernedDocumentPublicDocumentSchema,\n governedDocumentReleaseIsInForce,\n projectGovernedDocumentPublicRelease,\n type GovernedDocumentPublicDocument,\n type GovernedDocumentRelease,\n} from '@wildo-ai/saas-models';\nimport type { ComplianceDocumentCandidate } from '@wildo-ai/saas-specifications/application-creation';\nimport {\n latestGovernedDocumentRelease,\n projectComplianceDocumentCandidatePublicContent,\n type AssuranceDocumentPublicationVariant,\n} from '@wildo-ai/saas-specifications/assurance';\n\n/**\n * BCP 47's own code for \"undetermined\" — the language a draft is printed under when neither the draft\n * nor a single declared publication variant decides one. A draft may leave its language open on\n * purpose (`ComplianceDocumentCandidate.locale` is optional so that the decision never gates drafting),\n * so the honest value is the one the standard reserves for exactly that, not a guessed language. BCP 47\n * admits `und` only where a tag is REQUIRED and the language is not known, and both hold here: the public\n * content schema requires a locale, and the draft has not decided one.\n *\n * spec-cite: RFC 5646 §4.1, item 5, the 'und' (Undetermined) bullet — fetched 2026-09-25.\n */\nconst UNDETERMINED_LANGUAGE = 'und';\n\n/**\n * The CURRENT text of every governed document the application holds, keyed by definition ref (#1645) —\n * what the workbench prints when a creator asks for all their documents as PDF. PURE.\n *\n * Per definition, the first that exists, each picked by `latestGovernedDocumentRelease` (latest\n * effective, then highest version — the precedence `resolveEffectiveDocumentRelease` applies):\n *\n * 1. **a release IN FORCE at `at`** — the document's text as it stands;\n * 2. **a release not yet in effect** — the text the application has committed to, which the PDF prints\n * with its effective date;\n * 3. **its latest draft**, as the same allow-list projection the public pages use\n * (`projectComplianceDocumentCandidatePublicContent`). Its language and jurisdictions come from the\n * draft when it states both, else from the application's single declared publication variant, else\n * they are UNDETERMINED — never borrowed from one of several variants nobody picked for it;\n * 4. **an EXPIRED release** — ranked last because it is no longer anyone's text: a draft being worked\n * on says more about the document than a release that has lapsed. The PDF prints it as expired.\n *\n * Otherwise nothing, and the caller prints the document as not composed yet.\n *\n * Unlike the public projection (`projectGovernedDocumentPublicDocuments` in the CLI) nothing is filtered\n * by publication channel: an internal governance policy is as much the creator's document as the privacy\n * notice, and this is the creator reading their own documents, not a page facing the public.\n *\n * Variants are not multiplied out: a document released in two languages prints once, in the release\n * selected above. The bundle answers \"what does each document say\", and the other language is the same\n * document.\n */\nexport function selectCurrentGovernedDocumentTexts(input: {\n readonly releases: readonly GovernedDocumentRelease[];\n readonly drafts: readonly ComplianceDocumentCandidate[];\n /** The definition ref a draft is drafted against — the catalog's `document:` → `document-definition:` join. */\n readonly definitionRefOfDraft: (draft: ComplianceDocumentCandidate) => string | undefined;\n readonly publishedVariants: readonly AssuranceDocumentPublicationVariant[];\n /** ISO-8601. The instant \"in force\" is asked at. */\n readonly at: string;\n}): ReadonlyMap<string, GovernedDocumentPublicDocument> {\n const texts = new Map<string, GovernedDocumentPublicDocument>();\n\n const at = Date.parse(input.at);\n const releasesByDefinition = new Map<string, GovernedDocumentRelease[]>();\n for (const release of input.releases) {\n const key = release.definition.definitionRef as string;\n releasesByDefinition.set(key, [...(releasesByDefinition.get(key) ?? []), release]);\n }\n const draftsByDefinition = new Map<string, ComplianceDocumentCandidate>();\n for (const draft of input.drafts) {\n const definitionRef = input.definitionRefOfDraft(draft);\n // The candidate set holds at most one draft per document; the first wins should it ever hold two.\n if (definitionRef !== undefined && !draftsByDefinition.has(definitionRef)) draftsByDefinition.set(definitionRef, draft);\n }\n\n for (const definitionRef of new Set([...releasesByDefinition.keys(), ...draftsByDefinition.keys()])) {\n const releases = releasesByDefinition.get(definitionRef) ?? [];\n const release = latestGovernedDocumentRelease(releases.filter((candidate) => governedDocumentReleaseIsInForce(candidate, input.at)))\n ?? latestGovernedDocumentRelease(releases.filter((candidate) => Date.parse(candidate.effectiveAt) > at));\n const draft = draftsByDefinition.get(definitionRef);\n const chosen = release ?? (draft === undefined ? latestGovernedDocumentRelease(releases) : undefined);\n if (chosen !== undefined) {\n texts.set(definitionRef, GovernedDocumentPublicDocumentSchema.parse({\n schemaVersion: 1,\n kind: GovernedDocumentPublicDocumentKind.RELEASED,\n release: projectGovernedDocumentPublicRelease(chosen),\n content: chosen.content,\n approvalState: chosen.approvalState,\n }));\n } else if (draft !== undefined) {\n texts.set(definitionRef, GovernedDocumentPublicDocumentSchema.parse({\n schemaVersion: 1,\n kind: GovernedDocumentPublicDocumentKind.UNRELEASED_DRAFT,\n documentRef: draft.documentRef,\n content: projectComplianceDocumentCandidatePublicContent(draft, draftPublication(draft, input.publishedVariants)),\n }));\n }\n }\n return texts;\n}\n\nfunction draftPublication(\n draft: ComplianceDocumentCandidate,\n variants: readonly AssuranceDocumentPublicationVariant[],\n): { locale: string; jurisdictionRefs: string[] } {\n if (draft.locale !== undefined && draft.jurisdictionRefs !== undefined) {\n return { locale: draft.locale, jurisdictionRefs: [...new Set<string>(draft.jurisdictionRefs)].sort() };\n }\n if (variants.length === 1) {\n return { locale: variants[0]!.locale, jurisdictionRefs: [...new Set<string>(variants[0]!.jurisdictionRefs)].sort() };\n }\n return { locale: draft.locale ?? UNDETERMINED_LANGUAGE, jurisdictionRefs: [...new Set<string>(draft.jurisdictionRefs ?? [])].sort() };\n}\n"]}
1
+ {"version":3,"file":"governed-document-texts.companion.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/governed-document-texts.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAClC,oCAAoC,EACpC,gCAAgC,EAChC,oCAAoC,GAGrC,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,6BAA6B,EAC7B,+CAA+C,GAEhD,MAAM,yCAAyC,CAAC;AAEjD;;;;;;;;;GASG;AACH,MAAM,qBAAqB,GAAG,KAAK,CAAC;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,UAAU,kCAAkC,CAAC,KAQlD;IACC,MAAM,KAAK,GAAG,IAAI,GAAG,EAA0C,CAAC;IAEhE,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAChC,MAAM,oBAAoB,GAAG,IAAI,GAAG,EAAqC,CAAC;IAC1E,KAAK,MAAM,OAAO,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;QACrC,MAAM,GAAG,GAAG,OAAO,CAAC,UAAU,CAAC,aAAuB,CAAC;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AG,IAAI,GAAG,CAAS,QAAQ,CAAC,CAAC,CAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;IACvH,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,qBAAqB,EAAE,gBAAgB,EAAE,CAAC,GAAG,IAAI,GAAG,CAAS,KAAK,CAAC,gBAAgB,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;AACxI,CAAC","sourcesContent":["import {\n GovernedDocumentPublicDocumentKind,\n GovernedDocumentPublicDocumentSchema,\n governedDocumentReleaseIsInForce,\n projectGovernedDocumentPublicRelease,\n type GovernedDocumentPublicDocument,\n type GovernedDocumentRelease,\n} from '@wildo-ai/saas-models';\nimport type { ComplianceDocumentCandidate } from '@wildo-ai/saas-specifications/application-creation';\nimport {\n latestGovernedDocumentRelease,\n projectComplianceDocumentCandidatePublicContent,\n type AssuranceDocumentPublicationVariant,\n} from '@wildo-ai/saas-specifications/assurance';\n\n/**\n * BCP 47's own code for \"undetermined\" — the language a draft is printed under when neither the draft\n * nor a single declared publication variant decides one. A draft may leave its language open on\n * purpose (`ComplianceDocumentCandidate.locale` is optional so that the decision never gates drafting),\n * so the honest value is the one the standard reserves for exactly that, not a guessed language. BCP 47\n * admits `und` only where a tag is REQUIRED and the language is not known, and both hold here: the public\n * content schema requires a locale, and the draft has not decided one.\n *\n * spec-cite: RFC 5646 §4.1, item 5, the 'und' (Undetermined) bullet — fetched 2026-09-25.\n */\nconst UNDETERMINED_LANGUAGE = 'und';\n\n/**\n * The CURRENT text of every governed document the application holds, keyed by definition ref (#1645) —\n * what the workbench prints when a creator asks for all their documents as PDF. PURE.\n *\n * Per definition, the first that exists, each picked by `latestGovernedDocumentRelease` (latest\n * effective, then highest version — the precedence `resolveEffectiveDocumentRelease` applies):\n *\n * 1. **a release IN FORCE at `at`** — the document's text as it stands;\n * 2. **a release not yet in effect** — the text the application has committed to, which the PDF prints\n * with its effective date;\n * 3. **its latest draft**, as the same allow-list projection the public pages use\n * (`projectComplianceDocumentCandidatePublicContent`). Its language and jurisdictions come from the\n * draft when it states both, else from the application's single declared publication variant, else\n * they are UNDETERMINED — never borrowed from one of several variants nobody picked for it;\n * 4. **an EXPIRED release** — ranked last because it is no longer anyone's text: a draft being worked\n * on says more about the document than a release that has lapsed. The PDF prints it as expired.\n *\n * Otherwise nothing, and the caller prints the document as not composed yet.\n *\n * Unlike the public projection (`projectGovernedDocumentPublicDocuments` in the CLI) nothing is filtered\n * by publication channel: an internal governance policy is as much the creator's document as the privacy\n * notice, and this is the creator reading their own documents, not a page facing the public.\n *\n * Variants are not multiplied out: a document released in two languages prints once, in the release\n * selected above. The bundle answers \"what does each document say\", and the other language is the same\n * document.\n */\nexport function selectCurrentGovernedDocumentTexts(input: {\n readonly releases: readonly GovernedDocumentRelease[];\n readonly drafts: readonly ComplianceDocumentCandidate[];\n /** The definition ref a draft is drafted against — the catalog's `document:` → `document-definition:` join. */\n readonly definitionRefOfDraft: (draft: ComplianceDocumentCandidate) => string | undefined;\n readonly publishedVariants: readonly AssuranceDocumentPublicationVariant[];\n /** ISO-8601. The instant \"in force\" is asked at. */\n readonly at: string;\n}): ReadonlyMap<string, GovernedDocumentPublicDocument> {\n const texts = new Map<string, GovernedDocumentPublicDocument>();\n\n const at = Date.parse(input.at);\n const releasesByDefinition = new Map<string, GovernedDocumentRelease[]>();\n for (const release of input.releases) {\n const key = release.definition.definitionRef as string;\n releasesByDefinition.set(key, [...(releasesByDefinition.get(key) ?? []), release]);\n }\n const draftsByDefinition = new Map<string, ComplianceDocumentCandidate>();\n for (const draft of input.drafts) {\n const definitionRef = input.definitionRefOfDraft(draft);\n // The candidate set holds at most one draft per document; the first wins should it ever hold two.\n if (definitionRef !== undefined && !draftsByDefinition.has(definitionRef)) draftsByDefinition.set(definitionRef, draft);\n }\n\n for (const definitionRef of new Set([...releasesByDefinition.keys(), ...draftsByDefinition.keys()])) {\n const releases = releasesByDefinition.get(definitionRef) ?? [];\n const release = latestGovernedDocumentRelease(releases.filter((candidate) => governedDocumentReleaseIsInForce(candidate, input.at)))\n ?? latestGovernedDocumentRelease(releases.filter((candidate) => Date.parse(candidate.effectiveAt) > at));\n const draft = draftsByDefinition.get(definitionRef);\n const chosen = release ?? (draft === undefined ? latestGovernedDocumentRelease(releases) : undefined);\n if (chosen !== undefined) {\n texts.set(definitionRef, GovernedDocumentPublicDocumentSchema.parse({\n schemaVersion: 1,\n kind: GovernedDocumentPublicDocumentKind.RELEASED,\n release: projectGovernedDocumentPublicRelease(chosen),\n content: chosen.content,\n approvalState: chosen.approvalState,\n }));\n } else if (draft !== undefined) {\n texts.set(definitionRef, GovernedDocumentPublicDocumentSchema.parse({\n schemaVersion: 1,\n kind: GovernedDocumentPublicDocumentKind.UNRELEASED_DRAFT,\n documentRef: draft.documentRef,\n content: projectComplianceDocumentCandidatePublicContent(draft, draftPublication(draft, input.publishedVariants)),\n }));\n }\n }\n return texts;\n}\n\nfunction draftPublication(\n draft: ComplianceDocumentCandidate,\n variants: readonly AssuranceDocumentPublicationVariant[],\n): { locale: string; jurisdictionRefs: string[] } {\n if (draft.locale !== undefined && draft.jurisdictionRefs !== undefined) {\n return { locale: draft.locale, jurisdictionRefs: [...new Set<string>(draft.jurisdictionRefs)].sort() };\n }\n if (variants.length === 1) {\n return { locale: variants[0]!.locale, jurisdictionRefs: [...new Set<string>(variants[0]!.jurisdictionRefs)].sort() };\n }\n return { locale: draft.locale ?? UNDETERMINED_LANGUAGE, jurisdictionRefs: [...new Set<string>(draft.jurisdictionRefs ?? [])].sort() };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"governed-documents-pdf.companion.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/governed-documents-pdf.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,EACrC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,KAAK,4BAA4B,EAClC,MAAM,gCAAgC,CAAC;AAExC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAK3E;;;;GAIG;AACH,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAM5G;AAED;;;;;;;;;GASG;AACH,wBAAgB,2CAA2C,CAAC,YAAY,EAAE;IACxE,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,uBAAuB,EAAE,kCAAkC,CAAC,CAAC;IACpF,gFAAgF;IAChF,QAAQ,CAAC,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;CACjD,GAAG,+BAA+B,CAAC,4BAA4B,EAAE,2BAA2B,CAAC,CAY7F"}
1
+ {"version":3,"file":"governed-documents-pdf.companion.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/governed-documents-pdf.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,EACrC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,KAAK,4BAA4B,EAClC,MAAM,gCAAgC,CAAC;AAExC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAK3E;;;;GAIG;AACH,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAM5G;AAED;;;;;;;;;GASG;AACH,wBAAgB,2CAA2C,CAAC,YAAY,EAAE;IACxE,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,uBAAuB,EAAE,kCAAkC,CAAC,CAAC;IACpF,gFAAgF;IAChF,QAAQ,CAAC,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;CACjD,GAAG,+BAA+B,CAAC,4BAA4B,EAAE,2BAA2B,CAAC,CAY7F"}
@@ -1 +1 @@
1
- {"version":3,"file":"governed-documents-pdf.companion.js","sourceRoot":"","sources":["../../../../src/meta-workflows/services/governed-documents-pdf.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,GAGnC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,4CAA4C,EAC5C,sCAAsC,GAEvC,MAAM,gCAAgC,CAAC;AAIxC,4GAA4G;AAC5G,MAAM,kCAAkC,GAAG,CAAC,WAAW,EAAE,8BAA8B,EAAE,QAAQ,CAAU,CAAC;AAE5G;;;;GAIG;AACH,MAAM,UAAU,iCAAiC,CAAC,MAAe,EAAE,aAAqB;IACtF,IAAI,IAAI,GAAY,MAAM,CAAC;IAC3B,KAAK,MAAM,OAAO,IAAI,CAAC,GAAG,kCAAkC,EAAE,sCAAsC,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC;QACrH,IAAI,GAAG,IAAI,KAAK,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAE,IAAgC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC5G,CAAC;IACD,OAAO,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;AAC3E,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,2CAA2C,CAAC,YAI3D;IACC,OAAO,kCAAkC,CAA+B;QACtE,EAAE,EAAE,4CAA4C;QAChD,cAAc,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,EAAE;YACtD,MAAM,KAAK,GAAG,MAAM,YAAY,CAAC,OAAO,CAAC,gCAAgC,CAAC,WAAW,CAAC,CAAC;YACvF,MAAM,MAAM,GAAG,YAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YAC9C,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;gBACxB,KAAK,EAAE,iCAAiC,CAAC,MAAM,EAAE,GAAG,CAAC,aAAa,CAAC,IAAI,GAAG,CAAC,aAAa;gBACxF,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,IAAI;aAC/C,CAAC,CAAC,CAAC;QACN,CAAC;KACF,CAAC,CAAC;AACL,CAAC","sourcesContent":["import {\n createGovernedDocumentsPdfTemplate,\n type GovernedDocumentsPdfContext,\n type PdfCollectionTemplateDefinition,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n WORKBENCH_GOVERNED_DOCUMENTS_PDF_TEMPLATE_ID,\n sanitizeWorkbenchCreationPlaneIdentity,\n type Workbench_GovernanceDocument,\n} from '@wildo-ai/platform-core-shared';\n\nimport type { DossierCompanionService } from './dossier.companion.service';\n\n/** Where the workbench keeps each governed document's NAME, keyed by the row's sanitized definition ref. */\nconst GOVERNED_DOCUMENT_TITLE_LABEL_PATH = ['resources', 'workbenchGovernanceDocuments', 'titles'] as const;\n\n/**\n * The name the workbench shows for a governed document, read from the SAME label the screen reads\n * (`resources.workbenchGovernanceDocuments.titles.<sanitized ref>`), so the PDF and the dossier call a\n * document by one name. `undefined` when the label is missing.\n */\nexport function resolveGovernedDocumentTitleLabel(labels: unknown, definitionRef: string): string | undefined {\n let node: unknown = labels;\n for (const segment of [...GOVERNED_DOCUMENT_TITLE_LABEL_PATH, sanitizeWorkbenchCreationPlaneIdentity(definitionRef)]) {\n node = node !== null && typeof node === 'object' ? (node as Record<string, unknown>)[segment] : undefined;\n }\n return typeof node === 'string' && node.trim() !== '' ? node : undefined;\n}\n\n/**\n * The workbench's \"all governed documents as PDF\" template (#1645): the engine's governed-documents\n * template, fed from the governance-documents listing.\n *\n * The listing decides WHICH documents are printed, and in which order; each row's text is read here,\n * once per export, from the application's releases and drafts. A document with neither is printed under\n * the workbench's own name for it — the title the dossier shows — and only when that label is missing\n * under its raw definition ref, which reads as the missing name it is\n * (`display-text-comes-from-i18n.md`) rather than as invented words.\n */\nexport function createWorkbenchGovernedDocumentsPdfTemplate(dependencies: {\n readonly dossier: Pick<DossierCompanionService, 'readCurrentGovernedDocumentTexts'>;\n /** The workbench's label tree for a locale (`I18nBackendService.getLabels`). */\n readonly labelsFor: (locale: string) => unknown;\n}): PdfCollectionTemplateDefinition<Workbench_GovernanceDocument, GovernedDocumentsPdfContext> {\n return createGovernedDocumentsPdfTemplate<Workbench_GovernanceDocument>({\n id: WORKBENCH_GOVERNED_DOCUMENTS_PDF_TEMPLATE_ID,\n resolveSources: async ({ rows, generatedAt, locale }) => {\n const texts = await dependencies.dossier.readCurrentGovernedDocumentTexts(generatedAt);\n const labels = dependencies.labelsFor(locale);\n return rows.map((row) => ({\n title: resolveGovernedDocumentTitleLabel(labels, row.definitionRef) ?? row.definitionRef,\n document: texts.get(row.definitionRef) ?? null,\n }));\n },\n });\n}\n"]}
1
+ {"version":3,"file":"governed-documents-pdf.companion.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/governed-documents-pdf.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,GAGnC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,4CAA4C,EAC5C,sCAAsC,GAEvC,MAAM,gCAAgC,CAAC;AAIxC,4GAA4G;AAC5G,MAAM,kCAAkC,GAAG,CAAC,WAAW,EAAE,8BAA8B,EAAE,QAAQ,CAAU,CAAC;AAE5G;;;;GAIG;AACH,MAAM,UAAU,iCAAiC,CAAC,MAAe,EAAE,aAAqB;IACtF,IAAI,IAAI,GAAY,MAAM,CAAC;IAC3B,KAAK,MAAM,OAAO,IAAI,CAAC,GAAG,kCAAkC,EAAE,sCAAsC,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC;QACrH,IAAI,GAAG,IAAI,KAAK,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAE,IAAgC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC5G,CAAC;IACD,OAAO,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;AAC3E,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,2CAA2C,CAAC,YAI3D;IACC,OAAO,kCAAkC,CAA+B;QACtE,EAAE,EAAE,4CAA4C;QAChD,cAAc,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,EAAE;YACtD,MAAM,KAAK,GAAG,MAAM,YAAY,CAAC,OAAO,CAAC,gCAAgC,CAAC,WAAW,CAAC,CAAC;YACvF,MAAM,MAAM,GAAG,YAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YAC9C,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;gBACxB,KAAK,EAAE,iCAAiC,CAAC,MAAM,EAAE,GAAG,CAAC,aAAa,CAAC,IAAI,GAAG,CAAC,aAAa;gBACxF,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,IAAI;aAC/C,CAAC,CAAC,CAAC;QACN,CAAC;KACF,CAAC,CAAC;AACL,CAAC","sourcesContent":["import {\n createGovernedDocumentsPdfTemplate,\n type GovernedDocumentsPdfContext,\n type PdfCollectionTemplateDefinition,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n WORKBENCH_GOVERNED_DOCUMENTS_PDF_TEMPLATE_ID,\n sanitizeWorkbenchCreationPlaneIdentity,\n type Workbench_GovernanceDocument,\n} from '@wildo-ai/platform-core-shared';\n\nimport type { DossierCompanionService } from './dossier.companion.service';\n\n/** Where the workbench keeps each governed document's NAME, keyed by the row's sanitized definition ref. */\nconst GOVERNED_DOCUMENT_TITLE_LABEL_PATH = ['resources', 'workbenchGovernanceDocuments', 'titles'] as const;\n\n/**\n * The name the workbench shows for a governed document, read from the SAME label the screen reads\n * (`resources.workbenchGovernanceDocuments.titles.<sanitized ref>`), so the PDF and the dossier call a\n * document by one name. `undefined` when the label is missing.\n */\nexport function resolveGovernedDocumentTitleLabel(labels: unknown, definitionRef: string): string | undefined {\n let node: unknown = labels;\n for (const segment of [...GOVERNED_DOCUMENT_TITLE_LABEL_PATH, sanitizeWorkbenchCreationPlaneIdentity(definitionRef)]) {\n node = node !== null && typeof node === 'object' ? (node as Record<string, unknown>)[segment] : undefined;\n }\n return typeof node === 'string' && node.trim() !== '' ? node : undefined;\n}\n\n/**\n * The workbench's \"all governed documents as PDF\" template (#1645): the engine's governed-documents\n * template, fed from the governance-documents listing.\n *\n * The listing decides WHICH documents are printed, and in which order; each row's text is read here,\n * once per export, from the application's releases and drafts. A document with neither is printed under\n * the workbench's own name for it — the title the dossier shows — and only when that label is missing\n * under its raw definition ref, which reads as the missing name it is\n * (`display-text-comes-from-i18n.md`) rather than as invented words.\n */\nexport function createWorkbenchGovernedDocumentsPdfTemplate(dependencies: {\n readonly dossier: Pick<DossierCompanionService, 'readCurrentGovernedDocumentTexts'>;\n /** The workbench's label tree for a locale (`I18nBackendService.getLabels`). */\n readonly labelsFor: (locale: string) => unknown;\n}): PdfCollectionTemplateDefinition<Workbench_GovernanceDocument, GovernedDocumentsPdfContext> {\n return createGovernedDocumentsPdfTemplate<Workbench_GovernanceDocument>({\n id: WORKBENCH_GOVERNED_DOCUMENTS_PDF_TEMPLATE_ID,\n resolveSources: async ({ rows, generatedAt, locale }) => {\n const texts = await dependencies.dossier.readCurrentGovernedDocumentTexts(generatedAt);\n const labels = dependencies.labelsFor(locale);\n return rows.map((row) => ({\n title: resolveGovernedDocumentTitleLabel(labels, row.definitionRef) ?? row.definitionRef,\n document: texts.get(row.definitionRef) ?? null,\n }));\n },\n });\n}\n"]}
@@ -0,0 +1,67 @@
1
+ import { type InterviewAnswerProposal } from '@wildo-ai/application-creation-runtime';
2
+ import type { ApplicationCreatorInputs, MetaWorkflowPlaybook } from '@wildo-ai/saas-specifications/application-creation';
3
+ import type { ZodType } from 'zod';
4
+ /**
5
+ * PROPOSE answers to interview questions the person does not know (#2129) — the companion half.
6
+ *
7
+ * The runtime owns what a proposal IS (`interview-answer-proposal.application-creation.service.ts`): which
8
+ * questions to propose, the prompt, the output contract, and the check of what comes back. This owns only the
9
+ * call and the retry, and it WRITES NOTHING: the proposals go back to the caller. A surface shows them to the
10
+ * person, and what they keep is answered through the ordinary answer door as ASSUMED; an unattended round
11
+ * (`PlaybookRunCompanionService.assumeInterviewAnswers`) records them as ASSUMED itself, through the same door.
12
+ *
13
+ * ## Why one call for every surface
14
+ *
15
+ * The plugin, the workbench conversation, the console and the unattended loop and composite runs all reach this
16
+ * one function through the companion, bound once by `PlaybookRunCompanionService.interviewAnswerProposalPorts()`,
17
+ * so a proposal reads the same whichever asked. A plugin-side proposer would have lived in prompt
18
+ * prose and left the workbench with nothing.
19
+ */
20
+ /** What a proposal reads and calls. Bound by the controller to the dossier service and the playbook lane's generation port. */
21
+ export interface InterviewAnswerProposalPorts {
22
+ /** The playbook as an answer to it is checked — the options a proposal must choose from are the ones the dossier offers. */
23
+ readonly readAnswerablePlaybook: (playbookRef: string) => Promise<MetaWorkflowPlaybook | undefined>;
24
+ /** Every playbook that interviews, for the question texts the dossier is rendered through. */
25
+ readonly listInterviewPlaybooks: () => readonly MetaWorkflowPlaybook[];
26
+ readonly readCreatorInputs: () => Promise<ApplicationCreatorInputs | undefined>;
27
+ /**
28
+ * The landed families, as the run reads them: the proposer is shown the ones the asking playbook declares as
29
+ * inputs, so a proposal for the brand's visual direction rests on the market's voice and not only on what the
30
+ * creator typed. Absent (a test, a host with no tree), proposals rest on the dossier alone.
31
+ */
32
+ readonly readArtifactsByFamily?: () => Promise<ReadonlyMap<string, unknown>>;
33
+ /**
34
+ * ONE schema-constrained model call. The playbook lane's own port (`PlaybookRunCompanionService.generateStructured`),
35
+ * so a proposal is counted by the same runaway breaker as every other lane call.
36
+ */
37
+ readonly generate: (input: {
38
+ readonly prompt: string;
39
+ readonly schema: ZodType<unknown>;
40
+ readonly label: string;
41
+ }) => Promise<{
42
+ readonly output: unknown;
43
+ readonly generationFindings?: readonly string[];
44
+ }>;
45
+ }
46
+ export interface InterviewAnswerProposalResult {
47
+ readonly playbookRef: string;
48
+ readonly proposals: readonly InterviewAnswerProposal[];
49
+ /** Asked for, and nothing admissible came back — each with the last refusal. The person answers these. */
50
+ readonly unproposed: readonly {
51
+ readonly questionRef: string;
52
+ readonly reason: string;
53
+ }[];
54
+ }
55
+ /** Attempts per proposal call, matching the generation lane's default of three attempts per output. */
56
+ export declare const INTERVIEW_ANSWER_PROPOSAL_MAXIMUM_ATTEMPTS = 3;
57
+ /**
58
+ * Propose answers for `questionRefs`, or — when none are named — for every unanswered question the
59
+ * application's interview depth does not ask of the person. Refuses, before any call, a playbook that is not
60
+ * in the catalog and a question only the person may answer.
61
+ */
62
+ export declare function proposeInterviewAnswers(ports: InterviewAnswerProposalPorts, request: {
63
+ readonly playbookRef: string;
64
+ readonly instanceKey?: string;
65
+ readonly questionRefs?: readonly string[];
66
+ }): Promise<InterviewAnswerProposalResult>;
67
+ //# sourceMappingURL=interview-answer-proposal.companion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interview-answer-proposal.companion.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/interview-answer-proposal.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,uBAAuB,EAC7B,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AACzH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEnC;;;;;;;;;;;;;;;GAeG;AAEH,+HAA+H;AAC/H,MAAM,WAAW,4BAA4B;IAC3C,4HAA4H;IAC5H,QAAQ,CAAC,sBAAsB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OA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,CAAC,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GAClH,OAAO,CAAC,6BAA6B,CAAC,CAoDxC"}
@@ -0,0 +1,64 @@
1
+ import { InterviewAnswerProposalOutputSchema, PlaybookElicitationError, admitInterviewAnswerProposals, assertInterviewProposalTargets, composeInterviewAnswerProposalPrompt, defaultInterviewProposalTargets, renderApplicationContextForProposal, renderDossierForProposal, unansweredElicitationQuestionRefs, } from '@wildo-ai/application-creation-runtime';
2
+ /** Attempts per proposal call, matching the generation lane's default of three attempts per output. */
3
+ export const INTERVIEW_ANSWER_PROPOSAL_MAXIMUM_ATTEMPTS = 3;
4
+ /**
5
+ * Propose answers for `questionRefs`, or — when none are named — for every unanswered question the
6
+ * application's interview depth does not ask of the person. Refuses, before any call, a playbook that is not
7
+ * in the catalog and a question only the person may answer.
8
+ */
9
+ export async function proposeInterviewAnswers(ports, request) {
10
+ const playbook = await ports.readAnswerablePlaybook(request.playbookRef);
11
+ if (!playbook)
12
+ throw new PlaybookElicitationError(`No compiled playbook is registered under "${request.playbookRef}", so there is nothing to propose for.`);
13
+ const creatorInputs = await ports.readCreatorInputs();
14
+ const targets = request.questionRefs !== undefined
15
+ ? [...new Set(request.questionRefs)]
16
+ : defaultInterviewProposalTargets({
17
+ playbook,
18
+ unansweredQuestionRefs: unansweredElicitationQuestionRefs(playbook, creatorInputs, request.instanceKey),
19
+ interviewDepth: creatorInputs?.interviewDepth,
20
+ });
21
+ assertInterviewProposalTargets(playbook, targets);
22
+ if (targets.length === 0)
23
+ return { playbookRef: playbook.ref, proposals: [], unproposed: [] };
24
+ const dossier = renderDossierForProposal({ catalog: ports.listInterviewPlaybooks(), creatorInputs });
25
+ const applicationContext = ports.readArtifactsByFamily
26
+ ? renderApplicationContextForProposal({ playbook, artifactsByFamily: await ports.readArtifactsByFamily() })
27
+ : undefined;
28
+ const admitted = new Map();
29
+ let remaining = targets;
30
+ let findings = [];
31
+ for (let attempt = 1; attempt <= INTERVIEW_ANSWER_PROPOSAL_MAXIMUM_ATTEMPTS && remaining.length > 0; attempt += 1) {
32
+ const generated = await ports.generate({
33
+ prompt: composeInterviewAnswerProposalPrompt({
34
+ playbook,
35
+ targetQuestionRefs: remaining,
36
+ dossier,
37
+ ...(applicationContext !== undefined ? { applicationContext } : {}),
38
+ findings,
39
+ }),
40
+ schema: InterviewAnswerProposalOutputSchema,
41
+ label: `interview-proposal:${playbook.ref}:attempt-${attempt}`,
42
+ });
43
+ const parsed = InterviewAnswerProposalOutputSchema.safeParse(generated.output);
44
+ if (!parsed.success) {
45
+ /* The provider's own refusal reason when it gave one; otherwise the schema's. Either goes back verbatim. */
46
+ findings = generated.generationFindings?.length ? generated.generationFindings : parsed.error.issues.map((issue) => `${issue.path.join('.')}: ${issue.message}`);
47
+ continue;
48
+ }
49
+ const checked = admitInterviewAnswerProposals({ playbook, targetQuestionRefs: remaining, output: parsed.data });
50
+ for (const proposal of checked.admitted)
51
+ admitted.set(proposal.questionRef, proposal);
52
+ remaining = remaining.filter((ref) => !admitted.has(ref));
53
+ findings = checked.findings;
54
+ }
55
+ return {
56
+ playbookRef: playbook.ref,
57
+ proposals: targets.flatMap((ref) => (admitted.has(ref) ? [admitted.get(ref)] : [])),
58
+ unproposed: remaining.map((questionRef) => ({
59
+ questionRef,
60
+ reason: findings.find((finding) => finding.includes(`"${questionRef}"`)) ?? findings[0] ?? 'No admissible proposal came back.',
61
+ })),
62
+ };
63
+ }
64
+ //# sourceMappingURL=interview-answer-proposal.companion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interview-answer-proposal.companion.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/interview-answer-proposal.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mCAAmC,EACnC,wBAAwB,EACxB,6BAA6B,EAC7B,8BAA8B,EAC9B,oCAAoC,EACpC,+BAA+B,EAC/B,mCAAmC,EACnC,wBAAwB,EACxB,iCAAiC,GAElC,MAAM,wCAAwC,CAAC;AAmD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MAAM,QAAQ,IAAI,OAAO,CAAC,QAAQ;YAAE,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QACtF,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;QAC1D,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IAC9B,CAAC;IACD,OAAO;QACL,WAAW,EAAE,QAAQ,CAAC,GAAG;QACzB,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACpF,UAAU,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;YAC1C,WAAW;YACX,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,WAAW,GAAG,CAAC,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,IAAI,mCAAmC;SAC/H,CAAC,CAAC;KACJ,CAAC;AACJ,CAAC","sourcesContent":["import {\n InterviewAnswerProposalOutputSchema,\n PlaybookElicitationError,\n admitInterviewAnswerProposals,\n assertInterviewProposalTargets,\n composeInterviewAnswerProposalPrompt,\n defaultInterviewProposalTargets,\n renderApplicationContextForProposal,\n renderDossierForProposal,\n unansweredElicitationQuestionRefs,\n type InterviewAnswerProposal,\n} from '@wildo-ai/application-creation-runtime';\nimport type { ApplicationCreatorInputs, MetaWorkflowPlaybook } from '@wildo-ai/saas-specifications/application-creation';\nimport type { ZodType } from 'zod';\n\n/**\n * PROPOSE answers to interview questions the person does not know (#2129) — the companion half.\n *\n * The runtime owns what a proposal IS (`interview-answer-proposal.application-creation.service.ts`): which\n * questions to propose, the prompt, the output contract, and the check of what comes back. This owns only the\n * call and the retry, and it WRITES NOTHING: the proposals go back to the caller. A surface shows them to the\n * person, and what they keep is answered through the ordinary answer door as ASSUMED; an unattended round\n * (`PlaybookRunCompanionService.assumeInterviewAnswers`) records them as ASSUMED itself, through the same door.\n *\n * ## Why one call for every surface\n *\n * The plugin, the workbench conversation, the console and the unattended loop and composite runs all reach this\n * one function through the companion, bound once by `PlaybookRunCompanionService.interviewAnswerProposalPorts()`,\n * so a proposal reads the same whichever asked. A plugin-side proposer would have lived in prompt\n * prose and left the workbench with nothing.\n */\n\n/** What a proposal reads and calls. Bound by the controller to the dossier service and the playbook lane's generation port. */\nexport interface InterviewAnswerProposalPorts {\n /** The playbook as an answer to it is checked — the options a proposal must choose from are the ones the dossier offers. */\n readonly readAnswerablePlaybook: (playbookRef: string) => Promise<MetaWorkflowPlaybook | undefined>;\n /** Every playbook that interviews, for the question texts the dossier is rendered through. */\n readonly listInterviewPlaybooks: () => readonly MetaWorkflowPlaybook[];\n readonly readCreatorInputs: () => Promise<ApplicationCreatorInputs | undefined>;\n /**\n * The landed families, as the run reads them: the proposer is shown the ones the asking playbook declares as\n * inputs, so a proposal for the brand's visual direction rests on the market's voice and not only on what the\n * creator typed. Absent (a test, a host with no tree), proposals rest on the dossier alone.\n */\n readonly readArtifactsByFamily?: () => Promise<ReadonlyMap<string, unknown>>;\n /**\n * ONE schema-constrained model call. The playbook lane's own port (`PlaybookRunCompanionService.generateStructured`),\n * so a proposal is counted by the same runaway breaker as every other lane call.\n */\n readonly generate: (input: { readonly prompt: string; readonly schema: ZodType<unknown>; readonly label: string }) => Promise<{\n readonly output: unknown;\n readonly generationFindings?: readonly string[];\n }>;\n}\n\nexport interface InterviewAnswerProposalResult {\n readonly playbookRef: string;\n readonly proposals: readonly InterviewAnswerProposal[];\n /** Asked for, and nothing admissible came back — each with the last refusal. The person answers these. */\n readonly unproposed: readonly { readonly questionRef: string; readonly reason: string }[];\n}\n\n/** Attempts per proposal call, matching the generation lane's default of three attempts per output. */\nexport const INTERVIEW_ANSWER_PROPOSAL_MAXIMUM_ATTEMPTS = 3;\n\n/**\n * Propose answers for `questionRefs`, or — when none are named — for every unanswered question the\n * application's interview depth does not ask of the person. Refuses, before any call, a playbook that is not\n * in the catalog and a question only the person may answer.\n */\nexport async function proposeInterviewAnswers(\n ports: InterviewAnswerProposalPorts,\n request: { readonly playbookRef: string; readonly instanceKey?: string; readonly questionRefs?: readonly string[] },\n): Promise<InterviewAnswerProposalResult> {\n const playbook = await ports.readAnswerablePlaybook(request.playbookRef);\n if (!playbook) throw new PlaybookElicitationError(`No compiled playbook is registered under \"${request.playbookRef}\", so there is nothing to propose for.`);\n const creatorInputs = await ports.readCreatorInputs();\n const targets = request.questionRefs !== undefined\n ? [...new Set(request.questionRefs)]\n : defaultInterviewProposalTargets({\n playbook,\n unansweredQuestionRefs: unansweredElicitationQuestionRefs(playbook, creatorInputs, request.instanceKey),\n interviewDepth: creatorInputs?.interviewDepth,\n });\n assertInterviewProposalTargets(playbook, targets);\n if (targets.length === 0) return { playbookRef: playbook.ref, proposals: [], unproposed: [] };\n\n const dossier = renderDossierForProposal({ catalog: ports.listInterviewPlaybooks(), creatorInputs });\n const applicationContext = ports.readArtifactsByFamily\n ? renderApplicationContextForProposal({ playbook, artifactsByFamily: await ports.readArtifactsByFamily() })\n : undefined;\n const admitted = new Map<string, InterviewAnswerProposal>();\n let remaining = targets;\n let findings: readonly string[] = [];\n for (let attempt = 1; attempt <= INTERVIEW_ANSWER_PROPOSAL_MAXIMUM_ATTEMPTS && remaining.length > 0; attempt += 1) {\n const generated = await ports.generate({\n prompt: composeInterviewAnswerProposalPrompt({\n playbook,\n targetQuestionRefs: remaining,\n dossier,\n ...(applicationContext !== undefined ? { applicationContext } : {}),\n findings,\n }),\n schema: InterviewAnswerProposalOutputSchema,\n label: `interview-proposal:${playbook.ref}:attempt-${attempt}`,\n });\n const parsed = InterviewAnswerProposalOutputSchema.safeParse(generated.output);\n if (!parsed.success) {\n /* The provider's own refusal reason when it gave one; otherwise the schema's. Either goes back verbatim. */\n findings = generated.generationFindings?.length ? generated.generationFindings : parsed.error.issues.map((issue) => `${issue.path.join('.')}: ${issue.message}`);\n continue;\n }\n const checked = admitInterviewAnswerProposals({ playbook, targetQuestionRefs: remaining, output: parsed.data });\n for (const proposal of checked.admitted) admitted.set(proposal.questionRef, proposal);\n remaining = remaining.filter((ref) => !admitted.has(ref));\n findings = checked.findings;\n }\n return {\n playbookRef: playbook.ref,\n proposals: targets.flatMap((ref) => (admitted.has(ref) ? [admitted.get(ref)!] : [])),\n unproposed: remaining.map((questionRef) => ({\n questionRef,\n reason: findings.find((finding) => finding.includes(`\"${questionRef}\"`)) ?? findings[0] ?? 'No admissible proposal came back.',\n })),\n };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"landed-module-import.companion.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/landed-module-import.companion.ts"],"names":[],"mappings":"AAuBA,wBAAsB,4BAA4B,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAW1H"}
1
+ {"version":3,"file":"landed-module-import.companion.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/landed-module-import.companion.ts"],"names":[],"mappings":"AAuBA,wBAAsB,4BAA4B,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAW1H"}
@@ -1 +1 @@
1
- {"version":3,"file":"landed-module-import.companion.js","sourceRoot":"","sources":["../../../../src/meta-workflows/services/landed-module-import.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAuF,CAAC;AAEhH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAAC,UAAkB,EAAE,SAAiB;IACtF,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IACvD,MAAM,GAAG,GAAG,GAAG,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,GAAG,EAAE,CAAC;IAC1D,MAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACvC,IAAI,KAAK,IAAI,KAAK,CAAC,GAAG,KAAK,GAAG;QAAE,OAAO,KAAK,CAAC,MAAM,CAAC;IACpD,MAAM,MAAM,GAAI,QAAQ,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,CAAsC,CAAC;IACzF,QAAQ,CAAC,GAAG,CAAC,UAAU,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,CAAC;IAC1C,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE;QAChB,IAAI,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,MAAM;YAAE,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAC/E,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import { stat } from 'node:fs/promises';\nimport { tsImport } from 'tsx/esm/api';\n\n/**\n * Import a LANDED TypeScript specification module, re-reading it only when the file changed.\n *\n * `tsImport` transpiles the file and its whole import graph on every call, with no cache between\n * calls. Measured on scratch-journey: 13–35 s per call for the compliance-document candidate set.\n * The dossier reads that file to know which governed documents are drafted, Home's lines read the\n * dossier on every poll, and so every Home load paid ten seconds and held the companion's other\n * reads behind it — the write-record list a pane asked for took 16–25 s in the page against 0.3 s\n * alone, and once answered 503 (#1264).\n *\n * The file's identity is its path plus the nanosecond modification time, size and inode — a landing\n * rewrites the file, so it changes all of them; nothing else can make the module say something\n * new. So this is not a cache that can go stale: the key is read from the file itself on every call\n * (one `stat`), and a changed file is imported again. Concurrent callers share one import in flight.\n *\n * A failed import is not remembered: the next call tries again, so a file caught mid-write reads\n * correctly once the write completes.\n */\nconst imported = new Map<string, { readonly key: string; readonly module: Promise<Record<string, unknown>> }>();\n\nexport async function importLandedTypeScriptModule(modulePath: string, parentURL: string): Promise<Record<string, unknown>> {\n const entry = await stat(modulePath, { bigint: true });\n const key = `${entry.mtimeNs}:${entry.size}:${entry.ino}`;\n const known = imported.get(modulePath);\n if (known && known.key === key) return known.module;\n const module = (tsImport(modulePath, { parentURL }) as Promise<Record<string, unknown>>);\n imported.set(modulePath, { key, module });\n module.catch(() => {\n if (imported.get(modulePath)?.module === module) imported.delete(modulePath);\n });\n return module;\n}\n"]}
1
+ {"version":3,"file":"landed-module-import.companion.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/landed-module-import.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAuF,CAAC;AAEhH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAAC,UAAkB,EAAE,SAAiB;IACtF,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IACvD,MAAM,GAAG,GAAG,GAAG,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,GAAG,EAAE,CAAC;IAC1D,MAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACvC,IAAI,KAAK,IAAI,KAAK,CAAC,GAAG,KAAK,GAAG;QAAE,OAAO,KAAK,CAAC,MAAM,CAAC;IACpD,MAAM,MAAM,GAAI,QAAQ,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,CAAsC,CAAC;IACzF,QAAQ,CAAC,GAAG,CAAC,UAAU,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,CAAC;IAC1C,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE;QAChB,IAAI,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,MAAM;YAAE,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAC/E,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import { stat } from 'node:fs/promises';\nimport { tsImport } from 'tsx/esm/api';\n\n/**\n * Import a LANDED TypeScript specification module, re-reading it only when the file changed.\n *\n * `tsImport` transpiles the file and its whole import graph on every call, with no cache between\n * calls. Measured on scratch-journey: 13–35 s per call for the compliance-document candidate set.\n * The dossier reads that file to know which governed documents are drafted, Home's lines read the\n * dossier on every poll, and so every Home load paid ten seconds and held the companion's other\n * reads behind it — the write-record list a pane asked for took 16–25 s in the page against 0.3 s\n * alone, and once answered 503 (#1264).\n *\n * The file's identity is its path plus the nanosecond modification time, size and inode — a landing\n * rewrites the file, so it changes all of them; nothing else can make the module say something\n * new. So this is not a cache that can go stale: the key is read from the file itself on every call\n * (one `stat`), and a changed file is imported again. Concurrent callers share one import in flight.\n *\n * A failed import is not remembered: the next call tries again, so a file caught mid-write reads\n * correctly once the write completes.\n */\nconst imported = new Map<string, { readonly key: string; readonly module: Promise<Record<string, unknown>> }>();\n\nexport async function importLandedTypeScriptModule(modulePath: string, parentURL: string): Promise<Record<string, unknown>> {\n const entry = await stat(modulePath, { bigint: true });\n const key = `${entry.mtimeNs}:${entry.size}:${entry.ino}`;\n const known = imported.get(modulePath);\n if (known && known.key === key) return known.module;\n const module = (tsImport(modulePath, { parentURL }) as Promise<Record<string, unknown>>);\n imported.set(modulePath, { key, module });\n module.catch(() => {\n if (imported.get(modulePath)?.module === module) imported.delete(modulePath);\n });\n return module;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook-execution-trace.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/playbook-execution-trace.companion.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AAE/H,OAAO,EAGL,KAAK,gCAAgC,EACrC,KAAK,yBAAyB,EAC/B,MAAM,uDAAuD,CAAC;AAC/D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wDAAwD,CAAC;AAE3G;;;;;;;;;;;;GAYG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE;IAClD,QAAQ,CAAC,YAAY,EAAE,4BAA4B,CAAC;IACpD,QAAQ,CAAC,OAAO,EAAE,gCAAgC,CAAC;IACnD,QAAQ,CAAC,IAAI,EAAE,yBAAyB,CAAC;CAC1C,GAAG,0BAA0B,CAkC7B"}
1
+ {"version":3,"file":"playbook-execution-trace.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/playbook-execution-trace.companion.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AAE/H,OAAO,EAGL,KAAK,gCAAgC,EACrC,KAAK,yBAAyB,EAC/B,MAAM,uDAAuD,CAAC;AAC/D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wDAAwD,CAAC;AAE3G;;;;;;;;;;;;GAYG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE;IAClD,QAAQ,CAAC,YAAY,EAAE,4BAA4B,CAAC;IACpD,QAAQ,CAAC,OAAO,EAAE,gCAAgC,CAAC;IACnD,QAAQ,CAAC,IAAI,EAAE,yBAAyB,CAAC;CAC1C,GAAG,0BAA0B,CAkC7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook-execution-trace.companion.service.js","sourceRoot":"","sources":["../../../../src/meta-workflows/services/playbook-execution-trace.companion.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAmC,MAAM,wCAAwC,CAAC;AAE/H,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,GAG7B,MAAM,uDAAuD,CAAC;AAG/D;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,4BAA4B,CAAC,KAI5C;IACC,OAAO;QACL,KAAK,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE;YAC1C,MAAM,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC;gBAClC,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,kGAAkG;gBAClG,4DAA4D;gBAC5D,YAAY,EAAE,0BAA0B,CAAC,KAAK;gBAC9C,IAAI;gBACJ,OAAO;gBACP,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aAC9C,CAAC,CAAC;QACL,CAAC;QACD,QAAQ,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;YAChD,MAAM,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC;gBACrC,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,YAAY,EAAE,0BAA0B,CAAC,KAAK;gBAC9C,QAAQ;gBACR,OAAO;gBACP,qEAAqE;gBACrE,sEAAsE;gBACtE,kEAAkE;gBAClE,GAAG,CAAC,MAAM;oBACR,CAAC,CAAC;wBACE,MAAM,EAAE,MAAM,KAAK,oCAAoC,CAAC,IAAI;4BAC1D,CAAC,CAAC,4BAA4B,CAAC,IAAI;4BACnC,CAAC,CAAC,4BAA4B,CAAC,IAAI;qBACtC;oBACH,CAAC,CAAC,EAAE,CAAC;aACR,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["import { PlaybookExecutionTraceArtifactFormat, type PlaybookExecutionTracePort } from '@wildo-ai/application-creation-runtime';\n\nimport {\n CompanionTraceabilityLevel,\n CompanionTraceArtifactFormat,\n type CompanionExecutionSessionContext,\n type CompanionTraceStepContext,\n} from '../../core/traceability/companion-traceability.models';\nimport type { CompanionTraceabilityService } from '../../core/traceability/companion-traceability.service';\n\n/**\n * Route application-creation execution into the companion's EXISTING traceability tree.\n *\n * The companion already mints a session per API request, writes `events.ndjson` per session and artifacts\n * per step, and the engine's agent-call sink already deposits every `invokeAgent` prompt and output there.\n * So the model half of \"what happened\" was already recorded; what was missing was everything AROUND it —\n * which brief was composed, whether the validator accepted the answer, which file was written, which\n * playbook the loop chose and why.\n *\n * Adding a second trace store would have split one run's evidence across two places. This adapter puts the\n * application-creation events in the same session directory as the LLM call they explain, so a reader opens\n * one folder and sees the whole run in order.\n */\nexport function createPlaybookExecutionTrace(input: {\n readonly traceability: CompanionTraceabilityService;\n readonly session: CompanionExecutionSessionContext;\n readonly step: CompanionTraceStepContext;\n}): PlaybookExecutionTracePort {\n return {\n event: async ({ type, summary, payload }) => {\n await input.traceability.traceEvent({\n session: input.session,\n step: input.step,\n // DEBUG, matching the companion's always-on default. An execution trace nobody can see because it\n // needs a level nobody sets is the same as no trace at all.\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type,\n summary,\n ...(payload !== undefined ? { payload } : {}),\n });\n },\n artifact: async ({ fileName, content, format }) => {\n await input.traceability.writeArtifact({\n session: input.session,\n step: input.step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n fileName,\n content,\n // The port and the companion each own a nominal format enum with the\n // same wire values; this adapter is the seam that translates one into\n // the other so neither package depends on the other's vocabulary.\n ...(format\n ? {\n format: format === PlaybookExecutionTraceArtifactFormat.TEXT\n ? CompanionTraceArtifactFormat.TEXT\n : CompanionTraceArtifactFormat.JSON,\n }\n : {}),\n });\n },\n };\n}\n"]}
1
+ {"version":3,"file":"playbook-execution-trace.companion.service.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/playbook-execution-trace.companion.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAmC,MAAM,wCAAwC,CAAC;AAE/H,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,GAG7B,MAAM,uDAAuD,CAAC;AAG/D;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,4BAA4B,CAAC,KAI5C;IACC,OAAO;QACL,KAAK,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE;YAC1C,MAAM,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC;gBAClC,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,kGAAkG;gBAClG,4DAA4D;gBAC5D,YAAY,EAAE,0BAA0B,CAAC,KAAK;gBAC9C,IAAI;gBACJ,OAAO;gBACP,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aAC9C,CAAC,CAAC;QACL,CAAC;QACD,QAAQ,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;YAChD,MAAM,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC;gBACrC,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,YAAY,EAAE,0BAA0B,CAAC,KAAK;gBAC9C,QAAQ;gBACR,OAAO;gBACP,qEAAqE;gBACrE,sEAAsE;gBACtE,kEAAkE;gBAClE,GAAG,CAAC,MAAM;oBACR,CAAC,CAAC;wBACE,MAAM,EAAE,MAAM,KAAK,oCAAoC,CAAC,IAAI;4BAC1D,CAAC,CAAC,4BAA4B,CAAC,IAAI;4BACnC,CAAC,CAAC,4BAA4B,CAAC,IAAI;qBACtC;oBACH,CAAC,CAAC,EAAE,CAAC;aACR,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["import { PlaybookExecutionTraceArtifactFormat, type PlaybookExecutionTracePort } from '@wildo-ai/application-creation-runtime';\n\nimport {\n CompanionTraceabilityLevel,\n CompanionTraceArtifactFormat,\n type CompanionExecutionSessionContext,\n type CompanionTraceStepContext,\n} from '../../core/traceability/companion-traceability.models';\nimport type { CompanionTraceabilityService } from '../../core/traceability/companion-traceability.service';\n\n/**\n * Route application-creation execution into the companion's EXISTING traceability tree.\n *\n * The companion already mints a session per API request, writes `events.ndjson` per session and artifacts\n * per step, and the engine's agent-call sink already deposits every `invokeAgent` prompt and output there.\n * So the model half of \"what happened\" was already recorded; what was missing was everything AROUND it —\n * which brief was composed, whether the validator accepted the answer, which file was written, which\n * playbook the loop chose and why.\n *\n * Adding a second trace store would have split one run's evidence across two places. This adapter puts the\n * application-creation events in the same session directory as the LLM call they explain, so a reader opens\n * one folder and sees the whole run in order.\n */\nexport function createPlaybookExecutionTrace(input: {\n readonly traceability: CompanionTraceabilityService;\n readonly session: CompanionExecutionSessionContext;\n readonly step: CompanionTraceStepContext;\n}): PlaybookExecutionTracePort {\n return {\n event: async ({ type, summary, payload }) => {\n await input.traceability.traceEvent({\n session: input.session,\n step: input.step,\n // DEBUG, matching the companion's always-on default. An execution trace nobody can see because it\n // needs a level nobody sets is the same as no trace at all.\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type,\n summary,\n ...(payload !== undefined ? { payload } : {}),\n });\n },\n artifact: async ({ fileName, content, format }) => {\n await input.traceability.writeArtifact({\n session: input.session,\n step: input.step,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n fileName,\n content,\n // The port and the companion each own a nominal format enum with the\n // same wire values; this adapter is the seam that translates one into\n // the other so neither package depends on the other's vocabulary.\n ...(format\n ? {\n format: format === PlaybookExecutionTraceArtifactFormat.TEXT\n ? CompanionTraceArtifactFormat.TEXT\n : CompanionTraceArtifactFormat.JSON,\n }\n : {}),\n });\n },\n };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook-instance.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/playbook-instance.companion.service.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAGhE,OAAO,EAEL,sCAAsC,EACtC,8BAA8B,EAM9B,KAAK,6BAA6B,EACnC,MAAM,oDAAoD,CAAC;AAG5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAgB,mBAAmB,EAAE,KAAK,oCAAoC,EAAE,MAAM,oEAAoE,CAAC;AAOlK,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAYpF,gGAAgG;AAChG,qBAAa,4BAA6B,SAAQ,KAAK;CAAG;AAE1D,+FAA+F;AAC/F,qBAAa,6BAA8B,SAAQ,KAAK;CAAG;AAE3D,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,UAAU,EAAE,6BAA6B,CAAC;IACnD,4EAA4E;IAC5E,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,2GAA2G;IAC3G,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,qBACa,gCAAgC;IAIN,OAAO,CAAC,QAAQ,CAAC,MAAM;IACR,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACnC,OAAO,CAAC,QAAQ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e,EAAE,SAAS,MAAM,EAAE,CAAC;QAC5C,QAAQ,CAAC,wBAAwB,EAAE,SAAS,MAAM,EAAE,CAAC;QACrD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;KACvB,CAAC;CA8DH"}
1
+ {"version":3,"file":"playbook-instance.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/playbook-instance.companion.service.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAGhE,OAAO,EAEL,sCAAsC,EACtC,8BAA8B,EAM9B,KAAK,6BAA6B,EACnC,MAAM,oDAAoD,CAAC;AAG5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAgB,mBAAmB,EAAE,KAAK,oCAAoC,EAAE,MAAM,oEAAoE,CAAC;AAOlK,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAYpF,gGAAgG;AAChG,qBAAa,4BAA6B,SAAQ,KAAK;CAAG;AAE1D,+FAA+F;AAC/F,qBAAa,6BAA8B,SAAQ,KAAK;CAAG;AAE3D,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,UAAU,EAAE,6BAA6B,CAAC;IACnD,4EAA4E;IAC5E,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,2GAA2G;IAC3G,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,qBACa,gCAAgC;IAIN,OAAO,CAAC,QAAQ,CAAC,MAAM;IACR,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACnC,OAAO,CAAC,QAAQ,CAAC,OA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AAS,MAAM,EAAE,CAAC;QAC5C,QAAQ,CAAC,wBAAwB,EAAE,SAAS,MAAM,EAAE,CAAC;QACrD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;KACvB,CAAC;CAmEH"}
@@ -22,6 +22,7 @@ import { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types.
22
22
  import { AcceptOrigin } from '../../claude-cli/services/accepted-change-commit.companion.service.js';
23
23
  import { APPLICATION_CREATION_AUTONOMY_POSTURE, LaneBoundaryTreatment, laneBoundaryTreatmentFor, } from '../models/playbook-run-checkpoint.models.js';
24
24
  import { readCompiledApplicationLineCatalog } from '../models/application-line-catalog.models.js';
25
+ import { serializeDossierWrite } from './dossier-write-queue.companion.utils.js';
25
26
  /** The same prefix every landed specification constant carries (issue #65): app identity lives in values, never in export names. */
26
27
  const LANDED_CONSTANT_PREFIX = 'application';
27
28
  /**
@@ -152,10 +153,16 @@ let PlaybookInstanceCompanionService = class PlaybookInstanceCompanionService {
152
153
  note: `Opened and committed (${committed.commitSha.slice(0, 8)}). Run it with instanceKey "${parsedKey.data}".`,
153
154
  };
154
155
  };
156
+ /*
157
+ * The dossier write queue INSIDE the workspace lock (#2179): the lock keeps a coding run out of the tree, the
158
+ * queue keeps an answer landing at the same moment from building on the same dossier read. Nothing holding
159
+ * the queue asks for the workspace lock, so the two cannot deadlock.
160
+ */
161
+ const recordQueued = () => serializeDossierWrite(specificationsPackageRoot, record);
155
162
  if (input.dryRun === true)
156
- return record();
163
+ return recordQueued();
157
164
  try {
158
- return await withDedicatedFileLock(getWorkspaceMutationLockPath(this.companionContext.saasRoot), record, { retries: OPEN_INSTANCE_LOCK_RETRIES });
165
+ return await withDedicatedFileLock(getWorkspaceMutationLockPath(this.companionContext.saasRoot), recordQueued, { retries: OPEN_INSTANCE_LOCK_RETRIES });
159
166
  }
160
167
  catch (error) {
161
168
  if (error instanceof PlaybookInstanceRefusedError)
@@ -263,7 +270,8 @@ let PlaybookInstanceCompanionService = class PlaybookInstanceCompanionService {
263
270
  };
264
271
  let commitSha;
265
272
  try {
266
- commitSha = await withDedicatedFileLock(getWorkspaceMutationLockPath(this.companionContext.saasRoot), record, { retries: OPEN_INSTANCE_LOCK_RETRIES });
273
+ // The dossier write queue inside the workspace lock, as when opening one (#2179).
274
+ commitSha = await withDedicatedFileLock(getWorkspaceMutationLockPath(this.companionContext.saasRoot), () => serializeDossierWrite(specificationsPackageRoot, record), { retries: OPEN_INSTANCE_LOCK_RETRIES });
267
275
  }
268
276
  catch (error) {
269
277
  if (error instanceof PlaybookInstanceRefusedError)
@@ -1 +1 @@
1
- {"version":3,"file":"playbook-instance.companion.service.js","sourceRoot":"","sources":["../../../../src/meta-workflows/services/playbook-instance.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,sBAAsB,EACtB,2BAA2B,EAC3B,qBAAqB,EACrB,2BAA2B,GAE5B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,4BAA4B,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEpG,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EACL,0BAA0B,EAC1B,sCAAsC,EAEtC,yBAAyB,EACzB,8BAA8B,EAC9B,sBAAsB,EAEtB,kBAAkB,GAEnB,MAAM,oDAAoD,CAAC;AAE5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EAAE,YAAY,EAAkE,MAAM,oEAAoE,CAAC;AAClK,OAAO,EACL,qCAAqC,EACrC,qBAAqB,EACrB,wBAAw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AC,KAAc;IACvC,MAAM,IAAI,GAAI,KAAmC,EAAE,IAAI,CAAC;IACxD,OAAO,IAAI,KAAK,SAAS,CAAC;AAC5B,CAAC","sourcesContent":["import * as path from 'node:path';\nimport { inject, injectable } from 'inversify';\n\nimport {\n PlaybookElicitationError,\n PlaybookLaneBoundaryDecision,\n landPlaybookActivation,\n landPlaybookInstanceClosure,\n refinementProducersOf,\n resolveApplicationLineScope,\n type RefinementCatalogEntry,\n} from '@wildo-ai/application-creation-runtime';\nimport { getFrameworkKnowledgePlaybook } from '@wildo-ai/framework-knowledge';\nimport { getWorkspaceMutationLockPath, withDedicatedFileLock } from '@wildo-ai/platform-config-lib';\nimport type { LoggerService } from '@wildo-ai/saas-backend-lib';\nimport { SAAS_SERVICE_TYPES } from '@wildo-ai/saas-backend-lib';\nimport { MetaWorkflow_Executor } from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflowPlaybookSchema,\n ApplicationPlaybookInstanceClosureKind,\n ApplicationSpecificationFamily,\n PlaybookInstanceKeySchema,\n secondaryLineDefinitionOfEntry,\n withPlaybookActivation,\n type ApplicationCreatorInputs,\n playbookInstanceId,\n type ApplicationPlaybookActivation,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { AcceptOrigin, DecisionRecordActor, type AcceptedChangeCommitCompanionService } from '../../claude-cli/services/accepted-change-commit.companion.service';\nimport {\n APPLICATION_CREATION_AUTONOMY_POSTURE,\n LaneBoundaryTreatment,\n laneBoundaryTreatmentFor,\n} from '../models/playbook-run-checkpoint.models';\nimport { readCompiledApplicationLineCatalog } from '../models/application-line-catalog.models';\nimport type { DossierCompanionService } from './dossier.companion.service';\nimport type { PlaybookRunCompanionService } from './playbook-run.companion.service';\n\n/** The same prefix every landed specification constant carries (issue #65): app identity lives in values, never in export names. */\nconst LANDED_CONSTANT_PREFIX = 'application';\n\n/**\n * How long opening an instance waits for the workspace lock before refusing. Short on purpose: the caller is\n * a person in a conversation, and a coding run holding the tree for minutes is a reason to say \"busy\", not to\n * hang the conversation.\n */\nconst OPEN_INSTANCE_LOCK_RETRIES = { retries: 10, minTimeout: 250, maxTimeout: 2_000 } as const;\n\n/** A request to open an instance the host cannot honour; named so the transport answers 4xx. */\nexport class PlaybookInstanceRefusedError extends Error {}\n\n/** The tree is being written by a coding run right now; named so the transport answers 409. */\nexport class PlaybookInstanceTreeBusyError extends Error {}\n\nexport interface OpenPlaybookInstanceResult {\n readonly activation: ApplicationPlaybookActivation;\n /** `<ref>@<key>`: how every surface addresses this instance from now on. */\n readonly instanceId: string;\n readonly packageRelativePath: string;\n /** The commit that recorded it; absent when the posture leaves acceptance to a person, or on a dry run. */\n readonly commitSha?: string;\n readonly note: string;\n}\n\n/**\n * Opening a playbook INSTANCE (#1609): the one act that writes the dossier's activation record, and the\n * first act that must be committed the moment it is taken.\n *\n * ## Why here, and not in the dossier service\n *\n * An answer is a working edit a person commits with the rest of their work; an activation is a decision\n * about what the application is building, and it is committed at once under the automatic posture, with its\n * purpose and actor as trailers. That needs the workspace lock and the accept door, which the dossier's\n * answers never did.\n *\n * ## The lock is taken BEFORE the write\n *\n * A coding run's baseline must never see the dossier half-recorded, and a decision the tree was too busy to\n * commit must not be left behind as an uncommitted edit. So the write and the commit happen together under\n * the lock, or neither happens: a busy tree answers \"busy, try again\" with nothing written.\n */\n@injectable()\nexport class PlaybookInstanceCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n public constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.DossierService) private readonly dossier: DossierCompanionService,\n @inject(COMPANION_SERVICE_TYPES.AcceptedChangeCommitService) private readonly acceptedChangeCommit: AcceptedChangeCommitCompanionService,\n @inject(COMPANION_SERVICE_TYPES.PlaybookRunService) private readonly playbookRuns: Pick<PlaybookRunCompanionService, 'abandonInstanceRuns' | 'readLandedFamilies'>,\n ) {\n this.logDebug = this.logger.debugByType('PlaybookInstanceCompanionService');\n }\n\n public async openInstance(input: {\n readonly playbookRef: string;\n readonly instanceKey: string;\n readonly purpose: string;\n /** Families a secondary line needs although the main line declares them not applicable (#1608); refused on any other instance. */\n readonly neededFamilies?: readonly ApplicationSpecificationFamily[];\n /** The families a refinement line re-derives (#1608); required on one, refused on any other instance. */\n readonly refinedFamilies?: readonly ApplicationSpecificationFamily[];\n readonly actor: DecisionRecordActor;\n readonly dryRun?: boolean;\n }): Promise<OpenPlaybookInstanceResult> {\n const specificationsPackageRoot = this.companionContext.resolvedSpecifications?.packageRoot;\n if (!specificationsPackageRoot) {\n throw new PlaybookInstanceRefusedError('No specifications package is declared in wildo.saas.config.ts; there is nowhere to record the instance.');\n }\n const parsedKey = PlaybookInstanceKeySchema.safeParse(input.instanceKey);\n if (!parsedKey.success) {\n throw new PlaybookInstanceRefusedError(`\"${input.instanceKey}\" is not an instance key: use a kebab-case slug, e.g. \"enterprise-segment\".`);\n }\n if (input.purpose.trim().length === 0) {\n throw new PlaybookInstanceRefusedError('An instance is opened FOR something: say what, in the creator\\'s terms.');\n }\n const playbook = MetaWorkflowPlaybookSchema.safeParse(getFrameworkKnowledgePlaybook(input.playbookRef)?.playbook);\n if (!playbook.success) {\n throw new PlaybookInstanceRefusedError(`No compiled playbook is registered under \"${input.playbookRef}\".`);\n }\n /*\n * The same rule the run applies, stated where the instance is OPENED so nobody opens one that could\n * never run: a playbook acting on the application as a whole has no instances.\n */\n const executor = playbook.data.executor;\n if (executor === MetaWorkflow_Executor.CODING_AGENT || executor === MetaWorkflow_Executor.DETERMINISTIC_CLI || executor === MetaWorkflow_Executor.HUMAN) {\n throw new PlaybookInstanceRefusedError(`\"${input.playbookRef}\" acts on the application as a whole, so it has no instances.`);\n }\n\n const posture = laneBoundaryTreatmentFor(APPLICATION_CREATION_AUTONOMY_POSTURE, PlaybookLaneBoundaryDecision.APPROVE_RESULT);\n const commits = posture === LaneBoundaryTreatment.NOTIFY_AND_PROCEED && input.dryRun !== true;\n const record = async (): Promise<OpenPlaybookInstanceResult> => {\n const current = await this.dossier.readCreatorInputs();\n if (input.refinedFamilies !== undefined && input.refinedFamilies.length > 0) {\n await this.assertRefinable({\n entryPlaybookRef: input.playbookRef, instanceKey: parsedKey.data, purpose: input.purpose, families: input.refinedFamilies,\n ...(input.neededFamilies ? { neededFamilies: input.neededFamilies } : {}), current,\n });\n }\n let landed: Awaited<ReturnType<typeof landPlaybookActivation>>;\n try {\n landed = await landPlaybookActivation({\n specificationsPackageRoot,\n constantPrefix: LANDED_CONSTANT_PREFIX,\n playbook: playbook.data,\n current,\n instanceKey: parsedKey.data,\n purpose: input.purpose,\n ...(input.neededFamilies !== undefined ? { neededFamilies: input.neededFamilies } : {}),\n ...(input.refinedFamilies !== undefined ? { refinedFamilies: input.refinedFamilies } : {}),\n ...(input.dryRun === true ? { dryRun: true } : {}),\n });\n } catch (error) {\n // A closed instance re-opened, or families asked of an instance that is not a line: the caller's mistake, named.\n if (error instanceof PlaybookElicitationError) throw new PlaybookInstanceRefusedError(error.message);\n throw error;\n }\n const instanceId = playbookInstanceId(input.playbookRef, parsedKey.data);\n const specificationsRelativeRoot = path.relative(this.companionContext.saasRoot, specificationsPackageRoot);\n const written = [landed.packageRelativePath, ...landed.wiringEdits.map((edit) => edit.packageRelativePath)]\n .map((relative) => path.posix.join(specificationsRelativeRoot, relative));\n if (!commits) {\n return {\n activation: landed.activation,\n instanceId,\n packageRelativePath: landed.packageRelativePath,\n note: input.dryRun === true\n ? 'Dry run: nothing was written.'\n : 'Recorded as a working edit: the autonomy posture leaves committing it to you.',\n };\n }\n const committed = await this.acceptedChangeCommit.commitDecisionRecord({\n paths: written,\n summary: `Open the playbook instance ${instanceId}${landed.activation.neededFamilies ? ` (needs ${landed.activation.neededFamilies.join(', ')})` : ''}${landed.activation.refinedFamilies ? ` (refines ${landed.activation.refinedFamilies.join(', ')})` : ''}`,\n purpose: input.purpose,\n actor: input.actor,\n origin: AcceptOrigin.AUTONOMY_POSTURE,\n });\n this.logDebug('Playbook instance opened', { instanceId, commitSha: committed.commitSha });\n return {\n activation: landed.activation,\n instanceId,\n packageRelativePath: landed.packageRelativePath,\n commitSha: committed.commitSha,\n note: `Opened and committed (${committed.commitSha.slice(0, 8)}). Run it with instanceKey \"${parsedKey.data}\".`,\n };\n };\n if (input.dryRun === true) return record();\n try {\n return await withDedicatedFileLock(getWorkspaceMutationLockPath(this.companionContext.saasRoot), record, { retries: OPEN_INSTANCE_LOCK_RETRIES });\n } catch (error) {\n if (error instanceof PlaybookInstanceRefusedError) throw error;\n if (isLockUnavailable(error)) {\n throw new PlaybookInstanceTreeBusyError('The application\\'s working tree is being written right now (a coding run holds it). Nothing was recorded; try again in a moment.');\n }\n throw error;\n }\n }\n\n /**\n * What a refinement line names must be something it can refine (#1608). Refused with the reason otherwise,\n * before anything is written:\n * - the instance must BE a refinement line (the landing refuses targets elsewhere too; saying so here first\n * gives the right reason);\n * - a producer the line admits must re-derive the family from its own prior output, among the playbooks\n * the application's line actually runs;\n * - the family must apply to the application, counting the families this same request needs back;\n * - the application must already HOLD it: a refinement changes what exists, and a family nobody produced\n * yet would be authored from scratch under the name of a refinement.\n */\n private async assertRefinable(input: {\n readonly entryPlaybookRef: string;\n readonly instanceKey: string;\n readonly purpose: string;\n readonly families: readonly ApplicationSpecificationFamily[];\n readonly neededFamilies?: readonly ApplicationSpecificationFamily[];\n readonly current: ApplicationCreatorInputs | undefined;\n }): Promise<void> {\n if (secondaryLineDefinitionOfEntry(input.entryPlaybookRef)?.namesRefinedFamilies !== true) {\n throw new PlaybookInstanceRefusedError(`\"${input.entryPlaybookRef}\" is not a refinement line's entry, so an instance of it names no families to refine.`);\n }\n /*\n * The dossier as it would stand with this line open, so the families it needs back already apply. A re-open\n * that names none keeps what the line already needs (the landing does the same), so it is counted here too.\n */\n const neededFamilies = input.neededFamilies\n ?? input.current?.activations?.[playbookInstanceId(input.entryPlaybookRef, input.instanceKey)]?.neededFamilies;\n const withLine = withPlaybookActivation(input.current, {\n playbookRef: input.entryPlaybookRef, instanceKey: input.instanceKey, purpose: input.purpose,\n ...(neededFamilies && neededFamilies.length > 0 ? { neededFamilies: [...neededFamilies] } : {}),\n });\n const lineCatalog = readCompiledApplicationLineCatalog();\n const scope = resolveApplicationLineScope({ catalog: lineCatalog, creatorInputs: withLine });\n const entry = getFrameworkKnowledgePlaybook(input.entryPlaybookRef)?.playbook as RefinementCatalogEntry | undefined;\n const catalog: RefinementCatalogEntry[] = [\n ...(entry ? [entry] : []),\n ...(entry?.method?.choreography?.admits ?? []).flatMap((ref) => {\n const child = getFrameworkKnowledgePlaybook(ref)?.playbook as RefinementCatalogEntry | undefined;\n return child ? [child] : [];\n }),\n ];\n const inapplicable = input.families.filter((family) => scope.notApplicableFamilies.has(family));\n if (inapplicable.length > 0) {\n throw new PlaybookInstanceRefusedError(\n `${inapplicable.join(', ')} does not apply to this kind of application, so there is nothing to refine. A feature line that needs it back can bring it in.`,\n );\n }\n const unrefinable = input.families.filter((family) => !refinementProducersOf(catalog, input.entryPlaybookRef, family).some((ref) => scope.admittedPlaybookRefs.has(ref)));\n if (unrefinable.length > 0) {\n throw new PlaybookInstanceRefusedError(\n `Nothing this application runs refines ${unrefinable.join(', ')} from what it already holds, so a refinement line cannot change it. Refinable: the families a model re-derives from their own prior output (the requirements, the feature drafts, the plans, the brand, the roadmap).`,\n );\n }\n const landed = await this.playbookRuns.readLandedFamilies();\n const absent = input.families.filter((family) => !landed.has(family));\n if (absent.length > 0) {\n throw new PlaybookInstanceRefusedError(\n `The application does not hold ${absent.join(', ')} yet, so there is nothing to refine: a refinement changes what exists. Let the main line produce it first.`,\n );\n }\n }\n\n /**\n * CLOSE an instance (#1608, #1609 R10): completed, or abandoned. Recorded and committed at once under the\n * workspace lock, like opening one, with the reason as the purpose trailer. What it contributed stays, marked\n * with it. ABANDONING also cancels its runs waiting on a person and consumes its interrupted progress; a run\n * in flight stops at its next round, when its selector reads the closure.\n */\n public async closeInstance(input: {\n readonly playbookRef: string;\n readonly instanceKey: string;\n readonly kind: ApplicationPlaybookInstanceClosureKind;\n readonly reason?: string;\n readonly actor: DecisionRecordActor;\n }): Promise<{\n readonly instanceId: string;\n readonly commitSha?: string;\n readonly withdrawnRunIds: readonly string[];\n readonly consumedCheckpointRunIds: readonly string[];\n readonly note: string;\n }> {\n const specificationsPackageRoot = this.companionContext.resolvedSpecifications?.packageRoot;\n if (!specificationsPackageRoot) {\n throw new PlaybookInstanceRefusedError('No specifications package is declared in wildo.saas.config.ts; there is nowhere to record the closure.');\n }\n const instanceId = playbookInstanceId(input.playbookRef, input.instanceKey);\n const reason = input.reason?.trim() || undefined;\n const commits = laneBoundaryTreatmentFor(APPLICATION_CREATION_AUTONOMY_POSTURE, PlaybookLaneBoundaryDecision.APPROVE_RESULT) === LaneBoundaryTreatment.NOTIFY_AND_PROCEED;\n const record = async (): Promise<string | undefined> => {\n let landed: Awaited<ReturnType<typeof landPlaybookInstanceClosure>>;\n try {\n landed = await landPlaybookInstanceClosure({\n specificationsPackageRoot,\n constantPrefix: LANDED_CONSTANT_PREFIX,\n current: await this.dossier.readCreatorInputs(),\n playbookRef: input.playbookRef,\n instanceKey: input.instanceKey,\n closure: { kind: input.kind, ...(reason ? { reason } : {}) },\n });\n } catch (error) {\n // An instance nobody opened, or one already closed: the caller's mistake, named.\n if (error instanceof PlaybookElicitationError) throw new PlaybookInstanceRefusedError(error.message);\n throw error;\n }\n if (!commits) return undefined;\n const specificationsRelativeRoot = path.relative(this.companionContext.saasRoot, specificationsPackageRoot);\n const written = [landed.packageRelativePath, ...landed.wiringEdits.map((edit) => edit.packageRelativePath)]\n .map((relative) => path.posix.join(specificationsRelativeRoot, relative));\n const committed = await this.acceptedChangeCommit.commitDecisionRecord({\n paths: written,\n summary: `Close the playbook instance ${instanceId} (${input.kind})`,\n purpose: reason ?? `The instance is ${input.kind}.`,\n actor: input.actor,\n origin: AcceptOrigin.AUTONOMY_POSTURE,\n });\n return committed.commitSha;\n };\n let commitSha: string | undefined;\n try {\n commitSha = await withDedicatedFileLock(getWorkspaceMutationLockPath(this.companionContext.saasRoot), record, { retries: OPEN_INSTANCE_LOCK_RETRIES });\n } catch (error) {\n if (error instanceof PlaybookInstanceRefusedError) throw error;\n if (isLockUnavailable(error)) {\n throw new PlaybookInstanceTreeBusyError('The application\\'s working tree is being written right now (a coding run holds it). Nothing was recorded; try again in a moment.');\n }\n throw error;\n }\n /* After the record, and outside the lock: the closure is the decision, and clearing its runs follows from it. */\n const cleared = input.kind === ApplicationPlaybookInstanceClosureKind.ABANDONED\n ? await this.playbookRuns.abandonInstanceRuns({ playbookRef: input.playbookRef, instanceKey: input.instanceKey })\n : { withdrawnRunIds: [], consumedCheckpointRunIds: [] };\n this.logDebug('Playbook instance closed', { instanceId, kind: input.kind, commitSha, ...cleared });\n return {\n instanceId,\n ...(commitSha ? { commitSha } : {}),\n ...cleared,\n note: `${instanceId} is ${input.kind}.${commitSha ? ` Committed (${commitSha.slice(0, 8)}).` : ' Recorded as a working edit: the autonomy posture leaves committing it to you.'}`\n + (input.kind === ApplicationPlaybookInstanceClosureKind.ABANDONED\n ? ` ${cleared.withdrawnRunIds.length} waiting run(s) withdrawn, ${cleared.consumedCheckpointRunIds.length} interrupted checkpoint(s) consumed; a run in flight stops at its next round.`\n : ''),\n };\n }\n}\n\n/** The file lock's own \"could not acquire\" failure, told apart from a failure of the work it guards. */\nfunction isLockUnavailable(error: unknown): boolean {\n const code = (error as { code?: unknown } | null)?.code;\n return code === 'ELOCKED';\n}\n"]}
1
+ {"version":3,"file":"playbook-instance.companion.service.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/playbook-instance.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,MA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;YACL,UAAU;YACV,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACnC,GAAG,OAAO;YACV,IAAI,EAAE,GAAG,UAAU,OAAO,KAAK,CAAC,IAAI,IAAI,SAAS,CAAC,CAAC,CAAC,eAAe,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,gFAAgF,EAAE;kBAC7K,CAAC,KAAK,CAAC,IAAI,KAAK,sCAAsC,CAAC,SAAS;oBAChE,CAAC,CAAC,IAAI,OAAO,CAAC,eAAe,CAAC,MAAM,8BAA8B,OAAO,CAAC,wBAAwB,CAAC,MAAM,+EAA+E;oBACxL,CAAC,CAAC,EAAE,CAAC;SACV,CAAC;IACJ,CAAC;CACF,CAAA;AAhRY,gCAAgC;IAD5C,UAAU,EAAE;IAKR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;IAChD,WAAA,MAAM,CAAC,uBAAuB,CAAC,cAAc,CAAC,CAAA;IAC9C,WAAA,MAAM,CAAC,uBAAuB,CAAC,2BAA2B,CAAC,CAAA;IAC3D,WAAA,MAAM,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,CAAA;;GAR1C,gCAAgC,CAgR5C;;AAED,wGAAwG;AACxG,SAAS,iBAAiB,CAAC,KAAc;IACvC,MAAM,IAAI,GAAI,KAAmC,EAAE,IAAI,CAAC;IACxD,OAAO,IAAI,KAAK,SAAS,CAAC;AAC5B,CAAC","sourcesContent":["import * as path from 'node:path';\nimport { inject, injectable } from 'inversify';\n\nimport {\n PlaybookElicitationError,\n PlaybookLaneBoundaryDecision,\n landPlaybookActivation,\n landPlaybookInstanceClosure,\n refinementProducersOf,\n resolveApplicationLineScope,\n type RefinementCatalogEntry,\n} from '@wildo-ai/application-creation-runtime';\nimport { getFrameworkKnowledgePlaybook } from '@wildo-ai/framework-knowledge';\nimport { getWorkspaceMutationLockPath, withDedicatedFileLock } from '@wildo-ai/platform-config-lib';\nimport type { LoggerService } from '@wildo-ai/saas-backend-lib';\nimport { SAAS_SERVICE_TYPES } from '@wildo-ai/saas-backend-lib';\nimport { MetaWorkflow_Executor } from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflowPlaybookSchema,\n ApplicationPlaybookInstanceClosureKind,\n ApplicationSpecificationFamily,\n PlaybookInstanceKeySchema,\n secondaryLineDefinitionOfEntry,\n withPlaybookActivation,\n type ApplicationCreatorInputs,\n playbookInstanceId,\n type ApplicationPlaybookActivation,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { AcceptOrigin, DecisionRecordActor, type AcceptedChangeCommitCompanionService } from '../../claude-cli/services/accepted-change-commit.companion.service';\nimport {\n APPLICATION_CREATION_AUTONOMY_POSTURE,\n LaneBoundaryTreatment,\n laneBoundaryTreatmentFor,\n} from '../models/playbook-run-checkpoint.models';\nimport { readCompiledApplicationLineCatalog } from '../models/application-line-catalog.models';\nimport type { DossierCompanionService } from './dossier.companion.service';\nimport { serializeDossierWrite } from './dossier-write-queue.companion.utils';\nimport type { PlaybookRunCompanionService } from './playbook-run.companion.service';\n\n/** The same prefix every landed specification constant carries (issue #65): app identity lives in values, never in export names. */\nconst LANDED_CONSTANT_PREFIX = 'application';\n\n/**\n * How long opening an instance waits for the workspace lock before refusing. Short on purpose: the caller is\n * a person in a conversation, and a coding run holding the tree for minutes is a reason to say \"busy\", not to\n * hang the conversation.\n */\nconst OPEN_INSTANCE_LOCK_RETRIES = { retries: 10, minTimeout: 250, maxTimeout: 2_000 } as const;\n\n/** A request to open an instance the host cannot honour; named so the transport answers 4xx. */\nexport class PlaybookInstanceRefusedError extends Error {}\n\n/** The tree is being written by a coding run right now; named so the transport answers 409. */\nexport class PlaybookInstanceTreeBusyError extends Error {}\n\nexport interface OpenPlaybookInstanceResult {\n readonly activation: ApplicationPlaybookActivation;\n /** `<ref>@<key>`: how every surface addresses this instance from now on. */\n readonly instanceId: string;\n readonly packageRelativePath: string;\n /** The commit that recorded it; absent when the posture leaves acceptance to a person, or on a dry run. */\n readonly commitSha?: string;\n readonly note: string;\n}\n\n/**\n * Opening a playbook INSTANCE (#1609): the one act that writes the dossier's activation record, and the\n * first act that must be committed the moment it is taken.\n *\n * ## Why here, and not in the dossier service\n *\n * An answer is a working edit a person commits with the rest of their work; an activation is a decision\n * about what the application is building, and it is committed at once under the automatic posture, with its\n * purpose and actor as trailers. That needs the workspace lock and the accept door, which the dossier's\n * answers never did.\n *\n * ## The lock is taken BEFORE the write\n *\n * A coding run's baseline must never see the dossier half-recorded, and a decision the tree was too busy to\n * commit must not be left behind as an uncommitted edit. So the write and the commit happen together under\n * the lock, or neither happens: a busy tree answers \"busy, try again\" with nothing written.\n */\n@injectable()\nexport class PlaybookInstanceCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n public constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n @inject(COMPANION_SERVICE_TYPES.DossierService) private readonly dossier: DossierCompanionService,\n @inject(COMPANION_SERVICE_TYPES.AcceptedChangeCommitService) private readonly acceptedChangeCommit: AcceptedChangeCommitCompanionService,\n @inject(COMPANION_SERVICE_TYPES.PlaybookRunService) private readonly playbookRuns: Pick<PlaybookRunCompanionService, 'abandonInstanceRuns' | 'readLandedFamilies'>,\n ) {\n this.logDebug = this.logger.debugByType('PlaybookInstanceCompanionService');\n }\n\n public async openInstance(input: {\n readonly playbookRef: string;\n readonly instanceKey: string;\n readonly purpose: string;\n /** Families a secondary line needs although the main line declares them not applicable (#1608); refused on any other instance. */\n readonly neededFamilies?: readonly ApplicationSpecificationFamily[];\n /** The families a refinement line re-derives (#1608); required on one, refused on any other instance. */\n readonly refinedFamilies?: readonly ApplicationSpecificationFamily[];\n readonly actor: DecisionRecordActor;\n readonly dryRun?: boolean;\n }): Promise<OpenPlaybookInstanceResult> {\n const specificationsPackageRoot = this.companionContext.resolvedSpecifications?.packageRoot;\n if (!specificationsPackageRoot) {\n throw new PlaybookInstanceRefusedError('No specifications package is declared in wildo.saas.config.ts; there is nowhere to record the instance.');\n }\n const parsedKey = PlaybookInstanceKeySchema.safeParse(input.instanceKey);\n if (!parsedKey.success) {\n throw new PlaybookInstanceRefusedError(`\"${input.instanceKey}\" is not an instance key: use a kebab-case slug, e.g. \"enterprise-segment\".`);\n }\n if (input.purpose.trim().length === 0) {\n throw new PlaybookInstanceRefusedError('An instance is opened FOR something: say what, in the creator\\'s terms.');\n }\n const playbook = MetaWorkflowPlaybookSchema.safeParse(getFrameworkKnowledgePlaybook(input.playbookRef)?.playbook);\n if (!playbook.success) {\n throw new PlaybookInstanceRefusedError(`No compiled playbook is registered under \"${input.playbookRef}\".`);\n }\n /*\n * The same rule the run applies, stated where the instance is OPENED so nobody opens one that could\n * never run: a playbook acting on the application as a whole has no instances.\n */\n const executor = playbook.data.executor;\n if (executor === MetaWorkflow_Executor.CODING_AGENT || executor === MetaWorkflow_Executor.DETERMINISTIC_CLI || executor === MetaWorkflow_Executor.HUMAN) {\n throw new PlaybookInstanceRefusedError(`\"${input.playbookRef}\" acts on the application as a whole, so it has no instances.`);\n }\n\n const posture = laneBoundaryTreatmentFor(APPLICATION_CREATION_AUTONOMY_POSTURE, PlaybookLaneBoundaryDecision.APPROVE_RESULT);\n const commits = posture === LaneBoundaryTreatment.NOTIFY_AND_PROCEED && input.dryRun !== true;\n const record = async (): Promise<OpenPlaybookInstanceResult> => {\n const current = await this.dossier.readCreatorInputs();\n if (input.refinedFamilies !== undefined && input.refinedFamilies.length > 0) {\n await this.assertRefinable({\n entryPlaybookRef: input.playbookRef, instanceKey: parsedKey.data, purpose: input.purpose, families: input.refinedFamilies,\n ...(input.neededFamilies ? { neededFamilies: input.neededFamilies } : {}), current,\n });\n }\n let landed: Awaited<ReturnType<typeof landPlaybookActivation>>;\n try {\n landed = await landPlaybookActivation({\n specificationsPackageRoot,\n constantPrefix: LANDED_CONSTANT_PREFIX,\n playbook: playbook.data,\n current,\n instanceKey: parsedKey.data,\n purpose: input.purpose,\n ...(input.neededFamilies !== undefined ? { neededFamilies: input.neededFamilies } : {}),\n ...(input.refinedFamilies !== undefined ? { refinedFamilies: input.refinedFamilies } : {}),\n ...(input.dryRun === true ? { dryRun: true } : {}),\n });\n } catch (error) {\n // A closed instance re-opened, or families asked of an instance that is not a line: the caller's mistake, named.\n if (error instanceof PlaybookElicitationError) throw new PlaybookInstanceRefusedError(error.message);\n throw error;\n }\n const instanceId = playbookInstanceId(input.playbookRef, parsedKey.data);\n const specificationsRelativeRoot = path.relative(this.companionContext.saasRoot, specificationsPackageRoot);\n const written = [landed.packageRelativePath, ...landed.wiringEdits.map((edit) => edit.packageRelativePath)]\n .map((relative) => path.posix.join(specificationsRelativeRoot, relative));\n if (!commits) {\n return {\n activation: landed.activation,\n instanceId,\n packageRelativePath: landed.packageRelativePath,\n note: input.dryRun === true\n ? 'Dry run: nothing was written.'\n : 'Recorded as a working edit: the autonomy posture leaves committing it to you.',\n };\n }\n const committed = await this.acceptedChangeCommit.commitDecisionRecord({\n paths: written,\n summary: `Open the playbook instance ${instanceId}${landed.activation.neededFamilies ? ` (needs ${landed.activation.neededFamilies.join(', ')})` : ''}${landed.activation.refinedFamilies ? ` (refines ${landed.activation.refinedFamilies.join(', ')})` : ''}`,\n purpose: input.purpose,\n actor: input.actor,\n origin: AcceptOrigin.AUTONOMY_POSTURE,\n });\n this.logDebug('Playbook instance opened', { instanceId, commitSha: committed.commitSha });\n return {\n activation: landed.activation,\n instanceId,\n packageRelativePath: landed.packageRelativePath,\n commitSha: committed.commitSha,\n note: `Opened and committed (${committed.commitSha.slice(0, 8)}). Run it with instanceKey \"${parsedKey.data}\".`,\n };\n };\n /*\n * The dossier write queue INSIDE the workspace lock (#2179): the lock keeps a coding run out of the tree, the\n * queue keeps an answer landing at the same moment from building on the same dossier read. Nothing holding\n * the queue asks for the workspace lock, so the two cannot deadlock.\n */\n const recordQueued = (): Promise<OpenPlaybookInstanceResult> => serializeDossierWrite(specificationsPackageRoot, record);\n if (input.dryRun === true) return recordQueued();\n try {\n return await withDedicatedFileLock(getWorkspaceMutationLockPath(this.companionContext.saasRoot), recordQueued, { retries: OPEN_INSTANCE_LOCK_RETRIES });\n } catch (error) {\n if (error instanceof PlaybookInstanceRefusedError) throw error;\n if (isLockUnavailable(error)) {\n throw new PlaybookInstanceTreeBusyError('The application\\'s working tree is being written right now (a coding run holds it). Nothing was recorded; try again in a moment.');\n }\n throw error;\n }\n }\n\n /**\n * What a refinement line names must be something it can refine (#1608). Refused with the reason otherwise,\n * before anything is written:\n * - the instance must BE a refinement line (the landing refuses targets elsewhere too; saying so here first\n * gives the right reason);\n * - a producer the line admits must re-derive the family from its own prior output, among the playbooks\n * the application's line actually runs;\n * - the family must apply to the application, counting the families this same request needs back;\n * - the application must already HOLD it: a refinement changes what exists, and a family nobody produced\n * yet would be authored from scratch under the name of a refinement.\n */\n private async assertRefinable(input: {\n readonly entryPlaybookRef: string;\n readonly instanceKey: string;\n readonly purpose: string;\n readonly families: readonly ApplicationSpecificationFamily[];\n readonly neededFamilies?: readonly ApplicationSpecificationFamily[];\n readonly current: ApplicationCreatorInputs | undefined;\n }): Promise<void> {\n if (secondaryLineDefinitionOfEntry(input.entryPlaybookRef)?.namesRefinedFamilies !== true) {\n throw new PlaybookInstanceRefusedError(`\"${input.entryPlaybookRef}\" is not a refinement line's entry, so an instance of it names no families to refine.`);\n }\n /*\n * The dossier as it would stand with this line open, so the families it needs back already apply. A re-open\n * that names none keeps what the line already needs (the landing does the same), so it is counted here too.\n */\n const neededFamilies = input.neededFamilies\n ?? input.current?.activations?.[playbookInstanceId(input.entryPlaybookRef, input.instanceKey)]?.neededFamilies;\n const withLine = withPlaybookActivation(input.current, {\n playbookRef: input.entryPlaybookRef, instanceKey: input.instanceKey, purpose: input.purpose,\n ...(neededFamilies && neededFamilies.length > 0 ? { neededFamilies: [...neededFamilies] } : {}),\n });\n const lineCatalog = readCompiledApplicationLineCatalog();\n const scope = resolveApplicationLineScope({ catalog: lineCatalog, creatorInputs: withLine });\n const entry = getFrameworkKnowledgePlaybook(input.entryPlaybookRef)?.playbook as RefinementCatalogEntry | undefined;\n const catalog: RefinementCatalogEntry[] = [\n ...(entry ? [entry] : []),\n ...(entry?.method?.choreography?.admits ?? []).flatMap((ref) => {\n const child = getFrameworkKnowledgePlaybook(ref)?.playbook as RefinementCatalogEntry | undefined;\n return child ? [child] : [];\n }),\n ];\n const inapplicable = input.families.filter((family) => scope.notApplicableFamilies.has(family));\n if (inapplicable.length > 0) {\n throw new PlaybookInstanceRefusedError(\n `${inapplicable.join(', ')} does not apply to this kind of application, so there is nothing to refine. A feature line that needs it back can bring it in.`,\n );\n }\n const unrefinable = input.families.filter((family) => !refinementProducersOf(catalog, input.entryPlaybookRef, family).some((ref) => scope.admittedPlaybookRefs.has(ref)));\n if (unrefinable.length > 0) {\n throw new PlaybookInstanceRefusedError(\n `Nothing this application runs refines ${unrefinable.join(', ')} from what it already holds, so a refinement line cannot change it. Refinable: the families a model re-derives from their own prior output (the requirements, the feature drafts, the plans, the brand, the roadmap).`,\n );\n }\n const landed = await this.playbookRuns.readLandedFamilies();\n const absent = input.families.filter((family) => !landed.has(family));\n if (absent.length > 0) {\n throw new PlaybookInstanceRefusedError(\n `The application does not hold ${absent.join(', ')} yet, so there is nothing to refine: a refinement changes what exists. Let the main line produce it first.`,\n );\n }\n }\n\n /**\n * CLOSE an instance (#1608, #1609 R10): completed, or abandoned. Recorded and committed at once under the\n * workspace lock, like opening one, with the reason as the purpose trailer. What it contributed stays, marked\n * with it. ABANDONING also cancels its runs waiting on a person and consumes its interrupted progress; a run\n * in flight stops at its next round, when its selector reads the closure.\n */\n public async closeInstance(input: {\n readonly playbookRef: string;\n readonly instanceKey: string;\n readonly kind: ApplicationPlaybookInstanceClosureKind;\n readonly reason?: string;\n readonly actor: DecisionRecordActor;\n }): Promise<{\n readonly instanceId: string;\n readonly commitSha?: string;\n readonly withdrawnRunIds: readonly string[];\n readonly consumedCheckpointRunIds: readonly string[];\n readonly note: string;\n }> {\n const specificationsPackageRoot = this.companionContext.resolvedSpecifications?.packageRoot;\n if (!specificationsPackageRoot) {\n throw new PlaybookInstanceRefusedError('No specifications package is declared in wildo.saas.config.ts; there is nowhere to record the closure.');\n }\n const instanceId = playbookInstanceId(input.playbookRef, input.instanceKey);\n const reason = input.reason?.trim() || undefined;\n const commits = laneBoundaryTreatmentFor(APPLICATION_CREATION_AUTONOMY_POSTURE, PlaybookLaneBoundaryDecision.APPROVE_RESULT) === LaneBoundaryTreatment.NOTIFY_AND_PROCEED;\n const record = async (): Promise<string | undefined> => {\n let landed: Awaited<ReturnType<typeof landPlaybookInstanceClosure>>;\n try {\n landed = await landPlaybookInstanceClosure({\n specificationsPackageRoot,\n constantPrefix: LANDED_CONSTANT_PREFIX,\n current: await this.dossier.readCreatorInputs(),\n playbookRef: input.playbookRef,\n instanceKey: input.instanceKey,\n closure: { kind: input.kind, ...(reason ? { reason } : {}) },\n });\n } catch (error) {\n // An instance nobody opened, or one already closed: the caller's mistake, named.\n if (error instanceof PlaybookElicitationError) throw new PlaybookInstanceRefusedError(error.message);\n throw error;\n }\n if (!commits) return undefined;\n const specificationsRelativeRoot = path.relative(this.companionContext.saasRoot, specificationsPackageRoot);\n const written = [landed.packageRelativePath, ...landed.wiringEdits.map((edit) => edit.packageRelativePath)]\n .map((relative) => path.posix.join(specificationsRelativeRoot, relative));\n const committed = await this.acceptedChangeCommit.commitDecisionRecord({\n paths: written,\n summary: `Close the playbook instance ${instanceId} (${input.kind})`,\n purpose: reason ?? `The instance is ${input.kind}.`,\n actor: input.actor,\n origin: AcceptOrigin.AUTONOMY_POSTURE,\n });\n return committed.commitSha;\n };\n let commitSha: string | undefined;\n try {\n // The dossier write queue inside the workspace lock, as when opening one (#2179).\n commitSha = await withDedicatedFileLock(\n getWorkspaceMutationLockPath(this.companionContext.saasRoot),\n () => serializeDossierWrite(specificationsPackageRoot, record),\n { retries: OPEN_INSTANCE_LOCK_RETRIES },\n );\n } catch (error) {\n if (error instanceof PlaybookInstanceRefusedError) throw error;\n if (isLockUnavailable(error)) {\n throw new PlaybookInstanceTreeBusyError('The application\\'s working tree is being written right now (a coding run holds it). Nothing was recorded; try again in a moment.');\n }\n throw error;\n }\n /* After the record, and outside the lock: the closure is the decision, and clearing its runs follows from it. */\n const cleared = input.kind === ApplicationPlaybookInstanceClosureKind.ABANDONED\n ? await this.playbookRuns.abandonInstanceRuns({ playbookRef: input.playbookRef, instanceKey: input.instanceKey })\n : { withdrawnRunIds: [], consumedCheckpointRunIds: [] };\n this.logDebug('Playbook instance closed', { instanceId, kind: input.kind, commitSha, ...cleared });\n return {\n instanceId,\n ...(commitSha ? { commitSha } : {}),\n ...cleared,\n note: `${instanceId} is ${input.kind}.${commitSha ? ` Committed (${commitSha.slice(0, 8)}).` : ' Recorded as a working edit: the autonomy posture leaves committing it to you.'}`\n + (input.kind === ApplicationPlaybookInstanceClosureKind.ABANDONED\n ? ` ${cleared.withdrawnRunIds.length} waiting run(s) withdrawn, ${cleared.consumedCheckpointRunIds.length} interrupted checkpoint(s) consumed; a run in flight stops at its next round.`\n : ''),\n };\n }\n}\n\n/** The file lock's own \"could not acquire\" failure, told apart from a failure of the work it guards. */\nfunction isLockUnavailable(error: unknown): boolean {\n const code = (error as { code?: unknown } | null)?.code;\n return code === 'ELOCKED';\n}\n"]}