@wildo-ai/wildo-cli 1.1.12 → 1.1.14

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 (548) hide show
  1. package/dist/src/commands/build/approve.command.d.ts +4 -0
  2. package/dist/src/commands/build/approve.command.d.ts.map +1 -1
  3. package/dist/src/commands/build/approve.command.js +14 -3
  4. package/dist/src/commands/build/approve.command.js.map +1 -1
  5. package/dist/src/commands/build/close.command.d.ts +4 -0
  6. package/dist/src/commands/build/close.command.d.ts.map +1 -1
  7. package/dist/src/commands/build/close.command.js +17 -3
  8. package/dist/src/commands/build/close.command.js.map +1 -1
  9. package/dist/src/commands/config/sync.command.d.ts.map +1 -1
  10. package/dist/src/commands/config/sync.command.js +22 -1
  11. package/dist/src/commands/config/sync.command.js.map +1 -1
  12. package/dist/src/commands/context/journey.command.d.ts.map +1 -1
  13. package/dist/src/commands/context/journey.command.js +8 -0
  14. package/dist/src/commands/context/journey.command.js.map +1 -1
  15. package/dist/src/commands/creation/drive.command.d.ts.map +1 -1
  16. package/dist/src/commands/creation/drive.command.js +2 -0
  17. package/dist/src/commands/creation/drive.command.js.map +1 -1
  18. package/dist/src/commands/creation/feed.command.d.ts.map +1 -1
  19. package/dist/src/commands/creation/feed.command.js +6 -3
  20. package/dist/src/commands/creation/feed.command.js.map +1 -1
  21. package/dist/src/commands/fwk/publish-all.command.d.ts +13 -0
  22. package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
  23. package/dist/src/commands/fwk/publish-all.command.js +64 -2
  24. package/dist/src/commands/fwk/publish-all.command.js.map +1 -1
  25. package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
  26. package/dist/src/commands/fwk/publish-docker.command.js +16 -1
  27. package/dist/src/commands/fwk/publish-docker.command.js.map +1 -1
  28. package/dist/src/commands/fwk/registry-host.command.d.ts +19 -1
  29. package/dist/src/commands/fwk/registry-host.command.d.ts.map +1 -1
  30. package/dist/src/commands/fwk/registry-host.command.js +78 -3
  31. package/dist/src/commands/fwk/registry-host.command.js.map +1 -1
  32. package/dist/src/commands/init.command.d.ts +14 -0
  33. package/dist/src/commands/init.command.d.ts.map +1 -1
  34. package/dist/src/commands/init.command.js +29 -3
  35. package/dist/src/commands/init.command.js.map +1 -1
  36. package/dist/src/commands/local/dev.command.d.ts +68 -0
  37. package/dist/src/commands/local/dev.command.d.ts.map +1 -1
  38. package/dist/src/commands/local/dev.command.js +216 -8
  39. package/dist/src/commands/local/dev.command.js.map +1 -1
  40. package/dist/src/commands/local/doctor.command.d.ts +22 -9
  41. package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
  42. package/dist/src/commands/local/doctor.command.js +45 -42
  43. package/dist/src/commands/local/doctor.command.js.map +1 -1
  44. package/dist/src/commands/providers/connect.command.d.ts.map +1 -1
  45. package/dist/src/commands/providers/connect.command.js +11 -1
  46. package/dist/src/commands/providers/connect.command.js.map +1 -1
  47. package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
  48. package/dist/src/commands/registry/repair-lockfile.command.js +1 -0
  49. package/dist/src/commands/registry/repair-lockfile.command.js.map +1 -1
  50. package/dist/src/commands/registry/update.command.d.ts.map +1 -1
  51. package/dist/src/commands/registry/update.command.js +1 -0
  52. package/dist/src/commands/registry/update.command.js.map +1 -1
  53. package/dist/src/commands/seal/currency.command.d.ts +13 -0
  54. package/dist/src/commands/seal/currency.command.d.ts.map +1 -0
  55. package/dist/src/commands/seal/currency.command.js +52 -0
  56. package/dist/src/commands/seal/currency.command.js.map +1 -0
  57. package/dist/src/commands/seal/seal-admin-door.utils.d.ts.map +1 -1
  58. package/dist/src/commands/seal/seal-admin-door.utils.js +2 -0
  59. package/dist/src/commands/seal/seal-admin-door.utils.js.map +1 -1
  60. package/dist/src/commands/seal/verify.command.d.ts +23 -0
  61. package/dist/src/commands/seal/verify.command.d.ts.map +1 -1
  62. package/dist/src/commands/seal/verify.command.js +88 -3
  63. package/dist/src/commands/seal/verify.command.js.map +1 -1
  64. package/dist/src/services/application/content-guardrail-classifier.service.d.ts +19 -0
  65. package/dist/src/services/application/content-guardrail-classifier.service.d.ts.map +1 -1
  66. package/dist/src/services/application/content-guardrail-classifier.service.js +75 -11
  67. package/dist/src/services/application/content-guardrail-classifier.service.js.map +1 -1
  68. package/dist/src/services/application/local-provider-doubles.service.d.ts +98 -0
  69. package/dist/src/services/application/local-provider-doubles.service.d.ts.map +1 -0
  70. package/dist/src/services/application/local-provider-doubles.service.js +214 -0
  71. package/dist/src/services/application/local-provider-doubles.service.js.map +1 -0
  72. package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
  73. package/dist/src/services/application/provider-runtime-sync.service.js +26 -1
  74. package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
  75. package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
  76. package/dist/src/services/application/saas-skeleton.service.js +24 -2
  77. package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
  78. package/dist/src/services/application/system-of-record-simulators.service.d.ts +21 -2
  79. package/dist/src/services/application/system-of-record-simulators.service.d.ts.map +1 -1
  80. package/dist/src/services/application/system-of-record-simulators.service.js +21 -12
  81. package/dist/src/services/application/system-of-record-simulators.service.js.map +1 -1
  82. package/dist/src/services/companion/build-console.service.d.ts +39 -2
  83. package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
  84. package/dist/src/services/companion/build-console.service.js +54 -4
  85. package/dist/src/services/companion/build-console.service.js.map +1 -1
  86. package/dist/src/services/companion/creation-console.service.d.ts +6 -1
  87. package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
  88. package/dist/src/services/companion/creation-console.service.js +14 -2
  89. package/dist/src/services/companion/creation-console.service.js.map +1 -1
  90. package/dist/src/services/companion/creation-drive.service.d.ts +32 -2
  91. package/dist/src/services/companion/creation-drive.service.d.ts.map +1 -1
  92. package/dist/src/services/companion/creation-drive.service.js +66 -6
  93. package/dist/src/services/companion/creation-drive.service.js.map +1 -1
  94. package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -1
  95. package/dist/src/services/credentials/composed-provider-catalogue.js +14 -2
  96. package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
  97. package/dist/src/services/credentials/credentials.schemas.d.ts +6 -0
  98. package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
  99. package/dist/src/services/credentials/credentials.schemas.js +7 -1
  100. package/dist/src/services/credentials/credentials.schemas.js.map +1 -1
  101. package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
  102. package/dist/src/services/credentials/provider-env-vars.utils.js +11 -3
  103. package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
  104. package/dist/src/services/credentials/secret-requirements.service.d.ts +2 -1
  105. package/dist/src/services/credentials/secret-requirements.service.d.ts.map +1 -1
  106. package/dist/src/services/credentials/secret-requirements.service.js +17 -1
  107. package/dist/src/services/credentials/secret-requirements.service.js.map +1 -1
  108. package/dist/src/services/data-services/data-services.schemas.d.ts +9 -0
  109. package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -1
  110. package/dist/src/services/data-services/data-services.schemas.js +9 -0
  111. package/dist/src/services/data-services/data-services.schemas.js.map +1 -1
  112. package/dist/src/services/deployment/application-runtime-environment.d.ts.map +1 -1
  113. package/dist/src/services/deployment/application-runtime-environment.js +3 -13
  114. package/dist/src/services/deployment/application-runtime-environment.js.map +1 -1
  115. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
  116. package/dist/src/services/deployment/docker/docker-compose-generator.service.js +15 -4
  117. package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
  118. package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts +1 -1
  119. package/dist/src/services/deployment/host-toolchain-readiness.service.js +1 -1
  120. package/dist/src/services/deployment/host-toolchain-readiness.service.js.map +1 -1
  121. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
  122. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +3 -1
  123. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
  124. package/dist/src/services/deployment/local-dev-session-lease.service.d.ts.map +1 -1
  125. package/dist/src/services/deployment/local-dev-session-lease.service.js +22 -1
  126. package/dist/src/services/deployment/local-dev-session-lease.service.js.map +1 -1
  127. package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
  128. package/dist/src/services/deployment/local-precondition-checks.service.js +4 -2
  129. package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
  130. package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
  131. package/dist/src/services/environment/authored-infra-config.utils.js +1 -0
  132. package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
  133. package/dist/src/services/environment/authored-infra-member-authority.d.ts.map +1 -1
  134. package/dist/src/services/environment/authored-infra-member-authority.js +5 -0
  135. package/dist/src/services/environment/authored-infra-member-authority.js.map +1 -1
  136. package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
  137. package/dist/src/services/environment/env-configuration-generator.service.js +14 -6
  138. package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
  139. package/dist/src/services/environment/env-vars-builder.service.d.ts +6 -0
  140. package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
  141. package/dist/src/services/environment/env-vars-builder.service.js +24 -1
  142. package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
  143. package/dist/src/services/environment/environment-hydration.utils.d.ts.map +1 -1
  144. package/dist/src/services/environment/environment-hydration.utils.js +1 -0
  145. package/dist/src/services/environment/environment-hydration.utils.js.map +1 -1
  146. package/dist/src/services/environment/environment-service-profile.utils.d.ts +8 -1
  147. package/dist/src/services/environment/environment-service-profile.utils.d.ts.map +1 -1
  148. package/dist/src/services/environment/environment-service-profile.utils.js +14 -1
  149. package/dist/src/services/environment/environment-service-profile.utils.js.map +1 -1
  150. package/dist/src/services/environment/environment.schemas.d.ts +7 -1
  151. package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
  152. package/dist/src/services/environment/environment.schemas.js.map +1 -1
  153. package/dist/src/services/environment/runtime-bootstrap.service.d.ts +2 -0
  154. package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -1
  155. package/dist/src/services/environment/runtime-bootstrap.service.js +4 -0
  156. package/dist/src/services/environment/runtime-bootstrap.service.js.map +1 -1
  157. package/dist/src/services/framework/framework-docker-publish.service.d.ts +102 -0
  158. package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
  159. package/dist/src/services/framework/framework-docker-publish.service.js +204 -25
  160. package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
  161. package/dist/src/services/framework/github-actions-annotation.d.ts +19 -0
  162. package/dist/src/services/framework/github-actions-annotation.d.ts.map +1 -0
  163. package/dist/src/services/framework/github-actions-annotation.js +25 -0
  164. package/dist/src/services/framework/github-actions-annotation.js.map +1 -0
  165. package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts +43 -0
  166. package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts.map +1 -0
  167. package/dist/src/services/framework/registry-host/registry-host-upgrade.js +117 -0
  168. package/dist/src/services/framework/registry-host/registry-host-upgrade.js.map +1 -0
  169. package/dist/src/services/framework/registry-host/registry-host.service.d.ts +1 -1
  170. package/dist/src/services/framework/registry-host/registry-host.service.d.ts.map +1 -1
  171. package/dist/src/services/framework/registry-host/registry-host.service.js +2 -0
  172. package/dist/src/services/framework/registry-host/registry-host.service.js.map +1 -1
  173. package/dist/src/services/registry/installed-file-state.utils.d.ts +8 -0
  174. package/dist/src/services/registry/installed-file-state.utils.d.ts.map +1 -1
  175. package/dist/src/services/registry/installed-file-state.utils.js +9 -1
  176. package/dist/src/services/registry/installed-file-state.utils.js.map +1 -1
  177. package/dist/src/services/registry/module-install.service.d.ts.map +1 -1
  178. package/dist/src/services/registry/module-install.service.js +1 -0
  179. package/dist/src/services/registry/module-install.service.js.map +1 -1
  180. package/dist/src/services/registry/provider-connect.service.d.ts +57 -1
  181. package/dist/src/services/registry/provider-connect.service.d.ts.map +1 -1
  182. package/dist/src/services/registry/provider-connect.service.js +63 -2
  183. package/dist/src/services/registry/provider-connect.service.js.map +1 -1
  184. package/dist/src/services/registry/provider-module-scaffold.service.d.ts.map +1 -1
  185. package/dist/src/services/registry/provider-module-scaffold.service.js +4 -0
  186. package/dist/src/services/registry/provider-module-scaffold.service.js.map +1 -1
  187. package/dist/tsconfig.build.tsbuildinfo +1 -1
  188. package/framework-root-package.json +3 -3
  189. package/package.json +22 -22
  190. package/scripts/app-dependency-alignment/propagated-engine-overrides.json +2 -2
  191. package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +17 -2
  192. package/templates/infra/registry-host/docker-compose.yml +9 -2
  193. package/templates/infra/registry-host/upgrade-image.sh +108 -0
  194. package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_ready/labels.fr.ts +22 -0
  195. package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_received/labels.fr.ts +23 -0
  196. package/templates/saas/i18n/email/resources/dataSubjectRequests/update.users-custom_extended/labels.fr.ts +23 -0
  197. package/templates/saas/i18n/email/resources/organizationSsoConfig/repairUnreadableConfiguration.organization-users/labels.fr.ts +23 -0
  198. package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.ts +28 -0
  199. package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.ts +28 -0
  200. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.en.ts +2 -1
  201. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.fr.ts +2 -1
  202. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.ts +6 -1
  203. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.ts +6 -1
  204. package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.en.ts +40 -0
  205. package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.fr.ts +40 -0
  206. package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.ts +2 -1
  207. package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.ts +2 -1
  208. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.en.ts +2 -1
  209. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.fr.ts +2 -1
  210. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.ts +2 -1
  211. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.ts +2 -1
  212. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.en.ts +3 -1
  213. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.fr.ts +3 -1
  214. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.en.ts +2 -1
  215. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.fr.ts +2 -1
  216. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.en.ts +3 -1
  217. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.fr.ts +4 -2
  218. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.en.ts +18 -1
  219. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.fr.ts +18 -1
  220. package/templates/saas/i18n/engine/resources/actorSystemExecutions.en.ts +10 -82
  221. package/templates/saas/i18n/engine/resources/actorSystemExecutions.fr.ts +0 -72
  222. package/templates/saas/i18n/engine/resources/actorTasks.en.ts +0 -33
  223. package/templates/saas/i18n/engine/resources/actorTasks.fr.ts +0 -33
  224. package/templates/saas/i18n/engine/resources/agentBehaviorReports.en.ts +0 -108
  225. package/templates/saas/i18n/engine/resources/agentBehaviorReports.fr.ts +0 -108
  226. package/templates/saas/i18n/engine/resources/agentOperationRecords.en.ts +8 -24
  227. package/templates/saas/i18n/engine/resources/agentOperationRecords.fr.ts +10 -26
  228. package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.en.ts +0 -12
  229. package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.fr.ts +0 -12
  230. package/templates/saas/i18n/engine/resources/anonymous_users.en.ts +8 -74
  231. package/templates/saas/i18n/engine/resources/anonymous_users.fr.ts +0 -66
  232. package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.en.ts +3 -21
  233. package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.fr.ts +0 -18
  234. package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.en.ts +3 -33
  235. package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.fr.ts +0 -30
  236. package/templates/saas/i18n/engine/resources/applicationAccessGrants.en.ts +13 -55
  237. package/templates/saas/i18n/engine/resources/applicationAccessGrants.fr.ts +0 -42
  238. package/templates/saas/i18n/engine/resources/applicationAgentPolicies.en.ts +8 -24
  239. package/templates/saas/i18n/engine/resources/applicationAgentPolicies.fr.ts +8 -24
  240. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.en.ts +0 -27
  241. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.fr.ts +0 -27
  242. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.en.ts +13 -43
  243. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.fr.ts +0 -30
  244. package/templates/saas/i18n/engine/resources/applicationApiKeys.en.ts +2 -70
  245. package/templates/saas/i18n/engine/resources/applicationApiKeys.fr.ts +2 -70
  246. package/templates/saas/i18n/engine/resources/applicationAuditLogs.en.ts +41 -94
  247. package/templates/saas/i18n/engine/resources/applicationAuditLogs.fr.ts +41 -94
  248. package/templates/saas/i18n/engine/resources/applicationDataKeys.en.ts +2 -22
  249. package/templates/saas/i18n/engine/resources/applicationDataKeys.fr.ts +2 -22
  250. package/templates/saas/i18n/engine/resources/applicationFeatures.en.ts +0 -24
  251. package/templates/saas/i18n/engine/resources/applicationFeatures.fr.ts +0 -24
  252. package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.en.ts +25 -160
  253. package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.fr.ts +25 -160
  254. package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.en.ts +6 -28
  255. package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.fr.ts +8 -30
  256. package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.en.ts +92 -23
  257. package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.fr.ts +95 -26
  258. package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.en.ts +1 -25
  259. package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.fr.ts +4 -28
  260. package/templates/saas/i18n/engine/resources/applicationMetadata.en.ts +0 -18
  261. package/templates/saas/i18n/engine/resources/applicationMetadata.fr.ts +0 -18
  262. package/templates/saas/i18n/engine/resources/applicationOAuthClients.en.ts +2 -58
  263. package/templates/saas/i18n/engine/resources/applicationOAuthClients.fr.ts +2 -58
  264. package/templates/saas/i18n/engine/resources/applicationProviderCredentials.en.ts +168 -0
  265. package/templates/saas/i18n/engine/resources/applicationProviderCredentials.fr.ts +168 -0
  266. package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.en.ts +0 -30
  267. package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.fr.ts +0 -30
  268. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.en.ts +3 -42
  269. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.fr.ts +5 -44
  270. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.en.ts +3 -30
  271. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.fr.ts +0 -27
  272. package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.en.ts +0 -24
  273. package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.fr.ts +0 -24
  274. package/templates/saas/i18n/engine/resources/applicationSsoConfig.en.ts +113 -61
  275. package/templates/saas/i18n/engine/resources/applicationSsoConfig.fr.ts +113 -61
  276. package/templates/saas/i18n/engine/resources/applicationSsoConnections.en.ts +0 -138
  277. package/templates/saas/i18n/engine/resources/applicationSsoConnections.fr.ts +0 -138
  278. package/templates/saas/i18n/engine/resources/applicationVersions.en.ts +3 -27
  279. package/templates/saas/i18n/engine/resources/applicationVersions.fr.ts +0 -24
  280. package/templates/saas/i18n/engine/resources/applicationWebhookConfig.en.ts +5 -54
  281. package/templates/saas/i18n/engine/resources/applicationWebhookConfig.fr.ts +5 -54
  282. package/templates/saas/i18n/engine/resources/applications.en.ts +39 -2177
  283. package/templates/saas/i18n/engine/resources/applications.fr.ts +39 -2177
  284. package/templates/saas/i18n/engine/resources/approvalSeals.en.ts +38 -31
  285. package/templates/saas/i18n/engine/resources/approvalSeals.fr.ts +38 -31
  286. package/templates/saas/i18n/engine/resources/auditLogs.en.ts +78 -111
  287. package/templates/saas/i18n/engine/resources/auditLogs.fr.ts +78 -111
  288. package/templates/saas/i18n/engine/resources/billingEffectOutbox.en.ts +2 -4
  289. package/templates/saas/i18n/engine/resources/billingEffectOutbox.fr.ts +2 -4
  290. package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.en.ts +8 -6
  291. package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.fr.ts +8 -6
  292. package/templates/saas/i18n/engine/resources/chatConversations.en.ts +0 -18
  293. package/templates/saas/i18n/engine/resources/chatConversations.fr.ts +0 -18
  294. package/templates/saas/i18n/engine/resources/chatIdentityLinks.en.ts +0 -44
  295. package/templates/saas/i18n/engine/resources/chatIdentityLinks.fr.ts +0 -44
  296. package/templates/saas/i18n/engine/resources/consumableTokens.en.ts +4 -43
  297. package/templates/saas/i18n/engine/resources/consumableTokens.fr.ts +4 -43
  298. package/templates/saas/i18n/engine/resources/conversationMessages.en.ts +16 -27
  299. package/templates/saas/i18n/engine/resources/conversationMessages.fr.ts +16 -27
  300. package/templates/saas/i18n/engine/resources/conversationReplyTokens.en.ts +0 -27
  301. package/templates/saas/i18n/engine/resources/conversationReplyTokens.fr.ts +0 -27
  302. package/templates/saas/i18n/engine/resources/conversationThreads.en.ts +0 -27
  303. package/templates/saas/i18n/engine/resources/conversationThreads.fr.ts +0 -27
  304. package/templates/saas/i18n/engine/resources/dataSeedRuns.en.ts +22 -17
  305. package/templates/saas/i18n/engine/resources/dataSeedRuns.fr.ts +22 -17
  306. package/templates/saas/i18n/engine/resources/dataSubjectRequests.en.ts +410 -0
  307. package/templates/saas/i18n/engine/resources/dataSubjectRequests.fr.ts +410 -0
  308. package/templates/saas/i18n/engine/resources/etlPipelineStates.en.ts +128 -146
  309. package/templates/saas/i18n/engine/resources/etlPipelineStates.fr.ts +0 -18
  310. package/templates/saas/i18n/engine/resources/evaluationDatasetExports.en.ts +13 -43
  311. package/templates/saas/i18n/engine/resources/evaluationDatasetExports.fr.ts +0 -30
  312. package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.en.ts +0 -12
  313. package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.fr.ts +0 -12
  314. package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.en.ts +0 -21
  315. package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.fr.ts +0 -21
  316. package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.en.ts +24 -45
  317. package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.fr.ts +0 -21
  318. package/templates/saas/i18n/engine/resources/externalDataPendingReferences.en.ts +0 -24
  319. package/templates/saas/i18n/engine/resources/externalDataPendingReferences.fr.ts +0 -24
  320. package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.en.ts +0 -21
  321. package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.fr.ts +0 -21
  322. package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.en.ts +8 -14
  323. package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.fr.ts +0 -6
  324. package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.en.ts +0 -24
  325. package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.fr.ts +0 -24
  326. package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.en.ts +150 -174
  327. package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.fr.ts +0 -24
  328. package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.en.ts +12 -33
  329. package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.fr.ts +0 -21
  330. package/templates/saas/i18n/engine/resources/externalEffectReservations.en.ts +147 -0
  331. package/templates/saas/i18n/engine/resources/externalEffectReservations.fr.ts +147 -0
  332. package/templates/saas/i18n/engine/resources/files.en.ts +0 -39
  333. package/templates/saas/i18n/engine/resources/files.fr.ts +0 -39
  334. package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.en.ts +0 -18
  335. package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.fr.ts +0 -18
  336. package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.en.ts +115 -0
  337. package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.fr.ts +115 -0
  338. package/templates/saas/i18n/engine/resources/inboundAddressTombstones.en.ts +0 -27
  339. package/templates/saas/i18n/engine/resources/inboundAddressTombstones.fr.ts +0 -27
  340. package/templates/saas/i18n/engine/resources/inboundContacts.en.ts +3 -30
  341. package/templates/saas/i18n/engine/resources/inboundContacts.fr.ts +0 -27
  342. package/templates/saas/i18n/engine/resources/inboundEmails.en.ts +0 -27
  343. package/templates/saas/i18n/engine/resources/inboundEmails.fr.ts +0 -27
  344. package/templates/saas/i18n/engine/resources/jobExecutions.en.ts +11 -25
  345. package/templates/saas/i18n/engine/resources/jobExecutions.fr.ts +11 -25
  346. package/templates/saas/i18n/engine/resources/jobPayloadStorage.en.ts +3 -30
  347. package/templates/saas/i18n/engine/resources/jobPayloadStorage.fr.ts +0 -27
  348. package/templates/saas/i18n/engine/resources/legalHolds.en.ts +0 -88
  349. package/templates/saas/i18n/engine/resources/legalHolds.fr.ts +0 -88
  350. package/templates/saas/i18n/engine/resources/modelCallAttributions.en.ts +16 -40
  351. package/templates/saas/i18n/engine/resources/modelCallAttributions.fr.ts +0 -24
  352. package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.en.ts +13 -37
  353. package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.fr.ts +0 -24
  354. package/templates/saas/i18n/engine/resources/oauthConsentGrants.en.ts +10 -40
  355. package/templates/saas/i18n/engine/resources/oauthConsentGrants.fr.ts +0 -30
  356. package/templates/saas/i18n/engine/resources/operationApprovalRequests.en.ts +120 -60
  357. package/templates/saas/i18n/engine/resources/operationApprovalRequests.fr.ts +120 -60
  358. package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.en.ts +3 -21
  359. package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.fr.ts +0 -18
  360. package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.en.ts +3 -33
  361. package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.fr.ts +0 -30
  362. package/templates/saas/i18n/engine/resources/organizationAgentPolicies.en.ts +0 -27
  363. package/templates/saas/i18n/engine/resources/organizationAgentPolicies.fr.ts +0 -27
  364. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.en.ts +0 -27
  365. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.fr.ts +0 -27
  366. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.en.ts +13 -43
  367. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.fr.ts +0 -30
  368. package/templates/saas/i18n/engine/resources/organizationApiKeys.en.ts +2 -79
  369. package/templates/saas/i18n/engine/resources/organizationApiKeys.fr.ts +2 -79
  370. package/templates/saas/i18n/engine/resources/organizationBillingAccounts.en.ts +0 -549
  371. package/templates/saas/i18n/engine/resources/organizationBillingAccounts.fr.ts +0 -549
  372. package/templates/saas/i18n/engine/resources/organizationChatSettings.en.ts +0 -27
  373. package/templates/saas/i18n/engine/resources/organizationChatSettings.fr.ts +0 -27
  374. package/templates/saas/i18n/engine/resources/organizationCreditPools.en.ts +13 -18
  375. package/templates/saas/i18n/engine/resources/organizationCreditPools.fr.ts +13 -18
  376. package/templates/saas/i18n/engine/resources/organizationCustomDomains.en.ts +195 -0
  377. package/templates/saas/i18n/engine/resources/organizationCustomDomains.fr.ts +195 -0
  378. package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.en.ts +153 -0
  379. package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.fr.ts +153 -0
  380. package/templates/saas/i18n/engine/resources/organizationEmailDomains.en.ts +0 -39
  381. package/templates/saas/i18n/engine/resources/organizationEmailDomains.fr.ts +0 -39
  382. package/templates/saas/i18n/engine/resources/organizationFeatures.en.ts +0 -34
  383. package/templates/saas/i18n/engine/resources/organizationFeatures.fr.ts +0 -34
  384. package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.en.ts +25 -160
  385. package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.fr.ts +25 -160
  386. package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.en.ts +6 -28
  387. package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.fr.ts +8 -30
  388. package/templates/saas/i18n/engine/resources/organizationGuidanceState.en.ts +3 -18
  389. package/templates/saas/i18n/engine/resources/organizationGuidanceState.fr.ts +0 -15
  390. package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.en.ts +95 -26
  391. package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.fr.ts +95 -26
  392. package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.en.ts +14 -45
  393. package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.fr.ts +14 -45
  394. package/templates/saas/i18n/engine/resources/organizationLifecycleState.en.ts +1 -17
  395. package/templates/saas/i18n/engine/resources/organizationLifecycleState.fr.ts +1 -17
  396. package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.en.ts +2 -26
  397. package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.fr.ts +4 -28
  398. package/templates/saas/i18n/engine/resources/organizationMembers.en.ts +2 -95
  399. package/templates/saas/i18n/engine/resources/organizationMembers.fr.ts +2 -95
  400. package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.en.ts +0 -27
  401. package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.fr.ts +0 -27
  402. package/templates/saas/i18n/engine/resources/organizationNotificationBadges.en.ts +3 -36
  403. package/templates/saas/i18n/engine/resources/organizationNotificationBadges.fr.ts +0 -33
  404. package/templates/saas/i18n/engine/resources/organizationNotifications.en.ts +0 -12
  405. package/templates/saas/i18n/engine/resources/organizationNotifications.fr.ts +0 -12
  406. package/templates/saas/i18n/engine/resources/organizationOAuthClients.en.ts +2 -67
  407. package/templates/saas/i18n/engine/resources/organizationOAuthClients.fr.ts +2 -67
  408. package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.en.ts +0 -9
  409. package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.fr.ts +0 -9
  410. package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.en.ts +0 -27
  411. package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.fr.ts +0 -27
  412. package/templates/saas/i18n/engine/resources/organizationPreferences.en.ts +0 -37
  413. package/templates/saas/i18n/engine/resources/organizationPreferences.fr.ts +0 -37
  414. package/templates/saas/i18n/engine/resources/organizationProfiles.en.ts +0 -37
  415. package/templates/saas/i18n/engine/resources/organizationProfiles.fr.ts +0 -37
  416. package/templates/saas/i18n/engine/resources/organizationProgressionState.en.ts +1 -17
  417. package/templates/saas/i18n/engine/resources/organizationProgressionState.fr.ts +1 -17
  418. package/templates/saas/i18n/engine/resources/organizationProviderCredentials.en.ts +0 -58
  419. package/templates/saas/i18n/engine/resources/organizationProviderCredentials.fr.ts +0 -58
  420. package/templates/saas/i18n/engine/resources/organizationRelationships.en.ts +0 -128
  421. package/templates/saas/i18n/engine/resources/organizationRelationships.fr.ts +0 -128
  422. package/templates/saas/i18n/engine/resources/organizationRepresentations.en.ts +0 -83
  423. package/templates/saas/i18n/engine/resources/organizationRepresentations.fr.ts +0 -83
  424. package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.en.ts +0 -43
  425. package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.fr.ts +0 -43
  426. package/templates/saas/i18n/engine/resources/organizationScimTokens.en.ts +5 -76
  427. package/templates/saas/i18n/engine/resources/organizationScimTokens.fr.ts +5 -76
  428. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.en.ts +4 -43
  429. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.fr.ts +6 -45
  430. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.en.ts +3 -30
  431. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.fr.ts +0 -27
  432. package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.en.ts +0 -37
  433. package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.fr.ts +0 -37
  434. package/templates/saas/i18n/engine/resources/organizationSsoConfig.en.ts +113 -74
  435. package/templates/saas/i18n/engine/resources/organizationSsoConfig.fr.ts +113 -74
  436. package/templates/saas/i18n/engine/resources/organizationSsoConnections.en.ts +0 -148
  437. package/templates/saas/i18n/engine/resources/organizationSsoConnections.fr.ts +0 -148
  438. package/templates/saas/i18n/engine/resources/organizationSubscriptions.en.ts +40 -78
  439. package/templates/saas/i18n/engine/resources/organizationSubscriptions.fr.ts +42 -80
  440. package/templates/saas/i18n/engine/resources/organizationUnitMembers.en.ts +2 -50
  441. package/templates/saas/i18n/engine/resources/organizationUnitMembers.fr.ts +2 -50
  442. package/templates/saas/i18n/engine/resources/organizationUnits.en.ts +0 -49
  443. package/templates/saas/i18n/engine/resources/organizationUnits.fr.ts +0 -49
  444. package/templates/saas/i18n/engine/resources/organizationUsageRecords.en.ts +13 -37
  445. package/templates/saas/i18n/engine/resources/organizationUsageRecords.fr.ts +13 -37
  446. package/templates/saas/i18n/engine/resources/organizationWebhookConfig.en.ts +5 -67
  447. package/templates/saas/i18n/engine/resources/organizationWebhookConfig.fr.ts +5 -67
  448. package/templates/saas/i18n/engine/resources/organizations.en.ts +34 -637
  449. package/templates/saas/i18n/engine/resources/organizations.fr.ts +32 -635
  450. package/templates/saas/i18n/engine/resources/platformAccessGrants.en.ts +0 -91
  451. package/templates/saas/i18n/engine/resources/platformAccessGrants.fr.ts +0 -91
  452. package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.en.ts +0 -24
  453. package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.fr.ts +0 -24
  454. package/templates/saas/i18n/engine/resources/prices.en.ts +47 -108
  455. package/templates/saas/i18n/engine/resources/prices.fr.ts +48 -109
  456. package/templates/saas/i18n/engine/resources/products.en.ts +24 -68
  457. package/templates/saas/i18n/engine/resources/products.fr.ts +24 -68
  458. package/templates/saas/i18n/engine/resources/professionalQualifications.en.ts +0 -87
  459. package/templates/saas/i18n/engine/resources/professionalQualifications.fr.ts +0 -87
  460. package/templates/saas/i18n/engine/resources/promotions.en.ts +4 -56
  461. package/templates/saas/i18n/engine/resources/promotions.fr.ts +6 -58
  462. package/templates/saas/i18n/engine/resources/providerCallRecords.en.ts +77 -101
  463. package/templates/saas/i18n/engine/resources/providerCallRecords.fr.ts +0 -24
  464. package/templates/saas/i18n/engine/resources/publishedVerificationKeys.en.ts +2 -25
  465. package/templates/saas/i18n/engine/resources/publishedVerificationKeys.fr.ts +2 -25
  466. package/templates/saas/i18n/engine/resources/referrals.en.ts +21 -18
  467. package/templates/saas/i18n/engine/resources/referrals.fr.ts +21 -18
  468. package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.en.ts +0 -80
  469. package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.fr.ts +0 -80
  470. package/templates/saas/i18n/engine/resources/relationshipInvitations.en.ts +0 -89
  471. package/templates/saas/i18n/engine/resources/relationshipInvitations.fr.ts +0 -89
  472. package/templates/saas/i18n/engine/resources/relationshipMailboxes.en.ts +0 -27
  473. package/templates/saas/i18n/engine/resources/relationshipMailboxes.fr.ts +0 -27
  474. package/templates/saas/i18n/engine/resources/representativeAssignments.en.ts +108 -112
  475. package/templates/saas/i18n/engine/resources/representativeAssignments.fr.ts +108 -112
  476. package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.en.ts +8 -21
  477. package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.fr.ts +8 -21
  478. package/templates/saas/i18n/engine/resources/signatureRequestSigners.en.ts +141 -0
  479. package/templates/saas/i18n/engine/resources/signatureRequestSigners.fr.ts +141 -0
  480. package/templates/saas/i18n/engine/resources/signatureRequests.en.ts +205 -0
  481. package/templates/saas/i18n/engine/resources/signatureRequests.fr.ts +205 -0
  482. package/templates/saas/i18n/engine/resources/smsNumberAssignments.en.ts +101 -0
  483. package/templates/saas/i18n/engine/resources/smsNumberAssignments.fr.ts +101 -0
  484. package/templates/saas/i18n/engine/resources/smsOptOuts.en.ts +166 -0
  485. package/templates/saas/i18n/engine/resources/smsOptOuts.fr.ts +166 -0
  486. package/templates/saas/i18n/engine/resources/smsProviderEvents.en.ts +195 -0
  487. package/templates/saas/i18n/engine/resources/smsProviderEvents.fr.ts +195 -0
  488. package/templates/saas/i18n/engine/resources/ssoDomainReservations.en.ts +0 -27
  489. package/templates/saas/i18n/engine/resources/ssoDomainReservations.fr.ts +0 -27
  490. package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.en.ts +3 -39
  491. package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.fr.ts +0 -36
  492. package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.en.ts +0 -3
  493. package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.fr.ts +0 -3
  494. package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.en.ts +0 -6
  495. package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.fr.ts +0 -6
  496. package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.en.ts +3 -21
  497. package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.fr.ts +0 -18
  498. package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.en.ts +3 -33
  499. package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.fr.ts +0 -30
  500. package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.en.ts +0 -27
  501. package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.fr.ts +0 -27
  502. package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.en.ts +13 -43
  503. package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.fr.ts +0 -30
  504. package/templates/saas/i18n/engine/resources/userCredentials.en.ts +3 -87
  505. package/templates/saas/i18n/engine/resources/userCredentials.fr.ts +0 -84
  506. package/templates/saas/i18n/engine/resources/userFeatures.en.ts +0 -12
  507. package/templates/saas/i18n/engine/resources/userFeatures.fr.ts +0 -12
  508. package/templates/saas/i18n/engine/resources/userFlowActorExecutions.en.ts +25 -160
  509. package/templates/saas/i18n/engine/resources/userFlowActorExecutions.fr.ts +25 -160
  510. package/templates/saas/i18n/engine/resources/userFlowActorTasks.en.ts +6 -28
  511. package/templates/saas/i18n/engine/resources/userFlowActorTasks.fr.ts +8 -30
  512. package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.en.ts +13 -18
  513. package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.fr.ts +13 -18
  514. package/templates/saas/i18n/engine/resources/userGuidanceState.en.ts +3 -18
  515. package/templates/saas/i18n/engine/resources/userGuidanceState.fr.ts +0 -15
  516. package/templates/saas/i18n/engine/resources/userIdentityLinks.en.ts +13 -40
  517. package/templates/saas/i18n/engine/resources/userIdentityLinks.fr.ts +0 -27
  518. package/templates/saas/i18n/engine/resources/userLifecycleState.en.ts +0 -15
  519. package/templates/saas/i18n/engine/resources/userLifecycleState.fr.ts +0 -15
  520. package/templates/saas/i18n/engine/resources/userNotificationBadges.en.ts +3 -36
  521. package/templates/saas/i18n/engine/resources/userNotificationBadges.fr.ts +0 -33
  522. package/templates/saas/i18n/engine/resources/userPreferences.en.ts +8 -60
  523. package/templates/saas/i18n/engine/resources/userPreferences.fr.ts +8 -60
  524. package/templates/saas/i18n/engine/resources/userProfiles.en.ts +5 -56
  525. package/templates/saas/i18n/engine/resources/userProfiles.fr.ts +0 -51
  526. package/templates/saas/i18n/engine/resources/userProgressionState.en.ts +1 -17
  527. package/templates/saas/i18n/engine/resources/userProgressionState.fr.ts +1 -17
  528. package/templates/saas/i18n/engine/resources/userProviderCredentials.en.ts +0 -52
  529. package/templates/saas/i18n/engine/resources/userProviderCredentials.fr.ts +0 -52
  530. package/templates/saas/i18n/engine/resources/userSelfPreferences.en.ts +8 -56
  531. package/templates/saas/i18n/engine/resources/userSelfPreferences.fr.ts +8 -56
  532. package/templates/saas/i18n/engine/resources/userSelfProfiles.en.ts +5 -61
  533. package/templates/saas/i18n/engine/resources/userSelfProfiles.fr.ts +0 -56
  534. package/templates/saas/i18n/engine/resources/user_self.en.ts +37 -214
  535. package/templates/saas/i18n/engine/resources/user_self.fr.ts +37 -214
  536. package/templates/saas/i18n/engine/resources/users.en.ts +53 -180
  537. package/templates/saas/i18n/engine/resources/users.fr.ts +53 -180
  538. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/Dockerfile +4 -1
  539. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/plugins/api-reference-pages.ts +9 -1
  540. package/templates/saas/scenarios/add-website/files/website/Dockerfile +4 -1
  541. package/templates/saas/scenarios/add-website/files/website/astro.config.ts.hbs +4 -0
  542. package/templates/saas/scenarios/add-website/files/website/package.json.hbs +1 -1
  543. package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/Dockerfile.hbs +3 -1
  544. package/templates/saas/skeleton/backend-api/Dockerfile +5 -2
  545. package/templates/saas/skeleton/frontend/Dockerfile +4 -1
  546. package/templates/saas/skeleton/frontend/vite-engine-dependency-prebundle.ts +10 -1
  547. package/templates/saas/skeleton/frontend/vite.config.ts.hbs +14 -3
  548. package/wildo-framework.info.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"drive.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/creation/drive.command.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAc1F,OAAO,EAIL,KAAK,mBAAmB,EACzB,MAAM,sDAAsD,CAAC;AAM9D;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,WAAW;IAC3D,QAAQ,CAAC,IAAI,EAAE,WAAW,CAcxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAmDvD;AAED,mGAAmG;AACnG,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,mBAAmB,GAAG,MAAM,EAAE,CASjF"}
