@wildo-ai/dev-companion 1.1.5 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (596) hide show
  1. package/dist/esm/.tsbuildinfo +1 -1
  2. package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
  3. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js +0 -1
  4. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
  5. package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
  6. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +0 -1
  7. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
  8. package/dist/esm/brand/services/brand-accept.companion.service.d.ts +8 -0
  9. package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
  10. package/dist/esm/brand/services/brand-accept.companion.service.js +6 -0
  11. package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
  12. package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts +21 -0
  13. package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -0
  14. package/dist/esm/brand/services/brand-propagation.companion.utils.js +33 -0
  15. package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -0
  16. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +69 -1
  17. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  18. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +84 -3
  19. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  20. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +8 -4
  21. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
  22. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +9 -5
  23. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
  24. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js +1 -1
  25. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
  26. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +4 -0
  27. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -1
  28. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +25 -3
  29. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -1
  30. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +159 -11
  31. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
  32. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +424 -41
  33. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
  34. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +333 -60
  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 +1029 -185
  37. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  38. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts +8 -2
  39. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -1
  40. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js +8 -2
  41. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -1
  42. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts +20 -0
  43. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -0
  44. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js +29 -0
  45. package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -0
  46. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +11 -0
  47. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  48. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +60 -7
  49. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  50. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +5 -4
  51. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  52. package/dist/esm/claude-cli/services/research-evidence-store.companion.js +13 -4
  53. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  54. package/dist/esm/companion-api/companion-api.schemas.d.ts +193 -2
  55. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  56. package/dist/esm/companion-api/companion-api.schemas.js +20 -1
  57. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  58. package/dist/esm/companion-api/companion-error-guidance.models.d.ts +25 -0
  59. package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -0
  60. package/dist/esm/companion-api/companion-error-guidance.models.js +26 -0
  61. package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -0
  62. package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts +44 -0
  63. package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -0
  64. package/dist/esm/companion-api/controllers/companion-file-route-confinement.js +111 -0
  65. package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -0
  66. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts +6 -14
  67. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
  68. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +6 -14
  69. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
  70. package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts +12 -0
  71. package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -0
  72. package/dist/esm/companion-api/controllers/companion-trace-exemptions.js +20 -0
  73. package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -0
  74. package/dist/esm/companion-api/controllers/companion.controller.d.ts +104 -14
  75. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  76. package/dist/esm/companion-api/controllers/companion.controller.js +516 -122
  77. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  78. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
  79. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js +6 -38
  80. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
  81. package/dist/esm/core/config/primary-language.companion.utils.d.ts +13 -0
  82. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  83. package/dist/esm/core/config/primary-language.companion.utils.js +19 -0
  84. package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
  85. package/dist/esm/core/context/companion-package-loaders.companion.js +1 -39
  86. package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
  87. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  88. package/dist/esm/core/inject/models/container.js +4 -0
  89. package/dist/esm/core/inject/models/container.js.map +1 -1
  90. package/dist/esm/core/inject/models/service-types.d.ts +4 -0
  91. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  92. package/dist/esm/core/inject/models/service-types.js +4 -0
  93. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  94. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  95. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js +16 -0
  96. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
  97. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts +1 -1
  98. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  99. package/dist/esm/core/introspection/models/companion-introspection.models.js +6 -0
  100. package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
  101. package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts +41 -0
  102. package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -0
  103. package/dist/esm/core/introspection/resources/application-secrets.companion.js +155 -0
  104. package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -0
  105. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts +76 -0
  106. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -0
  107. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js +197 -0
  108. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -0
  109. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts +47 -0
  110. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -0
  111. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +199 -0
  112. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -0
  113. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +42 -0
  114. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  115. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +173 -22
  116. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  117. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts +78 -90
  118. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  119. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +288 -25
  120. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  121. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts +22 -36
  122. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
  123. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js +49 -13
  124. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
  125. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts +1 -1
  126. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  127. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js +10 -15
  128. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
  129. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +2 -0
  130. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
  131. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
  132. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts +4 -0
  133. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
  134. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.js.map +1 -1
  135. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  136. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +77 -9
  137. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  138. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts +45 -3
  139. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
  140. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js +8 -1
  141. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
  142. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts +3 -2
  143. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
  144. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js +8 -3
  145. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
  146. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +30 -1
  147. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
  148. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +128 -20
  149. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
  150. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts +13 -0
  151. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  152. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +21 -17
  153. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
  154. package/dist/esm/core/runtime/companion-endpoint-record.d.ts +8 -0
  155. package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -0
  156. package/dist/esm/core/runtime/companion-endpoint-record.js +23 -0
  157. package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -0
  158. package/dist/esm/core/runtime/companion-env-file.d.ts +30 -0
  159. package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -0
  160. package/dist/esm/core/runtime/companion-env-file.js +53 -0
  161. package/dist/esm/core/runtime/companion-env-file.js.map +1 -0
  162. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +5 -0
  163. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
  164. package/dist/esm/core/runtime/dev-compile-quiet.companion.js +11 -0
  165. package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
  166. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts +56 -0
  167. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -0
  168. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js +97 -0
  169. package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -0
  170. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +43 -3
  171. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  172. package/dist/esm/core/runtime/services/start-companion-application.service.js +127 -22
  173. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  174. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts +11 -1
  175. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  176. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +42 -19
  177. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  178. package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
  179. package/dist/esm/core/specifications/resource-specification-context.factory.js +10 -1
  180. package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
  181. package/dist/esm/core/traceability/companion-traceability.models.d.ts +1 -7
  182. package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
  183. package/dist/esm/core/traceability/companion-traceability.models.js +3 -5
  184. package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
  185. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
  186. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +15 -14
  187. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
  188. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts +0 -23
  189. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
  190. package/dist/esm/creation-conversation/creation-conversation.function-tools.js +251 -50
  191. package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
  192. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  193. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +0 -2
  194. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  195. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
  196. package/dist/esm/deliberations/services/deliberation.companion.service.js +3 -2
  197. package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
  198. package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
  199. package/dist/esm/email/models/email-template.actors-system.definitions.js +0 -1
  200. package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
  201. package/dist/esm/email/services/email-template.companion.service.d.ts +5 -3
  202. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  203. package/dist/esm/email/services/email-template.companion.service.js +53 -255
  204. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  205. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts +12 -0
  206. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
  207. package/dist/esm/email/utils/email-labels-file-source.utils.js +62 -3
  208. package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
  209. package/dist/esm/email/utils/email-labels-tree.utils.d.ts +52 -0
  210. package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -0
  211. package/dist/esm/email/utils/email-labels-tree.utils.js +261 -0
  212. package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -0
  213. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts +2 -0
  214. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -1
  215. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js +21 -1
  216. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -1
  217. package/dist/esm/executions/services/companion-executions.companion.service.d.ts +18 -1
  218. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  219. package/dist/esm/executions/services/companion-executions.companion.service.js +187 -46
  220. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  221. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  222. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +0 -1
  223. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  224. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  225. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +0 -1
  226. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  227. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  228. package/dist/esm/expert-personas/services/expert-persona.companion.service.js +10 -0
  229. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  230. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts +1 -8
  231. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
  232. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js +2 -9
  233. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
  234. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts +2 -0
  235. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
  236. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js +3 -1
  237. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
  238. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts +32 -0
  239. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -0
  240. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js +32 -0
  241. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -0
  242. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts +0 -1
  243. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
  244. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js +0 -1
  245. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
  246. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts +0 -7
  247. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
  248. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js +0 -7
  249. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
  250. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts +30 -4
  251. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -1
  252. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js +31 -5
  253. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -1
  254. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts +0 -2
  255. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
  256. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js +0 -2
  257. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
  258. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts +4 -0
  259. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
  260. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js +5 -1
  261. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
  262. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts +1 -15
  263. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
  264. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js +1 -15
  265. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
  266. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts +0 -3
  267. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
  268. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js +0 -3
  269. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
  270. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts +49 -16
  271. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  272. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js +49 -16
  273. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
  274. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts +0 -5
  275. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
  276. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js +0 -5
  277. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
  278. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts +3 -0
  279. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
  280. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +4 -1
  281. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
  282. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts +7 -1
  283. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
  284. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js +8 -2
  285. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
  286. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts +1 -0
  287. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
  288. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js +2 -1
  289. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
  290. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts +1 -0
  291. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
  292. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js +2 -1
  293. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
  294. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts +12 -0
  295. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -0
  296. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js +12 -0
  297. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -0
  298. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts +1 -0
  299. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
  300. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js +2 -1
  301. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
  302. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts +10 -0
  303. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -1
  304. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js +11 -1
  305. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -1
  306. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts +8 -0
  307. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
  308. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js +9 -1
  309. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
  310. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts +3 -0
  311. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
  312. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js +4 -1
  313. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
  314. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +2 -1
  315. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
  316. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +3 -2
  317. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
  318. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts +6 -0
  319. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
  320. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js +7 -1
  321. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
  322. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts +1 -0
  323. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
  324. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js +2 -1
  325. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
  326. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts +0 -2
  327. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
  328. package/dist/esm/i18n/components/progression_milestone_tracker.en.js +0 -2
  329. package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
  330. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts +1 -0
  331. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
  332. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +123 -19
  333. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
  334. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -1
  335. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js +12 -0
  336. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
  337. package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts +25 -0
  338. package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -0
  339. package/dist/esm/i18n/errors_guidance/errors-guidance.en.js +26 -0
  340. package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -0
  341. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts +26 -3
  342. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
  343. package/dist/esm/i18n/errors_messages/errors-messages.en.js +25 -3
  344. package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
  345. package/dist/esm/i18n/index.d.ts +10 -8
  346. package/dist/esm/i18n/index.d.ts.map +1 -1
  347. package/dist/esm/i18n/index.js +10 -8
  348. package/dist/esm/i18n/index.js.map +1 -1
  349. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +10 -0
  350. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
  351. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +2 -0
  352. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
  353. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts +97 -0
  354. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -0
  355. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js +60 -0
  356. package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -0
  357. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
  358. package/dist/esm/i18n/resources/workbenchAspects.en.js +6 -0
  359. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
  360. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts +5 -0
  361. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -1
  362. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js +1 -0
  363. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -1
  364. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts +24 -0
  365. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -1
  366. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js +8 -0
  367. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -1
  368. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +30 -0
  369. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
  370. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +9 -0
  371. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
  372. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts +17 -4
  373. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
  374. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js +32 -4
  375. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -1
  376. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts +8 -2
  377. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
  378. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js +6 -2
  379. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
  380. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts +18 -7
  381. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
  382. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js +17 -7
  383. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
  384. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts +28 -3
  385. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
  386. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js +13 -3
  387. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
  388. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts +3 -2
  389. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
  390. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js +8 -2
  391. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
  392. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +118 -8
  393. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  394. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +42 -16
  395. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  396. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts +12 -2
  397. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
  398. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js +16 -2
  399. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
  400. package/dist/esm/i18n/system_enums/application-creation.en.d.ts +10 -0
  401. package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
  402. package/dist/esm/i18n/system_enums/application-creation.en.js +11 -0
  403. package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
  404. package/dist/esm/i18n/system_enums/processor-register.en.d.ts +6 -0
  405. package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -1
  406. package/dist/esm/i18n/system_enums/processor-register.en.js +6 -0
  407. package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
  408. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +4 -1
  409. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
  410. package/dist/esm/i18n/system_enums/workbench-dossier.en.js +5 -1
  411. package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
  412. package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts +46 -0
  413. package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -0
  414. package/dist/esm/i18n/system_enums/workbench-secrets.en.js +46 -0
  415. package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -0
  416. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts +8 -0
  417. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -1
  418. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js +13 -0
  419. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -1
  420. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts +61 -0
  421. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -0
  422. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js +22 -0
  423. package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -0
  424. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +105 -24
  425. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
  426. package/dist/esm/i18n-labelling/models/labelling-unit.models.js +55 -24
  427. package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
  428. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
  429. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js +0 -2
  430. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
  431. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts +48 -0
  432. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -0
  433. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js +145 -0
  434. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -0
  435. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +70 -18
  436. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  437. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +330 -113
  438. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  439. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts +45 -0
  440. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
  441. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js +208 -6
  442. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
  443. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +11 -2
  444. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  445. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +101 -18
  446. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  447. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts +64 -1
  448. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  449. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +393 -70
  450. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  451. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +9 -5
  452. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
  453. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
  454. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts +54 -0
  455. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -0
  456. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js +74 -0
  457. package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -0
  458. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts +3 -3
  459. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
  460. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts +24 -0
  461. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -0
  462. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js +34 -0
  463. package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -0
  464. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
  465. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js +5 -1
  466. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
  467. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts +76 -0
  468. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -0
  469. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js +110 -0
  470. package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -0
  471. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts +17 -0
  472. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -0
  473. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js +23 -0
  474. package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -0
  475. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +36 -3
  476. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
  477. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +77 -5
  478. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
  479. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts +38 -0
  480. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -0
  481. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js +66 -0
  482. package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -0
  483. package/dist/esm/index.d.ts.map +1 -1
  484. package/dist/esm/index.js +9 -3
  485. package/dist/esm/index.js.map +1 -1
  486. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -1
  487. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js +0 -1
  488. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -1
  489. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  490. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +1 -3
  491. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  492. package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts +11 -0
  493. package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -0
  494. package/dist/esm/meta-workflows/models/application-line-catalog.models.js +17 -0
  495. package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -0
  496. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  497. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js +0 -1
  498. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  499. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js +1 -1
  500. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
  501. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts +14 -0
  502. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -1
  503. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js +18 -0
  504. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
  505. package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts +14 -0
  506. package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -0
  507. package/dist/esm/meta-workflows/models/human-decision-settler.models.js +18 -0
  508. package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -0
  509. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +31 -23
  510. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  511. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +36 -5
  512. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
  513. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
  514. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js +1 -3
  515. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
  516. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +19 -0
  517. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
  518. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +38 -6
  519. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
  520. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +48 -3
  521. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
  522. package/dist/esm/meta-workflows/models/playbook-run-record.models.js +61 -8
  523. package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
  524. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +15 -1
  525. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -1
  526. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +50 -5
  527. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -1
  528. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +52 -9
  529. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  530. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +131 -59
  531. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  532. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts +19 -0
  533. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -0
  534. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js +36 -0
  535. package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -0
  536. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +9 -0
  537. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  538. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +41 -17
  539. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  540. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +42 -2
  541. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  542. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +121 -4
  543. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  544. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts +32 -0
  545. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -0
  546. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +161 -0
  547. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -0
  548. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts +2 -0
  549. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -1
  550. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js +1 -0
  551. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
  552. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts +3 -2
  553. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
  554. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +12 -3
  555. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
  556. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +74 -1
  557. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
  558. package/dist/esm/meta-workflows/services/dossier.companion.service.js +227 -30
  559. package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
  560. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +29 -2
  561. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  562. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +68 -5
  563. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  564. package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts +40 -0
  565. package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -0
  566. package/dist/esm/meta-workflows/services/governed-document-texts.companion.js +91 -0
  567. package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -0
  568. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts +25 -0
  569. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -0
  570. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js +40 -0
  571. package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -0
  572. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts +90 -0
  573. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -0
  574. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +307 -0
  575. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -0
  576. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +29 -0
  577. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  578. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +44 -4
  579. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  580. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +360 -47
  581. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  582. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +1424 -246
  583. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  584. package/package.json +17 -17
  585. package/dist/esm/__time-gov.probe.d.mts +0 -0
  586. package/dist/esm/__time-gov.probe.d.mts.map +0 -0
  587. package/dist/esm/__time-gov.probe.mjs.map +0 -0
  588. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts +0 -0
  589. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts.map +0 -0
  590. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.js.map +0 -0
  591. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts +0 -0
  592. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +0 -0
  593. package/dist/esm/i18n/composite_views/app.creation-board.en.js.map +0 -0
  594. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts +0 -0
  595. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts.map +0 -0
  596. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.js.map +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"creation-conversation.actors-system.definitions.js","sourceRoot":"","sources":["../../../../src/creation-conversation/creation-conversation.actors-system.definitions.ts"],"names":[],"mappings":"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","sourcesContent":["import type { 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} from '@wildo-ai/saas-models';\nimport {\n LLMProvider_ChatCompletionInputSchema,\n LLMProvider_ChatCompletionOutputSchema,\n LLMProvider_OperationContext_BaseSchema,\n LLMProvider_OperationKey,\n LLM_Model_Applicability,\n type LLMProvider_OperationDefinitionBase,\n} from '@wildo-ai/external-connectors-models';\n\nimport { WORKBENCH_CREATION_CONVERSATION_SYSTEM_REF } from '@wildo-ai/platform-core-shared';\n\nimport { CREATION_CONVERSATION_TOOL_REFS } from './creation-conversation.function-tools';\n\n/**\n * The CREATION CONVERSATION — the actor system behind the workbench's chat (#1454, Step 4).\n *\n * ## What it is\n *\n * Paul, 2026-09-21: the workbench is \"primarily a chatbot\"; a free session is primordial. This is\n * the system that chat talks to: ONE agentic actor whose TOOLS are the typed operations the\n * companion already exposes — read where the application stands, read an artifact, run a playbook,\n * answer a run's question, research. It has no free-form write power, deliberately: the raw\n * coding-prompt door was closed at the first-activation hard cut and this does not reopen it.\n * Changing the application goes through a proposed build task the creator dispatches (Step 7).\n *\n * ## Where it runs\n *\n * On the ENGINE's conversational runtime (`ConversationalExecutionBackendService`), which the\n * companion already binds: threads persist as `userFlowActorExecutions` in the platform database,\n * turns stream over the engine's WebSocket, approvals are the engine's signed suspensions. The\n * engine learns nothing about application creation — this file is the application-creation side\n * naming a system, an agent and tools, exactly as an application's own module does.\n *\n * ## Why every tool that spends money asks first\n *\n * `requiresHumanApproval` on `run_playbook` and `research` is the standing constraint \"model-calling\n * runs need Paul's word\", made mechanical: the turn suspends, the creator sees the call (and may edit\n * its arguments), and nothing is spent until they approve.\n */\n/* The ref is SHARED vocabulary: the workbench declares its view on the same constant. */\nexport const CREATION_CONVERSATION_SYSTEM_REF = WORKBENCH_CREATION_CONVERSATION_SYSTEM_REF;\nexport const CREATION_CONVERSATION_AGENT_REF = 'application-creation.conversation.agent' as const;\n\nexport const creationConversationAgent: FlowsActors_Agent = {\n ref: CREATION_CONVERSATION_AGENT_REF,\n displayName: 'Creation assistant',\n status: FlowsActors_Agent_Status.ACTIVE,\n config: {\n providerRef: 'anthropic',\n /*\n * DEEP_JUDGMENT rather than a pinned model: a creation turn weighs what the application already\n * has against what the creator asks, and picks among typed actions. Resolved by the registry at\n * startup to the provider's current model for that applicability.\n */\n modelApplicability: LLM_Model_Applicability.DEEP_JUDGMENT,\n operationKey: LLMProvider_OperationKey.CHAT_COMPLETION,\n accessControl: [{ primaryScope: ResourcePrimaryScope.APPLICATION, requiresApproval: false }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n operationDefinition: {\n operationKey: LLMProvider_OperationKey.CHAT_COMPLETION,\n providerRef: 'anthropic',\n inputSchema: LLMProvider_ChatCompletionInputSchema,\n outputSchema: LLMProvider_ChatCompletionOutputSchema,\n operationContextSchema: LLMProvider_OperationContext_BaseSchema,\n } satisfies LLMProvider_OperationDefinitionBase,\n promptSpec: {\n role:\n 'You are the creation assistant of the Wildo application-creation workbench. The person you talk '\n + 'to is CREATING a software application; you help them get it done. You read where the '\n + 'application stands, explain it in their words, and start the typed steps that move it — never '\n + 'by writing code or files yourself.',\n persona:\n 'You are direct, concrete and grounded in what the tools return. You never invent state: when '\n + 'the answer depends on the application, call the read tools first and answer from what they '\n + 'return. You never mention playbook phases, lanes or family identifiers; you speak of what the '\n + 'application is, the rules it plays by, whether it works, and whether it is ready for a real user. '\n + 'You never run anything the person did not ask for, and you say what a step will cost when it '\n + 'costs something.',\n skillType: FlowsActors_Agent_Skill_Type.CHAT,\n instructions: [\n 'Answer ONLY the current message, concisely. Do not restate what you already said in this conversation.',\n 'Call tools SILENTLY: never narrate your process. Return the answer, or the action you started.',\n `Before saying anything about what exists or is missing, call \\`${CREATION_CONVERSATION_TOOL_REFS.READ_APPLICATION_STATE}\\`. It returns which specification families are landed, refused or missing, which playbooks can run now, and which build tasks are ready or landed.`,\n `To show or discuss a produced artifact, call \\`${CREATION_CONVERSATION_TOOL_REFS.READ_ARTIFACT}\\` with its family id from the state; the workbench opens it beside the conversation.`,\n `To START a step, call \\`${CREATION_CONVERSATION_TOOL_REFS.RUN_PLAYBOOK}\\` with the playbook ref from the state. It asks the person to approve first (that is the confirmation — do not ask in prose) and returns at once with a run id; the run then shows in the conversation as a card. Only ELIGIBLE playbooks may be started; if the one they want is not, say what it waits on.`,\n `If a run stopped on a question and the person answers it, call \\`${CREATION_CONVERSATION_TOOL_REFS.ANSWER_RUN_QUESTION}\\` with the run id and their answers, ref by ref; \\`decline\\` continues on a stated assumption, \\`cancel\\` abandons the run.`,\n `To find something out from the public web, call \\`${CREATION_CONVERSATION_TOOL_REFS.RESEARCH}\\` with one clear objective. It asks for approval first and takes minutes; say so.`,\n `A step that asks the person questions reads its answers from the DOSSIER. Before asking anything, call \\`${CREATION_CONVERSATION_TOOL_REFS.READ_DOSSIER}\\` for that step: ask only what is still-needed, one question at a time, in the question's own words. When the person answers, file it at once with \\`${CREATION_CONVERSATION_TOOL_REFS.RECORD_ANSWER}\\` — their words, never yours, and never an answer they did not give in this conversation. When nothing is still needed, the step can be started.`,\n `When the person asks for a CHANGE to the application, turn it into ONE build task and call \\`${CREATION_CONVERSATION_TOOL_REFS.PROPOSE_BUILD_TASK}\\`: the person reviews the task and approves it, changes it, or refuses — that is the confirmation, so do not describe the task in prose first. A task is added to the plan, not run. If they want it kept for later, stop there.`,\n `Before running a task, call \\`${CREATION_CONVERSATION_TOOL_REFS.DESCRIBE_TASK}\\` and tell the person in one line what it costs — a coding-agent run of minutes, paid per token, with the context size the tool returns — then call \\`${CREATION_CONVERSATION_TOOL_REFS.DISPATCH_TASK}\\`, which asks for their approval. Only a READY task runs; if it is not, say what it waits on. The run then shows as a card; read its outcome there.`,\n `When a run has finished and the person wants to keep what it wrote, call \\`${CREATION_CONVERSATION_TOOL_REFS.ACCEPT_TASK}\\` (approved by them): it commits exactly the run's files and names any it refused. Never say a change is in place before that commit exists.`,\n 'You never write code or files yourself; a change reaches the application only through a build task and its coding run.',\n 'Never claim a run landed, succeeded or was refused: a run\\'s outcome is in its card and its detail, not in your words.',\n ],\n },\n capabilities: {\n tools: {\n functionRefs: [...Object.values(CREATION_CONVERSATION_TOOL_REFS)],\n mcpRefs: [],\n },\n },\n createdAt: '2026-09-22T00:00:00.000Z',\n};\n\nexport const creationConversationActorSystem: ActorSystem = {\n ref: CREATION_CONVERSATION_SYSTEM_REF,\n displayName: 'Creation assistant',\n description: 'Create the application by talking to it.',\n kind: FlowActorSystem_Kind.ACTOR,\n status: FlowActorSystem_Status.ACTIVE,\n /* FRONTEND: the workbench lists it through `/flows-actors/frontend-info` and starts conversations with it. */\n visibility: FlowActorSystem_Visibility.FRONTEND,\n config: {\n timeout: 120_000,\n accessControl: [{ primaryScope: ResourcePrimaryScope.APPLICATION, requiresApproval: false }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n actors: [{\n ref: 'assistant',\n displayName: 'Assistant',\n roleCategory: Actor_Role_Category.OPERATOR,\n executionMode: Actor_ExecutionMode.AGENTIC,\n agentRef: CREATION_CONVERSATION_AGENT_REF,\n }],\n createdAt: '2026-09-22T00:00:00.000Z',\n};\n\nexport const creationConversationFactoryMap = {\n [CREATION_CONVERSATION_SYSTEM_REF]: (): ActorSystem => creationConversationActorSystem,\n};\n"]}
