@wildo-ai/dev-companion 1.1.13 → 1.1.15

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 (363) hide show
  1. package/dist/esm/.tsbuildinfo +1 -1
  2. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +89 -1
  3. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  4. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +114 -9
  5. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  6. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +46 -1
  7. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
  8. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +39 -2
  9. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
  10. package/dist/esm/claude-cli/models/shared-tree-reconciliation.models.d.ts +6 -0
  11. package/dist/esm/claude-cli/models/shared-tree-reconciliation.models.d.ts.map +1 -1
  12. package/dist/esm/claude-cli/models/shared-tree-reconciliation.models.js.map +1 -1
  13. package/dist/esm/claude-cli/models/verification-tool-availability.models.d.ts +19 -5
  14. package/dist/esm/claude-cli/models/verification-tool-availability.models.d.ts.map +1 -1
  15. package/dist/esm/claude-cli/models/verification-tool-availability.models.js +17 -5
  16. package/dist/esm/claude-cli/models/verification-tool-availability.models.js.map +1 -1
  17. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +16 -1
  18. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
  19. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +53 -6
  20. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
  21. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +145 -6
  22. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  23. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +474 -47
  24. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  25. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts +6 -2
  26. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
  27. package/dist/esm/claude-cli/services/git-change-set.companion.service.js +16 -39
  28. package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
  29. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +14 -0
  30. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  31. package/dist/esm/claude-cli/services/research-evidence-store.companion.js +35 -0
  32. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  33. package/dist/esm/claude-cli/services/unrecorded-provider-directories.companion.d.ts +36 -0
  34. package/dist/esm/claude-cli/services/unrecorded-provider-directories.companion.d.ts.map +1 -0
  35. package/dist/esm/claude-cli/services/unrecorded-provider-directories.companion.js +134 -0
  36. package/dist/esm/claude-cli/services/unrecorded-provider-directories.companion.js.map +1 -0
  37. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js +31 -2
  38. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
  39. package/dist/esm/companion-api/companion-api.schemas.d.ts +2 -0
  40. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  41. package/dist/esm/companion-api/companion-api.schemas.js +8 -0
  42. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  43. package/dist/esm/companion-api/controllers/companion.controller.d.ts +7 -0
  44. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  45. package/dist/esm/companion-api/controllers/companion.controller.js +26 -12
  46. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  47. package/dist/esm/companion-api/controllers/long-held-request.companion.d.ts +17 -0
  48. package/dist/esm/companion-api/controllers/long-held-request.companion.d.ts.map +1 -0
  49. package/dist/esm/companion-api/controllers/long-held-request.companion.js +33 -0
  50. package/dist/esm/companion-api/controllers/long-held-request.companion.js.map +1 -0
  51. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts +9 -0
  52. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
  53. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +12 -0
  54. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
  55. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  56. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +7 -1
  57. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  58. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +8 -20
  59. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  60. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js +37 -142
  61. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
  62. package/dist/esm/core/introspection/services/introspection-source-walk.worker.d.ts +64 -0
  63. package/dist/esm/core/introspection/services/introspection-source-walk.worker.d.ts.map +1 -0
  64. package/dist/esm/core/introspection/services/introspection-source-walk.worker.js +304 -0
  65. package/dist/esm/core/introspection/services/introspection-source-walk.worker.js.map +1 -0
  66. package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts +3 -2
  67. package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
  68. package/dist/esm/core/introspection/services/translation-placement.companion.service.js.map +1 -1
  69. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  70. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +24 -14
  71. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  72. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts +42 -0
  73. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -1
  74. package/dist/esm/core/introspection/workspace-element-index.companion.js +42 -0
  75. package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -1
  76. package/dist/esm/core/runtime/companion-language-model-route.d.ts +16 -1
  77. package/dist/esm/core/runtime/companion-language-model-route.d.ts.map +1 -1
  78. package/dist/esm/core/runtime/companion-language-model-route.js +23 -1
  79. package/dist/esm/core/runtime/companion-language-model-route.js.map +1 -1
  80. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +53 -0
  81. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
  82. package/dist/esm/core/runtime/dev-compile-quiet.companion.js +119 -2
  83. package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
  84. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  85. package/dist/esm/core/runtime/services/start-companion-application.service.js +16 -3
  86. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  87. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts +2 -2
  88. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  89. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +6 -6
  90. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  91. package/dist/esm/core/utils/git-read-broker.companion.d.ts +62 -0
  92. package/dist/esm/core/utils/git-read-broker.companion.d.ts.map +1 -0
  93. package/dist/esm/core/utils/git-read-broker.companion.js +282 -0
  94. package/dist/esm/core/utils/git-read-broker.companion.js.map +1 -0
  95. package/dist/esm/core/utils/local-write-recording.companion.d.ts +8 -1
  96. package/dist/esm/core/utils/local-write-recording.companion.d.ts.map +1 -1
  97. package/dist/esm/core/utils/local-write-recording.companion.js +7 -23
  98. package/dist/esm/core/utils/local-write-recording.companion.js.map +1 -1
  99. package/dist/esm/email/services/email-template.companion.service.d.ts +5 -0
  100. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  101. package/dist/esm/email/services/email-template.companion.service.js +44 -11
  102. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  103. package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts +26 -2
  104. package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
  105. package/dist/esm/email/utils/email-template-fs-discovery.utils.js +41 -2
  106. package/dist/esm/email/utils/email-template-fs-discovery.utils.js.map +1 -1
  107. package/dist/esm/email/utils/email-template-scanner-calls.companion.utils.d.ts +19 -0
  108. package/dist/esm/email/utils/email-template-scanner-calls.companion.utils.d.ts.map +1 -0
  109. package/dist/esm/email/utils/email-template-scanner-calls.companion.utils.js +171 -0
  110. package/dist/esm/email/utils/email-template-scanner-calls.companion.utils.js.map +1 -0
  111. package/dist/esm/email/utils/module-email-root.companion.utils.d.ts +75 -0
  112. package/dist/esm/email/utils/module-email-root.companion.utils.d.ts.map +1 -0
  113. package/dist/esm/email/utils/module-email-root.companion.utils.js +162 -0
  114. package/dist/esm/email/utils/module-email-root.companion.utils.js.map +1 -0
  115. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.d.ts +29 -0
  116. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.d.ts.map +1 -0
  117. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.js +29 -0
  118. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.js.map +1 -0
  119. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.d.ts +29 -0
  120. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.d.ts.map +1 -0
  121. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.js +29 -0
  122. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.js.map +1 -0
  123. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts +1 -0
  124. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
  125. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js +1 -0
  126. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
  127. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.d.ts +1 -0
  128. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.d.ts.map +1 -1
  129. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.js +1 -0
  130. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.js.map +1 -1
  131. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts +1 -0
  132. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  133. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js +2 -1
  134. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
  135. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.d.ts +1 -0
  136. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.d.ts.map +1 -1
  137. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.js +2 -1
  138. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.js.map +1 -1
  139. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.d.ts +5 -2
  140. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.d.ts.map +1 -1
  141. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.js +5 -2
  142. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.js.map +1 -1
  143. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.d.ts +5 -2
  144. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.d.ts.map +1 -1
  145. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.js +5 -2
  146. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.js.map +1 -1
  147. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.d.ts +41 -0
  148. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.d.ts.map +1 -0
  149. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.js +41 -0
  150. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.js.map +1 -0
  151. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.d.ts +41 -0
  152. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.d.ts.map +1 -0
  153. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.js +41 -0
  154. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.js.map +1 -0
  155. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts +1 -0
  156. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
  157. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js +2 -1
  158. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
  159. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.d.ts +1 -0
  160. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.d.ts.map +1 -1
  161. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.js +2 -1
  162. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.js.map +1 -1
  163. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts +1 -0
  164. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
  165. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js +2 -1
  166. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
  167. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.d.ts +1 -0
  168. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.d.ts.map +1 -1
  169. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.js +2 -1
  170. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.js.map +1 -1
  171. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts +1 -0
  172. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
  173. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js +2 -1
  174. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
  175. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.d.ts +1 -0
  176. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.d.ts.map +1 -1
  177. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.js +2 -1
  178. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.js.map +1 -1
  179. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts +2 -0
  180. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
  181. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js +3 -1
  182. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
  183. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.d.ts +2 -0
  184. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.d.ts.map +1 -1
  185. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.js +3 -1
  186. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.js.map +1 -1
  187. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts +1 -1
  188. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js +1 -1
  189. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
  190. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.fr.d.ts +1 -1
  191. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.fr.js +1 -1
  192. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.fr.js.map +1 -1
  193. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts +2 -0
  194. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
  195. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js +3 -1
  196. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
  197. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.d.ts +3 -1
  198. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.d.ts.map +1 -1
  199. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.js +4 -2
  200. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.js.map +1 -1
  201. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +17 -0
  202. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
  203. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +18 -1
  204. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
  205. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.d.ts +17 -0
  206. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.d.ts.map +1 -1
  207. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.js +18 -1
  208. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.js.map +1 -1
  209. package/dist/esm/i18n/composite_views/app.creation-conversation.fr.d.ts +206 -195
  210. package/dist/esm/i18n/composite_views/app.creation-conversation.fr.d.ts.map +1 -1
  211. package/dist/esm/i18n/composite_views/app.creation-conversation.fr.js +206 -195
  212. package/dist/esm/i18n/composite_views/app.creation-conversation.fr.js.map +1 -1
  213. package/dist/esm/i18n/composite_views/app.creation-dossier.fr.d.ts +10 -0
  214. package/dist/esm/i18n/composite_views/app.creation-dossier.fr.d.ts.map +1 -1
  215. package/dist/esm/i18n/composite_views/app.creation-dossier.fr.js +12 -2
  216. package/dist/esm/i18n/composite_views/app.creation-dossier.fr.js.map +1 -1
  217. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.d.ts +70 -0
  218. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.d.ts.map +1 -1
  219. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.js +70 -0
  220. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.js.map +1 -1
  221. package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.d.ts +12 -2
  222. package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.d.ts.map +1 -1
  223. package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.js +12 -2
  224. package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.js.map +1 -1
  225. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.d.ts +10 -0
  226. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.d.ts.map +1 -1
  227. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.js +10 -0
  228. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.js.map +1 -1
  229. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
  230. package/dist/esm/i18n/resources/workbenchAspects.en.js +4 -0
  231. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
  232. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.d.ts +25 -20
  233. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.d.ts.map +1 -1
  234. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.js +25 -20
  235. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.js.map +1 -1
  236. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.fr.d.ts +32 -32
  237. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.fr.js +32 -32
  238. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.fr.js.map +1 -1
  239. package/dist/esm/i18n/resources/workbenchBuildTaskRecords.fr.d.ts +65 -65
  240. package/dist/esm/i18n/resources/workbenchBuildTaskRecords.fr.js +65 -65
  241. package/dist/esm/i18n/resources/workbenchBuildTaskRecords.fr.js.map +1 -1
  242. package/dist/esm/i18n/resources/workbenchDossierEntries.fr.d.ts +20 -0
  243. package/dist/esm/i18n/resources/workbenchDossierEntries.fr.d.ts.map +1 -1
  244. package/dist/esm/i18n/resources/workbenchDossierEntries.fr.js +20 -0
  245. package/dist/esm/i18n/resources/workbenchDossierEntries.fr.js.map +1 -1
  246. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.d.ts +12 -0
  247. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.d.ts.map +1 -1
  248. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.js +13 -1
  249. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.js.map +1 -1
  250. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +35 -0
  251. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  252. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +12 -0
  253. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  254. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.d.ts +536 -531
  255. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.d.ts.map +1 -1
  256. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.js +536 -531
  257. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.js.map +1 -1
  258. package/dist/esm/i18n/system_enums/application-creation.fr.d.ts +170 -170
  259. package/dist/esm/i18n/system_enums/application-creation.fr.js +170 -170
  260. package/dist/esm/i18n/system_enums/application-creation.fr.js.map +1 -1
  261. package/dist/esm/i18n/system_enums/flows-actors.fr.d.ts +22 -22
  262. package/dist/esm/i18n/system_enums/flows-actors.fr.js +22 -22
  263. package/dist/esm/i18n/system_enums/flows-actors.fr.js.map +1 -1
  264. package/dist/esm/i18n/system_enums/run-records.fr.d.ts +21 -21
  265. package/dist/esm/i18n/system_enums/run-records.fr.js +21 -21
  266. package/dist/esm/i18n/system_enums/run-records.fr.js.map +1 -1
  267. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts +3 -2
  268. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
  269. package/dist/esm/i18n/system_enums/workbench-build.en.js +3 -2
  270. package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
  271. package/dist/esm/i18n/system_enums/workbench-build.fr.d.ts +37 -33
  272. package/dist/esm/i18n/system_enums/workbench-build.fr.d.ts.map +1 -1
  273. package/dist/esm/i18n/system_enums/workbench-build.fr.js +37 -33
  274. package/dist/esm/i18n/system_enums/workbench-build.fr.js.map +1 -1
  275. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts +1 -0
  276. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
  277. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js +1 -0
  278. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
  279. package/dist/esm/i18n/system_enums/workbench-creation-home.fr.d.ts +18 -17
  280. package/dist/esm/i18n/system_enums/workbench-creation-home.fr.d.ts.map +1 -1
  281. package/dist/esm/i18n/system_enums/workbench-creation-home.fr.js +18 -17
  282. package/dist/esm/i18n/system_enums/workbench-creation-home.fr.js.map +1 -1
  283. package/dist/esm/i18n/system_enums/workbench-dossier.fr.d.ts +7 -5
  284. package/dist/esm/i18n/system_enums/workbench-dossier.fr.d.ts.map +1 -1
  285. package/dist/esm/i18n/system_enums/workbench-dossier.fr.js +8 -6
  286. package/dist/esm/i18n/system_enums/workbench-dossier.fr.js.map +1 -1
  287. package/dist/esm/i18n/system_enums/workbench-secrets.fr.d.ts +12 -12
  288. package/dist/esm/i18n/system_enums/workbench-secrets.fr.js +12 -12
  289. package/dist/esm/i18n/system_enums/workbench-secrets.fr.js.map +1 -1
  290. package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.d.ts +1 -0
  291. package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.d.ts.map +1 -1
  292. package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.js +2 -1
  293. package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.js.map +1 -1
  294. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -1
  295. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js +7 -3
  296. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -1
  297. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  298. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +3 -4
  299. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  300. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +11 -0
  301. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
  302. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js +21 -0
  303. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
  304. package/dist/esm/meta-workflows/models/creation-journey-timeline.models.d.ts +9 -0
  305. package/dist/esm/meta-workflows/models/creation-journey-timeline.models.d.ts.map +1 -1
  306. package/dist/esm/meta-workflows/models/creation-journey-timeline.models.js +18 -2
  307. package/dist/esm/meta-workflows/models/creation-journey-timeline.models.js.map +1 -1
  308. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +153 -22
  309. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  310. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +970 -208
  311. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  312. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.d.ts +115 -13
  313. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.d.ts.map +1 -1
  314. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.js +295 -56
  315. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.js.map +1 -1
  316. package/dist/esm/meta-workflows/services/application-build-landing-projection.companion.d.ts +3 -3
  317. package/dist/esm/meta-workflows/services/application-build-landing-projection.companion.js +3 -3
  318. package/dist/esm/meta-workflows/services/application-build-landing-projection.companion.js.map +1 -1
  319. package/dist/esm/meta-workflows/services/application-build-task-closure.companion.d.ts +9 -0
  320. package/dist/esm/meta-workflows/services/application-build-task-closure.companion.d.ts.map +1 -1
  321. package/dist/esm/meta-workflows/services/application-build-task-closure.companion.js +19 -0
  322. package/dist/esm/meta-workflows/services/application-build-task-closure.companion.js.map +1 -1
  323. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +1 -1
  324. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  325. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +48 -26
  326. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  327. package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.d.ts +12 -0
  328. package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.d.ts.map +1 -1
  329. package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.js +30 -1
  330. package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.js.map +1 -1
  331. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts.map +1 -1
  332. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js +4 -5
  333. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js.map +1 -1
  334. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts.map +1 -1
  335. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js +12 -1
  336. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js.map +1 -1
  337. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  338. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +6 -3
  339. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  340. package/dist/esm/meta-workflows/services/playbook-run-write-register-window.companion.d.ts.map +1 -1
  341. package/dist/esm/meta-workflows/services/playbook-run-write-register-window.companion.js +3 -5
  342. package/dist/esm/meta-workflows/services/playbook-run-write-register-window.companion.js.map +1 -1
  343. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +8 -1
  344. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  345. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +119 -25
  346. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  347. package/dist/esm/meta-workflows/services/provider-registry-brief.companion.utils.d.ts +55 -1
  348. package/dist/esm/meta-workflows/services/provider-registry-brief.companion.utils.d.ts.map +1 -1
  349. package/dist/esm/meta-workflows/services/provider-registry-brief.companion.utils.js +157 -10
  350. package/dist/esm/meta-workflows/services/provider-registry-brief.companion.utils.js.map +1 -1
  351. package/dist/esm/module-layout/module-layout-convention.companion.d.ts +158 -0
  352. package/dist/esm/module-layout/module-layout-convention.companion.d.ts.map +1 -0
  353. package/dist/esm/module-layout/module-layout-convention.companion.js +272 -0
  354. package/dist/esm/module-layout/module-layout-convention.companion.js.map +1 -0
  355. package/dist/esm/module-layout/module-layout-inspection.companion.d.ts +42 -0
  356. package/dist/esm/module-layout/module-layout-inspection.companion.d.ts.map +1 -0
  357. package/dist/esm/module-layout/module-layout-inspection.companion.js +290 -0
  358. package/dist/esm/module-layout/module-layout-inspection.companion.js.map +1 -0
  359. package/dist/esm/module-layout/module-source-files.companion.d.ts +3 -0
  360. package/dist/esm/module-layout/module-source-files.companion.d.ts.map +1 -0
  361. package/dist/esm/module-layout/module-source-files.companion.js +45 -0
  362. package/dist/esm/module-layout/module-source-files.companion.js.map +1 -0
  363. package/package.json +18 -18
