@wildo-ai/dev-companion 1.1.2 → 1.1.4

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 (540) hide show
  1. package/dist/esm/.tsbuildinfo +1 -1
  2. package/dist/esm/__tests__/asset-noop.d.ts.map +1 -1
  3. package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +1 -1
  4. package/dist/esm/__tests__/internal-test-view.d.ts.map +1 -1
  5. package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
  6. package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
  7. package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
  8. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +9 -3
  9. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
  10. package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
  11. package/dist/esm/brand/services/brand-accept.companion.service.d.ts +3 -24
  12. package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
  13. package/dist/esm/brand/services/brand-accept.companion.service.js +10 -48
  14. package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
  15. package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
  16. package/dist/esm/brand/services/logo-deliberation.companion.service.js +2 -8
  17. package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
  18. package/dist/esm/brand/services/logo-generation.companion.service.d.ts +6 -3
  19. package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
  20. package/dist/esm/brand/services/logo-generation.companion.service.js +11 -12
  21. package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
  22. package/dist/esm/brand/utils/derived-brand-assets.d.ts +0 -1
  23. package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
  24. package/dist/esm/brand/utils/derived-brand-assets.js +1 -2
  25. package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
  26. package/dist/esm/brand/utils/stage-brand-candidate.d.ts +7 -9
  27. package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
  28. package/dist/esm/brand/utils/stage-brand-candidate.js +8 -11
  29. package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
  30. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +52 -2
  31. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  32. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +45 -0
  33. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  34. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +45 -5
  35. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  36. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +180 -9
  37. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  38. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts +12 -22
  39. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
  40. package/dist/esm/claude-cli/services/git-change-set.companion.service.js +151 -82
  41. package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
  42. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +30 -4
  43. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  44. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +30 -4
  45. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  46. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +1 -1
  47. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  48. package/dist/esm/claude-cli/services/research-evidence-store.companion.js +1 -1
  49. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  50. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
  51. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
  52. package/dist/esm/companion-api/companion-api.schemas.d.ts +57 -57
  53. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  54. package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
  55. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts +90 -0
  56. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -0
  57. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +98 -0
  58. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -0
  59. package/dist/esm/companion-api/controllers/companion.controller.d.ts +32 -5
  60. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  61. package/dist/esm/companion-api/controllers/companion.controller.js +126 -41
  62. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  63. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts +8 -1
  64. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
  65. package/dist/esm/core/auth/companion-auth-floor.companion.service.js +8 -1
  66. package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
  67. package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
  68. package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
  69. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
  70. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
  71. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
  72. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
  73. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
  74. package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
  75. package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
  76. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
  77. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
  78. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
  79. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts +34 -0
  80. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -0
  81. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js +65 -0
  82. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -0
  83. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts +11 -1
  84. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
  85. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
  86. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
  87. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
  88. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
  89. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js +10 -2
  90. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
  91. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  92. package/dist/esm/core/context/companion-context.d.ts.map +1 -1
  93. package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
  94. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  95. package/dist/esm/core/inject/models/container.js +0 -7
  96. package/dist/esm/core/inject/models/container.js.map +1 -1
  97. package/dist/esm/core/inject/models/service-types.d.ts +0 -1
  98. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  99. package/dist/esm/core/inject/models/service-types.js +0 -1
  100. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  101. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  102. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  103. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  104. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +8 -4
  105. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  106. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  107. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  108. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
  109. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  110. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
  111. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  112. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +42 -1
  113. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  114. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
  115. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  116. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
  117. package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
  118. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
  119. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
  120. package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
  121. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
  122. package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
  123. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
  124. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
  125. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  126. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +3 -2
  127. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  128. package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
  129. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
  130. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts +14 -5
  131. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
  132. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js +14 -5
  133. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
  134. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
  135. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
  136. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
  137. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
  138. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
  139. package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
  140. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
  141. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +38 -1
  142. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
  143. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +143 -19
  144. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
  145. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  146. package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts +23 -0
  147. package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
  148. package/dist/esm/core/lock/wildo-saas-lock.companion.service.js +23 -0
  149. package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
  150. package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
  151. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts +4 -4
  152. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
  153. package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
  154. package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
  155. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
  156. package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
  157. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +16 -13
  158. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  159. package/dist/esm/core/runtime/services/start-companion-application.service.js +70 -45
  160. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  161. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
  162. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  163. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +9 -2
  164. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  165. package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
  166. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
  167. package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
  168. package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
  169. package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
  170. package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
  171. package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
  172. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
  173. package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
  174. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
  175. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
  176. package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
  177. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
  178. package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
  179. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
  180. package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
  181. package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
  182. package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
  183. package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
  184. package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
  185. package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
  186. package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
  187. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
  188. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
  189. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
  190. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
  191. package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
  192. package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
  193. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
  194. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
  195. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
  196. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
  197. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
  198. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
  199. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
  200. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
  201. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
  202. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
  203. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
  204. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
  205. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
  206. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
  207. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
  208. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
  209. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
  210. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
  211. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
  212. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
  213. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
  214. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
  215. package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
  216. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
  217. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
  218. package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
  219. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
  220. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
  221. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
  222. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
  223. package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
  224. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
  225. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
  226. package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
  227. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
  228. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
  229. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
  230. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
  231. package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
  232. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
  233. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js +4 -4
  234. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
  235. package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
  236. package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
  237. package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
  238. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  239. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +13 -3
  240. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  241. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
  242. package/dist/esm/deliberations/services/deliberation.companion.service.js +0 -5
  243. package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
  244. package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
  245. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js +0 -2
  246. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
  247. package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
  248. package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
  249. package/dist/esm/email/models/email-template.actors-system.definitions.js +4 -2
  250. package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
  251. package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts +1 -1
  252. package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
  253. package/dist/esm/email/services/email-spec-context-loader.companion.service.js +1 -1
  254. package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
  255. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  256. package/dist/esm/email/services/email-template.companion.service.js +23 -1
  257. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  258. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
  259. package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
  260. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  261. package/dist/esm/executions/services/companion-executions.companion.service.js +15 -2
  262. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  263. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  264. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +7 -3
  265. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  266. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  267. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +11 -5
  268. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  269. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
  270. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts +9 -24
  271. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  272. package/dist/esm/expert-personas/services/expert-persona.companion.service.js +11 -60
  273. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  274. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
  275. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
  276. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
  277. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
  278. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
  279. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
  280. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
  281. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
  282. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  283. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
  284. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
  285. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
  286. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
  287. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
  288. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
  289. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
  290. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
  291. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
  292. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
  293. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
  294. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
  295. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
  296. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
  297. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
  298. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
  299. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
  300. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
  301. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
  302. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
  303. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
  304. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  305. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
  306. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
  307. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
  308. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
  309. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
  310. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
  311. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
  312. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
  313. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
  314. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
  315. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
  316. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
  317. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
  318. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
  319. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
  320. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
  321. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
  322. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
  323. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
  324. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
  325. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
  326. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
  327. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
  328. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
  329. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
  330. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
  331. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
  332. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
  333. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
  334. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
  335. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
  336. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
  337. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
  338. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
  339. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
  340. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
  341. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
  342. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
  343. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
  344. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
  345. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
  346. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
  347. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
  348. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
  349. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
  350. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
  351. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
  352. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
  353. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
  354. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
  355. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
  356. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
  357. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
  358. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
  359. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
  360. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
  361. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
  362. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
  363. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
  364. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
  365. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
  366. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
  367. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
  368. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
  369. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
  370. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
  371. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
  372. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
  373. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
  374. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
  375. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  376. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
  377. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
  378. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts +39 -0
  379. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -0
  380. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js +39 -0
  381. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -0
  382. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
  383. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
  384. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
  385. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
  386. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
  387. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
  388. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
  389. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
  390. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
  391. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
  392. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
  393. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
  394. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
  395. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
  396. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
  397. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
  398. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
  399. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
  400. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
  401. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
  402. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
  403. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
  404. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
  405. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
  406. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
  407. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
  408. package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
  409. package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
  410. package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
  411. package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
  412. package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
  413. package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
  414. package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
  415. package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
  416. package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
  417. package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
  418. package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
  419. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
  420. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +1 -1
  421. package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
  422. package/dist/esm/i18n/index.d.ts.map +1 -1
  423. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
  424. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
  425. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
  426. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
  427. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
  428. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
  429. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
  430. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  431. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
  432. package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
  433. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +58 -0
  434. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
  435. package/dist/esm/i18n-labelling/models/labelling-unit.models.js +35 -0
  436. package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
  437. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
  438. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js +8 -3
  439. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
  440. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
  441. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +55 -1
  442. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  443. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +178 -73
  444. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  445. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts +3 -3
  446. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
  447. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js +16 -5
  448. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
  449. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +35 -2
  450. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  451. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +68 -29
  452. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  453. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  454. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +126 -35
  455. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  456. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
  457. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
  458. package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
  459. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts +143 -0
  460. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -0
  461. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js +179 -0
  462. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -0
  463. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts +154 -0
  464. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -0
  465. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js +174 -0
  466. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -0
  467. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
  468. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
  469. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +104 -0
  470. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
  471. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +163 -18
  472. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
  473. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
  474. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
  475. package/dist/esm/index.d.ts.map +1 -1
  476. package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
  477. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  478. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +72 -0
  479. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  480. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  481. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  482. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts +17 -4
  483. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
  484. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js +25 -5
  485. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
  486. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  487. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
  488. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js +9 -4
  489. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
  490. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
  491. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +3 -9
  492. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  493. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +48 -28
  494. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  495. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +83 -2
  496. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  497. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +197 -4
  498. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  499. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  500. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
  501. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  502. package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.d.ts.map +1 -1
  503. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
  504. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  505. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +37 -1
  506. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  507. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +227 -15
  508. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  509. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts.map +1 -1
  510. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts +117 -2
  511. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
  512. package/dist/esm/technical-doc/services/technical-doc.companion.service.js +258 -69
  513. package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
  514. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts +5 -1
  515. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
  516. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js +142 -10
  517. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
  518. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
  519. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
  520. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts +2 -1
  521. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
  522. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js +10 -2
  523. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
  524. package/package.json +17 -17
  525. package/dist/esm/core/runtime/companion-startup-composition-fence.d.ts +0 -44
  526. package/dist/esm/core/runtime/companion-startup-composition-fence.d.ts.map +0 -1
  527. package/dist/esm/core/runtime/companion-startup-composition-fence.js +0 -85
  528. package/dist/esm/core/runtime/companion-startup-composition-fence.js.map +0 -1
  529. package/dist/esm/expert-personas/utils/canonical-json.d.ts +0 -25
  530. package/dist/esm/expert-personas/utils/canonical-json.d.ts.map +0 -1
  531. package/dist/esm/expert-personas/utils/canonical-json.js +0 -45
  532. package/dist/esm/expert-personas/utils/canonical-json.js.map +0 -1
  533. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts +0 -19
  534. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +0 -1
  535. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +0 -19
  536. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +0 -1
  537. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.d.ts +0 -17
  538. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.d.ts.map +0 -1
  539. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.js +0 -17
  540. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"brief-adequacy.actors-system.definitions.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/models/brief-adequacy.actors-system.definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,EAC1B,oBAAoB,EACpB,iCAAiC,GAClC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,SAAS,EACT,yCAAyC,EACzC,0CAA0C,EAC1C,uCAAuC,EACvC,wBAAwB,GAEzB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAEhG,+DAA+D;AAC/D,MAAM,CAAC,MAAM,8BAA8B,GAAG,4BAAqC,CAAC;AAEpF;;;;GAIG;AACH,MAAM,CAAC,MAAM,gCA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C5D,iGAAiG;kBAC7F,oCAAoC;SACzC;KACF;IACD,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;CACpC,CAAC;AAEF,wEAAwE;AACxE,MAAM,CAAC,MAAM,mBAAmB,GAAiC,CAAC,uBAAuB,CAAC,CAAC","sourcesContent":["/**\n * Brief-adequacy judge — the GATE half of #254's rescoped shape.\n *\n * Reads ONE composed generation brief plus the closed list of context sources the playbook did NOT\n * declare, and answers a single structured question: is this brief sufficient to produce the\n * declared family artifact, and if not, WHICH undeclared sources would repair it? The runtime then\n * performs ONE monotonic recompose (add-only) and generates. The judge never authors content and\n * never removes context — it SHAPES the brief and carries no authority, per the bounded\n * auxiliary-LLM ladder (`.claude/context/app-creation-dynamic-context.md`, design 2).\n *\n * Tool-free by the lane invariant: the brief is the entire input surface, so provenance stays\n * complete by construction. Calibrated toward `sufficient` — a false `insufficient` costs a\n * recompose; a chatty gate that always repairs is a standing rung nobody decided to build.\n */\n\nimport { z } from 'zod';\nimport type { FlowsActors_Agent } from '@wildo-ai/saas-models';\nimport {\n FlowsActors_Agent_Skill_Type,\n FlowsActors_Agent_Status,\n ResourceOperationRiskLevel,\n ResourcePrimaryScope,\n StructuredGenerationExecutionMode,\n} from '@wildo-ai/saas-models';\nimport {\n LLM_Model,\n LLMProvider_GenerateStructuredInputSchema,\n LLMProvider_GenerateStructuredOutputSchema,\n LLMProvider_OperationContext_BaseSchema,\n LLMProvider_OperationKey,\n type LLMProvider_OperationDefinitionBase,\n} from '@wildo-ai/external-connectors-models';\nimport { MetaWorkflow_ContextSource } from '@wildo-ai/saas-specifications/application-creation';\n\n/** One stable identity the generation path resolves by ref. */\nexport const BRIEF_ADEQUACY_JUDGE_AGENT_REF = 'brief-adequacy-judge.agent' as const;\n\n/**\n * The strict verdict the judge must emit. `missingSources` is constrained to the closed\n * {@link MetaWorkflow_ContextSource} vocabulary, so the repair arm can only ever propose sources\n * the runtime knows how to compose — an invented source is a schema violation, not a silent no-op.\n */\nexport const BriefAdequacyVerdictOutputSchema = z.object({\n verdict: z.enum(['sufficient', 'insufficient']),\n missingSources: z.array(z.enum(MetaWorkflow_ContextSource)).default([]),\n rationale: z.string(),\n});\n\nexport const briefAdequacyJudgeAgent: FlowsActors_Agent = {\n ref: BRIEF_ADEQUACY_JUDGE_AGENT_REF,\n displayName: 'Brief Adequacy Judge Agent',\n status: FlowsActors_Agent_Status.ACTIVE,\n config: {\n providerRef: 'anthropic',\n model: LLM_Model.CLAUDE_FABLE_5,\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n structuredGenerationExecutionMode: StructuredGenerationExecutionMode.SINGLE_CALL_REQUIRED,\n // SINGLE_CALL_REQUIRED refuses without this bound, fail-closed — the turn classifier shipped\n // without it and every classification died in 12ms (2026-09-04). Verdict + enum array +\n // rationale is a handful of leaves; 8 is honest headroom.\n maximumStructuredOutputLeafFields: 8,\n accessControl: [{ primaryScope: ResourcePrimaryScope.APPLICATION, requiresApproval: false }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n operationDefinition: {\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n providerRef: 'anthropic',\n inputSchema: LLMProvider_GenerateStructuredInputSchema,\n outputSchema: LLMProvider_GenerateStructuredOutputSchema,\n operationContextSchema: LLMProvider_OperationContext_BaseSchema,\n } satisfies LLMProvider_OperationDefinitionBase,\n promptSpec: {\n role:\n 'You are the brief-adequacy gate for one structured generation. Judge whether the brief below is '\n + 'sufficient to produce the declared artifact; if not, name which of the LISTED undeclared context '\n + 'sources would repair it.',\n persona:\n 'You are a gate, not an author. You never write artifact content, never restate the method, and '\n + 'never propose removing or weakening anything the brief already carries.',\n skillType: FlowsActors_Agent_Skill_Type.GENERATION,\n instructions: [\n 'Answer `insufficient` ONLY when the method demonstrably needs information the brief does not carry '\n + 'AND one of the listed undeclared sources would supply it. When in doubt, answer `sufficient` — '\n + 'a repair costs a full recompose, and a gate that always repairs is worse than no gate.',\n 'Propose ONLY sources from the provided undeclared list. Sources already in the brief are never '\n + 'yours to mention; removing context is never an option.',\n 'Your rationale is one short paragraph naming the specific method obligation the missing source '\n + 'serves. No summaries of the brief.',\n ],\n },\n createdAt: new Date().toISOString(),\n};\n\n/** Root spreads this collection into the one startup Agent registry. */\nexport const briefAdequacyAgents: readonly FlowsActors_Agent[] = [briefAdequacyJudgeAgent];\n"]}