1
+ {"version":3,"file":"creation-conversation.actors-system.definitions.js","sourceRoot":"","sources":["../../../../src/creation-conversation/creation-conversation.actors-system.definitions.ts"],"names":[],"mappings":"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","sourcesContent":["import type { 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} from '@wildo-ai/saas-models';\nimport {\n LLMProvider_ChatCompletionInputSchema,\n LLMProvider_ChatCompletionOutputSchema,\n LLMProvider_OperationContext_BaseSchema,\n LLMProvider_OperationKey,\n LLM_Model_Applicability,\n type LLMProvider_OperationDefinitionBase,\n} from '@wildo-ai/external-connectors-models';\n\nimport { WORKBENCH_CREATION_CONVERSATION_SYSTEM_REF, WorkbenchCreationConversationTool } from '@wildo-ai/platform-core-shared';\n\n\n/**\n * The CREATION CONVERSATION — the actor system behind the workbench's chat (#1454, Step 4).\n *\n * ## What it is\n *\n * Paul, 2026-09-21: the workbench is \"primarily a chatbot\"; a free session is primordial. This is\n * the system that chat talks to: ONE agentic actor whose TOOLS are the typed operations the\n * companion already exposes — read where the application stands, read an artifact, run a playbook,\n * answer a run's question, research. It has no free-form write power, deliberately: the raw\n * coding-prompt door was closed at the first-activation hard cut and this does not reopen it.\n * Changing the application goes through a proposed build task the creator dispatches (Step 7).\n *\n * ## Where it runs\n *\n * On the ENGINE's conversational runtime (`ConversationalExecutionBackendService`), which the\n * companion already binds: threads persist as `userFlowActorExecutions` in the platform database,\n * turns stream over the engine's WebSocket, approvals are the engine's signed suspensions. The\n * engine learns nothing about application creation — this file is the application-creation side\n * naming a system, an agent and tools, exactly as an application's own module does.\n *\n * ## Why every tool that spends money asks first\n *\n * `requiresHumanApproval` on `run_playbook` and `research` is the standing constraint \"model-calling\n * runs need Paul's word\", made mechanical: the turn suspends, the creator sees the call (and may edit\n * its arguments), and nothing is spent until they approve.\n */\n/* The ref is SHARED vocabulary: the workbench declares its view on the same constant. */\nexport const CREATION_CONVERSATION_SYSTEM_REF = WORKBENCH_CREATION_CONVERSATION_SYSTEM_REF;\nexport const CREATION_CONVERSATION_AGENT_REF = 'application-creation.conversation.agent' as const;\n\nexport const creationConversationAgent: FlowsActors_Agent = {\n ref: CREATION_CONVERSATION_AGENT_REF,\n displayName: 'Creation assistant',\n status: FlowsActors_Agent_Status.ACTIVE,\n config: {\n providerRef: 'anthropic',\n /*\n * DEEP_JUDGMENT rather than a pinned model: a creation turn weighs what the application already\n * has against what the creator asks, and picks among typed actions. Resolved by the registry at\n * startup to the provider's current model for that applicability.\n */\n modelApplicability: LLM_Model_Applicability.DEEP_JUDGMENT,\n operationKey: LLMProvider_OperationKey.CHAT_COMPLETION,\n accessControl: [{ primaryScope: ResourcePrimaryScope.APPLICATION }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n operationDefinition: {\n operationKey: LLMProvider_OperationKey.CHAT_COMPLETION,\n providerRef: 'anthropic',\n inputSchema: LLMProvider_ChatCompletionInputSchema,\n outputSchema: LLMProvider_ChatCompletionOutputSchema,\n operationContextSchema: LLMProvider_OperationContext_BaseSchema,\n } satisfies LLMProvider_OperationDefinitionBase,\n promptSpec: {\n role:\n 'You are the creation assistant of the Wildo application-creation workbench. The person you talk '\n + 'to is CREATING a software application; you help them get it done. You read where the '\n + 'application stands, explain it in their words, and start the typed steps that move it — never '\n + 'by writing code or files yourself.',\n persona:\n 'You are direct, concrete and grounded in what the tools return. You never invent state: when '\n + 'the answer depends on the application, call the read tools first and answer from what they '\n + 'return. You never mention playbook phases, lanes or family identifiers; you speak of what the '\n + 'application is, the rules it plays by, whether it works, and whether it is ready for a real user. '\n + 'You never run anything the person did not ask for, and you say what a step will cost when it '\n + 'costs something.',\n skillType: FlowsActors_Agent_Skill_Type.CHAT,\n instructions: [\n 'Answer ONLY the current message, concisely. Do not restate what you already said in this conversation.',\n 'Call tools SILENTLY: never narrate your process. Return the answer, or the action you started.',\n `Before saying anything about what exists or is missing, call \\`${WorkbenchCreationConversationTool.READ_APPLICATION_STATE}\\`. It returns which specification families are landed, refused or missing, which playbooks can run now, and which build tasks are ready or landed.`,\n `To show or discuss a produced artifact, call \\`${WorkbenchCreationConversationTool.READ_ARTIFACT}\\` with its family id from the state; the workbench opens it beside the conversation.`,\n `To START a step, call \\`${WorkbenchCreationConversationTool.RUN_PLAYBOOK}\\` with the playbook ref from the state. It asks the person to approve first (that is the confirmation — do not ask in prose) and returns at once with a run id; the run then shows in the conversation as a card. Only ELIGIBLE playbooks may be started; if the one they want is not, say what it waits on.`,\n `When the person wants a step done SEPARATELY for one purpose (one segment, one area), call \\`${WorkbenchCreationConversationTool.OPEN_PLAYBOOK_INSTANCE}\\` with the playbook ref, a short kebab-case key and the purpose in their words; it asks for approval and records the decision. Then start that instance with \\`${WorkbenchCreationConversationTool.RUN_PLAYBOOK}\\` and its \\`instanceKey\\`. Never open an instance the person did not ask for.`,\n `When the person wants a FEATURE added once the application exists, open a line for it: call \\`${WorkbenchCreationConversationTool.OPEN_SECONDARY_LINE}\\` with the line \\`feature_development\\`, a short kebab-case key and the feature in their words; it asks for approval and records the decision. If the feature needs something this kind of application leaves out (a public website on an internal tool), pass the families it needs back as \\`neededFamilies\\`; never add one the person did not ask for. Then start it with \\`${WorkbenchCreationConversationTool.RUN_PLAYBOOK}\\` on the entry playbook it returns and that key. A line lands the feature as requirements first, then re-plans and builds it; a small change to existing code stays a build task. To say what is being worked on, call \\`${WorkbenchCreationConversationTool.READ_LINES}\\`. When the person says a line is done, or no longer wanted, close it with \\`${WorkbenchCreationConversationTool.CLOSE_SECONDARY_LINE}\\` (completed or abandoned); never close one they did not ask about. When the person wants something the application ALREADY holds made better (the requirements, the experience plan, the value proposition), that is a refinement, not a feature: open it with \\`${WorkbenchCreationConversationTool.OPEN_REFINEMENT_LINE}\\`, naming the families to refine, then run it the same way.`,\n `If a run stopped on a question and the person answers it, call \\`${WorkbenchCreationConversationTool.ANSWER_RUN_QUESTION}\\` with the run id, the ROUND whose questions they answered (from the waiting runs in the state — the round whose questions match what they answered), and their answers, ref by ref; \\`decline\\` continues on a stated assumption, \\`cancel\\` abandons the run. If it answers that the run has asked again, read the state and put the NEW questions to the person.`,\n `To find something out from the public web, call \\`${WorkbenchCreationConversationTool.RESEARCH}\\` with one clear objective. It asks for approval first and takes minutes; say so.`,\n `A step that asks the person questions reads its answers from the DOSSIER. Before asking anything, call \\`${WorkbenchCreationConversationTool.READ_DOSSIER}\\` for that step: ask only what is still-needed, one question at a time, in the question's own words. When the person answers, file it at once with \\`${WorkbenchCreationConversationTool.RECORD_ANSWER}\\` — their words, never yours, and never an answer they did not give in this conversation. When nothing is still needed, the step can be started.`,\n `When the person asks for a CHANGE to the application, turn it into ONE build task and call \\`${WorkbenchCreationConversationTool.PROPOSE_BUILD_TASK}\\`: the person reviews the task and approves it, changes it, or refuses — that is the confirmation, so do not describe the task in prose first. A task is added to the plan, not run. The person's choice comes back with the approval: if they chose to build it now, the workbench starts its coding run itself, so do not call the dispatch tool for that task and do not ask again; if they chose to keep it for later, stop there.`,\n `Before running a task, call \\`${WorkbenchCreationConversationTool.DESCRIBE_TASK}\\` and tell the person in one line what it costs — a coding-agent run of minutes, paid per token, with the context size the tool returns — then call \\`${WorkbenchCreationConversationTool.DISPATCH_TASK}\\`, which asks for their approval. Only a READY task runs; if it is not, say what it waits on. The run then shows as a card; read its outcome there.`,\n `When a run has finished and the person wants to keep what it wrote, call \\`${WorkbenchCreationConversationTool.ACCEPT_TASK}\\` (approved by them): it commits exactly the run's files and names any it refused. Never say a change is in place before that commit exists.`,\n 'You never write code or files yourself; a change reaches the application only through a build task and its coding run.',\n 'Never claim a run landed, succeeded or was refused: a run\\'s outcome is in its card and its detail, not in your words.',\n ],\n },\n capabilities: {\n tools: {\n functionRefs: [...Object.values(WorkbenchCreationConversationTool)],\n mcpRefs: [],\n },\n },\n createdAt: '2026-09-22T00:00:00.000Z',\n};\n\nexport const creationConversationActorSystem: ActorSystem = {\n ref: CREATION_CONVERSATION_SYSTEM_REF,\n displayName: 'Creation assistant',\n description: 'Create the application by talking to it.',\n kind: FlowActorSystem_Kind.ACTOR,\n status: FlowActorSystem_Status.ACTIVE,\n /* FRONTEND: the workbench lists it through `/flows-actors/frontend-info` and starts conversations with it. */\n visibility: FlowActorSystem_Visibility.FRONTEND,\n config: {\n timeout: 120_000,\n accessControl: [{ primaryScope: ResourcePrimaryScope.APPLICATION }],\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n actors: [{\n ref: 'assistant',\n displayName: 'Assistant',\n roleCategory: Actor_Role_Category.OPERATOR,\n executionMode: Actor_ExecutionMode.AGENTIC,\n agentRef: CREATION_CONVERSATION_AGENT_REF,\n }],\n createdAt: '2026-09-22T00:00:00.000Z',\n};\n\nexport const creationConversationFactoryMap = {\n [CREATION_CONVERSATION_SYSTEM_REF]: (): ActorSystem => creationConversationActorSystem,\n};\n"]}
@@ -1,27 +1,4 @@
1
1
  import type { FunctionTool } from '@wildo-ai/saas-backend-lib';
