@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
@@ -75,6 +75,13 @@ export var ProviderSimulatorsOrigin;
75
75
  /** The framework checkout's source, from the simulators' own lockfile. */
76
76
  ProviderSimulatorsOrigin["CHECKOUT"] = "checkout";
77
77
  })(ProviderSimulatorsOrigin || (ProviderSimulatorsOrigin = {}));
78
+ /** The developer fleet's command line: the default every locator below is asked for. */
79
+ export const DEVELOPER_FLEET_SIMULATORS_ENTRY = {
80
+ checkoutEntry: DEVELOPER_FLEET_ENTRY,
81
+ bin: DEVELOPER_FLEET_BIN,
82
+ purpose: 'run its systems of record locally',
83
+ otherwise: 'Or point each instance at a real vendor: its address in the local infra config, its secret with `wildo secrets set`.',
84
+ };
78
85
  /** The one line the plan command prints, before its JSON. Mirrors `DEVELOPER_FLEET_PLAN_SENTINEL` in the package. */
79
86
  export const DEVELOPER_FLEET_PLAN_SENTINEL = '__DEVELOPER_FLEET_PLAN__';
80
87
  /**
@@ -118,13 +125,13 @@ export class SystemOfRecordSimulatorsUnavailableError extends Error {
118
125
  * The remedy when the application has no fleet: the devDependency to declare, and the other way out. When the application
119
126
  * already declares it, the remedy is only the install. One function, so the verbs and their tests name the same thing.
120
127
  */