1
+ {"version":3,"file":"brief-adequacy.actors-system.definitions.js","sourceRoot":"","sources":["../../../../src/meta-workflows/models/brief-adequacy.actors-system.definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,EAC1B,oBAAoB,EACpB,iCAAiC,GAClC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,yCAAyC,EAAE,0CAA0C,EAAE,uCAAuC,EAAE,wBAAwB,EAAE,uBAAuB,EAA4C,MAAM,sCAAsC,CAAC;AACnR,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAEhG,+DAA+D;AAC/D,MAAM,CAAC,MAAM,8BAA8B,GAAG,4BAAqC,CAAC;AAEpF;;;;;;;;;;;GAWG;AACH,MAAM,CAAN,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,iDAAyB,CAAA;IACzB,qDAA6B,CAAA;AAC/B,CAAC,EAHW,oBAAoB,KAApB,oBAAoB,QAG/B;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC;IACrC,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACvE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB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CAAC,CAAC","sourcesContent":["/**\n * Brief-adequacy judge — the GATE half of #254's rescoped shape.\n *\n * Reads ONE composed generation brief plus the closed list of context sources the playbook did NOT\n * declare, and answers a single structured question: is this brief sufficient to produce the\n * declared family artifact, and if not, WHICH undeclared sources would repair it? The runtime then\n * performs ONE monotonic recompose (add-only) and generates. The judge never authors content and\n * never removes context — it SHAPES the brief and carries no authority, per the bounded\n * auxiliary-LLM ladder (`.claude/context/app-creation-dynamic-context.md`, design 2).\n *\n * Tool-free by the lane invariant: the brief is the entire input surface, so provenance stays\n * complete by construction. Calibrated toward `sufficient` — a false `insufficient` costs a\n * recompose; a chatty gate that always repairs is a standing rung nobody decided to build.\n */\n\nimport { z } from 'zod';\nimport type { FlowsActors_Agent } from '@wildo-ai/saas-models';\nimport {\n FlowsActors_Agent_Skill_Type,\n FlowsActors_Agent_Status,\n ResourceOperationRiskLevel,\n ResourcePrimaryScope,\n StructuredGenerationExecutionMode,\n} from '@wildo-ai/saas-models';\nimport { LLMProvider_GenerateStructuredInputSchema, LLMProvider_GenerateStructuredOutputSchema, LLMProvider_OperationContext_BaseSchema, LLMProvider_OperationKey, LLM_Model_Applicability, type LLMProvider_OperationDefinitionBase } from '@wildo-ai/external-connectors-models';\nimport { MetaWorkflow_ContextSource } from '@wildo-ai/saas-specifications/application-creation';\n\n/** One stable identity the generation path resolves by ref. */\nexport const BRIEF_ADEQUACY_JUDGE_AGENT_REF = 'brief-adequacy-judge.agent' as const;\n\n/**\n * The two answers the brief-adequacy gate may give.\n *\n * Not a boolean, because the two are NOT symmetric and the asymmetry is the whole calibration: an\n * INSUFFICIENT verdict costs a full recompose, so the judge is told to answer SUFFICIENT when in\n * doubt. A named member is where that reasoning lives; `verdict: false` could not carry it.\n *\n * The values are the tokens the model is instructed to emit, so the schema, the prompt and every\n * reader of the verdict now derive from one source — before this they were three independently\n * typed copies of the same two words (this schema, the prompt text, and the run service's own\n * inline `'sufficient' | 'insufficient'`).\n */\nexport enum BriefAdequacyVerdict {\n SUFFICIENT = 'sufficient',\n INSUFFICIENT = 'insufficient',\n}\n\n/**\n * The strict verdict the judge must emit. `missingSources` is constrained to the closed\n * {@link MetaWorkflow_ContextSource} vocabulary, so the repair arm can only ever propose sources\n * the runtime knows how to compose — an invented source is a schema violation, not a silent no-op.\n */\nexport const BriefAdequacyVerdictOutputSchema = z.object({\n verdict: z.enum(BriefAdequacyVerdict),\n missingSources: z.array(z.enum(MetaWorkflow_ContextSource)).default([]),\n rationale: z.string(),\n});\n\nexport const briefAdequacyJudgeAgent: FlowsActors_Agent = {\n ref: BRIEF_ADEQUACY_JUDGE_AGENT_REF,\n displayName: 'Brief Adequacy Judge Agent',\n status: FlowsActors_Agent_Status.ACTIVE,\n config: {\n providerRef: 'anthropic',\n // DEEP_JUDGMENT: the enum names \"acceptance judgment\" among its own examples, and this judge\n // gates whether a brief is adequate (#439). Resolves to `claude-fable-5` on `anthropic` today —\n // the model this pinned.\n modelApplicability: LLM_Model_Applicability.DEEP_JUDGMENT,\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n structuredGenerationExecutionMode: StructuredGenerationExecutionMode.SINGLE_CALL_REQUIRED,\n // SINGLE_CALL_REQUIRED refuses without this bound, fail-closed — the turn classifier shipped\n // without it and every classification died in 12ms (2026-09-04). Verdict + enum array +\n // rationale is a handful of leaves; 8 is honest headroom.\n maximumStructuredOutputLeafFields: 8,\n accessControl: [{ primaryScope: ResourcePrimaryScope.APPLICATION, requiresApproval: false }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n operationDefinition: {\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n providerRef: 'anthropic',\n inputSchema: LLMProvider_GenerateStructuredInputSchema,\n outputSchema: LLMProvider_GenerateStructuredOutputSchema,\n operationContextSchema: LLMProvider_OperationContext_BaseSchema,\n } satisfies LLMProvider_OperationDefinitionBase,\n promptSpec: {\n role:\n 'You are the brief-adequacy gate for one structured generation. Judge whether the brief below is '\n + 'sufficient to produce the declared artifact; if not, name which of the LISTED undeclared context '\n + 'sources would repair it.',\n persona:\n 'You are a gate, not an author. You never write artifact content, never restate the method, and '\n + 'never propose removing or weakening anything the brief already carries.',\n skillType: FlowsActors_Agent_Skill_Type.GENERATION,\n instructions: [\n `Answer \\`${BriefAdequacyVerdict.INSUFFICIENT}\\` ONLY when the method demonstrably needs information the brief does not carry `\n + `AND one of the listed undeclared sources would supply it. When in doubt, answer \\`${BriefAdequacyVerdict.SUFFICIENT}\\` — `\n + 'a repair costs a full recompose, and a gate that always repairs is worse than no gate.',\n 'Propose ONLY sources from the provided undeclared list. Sources already in the brief are never '\n + 'yours to mention; removing context is never an option.',\n 'Your rationale is one short paragraph naming the specific method obligation the missing source '\n + 'serves. No summaries of the brief.',\n ],\n },\n createdAt: new Date().toISOString(),\n};\n\n/** Root spreads this collection into the one startup Agent registry. */\nexport const briefAdequacyAgents: readonly FlowsActors_Agent[] = [briefAdequacyJudgeAgent];\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"meta-workflows-lane.models.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/models/meta-workflows-lane.models.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,EAAG,uBAAgC,CAAC;AAE1E;;;;;;;GAOG;AACH,eAAO,MAAM,uCAAuC,EAAG,qCAA8C,CAAC;AAEtG;;;;;GAKG;AACH,eAAO,MAAM,sDAAsD,EAAG,oDAA6D,CAAC;AAEpI,iDAAiD;AACjD,eAAO,MAAM,uCAAuC,EAAG,+BAAwC,CAAC;AAChG,eAAO,MAAM,sDAAsD,EAAG,8CAAuD,CAAC;AAE9H;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,EAAG,QAAiB,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,EAAG,eAAwB,CAAC"}
1
+ {"version":3,"file":"meta-workflows-lane.models.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/models/meta-workflows-lane.models.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,EAAG,uBAAgC,CAAC;AAE1E;;;;;;;GAOG;AACH,eAAO,MAAM,uCAAuC,EAAG,qCAA8C,CAAC;AAEtG;;;;;GAKG;AACH,eAAO,MAAM,sDAAsD,EAAG,oDAA6D,CAAC;AAEpI,iDAAiD;AACjD,eAAO,MAAM,uCAAuC,EAAG,+BAAwC,CAAC;AAChG,eAAO,MAAM,sDAAsD,EAAG,8CAAuD,CAAC;AAE9H;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,EAAG,QAAiB,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,EAAG,eAAwB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"meta-workflows.actors-system.definitions.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/models/meta-workflows.actors-system.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,KAAK,EAAsB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAmDnF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,yDAAyD,MAAM,CAAC;AAsL7E,MAAM,WAAW,mCAAmC;IAClD,UAAU,EAAE,wCAAwC,CAAC;IACrD,MAAM,EAAE,iBAAiB,EAAE,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,wBAAgB,wCAAwC,IAAI,mCAAmC,CAU9F"}
1
+ {"version":3,"file":"meta-workflows.actors-system.definitions.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/models/meta-workflows.actors-system.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,KAAK,EAAsB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAgDnF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,yDAAyD,MAAM,CAAC;AAsL7E,MAAM,WAAW,mCAAmC;IAClD,UAAU,EAAE,wCAAwC,CAAC;IACrD,MAAM,EAAE,iBAAiB,EAAE,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,wBAAgB,wCAAwC,IAAI,mCAAmC,CAU9F"}
@@ -1,7 +1,12 @@
1
1
  import { Actor_ExecutionMode, Actor_Role_Category, FlowActorSystem_Kind, FlowActorSystem_Status, FlowActorSystem_Visibility, FlowsActors_Agent_Skill_Type, FlowsActors_Agent_Status, ResourceOperationRiskLevel, ResourcePrimaryScope, StructuredGenerationExecutionMode, } from '@wildo-ai/saas-models';
2
- import { LLMProvider_GenerateStructuredInputSchema, LLMProvider_GenerateStructuredOutputSchema, LLMProvider_OperationContext_BaseSchema, LLMProvider_OperationKey, LLM_Model, } from '@wildo-ai/external-connectors-models';
2
+ import { LLMProvider_GenerateStructuredInputSchema, LLMProvider_GenerateStructuredOutputSchema, LLMProvider_OperationContext_BaseSchema, LLMProvider_OperationKey, LLM_Model_Applicability } from '@wildo-ai/external-connectors-models';
3
3
  import { META_WORKFLOWS_PLAYBOOK_JUDGE_ACTOR_REF, META_WORKFLOWS_PLAYBOOK_JUDGE_AGENT_REF, META_WORKFLOWS_STRUCTURED_ARTIFACT_GENERATOR_ACTOR_REF, META_WORKFLOWS_STRUCTURED_ARTIFACT_GENERATOR_AGENT_REF, META_WORKFLOWS_PROVIDER_REF, META_WORKFLOWS_SYSTEM_REF, } from './meta-workflows-lane.models.js';
4
- const META_WORKFLOWS_MODEL = LLM_Model.OPEN_AI_GPT_5_6_TERRA;
4
+ /**
5
+ * STRUCTURED_AUTHORING — generation of application artifacts against a declared schema, which is
6
+ * what a meta-workflow produces (#439). Resolves to `gpt-5.6-terra` on `openai` today, which is the
7
+ * model this pinned.
8
+ */
9
+ const META_WORKFLOWS_APPLICABILITY = LLM_Model_Applicability.STRUCTURED_AUTHORING;
5
10
  /**
6
11
  * Production agent-definition ceiling for the two budgeted structured-generation capabilities.
7
12
  * Any numerically equal T6 estimate remains separate evidence and has no authority over this value.
@@ -70,7 +75,7 @@ function buildPlaybookJudgeAgent() {
70
75
  status: FlowsActors_Agent_Status.ACTIVE,
71
76
  config: {
72
77
  providerRef: META_WORKFLOWS_PROVIDER_REF,
73
- model: META_WORKFLOWS_MODEL,
78
+ modelApplicability: META_WORKFLOWS_APPLICABILITY,
74
79
  operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,
75
80
  maxTokens: META_WORKFLOWS_BUDGETED_MAX_OUTPUT_TOKENS,
76
81
  // SINGLE_CALL_REQUIRED, deliberately, after measuring the alternative live: this lane's output
@@ -124,7 +129,7 @@ function buildStructuredArtifactGeneratorAgent() {
124
129
  status: FlowsActors_Agent_Status.ACTIVE,
125
130
  config: {
126
131
  providerRef: META_WORKFLOWS_PROVIDER_REF,
127
- model: META_WORKFLOWS_MODEL,
132
+ modelApplicability: META_WORKFLOWS_APPLICABILITY,
128
133
  operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,
129
134
  maxTokens: META_WORKFLOWS_BUDGETED_MAX_OUTPUT_TOKENS,
130
135
  // SINGLE_CALL_REQUIRED, deliberately, after measuring the alternative live: this lane's output
@@ -1 +1 @@
1
- {"version":3,"file":"meta-workflows.actors-system.definitions.js","sourceRoot":"","sources":["../../../../../src/meta-workflows/models/meta-workflows.actors-system.definitions.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,0BAA0B,EAC1B,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,EAC1B,oBAAoB,EACpB,iCAAiC,GAClC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,yCAAyC,EACzC,0CAA0C,EAG1C,uCAAuC,EACvC,wBAAwB,EACxB,SAAS,GACV,MAAM,sCAAsC,CAAC;AAG9C,OAAO,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AU,EAAE,0BAA0B,CAAC,YAAY;QACnD,MAAM,EAAE,CAAC,kBAAkB,EAAE,gCAAgC,CAAC;QAC9D,MAAM,EAAE;YACN,OAAO,EAAE,MAAM;YACf,aAAa,EAAE,CAAC;oBACd,YAAY,EAAE,oBAAoB,CAAC,WAAW;oBAC9C,gBAAgB,EAAE,KAAK;iBACxB,CAAC;YACF,SAAS,EAAE,0BAA0B,CAAC,GAAG;SAC1C;QACD,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;KACpC,CAAC;AACJ,CAAC;AAOD;;;;;;;;GAQG;AACH,MAAM,UAAU,wCAAwC;IACtD,MAAM,MAAM,GAAG,CAAC,uBAAuB,EAAE,EAAE,qCAAqC,EAAE,CAAC,CAAC;IACpF,MAAM,WAAW,GAAG,6BAA6B,CAAC,MAAM,CAAC,CAAC;IAE1D,OAAO;QACL,UAAU,EAAE;YACV,CAAC,yBAAyB,CAAC,EAAE,GAAG,EAAE,CAAC,WAAW;SAC/C;QACD,MAAM;KACP,CAAC;AACJ,CAAC","sourcesContent":["import type { FlowActorSystem_InitializationFactoryMap } from '@wildo-ai/saas-backend-lib';\nimport type { Actor, ActorSystem, FlowsActors_Agent } from '@wildo-ai/saas-models';\nimport {\n Actor_ExecutionMode,\n Actor_Role_Category,\n FlowActorSystem_Kind,\n FlowActorSystem_Status,\n FlowActorSystem_Visibility,\n FlowsActors_Agent_Skill_Type,\n FlowsActors_Agent_Status,\n ResourceOperationRiskLevel,\n ResourcePrimaryScope,\n StructuredGenerationExecutionMode,\n} from '@wildo-ai/saas-models';\nimport {\n LLMProvider_GenerateStructuredInputSchema,\n LLMProvider_GenerateStructuredOutputSchema,\n LLMProvider_GenerateTextInputSchema,\n LLMProvider_GenerateTextOutputSchema,\n LLMProvider_OperationContext_BaseSchema,\n LLMProvider_OperationKey,\n LLM_Model,\n} from '@wildo-ai/external-connectors-models';\nimport type { LLMProvider_OperationDefinitionBase } from '@wildo-ai/external-connectors-models';\n\nimport {\n META_WORKFLOWS_PLAYBOOK_JUDGE_ACTOR_REF,\n META_WORKFLOWS_PLAYBOOK_JUDGE_AGENT_REF,\n META_WORKFLOWS_STRUCTURED_ARTIFACT_GENERATOR_ACTOR_REF,\n META_WORKFLOWS_STRUCTURED_ARTIFACT_GENERATOR_AGENT_REF,\n META_WORKFLOWS_PROVIDER_REF,\n META_WORKFLOWS_SYSTEM_REF,\n} from './meta-workflows-lane.models';\n\nconst META_WORKFLOWS_MODEL = LLM_Model.OPEN_AI_GPT_5_6_TERRA;\n/**\n * Production agent-definition ceiling for the two budgeted structured-generation capabilities.\n * Any numerically equal T6 estimate remains separate evidence and has no authority over this value.\n */\n/**\n * Per-call OUTPUT allowance for a budgeted meta-workflow model invocation.\n *\n * Sized from measurement. Vision elicitation settles around 1,200-1,400 output tokens, but\n * `top_down.market-analysis` emits a full ICP/category snapshot: measured 2026-08-20 at ~46,700 characters,\n * roughly 12,000-15,000 tokens. At 10,000 the provider stopped mid-object and the SDK reported\n * \"No object generated: could not parse the response\" -- a truncation reported as a model failure.\n *\n * 48,000 covers the largest observed payload with headroom. It is an allowance, not a target: settlement\n * records ACTUAL output usage, which stays far below it for the smaller playbooks.\n */\nconst META_WORKFLOWS_BUDGETED_MAX_OUTPUT_TOKENS = 48_000;\n\n/**\n * One app-owned structured-output shape ceiling for both budgeted agents.\n * The agent config is the runtime authority: capacity registration and physical execution both read this\n * field rather than copying the number.\n *\n * KEPT AT 500, which keeps the largest compiled output family (178 leaves) a SINGLE call. This was lowered\n * to 60 on 2026-08-21 to force chunking, and the live run that followed is why it was put back.\n *\n * What the run proved, in order. The planner did split the market snapshot into 4 calls and the model\n * answered them with rich, well-formed content -- so chunking mechanically works. Two chunks then failed\n * Zod validation on the SAME issue: `personas[].belongsToIcpRefs` requires at least one ICP reference, and\n * `icps` had been packed into a different chunk. The model cannot reference identifiers it was never shown,\n * so no retry and no prompt wording could have produced a valid answer.\n *\n * The general rule that follows, and the reason this is a ceiling change rather than a bug to fix: this\n * schema's top-level collections REFERENCE EACH OTHER (personas -> icps, jobs, pains, gains), while the\n * chunker splits on structure alone and cannot see those references. Chunking any referential schema\n * produces chunks that are individually unsatisfiable. Making it safe needs either dependency-aware\n * packing (which for this schema would pull nearly everything back into one chunk anyway) or sequential\n * chunks that feed earlier output into later prompts -- a real design, not a ceiling tweak.\n *\n * Everything the chunking work built stays and is correct: the leaf-count packing fix (the chunker could\n * never have split ANY multi-leaf schema before it), `maximumCalls` on the authority, the reservation and\n * money hold sized across calls, and the mode plumbing. They are the prerequisites for that design.\n */\nexport const META_WORKFLOWS_BUDGETED_MAX_STRUCTURED_OUTPUT_LEAF_FIELDS = 500;\n\n/**\n * The structured-output JUDGE agent (implementation spec P-14b, 2b-part2).\n *\n * Runs the COMPANION_AGENT playbooks that declare a typed `outputs[].schemaRef`\n * — the structured-output semantic judge. Rides the lane's proven path\n * exactly: `invokeAgent` GENERATE_STRUCTURED on `openai/gpt-5.6-terra` (AI SDK\n * `generateObject`), so the runner passes the output family's Zod schema and the\n * provider CONSTRAINS the model to a conformant object (openai `response_format`\n * json_schema) instead of free-form prose the runner must parse and hope-to-\n * validate. This replaced a GENERATE_TEXT + \"return raw JSON\" prompt hack whose\n * first live run emitted valid-JSON-but-schema-divergent output (`scope` as a\n * string, malformed `subjectRef`s) that the strict `_core` validator rejected.\n *\n * The `_core` family validator still runs as the trust floor (S1) after the\n * provider-enforced Zod shape — it carries semantic invariants (uniqueness, ref\n * shape) the schema alone cannot. Model-default sampling (5.6 rejects temperature); judging is analytical\n * decision, not creative writing. Registered at startup via the `index.ts`\n * agents spread — never via post-startup `registerAgent`.\n */\nfunction buildPlaybookJudgeAgent(): FlowsActors_Agent {\n return {\n ref: META_WORKFLOWS_PLAYBOOK_JUDGE_AGENT_REF,\n displayName: 'Meta-Workflows Playbook Judge Agent',\n status: FlowsActors_Agent_Status.ACTIVE,\n config: {\n providerRef: META_WORKFLOWS_PROVIDER_REF,\n model: META_WORKFLOWS_MODEL,\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n maxTokens: META_WORKFLOWS_BUDGETED_MAX_OUTPUT_TOKENS,\n // SINGLE_CALL_REQUIRED, deliberately, after measuring the alternative live: this lane's output\n // families reference each other across top-level collections, and the chunker splits on structure\n // alone. Declaring CHUNKING_ALLOWED would let a schema this agent cannot answer in one call be split\n // into chunks it cannot answer either -- and fail after spending on all of them. Under this mode an\n // oversized schema fails LOUDLY at planning, before any spend, which is the honest outcome until\n // chunking is dependency-aware. See the leaf-field ceiling above for the full measurement.\n structuredGenerationExecutionMode: StructuredGenerationExecutionMode.SINGLE_CALL_REQUIRED,\n maximumStructuredOutputLeafFields: META_WORKFLOWS_BUDGETED_MAX_STRUCTURED_OUTPUT_LEAF_FIELDS,\n // No sampling params: the GPT-5.6 family rejects non-default temperature (verified live 2026-07-16).\n accessControl: [{\n primaryScope: ResourcePrimaryScope.APPLICATION,\n requiresApproval: false,\n }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n operationDefinition: {\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n providerRef: META_WORKFLOWS_PROVIDER_REF,\n inputSchema: LLMProvider_GenerateStructuredInputSchema,\n outputSchema: LLMProvider_GenerateStructuredOutputSchema,\n operationContextSchema: LLMProvider_OperationContext_BaseSchema,\n } satisfies LLMProvider_OperationDefinitionBase,\n promptSpec: {\n role:\n 'You are a coverage/refinement judge for a Wildo SaaS app-creation journey. '\n + 'You receive a fully-composed brief (playbook method guidance + the journey '\n + 'scope + introspected application reality + repo context) and emit the requested '\n + 'typed findings object conforming EXACTLY to the provided output schema. You '\n + 'judge only from the evidence in the brief and never invent facts that '\n + 'contradict it.',\n persona:\n 'You diff authored intent against introspected reality and explain each finding '\n + 'with the evidence that produced its verdict. You prefer honest, well-evidenced '\n + 'findings over exhaustive noise. The host owns subject and scope identity; do not '\n + 'invent or echo runtime-owned identity fields.',\n skillType: FlowsActors_Agent_Skill_Type.DECISION,\n instructions: [],\n },\n createdAt: new Date().toISOString(),\n };\n}\n\n/**\n * Internal structured-artifact generation agent consumed only through the\n * generic Driver port. It is an internal Flow/Actor capability, not an A2A or\n * MCP provider surface, and it never owns application-specific schemas.\n */\nfunction buildStructuredArtifactGeneratorAgent(): FlowsActors_Agent {\n return {\n ref: META_WORKFLOWS_STRUCTURED_ARTIFACT_GENERATOR_AGENT_REF,\n displayName: 'Meta-Workflows Structured Artifact Generator Agent',\n status: FlowsActors_Agent_Status.ACTIVE,\n config: {\n providerRef: META_WORKFLOWS_PROVIDER_REF,\n model: META_WORKFLOWS_MODEL,\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n maxTokens: META_WORKFLOWS_BUDGETED_MAX_OUTPUT_TOKENS,\n // SINGLE_CALL_REQUIRED, deliberately, after measuring the alternative live: this lane's output\n // families reference each other across top-level collections, and the chunker splits on structure\n // alone. Declaring CHUNKING_ALLOWED would let a schema this agent cannot answer in one call be split\n // into chunks it cannot answer either -- and fail after spending on all of them. Under this mode an\n // oversized schema fails LOUDLY at planning, before any spend, which is the honest outcome until\n // chunking is dependency-aware. See the leaf-field ceiling above for the full measurement.\n structuredGenerationExecutionMode: StructuredGenerationExecutionMode.SINGLE_CALL_REQUIRED,\n maximumStructuredOutputLeafFields: META_WORKFLOWS_BUDGETED_MAX_STRUCTURED_OUTPUT_LEAF_FIELDS,\n accessControl: [{ primaryScope: ResourcePrimaryScope.APPLICATION, requiresApproval: false }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n operationDefinition: {\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n providerRef: META_WORKFLOWS_PROVIDER_REF,\n inputSchema: LLMProvider_GenerateStructuredInputSchema,\n outputSchema: LLMProvider_GenerateStructuredOutputSchema,\n operationContextSchema: LLMProvider_OperationContext_BaseSchema,\n } satisfies LLMProvider_OperationDefinitionBase,\n promptSpec: {\n role:\n 'You generate one typed candidate artifact for a Wildo app-creation Action. '\n + 'The sealed prompt contains the declarative method, exact accepted inputs and '\n + 'output contract. Emit only the requested provider schema; never invent runtime '\n + 'identity, provenance, authority, credentials or acceptance state.',\n persona:\n 'You preserve exact references and stated uncertainty, prefer a coherent good-enough '\n + 'current-horizon result over speculative breadth, and leave normalization, validation '\n + 'and acceptance to the trusted runtime.',\n skillType: FlowsActors_Agent_Skill_Type.GENERATION,\n instructions: [],\n },\n createdAt: new Date().toISOString(),\n };\n}\n\n/**\n * The `meta-workflows.system` actor system wrapper (P-14). Sets ONLY `kind`\n * (Step 0 removed the historical `type`/`kind` dual-set; `registerSystem`\n * branches on `kind`). Backend-only visibility — the lane is a companion\n * control-plane concern, never a frontend-surfaced flow.\n */\nfunction buildMetaWorkflowsActorSystem(agents: FlowsActors_Agent[]): ActorSystem {\n const playbookJudgeActor: Actor = {\n ref: META_WORKFLOWS_PLAYBOOK_JUDGE_ACTOR_REF,\n displayName: 'Meta-Workflows Playbook Judge Actor',\n roleCategory: Actor_Role_Category.OPERATOR,\n executionMode: Actor_ExecutionMode.AGENTIC,\n agentRef: META_WORKFLOWS_PLAYBOOK_JUDGE_AGENT_REF,\n };\n\n const structuredArtifactGeneratorActor: Actor = {\n ref: META_WORKFLOWS_STRUCTURED_ARTIFACT_GENERATOR_ACTOR_REF,\n displayName: 'Meta-Workflows Structured Artifact Generator Actor',\n roleCategory: Actor_Role_Category.OPERATOR,\n executionMode: Actor_ExecutionMode.AGENTIC,\n agentRef: META_WORKFLOWS_STRUCTURED_ARTIFACT_GENERATOR_AGENT_REF,\n };\n\n // Reference the passed agents so the wrapper stays coupled to the same\n // registered set (keeps the actor.agentRef ↔ agent.ref invariant obvious\n // when the definitions grow).\n const agentRefs = new Set(agents.map((agent) => agent.ref));\n for (const actor of [playbookJudgeActor, structuredArtifactGeneratorActor]) {\n if (actor.agentRef && !agentRefs.has(actor.agentRef)) {\n throw new Error(\n `meta-workflows.system actor '${actor.ref}' references unregistered agent '${actor.agentRef}'`,\n );\n }\n }\n\n return {\n ref: META_WORKFLOWS_SYSTEM_REF,\n displayName: 'App-Creation Meta-Workflows System',\n description:\n 'Companion actor system hosting the structured-output semantic judge (typed '\n + 'findings) and the internal structured-artifact generator behind the '\n + 'generic Action Driver. The runner-era choreographer and prose executor '\n + 'were deleted at the first-activation hard cut.',\n kind: FlowActorSystem_Kind.ACTOR,\n status: FlowActorSystem_Status.ACTIVE,\n visibility: FlowActorSystem_Visibility.BACKEND_ONLY,\n actors: [playbookJudgeActor, structuredArtifactGeneratorActor],\n config: {\n timeout: 120000,\n accessControl: [{\n primaryScope: ResourcePrimaryScope.APPLICATION,\n requiresApproval: false,\n }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n createdAt: new Date().toISOString(),\n };\n}\n\nexport interface MetaWorkflowsActorSystemDefinitions {\n factoryMap: FlowActorSystem_InitializationFactoryMap;\n agents: FlowsActors_Agent[];\n}\n\n/**\n * Build the meta-workflows actor-system definitions (semantic judge,\n * structured-artifact generator, and the `meta-workflows.system` wrapper).\n *\n * Registered ONLY via the startup composition assembly factoryMap/agents\n * spread (registration split-brain: container binding does nothing for\n * agents; the startup `FlowsActorsRegistryService.initialize` is the only\n * path).\n */\nexport function buildMetaWorkflowsActorSystemDefinitions(): MetaWorkflowsActorSystemDefinitions {\n const agents = [buildPlaybookJudgeAgent(), buildStructuredArtifactGeneratorAgent()];\n const actorSystem = buildMetaWorkflowsActorSystem(agents);\n\n return {\n factoryMap: {\n [META_WORKFLOWS_SYSTEM_REF]: () => actorSystem,\n },\n agents,\n };\n}\n"]}
1
+ {"version":3,"file":"meta-workflows.actors-system.definitions.js","sourceRoot":"","sources":["../../../../src/meta-workflows/models/meta-workflows.actors-system.definitions.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,0BAA0B,EAC1B,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,EAC1B,oBAAoB,EACpB,iCAAiC,GAClC,MAAM,uBAAuB,CAAC;AAC/B,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EAA6E;cAC3E,sEAAsE;cACtE,yEAAyE;cACzE,gDAAgD;QACpD,IAAI,EAAE,oBAAoB,CAAC,KAAK;QAChC,MAAM,EAAE,sBAAsB,CAAC,MAAM;QACrC,UAAU,EAAE,0BAA0B,CAAC,YAAY;QACnD,MAAM,EAAE,CAAC,kBAAkB,EAAE,gCAAgC,CAAC;QAC9D,MAAM,EAAE;YACN,OAAO,EAAE,MAAM;YACf,aAAa,EAAE,CAAC;oBACd,YAAY,EAAE,oBAAoB,CAAC,WAAW;oBAC9C,gBAAgB,EAAE,KAAK;iBACxB,CAAC;YACF,SAAS,EAAE,0BAA0B,CAAC,GAAG;SAC1C;QACD,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;KACpC,CAAC;AACJ,CAAC;AAOD;;;;;;;;GAQG;AACH,MAAM,UAAU,wCAAwC;IACtD,MAAM,MAAM,GAAG,CAAC,uBAAuB,EAAE,EAAE,qCAAqC,EAAE,CAAC,CAAC;IACpF,MAAM,WAAW,GAAG,6BAA6B,CAAC,MAAM,CAAC,CAAC;IAE1D,OAAO;QACL,UAAU,EAAE;YACV,CAAC,yBAAyB,CAAC,EAAE,GAAG,EAAE,CAAC,WAAW;SAC/C;QACD,MAAM;KACP,CAAC;AACJ,CAAC","sourcesContent":["import type { FlowActorSystem_InitializationFactoryMap } from '@wildo-ai/saas-backend-lib';\nimport type { Actor, ActorSystem, FlowsActors_Agent } from '@wildo-ai/saas-models';\nimport {\n Actor_ExecutionMode,\n Actor_Role_Category,\n FlowActorSystem_Kind,\n FlowActorSystem_Status,\n FlowActorSystem_Visibility,\n FlowsActors_Agent_Skill_Type,\n FlowsActors_Agent_Status,\n ResourceOperationRiskLevel,\n ResourcePrimaryScope,\n StructuredGenerationExecutionMode,\n} from '@wildo-ai/saas-models';\nimport { LLMProvider_GenerateStructuredInputSchema, LLMProvider_GenerateStructuredOutputSchema, LLMProvider_GenerateTextInputSchema, LLMProvider_GenerateTextOutputSchema, LLMProvider_OperationContext_BaseSchema, LLMProvider_OperationKey, LLM_Model_Applicability } from '@wildo-ai/external-connectors-models';\nimport type { LLMProvider_OperationDefinitionBase } from '@wildo-ai/external-connectors-models';\n\nimport {\n META_WORKFLOWS_PLAYBOOK_JUDGE_ACTOR_REF,\n META_WORKFLOWS_PLAYBOOK_JUDGE_AGENT_REF,\n META_WORKFLOWS_STRUCTURED_ARTIFACT_GENERATOR_ACTOR_REF,\n META_WORKFLOWS_STRUCTURED_ARTIFACT_GENERATOR_AGENT_REF,\n META_WORKFLOWS_PROVIDER_REF,\n META_WORKFLOWS_SYSTEM_REF,\n} from './meta-workflows-lane.models';\n\n/**\n * STRUCTURED_AUTHORING — generation of application artifacts against a declared schema, which is\n * what a meta-workflow produces (#439). Resolves to `gpt-5.6-terra` on `openai` today, which is the\n * model this pinned.\n */\nconst META_WORKFLOWS_APPLICABILITY = LLM_Model_Applicability.STRUCTURED_AUTHORING;\n/**\n * Production agent-definition ceiling for the two budgeted structured-generation capabilities.\n * Any numerically equal T6 estimate remains separate evidence and has no authority over this value.\n */\n/**\n * Per-call OUTPUT allowance for a budgeted meta-workflow model invocation.\n *\n * Sized from measurement. Vision elicitation settles around 1,200-1,400 output tokens, but\n * `top_down.market-analysis` emits a full ICP/category snapshot: measured 2026-08-20 at ~46,700 characters,\n * roughly 12,000-15,000 tokens. At 10,000 the provider stopped mid-object and the SDK reported\n * \"No object generated: could not parse the response\" -- a truncation reported as a model failure.\n *\n * 48,000 covers the largest observed payload with headroom. It is an allowance, not a target: settlement\n * records ACTUAL output usage, which stays far below it for the smaller playbooks.\n */\nconst META_WORKFLOWS_BUDGETED_MAX_OUTPUT_TOKENS = 48_000;\n\n/**\n * One app-owned structured-output shape ceiling for both budgeted agents.\n * The agent config is the runtime authority: capacity registration and physical execution both read this\n * field rather than copying the number.\n *\n * KEPT AT 500, which keeps the largest compiled output family (178 leaves) a SINGLE call. This was lowered\n * to 60 on 2026-08-21 to force chunking, and the live run that followed is why it was put back.\n *\n * What the run proved, in order. The planner did split the market snapshot into 4 calls and the model\n * answered them with rich, well-formed content -- so chunking mechanically works. Two chunks then failed\n * Zod validation on the SAME issue: `personas[].belongsToIcpRefs` requires at least one ICP reference, and\n * `icps` had been packed into a different chunk. The model cannot reference identifiers it was never shown,\n * so no retry and no prompt wording could have produced a valid answer.\n *\n * The general rule that follows, and the reason this is a ceiling change rather than a bug to fix: this\n * schema's top-level collections REFERENCE EACH OTHER (personas -> icps, jobs, pains, gains), while the\n * chunker splits on structure alone and cannot see those references. Chunking any referential schema\n * produces chunks that are individually unsatisfiable. Making it safe needs either dependency-aware\n * packing (which for this schema would pull nearly everything back into one chunk anyway) or sequential\n * chunks that feed earlier output into later prompts -- a real design, not a ceiling tweak.\n *\n * Everything the chunking work built stays and is correct: the leaf-count packing fix (the chunker could\n * never have split ANY multi-leaf schema before it), `maximumCalls` on the authority, the reservation and\n * money hold sized across calls, and the mode plumbing. They are the prerequisites for that design.\n */\nexport const META_WORKFLOWS_BUDGETED_MAX_STRUCTURED_OUTPUT_LEAF_FIELDS = 500;\n\n/**\n * The structured-output JUDGE agent (implementation spec P-14b, 2b-part2).\n *\n * Runs the COMPANION_AGENT playbooks that declare a typed `outputs[].schemaRef`\n * — the structured-output semantic judge. Rides the lane's proven path\n * exactly: `invokeAgent` GENERATE_STRUCTURED on `openai/gpt-5.6-terra` (AI SDK\n * `generateObject`), so the runner passes the output family's Zod schema and the\n * provider CONSTRAINS the model to a conformant object (openai `response_format`\n * json_schema) instead of free-form prose the runner must parse and hope-to-\n * validate. This replaced a GENERATE_TEXT + \"return raw JSON\" prompt hack whose\n * first live run emitted valid-JSON-but-schema-divergent output (`scope` as a\n * string, malformed `subjectRef`s) that the strict `_core` validator rejected.\n *\n * The `_core` family validator still runs as the trust floor (S1) after the\n * provider-enforced Zod shape — it carries semantic invariants (uniqueness, ref\n * shape) the schema alone cannot. Model-default sampling (5.6 rejects temperature); judging is analytical\n * decision, not creative writing. Registered at startup via the `index.ts`\n * agents spread — never via post-startup `registerAgent`.\n */\nfunction buildPlaybookJudgeAgent(): FlowsActors_Agent {\n return {\n ref: META_WORKFLOWS_PLAYBOOK_JUDGE_AGENT_REF,\n displayName: 'Meta-Workflows Playbook Judge Agent',\n status: FlowsActors_Agent_Status.ACTIVE,\n config: {\n providerRef: META_WORKFLOWS_PROVIDER_REF,\n modelApplicability: META_WORKFLOWS_APPLICABILITY,\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n maxTokens: META_WORKFLOWS_BUDGETED_MAX_OUTPUT_TOKENS,\n // SINGLE_CALL_REQUIRED, deliberately, after measuring the alternative live: this lane's output\n // families reference each other across top-level collections, and the chunker splits on structure\n // alone. Declaring CHUNKING_ALLOWED would let a schema this agent cannot answer in one call be split\n // into chunks it cannot answer either -- and fail after spending on all of them. Under this mode an\n // oversized schema fails LOUDLY at planning, before any spend, which is the honest outcome until\n // chunking is dependency-aware. See the leaf-field ceiling above for the full measurement.\n structuredGenerationExecutionMode: StructuredGenerationExecutionMode.SINGLE_CALL_REQUIRED,\n maximumStructuredOutputLeafFields: META_WORKFLOWS_BUDGETED_MAX_STRUCTURED_OUTPUT_LEAF_FIELDS,\n // No sampling params: the GPT-5.6 family rejects non-default temperature (verified live 2026-07-16).\n accessControl: [{\n primaryScope: ResourcePrimaryScope.APPLICATION,\n requiresApproval: false,\n }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n operationDefinition: {\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n providerRef: META_WORKFLOWS_PROVIDER_REF,\n inputSchema: LLMProvider_GenerateStructuredInputSchema,\n outputSchema: LLMProvider_GenerateStructuredOutputSchema,\n operationContextSchema: LLMProvider_OperationContext_BaseSchema,\n } satisfies LLMProvider_OperationDefinitionBase,\n promptSpec: {\n role:\n 'You are a coverage/refinement judge for a Wildo SaaS app-creation journey. '\n + 'You receive a fully-composed brief (playbook method guidance + the journey '\n + 'scope + introspected application reality + repo context) and emit the requested '\n + 'typed findings object conforming EXACTLY to the provided output schema. You '\n + 'judge only from the evidence in the brief and never invent facts that '\n + 'contradict it.',\n persona:\n 'You diff authored intent against introspected reality and explain each finding '\n + 'with the evidence that produced its verdict. You prefer honest, well-evidenced '\n + 'findings over exhaustive noise. The host owns subject and scope identity; do not '\n + 'invent or echo runtime-owned identity fields.',\n skillType: FlowsActors_Agent_Skill_Type.DECISION,\n instructions: [],\n },\n createdAt: new Date().toISOString(),\n };\n}\n\n/**\n * Internal structured-artifact generation agent consumed only through the\n * generic Driver port. It is an internal Flow/Actor capability, not an A2A or\n * MCP provider surface, and it never owns application-specific schemas.\n */\nfunction buildStructuredArtifactGeneratorAgent(): FlowsActors_Agent {\n return {\n ref: META_WORKFLOWS_STRUCTURED_ARTIFACT_GENERATOR_AGENT_REF,\n displayName: 'Meta-Workflows Structured Artifact Generator Agent',\n status: FlowsActors_Agent_Status.ACTIVE,\n config: {\n providerRef: META_WORKFLOWS_PROVIDER_REF,\n modelApplicability: META_WORKFLOWS_APPLICABILITY,\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n maxTokens: META_WORKFLOWS_BUDGETED_MAX_OUTPUT_TOKENS,\n // SINGLE_CALL_REQUIRED, deliberately, after measuring the alternative live: this lane's output\n // families reference each other across top-level collections, and the chunker splits on structure\n // alone. Declaring CHUNKING_ALLOWED would let a schema this agent cannot answer in one call be split\n // into chunks it cannot answer either -- and fail after spending on all of them. Under this mode an\n // oversized schema fails LOUDLY at planning, before any spend, which is the honest outcome until\n // chunking is dependency-aware. See the leaf-field ceiling above for the full measurement.\n structuredGenerationExecutionMode: StructuredGenerationExecutionMode.SINGLE_CALL_REQUIRED,\n maximumStructuredOutputLeafFields: META_WORKFLOWS_BUDGETED_MAX_STRUCTURED_OUTPUT_LEAF_FIELDS,\n accessControl: [{ primaryScope: ResourcePrimaryScope.APPLICATION, requiresApproval: false }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n operationDefinition: {\n operationKey: LLMProvider_OperationKey.GENERATE_STRUCTURED,\n providerRef: META_WORKFLOWS_PROVIDER_REF,\n inputSchema: LLMProvider_GenerateStructuredInputSchema,\n outputSchema: LLMProvider_GenerateStructuredOutputSchema,\n operationContextSchema: LLMProvider_OperationContext_BaseSchema,\n } satisfies LLMProvider_OperationDefinitionBase,\n promptSpec: {\n role:\n 'You generate one typed candidate artifact for a Wildo app-creation Action. '\n + 'The sealed prompt contains the declarative method, exact accepted inputs and '\n + 'output contract. Emit only the requested provider schema; never invent runtime '\n + 'identity, provenance, authority, credentials or acceptance state.',\n persona:\n 'You preserve exact references and stated uncertainty, prefer a coherent good-enough '\n + 'current-horizon result over speculative breadth, and leave normalization, validation '\n + 'and acceptance to the trusted runtime.',\n skillType: FlowsActors_Agent_Skill_Type.GENERATION,\n instructions: [],\n },\n createdAt: new Date().toISOString(),\n };\n}\n\n/**\n * The `meta-workflows.system` actor system wrapper (P-14). Sets ONLY `kind`\n * (Step 0 removed the historical `type`/`kind` dual-set; `registerSystem`\n * branches on `kind`). Backend-only visibility — the lane is a companion\n * control-plane concern, never a frontend-surfaced flow.\n */\nfunction buildMetaWorkflowsActorSystem(agents: FlowsActors_Agent[]): ActorSystem {\n const playbookJudgeActor: Actor = {\n ref: META_WORKFLOWS_PLAYBOOK_JUDGE_ACTOR_REF,\n displayName: 'Meta-Workflows Playbook Judge Actor',\n roleCategory: Actor_Role_Category.OPERATOR,\n executionMode: Actor_ExecutionMode.AGENTIC,\n agentRef: META_WORKFLOWS_PLAYBOOK_JUDGE_AGENT_REF,\n };\n\n const structuredArtifactGeneratorActor: Actor = {\n ref: META_WORKFLOWS_STRUCTURED_ARTIFACT_GENERATOR_ACTOR_REF,\n displayName: 'Meta-Workflows Structured Artifact Generator Actor',\n roleCategory: Actor_Role_Category.OPERATOR,\n executionMode: Actor_ExecutionMode.AGENTIC,\n agentRef: META_WORKFLOWS_STRUCTURED_ARTIFACT_GENERATOR_AGENT_REF,\n };\n\n // Reference the passed agents so the wrapper stays coupled to the same\n // registered set (keeps the actor.agentRef ↔ agent.ref invariant obvious\n // when the definitions grow).\n const agentRefs = new Set(agents.map((agent) => agent.ref));\n for (const actor of [playbookJudgeActor, structuredArtifactGeneratorActor]) {\n if (actor.agentRef && !agentRefs.has(actor.agentRef)) {\n throw new Error(\n `meta-workflows.system actor '${actor.ref}' references unregistered agent '${actor.agentRef}'`,\n );\n }\n }\n\n return {\n ref: META_WORKFLOWS_SYSTEM_REF,\n displayName: 'App-Creation Meta-Workflows System',\n description:\n 'Companion actor system hosting the structured-output semantic judge (typed '\n + 'findings) and the internal structured-artifact generator behind the '\n + 'generic Action Driver. The runner-era choreographer and prose executor '\n + 'were deleted at the first-activation hard cut.',\n kind: FlowActorSystem_Kind.ACTOR,\n status: FlowActorSystem_Status.ACTIVE,\n visibility: FlowActorSystem_Visibility.BACKEND_ONLY,\n actors: [playbookJudgeActor, structuredArtifactGeneratorActor],\n config: {\n timeout: 120000,\n accessControl: [{\n primaryScope: ResourcePrimaryScope.APPLICATION,\n requiresApproval: false,\n }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n createdAt: new Date().toISOString(),\n };\n}\n\nexport interface MetaWorkflowsActorSystemDefinitions {\n factoryMap: FlowActorSystem_InitializationFactoryMap;\n agents: FlowsActors_Agent[];\n}\n\n/**\n * Build the meta-workflows actor-system definitions (semantic judge,\n * structured-artifact generator, and the `meta-workflows.system` wrapper).\n *\n * Registered ONLY via the startup composition assembly factoryMap/agents\n * spread (registration split-brain: container binding does nothing for\n * agents; the startup `FlowsActorsRegistryService.initialize` is the only\n * path).\n */\nexport function buildMetaWorkflowsActorSystemDefinitions(): MetaWorkflowsActorSystemDefinitions {\n const agents = [buildPlaybookJudgeAgent(), buildStructuredArtifactGeneratorAgent()];\n const actorSystem = buildMetaWorkflowsActorSystem(agents);\n\n return {\n factoryMap: {\n [META_WORKFLOWS_SYSTEM_REF]: () => actorSystem,\n },\n agents,\n };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"application-build-task-coding.companion.test-fixtures.d.ts","sourceRoot":"","sources":["../../../../../../src/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,kBAAkB,EACxB,MAAM,oDAAoD,CAAC;AAQ5D,eAAO,MAAM,MAAM,QAAiB,CAAC;AACrC,eAAO,MAAM,MAAM,QAAiB,CAAC;AACrC,eAAO,MAAM,aAAa,QAAiB,CAAC;AAC5C,eAAO,MAAM,aAAa,QAAiB,CAAC;AAE5C,6HAA6H;AAC7H,wBAAgB,gBAAgB,IAAI,kBAAkB,CAiCrD"}
1
+ {"version":3,"file":"application-build-task-coding.companion.test-fixtures.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,kBAAkB,EACxB,MAAM,oDAAoD,CAAC;AAQ5D,eAAO,MAAM,MAAM,QAAiB,CAAC;AACrC,eAAO,MAAM,MAAM,QAAiB,CAAC;AACrC,eAAO,MAAM,aAAa,QAAiB,CAAC;AAC5C,eAAO,MAAM,aAAa,QAAiB,CAAC;AAE5C,6HAA6H;AAC7H,wBAAgB,gBAAgB,IAAI,kBAAkB,CAiCrD"}
@@ -83,9 +83,7 @@ export declare class ApplicationBuildDispatchCompanionService {
83
83
  private readonly logDebug;
84
84
  constructor(logger: LoggerService, companionContext: CompanionContext, dispatch: CodingAgentDispatchCompanionService, git: GitChangeSetCompanionService, generationSteps: ApplicationBuildGenerationStepCompanionService, introspection: CompanionIntrospectionService);
85
85
  /** What the next run would be, without running it. Pure read — nothing is locked, created or started. */
86
- describeNextBuildTask(input?: {
87
- readonly maximumTokenBudget?: number;
88
- }): Promise<ApplicationBuildDispatchPlan>;
86
+ describeNextBuildTask(): Promise<ApplicationBuildDispatchPlan>;
89
87
  /**
90
88
  * Run the next ready build-plan task, routed by its own `target.kind`: a coding task goes to the coding
91
89
  * agent (bounded by its scope, locked, captured and verified); a companion generation step runs the
@@ -113,12 +111,8 @@ export declare class ApplicationBuildDispatchCompanionService {
113
111
  * in the durable actor-task row it already writes. The same single-flight properties hold — this
114
112
  * is the same `dispatchNextBuildTask`, minus the requirement that a socket survive it.
115
113
  */
116
- submitBuildDispatchDetached(input?: {
117
- readonly maximumTokenBudget?: number;
118
- }, session?: CompanionExecutionSessionContext): Promise<ApplicationBuildDispatchPlan>;
119
- dispatchNextBuildTask(input?: {
120
- readonly maximumTokenBudget?: number;
121
- }, session?: CompanionExecutionSessionContext): Promise<ApplicationBuildDispatchResult>;
114
+ submitBuildDispatchDetached(session?: CompanionExecutionSessionContext): Promise<ApplicationBuildDispatchPlan>;
115
+ dispatchNextBuildTask(session?: CompanionExecutionSessionContext): Promise<ApplicationBuildDispatchResult>;
122
116
  /**
123
117
  * Reconstruct the answerable state for a parked coding task whose IN-PROCESS
124
118
  * state was lost to a companion restart, by RE-SELECTING it from the build plan.
@@ -1 +1 @@
1
- {"version":3,"file":"application-build-dispatch.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/services/application-build-dispatch.companion.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAO9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAahE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,6BAA6B,EAAE,MAAM,6EAA6E,CAAC;AAG5H,OAAO,EACL,mCAAmC,EACnC,KAAK,wBAAwB,EAC9B,MAAM,mEAAmE,CAAC;AAC3E,OAAO,EAEL,KAAK,iCAAiC,EACvC,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,4BAA4B,EAAE,MAAM,4DAA4D,CAAC;AAC1G,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,uDAAuD,CAAC;AAC9G,OAAO,EACL,8CAA8C,EAC9C,KAAK,uCAAuC,EAC7C,M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,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IAWhI;;;;;;;;;;;;;;OAcG;IACU,sBAAsB,IAAI,OAAO,CAAC,SAAS;QACtD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;QAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;QAC5B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;QACjC,QAAQ,CAAC,MAAM,EAAE,4BAA4B,CAAC;QAC9C,QAAQ,CAAC,oBAAoB,EAAE,SAAS,MAAM,EAAE,CAAC;KAClD,EAAE,CAAC;YAoBU,qBAAqB;IAenC,4FAA4F;YAC9E,aAAa;IAyB3B;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH;;;;;;;OAOG;IACH,OAAO,CAAC,qCAAqC;YAiB/B,mBAAmB;CA+GlC"}
1
+ {"version":3,"file":"application-build-dispatch.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/application-build-dispatch.companion.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAO9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAahE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,6BAA6B,EAAE,MAAM,6EAA6E,CAAC;AAG5H,OAAO,EACL,mCAAmC,EACnC,KAAK,wBAAwB,EAC9B,MAAM,mEAAmE,CAAC;AAC3E,OAAO,EAEL,KAAK,iCAAiC,EACvC,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,4BAA4B,EAAE,MAAM,4DAA4D,CAAC;AAC1G,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,uDAAuD,CAAC;AAC9G,OAAO,EACL,8CAA8C,EAE9C,KAAK,uCAAuC,EAC7C,MAAM,uDAAuD,CAAC;AAO/D,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,CAAC,eAAe,EAAE,MAAM,CAAC;QACjC,QAAQ,CAAC,MAAM,EAAE,4BAA4B,CAAC;QAC9C,QAAQ,CAAC,oBAAoB,EAAE,SAAS,MAAM,EAAE,CAAC;KAClD,EAAE,CAAC;YAoBU,qBAAqB;IAiCnC,4FAA4F;YAC9E,aAAa;IAiC3B;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH;;;;;;;OAOG;IACH,OAAO,CAAC,qCAAqC;YAgB/B,mBAAmB;CA4GlC"}
@@ -14,8 +14,7 @@ import { inject, injectable } from 'inversify';
14
14
  import { WorkbenchBuildPlanTaskStatus } from '@wildo-ai/platform-core-shared';
15
15
  import { composeBuildTaskCodingContract, slugifyRegistryIdentifier, } from '@wildo-ai/application-creation-runtime';
16
16
  import { SAAS_SERVICE_TYPES } from '@wildo-ai/saas-backend-lib';
17
- import { MetaWorkflow_ContextSourceRole } from '@wildo-ai/saas-models/meta-workflows';
18
- import { BuildPlanTaskGraphSchema, BuildPlanTaskTargetKind, selectReadyBuildPlanTasks, validateBuildPlanTaskGraph, } from '@wildo-ai/saas-specifications/application-creation';
17
+ import { BUILD_PLAN_TASK_GRAPH_HARD_FLOOR_CODES, BuildPlanTaskGraphSchema, BuildPlanTaskTargetKind, selectReadyBuildPlanTasks, validateBuildPlanTaskGraph, } from '@wildo-ai/saas-specifications/application-creation';
19
18
  import { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types.js';
20
19
  import { CompanionIntrospectionService } from '../../core/introspection/services/companion-introspection.companion.service.js';
21
20
  import { loadSpecificationsCompanionExports } from '../../core/context/companion-package-loaders.companion.js';
@@ -23,7 +22,7 @@ import { waitForDevCompileQuiet } from '../../core/runtime/dev-compile-quiet.com
23
22
  import { CodingAgentDispatchCompanionService, } from '../../claude-cli/services/coding-agent-dispatch.companion.service.js';
24
23
  import { resolveApplicationCodingTaskVerificationPlans, } from '../../claude-cli/models/coding-agent-dispatch.models.js';
25
24
  import { GitChangeSetCompanionService } from '../../claude-cli/services/git-change-set.companion.service.js';
26
- import { ApplicationBuildGenerationStepCompanionService, } from './application-build-generation-step.companion.service.js';
25
+ import { ApplicationBuildGenerationStepCompanionService, ApplicationBuildGenerationStepLandedKind, } from './application-build-generation-step.companion.service.js';
27
26
  import { resolveBuildPlanTaskCodingPolicy, resolveBuildTaskLandedEvidencePaths, } from './application-build-task-coding-policy.companion.service.js';
28
27
  /** No build plan, or nothing left to do. Named so the transport can say which. */
29
28
  export class ApplicationBuildPlanUnavailableError extends Error {
@@ -80,8 +79,8 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
80
79
  this.logDebug = this.logger.debugByType('ApplicationBuildDispatchCompanionService');
81
80
  }
82
81
  /** What the next run would be, without running it. Pure read — nothing is locked, created or started. */
83
- async describeNextBuildTask(input = {}) {
84
- return (await this.prepareNextBuildTask(input)).plan;
82
+ async describeNextBuildTask() {
83
+ return (await this.prepareNextBuildTask()).plan;
85
84
  }
86
85
  /**
87
86
  * Run the next ready build-plan task, routed by its own `target.kind`: a coding task goes to the coding
@@ -106,15 +105,15 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
106
105
  * in the durable actor-task row it already writes. The same single-flight properties hold — this
107
106
  * is the same `dispatchNextBuildTask`, minus the requirement that a socket survive it.
108
107
  */
109
- submitBuildDispatchDetached(input = {}, session) {
110
- return this.prepareNextBuildTask(input).then((prepared) => {
108
+ submitBuildDispatchDetached(session) {
109
+ return this.prepareNextBuildTask().then((prepared) => {
111
110
  const record = {
112
111
  taskRef: prepared.plan.taskRef,
113
112
  startedAt: new Date().toISOString(),
114
113
  };
115
114
  this.lastDetachedDispatches.unshift(record);
116
115
  this.lastDetachedDispatches.splice(5);
117
- void this.dispatchNextBuildTask(input, session)
116
+ void this.dispatchNextBuildTask(session)
118
117
  .then(() => { record.finishedAt = new Date().toISOString(); record.ok = true; })
119
118
  .catch((error) => {
120
119
  record.finishedAt = new Date().toISOString();
@@ -125,8 +124,8 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
125
124
  return prepared.plan;
126
125
  });
127
126
  }
128
- async dispatchNextBuildTask(input = {}, session) {
129
- const prepared = await this.prepareNextBuildTask(input);
127
+ async dispatchNextBuildTask(session) {
128
+ const prepared = await this.prepareNextBuildTask();
130
129
  if (prepared.kind === 'GENERATION_STEP') {
131
130
  this.logDebug('Running a companion generation step', {
132
131
  taskRef: prepared.plan.taskRef,
@@ -189,7 +188,6 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
189
188
  // would spend a model call to build context nothing reads.
190
189
  contextSources: [this.buildTaskSelfDescriptionContextSource(task, graph.tasks.length)],
191
190
  objectiveRef: 'application-creation:objective/build-plan',
192
- maximumTokenBudget: DEFAULT_CONTEXT_TOKEN_BUDGET,
193
191
  });
194
192
  }
195
193
  catch {
@@ -208,7 +206,7 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
208
206
  parkedAt: new Date().toISOString(),
209
207
  };
210
208
  }
211
- async prepareNextBuildTask(input) {
209
+ async prepareNextBuildTask() {
212
210
  const graph = await this.readBuildPlan();
213
211
  const landedTaskRefs = await this.resolveLandedTaskRefs(graph.tasks);
214
212
  const ready = selectReadyBuildPlanTasks(graph, landedTaskRefs);
@@ -250,7 +248,6 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
250
248
  boundary,
251
249
  contextSources: await this.buildContextSources(task, graph.tasks.length),
252
250
  objectiveRef: 'application-creation:objective/build-plan',
253
- maximumTokenBudget: input.maximumTokenBudget ?? DEFAULT_CONTEXT_TOKEN_BUDGET,
254
251
  });
255
252
  const plan = {
256
253
  taskRef: task.taskRef,
@@ -330,11 +327,32 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
330
327
  async resolveLandedTaskRefs(tasks) {
331
328
  const landed = new Set();
332
329
  for (const task of tasks) {
333
- const evidencePaths = task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP
334
- // Planner-derived: the exact unit files the step's pipelines write (see that service's JSDoc for
335
- // why a directory prefix would be dishonest here).
336
- ? await this.generationSteps.resolveGenerationStepEvidencePaths(task)
337
- : resolveBuildTaskLandedEvidencePaths(task);
330
+ if (task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {
331
+ /*
332
+ * A generation step declares HOW it proves it landed, because not every step proves it with
333
+ * files. Most name the exact unit files their pipelines write (see that service's JSDoc for
334
+ * why a directory prefix would be dishonest). The migration step cannot — its artifact is
335
+ * `backend-api/migrations/<timestamp>_<name>/migration.sql` and the timestamp is minted
336
+ * during the run — so it lands on the STATE it exists to reach instead.
337
+ *
338
+ * Read the condition, never the evidence paths: for the migration step those name the
339
+ * accepted lockfile, which predates the step, so landing on it would pass having verified
340
+ * nothing.
341
+ */
342
+ const condition = await this.generationSteps.resolveGenerationStepLandedCondition(task);
343
+ if (condition.kind === ApplicationBuildGenerationStepLandedKind.SCHEMA_PLAN_IN_SYNC) {
344
+ if (await this.generationSteps.isSchemaPlanInSync())
345
+ landed.add(task.taskRef);
346
+ continue;
347
+ }
348
+ if (condition.paths.length === 0)
349
+ continue;
350
+ const committedPaths = await Promise.all(condition.paths.map((path) => this.git.isWorktreePathCommitted(path)));
351
+ if (committedPaths.every(Boolean))
352
+ landed.add(task.taskRef);
353
+ continue;
354
+ }
355
+ const evidencePaths = resolveBuildTaskLandedEvidencePaths(task);
338
356
  if (evidencePaths.length === 0)
339
357
  continue;
340
358
  const committed = await Promise.all(evidencePaths.map((path) => this.git.isWorktreePathCommitted(path)));
@@ -354,11 +372,19 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
354
372
  if (!parsed.success) {
355
373
  throw new ApplicationBuildPlanUnavailableError(`The application's build plan does not satisfy its schema: ${parsed.error.issues.slice(0, 3).map((issue) => `${issue.path.join('.')}: ${issue.message}`).join('; ')}`);
356
374
  }
357
- // Semantic validation too, not just the shape: a graph with a dangling prerequisite would let
358
- // `selectReadyBuildPlanTasks` report a task ready whose dependency can never land.
375
+ // Semantic validation too, not just the shape: a graph whose ordering is unsound would let
376
+ // `selectReadyBuildPlanTasks` report a task ready before the work it depends on can have landed.
377
+ //
378
+ // Gated on the FLOOR codes, not on `findings.length > 0` as it was until 2026-09-09. That older
379
+ // reading made this gate disagree with the landing gate about the same graph: an authoring
380
+ // warning — a resource stage whose predecessor is absent from the plan, which is legitimate when
381
+ // the tree already carries that stage — landed happily at the semantic authority and then made
382
+ // the whole plan permanently undispatchable HERE, with the refusal naming a warning. One
383
+ // classification, named once in `_core` beside the codes.
359
384
  const findings = validateBuildPlanTaskGraph(parsed.data);
360
- if (findings.length > 0) {
361
- throw new ApplicationBuildPlanUnavailableError(`The application's build plan fails semantic validation: ${findings.slice(0, 3).map((finding) => finding.message).join('; ')}`);
385
+ const blocking = findings.filter((finding) => BUILD_PLAN_TASK_GRAPH_HARD_FLOOR_CODES.includes(finding.code));
386
+ if (blocking.length > 0) {
387
+ throw new ApplicationBuildPlanUnavailableError(`The application's build plan fails semantic validation: ${blocking.slice(0, 3).map((finding) => finding.message).join('; ')}`);
362
388
  }
363
389
  return parsed.data;
364
390
  }
@@ -402,7 +428,6 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
402
428
  return {
403
429
  sourceRef: 'application-creation:context/build-task',
404
430
  originRef: 'application-creation:origin/build-plan',
405
- role: MetaWorkflow_ContextSourceRole.MANDATORY,
406
431
  content: {
407
432
  taskRef: task.taskRef,
408
433
  objective: task.objective,
@@ -427,7 +452,6 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
427
452
  sources.push({
428
453
  sourceRef: 'application-creation:context/live-queries',
429
454
  originRef: 'application-creation:origin/dev-companion',
430
- role: MetaWorkflow_ContextSourceRole.MANDATORY,
431
455
  content: {
432
456
  guidance: 'Live application state is one shell command away — prefer asking over re-deriving from the tree. '
433
457
  + '`wildo context list` prints the menu with descriptions; `wildo context info <behaviorId>` runs one query; '
@@ -454,7 +478,6 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
454
478
  sources.push({
455
479
  sourceRef: 'application-creation:context/workspace-truth',
456
480
  originRef: 'application-creation:origin/resources-registry-introspection',
457
- role: MetaWorkflow_ContextSourceRole.MANDATORY,
458
481
  content: {
459
482
  allModuleIds: modules.map((sharedModule) => sharedModule.moduleId),
460
483
  ...(targetModule
@@ -499,7 +522,6 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
499
522
  sources.push({
500
523
  sourceRef: 'application-creation:context/domain-plan-slice',
501
524
  originRef: 'application-creation:origin/domain-plan',
502
- role: MetaWorkflow_ContextSourceRole.MANDATORY,
503
525
  content: {
504
526
  targetModule: targetPlanModule,
505
527
  ...(resourceRef !== undefined ? { targetResourceRef: resourceRef } : {}),
@@ -529,6 +551,4 @@ ApplicationBuildDispatchCompanionService = __decorate([
529
551
  CompanionIntrospectionService])
530
552
  ], ApplicationBuildDispatchCompanionService);
531
553
  export { ApplicationBuildDispatchCompanionService };
532
- /** Context ceiling for one dispatch. Stated here because only the host knows what the agent can accept. */
533
- const DEFAULT_CONTEXT_TOKEN_BUDGET = 120_000;
534
554
  //# sourceMappingURL=application-build-dispatch.companion.service.js.map