2
- /**
3
- * The tools of the creation assistant (#1454, Step 4) — every one a TYPED operation the companion
4
- * already exposes, reached IN-PROCESS. The assistant never crosses HTTP, so the two-gate problem
5
- * of the workbench client (a browser session for `/api/v1`, a 0600 file token for `/api/companion`)
6
- * does not arise: the tool holds the service.
7
- *
8
- * The refs are the model-facing names (dots become identifier-safe on the way to the model, so
9
- * they are authored without dots). The agent's `capabilities.tools.functionRefs` lists exactly this
10
- * set, from the same constant, so the declared refs and the registered tools cannot drift.
11
- */
12
- export declare const CREATION_CONVERSATION_TOOL_REFS: {
13
- readonly READ_APPLICATION_STATE: "creation_read_application_state";
14
- readonly READ_ARTIFACT: "creation_read_artifact";
15
- readonly RUN_PLAYBOOK: "creation_run_playbook";
16
- readonly ANSWER_RUN_QUESTION: "creation_answer_run_question";
17
- readonly RESEARCH: "creation_research";
18
- readonly READ_DOSSIER: "creation_read_dossier";
19
- readonly RECORD_ANSWER: "creation_record_answer";
20
- readonly PROPOSE_BUILD_TASK: "creation_propose_build_task";
21
- readonly DESCRIBE_TASK: "creation_describe_task";
22
- readonly DISPATCH_TASK: "creation_dispatch_task";
23
- readonly ACCEPT_TASK: "creation_accept_task";
24
- };
25
2
  /**
26
3
  * A lazy service getter rather than the services themselves: the tools are declared at startup
27
4
  * ASSEMBLY, before the container has resolved every companion service, and a tool only needs its
@@ -1 +1 @@
1
- {"version":3,"file":"creation-conversation.function-tools.d.ts","sourceRoot":"","sources":["../../../../src/creation-conversation/creation-conversation.function-tools.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAgC,MAAM,4BAA4B,CAAC;AAW7F;;;;;;;;;GASG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;CAYlC,CAAC;AAEX;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC,CAAC;CAC5C;AA6BD,wBAAgB,sCAAsC,CAAC,QAAQ,EAAE,gCAAgC,GAAG,YAAY,EAAE,CAiPjH"}
1
+ {"version":3,"file":"creation-conversation.function-tools.d.ts","sourceRoot":"","sources":["../../../../src/creation-conversation/creation-conversation.function-tools.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAgC,MAAM,4BAA4B,CAAC;AAqC7F;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC,CAAC;CAC5C;AA6BD,wBAAgB,sCAAsC,CAAC,QAAQ,EAAE,gCAAgC,GAAG,YAAY,EAAE,CAqdjH"}
@@ -1,33 +1,14 @@
1
1
  import { z } from 'zod';
2
2
  import { dispatchResourceOperationAsTool } from '@wildo-ai/saas-backend-lib';
3
3
  import { CoreResourceOperation } from '@wildo-ai/saas-models';
4
- import { WorkbenchBuildPlanTasks_Operations, WorkbenchDossierEntries_Operations, WorkbenchShared_ResourceType, sanitizeWorkbenchCreationPlaneIdentity } from '@wildo-ai/platform-core-shared';
5
- import { PlaybookClarificationAction } from '@wildo-ai/application-creation-runtime';
4
+ import { WorkbenchBuildPlanTasks_Operations, WorkbenchCreationConversationTool, WorkbenchDossierEntries_Operations, WorkbenchShared_ResourceType, sanitizeWorkbenchCreationPlaneIdentity, workbenchDossierEntryIdentity } from '@wildo-ai/platform-core-shared';
5
+ import { getFrameworkKnowledgePlaybook } from '@wildo-ai/framework-knowledge';
6
+ import { APPLICATION_SECONDARY_LINE_DEFINITIONS, ApplicationLineDeclarationState, ApplicationPlaybookInstanceClosureKind, ApplicationSecondaryLine, ApplicationSpecificationFamily, resolveApplicationLineDeclaration, resolveOpenSecondaryLines, } from '@wildo-ai/saas-specifications/application-creation';
6
7
  import { COMPANION_SERVICE_TYPES } from '../core/inject/models/service-types.js';
8
+ import { PlaybookInstanceRefusedError, PlaybookInstanceTreeBusyError } from '../meta-workflows/services/playbook-instance.companion.service.js';
9
+ import { DecisionRecordActor } from '../claude-cli/services/accepted-change-commit.companion.service.js';
7
10
  import { ApplicationBuildTaskNotReadyError } from '../meta-workflows/services/application-build-dispatch.companion.service.js';
8
- /**
9
- * The tools of the creation assistant (#1454, Step 4) — every one a TYPED operation the companion
10
- * already exposes, reached IN-PROCESS. The assistant never crosses HTTP, so the two-gate problem
11
- * of the workbench client (a browser session for `/api/v1`, a 0600 file token for `/api/companion`)
12
- * does not arise: the tool holds the service.
13
- *
14
- * The refs are the model-facing names (dots become identifier-safe on the way to the model, so
15
- * they are authored without dots). The agent's `capabilities.tools.functionRefs` lists exactly this
16
- * set, from the same constant, so the declared refs and the registered tools cannot drift.
17
- */
18
- export const CREATION_CONVERSATION_TOOL_REFS = {
19
- READ_APPLICATION_STATE: 'creation_read_application_state',
20
- READ_ARTIFACT: 'creation_read_artifact',
21
- RUN_PLAYBOOK: 'creation_run_playbook',
22
- ANSWER_RUN_QUESTION: 'creation_answer_run_question',
23
- RESEARCH: 'creation_research',
24
- READ_DOSSIER: 'creation_read_dossier',
25
- RECORD_ANSWER: 'creation_record_answer',
26
- PROPOSE_BUILD_TASK: 'creation_propose_build_task',
27
- DESCRIBE_TASK: 'creation_describe_task',
28
- DISPATCH_TASK: 'creation_dispatch_task',
29
- ACCEPT_TASK: 'creation_accept_task',
30
- };
11
+ import { MetaWorkflow_ClarificationAction } from '@wildo-ai/saas-models/meta-workflows';
31
12
  /**
32
13
  * The rows the WORKBENCH reads, read the same way — the resource's own LIST, dispatched AS THE
33
14
  * CALLER through the engine's tool seam (roles and any declared rate limit applied, like every
@@ -55,45 +36,57 @@ function pick(row, keys) {
55
36
  }
56
37
  export function buildCreationConversationFunctionTools(services) {
57
38
  const readApplicationState = {
58
- functionRef: CREATION_CONVERSATION_TOOL_REFS.READ_APPLICATION_STATE,
39
+ functionRef: WorkbenchCreationConversationTool.READ_APPLICATION_STATE,
59
40
  description: 'Where the application stands: every specification family with its state (landed_valid, landed_invalid, not_landed) '
60
41
  + 'and its concern; every playbook with whether it is eligible to run now, what it waits on, whether it interviews the '
61
- + 'creator first, and which of its outputs are stale; every build-plan task with its status (ready, landed, blocked). '
42
+ + 'creator first, and which of its outputs are stale; every build-plan task with its status (ready, landed, blocked); '
43
+ + 'and every run WAITING on the person, with its run id, the round of questions it is on, and those questions. '
62
44
  + 'Call this before any statement about what exists or is missing.',
63
45
  inputSchema: z.object({}),
64
46
  execute: async (_args, context) => {
65
- const [artifacts, playbooks, tasks] = await Promise.all([
47
+ const [artifacts, playbooks, tasks, waiting] = await Promise.all([
66
48
  readCreationPlaneRows(context, WorkbenchShared_ResourceType.SPECIFICATION_ARTIFACTS),
67
49
  readCreationPlaneRows(context, WorkbenchShared_ResourceType.PLAYBOOKS),
68
50
  readCreationPlaneRows(context, WorkbenchShared_ResourceType.BUILD_PLAN_TASKS),
51
+ /*
52
+ * Read on its OWN terms: the waiting runs failing to read must not take the rest of the state with
53
+ * them, and must not read as "nothing is waiting" either (#1584 review F3).
54
+ */
55
+ readCreationPlaneRows(context, WorkbenchShared_ResourceType.WAITING_PLAYBOOK_RUNS).then((rows) => ({ rows, readFailed: false }), () => ({ rows: [], readFailed: true })),
69
56
  ]);