@@ -1 +1 @@
1
- {"version":3,"file":"dev-compile-quiet.companion.js","sourceRoot":"","sources":["../../../../src/core/runtime/dev-compile-quiet.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,yCAAyC,EAAE,MAAM,sCAAsC,CAAC;AACjG,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,qBAAqB,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CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAE,CAAC,IAAI,EAAE,EAAE,CAAC;AACrG,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,8BAA8B,CAAC,KAG9C;IACC,IAAI,KAAK,CAAC,cAAc,KAAK,qBAAqB;QAAE,OAAO,KAAK,CAAC;IACjE,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC5D,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IACxD,OAAO,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,KAAK,SAAS,IAAI,uCAAuC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAChI,CAAC","sourcesContent":["import { isPlaybookLandingHeldFailure } from '@wildo-ai/application-creation-runtime';\nimport { CODING_AGENT_NOT_SIGNED_IN_MESSAGE_PREFIX } from '@wildo-ai/external-connectors-models';\nimport { LocalDevCompileState } from '@wildo-ai/platform-core-shared';\nimport { redactModelVendorText } from '@wildo-ai/saas-backend-lib';\nimport {\n classifyModelProviderAccountRefusal,\n classifyModelProviderAccountRefusalText,\n parseModelProviderAccountRefusalDescription,\n type ModelProviderAccountRefusal,\n type ModelProviderAccountRefusalReason,\n} from '@wildo-ai/saas-models';\nimport { compileObservationsDirectory, findNewestProgramSource, isLiveCompileObservation, readCompileObservation } from '@wildo-ai/platform-core-shared/dev-runtime';\nimport { existsSync, readdirSync, readFileSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { classifyNetworkEnvironmentFailure } from './network-environment-failure.companion';\n\n/**\n * The dev supervisor's compile state, read from the SAME artifact the supervisor keys on — so this\n * gate and the thing that kills agent children under a rebuild can never disagree about whether a\n * rebuild is happening (issue #265; the predicate was proven operationally before it was code:\n * dispatch attempts launched behind an all-`ready` read completed, attempts launched on health\n * checks alone died).\n *\n * ## Why agent spawns consult this at all\n *\n * An in-flight ACP agent child dies with every companion pause: its stdin closes on the supervisor's\n * restart and the CLI exits 0 mid-turn — nine measured kills across two lanes on 2026-09-02/03. The\n * supervisor's pauses are LEGITIMATE (a dependency really is recompiling), so the fix is not to\n * fight them but to stop spawning minutes-long turns into a window that is already churning.\n *\n * ## Absent-tolerant by design\n *\n * The status file is a DEV-ORCHESTRATOR artifact. A standalone application install has no framework\n * checkout, no watchers, and no churn — `readable: false` there means \"nothing to wait for\", never\n * an error. Same for a malformed or mid-write read: this is a convenience gate, and a gate that can\n * fail closed on its own parse error would refuse work over a JSON hiccup.\n */\nexport interface DevCompileChurn {\n /** False when no status artifact exists or it cannot be parsed — treat as quiet. */\n readonly readable: boolean;\n /** Package names currently NOT `ready` (compiling or failed). Empty when quiet. */\n readonly busyPackages: readonly string[];\n}\n\nconst DEV_COMPILE_STATUS_RELATIVE_PATH = '.wildo-runtime-signals/dev-compile-status.json';\n\nexport function readDevCompileChurn(frameworkRepositoryRoot: string | null | undefined): DevCompileChurn {\n if (!frameworkRepositoryRoot) return { readable: false, busyPackages: [] };\n const statusPath = join(frameworkRepositoryRoot, DEV_COMPILE_STATUS_RELATIVE_PATH);\n if (!existsSync(statusPath)) return { readable: false, busyPackages: [] };\n try {\n const parsed = JSON.parse(readFileSync(statusPath, 'utf8')) as { packages?: Record<string, { status?: unknown }> };\n const packages = parsed.packages ?? {};\n const busyPackages = Object.entries(packages)\n .filter(([, entry]) => String(entry?.status) !== 'ready')\n .map(([name]) => name)\n .sort();\n return { readable: true, busyPackages };\n } catch {\n return { readable: false, busyPackages: [] };\n }\n}\n\n/**\n * Wait (bounded) for the dev tree to stop compiling before spawning a long agent turn.\n *\n * BOUNDED, and proceeding on timeout rather than refusing: this gate exists to raise the odds of a\n * turn surviving, not to become a new way work is withheld. A tree that churns for the whole bound\n * (a busy multi-session day) gets the same behavior as before this gate existed — the spawn happens\n * and takes its chances — with the wait logged so a killed turn's post-mortem can see the gate did\n * what it could.\n */\nexport async function waitForDevCompileQuiet(input: {\n readonly frameworkRepositoryRoot: string | null | undefined;\n readonly maximumWaitMs?: number;\n readonly pollIntervalMs?: number;\n readonly log?: (message: string, context?: Record<string, unknown>) => void;\n}): Promise<{ readonly waitedMs: number; readonly quiet: boolean }> {\n const maximumWaitMs = input.maximumWaitMs ?? 5 * 60 * 1000;\n const pollIntervalMs = input.pollIntervalMs ?? 5000;\n const startedAt = Date.now();\n let churn = readDevCompileChurn(input.frameworkRepositoryRoot);\n if (!churn.readable || churn.busyPackages.length === 0) return { waitedMs: 0, quiet: true };\n input.log?.('Deferring agent spawn: the dev tree is compiling', { busyPackages: churn.busyPackages.slice(0, 6) });\n while (Date.now() - startedAt < maximumWaitMs) {\n await new Promise((resolve) => setTimeout(resolve, pollIntervalMs));\n churn = readDevCompileChurn(input.frameworkRepositoryRoot);\n if (!churn.readable || churn.busyPackages.length === 0) {\n const waitedMs = Date.now() - startedAt;\n input.log?.('Dev tree quiet; spawning agent', { waitedMs });\n return { waitedMs, quiet: true };\n }\n }\n const waitedMs = Date.now() - startedAt;\n input.log?.('Dev tree still compiling after the bound; spawning anyway', { waitedMs, busyPackages: churn.busyPackages.slice(0, 6) });\n return { waitedMs, quiet: false };\n}\n\n/** One APPLICATION package whose compiled build is not published yet, and why. */\nexport interface UnpublishedApplicationPackage {\n readonly packageName: string;\n /** A compiler state (`COMPILING`, `FINALIZING`, `STARTING`), or {@link SOURCE_CHANGED_SINCE_LAST_COMPILATION}. */\n readonly reason: string;\n}\n\n/** The reason given for a package whose sources changed after its compiler last STARTED: it has not seen them yet. */\nexport const SOURCE_CHANGED_SINCE_LAST_COMPILATION = 'a source changed after its last compilation started';\n\n/**\n * How long after a source change its compiler is expected to START compiling it. `tsc --watch` debounces for 250 ms;\n * a change still unanswered after this window will not be answered by waiting — the source is outside the compiler's\n * program (a frontend asset, an excluded file), or the watcher is deaf, which `wildo-dev-runtime` and the monorepo\n * observer restart on their own. Past it, the change stops holding the read.\n */\nexport const SOURCE_PICKUP_WINDOW_MS = 30_000;\n\n/** Compiler states in which a package's `dist` is being written, or about to be. */\nconst PUBLISHING_COMPILE_STATES: ReadonlySet<string> = new Set([LocalDevCompileState.STARTING, LocalDevCompileState.COMPILING, LocalDevCompileState.FINALIZING]);\n\n/**\n * The application's OWN packages whose compiled build is not published yet (#3212), read from the compile records every\n * application package's compiler writes — the monorepo's observer for a framework developer, `wildo-dev-runtime` for an\n * application created from the published framework — under `.wildo-saas/runtime-signals/compilers/`.\n *\n * `readDevCompileChurn` above answers the same question for the FRAMEWORK checkout, which an app-creator install does\n * not have; this one exists in both modes. A package counts as unpublished while its compiler is writing (`STARTING`,\n * `COMPILING`, `FINALIZING`), AND while a program source under it is newer than its last compilation start: a playbook\n * that has just written `shared-lib/src/…` must wait for a compilation that has not started yet, which is exactly the\n * read `app-creation-test-007` lost — `dist` 2.4 s behind the companion's read of it.\n *\n * A change older than {@link SOURCE_PICKUP_WINDOW_MS} no longer holds the read: a compiler that has not started on it\n * by then never will.\n *\n * Only a LIVE producer's record counts (its process exists, its heartbeat is fresh, it has not STOPPED): a stopped dev\n * stack leaves its records behind, and a package nobody compiles will never publish. `FAILED` is not waited on either — a compile error does not clear by waiting.\n */\nexport function readUnpublishedApplicationPackages(saasRoot: string, nowMs: number = Date.now()): readonly UnpublishedApplicationPackage[] {\n const directory = compileObservationsDirectory(saasRoot);\n let entries: string[];\n try {\n entries = readdirSync(directory).filter((name) => name.endsWith('.json'));\n } catch {\n return [];\n }\n const unpublished: UnpublishedApplicationPackage[] = [];\n for (const entry of entries.sort()) {\n const record = readCompileObservation(join(directory, entry));\n if (record === undefined || !isLiveCompileObservation(record, nowMs)) continue;\n if (PUBLISHING_COMPILE_STATES.has(record.state)) {\n unpublished.push({ packageName: record.packageName, reason: record.state });\n continue;\n }\n if (record.state !== LocalDevCompileState.READY || record.lastCompilationStartedAt === null) continue;\n const newest = findNewestProgramSource([join(record.packageRoot, 'src')]);\n if (newest !== undefined && newest.mtimeMs > Date.parse(record.lastCompilationStartedAt) && nowMs - newest.mtimeMs < SOURCE_PICKUP_WINDOW_MS) {\n unpublished.push({ packageName: record.packageName, reason: SOURCE_CHANGED_SINCE_LAST_COMPILATION });\n }\n }\n return unpublished;\n}\n\n/**\n * Wait (bounded) until every application package has published the sources a playbook just wrote (#3212).\n *\n * BOUNDED and proceeding on timeout, like {@link waitForDevCompileQuiet}: the read that follows is the judge, and a read\n * that still meets an unpublished build is classified environmental ({@link isApplicationPackageNotCompiledFailure}), so\n * the bound can never turn a slow compiler into a stopped creation loop. `onWait` is called once, with the packages,\n * when a wait actually begins — the \"waiting for <package> to compile\" line the run's event log carries.\n */\nexport async function waitForApplicationPackagesPublished(input: {\n readonly saasRoot: string;\n readonly maximumWaitMs?: number;\n readonly pollIntervalMs?: number;\n readonly onWait?: (unpublished: readonly UnpublishedApplicationPackage[]) => void | Promise<void>;\n}): Promise<{ readonly waitedMs: number; readonly published: boolean; readonly unpublished: readonly UnpublishedApplicationPackage[] }> {\n const maximumWaitMs = input.maximumWaitMs ?? 120_000;\n const pollIntervalMs = input.pollIntervalMs ?? 500;\n const startedAt = Date.now();\n let unpublished = readUnpublishedApplicationPackages(input.saasRoot);\n if (unpublished.length === 0) return { waitedMs: 0, published: true, unpublished };\n await input.onWait?.(unpublished);\n while (Date.now() - startedAt < maximumWaitMs) {\n await new Promise((resolve) => setTimeout(resolve, pollIntervalMs));\n unpublished = readUnpublishedApplicationPackages(input.saasRoot);\n if (unpublished.length === 0) return { waitedMs: Date.now() - startedAt, published: true, unpublished };\n }\n return { waitedMs: Date.now() - startedAt, published: false, unpublished };\n}\n\n/**\n * Did a read of the application's specifications fail on a package that was not COMPILED yet (#3212)?\n *\n * The companion's package loader already words that case (`describeSpecificationsLoadFailure` in\n * `companion-package-loaders.companion.ts`, whose sentence is pinned against this predicate by a test): a symbol added to\n * one of the application's own packages, read before that package's watcher published it. On `app-creation-test-007`\n * the foundation child scaffolded three modules, the read met `shared-lib/dist` 2.4 s early, and the whole creation loop\n * stopped ALL_CHILDREN_FAILED.\n *\n * Lexical only: the loader's sentence names a SECOND reading too — an import from a door that does not publish the\n * symbol — which no wait fixes. See {@link isEnvironmentalChoreographyChildFailure} for what classifying both as\n * environmental costs.\n */\nexport function isApplicationPackageNotCompiledFailure(message: string): boolean {\n return /has not been COMPILED since/u.test(message);\n}\n\n/**\n * Every failure that means the environment took the child away rather than the child's outcome — an infrastructure\n * kill, a provider account condition, a read of a package not compiled yet (#3212). One PURE predicate for both of the\n * choreography's questions (whether a failure counts toward withholding the child, and whether a loop that ended on it\n * keeps its checkpoint), because the runtime asks it several times about one failure and must get one answer.\n *\n * A GENUINE import error (the loader's second reading) also reads as environmental here, and this predicate cannot tell\n * the two readings apart: that needs to know that the same child failed the same way on a tree already published, a fact\n * about the run's history only the choreography runtime holds. So the runtime does it (#3261): through its\n * `isTimingEnvironmentalFailure` port, wired to `isApplicationPackageNotCompiledFailure`, it excuses a not-compiled\n * failure ONCE per child, failure text and read state (`timingExcusedOver`, beside `failedOver`), and counts a repeat over\n * the same reads, so the child is withheld rather than re-offered until the iteration ceiling. A stateful predicate here\n * was tried and rejected, because the runtime's repeat counting and its refused-re-run filter would have received\n * different answers for one failure. The companion's wait after every child makes the timing case rare.\n */\nexport function isEnvironmentalChoreographyChildFailure(message: string): boolean {\n return (\n isInfrastructureShapedAgentFailure(message) ||\n isProviderAccountAgentFailure(message) ||\n isApplicationPackageNotCompiledFailure(message) ||\n // A landing held on a specifications fault (#3258): about the application's state, never the child's work.\n isPlaybookLandingHeldFailure(message) ||\n // A lost network or a wake that aborted a model call in its retry back-off (#3235): the host's, not the child's.\n classifyNetworkEnvironmentFailure(message) !== undefined ||\n // A model provider account with no credits or at a limit (#3204), as the engine's classified error words it.\n parseModelProviderAccountRefusalDescription(message) !== undefined\n );\n}\n\n/**\n * Is this agent-child failure INFRASTRUCTURE-shaped — the environment taking the turn away — rather\n * than the agent failing at its work?\n *\n * Deliberately a closed list of measured signatures, not a heuristic:\n * - the exit-0 mid-turn kill (stdin closed under a companion pause — #121's diagnosed cause, and\n * the shape behind nine 2026-09-02/03 kills);\n * - the provider's own overload/transient answers (529 observed live on 2026-09-03; 429 is the same\n * class), which reach us as a named ACP error since the JSON-RPC rejection carries its message.\n *\n * A signature NOT on this list is the agent's outcome and is never retried here — a wrong answer\n * retried is spend; a refusal retried is worse.\n */\nexport function isInfrastructureShapedAgentFailure(message: string): boolean {\n if (/Agent process exited before the turn completed/i.test(message)) return true;\n if (/ACP agent error/.test(message) && /(529|429|Overloaded|overloaded_error|rate.?limit)/i.test(message)) return true;\n return false;\n}\n\n/**\n * Is this failure the provider ACCOUNT refusing to serve the turn — quota exhausted, or the\n * operator's login expired — rather than a transient or the agent's own outcome?\n *\n * Kept SEPARATE from {@link isInfrastructureShapedAgentFailure} because the two demand opposite\n * immediate treatment: a 529/kill is worth one retry in seconds, while an account condition has a\n * HUMAN-SCALE remedy — a quota resets hours later, an expired login needs someone to run\n * `claude login` — so retrying now is pure spend that fails identically. What the two share is the\n * LATER treatment: both are the environment taking the turn away rather than the agent failing at\n * its work, so both must preserve a choreography's checkpoint for a relaunch (measured 2026-09-03:\n * a 56-minute, 14-successful-children compliance run hit the 5-hour session limit in iteration 11\n * and the conclusion consumed the checkpoint, discarding every accumulated evidence brief).\n *\n * Closed list of measured signatures, same discipline as the sibling:\n * - `ACP agent error -32603: Internal error: You've hit your session limit · resets 9:40pm (Europe/Paris)`\n * - `ACP agent error -32603: Internal error: Failed to authenticate: OAuth session expired and\n * could not be refreshed` (2026-09-04, first iteration of the relaunch — the interactive shell\n * refreshed the same login fine minutes later; the minimal-env child could not)\n * - `ACP agent error -32000: Authentication required` — adapter 0.81.1 with NO login at all. Reproduced\n * 2026-09-25 against an empty `CLAUDE_CONFIG_DIR`: `initialize` and `session/new` succeed (the adapter\n * advertises no `authMethods`), and the first `session/prompt` answers JSON-RPC `-32000`. Until this\n * line, that failure was charged to the TASK and spent its attempt budget (#1637 R7). The code is\n * pinned together with the words because `-32000` alone is the generic server-error code.\n * - the agent's provider account has no credits or reached a spend or billing limit (#3204), read with the engine's own\n * vocabulary (`classifyModelProviderAccountRefusalText`): a provider code as a whole token (`credit_balance_exhausted`,\n * `insufficient_quota`, `billing_error`, …) or a quoted wording (`Credit balance is too low`, `You have no credits\n * remaining`). Not yet measured from a coding agent's own rejection: the words are the providers', and the channel\n * (`ACP agent error`) is what keeps a task's output from being read as one.\n */\nexport function isProviderAccountAgentFailure(message: string): boolean {\n // Refused BEFORE a session opened: the engine read the agent's own login status and found none.\n if (message.startsWith(CODING_AGENT_NOT_SIGNED_IN_MESSAGE_PREFIX)) return true;\n if (!/ACP agent error/.test(message)) return false;\n if (isProviderUsageLimitAgentFailure(message)) return true;\n if (/Failed to authenticate|OAuth session expired/i.test(message)) return true;\n // The agent's provider account has no credits, or reached a spend or billing limit (#3204): the same vocabulary the\n // engine classifies its own model calls into, read from the agent's rejection only (the channel checked above).\n if (readCodingAgentAccountRefusal(message) !== undefined) return true;\n if (/-32000/.test(message) && /Authentication required/i.test(message)) return true;\n return false;\n}\n\n/** Who refused, for a coding agent's rejection: the agent relays its provider's answer without naming the provider. */\nconst CODING_AGENT_PROVIDER = 'the coding agent\\'s model provider';\n\n/**\n * A coding agent's OWN rejection (`ACP agent error …`) relaying its provider account's refusal (#3204): no credits, a\n * spend or usage limit, billing. Read with the engine's vocabulary (`classifyModelProviderAccountRefusalText`) and pinned\n * to that channel like {@link isProviderAccountAgentFailure}, so a task's output carrying the same words is never read\n * as one. The rejection is all the agent relays, so it stands as the provider's message, redacted like every recorded\n * vendor message (`redactModelVendorText`) and bounded.\n */\nexport function readCodingAgentAccountRefusal(text: string): ModelProviderAccountRefusal | undefined {\n const answer = readAgentRejectionAnswer(text);\n if (answer === undefined) return undefined;\n const reason = answer.text.startsWith('{') ? classifyRelayedProviderBody(answer.text, answer.status) : classifyModelProviderAccountRefusalText(answer.text);\n if (reason === undefined) return undefined;\n const rejection = text.slice(text.indexOf('ACP agent error'));\n return {\n reason,\n provider: CODING_AGENT_PROVIDER,\n providerMessage: redactModelVendorText(rejection).slice(0, 500),\n ...(answer.status !== undefined ? { providerStatus: answer.status } : {}),\n };\n}\n\n/** A relayed provider body (`{\"type\":\"error\",\"error\":{\"type\":…,\"code\":…,\"message\":…}}`), classified by its own fields. */\nfunction classifyRelayedProviderBody(body: string, statusCode: number | undefined): ModelProviderAccountRefusalReason | undefined {\n let parsed: unknown;\n try {\n parsed = JSON.parse(body);\n } catch {\n return undefined;\n }\n const error = (parsed as { error?: Record<string, unknown> } | null)?.error;\n if (error === null || typeof error !== 'object') return undefined;\n return classifyModelProviderAccountRefusal({\n ...(statusCode !== undefined ? { statusCode } : {}),\n ...(typeof error.code === 'string' ? { errorCode: error.code } : {}),\n ...(typeof error.type === 'string' ? { errorType: error.type } : {}),\n ...(typeof error.status === 'string' ? { errorStatus: error.status } : {}),\n ...(typeof error.message === 'string' ? { message: error.message } : {}),\n });\n}\n\n/**\n * The half of {@link isProviderAccountAgentFailure} that a CLOCK fixes: the account's usage limit, as\n * distinct from an expired login, which needs a person (#2388). Split out because the two halves now\n * get different treatment — a usage limit pauses the build wave until its reset and spends no attempt,\n * while a login failure still waits for `claude login`. One predicate, so the classifier and the pause\n * cannot disagree about which message is a limit.\n *\n * Measured signature: `ACP agent error -32603: Internal error: You've hit your session limit · resets\n * 8:10am (Europe/Paris)` (app-creation-test-005, 2026-10-03). The adapter answers `-32603` with no\n * structured quota code, so the words are the signal.\n */\nexport function isProviderUsageLimitAgentFailure(message: string): boolean {\n const answer = readAgentRejectionAnswer(message);\n return answer !== undefined && /^(?:You(?:'ve| have) (?:hit|reached) your \\S* ?limit|(?:Claude )?(?:AI )?usage limit reached|session limit|usage limit)/iu.test(answer.text);\n}\n\n/**\n * Is this message the coding agent's OWN JSON-RPC rejection of the turn, as the ACP client words it\n * (`ACP agent error <code>: <message>`, optionally behind an error name such as `Error: `)? Anchored to the START\n * (review of b0e28414e, C): a failed test's output that merely CONTAINS \"insufficient_quota\" or \"Credit balance is too\n * low\" beside some quoted rejection text must stay the task's, or it escapes the attempt budget entirely. The account\n * classifiers that hold the build without charging an attempt read only this channel.\n */\nexport function isAgentRejectionMessage(message: string): boolean {\n return readAgentRejectionAnswer(message) !== undefined;\n}\n\n/** The agent's rejection: `ACP agent error <code>: [Internal error: ][API Error: <status> ]<the provider's answer>`. */\nconst AGENT_REJECTION = /^\\s*(?:[A-Za-z]*Error: )?ACP agent error -?\\d+: (?:Internal error: )?(?:API Error: (\\d{3}) )?([\\s\\S]*)$/u;\n\n/**\n * The provider's answer an agent rejection RELAYS, anchored to the JSON-RPC error itself: the text right after its\n * header (and Claude Code's `API Error: <status>` prefix, whose status it keeps), or `undefined` when the message is no\n * agent rejection. A classifier reading only this, and only from its start, cannot be fooled by a tool's output quoted\n * later in the same message (review of b0e28414e, C).\n */\nexport function readAgentRejectionAnswer(message: string): { readonly status?: number; readonly text: string } | undefined {\n const match = AGENT_REJECTION.exec(message);\n if (!match) return undefined;\n return { ...(match[1] !== undefined ? { status: Number(match[1]) } : {}), text: match[2]!.trim() };\n}\n\n/**\n * Did a concluded choreography END BY ENVIRONMENT — every child of its fatal iteration taken by\n * infrastructure or quota — rather than reach a semantic conclusion?\n *\n * This is the predicate that decides whether the run's checkpoint survives its conclusion. The\n * consuming rule (\"a run that stopped because every child failed has still CONCLUDED\") is right for\n * a semantic failure: re-running would choose again over identical state. It is wrong when the\n * children never got to do the work at all — that is the process-taken-away case the checkpoint\n * exists for, arriving as child failures instead of a SIGTERM.\n *\n * A read of an application package that was not compiled yet counts as environmental too (#3212), through\n * {@link isEnvironmentalChoreographyChildFailure}.\n *\n * Strict on purpose: ONE semantic failure among the fatal children means the next selection would\n * see real information, so the conclusion stands and the checkpoint goes. An empty iteration list\n * or a stop reason other than ALL_CHILDREN_FAILED is never environmental.\n *\n * So a module fault keeps the checkpoint only where the run's own composite saw every child held at its landing (#3258). A\n * fault the board read first ends the lane as NOTHING_ELIGIBLE, a conclusion on its own terms, and a nested lane's held child\n * returns to the outer lane as a child that finished. Both are accepted: a checkpoint saves a re-run's selection, never\n * work, because everything landed is in the tree and the next run selects from that.\n */\nexport function choreographyEndedByEnvironment(input: {\n readonly stoppedBecause: string;\n readonly iterations: ReadonlyArray<{ readonly children: ReadonlyArray<{ readonly failure?: string }> }>;\n}): boolean {\n if (input.stoppedBecause !== 'ALL_CHILDREN_FAILED') return false;\n const fatal = input.iterations[input.iterations.length - 1];\n if (!fatal || fatal.children.length === 0) return false;\n return fatal.children.every((child) => child.failure !== undefined && isEnvironmentalChoreographyChildFailure(child.failure));\n}\n"]}
1
+ {"version":3,"file":"dev-compile-quiet.companion.js","sourceRoot":"","sources":["../../../../src/core/runtime/dev-compile-quiet.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,yCAAyC,EAAE,MAAM,sCAAsC,CAAC;AACjG,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EACL,mCAAmC,EACnC,uCAAuC,EACvC,2CAA2C,GAG5C,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,4BAA4B,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACrK,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AA8B5F,M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E,EAAE,CAAC,KAAK,CAAC,OAAO,KAAK,SAAS,IAAI,uCAAuC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAChI,CAAC","sourcesContent":["import { isPlaybookLandingHeldFailure } from '@wildo-ai/application-creation-runtime';\nimport { CODING_AGENT_NOT_SIGNED_IN_MESSAGE_PREFIX } from '@wildo-ai/external-connectors-models';\nimport { LocalDevCompileState } from '@wildo-ai/platform-core-shared';\nimport { redactModelVendorText } from '@wildo-ai/saas-backend-lib';\nimport {\n classifyModelProviderAccountRefusal,\n classifyModelProviderAccountRefusalText,\n parseModelProviderAccountRefusalDescription,\n type ModelProviderAccountRefusal,\n type ModelProviderAccountRefusalReason,\n} from '@wildo-ai/saas-models';\nimport { compileObservationsDirectory, findNewestProgramSource, isLiveCompileObservation, readCompileObservation } from '@wildo-ai/platform-core-shared/dev-runtime';\nimport { existsSync, readdirSync, readFileSync, statSync } from 'node:fs';\nimport { join, resolve } from 'node:path';\nimport { classifyNetworkEnvironmentFailure } from './network-environment-failure.companion';\n\n/**\n * The dev supervisor's compile state, read from the SAME artifact the supervisor keys on — so this\n * gate and the thing that kills agent children under a rebuild can never disagree about whether a\n * rebuild is happening (issue #265; the predicate was proven operationally before it was code:\n * dispatch attempts launched behind an all-`ready` read completed, attempts launched on health\n * checks alone died).\n *\n * ## Why agent spawns consult this at all\n *\n * An in-flight ACP agent child dies with every companion pause: its stdin closes on the supervisor's\n * restart and the CLI exits 0 mid-turn — nine measured kills across two lanes on 2026-09-02/03. The\n * supervisor's pauses are LEGITIMATE (a dependency really is recompiling), so the fix is not to\n * fight them but to stop spawning minutes-long turns into a window that is already churning.\n *\n * ## Absent-tolerant by design\n *\n * The status file is a DEV-ORCHESTRATOR artifact. A standalone application install has no framework\n * checkout, no watchers, and no churn — `readable: false` there means \"nothing to wait for\", never\n * an error. Same for a malformed or mid-write read: this is a convenience gate, and a gate that can\n * fail closed on its own parse error would refuse work over a JSON hiccup.\n */\nexport interface DevCompileChurn {\n /** False when no status artifact exists or it cannot be parsed — treat as quiet. */\n readonly readable: boolean;\n /** Package names currently NOT `ready` (compiling or failed). Empty when quiet. */\n readonly busyPackages: readonly string[];\n}\n\nconst DEV_COMPILE_STATUS_RELATIVE_PATH = '.wildo-runtime-signals/dev-compile-status.json';\n\nexport function readDevCompileChurn(frameworkRepositoryRoot: string | null | undefined): DevCompileChurn {\n if (!frameworkRepositoryRoot) return { readable: false, busyPackages: [] };\n const statusPath = join(frameworkRepositoryRoot, DEV_COMPILE_STATUS_RELATIVE_PATH);\n if (!existsSync(statusPath)) return { readable: false, busyPackages: [] };\n try {\n const parsed = JSON.parse(readFileSync(statusPath, 'utf8')) as { packages?: Record<string, { status?: unknown }> };\n const packages = parsed.packages ?? {};\n const busyPackages = Object.entries(packages)\n .filter(([, entry]) => String(entry?.status) !== 'ready')\n .map(([name]) => name)\n .sort();\n return { readable: true, busyPackages };\n } catch {\n return { readable: false, busyPackages: [] };\n }\n}\n\n/**\n * Wait (bounded) for the dev tree to stop compiling before spawning a long agent turn.\n *\n * BOUNDED, and proceeding on timeout rather than refusing: this gate exists to raise the odds of a\n * turn surviving, not to become a new way work is withheld. A tree that churns for the whole bound\n * (a busy multi-session day) gets the same behavior as before this gate existed — the spawn happens\n * and takes its chances — with the wait logged so a killed turn's post-mortem can see the gate did\n * what it could.\n */\nexport async function waitForDevCompileQuiet(input: {\n readonly frameworkRepositoryRoot: string | null | undefined;\n readonly maximumWaitMs?: number;\n readonly pollIntervalMs?: number;\n readonly log?: (message: string, context?: Record<string, unknown>) => void;\n}): Promise<{ readonly waitedMs: number; readonly quiet: boolean }> {\n const maximumWaitMs = input.maximumWaitMs ?? 5 * 60 * 1000;\n const pollIntervalMs = input.pollIntervalMs ?? 5000;\n const startedAt = Date.now();\n let churn = readDevCompileChurn(input.frameworkRepositoryRoot);\n if (!churn.readable || churn.busyPackages.length === 0) return { waitedMs: 0, quiet: true };\n input.log?.('Deferring agent spawn: the dev tree is compiling', { busyPackages: churn.busyPackages.slice(0, 6) });\n while (Date.now() - startedAt < maximumWaitMs) {\n await new Promise((resolve) => setTimeout(resolve, pollIntervalMs));\n churn = readDevCompileChurn(input.frameworkRepositoryRoot);\n if (!churn.readable || churn.busyPackages.length === 0) {\n const waitedMs = Date.now() - startedAt;\n input.log?.('Dev tree quiet; spawning agent', { waitedMs });\n return { waitedMs, quiet: true };\n }\n }\n const waitedMs = Date.now() - startedAt;\n input.log?.('Dev tree still compiling after the bound; spawning anyway', { waitedMs, busyPackages: churn.busyPackages.slice(0, 6) });\n return { waitedMs, quiet: false };\n}\n\n/** One APPLICATION package whose compiled build is not published yet, and why. */\nexport interface UnpublishedApplicationPackage {\n readonly packageName: string;\n /** A compiler state (`COMPILING`, `FINALIZING`, `STARTING`), or {@link SOURCE_CHANGED_SINCE_LAST_COMPILATION}. */\n readonly reason: string;\n}\n\n/** The reason given for a package whose sources changed after its compiler last STARTED: it has not seen them yet. */\nexport const SOURCE_CHANGED_SINCE_LAST_COMPILATION = 'a source changed after its last compilation started';\n\n/**\n * How long after a source change its compiler is expected to START compiling it. `tsc --watch` debounces for 250 ms;\n * a change still unanswered after this window will not be answered by waiting — the source is outside the compiler's\n * program (a frontend asset, an excluded file), or the watcher is deaf, which `wildo-dev-runtime` and the monorepo\n * observer restart on their own. Past it, the change stops holding the read.\n */\nexport const SOURCE_PICKUP_WINDOW_MS = 30_000;\n\n/** Compiler states in which a package's `dist` is being written, or about to be. */\nconst PUBLISHING_COMPILE_STATES: ReadonlySet<string> = new Set([LocalDevCompileState.STARTING, LocalDevCompileState.COMPILING, LocalDevCompileState.FINALIZING]);\n\n/**\n * The application's OWN packages whose compiled build is not published yet (#3212), read from the compile records every\n * application package's compiler writes — the monorepo's observer for a framework developer, `wildo-dev-runtime` for an\n * application created from the published framework — under `.wildo-saas/runtime-signals/compilers/`.\n *\n * `readDevCompileChurn` above answers the same question for the FRAMEWORK checkout, which an app-creator install does\n * not have; this one exists in both modes. A package counts as unpublished while its compiler is writing (`STARTING`,\n * `COMPILING`, `FINALIZING`), AND while a program source under it is newer than its last compilation start: a playbook\n * that has just written `shared-lib/src/…` must wait for a compilation that has not started yet, which is exactly the\n * read `app-creation-test-007` lost — `dist` 2.4 s behind the companion's read of it.\n *\n * A change older than {@link SOURCE_PICKUP_WINDOW_MS} no longer holds the read: a compiler that has not started on it\n * by then never will.\n *\n * Only a LIVE producer's record counts (its process exists, its heartbeat is fresh, it has not STOPPED): a stopped dev\n * stack leaves its records behind, and a package nobody compiles will never publish. `FAILED` is not waited on either — a compile error does not clear by waiting.\n */\nexport function readUnpublishedApplicationPackages(saasRoot: string, nowMs: number = Date.now()): readonly UnpublishedApplicationPackage[] {\n const directory = compileObservationsDirectory(saasRoot);\n let entries: string[];\n try {\n entries = readdirSync(directory).filter((name) => name.endsWith('.json'));\n } catch {\n return [];\n }\n const unpublished: UnpublishedApplicationPackage[] = [];\n for (const entry of entries.sort()) {\n const record = readCompileObservation(join(directory, entry));\n if (record === undefined || !isLiveCompileObservation(record, nowMs)) continue;\n if (PUBLISHING_COMPILE_STATES.has(record.state)) {\n unpublished.push({ packageName: record.packageName, reason: record.state });\n continue;\n }\n if (record.state !== LocalDevCompileState.READY || record.lastCompilationStartedAt === null) continue;\n const newest = findNewestProgramSource([join(record.packageRoot, 'src')]);\n if (newest !== undefined && newest.mtimeMs > Date.parse(record.lastCompilationStartedAt) && nowMs - newest.mtimeMs < SOURCE_PICKUP_WINDOW_MS) {\n unpublished.push({ packageName: record.packageName, reason: SOURCE_CHANGED_SINCE_LAST_COMPILATION });\n }\n }\n return unpublished;\n}\n\n/**\n * Wait (bounded) until every application package has published the sources a playbook just wrote (#3212).\n *\n * BOUNDED and proceeding on timeout, like {@link waitForDevCompileQuiet}: the read that follows is the judge, and a read\n * that still meets an unpublished build is classified environmental ({@link isApplicationPackageNotCompiledFailure}), so\n * the bound can never turn a slow compiler into a stopped creation loop. `onWait` is called once, with the packages,\n * when a wait actually begins — the \"waiting for <package> to compile\" line the run's event log carries.\n */\nexport async function waitForApplicationPackagesPublished(input: {\n readonly saasRoot: string;\n readonly maximumWaitMs?: number;\n readonly pollIntervalMs?: number;\n readonly onWait?: (unpublished: readonly UnpublishedApplicationPackage[]) => void | Promise<void>;\n}): Promise<{ readonly waitedMs: number; readonly published: boolean; readonly unpublished: readonly UnpublishedApplicationPackage[] }> {\n const maximumWaitMs = input.maximumWaitMs ?? 120_000;\n const pollIntervalMs = input.pollIntervalMs ?? 500;\n const startedAt = Date.now();\n let unpublished = readUnpublishedApplicationPackages(input.saasRoot);\n if (unpublished.length === 0) return { waitedMs: 0, published: true, unpublished };\n await input.onWait?.(unpublished);\n while (Date.now() - startedAt < maximumWaitMs) {\n await new Promise((resolve) => setTimeout(resolve, pollIntervalMs));\n unpublished = readUnpublishedApplicationPackages(input.saasRoot);\n if (unpublished.length === 0) return { waitedMs: Date.now() - startedAt, published: true, unpublished };\n }\n return { waitedMs: Date.now() - startedAt, published: false, unpublished };\n}\n\n/**\n * Whether one application package's COMPILED output is current with its sources (run 43961156770). The verifier asks it\n * after a check could not be asked because that package's compiled model is behind ({@link waitForApplicationPackageCompileCurrent}),\n * and the hold such a check opens, and the task it withholds, ask it as their free probe.\n *\n * The SAME rule `wildo config check-resources` and `wildo db diff` refuse by (`assessCompiledModelCurrency` in the CLI's\n * `db-schema-plan.utils.ts`, which the companion cannot import), so the companion never waits for, or releases on, a\n * currency the CLI would still refuse: the newest `.ts`/`.tsx` under `<package>/src` (any directory named `dist` or\n * `__tests__`, dotted or `node_modules` skipped; co-located test files COUNT, as the CLI counts them) against the newest\n * `.js`/`.d.ts` under `<package>/dist`; when `dist` is older, the compiler's record (`.wildo-saas/runtime-signals/compilers/`,\n * matched on `packageRoot`, read with the observer's own reader) is current when its last success covers that source and\n * no failure came after it. No compiled output at all is behind whatever the record says. The walk's parameters are pinned\n * to the CLI's source by a parity test; the CLI stays the judge, since a check is only ever asked again, never assumed.\n */\nexport enum ApplicationPackageCompileCurrency {\n /** The compiled output, or the compiler's last success, covers the newest source, and nothing failed since. */\n CURRENT = 'current',\n /** A source is newer than the compiled output and the last successful compile, or a compile failed after it. */\n BEHIND = 'behind',\n /**\n * Behind, and its live compiler already started on the newest source and FAILED: no wait clears it, only an edit does\n * (the CLI says the same: \"waiting will not clear this one\").\n */\n FAILED_ON_CURRENT_SOURCES = 'failed-on-current-sources',\n /** Behind, and no compiler record names this package: nothing publishes its build, so there is nothing to wait for. */\n UNOBSERVED = 'unobserved',\n}\n\n/** One reading of {@link ApplicationPackageCompileCurrency}, with the compiler's last success the probes compare against. */\nexport interface ApplicationPackageCompileReading {\n readonly currency: ApplicationPackageCompileCurrency;\n /** The compiler record's last successful compile, or `null` when it records none or no record names the package. */\n readonly lastSuccessfulCompileMs: number | null;\n}\n\n/** Newest mtime of a file with one of `extensions` under `directory`, skipping what the CLI's walk skips; 0 when none. */\nfunction newestCompiledModelMtimeMs(directory: string, extensions: readonly string[], skip: readonly string[]): number {\n let newest = 0;\n const walk = (current: string): void => {\n let entries;\n try {\n entries = readdirSync(current, { withFileTypes: true });\n } catch {\n return;\n }\n for (const entry of entries) {\n if (entry.name === 'node_modules' || entry.name.startsWith('.') || skip.includes(entry.name)) continue;\n const path = join(current, entry.name);\n if (entry.isDirectory()) {\n walk(path);\n continue;\n }\n if (!extensions.some((extension) => entry.name.endsWith(extension))) continue;\n try {\n const { mtimeMs } = statSync(path);\n if (mtimeMs > newest) newest = mtimeMs;\n } catch {\n // Removed mid-walk.\n }\n }\n };\n walk(directory);\n return newest;\n}\n\n/** See {@link ApplicationPackageCompileCurrency}. `packageDirectory` is relative to the application root (`shared-lib`). */\nexport function readApplicationPackageCompileCurrency(saasRoot: string, packageDirectory: string, nowMs: number = Date.now()): ApplicationPackageCompileReading {\n const packageRoot = resolve(saasRoot, packageDirectory);\n const directory = compileObservationsDirectory(saasRoot);\n let entries: string[] = [];\n try {\n entries = readdirSync(directory).filter((name) => name.endsWith('.json'));\n } catch {\n // No observer: the mtimes alone answer.\n }\n const record = entries.map((entry) => readCompileObservation(join(directory, entry)))\n .find((candidate) => candidate !== undefined && resolve(candidate.packageRoot) === packageRoot);\n const successMs = record?.lastSuccessfulCompileAt ? Date.parse(record.lastSuccessfulCompileAt) : null;\n const reading = (currency: ApplicationPackageCompileCurrency): ApplicationPackageCompileReading => ({ currency, lastSuccessfulCompileMs: successMs });\n const newestSourceMs = newestCompiledModelMtimeMs(join(packageRoot, 'src'), ['.ts', '.tsx'], ['dist', '__tests__']);\n if (newestSourceMs === 0) return reading(ApplicationPackageCompileCurrency.CURRENT);\n const newestCompiledMs = newestCompiledModelMtimeMs(join(packageRoot, 'dist'), ['.js', '.d.ts'], []);\n if (newestCompiledMs >= newestSourceMs) return reading(ApplicationPackageCompileCurrency.CURRENT);\n if (record === undefined) return reading(ApplicationPackageCompileCurrency.UNOBSERVED);\n const failureMs = record.lastFailureAt ? Date.parse(record.lastFailureAt) : null;\n const failedSinceSuccess = successMs !== null && failureMs !== null && failureMs > successMs;\n if (newestCompiledMs > 0 && successMs !== null && successMs >= newestSourceMs && !failedSinceSuccess) return reading(ApplicationPackageCompileCurrency.CURRENT);\n const startedMs = record.lastCompilationStartedAt ? Date.parse(record.lastCompilationStartedAt) : null;\n if (record.state === LocalDevCompileState.FAILED && isLiveCompileObservation(record, nowMs) && startedMs !== null && startedMs >= newestSourceMs) {\n return reading(ApplicationPackageCompileCurrency.FAILED_ON_CURRENT_SOURCES);\n }\n return reading(ApplicationPackageCompileCurrency.BEHIND);\n}\n\n/**\n * Wait (bounded) until one application package's compiled output is current with its sources (run 43961156770). Returns\n * at once when the package is current, when no compiler record names it (nothing will publish it), or when its compiler\n * already failed on the current sources (no wait clears that). Otherwise polls until it is current or the bound passes.\n *\n * A record whose producer is gone is still waited on: a compile watcher that died is respawned (ff6192443), and the\n * respawned compiler writes the same record. `onWait` is called once, when a wait actually begins.\n */\nexport async function waitForApplicationPackageCompileCurrent(input: {\n readonly saasRoot: string;\n readonly packageDirectory: string;\n readonly maximumWaitMs: number;\n readonly pollIntervalMs: number;\n readonly onWait?: (currency: ApplicationPackageCompileCurrency) => void;\n}): Promise<{ readonly waitedMs: number; readonly currency: ApplicationPackageCompileCurrency }> {\n const startedAt = Date.now();\n let currency = readApplicationPackageCompileCurrency(input.saasRoot, input.packageDirectory).currency;\n if (currency !== ApplicationPackageCompileCurrency.BEHIND) return { waitedMs: 0, currency };\n input.onWait?.(currency);\n while (Date.now() - startedAt < input.maximumWaitMs) {\n await new Promise((resolveWait) => setTimeout(resolveWait, input.pollIntervalMs));\n currency = readApplicationPackageCompileCurrency(input.saasRoot, input.packageDirectory).currency;\n if (currency !== ApplicationPackageCompileCurrency.BEHIND) break;\n }\n return { waitedMs: Date.now() - startedAt, currency };\n}\n\n/**\n * Did a read of the application's specifications fail on a package that was not COMPILED yet (#3212)?\n *\n * The companion's package loader already words that case (`describeSpecificationsLoadFailure` in\n * `companion-package-loaders.companion.ts`, whose sentence is pinned against this predicate by a test): a symbol added to\n * one of the application's own packages, read before that package's watcher published it. On `app-creation-test-007`\n * the foundation child scaffolded three modules, the read met `shared-lib/dist` 2.4 s early, and the whole creation loop\n * stopped ALL_CHILDREN_FAILED.\n *\n * Lexical only: the loader's sentence names a SECOND reading too — an import from a door that does not publish the\n * symbol — which no wait fixes. See {@link isEnvironmentalChoreographyChildFailure} for what classifying both as\n * environmental costs.\n */\nexport function isApplicationPackageNotCompiledFailure(message: string): boolean {\n return /has not been COMPILED since/u.test(message);\n}\n\n/**\n * Every failure that means the environment took the child away rather than the child's outcome — an infrastructure\n * kill, a provider account condition, a read of a package not compiled yet (#3212). One PURE predicate for both of the\n * choreography's questions (whether a failure counts toward withholding the child, and whether a loop that ended on it\n * keeps its checkpoint), because the runtime asks it several times about one failure and must get one answer.\n *\n * A GENUINE import error (the loader's second reading) also reads as environmental here, and this predicate cannot tell\n * the two readings apart: that needs to know that the same child failed the same way on a tree already published, a fact\n * about the run's history only the choreography runtime holds. So the runtime does it (#3261): through its\n * `isTimingEnvironmentalFailure` port, wired to `isApplicationPackageNotCompiledFailure`, it excuses a not-compiled\n * failure ONCE per child, failure text and read state (`timingExcusedOver`, beside `failedOver`), and counts a repeat over\n * the same reads, so the child is withheld rather than re-offered until the iteration ceiling. A stateful predicate here\n * was tried and rejected, because the runtime's repeat counting and its refused-re-run filter would have received\n * different answers for one failure. The companion's wait after every child makes the timing case rare.\n */\nexport function isEnvironmentalChoreographyChildFailure(message: string): boolean {\n return (\n isInfrastructureShapedAgentFailure(message) ||\n isProviderAccountAgentFailure(message) ||\n isApplicationPackageNotCompiledFailure(message) ||\n // A landing held on a specifications fault (#3258): about the application's state, never the child's work.\n isPlaybookLandingHeldFailure(message) ||\n // A lost network or a wake that aborted a model call in its retry back-off (#3235): the host's, not the child's.\n classifyNetworkEnvironmentFailure(message) !== undefined ||\n // A model provider account with no credits or at a limit (#3204), as the engine's classified error words it.\n parseModelProviderAccountRefusalDescription(message) !== undefined\n );\n}\n\n/**\n * Is this agent-child failure INFRASTRUCTURE-shaped — the environment taking the turn away — rather\n * than the agent failing at its work?\n *\n * Deliberately a closed list of measured signatures, not a heuristic:\n * - the exit-0 mid-turn kill (stdin closed under a companion pause — #121's diagnosed cause, and\n * the shape behind nine 2026-09-02/03 kills);\n * - the provider's own overload/transient answers (529 observed live on 2026-09-03; 429 is the same\n * class), which reach us as a named ACP error since the JSON-RPC rejection carries its message.\n *\n * A signature NOT on this list is the agent's outcome and is never retried here — a wrong answer\n * retried is spend; a refusal retried is worse.\n */\nexport function isInfrastructureShapedAgentFailure(message: string): boolean {\n if (/Agent process exited before the turn completed/i.test(message)) return true;\n if (/ACP agent error/.test(message) && /(529|429|Overloaded|overloaded_error|rate.?limit)/i.test(message)) return true;\n return false;\n}\n\n/**\n * Is this failure the provider ACCOUNT refusing to serve the turn — quota exhausted, or the\n * operator's login expired — rather than a transient or the agent's own outcome?\n *\n * Kept SEPARATE from {@link isInfrastructureShapedAgentFailure} because the two demand opposite\n * immediate treatment: a 529/kill is worth one retry in seconds, while an account condition has a\n * HUMAN-SCALE remedy — a quota resets hours later, an expired login needs someone to run\n * `claude login` — so retrying now is pure spend that fails identically. What the two share is the\n * LATER treatment: both are the environment taking the turn away rather than the agent failing at\n * its work, so both must preserve a choreography's checkpoint for a relaunch (measured 2026-09-03:\n * a 56-minute, 14-successful-children compliance run hit the 5-hour session limit in iteration 11\n * and the conclusion consumed the checkpoint, discarding every accumulated evidence brief).\n *\n * Closed list of measured signatures, same discipline as the sibling:\n * - `ACP agent error -32603: Internal error: You've hit your session limit · resets 9:40pm (Europe/Paris)`\n * - `ACP agent error -32603: Internal error: Failed to authenticate: OAuth session expired and\n * could not be refreshed` (2026-09-04, first iteration of the relaunch — the interactive shell\n * refreshed the same login fine minutes later; the minimal-env child could not)\n * - `ACP agent error -32000: Authentication required` — adapter 0.81.1 with NO login at all. Reproduced\n * 2026-09-25 against an empty `CLAUDE_CONFIG_DIR`: `initialize` and `session/new` succeed (the adapter\n * advertises no `authMethods`), and the first `session/prompt` answers JSON-RPC `-32000`. Until this\n * line, that failure was charged to the TASK and spent its attempt budget (#1637 R7). The code is\n * pinned together with the words because `-32000` alone is the generic server-error code.\n * - the agent's provider account has no credits or reached a spend or billing limit (#3204), read with the engine's own\n * vocabulary (`classifyModelProviderAccountRefusalText`): a provider code as a whole token (`credit_balance_exhausted`,\n * `insufficient_quota`, `billing_error`, …) or a quoted wording (`Credit balance is too low`, `You have no credits\n * remaining`). Not yet measured from a coding agent's own rejection: the words are the providers', and the channel\n * (`ACP agent error`) is what keeps a task's output from being read as one.\n */\nexport function isProviderAccountAgentFailure(message: string): boolean {\n // Refused BEFORE a session opened: the engine read the agent's own login status and found none.\n if (message.startsWith(CODING_AGENT_NOT_SIGNED_IN_MESSAGE_PREFIX)) return true;\n if (!/ACP agent error/.test(message)) return false;\n if (isProviderUsageLimitAgentFailure(message)) return true;\n if (/Failed to authenticate|OAuth session expired/i.test(message)) return true;\n // The agent's provider account has no credits, or reached a spend or billing limit (#3204): the same vocabulary the\n // engine classifies its own model calls into, read from the agent's rejection only (the channel checked above).\n if (readCodingAgentAccountRefusal(message) !== undefined) return true;\n if (/-32000/.test(message) && /Authentication required/i.test(message)) return true;\n return false;\n}\n\n/** Who refused, for a coding agent's rejection: the agent relays its provider's answer without naming the provider. */\nconst CODING_AGENT_PROVIDER = 'the coding agent\\'s model provider';\n\n/**\n * A coding agent's OWN rejection (`ACP agent error …`) relaying its provider account's refusal (#3204): no credits, a\n * spend or usage limit, billing. Read with the engine's vocabulary (`classifyModelProviderAccountRefusalText`) and pinned\n * to that channel like {@link isProviderAccountAgentFailure}, so a task's output carrying the same words is never read\n * as one. The rejection is all the agent relays, so it stands as the provider's message, redacted like every recorded\n * vendor message (`redactModelVendorText`) and bounded.\n */\nexport function readCodingAgentAccountRefusal(text: string): ModelProviderAccountRefusal | undefined {\n const answer = readAgentRejectionAnswer(text);\n if (answer === undefined) return undefined;\n const reason = answer.text.startsWith('{') ? classifyRelayedProviderBody(answer.text, answer.status) : classifyModelProviderAccountRefusalText(answer.text);\n if (reason === undefined) return undefined;\n const rejection = text.slice(text.indexOf('ACP agent error'));\n return {\n reason,\n provider: CODING_AGENT_PROVIDER,\n providerMessage: redactModelVendorText(rejection).slice(0, 500),\n ...(answer.status !== undefined ? { providerStatus: answer.status } : {}),\n };\n}\n\n/** A relayed provider body (`{\"type\":\"error\",\"error\":{\"type\":…,\"code\":…,\"message\":…}}`), classified by its own fields. */\nfunction classifyRelayedProviderBody(body: string, statusCode: number | undefined): ModelProviderAccountRefusalReason | undefined {\n let parsed: unknown;\n try {\n parsed = JSON.parse(body);\n } catch {\n return undefined;\n }\n const error = (parsed as { error?: Record<string, unknown> } | null)?.error;\n if (error === null || typeof error !== 'object') return undefined;\n return classifyModelProviderAccountRefusal({\n ...(statusCode !== undefined ? { statusCode } : {}),\n ...(typeof error.code === 'string' ? { errorCode: error.code } : {}),\n ...(typeof error.type === 'string' ? { errorType: error.type } : {}),\n ...(typeof error.status === 'string' ? { errorStatus: error.status } : {}),\n ...(typeof error.message === 'string' ? { message: error.message } : {}),\n });\n}\n\n/**\n * The half of {@link isProviderAccountAgentFailure} that a CLOCK fixes: the account's usage limit, as\n * distinct from an expired login, which needs a person (#2388). Split out because the two halves now\n * get different treatment — a usage limit pauses the build wave until its reset and spends no attempt,\n * while a login failure still waits for `claude login`. One predicate, so the classifier and the pause\n * cannot disagree about which message is a limit.\n *\n * Measured signature: `ACP agent error -32603: Internal error: You've hit your session limit · resets\n * 8:10am (Europe/Paris)` (app-creation-test-005, 2026-10-03). The adapter answers `-32603` with no\n * structured quota code, so the words are the signal.\n */\nexport function isProviderUsageLimitAgentFailure(message: string): boolean {\n const answer = readAgentRejectionAnswer(message);\n return answer !== undefined && /^(?:You(?:'ve| have) (?:hit|reached) your \\S* ?limit|(?:Claude )?(?:AI )?usage limit reached|session limit|usage limit)/iu.test(answer.text);\n}\n\n/**\n * Is this message the coding agent's OWN JSON-RPC rejection of the turn, as the ACP client words it\n * (`ACP agent error <code>: <message>`, optionally behind an error name such as `Error: `)? Anchored to the START\n * (review of b0e28414e, C): a failed test's output that merely CONTAINS \"insufficient_quota\" or \"Credit balance is too\n * low\" beside some quoted rejection text must stay the task's, or it escapes the attempt budget entirely. The account\n * classifiers that hold the build without charging an attempt read only this channel.\n */\nexport function isAgentRejectionMessage(message: string): boolean {\n return readAgentRejectionAnswer(message) !== undefined;\n}\n\n/** The agent's rejection: `ACP agent error <code>: [Internal error: ][API Error: <status> ]<the provider's answer>`. */\nconst AGENT_REJECTION = /^\\s*(?:[A-Za-z]*Error: )?ACP agent error -?\\d+: (?:Internal error: )?(?:API Error: (\\d{3}) )?([\\s\\S]*)$/u;\n\n/**\n * The provider's answer an agent rejection RELAYS, anchored to the JSON-RPC error itself: the text right after its\n * header (and Claude Code's `API Error: <status>` prefix, whose status it keeps), or `undefined` when the message is no\n * agent rejection. A classifier reading only this, and only from its start, cannot be fooled by a tool's output quoted\n * later in the same message (review of b0e28414e, C).\n */\nexport function readAgentRejectionAnswer(message: string): { readonly status?: number; readonly text: string } | undefined {\n const match = AGENT_REJECTION.exec(message);\n if (!match) return undefined;\n return { ...(match[1] !== undefined ? { status: Number(match[1]) } : {}), text: match[2]!.trim() };\n}\n\n/**\n * Did a concluded choreography END BY ENVIRONMENT — every child of its fatal iteration taken by\n * infrastructure or quota — rather than reach a semantic conclusion?\n *\n * This is the predicate that decides whether the run's checkpoint survives its conclusion. The\n * consuming rule (\"a run that stopped because every child failed has still CONCLUDED\") is right for\n * a semantic failure: re-running would choose again over identical state. It is wrong when the\n * children never got to do the work at all — that is the process-taken-away case the checkpoint\n * exists for, arriving as child failures instead of a SIGTERM.\n *\n * A read of an application package that was not compiled yet counts as environmental too (#3212), through\n * {@link isEnvironmentalChoreographyChildFailure}.\n *\n * Strict on purpose: ONE semantic failure among the fatal children means the next selection would\n * see real information, so the conclusion stands and the checkpoint goes. An empty iteration list\n * or a stop reason other than ALL_CHILDREN_FAILED is never environmental.\n *\n * So a module fault keeps the checkpoint only where the run's own composite saw every child held at its landing (#3258). A\n * fault the board read first ends the lane as NOTHING_ELIGIBLE, a conclusion on its own terms, and a nested lane's held child\n * returns to the outer lane as a child that finished. Both are accepted: a checkpoint saves a re-run's selection, never\n * work, because everything landed is in the tree and the next run selects from that.\n */\nexport function choreographyEndedByEnvironment(input: {\n readonly stoppedBecause: string;\n readonly iterations: ReadonlyArray<{ readonly children: ReadonlyArray<{ readonly failure?: string }> }>;\n}): boolean {\n if (input.stoppedBecause !== 'ALL_CHILDREN_FAILED') return false;\n const fatal = input.iterations[input.iterations.length - 1];\n if (!fatal || fatal.children.length === 0) return false;\n return fatal.children.every((child) => child.failure !== undefined && isEnvironmentalChoreographyChildFailure(child.failure));\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"start-companion-application.service.d.ts","sourceRoot":"","sources":["../../../../../src/core/runtime/services/start-companion-application.service.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,kBAAkB,EAClB,KAAK,oBAAoB,EACzB,KAAK,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YAC9E,sBAAsB;CAiBrC"}
1
+ {"version":3,"file":"start-companion-application.service.d.ts","sourceRoot":"","sources":["../../../../../src/core/runtime/services/start-companion-application.service.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,kBAAkB,EAClB,KAAK,oBAAoB,EACzB,KAAK,qCAAqC,EAE1C,wBAAwB,EACxB,cAAc,EACd,gCAAgC,EAChC,YAAY,EACZ,+BAA+B,EAC/B,uCAAuC,EACvC,2BAA2B,EAC3B,mCAAmC,EACnC,0BAA0B,EAC1B,wCAAwC,EACxC,+BAA+B,EAC/B,qCAAqC,EACrC,yCAAyC,EACzC,2DAA2D,EAK3D,KAAK,gCAAgC,EACrC,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,aAAa,EAClB,KAAK,yCAAyC,EAE/C,MAAM,4BAA4B,CAAC;AAmBpC,OAAO,EAEL,KAAK,mCAAmC,EACzC,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAIlF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mDAAmD,CAAC;AAGtG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4DAA4D,CAAC;AAE1G,OAAO,EAAE,0CAA0C,EAAE,MAAM,6EAA6E,CAAC;AAIzI,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,4FAA4F,CAAC;AAE7J,OAAO,EAAE,6CAA6C,EAAE,MAAM,iFAAiF,CAAC;AAChJ,OAAO,EAAE,2CAA2C,EAAE,MAAM,+EAA+E,CAAC;AAC5I,OAAO,EAAE,uCAAuC,EAAE,MAAM,2EAA2E,CAAC;AACpI,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,+EAA+E,CAAC;AAE9I,OAAO,EAAE,kCAAkC,EAAE,MAAM,mDAAmD,CAAC;AACvG,OAAO,KAAK,EAAE,gBAAgB,EAAE,M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,OAAO;IAIvC,aAAa,IAAI,MAAM,GAAG,IAAI;IAIrC;;;;;;;;;OASG;IACH,OAAO,CAAC,gCAAgC;IAkDxC,OAAO,CAAC,8BAA8B;IAWtC;;;;;;OAMG;IACH,OAAO,CAAC,kCAAkC;IAoC1C,4FAA4F;YAC9E,sBAAsB;CAiBrC"}
@@ -14,10 +14,10 @@ var StartCompanionApplicationService_1;
14
14
  import { chmodSync, mkdirSync, renameSync, unlinkSync, writeFileSync } from 'node:fs';
15
15
  import { dirname, join } from 'node:path';
16
16
  import { COMPANION_MODEL_APPLICABILITY_PREFERENCE } from '../companion-model-preference.js';
17
- import { resolveCompanionLanguageModelRoute } from '../companion-language-model-route.js';
17
+ import { createLanguageModelRunHeartbeatReporter, resolveCompanionLanguageModelRoute } from '../companion-language-model-route.js';
18
18
  import { injectable, inject, optional } from 'inversify';
19
19
  import { I18nBackendService, SAAS_SERVICE_TYPES, HttpServerBackendService, MongoDBService, PostgreSQLDatabaseBackendService, RedisService, FileStorageRouterBackendService, ExternalProvidersRegistryBackendService, ObservabilityBackendService, WorkerShutdownManagerBackendService, FlowsActorsRegistryService, ControllersRegistryHandlerBackendService, ResourcesRegistryBackendService, ServicesRegistryHandlerBackendService, RepositoriesRegistryHandlerBackendService, ResourceOperationCustomImplementationRegistryBackendService, mergeBackendDomainModules, projectCaughtErrorLogFields, projectRetriedAttemptErrorLogFields, resolveBackendProviderRegistry, describeCaughtError, } from '@wildo-ai/saas-backend-lib';
20
- import { CoreResourceType, buildSharedSaaSModulesRegistry, ENGINE_RUNTIME_REQUIRED_RESOURCE_TYPES, } from '@wildo-ai/saas-models';
20
+ import { CoreResourceType, buildSharedSaaSModulesRegistry, ENGINE_RUNTIME_REQUIRED_RESOURCE_TYPES, MODEL_SPEND_GATE_RESOURCE_TYPES, } from '@wildo-ai/saas-models';
21
21
  import { registerFeatureSpecifications, registerRoleSpecifications, } from '@wildo-ai/saas-specifications';
22
22
  import { PLATFORM_SHARED_SERVICE_TYPES, } from '@wildo-ai/platform-shared-lib';
23
23
  import { WILDO_PLATFORM_ORGANIZATION_TYPES } from '@wildo-ai/platform-config-lib';
@@ -697,7 +697,8 @@ let StartCompanionApplicationService = class StartCompanionApplicationService {
697
697
  * every surface of the companion for a cost concern, and the error is what makes the cost visible.
698
698
  */
699
699
  installLanguageModelRoute() {
700
- const route = resolveCompanionLanguageModelRoute();
700
+ // The heartbeat that holds a supervisor restart while a routed call's agent is running (#3472, 2026-11-15).
701
+ const route = resolveCompanionLanguageModelRoute(process.env, createLanguageModelRunHeartbeatReporter(this.companionContext.saasRoot, (message, error) => this.logger.warn(message, { reason: describeCaughtError(error) })));
701
702
  if (route === undefined) {
702
703
  this.logger.info('Language-model calls stay on the API keys (WILDO_LANGUAGE_MODEL_TRANSPORT=api)');
703
704
  return;
@@ -1042,6 +1043,18 @@ let StartCompanionApplicationService = class StartCompanionApplicationService {
1042
1043
  CoreResourceType.USER_FLOW_ACTOR_EXECUTIONS,
1043
1044
  CoreResourceType.ORGANIZATION_FLOW_ACTOR_EXECUTIONS,
1044
1045
  CoreResourceType.APPLICATION_FLOW_ACTOR_EXECUTIONS,
1046
+ /*
1047
+ * The MODEL-SPEND GATE's inputs (#3902). Every model call this process makes for a signed-in
1048
+ * person (a workbench playbook run, a creation-assistant turn) is admitted by the engine's token
1049
+ * budget gate, which resolves the payer's allowance from a scope-features ledger and charges a
1050
+ * consumption counter, both through the services registry. Without these services the ledger
1051
+ * read answers `service_not_found`, the gate fails closed with `allowance_unverifiable`, and
1052
+ * every such run answers 503 before reaching the model. Measured on the workbench: a
1053
+ * `bottom_up__domain-plan` run started as an organization owner, refused on its `userFeatures`
1054
+ * read. The set is the engine's own, so a counter the gate gains later reaches this list with it.
1055
+ * Services only: none of these is mounted as a controller here.
1056
+ */
1057
+ ...MODEL_SPEND_GATE_RESOURCE_TYPES,
1045
1058
  ];
1046
1059
  /**
1047
1060
  * The engine manual controllers the companion mounts because it SERVES A FRONTEND.