1
+ {"version":3,"file":"drive.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/creation/drive.command.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAc1F,OAAO,EAIL,KAAK,mBAAmB,EACzB,MAAM,sDAAsD,CAAC;AAM9D;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,WAAW;IAC3D,QAAQ,CAAC,IAAI,EAAE,WAAW,CAcxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAqDvD;AAED,mGAAmG;AACnG,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,mBAAmB,GAAG,MAAM,EAAE,CASjF"}
@@ -63,6 +63,8 @@ export default class CreationDriveCommand extends BaseCommand {
63
63
  result = await runCreationDrive({
64
64
  readFeed: () => CreationConsoleClient.readFeed(options),
65
65
  readStatus: () => CompanionClient.get('/api/companion/creation/drive/status', options),
66
+ // Derives the maturity reading (the landing probe, the follow-ups), so it gets the console's write deadline (#3701).
67
+ readRequirementsStanding: () => CompanionClient.get('/api/companion/creation/requirements/standing', { ...options, timeoutMs: CONSOLE_WRITE_TIMEOUT_MS }),
66
68
  readSpentUsd: async () => (await CreationConsoleClient.report(options)).spend.total.cost['USD'],
67
69
  runLoop: (request) => CreationConsoleClient.loop(loopOptions, request),
68
70
  // The accept waits for the worktree lock (up to about ten minutes), so it gets the console's write deadline.
@@ -1 +1 @@
1
- {"version":3,"file":"drive.command.js","sourceRoot":"","sources":["../../../../src/commands/creation/drive.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAG/D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,4BAA4B,EAC5B,wBAAwB,EACxB,mCAAmC,GACpC,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,wCAAwC,EAAE,MAAM,8DAA8D,CAAC;AACxH,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAC/F,OAAO,EAAE,uBAAuB,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;QACD,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI;YAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC;;YAClD,KAAK,MAAM,IAAI,IAAI,2BAA2B,CAAC,MAAM,CAAC;gBAAE,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAChF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC3B,CAAC;CACF;AAED,mGAAmG;AACnG,MAAM,UAAU,2BAA2B,CAAC,MAA2B;IACrE,OAAO;QACL,sBAAsB,MAAM,CAAC,SAAS,GAAG;QACzC,kBAAkB,MAAM,CAAC,UAAU,EAAE;QACrC,KAAK,MAAM,CAAC,KAAK,aAAa,MAAM,CAAC,MAAM,cAAc,MAAM,CAAC,QAAQ,8BAA8B,MAAM,CAAC,iBAAiB,8BAA8B;cACxJ,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,OAAO,MAAM,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,GAAG;QACzI,GAAG,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,mFAAmF,CAAC,CAAC;QACtH,sFAAsF;KACvF,CAAC;AACJ,CAAC","sourcesContent":["import { WorkspaceScope } from '@wildo-ai/platform-config-lib';\nimport type { CreationConsole_Feed, CreationDrive_AcceptOutcome, CreationDrive_Status } from '@wildo-ai/platform-core-shared';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { ensureSaasAppScope } from '~wildo-cli/kernel/command-scope-utils';\nimport { writeJsonDocument } from '~wildo-cli/kernel/json-document-output';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport {\n CompanionClient,\n CompanionRefusalError,\n CompanionRequestTimeoutError,\n companionFailureExitCode,\n readCompanionProviderAccountRefusal,\n} from '~wildo-cli/services/companion/companion-client.service';\nimport { resolveCompanionClientOptionsFromContext } from '~wildo-cli/services/companion/companion-client-options.utils';\nimport { CreationConsoleClient } from '~wildo-cli/services/companion/creation-console.service';\nimport { CONSOLE_READ_TIMEOUT_MS, CONSOLE_WRITE_TIMEOUT_MS } from '~wildo-cli/services/companion/console-verb.utils';\nimport {\n CreationDriveStopRule,\n CreationDriveUntil,\n runCreationDrive,\n type CreationDriveResult,\n} from '~wildo-cli/services/companion/creation-drive.service';\nimport { SKIP_PREFLIGHT_FLAG, admitCreationRunAfterPreflight } from '~wildo-cli/services/application/creation-preflight.service';\n\n/** The longest one loop request is waited on. A loop may run a build lane for hours; past this the drive reads the state again. */\nconst CREATION_DRIVE_LOOP_REQUEST_TIMEOUT_MS = 6 * 60 * 60 * 1000;\n\n/**\n * `wildo creation drive --goal \"<goal>\" --until stuck --max-hours <h> --max-usd <n>` — run a creation unattended until a\n * stop rule fires (#2233): loops of rounds and the build they choose, accepted under the autonomy posture, through\n * companion restarts, usage-limit pauses and network losses, stopping on the first thing that needs the creator and\n * naming it. See `creation-drive.service.ts` for the rules.\n *\n * Both ceilings are REQUIRED and the person's, as `loop`'s iteration ceiling is: an unattended drive over the\n * application's source stops where the person said, never where this command guessed.\n */\nexport default class CreationDriveCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'creation drive',\n description: 'Drive the creation unattended until a stop rule fires: rounds, the build, acceptance, restarts.',\n category: CommandCategory.Local,\n minimumScope: WorkspaceScope.SAAS_APP,\n flags: {\n goal: { type: 'string', description: 'What the creation should achieve, in a sentence' },\n until: { type: 'string', description: 'When to stop: `stuck` (the first stop rule that fires)', default: CreationDriveUntil.STUCK },\n 'max-hours': { type: 'string', description: 'The wall-clock ceiling, in hours (required)' },\n 'max-usd': { type: 'string', description: 'The spend ceiling, in US dollars of measured spend (required)' },\n 'fan-out': { type: 'string', description: 'The most playbooks one round may run at once, 1 to 5' },\n json: { type: 'boolean', description: 'Emit the drive\\'s result document.', default: false },\n [SKIP_PREFLIGHT_FLAG]: { type: 'boolean', description: 'Start even when `wildo creation preflight` reports a FAIL.', default: false },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const goal = typeof ctx.flags.goal === 'string' ? ctx.flags.goal.trim() : '';\n const until = String(ctx.flags.until ?? CreationDriveUntil.STUCK);\n const maximumHours = Number(ctx.flags['max-hours']);\n const maximumUsd = Number(ctx.flags['max-usd']);\n const fanOut = ctx.flags['fan-out'] === undefined ? undefined : Number(ctx.flags['fan-out']);\n if (goal.length === 0 || !(Object.values(CreationDriveUntil) as string[]).includes(until)\n || !(maximumHours > 0) || !(maximumUsd > 0) || (fanOut !== undefined && !(Number.isSafeInteger(fanOut) && fanOut >= 1 && fanOut <= 5))) {\n ctx.log.error('Usage: wildo creation drive --goal \"<what the creation should achieve>\" --until stuck --max-hours <h> --max-usd <n> [--fan-out <1-5>]');\n return { success: false };\n }\n if (!ensureSaasAppScope(ctx)) return { success: false };\n // Once, before the first round (#2229); every loop request is checked again by the companion.\n if (!await admitCreationRunAfterPreflight(ctx, 'wildo creation drive')) {\n if (ctx.flags.json === true) writeJsonDocument({ stoppedBy: CreationDriveStopRule.PREFLIGHT_FAILED, waitingFor: 'wildo creation preflight' });\n return { success: false };\n }\n const options = await resolveCompanionClientOptionsFromContext(ctx, CONSOLE_READ_TIMEOUT_MS);\n const loopOptions = { ...options, timeoutMs: CREATION_DRIVE_LOOP_REQUEST_TIMEOUT_MS };\n let result: CreationDriveResult;\n try {\n result = await runCreationDrive({\n readFeed: () => CreationConsoleClient.readFeed(options) as Promise<CreationConsole_Feed>,\n readStatus: () => CompanionClient.get<CreationDrive_Status>('/api/companion/creation/drive/status', options),\n readSpentUsd: async () => (await CreationConsoleClient.report(options)).spend.total.cost['USD'],\n runLoop: (request) => CreationConsoleClient.loop(loopOptions, request),\n // The accept waits for the worktree lock (up to about ten minutes), so it gets the console's write deadline.\n accept: () => CompanionClient.post<CreationDrive_AcceptOutcome>('/api/companion/creation/drive/accept', {}, { ...options, timeoutMs: CONSOLE_WRITE_TIMEOUT_MS }),\n isCompanionUnreachable: (error) => companionFailureExitCode(error) === 2,\n isClientTimeout: (error) => error instanceof CompanionRequestTimeoutError,\n isNotReadyYet: (error) => error instanceof CompanionRefusalError && error.status === 503,\n isAlreadyRunning: (error) => error instanceof CompanionRefusalError && error.status === 409,\n readProviderAccountRefusal: readCompanionProviderAccountRefusal,\n now: () => Date.now(),\n sleep: (ms) => new Promise((resolve) => setTimeout(resolve, ms)),\n progress: (line) => { if (ctx.flags.json !== true) ctx.log.info(line); },\n }, {\n goal,\n maximumMs: maximumHours * 3_600_000,\n maximumUsd,\n ...(fanOut !== undefined ? { fanOut } : {}),\n ...(ctx.flags[SKIP_PREFLIGHT_FLAG] === true ? { skipPreflight: true } : {}),\n });\n } catch (error) {\n ctx.log.error(`The creation drive stopped on an error: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false, exitCode: companionFailureExitCode(error) };\n }\n if (ctx.flags.json === true) writeJsonDocument(result);\n else for (const line of describeCreationDriveResult(result)) ctx.log.info(line);\n return { success: true };\n }\n}\n\n/** The drive's end, for a person: the rule that stopped it, what it waits for, and what it did. */\nexport function describeCreationDriveResult(result: CreationDriveResult): string[] {\n return [\n `The drive stopped: ${result.stoppedBy}.`,\n ` Waiting for: ${result.waitingFor}`,\n ` ${result.loops} loop(s), ${result.rounds} round(s), ${result.accepted} playbook run(s) accepted, ${result.companionRestarts} companion restart(s) seen, `\n + `${Math.round(result.elapsedMs / 60_000)} min${result.spentUsd === undefined ? '' : `, USD ${result.spentUsd.toFixed(2)} measured`}.`,\n ...(result.spendMeasured ? [] : [' The spend ceiling was not applied: the run report stated no measured USD spend.']),\n ' What a person did along the way, and the independence score: wildo creation report',\n ];\n}\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AAC,KAAK,aAAa,MAAM,CAAC,MAAM,cAAc,MAAM,CAAC,QAAQ,8BAA8B,MAAM,CAAC,iBAAiB,8BAA8B;cACxJ,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,OAAO,MAAM,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,GAAG;QACzI,GAAG,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,mFAAmF,CAAC,CAAC;QACtH,sFAAsF;KACvF,CAAC;AACJ,CAAC","sourcesContent":["import { WorkspaceScope } from '@wildo-ai/platform-config-lib';\nimport type { CreationConsole_Feed, CreationDrive_AcceptOutcome, CreationDrive_RequirementsStanding, CreationDrive_Status } from '@wildo-ai/platform-core-shared';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { ensureSaasAppScope } from '~wildo-cli/kernel/command-scope-utils';\nimport { writeJsonDocument } from '~wildo-cli/kernel/json-document-output';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport {\n CompanionClient,\n CompanionRefusalError,\n CompanionRequestTimeoutError,\n companionFailureExitCode,\n readCompanionProviderAccountRefusal,\n} from '~wildo-cli/services/companion/companion-client.service';\nimport { resolveCompanionClientOptionsFromContext } from '~wildo-cli/services/companion/companion-client-options.utils';\nimport { CreationConsoleClient } from '~wildo-cli/services/companion/creation-console.service';\nimport { CONSOLE_READ_TIMEOUT_MS, CONSOLE_WRITE_TIMEOUT_MS } from '~wildo-cli/services/companion/console-verb.utils';\nimport {\n CreationDriveStopRule,\n CreationDriveUntil,\n runCreationDrive,\n type CreationDriveResult,\n} from '~wildo-cli/services/companion/creation-drive.service';\nimport { SKIP_PREFLIGHT_FLAG, admitCreationRunAfterPreflight } from '~wildo-cli/services/application/creation-preflight.service';\n\n/** The longest one loop request is waited on. A loop may run a build lane for hours; past this the drive reads the state again. */\nconst CREATION_DRIVE_LOOP_REQUEST_TIMEOUT_MS = 6 * 60 * 60 * 1000;\n\n/**\n * `wildo creation drive --goal \"<goal>\" --until stuck --max-hours <h> --max-usd <n>` — run a creation unattended until a\n * stop rule fires (#2233): loops of rounds and the build they choose, accepted under the autonomy posture, through\n * companion restarts, usage-limit pauses and network losses, stopping on the first thing that needs the creator and\n * naming it. See `creation-drive.service.ts` for the rules.\n *\n * Both ceilings are REQUIRED and the person's, as `loop`'s iteration ceiling is: an unattended drive over the\n * application's source stops where the person said, never where this command guessed.\n */\nexport default class CreationDriveCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'creation drive',\n description: 'Drive the creation unattended until a stop rule fires: rounds, the build, acceptance, restarts.',\n category: CommandCategory.Local,\n minimumScope: WorkspaceScope.SAAS_APP,\n flags: {\n goal: { type: 'string', description: 'What the creation should achieve, in a sentence' },\n until: { type: 'string', description: 'When to stop: `stuck` (the first stop rule that fires)', default: CreationDriveUntil.STUCK },\n 'max-hours': { type: 'string', description: 'The wall-clock ceiling, in hours (required)' },\n 'max-usd': { type: 'string', description: 'The spend ceiling, in US dollars of measured spend (required)' },\n 'fan-out': { type: 'string', description: 'The most playbooks one round may run at once, 1 to 5' },\n json: { type: 'boolean', description: 'Emit the drive\\'s result document.', default: false },\n [SKIP_PREFLIGHT_FLAG]: { type: 'boolean', description: 'Start even when `wildo creation preflight` reports a FAIL.', default: false },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n const goal = typeof ctx.flags.goal === 'string' ? ctx.flags.goal.trim() : '';\n const until = String(ctx.flags.until ?? CreationDriveUntil.STUCK);\n const maximumHours = Number(ctx.flags['max-hours']);\n const maximumUsd = Number(ctx.flags['max-usd']);\n const fanOut = ctx.flags['fan-out'] === undefined ? undefined : Number(ctx.flags['fan-out']);\n if (goal.length === 0 || !(Object.values(CreationDriveUntil) as string[]).includes(until)\n || !(maximumHours > 0) || !(maximumUsd > 0) || (fanOut !== undefined && !(Number.isSafeInteger(fanOut) && fanOut >= 1 && fanOut <= 5))) {\n ctx.log.error('Usage: wildo creation drive --goal \"<what the creation should achieve>\" --until stuck --max-hours <h> --max-usd <n> [--fan-out <1-5>]');\n return { success: false };\n }\n if (!ensureSaasAppScope(ctx)) return { success: false };\n // Once, before the first round (#2229); every loop request is checked again by the companion.\n if (!await admitCreationRunAfterPreflight(ctx, 'wildo creation drive')) {\n if (ctx.flags.json === true) writeJsonDocument({ stoppedBy: CreationDriveStopRule.PREFLIGHT_FAILED, waitingFor: 'wildo creation preflight' });\n return { success: false };\n }\n const options = await resolveCompanionClientOptionsFromContext(ctx, CONSOLE_READ_TIMEOUT_MS);\n const loopOptions = { ...options, timeoutMs: CREATION_DRIVE_LOOP_REQUEST_TIMEOUT_MS };\n let result: CreationDriveResult;\n try {\n result = await runCreationDrive({\n readFeed: () => CreationConsoleClient.readFeed(options) as Promise<CreationConsole_Feed>,\n readStatus: () => CompanionClient.get<CreationDrive_Status>('/api/companion/creation/drive/status', options),\n // Derives the maturity reading (the landing probe, the follow-ups), so it gets the console's write deadline (#3701).\n readRequirementsStanding: () => CompanionClient.get<CreationDrive_RequirementsStanding>('/api/companion/creation/requirements/standing', { ...options, timeoutMs: CONSOLE_WRITE_TIMEOUT_MS }),\n readSpentUsd: async () => (await CreationConsoleClient.report(options)).spend.total.cost['USD'],\n runLoop: (request) => CreationConsoleClient.loop(loopOptions, request),\n // The accept waits for the worktree lock (up to about ten minutes), so it gets the console's write deadline.\n accept: () => CompanionClient.post<CreationDrive_AcceptOutcome>('/api/companion/creation/drive/accept', {}, { ...options, timeoutMs: CONSOLE_WRITE_TIMEOUT_MS }),\n isCompanionUnreachable: (error) => companionFailureExitCode(error) === 2,\n isClientTimeout: (error) => error instanceof CompanionRequestTimeoutError,\n isNotReadyYet: (error) => error instanceof CompanionRefusalError && error.status === 503,\n isAlreadyRunning: (error) => error instanceof CompanionRefusalError && error.status === 409,\n readProviderAccountRefusal: readCompanionProviderAccountRefusal,\n now: () => Date.now(),\n sleep: (ms) => new Promise((resolve) => setTimeout(resolve, ms)),\n progress: (line) => { if (ctx.flags.json !== true) ctx.log.info(line); },\n }, {\n goal,\n maximumMs: maximumHours * 3_600_000,\n maximumUsd,\n ...(fanOut !== undefined ? { fanOut } : {}),\n ...(ctx.flags[SKIP_PREFLIGHT_FLAG] === true ? { skipPreflight: true } : {}),\n });\n } catch (error) {\n ctx.log.error(`The creation drive stopped on an error: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false, exitCode: companionFailureExitCode(error) };\n }\n if (ctx.flags.json === true) writeJsonDocument(result);\n else for (const line of describeCreationDriveResult(result)) ctx.log.info(line);\n return { success: true };\n }\n}\n\n/** The drive's end, for a person: the rule that stopped it, what it waits for, and what it did. */\nexport function describeCreationDriveResult(result: CreationDriveResult): string[] {\n return [\n `The drive stopped: ${result.stoppedBy}.`,\n ` Waiting for: ${result.waitingFor}`,\n ` ${result.loops} loop(s), ${result.rounds} round(s), ${result.accepted} playbook run(s) accepted, ${result.companionRestarts} companion restart(s) seen, `\n + `${Math.round(result.elapsedMs / 60_000)} min${result.spentUsd === undefined ? '' : `, USD ${result.spentUsd.toFixed(2)} measured`}.`,\n ...(result.spendMeasured ? [] : [' The spend ceiling was not applied: the run report stated no measured USD spend.']),\n ' What a person did along the way, and the independence score: wildo creation report',\n ];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"feed.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/creation/feed.command.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAkB1F;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,WAAW;IAC1D,QAAQ,CAAC,IAAI,EAAE,WAAW,CAaxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IA6EtD;;;OAGG;IACH,OAAO,CAAC,0BAA0B;IAyBlC;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,aAAa;CAkBtB"}
1
+ {"version":3,"file":"feed.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/creation/feed.command.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAkB1F;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,WAAW;IAC1D,QAAQ,CAAC,IAAI,EAAE,WAAW,CAaxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAiFtD;;;OAGG;IACH,OAAO,CAAC,0BAA0B;IAyBlC;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,aAAa;CAkBtB"}
@@ -64,12 +64,15 @@ export default class CreationFeedCommand extends BaseCommand {
64
64
  if (!json) {
65
65
  this.printSpecificationFindings(ctx, first.specifications);
66
66
  this.printBuildHold(ctx, first.buildHold);
67
- // What the running wave's current slot is preparing (#3206), so a slow dispatch does not read as a dead wave.
67
+ // What the running wave is preparing (#3206), so a slow dispatch does not read as a dead wave; its oldest slot, and
68
+ // how many more it prepares beside it (#3883).
68
69
  if (first.buildPreparation?.heldByStopSince) {
69
70
  ctx.log.warn(`\nThe build is stopped (since ${first.buildPreparation.heldByStopSince}): nothing starts on its own until you run \`wildo build run\`.`);
70
71
  }
71
- if (first.buildPreparation?.preparing)
72
- ctx.log.info(chalk.dim(`\nBuild wave: ${first.buildPreparation.preparing}`));
72
+ if (first.buildPreparation?.preparing) {
73
+ const others = (first.buildPreparation.preparingCount ?? 0) - 1;
74
+ ctx.log.info(chalk.dim(`\nBuild wave: ${first.buildPreparation.preparing}${others > 0 ? ` (and ${others} more slot${others > 1 ? 's' : ''} being prepared)` : ''}`));
75
+ }
73
76
  this.printSnapshot(ctx, first.lines, sinceCount);
74
77
  for (const line of describeReadFreshness(first))
75
78
  ctx.log.info(line);
@@ -1 +1 @@
1
- {"version":3,"file":"feed.command.js","sourceRoot":"","sources":["../../../../src/commands/creation/feed.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,4BAA4B,EAA4D,MAAM,gCAAgC,CAAC;AAExI,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAClG,OAAO,EAAE,wBAAwB,EAAE,MAAM,wDAAwD,CAAC;AAClG,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AACzF,OAAO,EAAE,uCAAuC,EAAE,MAAM,qDAAqD,CAAC;AAC9G,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAE3E,MAAM,wBAAwB,GAAG,CAAC,CAAC;AACnC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAE/B;;;;;;;;;;;;GAYG;AACH,M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,IAAI,CAAC;gBAAE,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;QAE/F,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,2BAA2B,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACpE,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;YAAE,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC,CAAC;QACrE,KAAK,MAAM,IAAI,IAAI,IAAI;YAAE,KAAK,MAAM,IAAI,IAAI,gBAAgB,CAAC,IAAI,CAAC;gBAAE,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;IAChG,CAAC;CACF;AAED,mHAAmH;AACnH,SAAS,0BAA0B,CAAC,SAA4C;IAC9E,OAAO,CAAC,SAAS,EAAE,YAAY,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,GAAG,OAAO,CAAC,iBAAiB,IAAI,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,OAAO,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACtJ,CAAC","sourcesContent":["import chalk from 'chalk';\n\nimport { WorkspaceScope } from '@wildo-ai/platform-config-lib';\nimport { WorkbenchCreationHomeSection, type CreationConsole_Feed, type CreationConsole_FeedLine } from '@wildo-ai/platform-core-shared';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { ensureSaasAppScope } from '~wildo-cli/kernel/command-scope-utils';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport {\n CreationConsoleClient,\n describeFeedLine,\n feedLineSignature,\n newFollowedLines,\n} from '~wildo-cli/services/companion/creation-console.service';\nimport { CONTEXT_READ_TIMEOUT_MS, resolveContextOptions } from '../context/context-command.utils';\nimport { companionFailureExitCode } from '~wildo-cli/services/companion/companion-client.service';\nimport { describeReadFreshness } from '~wildo-cli/services/companion/console-verb.utils';\nimport { describeSpecificationModuleFaultReading } from '~wildo-cli/services/companion/build-console.service';\nimport { writeJsonDocument } from '~wildo-cli/kernel/json-document-output';\n\nconst DEFAULT_INTERVAL_SECONDS = 5;\nconst DEFAULT_SINCE_COUNT = 10;\n\n/**\n * `wildo creation feed` — what the companion did, what it asks of you, what could come next.\n *\n * The console half of \"the companion is the master, the workbench is the dashboard\": a coding-agent\n * session drives creation from here, and this is how it learns what happened. The lines are Home's —\n * the same rows the workbench shows — each with the row it points at, so a refused run's error or a\n * judge's verdict is read in the same call.\n *\n * `--follow` keeps reading and prints each NEW line of what happened or what is asked (suggestions move\n * with every edit and are not events). `--exit-on-change` makes it return at the first such line, which\n * is the primitive an agent loops on: start a run, wait for the feed to move, read, act, wait again.\n * The companion cannot push into an agent session; this is the pull that stands in for it.\n */\nexport default class CreationFeedCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'creation feed',\n description: 'What the companion did, what it asks of you, and what could come next — once, or followed.',\n category: CommandCategory.Local,\n minimumScope: WorkspaceScope.SAAS_APP,\n flags: {\n follow: { type: 'boolean', description: 'Keep reading and print each new event as it happens.', default: false },\n 'exit-on-change': { type: 'boolean', description: 'With --follow: return at the first new event (for an agent that waits, then acts).', default: false },\n interval: { type: 'number', description: `Seconds between reads while following (default ${DEFAULT_INTERVAL_SECONDS}).` },\n timeout: { type: 'number', description: 'With --follow: stop after this many seconds; exits non-zero only when nothing new happened in that time.' },\n since: { type: 'number', description: `How many of the most recent \"what happened\" lines to print first (default ${DEFAULT_SINCE_COUNT}).` },\n json: { type: 'boolean', description: 'Emit the feed document (once), or one JSON line per new event (with --follow).', default: false },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n if (!ensureSaasAppScope(ctx)) return { success: false };\n const follow = ctx.flags.follow === true;\n const exitOnChange = ctx.flags['exit-on-change'] === true;\n const json = ctx.flags.json === true;\n const intervalMs = Math.max(1, typeof ctx.flags.interval === 'number' ? ctx.flags.interval : DEFAULT_INTERVAL_SECONDS) * 1000;\n const timeoutMs = typeof ctx.flags.timeout === 'number' && ctx.flags.timeout > 0 ? ctx.flags.timeout * 1000 : null;\n const sinceCount = typeof ctx.flags.since === 'number' && ctx.flags.since >= 0 ? ctx.flags.since : DEFAULT_SINCE_COUNT;\n if (exitOnChange && !follow) {\n ctx.log.error('--exit-on-change waits for something to happen, so it needs --follow.');\n return { success: false };\n }\n\n try {\n const options = await resolveContextOptions(ctx, CONTEXT_READ_TIMEOUT_MS);\n const first = await CreationConsoleClient.readFeed(options);\n if (json && !follow) {\n writeJsonDocument(first);\n return { success: true };\n }\n if (!json) {\n this.printSpecificationFindings(ctx, first.specifications);\n this.printBuildHold(ctx, first.buildHold);\n // What the running wave's current slot is preparing (#3206), so a slow dispatch does not read as a dead wave.\n if (first.buildPreparation?.heldByStopSince) {\n ctx.log.warn(`\\nThe build is stopped (since ${first.buildPreparation.heldByStopSince}): nothing starts on its own until you run \\`wildo build run\\`.`);\n }\n if (first.buildPreparation?.preparing) ctx.log.info(chalk.dim(`\\nBuild wave: ${first.buildPreparation.preparing}`));\n this.printSnapshot(ctx, first.lines, sinceCount);\n for (const line of describeReadFreshness(first)) ctx.log.info(line);\n }\n if (!follow) return { success: true };\n\n /* Everything already on screen counts as seen, including the older \"what happened\" lines not printed. */\n const seen = new Set(first.lines.map(feedLineSignature));\n if (!json) ctx.log.info(chalk.dim(`\\nFollowing (every ${intervalMs / 1000}s)${exitOnChange ? ', returning at the first new event' : ''} — Ctrl-C to stop.`));\n const deadline = timeoutMs !== null ? Date.now() + timeoutMs : null;\n let printedAny = false;\n // The hold is a state, not an event: said again only when it changes (it starts, it lifts, its cause moves).\n let lastHold = describeBuildHoldSignature(first.buildHold);\n for (;;) {\n /* Sleep at most until the deadline, so a --timeout shorter than --interval still reads once. */\n const wait = deadline !== null ? Math.max(0, Math.min(intervalMs, deadline - Date.now())) : intervalMs;\n await new Promise((resolve) => setTimeout(resolve, wait));\n let feed: CreationConsole_Feed | null;\n try {\n feed = await CreationConsoleClient.readFeed(options);\n } catch (error) {\n /* A companion restarting mid-follow is expected in a dev loop; say so and keep following. */\n if (!json) ctx.log.warn(`Feed unavailable (${ErrorUtils.extractErrorMessage(error)}); still following.`);\n feed = null;\n }\n const fresh = feed ? newFollowedLines(feed.lines, seen) : [];\n if (feed && !json && describeBuildHoldSignature(feed.buildHold) !== lastHold) {\n lastHold = describeBuildHoldSignature(feed.buildHold);\n if ((feed.buildHold?.bootFailures.length ?? 0) > 0) this.printBuildHold(ctx, feed.buildHold);\n else ctx.log.info(chalk.dim('\\nThe backend starts again: the build lane dispatches again.'));\n }\n for (const line of fresh) {\n seen.add(feedLineSignature(line));\n if (json) writeJsonDocument(line);\n else for (const text of describeFeedLine(line)) ctx.log.info(text);\n }\n printedAny ||= fresh.length > 0;\n if (exitOnChange && fresh.length > 0) return { success: true };\n /* The deadline is tested AFTER the read, so the last interval before it is never skipped. */\n if (deadline !== null && Date.now() >= deadline) {\n if (!json && !printedAny) ctx.log.info(chalk.dim('Nothing happened before the timeout.'));\n return { success: printedAny };\n }\n }\n } catch (error) {\n ctx.log.error(`Could not read the creation feed: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false, exitCode: companionFailureExitCode(error) };\n }\n }\n\n /**\n * The specifications the companion refused to serve, FIRST (#3210, #3211): each is absent from every board below,\n * and nothing else says so. A package that could not be evaluated at all explains an empty feed.\n */\n private printSpecificationFindings(ctx: CommandContext, specifications: CreationConsole_Feed['specifications'] | undefined): void {\n // A companion older than #3211 sends no `specifications`: nothing to say, never a crash.\n if (specifications === undefined) return;\n if (specifications.loadError !== null) {\n ctx.log.warn(`\\nThe specifications package cannot be evaluated, so the boards that read it are empty:\\n ${specifications.loadError}`);\n }\n // The modules it could not evaluate (#3258): each serves nothing, every other module still does.\n const moduleFaults = specifications.moduleFaults ?? [];\n if (moduleFaults.length > 0) {\n ctx.log.warn(chalk.bold(`\\nSpecifications modules that could not be evaluated (${moduleFaults.length}) — each serves nothing until fixed`));\n for (const fault of moduleFaults) {\n ctx.log.warn(` ${fault.modulePath}: ${fault.errorName}: ${fault.message}`);\n if (fault.authoredFrame !== null) ctx.log.info(chalk.dim(` at ${fault.authoredFrame}`));\n if ((fault.withheldSpecifications ?? []).length > 0) ctx.log.warn(` Unavailable until fixed: ${fault.withheldSpecifications!.join(', ')}`);\n ctx.log.info(chalk.dim(` ${(fault.causedBy ?? []).length > 0 ? `Follows from ${fault.causedBy!.join(', ')}: fix that first.` : describeSpecificationModuleFaultReading(fault.reading)}`));\n }\n }\n if (specifications.faults.length === 0) return;\n ctx.log.warn(chalk.bold(`\\nSpecifications refused (${specifications.faults.length}) — not served until fixed`));\n for (const fault of specifications.faults) {\n ctx.log.warn(` ${fault.kind}${fault.key.length > 0 ? ` ${fault.key}` : ''}: ${fault.message}`);\n if (fault.authoredFrame !== null) ctx.log.info(chalk.dim(` at ${fault.authoredFrame}`));\n }\n }\n\n /**\n * Why the build lane is HOLDING dispatch (#3215): a backend that does not run the current tree. Printed before the\n * lines, because a held wave is otherwise silent — nothing runs and no line says why. Each failure's remedy is worded\n * for its cause: a task to fix, or the dev stack's repair.\n */\n private printBuildHold(ctx: CommandContext, buildHold: CreationConsole_Feed['buildHold']): void {\n // A companion older than #3215 sends no `buildHold`: nothing to say, never a crash.\n if (buildHold === undefined || buildHold.bootFailures.length === 0) return;\n ctx.log.warn(chalk.bold('\\nThe build is held: the backend does not start, so no new task is dispatched'));\n for (const failure of buildHold.bootFailures) {\n ctx.log.warn(` ${failure.serviceIdentifier} (since ${failure.failedAt}): ${failure.message ?? 'no reason recorded'}`);\n ctx.log.info(` ${failure.remedy}`);\n }\n }\n\n private printSnapshot(ctx: CommandContext, lines: readonly CreationConsole_FeedLine[], sinceCount: number): void {\n const section = (name: WorkbenchCreationHomeSection) => lines.filter((line) => line.section === name);\n const asked = section(WorkbenchCreationHomeSection.ASKED);\n const since = section(WorkbenchCreationHomeSection.SINCE).slice(0, sinceCount);\n const next = section(WorkbenchCreationHomeSection.SUGGESTION);\n\n ctx.log.info(chalk.bold(`\\nAsked of you (${asked.length})`));\n if (asked.length === 0) ctx.log.info(chalk.dim(' nothing'));\n for (const line of asked) for (const text of describeFeedLine(line)) ctx.log.info(` ${text}`);\n\n ctx.log.info(chalk.bold(`\\nWhat happened (latest ${since.length})`));\n if (since.length === 0) ctx.log.info(chalk.dim(' nothing yet'));\n for (const line of since) for (const text of describeFeedLine(line)) ctx.log.info(` ${text}`);\n\n ctx.log.info(chalk.bold(`\\nWhat could come next (${next.length})`));\n if (next.length === 0) ctx.log.info(chalk.dim(' nothing eligible'));\n for (const line of next) for (const text of describeFeedLine(line)) ctx.log.info(` ${text}`);\n }\n}\n\n/** What a follow compares to tell whether the build hold changed: each held backend, its cause and its refusal. */\nfunction describeBuildHoldSignature(buildHold: CreationConsole_Feed['buildHold']): string {\n return (buildHold?.bootFailures ?? []).map((failure) => `${failure.serviceIdentifier}|${failure.cause}|${failure.message ?? ''}`).sort().join('\\n');\n}\n"]}
1
+ {"version":3,"file":"feed.command.js","sourceRoot":"","sources":["../../../../src/commands/creation/feed.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,4BAA4B,EAA4D,MAAM,gCAAgC,CAAC;AAExI,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC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CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;IAChG,CAAC;CACF;AAED,mHAAmH;AACnH,SAAS,0BAA0B,CAAC,SAA4C;IAC9E,OAAO,CAAC,SAAS,EAAE,YAAY,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,GAAG,OAAO,CAAC,iBAAiB,IAAI,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,OAAO,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACtJ,CAAC","sourcesContent":["import chalk from 'chalk';\n\nimport { WorkspaceScope } from '@wildo-ai/platform-config-lib';\nimport { WorkbenchCreationHomeSection, type CreationConsole_Feed, type CreationConsole_FeedLine } from '@wildo-ai/platform-core-shared';\n\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandContext, CommandMeta, CommandResult } from '~wildo-cli/kernel/types';\nimport { ensureSaasAppScope } from '~wildo-cli/kernel/command-scope-utils';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport {\n CreationConsoleClient,\n describeFeedLine,\n feedLineSignature,\n newFollowedLines,\n} from '~wildo-cli/services/companion/creation-console.service';\nimport { CONTEXT_READ_TIMEOUT_MS, resolveContextOptions } from '../context/context-command.utils';\nimport { companionFailureExitCode } from '~wildo-cli/services/companion/companion-client.service';\nimport { describeReadFreshness } from '~wildo-cli/services/companion/console-verb.utils';\nimport { describeSpecificationModuleFaultReading } from '~wildo-cli/services/companion/build-console.service';\nimport { writeJsonDocument } from '~wildo-cli/kernel/json-document-output';\n\nconst DEFAULT_INTERVAL_SECONDS = 5;\nconst DEFAULT_SINCE_COUNT = 10;\n\n/**\n * `wildo creation feed` — what the companion did, what it asks of you, what could come next.\n *\n * The console half of \"the companion is the master, the workbench is the dashboard\": a coding-agent\n * session drives creation from here, and this is how it learns what happened. The lines are Home's —\n * the same rows the workbench shows — each with the row it points at, so a refused run's error or a\n * judge's verdict is read in the same call.\n *\n * `--follow` keeps reading and prints each NEW line of what happened or what is asked (suggestions move\n * with every edit and are not events). `--exit-on-change` makes it return at the first such line, which\n * is the primitive an agent loops on: start a run, wait for the feed to move, read, act, wait again.\n * The companion cannot push into an agent session; this is the pull that stands in for it.\n */\nexport default class CreationFeedCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'creation feed',\n description: 'What the companion did, what it asks of you, and what could come next — once, or followed.',\n category: CommandCategory.Local,\n minimumScope: WorkspaceScope.SAAS_APP,\n flags: {\n follow: { type: 'boolean', description: 'Keep reading and print each new event as it happens.', default: false },\n 'exit-on-change': { type: 'boolean', description: 'With --follow: return at the first new event (for an agent that waits, then acts).', default: false },\n interval: { type: 'number', description: `Seconds between reads while following (default ${DEFAULT_INTERVAL_SECONDS}).` },\n timeout: { type: 'number', description: 'With --follow: stop after this many seconds; exits non-zero only when nothing new happened in that time.' },\n since: { type: 'number', description: `How many of the most recent \"what happened\" lines to print first (default ${DEFAULT_SINCE_COUNT}).` },\n json: { type: 'boolean', description: 'Emit the feed document (once), or one JSON line per new event (with --follow).', default: false },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n if (!ensureSaasAppScope(ctx)) return { success: false };\n const follow = ctx.flags.follow === true;\n const exitOnChange = ctx.flags['exit-on-change'] === true;\n const json = ctx.flags.json === true;\n const intervalMs = Math.max(1, typeof ctx.flags.interval === 'number' ? ctx.flags.interval : DEFAULT_INTERVAL_SECONDS) * 1000;\n const timeoutMs = typeof ctx.flags.timeout === 'number' && ctx.flags.timeout > 0 ? ctx.flags.timeout * 1000 : null;\n const sinceCount = typeof ctx.flags.since === 'number' && ctx.flags.since >= 0 ? ctx.flags.since : DEFAULT_SINCE_COUNT;\n if (exitOnChange && !follow) {\n ctx.log.error('--exit-on-change waits for something to happen, so it needs --follow.');\n return { success: false };\n }\n\n try {\n const options = await resolveContextOptions(ctx, CONTEXT_READ_TIMEOUT_MS);\n const first = await CreationConsoleClient.readFeed(options);\n if (json && !follow) {\n writeJsonDocument(first);\n return { success: true };\n }\n if (!json) {\n this.printSpecificationFindings(ctx, first.specifications);\n this.printBuildHold(ctx, first.buildHold);\n // What the running wave is preparing (#3206), so a slow dispatch does not read as a dead wave; its oldest slot, and\n // how many more it prepares beside it (#3883).\n if (first.buildPreparation?.heldByStopSince) {\n ctx.log.warn(`\\nThe build is stopped (since ${first.buildPreparation.heldByStopSince}): nothing starts on its own until you run \\`wildo build run\\`.`);\n }\n if (first.buildPreparation?.preparing) {\n const others = (first.buildPreparation.preparingCount ?? 0) - 1;\n ctx.log.info(chalk.dim(`\\nBuild wave: ${first.buildPreparation.preparing}${others > 0 ? ` (and ${others} more slot${others > 1 ? 's' : ''} being prepared)` : ''}`));\n }\n this.printSnapshot(ctx, first.lines, sinceCount);\n for (const line of describeReadFreshness(first)) ctx.log.info(line);\n }\n if (!follow) return { success: true };\n\n /* Everything already on screen counts as seen, including the older \"what happened\" lines not printed. */\n const seen = new Set(first.lines.map(feedLineSignature));\n if (!json) ctx.log.info(chalk.dim(`\\nFollowing (every ${intervalMs / 1000}s)${exitOnChange ? ', returning at the first new event' : ''} — Ctrl-C to stop.`));\n const deadline = timeoutMs !== null ? Date.now() + timeoutMs : null;\n let printedAny = false;\n // The hold is a state, not an event: said again only when it changes (it starts, it lifts, its cause moves).\n let lastHold = describeBuildHoldSignature(first.buildHold);\n for (;;) {\n /* Sleep at most until the deadline, so a --timeout shorter than --interval still reads once. */\n const wait = deadline !== null ? Math.max(0, Math.min(intervalMs, deadline - Date.now())) : intervalMs;\n await new Promise((resolve) => setTimeout(resolve, wait));\n let feed: CreationConsole_Feed | null;\n try {\n feed = await CreationConsoleClient.readFeed(options);\n } catch (error) {\n /* A companion restarting mid-follow is expected in a dev loop; say so and keep following. */\n if (!json) ctx.log.warn(`Feed unavailable (${ErrorUtils.extractErrorMessage(error)}); still following.`);\n feed = null;\n }\n const fresh = feed ? newFollowedLines(feed.lines, seen) : [];\n if (feed && !json && describeBuildHoldSignature(feed.buildHold) !== lastHold) {\n lastHold = describeBuildHoldSignature(feed.buildHold);\n if ((feed.buildHold?.bootFailures.length ?? 0) > 0) this.printBuildHold(ctx, feed.buildHold);\n else ctx.log.info(chalk.dim('\\nThe backend starts again: the build lane dispatches again.'));\n }\n for (const line of fresh) {\n seen.add(feedLineSignature(line));\n if (json) writeJsonDocument(line);\n else for (const text of describeFeedLine(line)) ctx.log.info(text);\n }\n printedAny ||= fresh.length > 0;\n if (exitOnChange && fresh.length > 0) return { success: true };\n /* The deadline is tested AFTER the read, so the last interval before it is never skipped. */\n if (deadline !== null && Date.now() >= deadline) {\n if (!json && !printedAny) ctx.log.info(chalk.dim('Nothing happened before the timeout.'));\n return { success: printedAny };\n }\n }\n } catch (error) {\n ctx.log.error(`Could not read the creation feed: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false, exitCode: companionFailureExitCode(error) };\n }\n }\n\n /**\n * The specifications the companion refused to serve, FIRST (#3210, #3211): each is absent from every board below,\n * and nothing else says so. A package that could not be evaluated at all explains an empty feed.\n */\n private printSpecificationFindings(ctx: CommandContext, specifications: CreationConsole_Feed['specifications'] | undefined): void {\n // A companion older than #3211 sends no `specifications`: nothing to say, never a crash.\n if (specifications === undefined) return;\n if (specifications.loadError !== null) {\n ctx.log.warn(`\\nThe specifications package cannot be evaluated, so the boards that read it are empty:\\n ${specifications.loadError}`);\n }\n // The modules it could not evaluate (#3258): each serves nothing, every other module still does.\n const moduleFaults = specifications.moduleFaults ?? [];\n if (moduleFaults.length > 0) {\n ctx.log.warn(chalk.bold(`\\nSpecifications modules that could not be evaluated (${moduleFaults.length}) — each serves nothing until fixed`));\n for (const fault of moduleFaults) {\n ctx.log.warn(` ${fault.modulePath}: ${fault.errorName}: ${fault.message}`);\n if (fault.authoredFrame !== null) ctx.log.info(chalk.dim(` at ${fault.authoredFrame}`));\n if ((fault.withheldSpecifications ?? []).length > 0) ctx.log.warn(` Unavailable until fixed: ${fault.withheldSpecifications!.join(', ')}`);\n ctx.log.info(chalk.dim(` ${(fault.causedBy ?? []).length > 0 ? `Follows from ${fault.causedBy!.join(', ')}: fix that first.` : describeSpecificationModuleFaultReading(fault.reading)}`));\n }\n }\n if (specifications.faults.length === 0) return;\n ctx.log.warn(chalk.bold(`\\nSpecifications refused (${specifications.faults.length}) — not served until fixed`));\n for (const fault of specifications.faults) {\n ctx.log.warn(` ${fault.kind}${fault.key.length > 0 ? ` ${fault.key}` : ''}: ${fault.message}`);\n if (fault.authoredFrame !== null) ctx.log.info(chalk.dim(` at ${fault.authoredFrame}`));\n }\n }\n\n /**\n * Why the build lane is HOLDING dispatch (#3215): a backend that does not run the current tree. Printed before the\n * lines, because a held wave is otherwise silent — nothing runs and no line says why. Each failure's remedy is worded\n * for its cause: a task to fix, or the dev stack's repair.\n */\n private printBuildHold(ctx: CommandContext, buildHold: CreationConsole_Feed['buildHold']): void {\n // A companion older than #3215 sends no `buildHold`: nothing to say, never a crash.\n if (buildHold === undefined || buildHold.bootFailures.length === 0) return;\n ctx.log.warn(chalk.bold('\\nThe build is held: the backend does not start, so no new task is dispatched'));\n for (const failure of buildHold.bootFailures) {\n ctx.log.warn(` ${failure.serviceIdentifier} (since ${failure.failedAt}): ${failure.message ?? 'no reason recorded'}`);\n ctx.log.info(` ${failure.remedy}`);\n }\n }\n\n private printSnapshot(ctx: CommandContext, lines: readonly CreationConsole_FeedLine[], sinceCount: number): void {\n const section = (name: WorkbenchCreationHomeSection) => lines.filter((line) => line.section === name);\n const asked = section(WorkbenchCreationHomeSection.ASKED);\n const since = section(WorkbenchCreationHomeSection.SINCE).slice(0, sinceCount);\n const next = section(WorkbenchCreationHomeSection.SUGGESTION);\n\n ctx.log.info(chalk.bold(`\\nAsked of you (${asked.length})`));\n if (asked.length === 0) ctx.log.info(chalk.dim(' nothing'));\n for (const line of asked) for (const text of describeFeedLine(line)) ctx.log.info(` ${text}`);\n\n ctx.log.info(chalk.bold(`\\nWhat happened (latest ${since.length})`));\n if (since.length === 0) ctx.log.info(chalk.dim(' nothing yet'));\n for (const line of since) for (const text of describeFeedLine(line)) ctx.log.info(` ${text}`);\n\n ctx.log.info(chalk.bold(`\\nWhat could come next (${next.length})`));\n if (next.length === 0) ctx.log.info(chalk.dim(' nothing eligible'));\n for (const line of next) for (const text of describeFeedLine(line)) ctx.log.info(` ${text}`);\n }\n}\n\n/** What a follow compares to tell whether the build hold changed: each held backend, its cause and its refusal. */\nfunction describeBuildHoldSignature(buildHold: CreationConsole_Feed['buildHold']): string {\n return (buildHold?.bootFailures ?? []).map((failure) => `${failure.serviceIdentifier}|${failure.cause}|${failure.message ?? ''}`).sort().join('\\n');\n}\n"]}
@@ -93,6 +93,19 @@ export default class FwkPublishAllCommand extends BaseCommand {
93
93
  * from their own lockfile (which is what puts their compiler there), then their `build`. Skipping it would not ship a
94
94
  * stale package silently: the npm lane refuses a `dist/` older than its `src/`. This makes the release produce it.
95
95
  */
96
+ /**
97
+ * Move registry.wildo.ai's server to the image this release published, before the provider modules are sent to it
98
+ * (#3795). The server validates each manifest with its own schema, so a module using this release's new manifest
99
+ * vocabulary is refused by an older server: release 1.1.13 met exactly that (`OUTPUT_MODERATION`, 400 from 1.1.11).
100
+ *
101
+ * Like the provider step, the release does not depend on it: npm and Docker already hold the version. A host that is
102
+ * not configured, or an upgrade that fails or needs a full `deploy`, is a warning and a run annotation, and the
103
+ * provider step still runs (each module is judged on its own). A dry run only inspects, and says nothing when the
104
+ * host is not configured, since a dry run holds no credentials.
105
+ */
106
+ private upgradeRegistryServer;
107
+ /** Raise `message` as a run annotation under GitHub Actions (see `githubWarningAnnotation`); a no-op elsewhere. */
108
+ private annotateIncomplete;
96
109
  private buildProviderSimulators;
97
110
  /**
98
111
  * Redeploy `get.wildo.ai` only when a release changes what it serves.
@@ -1 +1 @@
1
- {"version":3,"file":"publish-all.command.d.ts","sourceRoot":"","sources":["../../../../src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Z;;;;;;OAMG;IACH,OAAO,CAAC,eAAe;IAevB;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;;;;OAMG;IACH;;;;;;;;;OASG;IACH,OAAO,CAAC,qBAAqB;IAwB7B,mHAAmH;IACnH,OAAO,CAAC,kBAAkB;IAK1B,OAAO,CAAC,uBAAuB;IAgB/B;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,OAAO,CAAC,UAAU;IAwBlB,+FAA+F;YACjF,cAAc;YAQd,uBAAuB;IAIrC,yGAAyG;YAC3F,qBAAqB;IAKnC;;;;;;;;OAQG;IACH,OAAO,CAAC,qBAAqB;IA6B7B,2GAA2G;YAC7F,aAAa;IAe3B;;;;;OAKG;YACW,QAAQ;CAYvB"}
@@ -58,7 +58,10 @@
58
58
  * npm `latest` has moved. Without the site's deploy config (`marketing/tooling/.env`) the site is
59
59
  * skipped with a WARNING and the release still succeeds: npm and Docker hold the release, and the
60
60
  * installers install whatever npm's `latest` is.
61
- * 9. `fwk publish providers --registry public` (#2024), `latest` releases only: the provider modules of
61
+ * 9. `fwk registry-host upgrade --imageTag <version>` (#3795), `latest` releases only: the registry SERVER moves to
62
+ * the image just published, so it validates the provider modules with this release's manifest schema. A host not
63
+ * configured, or an upgrade that fails, warns; the dry run inspects only.
64
+ * Then `fwk publish providers --registry public` (#2024), `latest` releases only: the provider modules of
62
65
  * `providers-registry/` to the public module registry, under the `wildo` domain. The registry is named,
63
66
  * because left to its resolver a framework developer's shell (`WILDO_FRAMEWORK_DEVELOPER=1`) answers with the
64
67
  * LOCAL registry, and a release has one destination. AFTER npm: an installed module's `@wildo-ai/*` imports
@@ -81,6 +84,7 @@
81
84
  * Not included on purpose: a full `pnpm build`. The dev watchers own every package's `dist/`, and the
82
85
  * npm lane's freshness gate names any package they left stale — run `pnpm build` then and retry.
83
86
  */
87
+ import { describeCaughtError } from '@wildo-ai/saas-models';
84
88
  import { spawnSync } from 'child_process';
85
89
  import { createHash } from 'crypto';
86
90
  import { existsSync, mkdtempSync, readFileSync, realpathSync, writeFileSync } from 'fs';
@@ -97,9 +101,11 @@ import { npmRegistryClient, PackageManagerCommand, RegistryVersionStatus, spawnP
97
101
  import { FRAMEWORK_IMAGE_CREATED_LABEL, FRAMEWORK_IMAGE_REVISION_LABEL, FrameworkDockerPublishService, } from '../../services/framework/framework-docker-publish.service.js';
98
102
  import { FrameworkNpmDistTag } from '../../services/framework/framework-npm-dist-tag.service.js';
99
103
  import { PROVIDER_SIMULATORS_RELATIVE_PATH } from '../../services/application/system-of-record-simulators.service.js';
104
+ import { loadRegistryHostConnection } from '../../services/framework/registry-host/registry-host.service.js';
100
105
  import { SUPPORTED_NODE_MAJOR_VERSION } from '../../services/deployment/host-toolchain-readiness.service.js';
101
106
  import { describeCliOutsideFrameworkCheckout } from '../../services/framework/framework-publish-cli-origin.js';
102
107
  import { ASSURANCE_CYCLE_PACKAGE } from '../../services/assurance/assurance-cycle-location.service.js';
108
+ import { githubWarningAnnotation, RELEASE_INCOMPLETE_ANNOTATION_TITLE } from '../../services/framework/github-actions-annotation.js';
103
109
  /** The dist-tag an unqualified `npm install` resolves — the only tag that moves Docker `latest` and the site. */
104
110
  const DEFAULT_NPM_DIST_TAG = FrameworkNpmDistTag.LATEST;
105
111
  /** The workbench script that produces its published `dist/` (see step 3 for why it is not `build`). */
@@ -327,8 +333,11 @@ export default class FwkPublishAllCommand extends BaseCommand {
327
333
  // A site config the dry run cannot even plan with is one the real run would fail on.
328
334
  if (moveLatest && ctx.flags.skipSite !== true && this.deploySite(ctx, frameworkRoot, true, ctx.flags.site === true) === false)
329
335
  return { success: false };
336
+ if (moveLatest)
337
+ this.upgradeRegistryServer(ctx, frameworkRoot, version, wildo, true);
330
338
  if (moveLatest && !wildo('provider modules (dry run)', ['fwk', 'publish', 'providers', '--dryRun', '--registry', 'public'])) {
331
339
  ctx.log.warn(' The provider modules would not all publish (see above); the release does not depend on them.');
340
+ this.annotateIncomplete('The provider modules would not all publish; see the provider step of this run.');
332
341
  }
333
342
  ctx.log.success(` Planned release ${version}. Nothing was published.`);
334
343
  return { success: true };
@@ -385,13 +394,17 @@ export default class FwkPublishAllCommand extends BaseCommand {
385
394
  ctx.log.info(' wildo fwk publish all --skipDocker');
386
395
  return { success: false };
387
396
  }
388
- // ── 9. provider modules, after npm `latest` (an installed module's engine imports resolve from npm) ──
397
+ // ── 9. the registry SERVER, then the provider modules it validates (#3795) ──
398
+ if (moveLatest)
399
+ this.upgradeRegistryServer(ctx, frameworkRoot, version, wildo, false);
400
+ // Provider modules after npm `latest` (an installed module's engine imports resolve from npm).
389
401
  if (!moveLatest) {
390
402
  ctx.log.info(' Provider modules are published only with a release npm installs by default; this side channel leaves them alone.');
391
403
  }
392
404
  else if (!wildo('provider modules', ['fwk', 'publish', 'providers', '--registry', 'public'])) {
393
405
  ctx.log.warn(' Not every provider module was published (see above). npm and Docker hold the release; once the cause is fixed:');
394
406
  ctx.log.warn(' wildo fwk publish providers --registry public');
407
+ this.annotateIncomplete(`${version} is on npm and Docker, but not every provider module was published (see the provider step). Once the cause is fixed: wildo fwk publish providers --registry public`);
395
408
  }
396
409
  await this.readBack(ctx, frameworkRoot, version);
397
410
  await this.publishReceipt(ctx, frameworkRoot, version, distTag, moveLatest);
@@ -644,6 +657,47 @@ export default class FwkPublishAllCommand extends BaseCommand {
644
657
  * from their own lockfile (which is what puts their compiler there), then their `build`. Skipping it would not ship a
645
658
  * stale package silently: the npm lane refuses a `dist/` older than its `src/`. This makes the release produce it.
646
659
  */
660
+ /**
661
+ * Move registry.wildo.ai's server to the image this release published, before the provider modules are sent to it
662
+ * (#3795). The server validates each manifest with its own schema, so a module using this release's new manifest
663
+ * vocabulary is refused by an older server: release 1.1.13 met exactly that (`OUTPUT_MODERATION`, 400 from 1.1.11).
664
+ *
665
+ * Like the provider step, the release does not depend on it: npm and Docker already hold the version. A host that is
666
+ * not configured, or an upgrade that fails or needs a full `deploy`, is a warning and a run annotation, and the
667
+ * provider step still runs (each module is judged on its own). A dry run only inspects, and says nothing when the
668
+ * host is not configured, since a dry run holds no credentials.
669
+ */
670
+ upgradeRegistryServer(ctx, frameworkRoot, version, wildo, dryRun) {
671
+ let configured;
672
+ try {
673
+ configured = loadRegistryHostConnection(frameworkRoot) !== null;
674
+ }
675
+ catch (error) {
676
+ ctx.log.warn(` The registry host's connection in the framework secrets does not read: ${describeCaughtError(error)}`);
677
+ configured = false;
678
+ }
679
+ const byHand = `wildo fwk registry-host upgrade --imageTag ${version}`;
680
+ if (!configured) {
681
+ if (dryRun) {
682
+ ctx.log.info(' The registry host is not configured here; the real release upgrades its server before the provider modules.');
683
+ return;
684
+ }
685
+ ctx.log.warn(` The registry host is not configured (moduleRegistryHost in the framework secrets), so its server keeps its image. Upgrade it with: ${byHand}`);
686
+ this.annotateIncomplete(`The registry server was not upgraded to ${version} (no moduleRegistryHost configured): a provider module using this release's new manifest vocabulary will be refused. Run: ${byHand}`);
687
+ return;
688
+ }
689
+ const args = ['fwk', 'registry-host', 'upgrade', ...(dryRun ? ['--dryRun'] : []), '--imageTag', version];
690
+ if (wildo(`registry server${dryRun ? ' (dry run)' : ''}`, args))
691
+ return;
692
+ ctx.log.warn(` The registry server was not ${dryRun ? 'found upgradable' : 'upgraded'} (see above); the provider modules are still sent. Once the cause is fixed: ${byHand}`);
693
+ this.annotateIncomplete(`The registry server ${dryRun ? 'could not be upgraded' : 'was not upgraded'} to ${version} (see the registry server step). Once the cause is fixed: ${byHand}`);
694
+ }
695
+ /** Raise `message` as a run annotation under GitHub Actions (see `githubWarningAnnotation`); a no-op elsewhere. */
696
+ annotateIncomplete(message) {
697
+ const annotation = githubWarningAnnotation(RELEASE_INCOMPLETE_ANNOTATION_TITLE, message);
698
+ if (annotation !== null)
699
+ process.stdout.write(`${annotation}\n`);
700
+ }
647
701
  buildProviderSimulators(ctx, frameworkRoot) {
648
702
  ctx.log.info('\n ── build the provider simulators ──');
649
703
  const cwd = join(frameworkRoot, PROVIDER_SIMULATORS_RELATIVE_PATH);
@@ -770,6 +824,14 @@ export default class FwkPublishAllCommand extends BaseCommand {
770
824
  }
771
825
  /** Point every configured image's `latest` alias at `version` — an alias-only step, nothing is rebuilt. */
772
826
  async repointLatest(ctx, frameworkRoot, version) {
827
+ // Its own login: a resume (`--skipDocker`) never ran the push that used to log in (#3063, run 43278280537).
828
+ try {
829
+ await FrameworkDockerPublishService.loginToRegistry(frameworkRoot);
830
+ }
831
+ catch (error) {
832
+ ctx.log.error(` Docker login before moving the latest alias failed: ${describeCaughtError(error)}`);
833
+ return false;
834
+ }
773
835
  for (const reference of await this.platformImageReferences(frameworkRoot, version)) {
774
836
  const alias = reference.replace(/:[^:/]+$/, `:${DEFAULT_NPM_DIST_TAG}`);
775
837
  if (!this.step(ctx, `Docker ${alias} → ${version}`, 'docker', ['buildx', 'imagetools', 'create', '-t', alias, reference], frameworkRoot))