70
57
  return {
71
58
  families: artifacts.map((row) => pick(row, ['family', 'title', 'state', 'concern', 'errorCount', 'contentSummary'])),
72
59
  playbooks: playbooks.map((row) => pick(row, ['playbookRef', 'intent', 'eligible', 'unmet', 'requiresElicitation', 'staleOutputs', 'wouldReplace'])),
73
60
  buildTasks: tasks.map((row) => pick(row, ['taskRef', 'objective', 'status'])),
61
+ /* What an answer names: the run AND its round, since a run asks again under the same id (#1584). */
62
+ waitingRuns: waiting.rows.filter((row) => row.readable === true).map((row) => pick(row, ['runId', 'playbookRef', 'round', 'requests'])),
63
+ /* A waiting run nobody can answer is still a stuck run the person should hear about — counted, never dropped. */
64
+ unreadableWaitingRunCount: waiting.rows.filter((row) => row.readable !== true).length,
65
+ ...(waiting.readFailed ? { waitingRunsUnavailable: 'The runs waiting on the person could not be read just now; do not say none are waiting.' } : {}),
74
66
  };
75
67
  },
76
68
  };
77
69
  const readArtifact = {
78
- functionRef: CREATION_CONVERSATION_TOOL_REFS.READ_ARTIFACT,
70
+ functionRef: WorkbenchCreationConversationTool.READ_ARTIFACT,
79
71
  description: 'One landed specification family, rendered as a document, by its family id (from the application state). '
80
- + 'Returns its document and its validator issues; the workbench opens it beside the conversation.',
72
+ + 'Returns its document, its validator errors (issues) and warnings; the workbench opens it beside the conversation.',
81
73
  inputSchema: z.object({ family: z.string().min(1).describe('The family id, e.g. vision-brief, market-snapshot, domain-plan.') }),
82
74
  execute: async (args, context) => {
83
75
  const rows = await readCreationPlaneRows(context, WorkbenchShared_ResourceType.SPECIFICATION_ARTIFACTS);
84
76
  const row = rows.find((candidate) => candidate.family === args.family);
85
77
  if (!row)
86
78
  return { found: false, family: args.family };
87
- return { found: true, ...pick(row, ['family', 'title', 'state', 'document', 'issues', 'decisionRecord']) };
79
+ return { found: true, ...pick(row, ['family', 'title', 'state', 'document', 'issues', 'warnings', 'decisionRecord']) };
88
80
  },
89
81
  };