121
- export function describeMissingProviderSimulators(saasRoot) {
122
- const otherwise = 'Or point each instance at a real vendor: its address in the local infra config, its secret with `wildo secrets set`.';
128
+ export function describeMissingProviderSimulators(saasRoot, entryPoint = DEVELOPER_FLEET_SIMULATORS_ENTRY) {
129
+ const otherwise = entryPoint.otherwise;
123
130
  if (applicationDeclaresProviderSimulators(saasRoot)) {
124
131
  return `The application declares ${PROVIDER_SIMULATORS_PACKAGE} but it is not installed: run \`wildo config sync\` (it links the package to `
125
132
  + `your framework release) and \`pnpm install\`. ${otherwise}`;
126
133
  }
127
- return `The provider simulator fleet is not installed in this application. To run its systems of record locally, add `
134
+ return `The provider simulators are not installed in this application. To ${entryPoint.purpose}, add `
128
135
  + `"${PROVIDER_SIMULATORS_PACKAGE}": "*" to the devDependencies of the application's root package.json, run \`wildo config sync\` `
129
136
  + `(it links the package to your framework release) and \`pnpm install\`. ${otherwise}`;
130
137
  }
@@ -150,7 +157,7 @@ function applicationDeclaresProviderSimulators(saasRoot) {
150
157
  * since a manifest is not a code subpath, and resolving through `exports` would also turn any resolution error into "not
151
158
  * installed" and quietly fall back to a checkout.
152
159
  */
153
- export function resolveInstalledProviderSimulators(saasRoot) {
160
+ export function resolveInstalledProviderSimulators(saasRoot, entryPoint = DEVELOPER_FLEET_SIMULATORS_ENTRY) {
154
161
  const lookup = createRequire(join(saasRoot, 'package.json')).resolve.paths(PROVIDER_SIMULATORS_PACKAGE) ?? [];
155
162
  const candidate = lookup.map((directory) => join(directory, PROVIDER_SIMULATORS_PACKAGE)).find((root) => existsSync(join(root, 'package.json')));
156
163
  if (candidate === undefined)
@@ -163,12 +170,13 @@ export function resolveInstalledProviderSimulators(saasRoot) {
163
170
  catch (error) {
164
171
  throw new SystemOfRecordSimulatorsUnavailableError(`The application has ${PROVIDER_SIMULATORS_PACKAGE} at ${root}, but its package.json cannot be read (${error.message}). Reinstall it with \`pnpm install\`.`);
165
172
  }
166
- const binEntry = typeof manifest.bin === 'object' ? manifest.bin[DEVELOPER_FLEET_BIN] : undefined;
173
+ const binEntry = typeof manifest.bin === 'object' ? manifest.bin[entryPoint.bin] : undefined;
167
174
  const entry = binEntry === undefined ? undefined : join(root, binEntry);
168
175
  if (entry === undefined || !existsSync(entry)) {
169
176
  throw new SystemOfRecordSimulatorsUnavailableError(`The application has ${PROVIDER_SIMULATORS_PACKAGE}${manifest.version === undefined ? '' : `@${manifest.version}`} at ${root}, but it carries no `
170
- + `built developer fleet (its \`${DEVELOPER_FLEET_BIN}\` command line${entry === undefined ? ' is not declared' : ` is missing: ${entry}`}). `
171
- + 'Reinstall it with `pnpm install`. When it is linked to a framework checkout, build it there first: '
177
+ + `built \`${entryPoint.bin}\` command line (${entry === undefined ? 'it is not declared' : `it is missing: ${entry}`}). `
178
+ + 'Reinstall it with `pnpm install`; when the command line is not declared at all, the installed release predates it, so move '
179
+ + 'to a framework release that carries it (`wildo update`). When it is linked to a framework checkout, build it there first: '
172
180
  + `(cd <framework>/${PROVIDER_SIMULATORS_RELATIVE_PATH} && pnpm install && pnpm run build).`);
173
181
  }
174
182
  return { origin: ProviderSimulatorsOrigin.APPLICATION, root, command: process.execPath, launchArguments: [SILENCED_NODE_WARNING, entry], cwd: saasRoot };
@@ -178,19 +186,20 @@ export function resolveInstalledProviderSimulators(saasRoot) {
178
186
  * COULD-NOT-ASK naming the devDependency to add (#3047).
179
187
  */
180
188
  export function locateProviderSimulators(input) {
181
- const installed = resolveInstalledProviderSimulators(input.saasRoot);
189
+ const entryPoint = input.entry ?? DEVELOPER_FLEET_SIMULATORS_ENTRY;
190
+ const installed = resolveInstalledProviderSimulators(input.saasRoot, entryPoint);
182
191
  if (installed !== null)
183
192
  return installed;
184
193
  if (input.frameworkRoot === null)
185
- throw new SystemOfRecordSimulatorsUnavailableError(describeMissingProviderSimulators(input.saasRoot));
194
+ throw new SystemOfRecordSimulatorsUnavailableError(describeMissingProviderSimulators(input.saasRoot, entryPoint));
186
195
  const simulatorsRoot = join(input.frameworkRoot, PROVIDER_SIMULATORS_RELATIVE_PATH);
187
- if (!existsSync(join(simulatorsRoot, DEVELOPER_FLEET_ENTRY))) {
188
- throw new SystemOfRecordSimulatorsUnavailableError(`The framework checkout at ${input.frameworkRoot} has no developer fleet (${PROVIDER_SIMULATORS_RELATIVE_PATH}/${DEVELOPER_FLEET_ENTRY}); update it.`);
196
+ if (!existsSync(join(simulatorsRoot, entryPoint.checkoutEntry))) {
197
+ throw new SystemOfRecordSimulatorsUnavailableError(`The framework checkout at ${input.frameworkRoot} has no ${entryPoint.bin} (${PROVIDER_SIMULATORS_RELATIVE_PATH}/${entryPoint.checkoutEntry}); update it.`);
189
198
  }
190
199
  if (!existsSync(join(simulatorsRoot, 'node_modules'))) {
191
200
  throw new SystemOfRecordSimulatorsUnavailableError(`The provider simulators are not installed. They keep their own lockfile:\n\n (cd ${simulatorsRoot} && pnpm install)\n`);
192
201
  }
193
- return { origin: ProviderSimulatorsOrigin.CHECKOUT, root: simulatorsRoot, command: 'pnpm', launchArguments: ['exec', 'tsx', DEVELOPER_FLEET_ENTRY], cwd: simulatorsRoot };
202
+ return { origin: ProviderSimulatorsOrigin.CHECKOUT, root: simulatorsRoot, command: 'pnpm', launchArguments: ['exec', 'tsx', entryPoint.checkoutEntry], cwd: simulatorsRoot };
194
203
  }
195
204
  /**
196
205
  * The application's port base: the lowest `defaultPort` among its backend services (a service with no `frontendType`),
@@ -1 +1 @@
1
- {"version":3,"file":"system-of-record-simulators.service.js","sourceRoot":"","sources":["../../../../src/services/application/system-of-record-simulators.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAW,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,iBAAiB,EAA4D,MAAM,+BAA+B,CAAC;AAC5H,OAAO,EAAE,8BAA8B,EAAE,MAAM,uBAAuB,CAAC;AAEvE,OAAO,EAAE,0BAA0B,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AACxH,OAAO,EAAE,o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AAM,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;IACpM,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,GAAG,GAAG,CAAC,MAAM,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,KAAK,EAAE,OAAO,IAAI,0CAA0C,CAAC,CAAC;IAC3J,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["/**\n * Runs an application's systems of record against the provider simulator fleet on a developer machine (#3039): the\n * service behind `wildo local sor-simulators`, `wildo local sor-secrets` and `wildo local sor-addresses`.\n *\n * ## What it derives, and from what\n *\n * Everything is derived from what the application already declares, so a created application gets a working local ERP\n * the moment its CONFIG task declares an instance, with nothing restated by hand:\n *\n * - **which instances**: `systemsOfRecord` in `wildo.saas.config.ts`, kept to those whose LOCAL address is absent or\n * loopback. An instance addressed at a real vendor, or declared `{ enabled: false }`, is the developer's decision and\n * is reported, never overridden.\n * - **which ports**: the application's port block, its allocated port base (the lowest backend `defaultPort`, which\n * `wildo init`'s allocator keeps unique among sibling applications) plus {@link SYSTEM_OF_RECORD_SIMULATOR_PORT_OFFSET}.\n * Two applications on one machine therefore never contend for a face.\n * - **which data**: `system-of-record-simulators/fleet.dataset.ts` (neutral) or `fleet.fixture.ts` (vendor-shaped) at\n * the application root, else the fleet's starter dataset.\n * - **addresses, secrets, faces**: the simulators package's developer-fleet plan, asked through its own command line,\n * because that package is not a dependency of this CLI. Where that command line is found is\n * {@link locateProviderSimulators}.\n *\n * ## The join with the engine\n *\n * The plan restates each vendor's slots, because the simulators import nothing from Wildo. So before a secret is seeded\n * or an address written, the plan is checked against the slots the ENGINE resolves for the instance\n * ({@link resolveDeclaredSystemOfRecordSecrets}): a required slot the plan does not fill, or a slot the engine does not\n * have, refuses that instance. A double cannot silently drift from the facet it stands in for.\n *\n * ## Where the fleet comes from (#3047)\n *\n * `@wildo-ai/provider-simulators` is a published OPT-IN framework package (decided by Paul, 2026-10-21): an application\n * that wants a local system of record declares it as a devDependency of its root (`\"*\"`, linked by `wildo config sync`\n * to its framework release, or to a `file:` path in a framework checkout). The fleet is looked for in this order:\n *\n * 1. **the application's own `node_modules`**: the package it declared, run as its `bin` with this CLI's node. That is\n * what an application created in app-creator mode has, and what a framework-development application that declares\n * the package runs too, so both modes run the same artifact;\n * 2. **the framework checkout**: the package's source, run with tsx from its own lockfile. What the dogfood applications\n * use, since they do not declare it;\n * 3. neither: every verb answers COULD-NOT-ASK (exit 2) naming the devDependency to add, never a blocked task. Pointing\n * the instance at a real vendor is the other way out.\n *\n * An application that declares the package and has it broken (installed without its build) is refused with that\n * remedy, rather than silently served from a checkout it did not choose.\n */\nimport { spawn, spawnSync } from 'node:child_process';\nimport { generateKeyPairSync } from 'node:crypto';\nimport { existsSync, readFileSync, realpathSync, writeFileSync } from 'node:fs';\nimport { createRequire } from 'node:module';\nimport { dirname, join } from 'node:path';\n\nimport { WildoLocationType, type WildoSaasConfig, type WildoSystemsOfRecordEnvConfig } from '@wildo-ai/platform-config-lib';\nimport { deriveSystemOfRecordEnvVarName } from '@wildo-ai/saas-models';\n\nimport { loadAuthoredInfraEnvConfig, resolveAuthoredInfraConfigPath } from '../environment/authored-infra-config.utils';\nimport { resolveDeclaredSystemOfRecordSecrets, type DeclaredSystemOfRecordSecrets } from '../credentials/application-secret-owners.service';\nimport { writeInstanceAddresses } from './infra-system-of-record-addresses.editor';\n\n/** The simulators package, relative to the framework checkout. */\nexport const PROVIDER_SIMULATORS_RELATIVE_PATH = 'platform/testing/provider-simulators';\n\n/** The simulators' published package name: the devDependency an application declares to run the fleet (#3047). */\nexport const PROVIDER_SIMULATORS_PACKAGE = '@wildo-ai/provider-simulators';\n\n/** The developer fleet's command line inside that package, as SOURCE (the checkout form, run with tsx). */\nexport const DEVELOPER_FLEET_ENTRY = 'src/developer-fleet/main.ts';\n\n/** The developer fleet's command line as the published package declares it: its `bin` name (the installed form). */\nexport const DEVELOPER_FLEET_BIN = 'wildo-provider-simulators-fleet';\n\n/**\n * Node's warning when it loads the application's `.ts` data module from a package with no `\"type\"`: true, harmless, and\n * printed on stderr, whose LAST line is how a refusal is reported. Silenced in the installed form, where node (not tsx)\n * loads that module.\n */\nconst SILENCED_NODE_WARNING = '--disable-warning=MODULE_TYPELESS_PACKAGE_JSON';\n\n/** Where the fleet's command line was found. */\nexport enum ProviderSimulatorsOrigin {\n /** The application's own `node_modules`: the package it declared as a devDependency. */\n APPLICATION = 'application',\n /** The framework checkout's source, from the simulators' own lockfile. */\n CHECKOUT = 'checkout',\n}\n\n/** How to run the developer fleet's command line: `command ...launchArguments <subcommand> …`, in `cwd`. */\nexport interface ProviderSimulatorsLocation {\n readonly origin: ProviderSimulatorsOrigin;\n /** The package root that was found. */\n readonly root: string;\n readonly command: string;\n readonly launchArguments: readonly string[];\n readonly cwd: string;\n}\n\n/** The one line the plan command prints, before its JSON. Mirrors `DEVELOPER_FLEET_PLAN_SENTINEL` in the package. */\nexport const DEVELOPER_FLEET_PLAN_SENTINEL = '__DEVELOPER_FLEET_PLAN__';\n\n/**\n * The application's simulator port block starts this far above its port base: 4301 → 18301, 4311 → 18311. The block the\n * two dogfood applications already used, and above every port tier the CLI allocates (4xxx services, 5xxx platform), so\n * it cannot meet one of them. A port base is allocated on a stride of 10 and the fleet uses 8 of the 10.\n */\nexport const SYSTEM_OF_RECORD_SIMULATOR_PORT_OFFSET = 14_000;\n\n/** Where an application keeps the records its fleet serves, relative to its root. The two forms are exclusive. */\nexport const APPLICATION_FLEET_DATASET_RELATIVE_PATH = 'system-of-record-simulators/fleet.dataset.ts';\nexport const APPLICATION_FLEET_FIXTURE_RELATIVE_PATH = 'system-of-record-simulators/fleet.fixture.ts';\n\n/** The environment these verbs act on: the developer machine. */\nconst LOCAL_ENVIRONMENT = WildoLocationType.LOCAL;\n\n/** Hosts an address may name and still be \"this machine's fleet\". */\nconst LOOPBACK_HOSTS: ReadonlySet<string> = new Set(['127.0.0.1', 'localhost', '[::1]', '::1']);\n\n/**\n * How many ports of the application's block the fleet may use: the faces sit at offsets 0–7 (the simulators'\n * `DEVELOPER_FLEET_FACE_PORT_OFFSET`). An address on this machine OUTSIDE that range is not the fleet's — a vendor\n * sandbox tunnelled to localhost, another double — and is left alone with its real secret.\n */\nexport const FLEET_PORT_BLOCK_SIZE = 8;\n\n/** What a verb decided about one declared instance's local address. */\nexport enum SystemOfRecordLocalStanding {\n /** No address yet, or a loopback one inside the application's fleet port block: the fleet serves it. */\n FLEET = 'fleet',\n /** `{ enabled: false }`: the environment says it has no access. Left alone. */\n DECLARED_ABSENT = 'declared-absent',\n /**\n * Addressed somewhere the fleet does not listen: another host (a real vendor), or this machine outside the fleet's\n * port block (a tunnelled sandbox, another double). Left alone, address and secret.\n */\n REAL_VENDOR = 'real-vendor',\n}\n\nexport interface ClassifiedSystemOfRecordInstance {\n readonly name: string;\n readonly vendor: string;\n readonly credentialKind?: string;\n /** The dialect the instance declares — it decides the fleet's plan for a vendor spoken over several wires (#3391). */\n readonly dialect: string;\n readonly standing: SystemOfRecordLocalStanding;\n /** The address the local infra config authors today, when it authors one. */\n readonly currentAddress?: Readonly<Record<string, string>>;\n}\n\n/** The plan as the simulators print it: the JSON contract of `main.ts plan`, minus nothing this CLI reads. */\nexport interface DeveloperFleetPlanContract {\n readonly portBlockStart: number;\n readonly faces: ReadonlyArray<{ readonly face: string; readonly port: number }>;\n readonly instances: ReadonlyArray<{\n readonly name: string;\n readonly vendor: string;\n readonly face: string;\n readonly credentialKind: string;\n readonly address: Readonly<Record<string, string>>;\n readonly secrets: ReadonlyArray<{ readonly slot: string; readonly source: string; readonly value?: string }>;\n }>;\n readonly unserved: ReadonlyArray<{ readonly name: string; readonly vendor: string; readonly reason: string }>;\n readonly dataKind: string;\n readonly omissions: readonly string[];\n}\n\n/** The value of `secrets[].source` that asks the caller to generate a private key (`DeveloperFleetSecretSource`). */\nexport const GENERATE_RSA_PKCS8_PRIVATE_KEY = 'generate-rsa-pkcs8-private-key';\n\n/** A verb that could not even ask: the fleet is unreachable, or the application gives it nothing to plan. */\nexport class SystemOfRecordSimulatorsUnavailableError extends Error {}\n\nexport interface SystemOfRecordSimulatorsContext {\n readonly saasRoot: string;\n readonly simulators: ProviderSimulatorsLocation;\n readonly portBlockStart: number;\n readonly instances: readonly ClassifiedSystemOfRecordInstance[];\n /** `['--dataset', path]`, `['--fixture', path]`, or `[]` for the starter dataset. */\n readonly dataArguments: readonly string[];\n readonly infraConfigPath: string;\n}\n\n/**\n * The remedy when the application has no fleet: the devDependency to declare, and the other way out. When the application\n * already declares it, the remedy is only the install. One function, so the verbs and their tests name the same thing.\n */\nexport function describeMissingProviderSimulators(saasRoot: string): string {\n const otherwise = 'Or point each instance at a real vendor: its address in the local infra config, its secret with `wildo secrets set`.';\n if (applicationDeclaresProviderSimulators(saasRoot)) {\n return `The application declares ${PROVIDER_SIMULATORS_PACKAGE} but it is not installed: run \\`wildo config sync\\` (it links the package to `\n + `your framework release) and \\`pnpm install\\`. ${otherwise}`;\n }\n return `The provider simulator fleet is not installed in this application. To run its systems of record locally, add `\n + `\"${PROVIDER_SIMULATORS_PACKAGE}\": \"*\" to the devDependencies of the application's root package.json, run \\`wildo config sync\\` `\n + `(it links the package to your framework release) and \\`pnpm install\\`. ${otherwise}`;\n}\n\n/** Whether the application's root manifest declares the simulators, in any dependency field. */\nfunction applicationDeclaresProviderSimulators(saasRoot: string): boolean {\n const manifestPath = join(saasRoot, 'package.json');\n if (!existsSync(manifestPath)) return false;\n try {\n const manifest = JSON.parse(readFileSync(manifestPath, 'utf8')) as Partial<Record<string, Record<string, string>>>;\n return ['dependencies', 'devDependencies', 'optionalDependencies'].some((field) => manifest[field]?.[PROVIDER_SIMULATORS_PACKAGE] !== undefined);\n } catch {\n return false;\n }\n}\n\n/**\n * The package as the APPLICATION resolves it, or `null` when the application does not have it. Throws when it has it\n * but cannot run it: the application chose that copy, so it is reported rather than replaced by another.\n *\n * Found by Node's own lookup order (`require.resolve.paths`: the `node_modules` directories from the application root\n * upward), reading the manifest at each, rather than by resolving a specifier: the package exports no `./package.json`,\n * since a manifest is not a code subpath, and resolving through `exports` would also turn any resolution error into \"not\n * installed\" and quietly fall back to a checkout.\n */\nexport function resolveInstalledProviderSimulators(saasRoot: string): ProviderSimulatorsLocation | null {\n const lookup = createRequire(join(saasRoot, 'package.json')).resolve.paths(PROVIDER_SIMULATORS_PACKAGE) ?? [];\n const candidate = lookup.map((directory) => join(directory, PROVIDER_SIMULATORS_PACKAGE)).find((root) => existsSync(join(root, 'package.json')));\n if (candidate === undefined) return null;\n const root = realpathSync(candidate);\n let manifest: { bin?: Record<string, string> | string; version?: string };\n try {\n manifest = JSON.parse(readFileSync(join(root, 'package.json'), 'utf8')) as typeof manifest;\n } catch (error) {\n throw new SystemOfRecordSimulatorsUnavailableError(`The application has ${PROVIDER_SIMULATORS_PACKAGE} at ${root}, but its package.json cannot be read (${(error as Error).message}). Reinstall it with \\`pnpm install\\`.`);\n }\n const binEntry = typeof manifest.bin === 'object' ? manifest.bin[DEVELOPER_FLEET_BIN] : undefined;\n const entry = binEntry === undefined ? undefined : join(root, binEntry);\n if (entry === undefined || !existsSync(entry)) {\n throw new SystemOfRecordSimulatorsUnavailableError(\n `The application has ${PROVIDER_SIMULATORS_PACKAGE}${manifest.version === undefined ? '' : `@${manifest.version}`} at ${root}, but it carries no `\n + `built developer fleet (its \\`${DEVELOPER_FLEET_BIN}\\` command line${entry === undefined ? ' is not declared' : ` is missing: ${entry}`}). `\n + 'Reinstall it with `pnpm install`. When it is linked to a framework checkout, build it there first: '\n + `(cd <framework>/${PROVIDER_SIMULATORS_RELATIVE_PATH} && pnpm install && pnpm run build).`,\n );\n }\n return { origin: ProviderSimulatorsOrigin.APPLICATION, root, command: process.execPath, launchArguments: [SILENCED_NODE_WARNING, entry], cwd: saasRoot };\n}\n\n/**\n * Where the developer fleet's command line is: the application's own copy first, then the framework checkout, else\n * COULD-NOT-ASK naming the devDependency to add (#3047).\n */\nexport function locateProviderSimulators(input: { readonly saasRoot: string; readonly frameworkRoot: string | null }): ProviderSimulatorsLocation {\n const installed = resolveInstalledProviderSimulators(input.saasRoot);\n if (installed !== null) return installed;\n if (input.frameworkRoot === null) throw new SystemOfRecordSimulatorsUnavailableError(describeMissingProviderSimulators(input.saasRoot));\n const simulatorsRoot = join(input.frameworkRoot, PROVIDER_SIMULATORS_RELATIVE_PATH);\n if (!existsSync(join(simulatorsRoot, DEVELOPER_FLEET_ENTRY))) {\n throw new SystemOfRecordSimulatorsUnavailableError(`The framework checkout at ${input.frameworkRoot} has no developer fleet (${PROVIDER_SIMULATORS_RELATIVE_PATH}/${DEVELOPER_FLEET_ENTRY}); update it.`);\n }\n if (!existsSync(join(simulatorsRoot, 'node_modules'))) {\n throw new SystemOfRecordSimulatorsUnavailableError(`The provider simulators are not installed. They keep their own lockfile:\\n\\n (cd ${simulatorsRoot} && pnpm install)\\n`);\n }\n return { origin: ProviderSimulatorsOrigin.CHECKOUT, root: simulatorsRoot, command: 'pnpm', launchArguments: ['exec', 'tsx', DEVELOPER_FLEET_ENTRY], cwd: simulatorsRoot };\n}\n\n/**\n * The application's port base: the lowest `defaultPort` among its backend services (a service with no `frontendType`),\n * which is what `wildo init` allocated. Refused when no backend declares one: an invented block could land on another\n * application's fleet.\n */\nexport function resolveApplicationPortBase(saasConfig: Pick<WildoSaasConfig, 'services'>): number {\n const ports = Object.values(saasConfig.services ?? {})\n .filter((service) => service.frontendType === undefined && typeof service.defaultPort === 'number')\n .map((service) => service.defaultPort as number);\n if (ports.length === 0) {\n throw new SystemOfRecordSimulatorsUnavailableError('No backend service in wildo.saas.config.ts declares a `defaultPort`, so the application has no port block for its simulators.');\n }\n return Math.min(...ports);\n}\n\n/** Is this address the fleet's: on this machine, on a port of the application's fleet block? */\nfunction isFleetAddress(address: Readonly<Record<string, string>>, portBlockStart: number): boolean {\n const baseUrl = address.baseUrl;\n if (baseUrl === undefined) return false;\n try {\n const url = new URL(baseUrl);\n const port = Number(url.port);\n return LOOPBACK_HOSTS.has(url.hostname) && Number.isInteger(port) && port >= portBlockStart && port < portBlockStart + FLEET_PORT_BLOCK_SIZE;\n } catch {\n return false;\n }\n}\n\n/** Every declared instance with its local standing. Pure over the two declarations and the application's port block. */\nexport function classifySystemOfRecordInstances(\n declared: WildoSaasConfig['systemsOfRecord'],\n localAddresses: WildoSystemsOfRecordEnvConfig | undefined,\n portBlockStart: number,\n): ClassifiedSystemOfRecordInstance[] {\n return Object.entries(declared ?? {}).map(([name, declaration]) => {\n const local = localAddresses?.[name];\n const base = {\n name,\n vendor: declaration.vendor,\n dialect: declaration.dialect,\n ...(declaration.credential?.kind === undefined ? {} : { credentialKind: declaration.credential.kind }),\n };\n if (local !== undefined && 'enabled' in local) return { ...base, standing: SystemOfRecordLocalStanding.DECLARED_ABSENT };\n const currentAddress = local === undefined || !('address' in local) ? undefined : local.address;\n if (currentAddress === undefined) return { ...base, standing: SystemOfRecordLocalStanding.FLEET };\n return { ...base, currentAddress, standing: isFleetAddress(currentAddress, portBlockStart) ? SystemOfRecordLocalStanding.FLEET : SystemOfRecordLocalStanding.REAL_VENDOR };\n });\n}\n\n/** The application's data module, as plan arguments. Both forms present is refused: a fleet starts from one. */\nexport function resolveApplicationFleetData(saasRoot: string): string[] {\n const dataset = join(saasRoot, APPLICATION_FLEET_DATASET_RELATIVE_PATH);\n const fixture = join(saasRoot, APPLICATION_FLEET_FIXTURE_RELATIVE_PATH);\n if (existsSync(dataset) && existsSync(fixture)) {\n throw new SystemOfRecordSimulatorsUnavailableError(`Both ${APPLICATION_FLEET_DATASET_RELATIVE_PATH} and ${APPLICATION_FLEET_FIXTURE_RELATIVE_PATH} exist; a fleet starts from one description of its data. Remove one.`);\n }\n if (existsSync(dataset)) return ['--dataset', dataset];\n if (existsSync(fixture)) return ['--fixture', fixture];\n return [];\n}\n\n/** Everything a verb needs, loaded once. */\nexport async function loadSystemOfRecordSimulatorsContext(input: {\n readonly saasRoot: string;\n readonly frameworkRoot: string | null;\n readonly saasConfig: WildoSaasConfig;\n}): Promise<SystemOfRecordSimulatorsContext> {\n const simulators = locateProviderSimulators({ saasRoot: input.saasRoot, frameworkRoot: input.frameworkRoot });\n if (Object.keys(input.saasConfig.systemsOfRecord ?? {}).length === 0) {\n throw new SystemOfRecordSimulatorsUnavailableError('wildo.saas.config.ts declares no system of record, so there is nothing for the simulators to serve.');\n }\n const infra = await loadAuthoredInfraEnvConfig(LOCAL_ENVIRONMENT, input.saasRoot);\n const portBlockStart = resolveApplicationPortBase(input.saasConfig) + SYSTEM_OF_RECORD_SIMULATOR_PORT_OFFSET;\n return {\n saasRoot: input.saasRoot,\n simulators,\n portBlockStart,\n instances: classifySystemOfRecordInstances(input.saasConfig.systemsOfRecord, infra?.config.systemsOfRecord, portBlockStart),\n dataArguments: resolveApplicationFleetData(input.saasRoot),\n infraConfigPath: infra?.path ?? resolveAuthoredInfraConfigPath(input.saasRoot, LOCAL_ENVIRONMENT),\n };\n}\n\n/** The developer-fleet command line's arguments for one subcommand. */\nfunction fleetArguments(context: SystemOfRecordSimulatorsContext, subcommand: 'plan' | 'serve'): string[] {\n const instances = context.instances\n .filter(({ standing }) => standing === SystemOfRecordLocalStanding.FLEET)\n .map(({ name, vendor, credentialKind, dialect }) => ({ name, vendor, dialect, ...(credentialKind === undefined ? {} : { credentialKind }) }));\n return [...context.simulators.launchArguments, subcommand, '--port-block', String(context.portBlockStart), '--instances', JSON.stringify(instances), ...context.dataArguments];\n}\n\n/** Read the plan line out of the command's stdout. Exported for its test. */\nexport function parseDeveloperFleetPlanOutput(stdout: string): DeveloperFleetPlanContract {\n const line = stdout.split('\\n').find((candidate) => candidate.startsWith(DEVELOPER_FLEET_PLAN_SENTINEL));\n if (line === undefined) throw new Error('The developer fleet printed no plan.');\n return JSON.parse(line.slice(DEVELOPER_FLEET_PLAN_SENTINEL.length)) as DeveloperFleetPlanContract;\n}\n\n/** Ask the simulators for the plan. A refusal there (a malformed dataset) is reported with its own last line. */\nexport function requestDeveloperFleetPlan(context: SystemOfRecordSimulatorsContext): DeveloperFleetPlanContract {\n const run = spawnSync(context.simulators.command, fleetArguments(context, 'plan'), { cwd: context.simulators.cwd, encoding: 'utf8', timeout: 120_000 });\n if (run.status !== 0) {\n const reason = `${run.stderr ?? ''}`.trim().split('\\n').at(-1) || run.error?.message || `exit ${String(run.status)}`;\n throw new Error(`The developer fleet could not plan: ${reason}`);\n }\n return parseDeveloperFleetPlanOutput(run.stdout);\n}\n\n/**\n * Refuse, as could-not-ask, a plan that serves nothing: every declared instance is left alone or unserved, so none of\n * the three verbs has anything to do. One rule for all three, so they answer the same exit code for the same state.\n */\nexport function requireServedInstances(plan: DeveloperFleetPlanContract): void {\n if (plan.instances.length === 0) {\n throw new SystemOfRecordSimulatorsUnavailableError('No declared system of record is served by the simulators (see above), so there is nothing to do.');\n }\n}\n\n/** One instance's local address compared with the plan's. */\nexport interface FleetAddressComparison {\n readonly name: string;\n readonly expected: Readonly<Record<string, string>>;\n readonly current?: Readonly<Record<string, string>>;\n readonly matches: boolean;\n /** One phrase per slot that differs (`certificateKeyId is 'a', the simulators need 'b'`). Empty when it matches or has no address. */\n readonly differences: readonly string[];\n}\n\n/** Each planned instance's address against what the local infra config authors. Pure. */\nexport function compareFleetAddresses(plan: DeveloperFleetPlanContract, instances: readonly ClassifiedSystemOfRecordInstance[]): FleetAddressComparison[] {\n return plan.instances.map(({ name, address }) => {\n const current = instances.find((instance) => instance.name === name)?.currentAddress;\n const differences = current === undefined ? [] : [...new Set([...Object.keys(address), ...Object.keys(current)])].flatMap((slot) => {\n if (current[slot] === address[slot]) return [];\n if (address[slot] === undefined) return [`${slot} is set and the simulators use no such slot`];\n return [current[slot] === undefined ? `${slot} is missing (the simulators need '${address[slot]}')` : `${slot} is '${current[slot]}', the simulators need '${address[slot]}'`];\n });\n return { name, expected: address, ...(current === undefined ? {} : { current }), matches: current !== undefined && differences.length === 0, differences };\n });\n}\n\n/**\n * The plan checked against the slots the engine resolves for each instance. Answers, per instance, why it is refused\n * (empty when it is not), plus what could not be checked. Pure over its inputs; the caller resolves the engine's slots.\n */\nexport function checkPlanAgainstEngineSlots(\n plan: DeveloperFleetPlanContract,\n engine: { readonly systems: readonly DeclaredSystemOfRecordSecrets[]; readonly incomplete: readonly string[] },\n): { readonly refused: ReadonlyMap<string, string>; readonly unchecked: readonly string[] } {\n const refused = new Map<string, string>();\n const unchecked: string[] = [...engine.incomplete];\n for (const instance of plan.instances) {\n const resolved = engine.systems.find(({ name }) => name === instance.name);\n if (resolved === undefined || resolved.secretSlots === null) {\n unchecked.push(`System of record '${instance.name}': the engine's slots could not be resolved, so the plan's slots are not checked against them.`);\n continue;\n }\n const problems: string[] = [];\n const plannedSecrets = new Set(instance.secrets.map(({ slot }) => slot));\n for (const slot of resolved.secretSlots) {\n if (slot.required && !plannedSecrets.has(slot.slug)) problems.push(`the engine requires the secret slot '${slot.slug}' and the fleet does not provide it`);\n }\n for (const slot of plannedSecrets) {\n if (!resolved.secretSlots.some(({ slug }) => slug === slot)) problems.push(`the fleet provides a secret slot '${slot}' the engine does not have`);\n }\n if (resolved.addressSlots !== null) {\n for (const slot of resolved.addressSlots) {\n if (slot.required && instance.address[slot.slug] === undefined) problems.push(`the engine requires the address slot '${slot.slug}' and the fleet does not provide it`);\n }\n for (const slot of Object.keys(instance.address)) {\n if (!resolved.addressSlots.some(({ slug }) => slug === slot)) problems.push(`the fleet provides an address slot '${slot}' the engine does not have`);\n }\n } else {\n unchecked.push(`System of record '${instance.name}': its address slots could not be read from its facet, so they are not checked.`);\n }\n if (problems.length > 0) refused.set(instance.name, problems.join('; '));\n }\n return { refused, unchecked };\n}\n\n/** The engine's slots for the declared instances, through the same resolution `wildo secrets` uses. */\nexport async function resolveEngineSlots(saasRoot: string, saasConfig: WildoSaasConfig): ReturnType<typeof resolveDeclaredSystemOfRecordSecrets> {\n return resolveDeclaredSystemOfRecordSecrets({ saasRoot, declared: saasConfig.systemsOfRecord ?? {} });\n}\n\n/** An unencrypted PKCS#8 RSA private key, generated on this machine (the form NetSuite's certificate slot requires). */\nfunction generatePrivateKeyPem(): string {\n return generateKeyPairSync('rsa', { modulusLength: 2048, privateKeyEncoding: { type: 'pkcs8', format: 'pem' }, publicKeyEncoding: { type: 'spki', format: 'pem' } }).privateKey;\n}\n\n/** One secret a seeding run sets: its derived variable name and its value. */\nexport interface FleetSecretToSet {\n readonly instance: string;\n readonly envVarName: string;\n readonly value: string;\n}\n\n/**\n * The secrets to seed for the planned instances the engine check did not refuse. Pure but for key generation, which a\n * dry run skips (`generateKeys: false` leaves a generated slot's value empty).\n */\nexport function fleetSecretsToSet(plan: DeveloperFleetPlanContract, refused: ReadonlyMap<string, string>, options: { readonly generateKeys?: boolean } = {}): FleetSecretToSet[] {\n const generateKeys = options.generateKeys !== false;\n return plan.instances\n .filter(({ name }) => !refused.has(name))\n .flatMap(({ name, secrets }) => secrets.map((secret) => ({\n instance: name,\n envVarName: deriveSystemOfRecordEnvVarName(name, secret.slot),\n value: secret.source === GENERATE_RSA_PKCS8_PRIVATE_KEY ? (generateKeys ? generatePrivateKeyPem() : '') : secret.value!,\n })));\n}\n\n/** Write the planned addresses into the local infra config, for the instances the engine check did not refuse. */\nexport function writeFleetAddresses(context: SystemOfRecordSimulatorsContext, plan: DeveloperFleetPlanContract, refused: ReadonlyMap<string, string>): string[] {\n const instances = plan.instances.filter(({ name }) => !refused.has(name)).map(({ name, address }) => ({ name, address }));\n if (!existsSync(context.infraConfigPath)) {\n throw new SystemOfRecordSimulatorsUnavailableError(`There is no local infra config at ${context.infraConfigPath} to write the addresses into.`);\n }\n const before = readFileSync(context.infraConfigPath, 'utf8');\n const after = writeInstanceAddresses(before, context.infraConfigPath, instances);\n if (after !== before) writeFileSync(context.infraConfigPath, after, 'utf8');\n return instances.map(({ name }) => name);\n}\n\n/**\n * Start the fleet in the foreground, its output inherited, until it exits or this process is interrupted. Resolves with\n * the fleet's exit code, or 0 when the developer stopped it (Ctrl-C is how it is meant to end, whatever code the\n * interrupted child chain reports).\n */\nexport function serveDeveloperFleet(context: SystemOfRecordSimulatorsContext): Promise<number> {\n return new Promise((resolve) => {\n const child = spawn(context.simulators.command, fleetArguments(context, 'serve'), { cwd: context.simulators.cwd, stdio: 'inherit' });\n let stopped = false;\n const forward = (signal: NodeJS.Signals): void => {\n stopped = true;\n if (!child.killed) child.kill(signal);\n };\n process.on('SIGINT', forward);\n process.on('SIGTERM', forward);\n child.on('error', (error) => {\n process.off('SIGINT', forward);\n process.off('SIGTERM', forward);\n // eslint-disable-next-line no-console\n console.error(`The developer fleet could not start: ${error.message}`);\n resolve(1);\n });\n child.on('exit', (code, signal) => {\n process.off('SIGINT', forward);\n process.off('SIGTERM', forward);\n resolve(stopped ? 0 : code ?? (signal === null ? 0 : 1));\n });\n });\n}\n\n/** Copy the starter dataset into the application, refusing to replace a file. */\nexport function scaffoldApplicationFleetDataset(context: Pick<SystemOfRecordSimulatorsContext, 'saasRoot' | 'simulators'>): string {\n const target = join(context.saasRoot, APPLICATION_FLEET_DATASET_RELATIVE_PATH);\n if (existsSync(join(context.saasRoot, APPLICATION_FLEET_FIXTURE_RELATIVE_PATH))) {\n throw new Error(`${APPLICATION_FLEET_FIXTURE_RELATIVE_PATH} already describes this application's data; a fleet starts from one description, so no dataset is scaffolded beside it.`);\n }\n const run = spawnSync(context.simulators.command, [...context.simulators.launchArguments, 'scaffold-dataset', '--to', target], { cwd: context.simulators.cwd, encoding: 'utf8', timeout: 120_000 });\n if (run.status !== 0) throw new Error(`${run.stderr ?? ''}`.trim().split('\\n').at(-1) || run.error?.message || 'the starter dataset could not be written');\n return target;\n}\n"]}
1
+ {"version":3,"file":"system-of-record-simulators.service.js","sourceRoot":"","sources":["../../../../src/services/application/system-of-record-simulators.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,OA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CAAC;AAChB,CAAC","sourcesContent":["/**\n * Runs an application's systems of record against the provider simulator fleet on a developer machine (#3039): the\n * service behind `wildo local sor-simulators`, `wildo local sor-secrets` and `wildo local sor-addresses`.\n *\n * ## What it derives, and from what\n *\n * Everything is derived from what the application already declares, so a created application gets a working local ERP\n * the moment its CONFIG task declares an instance, with nothing restated by hand:\n *\n * - **which instances**: `systemsOfRecord` in `wildo.saas.config.ts`, kept to those whose LOCAL address is absent or\n * loopback. An instance addressed at a real vendor, or declared `{ enabled: false }`, is the developer's decision and\n * is reported, never overridden.\n * - **which ports**: the application's port block, its allocated port base (the lowest backend `defaultPort`, which\n * `wildo init`'s allocator keeps unique among sibling applications) plus {@link SYSTEM_OF_RECORD_SIMULATOR_PORT_OFFSET}.\n * Two applications on one machine therefore never contend for a face.\n * - **which data**: `system-of-record-simulators/fleet.dataset.ts` (neutral) or `fleet.fixture.ts` (vendor-shaped) at\n * the application root, else the fleet's starter dataset.\n * - **addresses, secrets, faces**: the simulators package's developer-fleet plan, asked through its own command line,\n * because that package is not a dependency of this CLI. Where that command line is found is\n * {@link locateProviderSimulators}.\n *\n * ## The join with the engine\n *\n * The plan restates each vendor's slots, because the simulators import nothing from Wildo. So before a secret is seeded\n * or an address written, the plan is checked against the slots the ENGINE resolves for the instance\n * ({@link resolveDeclaredSystemOfRecordSecrets}): a required slot the plan does not fill, or a slot the engine does not\n * have, refuses that instance. A double cannot silently drift from the facet it stands in for.\n *\n * ## Where the fleet comes from (#3047)\n *\n * `@wildo-ai/provider-simulators` is a published OPT-IN framework package (decided by Paul, 2026-10-21): an application\n * that wants a local system of record declares it as a devDependency of its root (`\"*\"`, linked by `wildo config sync`\n * to its framework release, or to a `file:` path in a framework checkout). The fleet is looked for in this order:\n *\n * 1. **the application's own `node_modules`**: the package it declared, run as its `bin` with this CLI's node. That is\n * what an application created in app-creator mode has, and what a framework-development application that declares\n * the package runs too, so both modes run the same artifact;\n * 2. **the framework checkout**: the package's source, run with tsx from its own lockfile. What the dogfood applications\n * use, since they do not declare it;\n * 3. neither: every verb answers COULD-NOT-ASK (exit 2) naming the devDependency to add, never a blocked task. Pointing\n * the instance at a real vendor is the other way out.\n *\n * An application that declares the package and has it broken (installed without its build) is refused with that\n * remedy, rather than silently served from a checkout it did not choose.\n */\nimport { spawn, spawnSync } from 'node:child_process';\nimport { generateKeyPairSync } from 'node:crypto';\nimport { existsSync, readFileSync, realpathSync, writeFileSync } from 'node:fs';\nimport { createRequire } from 'node:module';\nimport { dirname, join } from 'node:path';\n\nimport { WildoLocationType, type WildoSaasConfig, type WildoSystemsOfRecordEnvConfig } from '@wildo-ai/platform-config-lib';\nimport { deriveSystemOfRecordEnvVarName } from '@wildo-ai/saas-models';\n\nimport { loadAuthoredInfraEnvConfig, resolveAuthoredInfraConfigPath } from '../environment/authored-infra-config.utils';\nimport { resolveDeclaredSystemOfRecordSecrets, type DeclaredSystemOfRecordSecrets } from '../credentials/application-secret-owners.service';\nimport { writeInstanceAddresses } from './infra-system-of-record-addresses.editor';\n\n/** The simulators package, relative to the framework checkout. */\nexport const PROVIDER_SIMULATORS_RELATIVE_PATH = 'platform/testing/provider-simulators';\n\n/** The simulators' published package name: the devDependency an application declares to run the fleet (#3047). */\nexport const PROVIDER_SIMULATORS_PACKAGE = '@wildo-ai/provider-simulators';\n\n/** The developer fleet's command line inside that package, as SOURCE (the checkout form, run with tsx). */\nexport const DEVELOPER_FLEET_ENTRY = 'src/developer-fleet/main.ts';\n\n/** The developer fleet's command line as the published package declares it: its `bin` name (the installed form). */\nexport const DEVELOPER_FLEET_BIN = 'wildo-provider-simulators-fleet';\n\n/**\n * Node's warning when it loads the application's `.ts` data module from a package with no `\"type\"`: true, harmless, and\n * printed on stderr, whose LAST line is how a refusal is reported. Silenced in the installed form, where node (not tsx)\n * loads that module.\n */\nconst SILENCED_NODE_WARNING = '--disable-warning=MODULE_TYPELESS_PACKAGE_JSON';\n\n/** Where the fleet's command line was found. */\nexport enum ProviderSimulatorsOrigin {\n /** The application's own `node_modules`: the package it declared as a devDependency. */\n APPLICATION = 'application',\n /** The framework checkout's source, from the simulators' own lockfile. */\n CHECKOUT = 'checkout',\n}\n\n/** How to run the developer fleet's command line: `command ...launchArguments <subcommand> …`, in `cwd`. */\nexport interface ProviderSimulatorsLocation {\n readonly origin: ProviderSimulatorsOrigin;\n /** The package root that was found. */\n readonly root: string;\n readonly command: string;\n readonly launchArguments: readonly string[];\n readonly cwd: string;\n}\n\n/**\n * One command line of the simulators package, in its two forms: the SOURCE entry run with tsx from a framework checkout,\n * and the `bin` a published copy declares. The developer fleet is one; a standalone double (the content-safety\n * classifier, `local-provider-doubles.service.ts`) is another, which is why the locators below take one.\n */\nexport interface ProviderSimulatorsEntry {\n /** Relative to the package root, as source: `src/…/main.ts`. */\n readonly checkoutEntry: string;\n /** The `bin` name the published package declares for it. */\n readonly bin: string;\n /** What the command line is for, completing \"To …\": named in the remedy when the package is missing. */\n readonly purpose: string;\n /** The way out that needs no simulator, appended to that remedy. */\n readonly otherwise: string;\n}\n\n/** The developer fleet's command line: the default every locator below is asked for. */\nexport const DEVELOPER_FLEET_SIMULATORS_ENTRY: ProviderSimulatorsEntry = {\n checkoutEntry: DEVELOPER_FLEET_ENTRY,\n bin: DEVELOPER_FLEET_BIN,\n purpose: 'run its systems of record locally',\n otherwise: 'Or point each instance at a real vendor: its address in the local infra config, its secret with `wildo secrets set`.',\n};\n\n/** The one line the plan command prints, before its JSON. Mirrors `DEVELOPER_FLEET_PLAN_SENTINEL` in the package. */\nexport const DEVELOPER_FLEET_PLAN_SENTINEL = '__DEVELOPER_FLEET_PLAN__';\n\n/**\n * The application's simulator port block starts this far above its port base: 4301 → 18301, 4311 → 18311. The block the\n * two dogfood applications already used, and above every port tier the CLI allocates (4xxx services, 5xxx platform), so\n * it cannot meet one of them. A port base is allocated on a stride of 10 and the fleet uses 8 of the 10.\n */\nexport const SYSTEM_OF_RECORD_SIMULATOR_PORT_OFFSET = 14_000;\n\n/** Where an application keeps the records its fleet serves, relative to its root. The two forms are exclusive. */\nexport const APPLICATION_FLEET_DATASET_RELATIVE_PATH = 'system-of-record-simulators/fleet.dataset.ts';\nexport const APPLICATION_FLEET_FIXTURE_RELATIVE_PATH = 'system-of-record-simulators/fleet.fixture.ts';\n\n/** The environment these verbs act on: the developer machine. */\nconst LOCAL_ENVIRONMENT = WildoLocationType.LOCAL;\n\n/** Hosts an address may name and still be \"this machine's fleet\". */\nconst LOOPBACK_HOSTS: ReadonlySet<string> = new Set(['127.0.0.1', 'localhost', '[::1]', '::1']);\n\n/**\n * How many ports of the application's block the fleet may use: the faces sit at offsets 0–7 (the simulators'\n * `DEVELOPER_FLEET_FACE_PORT_OFFSET`). An address on this machine OUTSIDE that range is not the fleet's — a vendor\n * sandbox tunnelled to localhost, another double — and is left alone with its real secret.\n */\nexport const FLEET_PORT_BLOCK_SIZE = 8;\n\n/** What a verb decided about one declared instance's local address. */\nexport enum SystemOfRecordLocalStanding {\n /** No address yet, or a loopback one inside the application's fleet port block: the fleet serves it. */\n FLEET = 'fleet',\n /** `{ enabled: false }`: the environment says it has no access. Left alone. */\n DECLARED_ABSENT = 'declared-absent',\n /**\n * Addressed somewhere the fleet does not listen: another host (a real vendor), or this machine outside the fleet's\n * port block (a tunnelled sandbox, another double). Left alone, address and secret.\n */\n REAL_VENDOR = 'real-vendor',\n}\n\nexport interface ClassifiedSystemOfRecordInstance {\n readonly name: string;\n readonly vendor: string;\n readonly credentialKind?: string;\n /** The dialect the instance declares — it decides the fleet's plan for a vendor spoken over several wires (#3391). */\n readonly dialect: string;\n readonly standing: SystemOfRecordLocalStanding;\n /** The address the local infra config authors today, when it authors one. */\n readonly currentAddress?: Readonly<Record<string, string>>;\n}\n\n/** The plan as the simulators print it: the JSON contract of `main.ts plan`, minus nothing this CLI reads. */\nexport interface DeveloperFleetPlanContract {\n readonly portBlockStart: number;\n readonly faces: ReadonlyArray<{ readonly face: string; readonly port: number }>;\n readonly instances: ReadonlyArray<{\n readonly name: string;\n readonly vendor: string;\n readonly face: string;\n readonly credentialKind: string;\n readonly address: Readonly<Record<string, string>>;\n readonly secrets: ReadonlyArray<{ readonly slot: string; readonly source: string; readonly value?: string }>;\n }>;\n readonly unserved: ReadonlyArray<{ readonly name: string; readonly vendor: string; readonly reason: string }>;\n readonly dataKind: string;\n readonly omissions: readonly string[];\n}\n\n/** The value of `secrets[].source` that asks the caller to generate a private key (`DeveloperFleetSecretSource`). */\nexport const GENERATE_RSA_PKCS8_PRIVATE_KEY = 'generate-rsa-pkcs8-private-key';\n\n/** A verb that could not even ask: the fleet is unreachable, or the application gives it nothing to plan. */\nexport class SystemOfRecordSimulatorsUnavailableError extends Error {}\n\nexport interface SystemOfRecordSimulatorsContext {\n readonly saasRoot: string;\n readonly simulators: ProviderSimulatorsLocation;\n readonly portBlockStart: number;\n readonly instances: readonly ClassifiedSystemOfRecordInstance[];\n /** `['--dataset', path]`, `['--fixture', path]`, or `[]` for the starter dataset. */\n readonly dataArguments: readonly string[];\n readonly infraConfigPath: string;\n}\n\n/**\n * The remedy when the application has no fleet: the devDependency to declare, and the other way out. When the application\n * already declares it, the remedy is only the install. One function, so the verbs and their tests name the same thing.\n */\nexport function describeMissingProviderSimulators(saasRoot: string, entryPoint: ProviderSimulatorsEntry = DEVELOPER_FLEET_SIMULATORS_ENTRY): string {\n const otherwise = entryPoint.otherwise;\n if (applicationDeclaresProviderSimulators(saasRoot)) {\n return `The application declares ${PROVIDER_SIMULATORS_PACKAGE} but it is not installed: run \\`wildo config sync\\` (it links the package to `\n + `your framework release) and \\`pnpm install\\`. ${otherwise}`;\n }\n return `The provider simulators are not installed in this application. To ${entryPoint.purpose}, add `\n + `\"${PROVIDER_SIMULATORS_PACKAGE}\": \"*\" to the devDependencies of the application's root package.json, run \\`wildo config sync\\` `\n + `(it links the package to your framework release) and \\`pnpm install\\`. ${otherwise}`;\n}\n\n/** Whether the application's root manifest declares the simulators, in any dependency field. */\nfunction applicationDeclaresProviderSimulators(saasRoot: string): boolean {\n const manifestPath = join(saasRoot, 'package.json');\n if (!existsSync(manifestPath)) return false;\n try {\n const manifest = JSON.parse(readFileSync(manifestPath, 'utf8')) as Partial<Record<string, Record<string, string>>>;\n return ['dependencies', 'devDependencies', 'optionalDependencies'].some((field) => manifest[field]?.[PROVIDER_SIMULATORS_PACKAGE] !== undefined);\n } catch {\n return false;\n }\n}\n\n/**\n * The package as the APPLICATION resolves it, or `null` when the application does not have it. Throws when it has it\n * but cannot run it: the application chose that copy, so it is reported rather than replaced by another.\n *\n * Found by Node's own lookup order (`require.resolve.paths`: the `node_modules` directories from the application root\n * upward), reading the manifest at each, rather than by resolving a specifier: the package exports no `./package.json`,\n * since a manifest is not a code subpath, and resolving through `exports` would also turn any resolution error into \"not\n * installed\" and quietly fall back to a checkout.\n */\nexport function resolveInstalledProviderSimulators(saasRoot: string, entryPoint: ProviderSimulatorsEntry = DEVELOPER_FLEET_SIMULATORS_ENTRY): ProviderSimulatorsLocation | null {\n const lookup = createRequire(join(saasRoot, 'package.json')).resolve.paths(PROVIDER_SIMULATORS_PACKAGE) ?? [];\n const candidate = lookup.map((directory) => join(directory, PROVIDER_SIMULATORS_PACKAGE)).find((root) => existsSync(join(root, 'package.json')));\n if (candidate === undefined) return null;\n const root = realpathSync(candidate);\n let manifest: { bin?: Record<string, string> | string; version?: string };\n try {\n manifest = JSON.parse(readFileSync(join(root, 'package.json'), 'utf8')) as typeof manifest;\n } catch (error) {\n throw new SystemOfRecordSimulatorsUnavailableError(`The application has ${PROVIDER_SIMULATORS_PACKAGE} at ${root}, but its package.json cannot be read (${(error as Error).message}). Reinstall it with \\`pnpm install\\`.`);\n }\n const binEntry = typeof manifest.bin === 'object' ? manifest.bin[entryPoint.bin] : undefined;\n const entry = binEntry === undefined ? undefined : join(root, binEntry);\n if (entry === undefined || !existsSync(entry)) {\n throw new SystemOfRecordSimulatorsUnavailableError(\n `The application has ${PROVIDER_SIMULATORS_PACKAGE}${manifest.version === undefined ? '' : `@${manifest.version}`} at ${root}, but it carries no `\n + `built \\`${entryPoint.bin}\\` command line (${entry === undefined ? 'it is not declared' : `it is missing: ${entry}`}). `\n + 'Reinstall it with `pnpm install`; when the command line is not declared at all, the installed release predates it, so move '\n + 'to a framework release that carries it (`wildo update`). When it is linked to a framework checkout, build it there first: '\n + `(cd <framework>/${PROVIDER_SIMULATORS_RELATIVE_PATH} && pnpm install && pnpm run build).`,\n );\n }\n return { origin: ProviderSimulatorsOrigin.APPLICATION, root, command: process.execPath, launchArguments: [SILENCED_NODE_WARNING, entry], cwd: saasRoot };\n}\n\n/**\n * Where the developer fleet's command line is: the application's own copy first, then the framework checkout, else\n * COULD-NOT-ASK naming the devDependency to add (#3047).\n */\nexport function locateProviderSimulators(input: {\n readonly saasRoot: string;\n readonly frameworkRoot: string | null;\n /** Which command line of the package; the developer fleet when omitted. */\n readonly entry?: ProviderSimulatorsEntry;\n}): ProviderSimulatorsLocation {\n const entryPoint = input.entry ?? DEVELOPER_FLEET_SIMULATORS_ENTRY;\n const installed = resolveInstalledProviderSimulators(input.saasRoot, entryPoint);\n if (installed !== null) return installed;\n if (input.frameworkRoot === null) throw new SystemOfRecordSimulatorsUnavailableError(describeMissingProviderSimulators(input.saasRoot, entryPoint));\n const simulatorsRoot = join(input.frameworkRoot, PROVIDER_SIMULATORS_RELATIVE_PATH);\n if (!existsSync(join(simulatorsRoot, entryPoint.checkoutEntry))) {\n throw new SystemOfRecordSimulatorsUnavailableError(`The framework checkout at ${input.frameworkRoot} has no ${entryPoint.bin} (${PROVIDER_SIMULATORS_RELATIVE_PATH}/${entryPoint.checkoutEntry}); update it.`);\n }\n if (!existsSync(join(simulatorsRoot, 'node_modules'))) {\n throw new SystemOfRecordSimulatorsUnavailableError(`The provider simulators are not installed. They keep their own lockfile:\\n\\n (cd ${simulatorsRoot} && pnpm install)\\n`);\n }\n return { origin: ProviderSimulatorsOrigin.CHECKOUT, root: simulatorsRoot, command: 'pnpm', launchArguments: ['exec', 'tsx', entryPoint.checkoutEntry], cwd: simulatorsRoot };\n}\n\n/**\n * The application's port base: the lowest `defaultPort` among its backend services (a service with no `frontendType`),\n * which is what `wildo init` allocated. Refused when no backend declares one: an invented block could land on another\n * application's fleet.\n */\nexport function resolveApplicationPortBase(saasConfig: Pick<WildoSaasConfig, 'services'>): number {\n const ports = Object.values(saasConfig.services ?? {})\n .filter((service) => service.frontendType === undefined && typeof service.defaultPort === 'number')\n .map((service) => service.defaultPort as number);\n if (ports.length === 0) {\n throw new SystemOfRecordSimulatorsUnavailableError('No backend service in wildo.saas.config.ts declares a `defaultPort`, so the application has no port block for its simulators.');\n }\n return Math.min(...ports);\n}\n\n/** Is this address the fleet's: on this machine, on a port of the application's fleet block? */\nfunction isFleetAddress(address: Readonly<Record<string, string>>, portBlockStart: number): boolean {\n const baseUrl = address.baseUrl;\n if (baseUrl === undefined) return false;\n try {\n const url = new URL(baseUrl);\n const port = Number(url.port);\n return LOOPBACK_HOSTS.has(url.hostname) && Number.isInteger(port) && port >= portBlockStart && port < portBlockStart + FLEET_PORT_BLOCK_SIZE;\n } catch {\n return false;\n }\n}\n\n/** Every declared instance with its local standing. Pure over the two declarations and the application's port block. */\nexport function classifySystemOfRecordInstances(\n declared: WildoSaasConfig['systemsOfRecord'],\n localAddresses: WildoSystemsOfRecordEnvConfig | undefined,\n portBlockStart: number,\n): ClassifiedSystemOfRecordInstance[] {\n return Object.entries(declared ?? {}).map(([name, declaration]) => {\n const local = localAddresses?.[name];\n const base = {\n name,\n vendor: declaration.vendor,\n dialect: declaration.dialect,\n ...(declaration.credential?.kind === undefined ? {} : { credentialKind: declaration.credential.kind }),\n };\n if (local !== undefined && 'enabled' in local) return { ...base, standing: SystemOfRecordLocalStanding.DECLARED_ABSENT };\n const currentAddress = local === undefined || !('address' in local) ? undefined : local.address;\n if (currentAddress === undefined) return { ...base, standing: SystemOfRecordLocalStanding.FLEET };\n return { ...base, currentAddress, standing: isFleetAddress(currentAddress, portBlockStart) ? SystemOfRecordLocalStanding.FLEET : SystemOfRecordLocalStanding.REAL_VENDOR };\n });\n}\n\n/** The application's data module, as plan arguments. Both forms present is refused: a fleet starts from one. */\nexport function resolveApplicationFleetData(saasRoot: string): string[] {\n const dataset = join(saasRoot, APPLICATION_FLEET_DATASET_RELATIVE_PATH);\n const fixture = join(saasRoot, APPLICATION_FLEET_FIXTURE_RELATIVE_PATH);\n if (existsSync(dataset) && existsSync(fixture)) {\n throw new SystemOfRecordSimulatorsUnavailableError(`Both ${APPLICATION_FLEET_DATASET_RELATIVE_PATH} and ${APPLICATION_FLEET_FIXTURE_RELATIVE_PATH} exist; a fleet starts from one description of its data. Remove one.`);\n }\n if (existsSync(dataset)) return ['--dataset', dataset];\n if (existsSync(fixture)) return ['--fixture', fixture];\n return [];\n}\n\n/** Everything a verb needs, loaded once. */\nexport async function loadSystemOfRecordSimulatorsContext(input: {\n readonly saasRoot: string;\n readonly frameworkRoot: string | null;\n readonly saasConfig: WildoSaasConfig;\n}): Promise<SystemOfRecordSimulatorsContext> {\n const simulators = locateProviderSimulators({ saasRoot: input.saasRoot, frameworkRoot: input.frameworkRoot });\n if (Object.keys(input.saasConfig.systemsOfRecord ?? {}).length === 0) {\n throw new SystemOfRecordSimulatorsUnavailableError('wildo.saas.config.ts declares no system of record, so there is nothing for the simulators to serve.');\n }\n const infra = await loadAuthoredInfraEnvConfig(LOCAL_ENVIRONMENT, input.saasRoot);\n const portBlockStart = resolveApplicationPortBase(input.saasConfig) + SYSTEM_OF_RECORD_SIMULATOR_PORT_OFFSET;\n return {\n saasRoot: input.saasRoot,\n simulators,\n portBlockStart,\n instances: classifySystemOfRecordInstances(input.saasConfig.systemsOfRecord, infra?.config.systemsOfRecord, portBlockStart),\n dataArguments: resolveApplicationFleetData(input.saasRoot),\n infraConfigPath: infra?.path ?? resolveAuthoredInfraConfigPath(input.saasRoot, LOCAL_ENVIRONMENT),\n };\n}\n\n/** The developer-fleet command line's arguments for one subcommand. */\nfunction fleetArguments(context: SystemOfRecordSimulatorsContext, subcommand: 'plan' | 'serve'): string[] {\n const instances = context.instances\n .filter(({ standing }) => standing === SystemOfRecordLocalStanding.FLEET)\n .map(({ name, vendor, credentialKind, dialect }) => ({ name, vendor, dialect, ...(credentialKind === undefined ? {} : { credentialKind }) }));\n return [...context.simulators.launchArguments, subcommand, '--port-block', String(context.portBlockStart), '--instances', JSON.stringify(instances), ...context.dataArguments];\n}\n\n/** Read the plan line out of the command's stdout. Exported for its test. */\nexport function parseDeveloperFleetPlanOutput(stdout: string): DeveloperFleetPlanContract {\n const line = stdout.split('\\n').find((candidate) => candidate.startsWith(DEVELOPER_FLEET_PLAN_SENTINEL));\n if (line === undefined) throw new Error('The developer fleet printed no plan.');\n return JSON.parse(line.slice(DEVELOPER_FLEET_PLAN_SENTINEL.length)) as DeveloperFleetPlanContract;\n}\n\n/** Ask the simulators for the plan. A refusal there (a malformed dataset) is reported with its own last line. */\nexport function requestDeveloperFleetPlan(context: SystemOfRecordSimulatorsContext): DeveloperFleetPlanContract {\n const run = spawnSync(context.simulators.command, fleetArguments(context, 'plan'), { cwd: context.simulators.cwd, encoding: 'utf8', timeout: 120_000 });\n if (run.status !== 0) {\n const reason = `${run.stderr ?? ''}`.trim().split('\\n').at(-1) || run.error?.message || `exit ${String(run.status)}`;\n throw new Error(`The developer fleet could not plan: ${reason}`);\n }\n return parseDeveloperFleetPlanOutput(run.stdout);\n}\n\n/**\n * Refuse, as could-not-ask, a plan that serves nothing: every declared instance is left alone or unserved, so none of\n * the three verbs has anything to do. One rule for all three, so they answer the same exit code for the same state.\n */\nexport function requireServedInstances(plan: DeveloperFleetPlanContract): void {\n if (plan.instances.length === 0) {\n throw new SystemOfRecordSimulatorsUnavailableError('No declared system of record is served by the simulators (see above), so there is nothing to do.');\n }\n}\n\n/** One instance's local address compared with the plan's. */\nexport interface FleetAddressComparison {\n readonly name: string;\n readonly expected: Readonly<Record<string, string>>;\n readonly current?: Readonly<Record<string, string>>;\n readonly matches: boolean;\n /** One phrase per slot that differs (`certificateKeyId is 'a', the simulators need 'b'`). Empty when it matches or has no address. */\n readonly differences: readonly string[];\n}\n\n/** Each planned instance's address against what the local infra config authors. Pure. */\nexport function compareFleetAddresses(plan: DeveloperFleetPlanContract, instances: readonly ClassifiedSystemOfRecordInstance[]): FleetAddressComparison[] {\n return plan.instances.map(({ name, address }) => {\n const current = instances.find((instance) => instance.name === name)?.currentAddress;\n const differences = current === undefined ? [] : [...new Set([...Object.keys(address), ...Object.keys(current)])].flatMap((slot) => {\n if (current[slot] === address[slot]) return [];\n if (address[slot] === undefined) return [`${slot} is set and the simulators use no such slot`];\n return [current[slot] === undefined ? `${slot} is missing (the simulators need '${address[slot]}')` : `${slot} is '${current[slot]}', the simulators need '${address[slot]}'`];\n });\n return { name, expected: address, ...(current === undefined ? {} : { current }), matches: current !== undefined && differences.length === 0, differences };\n });\n}\n\n/**\n * The plan checked against the slots the engine resolves for each instance. Answers, per instance, why it is refused\n * (empty when it is not), plus what could not be checked. Pure over its inputs; the caller resolves the engine's slots.\n */\nexport function checkPlanAgainstEngineSlots(\n plan: DeveloperFleetPlanContract,\n engine: { readonly systems: readonly DeclaredSystemOfRecordSecrets[]; readonly incomplete: readonly string[] },\n): { readonly refused: ReadonlyMap<string, string>; readonly unchecked: readonly string[] } {\n const refused = new Map<string, string>();\n const unchecked: string[] = [...engine.incomplete];\n for (const instance of plan.instances) {\n const resolved = engine.systems.find(({ name }) => name === instance.name);\n if (resolved === undefined || resolved.secretSlots === null) {\n unchecked.push(`System of record '${instance.name}': the engine's slots could not be resolved, so the plan's slots are not checked against them.`);\n continue;\n }\n const problems: string[] = [];\n const plannedSecrets = new Set(instance.secrets.map(({ slot }) => slot));\n for (const slot of resolved.secretSlots) {\n if (slot.required && !plannedSecrets.has(slot.slug)) problems.push(`the engine requires the secret slot '${slot.slug}' and the fleet does not provide it`);\n }\n for (const slot of plannedSecrets) {\n if (!resolved.secretSlots.some(({ slug }) => slug === slot)) problems.push(`the fleet provides a secret slot '${slot}' the engine does not have`);\n }\n if (resolved.addressSlots !== null) {\n for (const slot of resolved.addressSlots) {\n if (slot.required && instance.address[slot.slug] === undefined) problems.push(`the engine requires the address slot '${slot.slug}' and the fleet does not provide it`);\n }\n for (const slot of Object.keys(instance.address)) {\n if (!resolved.addressSlots.some(({ slug }) => slug === slot)) problems.push(`the fleet provides an address slot '${slot}' the engine does not have`);\n }\n } else {\n unchecked.push(`System of record '${instance.name}': its address slots could not be read from its facet, so they are not checked.`);\n }\n if (problems.length > 0) refused.set(instance.name, problems.join('; '));\n }\n return { refused, unchecked };\n}\n\n/** The engine's slots for the declared instances, through the same resolution `wildo secrets` uses. */\nexport async function resolveEngineSlots(saasRoot: string, saasConfig: WildoSaasConfig): ReturnType<typeof resolveDeclaredSystemOfRecordSecrets> {\n return resolveDeclaredSystemOfRecordSecrets({ saasRoot, declared: saasConfig.systemsOfRecord ?? {} });\n}\n\n/** An unencrypted PKCS#8 RSA private key, generated on this machine (the form NetSuite's certificate slot requires). */\nfunction generatePrivateKeyPem(): string {\n return generateKeyPairSync('rsa', { modulusLength: 2048, privateKeyEncoding: { type: 'pkcs8', format: 'pem' }, publicKeyEncoding: { type: 'spki', format: 'pem' } }).privateKey;\n}\n\n/** One secret a seeding run sets: its derived variable name and its value. */\nexport interface FleetSecretToSet {\n readonly instance: string;\n readonly envVarName: string;\n readonly value: string;\n}\n\n/**\n * The secrets to seed for the planned instances the engine check did not refuse. Pure but for key generation, which a\n * dry run skips (`generateKeys: false` leaves a generated slot's value empty).\n */\nexport function fleetSecretsToSet(plan: DeveloperFleetPlanContract, refused: ReadonlyMap<string, string>, options: { readonly generateKeys?: boolean } = {}): FleetSecretToSet[] {\n const generateKeys = options.generateKeys !== false;\n return plan.instances\n .filter(({ name }) => !refused.has(name))\n .flatMap(({ name, secrets }) => secrets.map((secret) => ({\n instance: name,\n envVarName: deriveSystemOfRecordEnvVarName(name, secret.slot),\n value: secret.source === GENERATE_RSA_PKCS8_PRIVATE_KEY ? (generateKeys ? generatePrivateKeyPem() : '') : secret.value!,\n })));\n}\n\n/** Write the planned addresses into the local infra config, for the instances the engine check did not refuse. */\nexport function writeFleetAddresses(context: SystemOfRecordSimulatorsContext, plan: DeveloperFleetPlanContract, refused: ReadonlyMap<string, string>): string[] {\n const instances = plan.instances.filter(({ name }) => !refused.has(name)).map(({ name, address }) => ({ name, address }));\n if (!existsSync(context.infraConfigPath)) {\n throw new SystemOfRecordSimulatorsUnavailableError(`There is no local infra config at ${context.infraConfigPath} to write the addresses into.`);\n }\n const before = readFileSync(context.infraConfigPath, 'utf8');\n const after = writeInstanceAddresses(before, context.infraConfigPath, instances);\n if (after !== before) writeFileSync(context.infraConfigPath, after, 'utf8');\n return instances.map(({ name }) => name);\n}\n\n/**\n * Start the fleet in the foreground, its output inherited, until it exits or this process is interrupted. Resolves with\n * the fleet's exit code, or 0 when the developer stopped it (Ctrl-C is how it is meant to end, whatever code the\n * interrupted child chain reports).\n */\nexport function serveDeveloperFleet(context: SystemOfRecordSimulatorsContext): Promise<number> {\n return new Promise((resolve) => {\n const child = spawn(context.simulators.command, fleetArguments(context, 'serve'), { cwd: context.simulators.cwd, stdio: 'inherit' });\n let stopped = false;\n const forward = (signal: NodeJS.Signals): void => {\n stopped = true;\n if (!child.killed) child.kill(signal);\n };\n process.on('SIGINT', forward);\n process.on('SIGTERM', forward);\n child.on('error', (error) => {\n process.off('SIGINT', forward);\n process.off('SIGTERM', forward);\n // eslint-disable-next-line no-console\n console.error(`The developer fleet could not start: ${error.message}`);\n resolve(1);\n });\n child.on('exit', (code, signal) => {\n process.off('SIGINT', forward);\n process.off('SIGTERM', forward);\n resolve(stopped ? 0 : code ?? (signal === null ? 0 : 1));\n });\n });\n}\n\n/** Copy the starter dataset into the application, refusing to replace a file. */\nexport function scaffoldApplicationFleetDataset(context: Pick<SystemOfRecordSimulatorsContext, 'saasRoot' | 'simulators'>): string {\n const target = join(context.saasRoot, APPLICATION_FLEET_DATASET_RELATIVE_PATH);\n if (existsSync(join(context.saasRoot, APPLICATION_FLEET_FIXTURE_RELATIVE_PATH))) {\n throw new Error(`${APPLICATION_FLEET_FIXTURE_RELATIVE_PATH} already describes this application's data; a fleet starts from one description, so no dataset is scaffolded beside it.`);\n }\n const run = spawnSync(context.simulators.command, [...context.simulators.launchArguments, 'scaffold-dataset', '--to', target], { cwd: context.simulators.cwd, encoding: 'utf8', timeout: 120_000 });\n if (run.status !== 0) throw new Error(`${run.stderr ?? ''}`.trim().split('\\n').at(-1) || run.error?.message || 'the starter dataset could not be written');\n return target;\n}\n"]}
@@ -22,6 +22,8 @@ export interface ConsoleBuildDispatches {
22
22
  readonly preparing?: {
23
23
  readonly summary: string;
24
24
  } | null;
25
+ /** How many slots the wave is preparing at once (#3883). Absent from an older companion. */
26
+ readonly preparingCount?: number;
25
27
  readonly lastPreparation?: {
26
28
  readonly selectedTaskRef?: string;
27
29
  readonly durationMs?: number;
@@ -32,7 +34,7 @@ export interface ConsoleBuildDispatches {
32
34
  } | null;
33
35
  }
34
36
  /**
35
- * The lines `wildo build dispatches` leads with (#3206): the running wave, what its current slot is preparing and since
37
+ * The lines `wildo build dispatches` leads with (#3206): the running wave, what its oldest slot is preparing and since
36
38
  * when, a requested stop, and how long the last preparation took per step. Empty when no wave runs and none ran here.
37
39
  */
38
40
  export declare function describeBuildPreparation(result: ConsoleBuildDispatches): string[];
@@ -120,6 +122,16 @@ export interface ConsoleBuildTaskRecord {
120
122
  * reported them (#2496). Not in the accepted plan, so it is listed apart (#3227).
121
123
  */
122
124
  readonly followUpOf?: string;
125
+ /**
126
+ * On a derived follow-up: the reports a decision on it would cover now (#3833), each by the reference
127
+ * `wildo build close|approve --covers` takes back.
128
+ */
129
+ readonly coveredReports?: readonly {
130
+ readonly ref: string;
131
+ readonly originTaskRef: string;
132
+ readonly requirementRef: string;
133
+ readonly missing: string;
134
+ }[];
123
135
  /** The follow-up tasks this task's report derived (#2496). */
124
136
  readonly followUpTaskRefs?: readonly string[];
125
137
  /** Landed by a person's committed closure, not by its own probe (`wildo build close`, #3224, #3227). */
@@ -347,6 +359,7 @@ export declare const BuildConsoleClient: {
347
359
  readonly satisfiedBy?: string;
348
360
  readonly declined?: boolean;
349
361
  readonly reason: string;
362
+ readonly coveredReportRefs?: readonly string[];
350
363
  }) => Promise<{
351
364
  readonly closure: {
352
365
  readonly kind: string;
@@ -360,7 +373,7 @@ export declare const BuildConsoleClient: {
360
373
  readonly boundHeadSha: string;
361
374
  readonly note: string;
362
375
  }>;
363
- approve: (options: CompanionClientOptions, taskRef: string, note: string | undefined) => Promise<{
376
+ approve: (options: CompanionClientOptions, taskRef: string, note: string | undefined, coveredReportRefs?: readonly string[]) => Promise<{
364
377
  readonly approval: {
365
378
  readonly taskRef: string;
366
379
  };
@@ -412,4 +425,28 @@ export type ConsoleBuildCheckpointOutcome = {
412
425
  export declare function describeBuildCheckpointOutcome(outcome: ConsoleBuildCheckpointOutcome): string[];
413
426
  /** An accept outcome in words: what was committed, and what was refused and why. */
414
427
  export declare function describeAcceptOutcome(subject: string, outcome: ConsoleAcceptOutcome): string[];
428
+ /** One argument for a command printed to be pasted into a POSIX shell: single-quoted, so nothing in it is expanded. */
429
+ export declare function shellQuoted(value: string): string;
430
+ /**
431
+ * Refused before anything is sent: a decision on a derived follow-up that covers reports, taken without saying which the
432
+ * person was shown (#3833). Its message lists them, with the command to send them back.
433
+ */
434
+ export declare class FollowUpReportsNotShownError extends Error {
435
+ }
436
+ /**
437
+ * The reports a decision on a derived follow-up is taken on (#3833), as `wildo build close|approve` sends them.
438
+ *
439
+ * - `--covers <ref,…>`: what the person was shown, typically by `wildo build tasks`. Sent as is; the companion refuses
440
+ * the decision if the follow-up now covers a report outside it.
441
+ * - No `--covers`, on a derived follow-up: the verb reads the follow-up's current reports and, when it covers any,
442
+ * REFUSES before sending, listing them with the command to send them back (`decisionCommand` plus `--covers`). A person
443
+ * who decides must have been shown what the decision covers, and a board read earlier may predate a report absorbed
444
+ * since; deciding on what the verb read itself would show the person nothing before the decision committed.
445
+ * - Any other task (a plan task covers no reports): nothing is read or sent.
446
+ */
447
+ export declare function followUpReportsDecidedOn(options: CompanionClientOptions, input: {
448
+ readonly taskRef: string;
449
+ readonly covers: readonly string[] | undefined;
450
+ readonly decisionCommand: string;
451
+ }, readTasks?: (options: CompanionClientOptions) => Promise<ConsoleBuildTaskRecords>): Promise<readonly string[] | undefined>;
415
452
  //# sourceMappingURL=build-console.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build-console.service.d.ts","sourceRoot":"","sources":["../../../../src/services/companion/build-console.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmH,KAAK,kCAAkC,EAAE,KAAK,wCAAwC,EAAE,MAAM,gCAAgC,CAAC;AAEzP,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAIlE;;;;;;;;GAQG;AAEH;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IACxD,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,wGAAwG;IACxG,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,SAAS,CAAC,EAAE;QAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACzD,QAAQ,CAAC,eAAe,CAAC,EAAE;QACzB,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;QAClC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAC7B,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;YAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KACzF,GAAG,I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K,EAAE;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IAAC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;CAAE,EACrH,SAAS,GAAE,CAAC,OAAO,EAAE,sBAAsB,KAAK,OAAO,CAAC,uBAAuB,CAA4B,GAC1G,OAAO,CAAC,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC,CAWxC"}
@@ -3,7 +3,7 @@ import { CompanionClient } from './companion-client.service.js';
3
3
  import { describeAgentStopReason } from './agent-stop-reason-words.js';
4
4
  import { describeAgentWorkShortfall } from './agent-work-shortfall-words.js';
5
5
  /**
6
- * The lines `wildo build dispatches` leads with (#3206): the running wave, what its current slot is preparing and since
6
+ * The lines `wildo build dispatches` leads with (#3206): the running wave, what its oldest slot is preparing and since
7
7
  * when, a requested stop, and how long the last preparation took per step. Empty when no wave runs and none ran here.
8
8
  */
9
9
  export function describeBuildPreparation(result) {
@@ -13,7 +13,10 @@ export function describeBuildPreparation(result) {
13
13
  }
14
14
  if (result.waveStartedAt) {
15
15
  lines.push(`A build wave is running (started ${result.waveStartedAt})${result.stopRequestedAt ? `; stop requested ${result.stopRequestedAt}, it starts no new task` : ''}.`);
16
- lines.push(result.preparing ? ` now: ${result.preparing.summary}` : ' now: waiting for a live run to settle');
16
+ const others = (result.preparingCount ?? 0) - 1;
17
+ lines.push(result.preparing
18
+ ? ` now: ${result.preparing.summary}${others > 0 ? ` (and ${others} more slot${others > 1 ? 's' : ''} being prepared)` : ''}`
19
+ : ' now: waiting for a live run to settle');
17
20
  }
18
21
  const last = result.lastPreparation;
19
22
  if (last) {
@@ -167,7 +170,7 @@ export const BuildConsoleClient = {
167
170
  checkpoint: (options) => CompanionClient.post('/api/companion/build/checkpoint', {}, options),
168
171
  close: (options, taskRef, request) => CompanionClient.post(`/api/companion/build/tasks/${encode(taskRef)}/close`, request, options),
169
172
  settleWindow: (options, taskRef) => CompanionClient.post(`/api/companion/build/tasks/${encode(taskRef)}/settle-window`, {}, options),
170
- approve: (options, taskRef, note) => CompanionClient.post(`/api/companion/build/tasks/${encode(taskRef)}/approve`, note !== undefined ? { note } : {}, options),
173
+ approve: (options, taskRef, note, coveredReportRefs) => CompanionClient.post(`/api/companion/build/tasks/${encode(taskRef)}/approve`, { ...(note !== undefined ? { note } : {}), ...(coveredReportRefs !== undefined ? { coveredReportRefs } : {}) }, options),
171
174
  rearm: (options, taskRef, reason, note) => CompanionClient.post(`/api/companion/build/tasks/${encode(taskRef)}/rearm`, { reason, note }, options),
172
175
  };
173
176
  /**
@@ -281,8 +284,13 @@ function describeBuildTaskRecords(result) {
281
284
  const awaitingReview = followUps.filter((task) => task.stuck?.reason === Workbench_BuildTaskStuckReason.FOLLOW_UP_AWAITING_REVIEW);
282
285
  if (awaitingReview.length > 0) {
283
286
  lines.splice(2, 0, ` ${awaitingReview.length} of them wait for your review before they run: wildo build approve <ref> lets one run, `
284
- + 'wildo build close <ref> --declined --reason "<why>" declines it.');
287
+ + 'wildo build close <ref> --declined --reason "<why>" declines it. Pass --covers with the reports listed here, so a '
288
+ + 'report it absorbs after you looked refuses the decision instead of riding on it.');
285
289
  }
290
+ // #3833: what a decision on each open follow-up would cover now, by the refs `--covers` takes back.
291
+ const coverLines = open.flatMap((task) => (task.coveredReports ?? []).map((report) => ` ${task.taskRef} covers ${report.ref}: ${report.missing}`));
292
+ if (coverLines.length > 0)
293
+ lines.splice(awaitingReview.length > 0 ? 3 : 2, 0, ...coverLines);
286
294
  }
287
295
  // Tasks a person closed (#3224, #3227): landed because they said so, which no reader should take for a probe.
288
296
  const closed = tasks.filter((task) => task.closure !== undefined);
@@ -436,4 +444,46 @@ export function describeAcceptOutcome(subject, outcome) {
436
444
  ...refusals,
437
445
  ];
438
446
  }
447
+ /**
448
+ * The ref prefix of a follow-up the build DERIVED from a reported gap (#3227). The authority is the companion's
449
+ * `HOST_DERIVED_FOLLOW_UP_TASK_REF_PREFIX` (`application-build-follow-up-derivation.companion.ts`); the CLI ships separately
450
+ * and only uses it to decide whether a decision needs the board read, so a drift costs a read, never a decision.
451
+ */
452
+ const DERIVED_FOLLOW_UP_TASK_REF_PREFIX = 'build-task-follow-up-';
453
+ /** One argument for a command printed to be pasted into a POSIX shell: single-quoted, so nothing in it is expanded. */
454
+ export function shellQuoted(value) {
455
+ return `'${value.replace(/'/g, `'\\''`)}'`;
456
+ }
457
+ /**
458
+ * Refused before anything is sent: a decision on a derived follow-up that covers reports, taken without saying which the
459
+ * person was shown (#3833). Its message lists them, with the command to send them back.
460
+ */
461
+ export class FollowUpReportsNotShownError extends Error {
462
+ }
463
+ /**
464
+ * The reports a decision on a derived follow-up is taken on (#3833), as `wildo build close|approve` sends them.
465
+ *
466
+ * - `--covers <ref,…>`: what the person was shown, typically by `wildo build tasks`. Sent as is; the companion refuses
467
+ * the decision if the follow-up now covers a report outside it.
468
+ * - No `--covers`, on a derived follow-up: the verb reads the follow-up's current reports and, when it covers any,
469
+ * REFUSES before sending, listing them with the command to send them back (`decisionCommand` plus `--covers`). A person
470
+ * who decides must have been shown what the decision covers, and a board read earlier may predate a report absorbed
471
+ * since; deciding on what the verb read itself would show the person nothing before the decision committed.
472
+ * - Any other task (a plan task covers no reports): nothing is read or sent.
473
+ */
474
+ export async function followUpReportsDecidedOn(options, input, readTasks = BuildConsoleClient.tasks) {
475
+ if (input.covers !== undefined)
476
+ return input.covers;
477
+ if (!input.taskRef.startsWith(DERIVED_FOLLOW_UP_TASK_REF_PREFIX))
478
+ return undefined;
479
+ const record = (await readTasks(options)).records.tasks.find((task) => task.taskRef === input.taskRef);
480
+ const reports = record?.coveredReports ?? [];
481
+ if (reports.length === 0)
482
+ return undefined;
483
+ throw new FollowUpReportsNotShownError([
484
+ `${input.taskRef} covers ${reports.length === 1 ? 'a reported gap, and the decision covers it' : `${reports.length} reported gaps, and the decision covers all of them`}:`,
485
+ ...reports.map((report) => ` ${report.ref}: ${report.missing}`),
486
+ `Show them to the person, then decide: ${input.decisionCommand} --covers ${shellQuoted(reports.map((report) => report.ref).join(','))}`,
487
+ ].join('\n'));
488
+ }
439
489
  //# sourceMappingURL=build-console.service.js.map