90
82
  const runPlaybook = {
91
- functionRef: CREATION_CONVERSATION_TOOL_REFS.RUN_PLAYBOOK,
83
+ functionRef: WorkbenchCreationConversationTool.RUN_PLAYBOOK,
92
84
  description: 'Start one playbook run in the background and return its run id at once. Costs model calls (one to three minutes, '
93
85
  + 'sometimes more) — the person is asked to approve before it starts. Only an eligible playbook can be started. '
94
86
  + 'The run then appears in the conversation as a card; its outcome is read there, never assumed.',
95
87
  inputSchema: z.object({
96
88
  playbookRef: z.string().min(1).describe('The playbook ref from the application state, e.g. top_down.vision-elicitation.'),
89
+ instanceKey: z.string().optional().describe('The instance to run, when the step was opened as a separate instance for one purpose; omit for the step itself.'),
97
90
  creatorBrief: z.string().optional().describe('What the person said they want from this run, in their words, when they said something specific.'),
98
91
  }),
99
92
  /* Money: a run generates and judges. The engine suspends the turn until the person approves. */
@@ -106,32 +99,217 @@ export function buildCreationConversationFunctionTools(services) {
106
99
  return { started: false, reason: 'unknown_playbook', playbookRef: args.playbookRef };
107
100
  if (!eligibility.eligible)
108
101
  return { started: false, reason: 'not_eligible', playbookRef: args.playbookRef, unmet: eligibility.unmet };
102
+ /*
103
+ * The run's own TRACE, opened here as the HTTP path opens one per request (#1454, gap 3). A run
104
+ * started from a conversation carried none, so its card could not say what it had done or was
105
+ * doing, and its detail had no conversation to show — the two things a creator watching a run
106
+ * reads. The session is in-memory until the run writes to it, as every session is.
107
+ */
108
+ const traceability = services.get(COMPANION_SERVICE_TYPES.TraceabilityService);
109
+ const session = traceability.createInternalSession({
110
+ label: `creation conversation — ${args.playbookRef}`,
111
+ ...(context.executionId ? { metadata: { conversationId: context.executionId } } : {}),
112
+ });
109
113
  const submitted = await playbookRun.submitPlaybookRunDetached({
110
114
  playbookRef: args.playbookRef,
115
+ // The INSTANCE (#1609); the run refuses one that was never opened, before any model call.
116
+ ...(args.instanceKey ? { instanceKey: args.instanceKey } : {}),
117
+ session,
111
118
  ...(args.creatorBrief ? { creatorBrief: args.creatorBrief } : {}),
112
119
  /* The thread this turn belongs to, so the run shows as a card of it. */
113
120
  ...(context.executionId ? { conversationId: context.executionId } : {}),
121
+ // The signed-in person the assistant runs it for (#1751): a question the run asks is routed to them.
122
+ ...(context.auth?.initiatorIds?.userId ? { requestedByUserId: context.auth.initiatorIds.userId } : {}),
114
123
  });
115
124
  return { started: true, runId: submitted.runId, playbookRef: submitted.playbookRef, note: submitted.note };
116
125
  },
117
126
  };
127
+ const openPlaybookInstance = {
128
+ functionRef: WorkbenchCreationConversationTool.OPEN_PLAYBOOK_INSTANCE,
129
+ description: 'Open a SEPARATE instance of a step for one purpose the person named: one market analysis per segment, one '
130
+ + 'refinement per area. It is recorded as a decision about what the application builds and committed at once, so it '
131
+ + 'asks the person to approve first. The step itself keeps running as before; the instance is then run with its key.',
132
+ inputSchema: z.object({
133
+ playbookRef: z.string().min(1).describe('The playbook ref from the application state.'),
134
+ instanceKey: z.string().min(1).describe('A short kebab-case key for the instance, e.g. enterprise-segment.'),
135
+ purpose: z.string().min(1).describe('What this instance is for, in the person\'s words.'),
136
+ }),
137
+ /* A commit, and a decision about scope: the engine suspends the turn until the person approves. */
138
+ requiresHumanApproval: true,
139
+ execute: async (args) => {
140
+ const instances = services.get(COMPANION_SERVICE_TYPES.PlaybookInstanceService);
141
+ try {
142
+ const opened = await instances.openInstance({ ...args, actor: DecisionRecordActor.AGENT });
143
+ return { opened: true, instanceId: opened.instanceId, ...(opened.commitSha ? { commitSha: opened.commitSha } : {}), note: opened.note };
144
+ }
145
+ catch (error) {
146
+ if (error instanceof PlaybookInstanceRefusedError || error instanceof PlaybookInstanceTreeBusyError) {
147
+ return { opened: false, reason: error.message };
148
+ }
149
+ throw error;
150
+ }
151
+ },
152
+ };
153
+ /*
154
+ * SECONDARY LINES (#1608). A line is an opened instance of its kind's entry composite, so opening one is
155
+ * the instance door with the entry resolved from the kind: nothing records a line beside the activation.
156
+ */
157
+ const openSecondaryLine = {
158
+ functionRef: WorkbenchCreationConversationTool.OPEN_SECONDARY_LINE,
159
+ description: 'Open a SECONDARY LINE beside the main line to develop one feature the person asked for, once the application exists. '
160
+ + 'It is recorded as a decision about what the application builds and committed at once, so it asks the person to approve '
161
+ + 'first. It starts nothing: run the returned entry playbook with the returned instance key. When the person asked for '
162
+ + 'something the application\'s kind leaves out (a public website on an internal tool), name the families the feature needs '
163
+ + 'back in `neededFamilies`; only then, and only what the person asked for.',
164
+ inputSchema: z.object({
165
+ // A feature line only: a refinement line names what it refines, through its own tool.
166
+ line: z.literal(ApplicationSecondaryLine.FEATURE_DEVELOPMENT).describe('The kind of line: feature_development.'),
167
+ lineKey: z.string().min(1).describe('A short kebab-case key naming the line, e.g. invoicing.'),
168
+ purpose: z.string().min(1).describe('The feature, in the person\'s words.'),
169
+ neededFamilies: z.array(z.enum(ApplicationSpecificationFamily)).optional()
170
+ .describe('Families the main line does not apply that this feature needs, e.g. website-plan and market-snapshot for a public website.'),
171
+ }),
172
+ requiresHumanApproval: true,
173
+ execute: async (args) => {
174
+ const instances = services.get(COMPANION_SERVICE_TYPES.PlaybookInstanceService);
175
+ const entryPlaybookRef = APPLICATION_SECONDARY_LINE_DEFINITIONS[args.line].entryPlaybookRef;
176
+ try {
177
+ const opened = await instances.openInstance({
178
+ playbookRef: entryPlaybookRef, instanceKey: args.lineKey, purpose: args.purpose,
179
+ ...(args.neededFamilies && args.neededFamilies.length > 0 ? { neededFamilies: args.neededFamilies } : {}),
180
+ actor: DecisionRecordActor.AGENT,
181
+ });
182
+ return { opened: true, line: args.line, entryPlaybookRef, instanceKey: args.lineKey, instanceId: opened.instanceId, ...(opened.commitSha ? { commitSha: opened.commitSha } : {}) };
183
+ }
184
+ catch (error) {
185
+ if (error instanceof PlaybookInstanceRefusedError || error instanceof PlaybookInstanceTreeBusyError) {
186
+ return { opened: false, reason: error.message };
187
+ }
188
+ throw error;
189
+ }
190
+ },
191
+ };
192
+ const openRefinementLine = {
193
+ functionRef: WorkbenchCreationConversationTool.OPEN_REFINEMENT_LINE,
194
+ description: 'Open a REFINEMENT line beside the main line, when the person wants something the application already holds made '
195
+ + 'better: tighter requirements, a reworked experience plan, a sharper value proposition. It re-derives each named family '
196
+ + 'from what it already says, guided by the purpose, then refreshes what that made out of date and builds it. Name the '
197
+ + 'families in `refinedFamilies` from what the person asked for; the approval names them, so the person decides. A new '
198
+ + 'feature is a feature line, not a refinement. It starts nothing: run the returned entry playbook with the returned key.',
199
+ inputSchema: z.object({
200
+ lineKey: z.string().min(1).describe('A short kebab-case key naming the line, e.g. onboarding.'),
201
+ purpose: z.string().min(1).describe('What to improve, in the person\'s words.'),
202
+ refinedFamilies: z.array(z.enum(ApplicationSpecificationFamily)).min(1)
203
+ .describe('The families to refine, e.g. requirements or experience-plan. The value proposition is part of market-snapshot.'),
204
+ }),
205
+ requiresHumanApproval: true,
206
+ execute: async (args) => {
207
+ const instances = services.get(COMPANION_SERVICE_TYPES.PlaybookInstanceService);
208
+ const entryPlaybookRef = APPLICATION_SECONDARY_LINE_DEFINITIONS[ApplicationSecondaryLine.REFINEMENT].entryPlaybookRef;
209
+ try {
210
+ const opened = await instances.openInstance({
211
+ playbookRef: entryPlaybookRef, instanceKey: args.lineKey, purpose: args.purpose, refinedFamilies: args.refinedFamilies, actor: DecisionRecordActor.AGENT,
212
+ });
213
+ return {
214
+ opened: true, line: ApplicationSecondaryLine.REFINEMENT, entryPlaybookRef, instanceKey: args.lineKey, instanceId: opened.instanceId,
215
+ ...(opened.commitSha ? { commitSha: opened.commitSha } : {}),
216
+ };
217
+ }
218
+ catch (error) {
219
+ if (error instanceof PlaybookInstanceRefusedError || error instanceof PlaybookInstanceTreeBusyError) {
220
+ return { opened: false, reason: error.message };
221
+ }
222
+ throw error;
223
+ }
224
+ },
225
+ };
226
+ const readLines = {
227
+ functionRef: WorkbenchCreationConversationTool.READ_LINES,
228
+ description: 'The application\'s main line (the kind of application it is), and the secondary lines open beside it, each with its '
229
+ + 'instance key and what it is for.',
230
+ inputSchema: z.object({}),
231
+ execute: async () => {
232
+ const creatorInputs = await services.get(COMPANION_SERVICE_TYPES.DossierService).readCreatorInputs();
233
+ const declaration = resolveApplicationLineDeclaration(creatorInputs);
234
+ return {
235
+ mainLine: declaration.state === ApplicationLineDeclarationState.DECLARED ? declaration.line : null,
236
+ mainLineState: declaration.state,
237
+ secondaryLines: resolveOpenSecondaryLines(creatorInputs).map((line) => ({
238
+ line: line.line,
239
+ instanceKey: line.instanceKey,
240
+ entryPlaybookRef: APPLICATION_SECONDARY_LINE_DEFINITIONS[line.line].entryPlaybookRef,
241
+ purpose: line.purpose,
242
+ neededFamilies: line.neededFamilies,
243
+ refinedFamilies: line.refinedFamilies,
244
+ })),
245
+ };
246
+ },
247
+ };
248
+ const closeSecondaryLine = {
249
+ functionRef: WorkbenchCreationConversationTool.CLOSE_SECONDARY_LINE,
250
+ description: 'Close a secondary line the person says is done (completed) or no longer wanted (abandoned). It is recorded and committed, '
251
+ + 'so it asks the person to approve first. What the line added stays; abandoning also cancels its runs that wait on the person.',
252
+ inputSchema: z.object({
253
+ line: z.enum(ApplicationSecondaryLine).describe('The kind of line, as the lines read returns it: feature_development or refinement.'),
254
+ lineKey: z.string().min(1).describe('The line\'s key, as the lines read returns it.'),
255
+ outcome: z.enum(ApplicationPlaybookInstanceClosureKind).describe('completed, or abandoned.'),
256
+ reason: z.string().min(1).optional().describe('Why, in the person\'s words.'),
257
+ }),
258
+ requiresHumanApproval: true,
259
+ execute: async (args) => {
260
+ const instances = services.get(COMPANION_SERVICE_TYPES.PlaybookInstanceService);
261
+ try {
262
+ const closed = await instances.closeInstance({
263
+ playbookRef: APPLICATION_SECONDARY_LINE_DEFINITIONS[args.line].entryPlaybookRef,
264
+ instanceKey: args.lineKey,
265
+ kind: args.outcome,
266
+ ...(args.reason ? { reason: args.reason } : {}),
267
+ actor: DecisionRecordActor.AGENT,
268
+ });
269
+ return { closed: true, ...closed };
270
+ }
271
+ catch (error) {
272
+ if (error instanceof PlaybookInstanceRefusedError || error instanceof PlaybookInstanceTreeBusyError) {
273
+ return { closed: false, reason: error.message };
274
+ }
275
+ throw error;
276
+ }
277
+ },
278
+ };
118
279
  const answerRunQuestion = {
119
- functionRef: CREATION_CONVERSATION_TOOL_REFS.ANSWER_RUN_QUESTION,
280
+ functionRef: WorkbenchCreationConversationTool.ANSWER_RUN_QUESTION,
120
281
  description: 'Answer a run that stopped on questions, and let it continue. `accept` with the answers (ref by ref, as the run '
121
- + 'asked them), `decline` to continue on the run\'s stated assumption, or `cancel` to abandon the run.',
282
+ + 'asked them), `decline` to continue on the run\'s stated assumption, or `cancel` to abandon the run. Name the '
283
+ + '`round` whose questions the person answered: a run that has moved to a later round refuses it. Send only answers the '
284
+ + 'person gave in this conversation: they are recorded as the person\'s own decisions.',
122
285
  inputSchema: z.object({
123
286
  runId: z.string().min(1),
124
- action: z.enum(PlaybookClarificationAction),
287
+ round: z.number().int().min(1).describe('The round of questions answered, as the waiting run carries it.'),
288
+ action: z.enum(MetaWorkflow_ClarificationAction),
125
289
  answers: z.array(z.object({ ref: z.string().min(1), answer: z.string().min(1) })).optional(),
126
290
  }),
127
- execute: async (args) => {
291
+ execute: async (args, context) => {
128
292
  const playbookRun = services.get(COMPANION_SERVICE_TYPES.PlaybookRunService);
129
- const outcome = await playbookRun.resumePlaybookRun({ runId: args.runId, action: args.action, ...(args.answers ? { answers: args.answers } : {}) });
130
- return { runId: args.runId, action: args.action, status: 'status' in outcome ? outcome.status : 'resumed' };
293
+ /*
294
+ * WHO answered (#1658): the signed-in person the assistant relays for — the identity the workbench's
295
+ * own resume door records, taken from the server-verified caller and never from the model's arguments.
296
+ */
297
+ const answeredByRef = context.auth?.initiatorIds?.userId;
298
+ const outcome = await playbookRun.resumePlaybookRun({
299
+ runId: args.runId, round: args.round, action: args.action,
300
+ ...(args.answers ? { answers: args.answers } : {}),
301
+ ...(answeredByRef ? { answeredByRef, actingUserId: answeredByRef } : {}),
302
+ });
303
+ /*
304
+ * `status` only when the run SAYS one (#1781): cancelled, or stopped to ask again. A continuation
305
+ * that concluded has none, and inventing a third value ('resumed') for it put a word into the
306
+ * field its named vocabulary does not have.
307
+ */
308
+ return { runId: args.runId, action: args.action, ...('status' in outcome ? { status: outcome.status } : {}) };
131
309
  },
132
310
  };
133
311
  const research = {
134
- functionRef: CREATION_CONVERSATION_TOOL_REFS.RESEARCH,
312
+ functionRef: WorkbenchCreationConversationTool.RESEARCH,
135
313
  description: 'Find something out from the public web with a read-only research agent, given one clear objective. Takes minutes '
136
314
  + 'and costs model calls — the person is asked to approve first. Returns the evidence found and where it was recorded.',
137
315
  inputSchema: z.object({ objective: z.string().min(1).describe('What to find out, in one or two sentences.') }),
@@ -143,28 +321,38 @@ export function buildCreationConversationFunctionTools(services) {
143
321
  },
144
322
  };
145
323
  const readDossier = {
146
- functionRef: CREATION_CONVERSATION_TOOL_REFS.READ_DOSSIER,
324
+ functionRef: WorkbenchCreationConversationTool.READ_DOSSIER,
147
325
  description: 'The dossier: every question a creation step asks the person, with their answer when they gave one '
148
326
  + '(standing from-you) or still-needed when they did not. Each entry names its playbookRef and questionRef. '
327
+ + 'An opened instance of a step asks its questions again under its instanceKey (with what it was opened for); '
328
+ + 'standing from-the-step means it runs on the step\'s own answer until the person gives it one. '
149
329
  + 'Call this before asking the person anything a step needs — if the dossier already holds it, do not ask again.',
150
330
  inputSchema: z.object({
151
331
  playbookRef: z.string().min(1).optional().describe('Only this playbook\'s questions, when the conversation is about one step.'),
152
332
  }),
153
333
  execute: async (args, context) => {
154
334
  const rows = await readCreationPlaneRows(context, WorkbenchShared_ResourceType.DOSSIER_ENTRIES);
155
- const selected = args.playbookRef ? rows.filter((row) => row.playbookRef === args.playbookRef) : rows;
335
+ /*
336
+ * A step's questions include the decisions it SHARES with an earlier step: one row, at the owner
337
+ * (#1454 review, A2). Without them the assistant saw nothing still needed for the fallback step,
338
+ * started it, and had it refused on the shared question.
339
+ */
340
+ const selected = args.playbookRef
341
+ ? rows.filter((row) => row.playbookRef === args.playbookRef || (Array.isArray(row.sharedWithPlaybookRefs) && row.sharedWithPlaybookRefs.includes(args.playbookRef)))
342
+ : rows;
156
343
  /* `affectsFamilies` is what an answer reaches (#1454, Step 8) — the assistant says it before asking, as the interview does. */
157
- return { entries: selected.map((row) => pick(row, ['playbookRef', 'questionRef', 'question', 'kind', 'options', 'standing', 'value', 'playbookEligible', 'affectsFamilies'])) };
344
+ return { entries: selected.map((row) => pick(row, ['playbookRef', 'instanceKey', 'instancePurpose', 'questionRef', 'question', 'kind', 'options', 'standing', 'value', 'playbookEligible', 'affectsFamilies', 'sharedWithPlaybookRefs'])) };
158
345
  },
159
346
  };
160
347
  const recordAnswer = {
161
- functionRef: CREATION_CONVERSATION_TOOL_REFS.RECORD_ANSWER,
348
+ functionRef: WorkbenchCreationConversationTool.RECORD_ANSWER,
162
349
  description: 'File the person\'s answer to one dossier question, in their words, so the step that asks it can run '
163
- + 'without asking again. Refuses a choice outside the question\'s options or an ambiguous yes/no; the refusal '
350
+ + 'without asking again. Use the entry\'s own playbookRef and questionRef, as the dossier returned them. Refuses a choice outside the question\'s options or an ambiguous yes/no; the refusal '
164
351
  + 'says what to change. Returns the questions of that step still unanswered.',
165
352
  inputSchema: z.object({
166
353
  playbookRef: z.string().min(1),
167
354
  questionRef: z.string().min(1),
355
+ instanceKey: z.string().min(1).optional().describe('The instance the question is asked for, when the dossier entry names one; omit for the step itself.'),
168
356
  value: z.string().min(1).describe('The answer as the person gave it. For a yes/no question: yes or no.'),
169
357
  }),
170
358
  /*
@@ -173,7 +361,20 @@ export function buildCreationConversationFunctionTools(services) {
173
361
  * forbid filing an answer the person did not give in this conversation.
174
362
  */
175
363
  execute: async (args, context) => {
176
- const rowId = `${sanitizeWorkbenchCreationPlaneIdentity(args.playbookRef)}--${sanitizeWorkbenchCreationPlaneIdentity(args.questionRef)}`;
364
+ /*
365
+ * A shared decision is ONE row, at its owner (#1454 review, A2): a fallback question with no
366
+ * answer of its own has no row, so an answer addressed to it is filed on the owner's row — the
367
+ * same rule the dossier's own answer operation applies.
368
+ */
369
+ let rowId = workbenchDossierEntryIdentity(args);
370
+ const shared = getFrameworkKnowledgePlaybook(args.playbookRef)?.playbook
371
+ ?.method?.elicitation?.questions?.find((question) => question.ref === args.questionRef)?.sameDecisionAs;
372
+ /* A shared decision is the step's own and is never asked per instance, so an instance's answer is never redirected. */
373
+ if (shared && args.instanceKey === undefined) {
374
+ const rows = await readCreationPlaneRows(context, WorkbenchShared_ResourceType.DOSSIER_ENTRIES);
375
+ if (!rows.some((row) => row.workbenchDossierEntryId === rowId))
376
+ rowId = workbenchDossierEntryIdentity(shared);
377
+ }
177
378
  const result = await dispatchResourceOperationAsTool({
178
379
  ctx: context,
179
380
  resourceType: WorkbenchShared_ResourceType.DOSSIER_ENTRIES,
@@ -191,7 +392,7 @@ export function buildCreationConversationFunctionTools(services) {
191
392
  * "Keep it for later" is proposing without dispatching, which is why they are not one tool.
192
393
  */
193
394
  const proposeBuildTask = {
194
- functionRef: CREATION_CONVERSATION_TOOL_REFS.PROPOSE_BUILD_TASK,
395
+ functionRef: WorkbenchCreationConversationTool.PROPOSE_BUILD_TASK,
195
396
  description: 'Add ONE build task to the application\'s plan, for a change the person asked for. The person is shown the task '
196
397
  + 'and approves it (or changes its arguments) before it is added — that is the confirmation. Adding does not run it. '
197
398
  + 'Name the target precisely: a RESOURCE_STAGE (moduleRef, resourceRef, stage SCHEMA|CONFIG|UI_BEHAVIOR|SPEC), a '
@@ -216,7 +417,7 @@ export function buildCreationConversationFunctionTools(services) {
216
417
  }),
217
418
  };
218
419
  const describeTask = {
219
- functionRef: CREATION_CONVERSATION_TOOL_REFS.DESCRIBE_TASK,
420
+ functionRef: WorkbenchCreationConversationTool.DESCRIBE_TASK,
220
421
  description: 'What running ONE build task would mean, without running it: where the coding agent may write, which checks it must '
221
422
  + 'pass, and roughly how much context it carries (in tokens). Refuses, naming why, when the task is not ready. Call '
222
423
  + 'this before asking the person to run a task, and tell them what it costs: a coding-agent run of minutes, paid per token.',
@@ -244,7 +445,7 @@ export function buildCreationConversationFunctionTools(services) {
244
445
  },
245
446
  };
246
447
  const dispatchTask = {
247
- functionRef: CREATION_CONVERSATION_TOOL_REFS.DISPATCH_TASK,
448
+ functionRef: WorkbenchCreationConversationTool.DISPATCH_TASK,
248
449
  description: 'Run ONE ready build task with the coding agent. Costs money (a coding-agent run of minutes, paid per token) — the '
249
450
  + 'person is asked to approve before it starts. Only a READY task can run; a landed or blocked one is refused with why. '
250
451
  + 'Returns at once once the run is admitted; the run then shows in the conversation as a card, and its outcome is read '
@@ -261,7 +462,7 @@ export function buildCreationConversationFunctionTools(services) {
261
462
  }),
262
463
  };
263
464
  const acceptTask = {
264
- functionRef: CREATION_CONVERSATION_TOOL_REFS.ACCEPT_TASK,
465
+ functionRef: WorkbenchCreationConversationTool.ACCEPT_TASK,
265
466
  description: 'Accept what a task\'s latest finished coding run wrote: commit exactly those files, in one commit that names the task. '
266
467
  + 'The person is asked to approve first. Files carrying changes from before the run, or edited since, are refused by '
267
468
  + 'name and left out; say which. Only after the person has looked at the run\'s outcome.',
@@ -275,6 +476,6 @@ export function buildCreationConversationFunctionTools(services) {
275
476
  data: {},
276
477
  }),
277
478
  };
278
- return [readApplicationState, readArtifact, runPlaybook, answerRunQuestion, research, readDossier, recordAnswer, proposeBuildTask, describeTask, dispatchTask, acceptTask];
479
+ return [readApplicationState, readArtifact, runPlaybook, openPlaybookInstance, openSecondaryLine, openRefinementLine, readLines, closeSecondaryLine, answerRunQuestion, research, readDossier, recordAnswer, proposeBuildTask, describeTask, dispatchTask, acceptTask];
279
480
  }
280
481
  //# sourceMappingURL=creation-conversation.function-tools.js.map