@wildo-ai/wildo-cli 1.1.13 → 1.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (589) 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 +21 -1
  11. package/dist/src/commands/config/sync.command.js.map +1 -1
  12. package/dist/src/commands/creation/feed.command.d.ts.map +1 -1
  13. package/dist/src/commands/creation/feed.command.js +6 -3
  14. package/dist/src/commands/creation/feed.command.js.map +1 -1
  15. package/dist/src/commands/fwk/publish-all.command.d.ts +13 -0
  16. package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
  17. package/dist/src/commands/fwk/publish-all.command.js +57 -3
  18. package/dist/src/commands/fwk/publish-all.command.js.map +1 -1
  19. package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
  20. package/dist/src/commands/fwk/publish-docker.command.js +16 -1
  21. package/dist/src/commands/fwk/publish-docker.command.js.map +1 -1
  22. package/dist/src/commands/fwk/registry-host.command.d.ts +19 -1
  23. package/dist/src/commands/fwk/registry-host.command.d.ts.map +1 -1
  24. package/dist/src/commands/fwk/registry-host.command.js +78 -3
  25. package/dist/src/commands/fwk/registry-host.command.js.map +1 -1
  26. package/dist/src/commands/generate/email-command.utils.d.ts +2 -0
  27. package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -1
  28. package/dist/src/commands/generate/email-command.utils.js +5 -0
  29. package/dist/src/commands/generate/email-command.utils.js.map +1 -1
  30. package/dist/src/commands/init.command.d.ts +14 -0
  31. package/dist/src/commands/init.command.d.ts.map +1 -1
  32. package/dist/src/commands/init.command.js +36 -5
  33. package/dist/src/commands/init.command.js.map +1 -1
  34. package/dist/src/commands/local/deregister.command.d.ts.map +1 -1
  35. package/dist/src/commands/local/deregister.command.js +4 -0
  36. package/dist/src/commands/local/deregister.command.js.map +1 -1
  37. package/dist/src/commands/local/dev.command.d.ts +6 -0
  38. package/dist/src/commands/local/dev.command.d.ts.map +1 -1
  39. package/dist/src/commands/local/dev.command.js +72 -0
  40. package/dist/src/commands/local/dev.command.js.map +1 -1
  41. package/dist/src/commands/local/jobs-command.utils.d.ts +24 -0
  42. package/dist/src/commands/local/jobs-command.utils.d.ts.map +1 -0
  43. package/dist/src/commands/local/jobs-command.utils.js +44 -0
  44. package/dist/src/commands/local/jobs-command.utils.js.map +1 -0
  45. package/dist/src/commands/local/jobs-run.command.d.ts +7 -0
  46. package/dist/src/commands/local/jobs-run.command.d.ts.map +1 -0
  47. package/dist/src/commands/local/jobs-run.command.js +92 -0
  48. package/dist/src/commands/local/jobs-run.command.js.map +1 -0
  49. package/dist/src/commands/local/jobs.command.d.ts +7 -0
  50. package/dist/src/commands/local/jobs.command.d.ts.map +1 -0
  51. package/dist/src/commands/local/jobs.command.js +59 -0
  52. package/dist/src/commands/local/jobs.command.js.map +1 -0
  53. package/dist/src/commands/local/tunnel.command.d.ts +84 -0
  54. package/dist/src/commands/local/tunnel.command.d.ts.map +1 -0
  55. package/dist/src/commands/local/tunnel.command.js +274 -0
  56. package/dist/src/commands/local/tunnel.command.js.map +1 -0
  57. package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
  58. package/dist/src/commands/registry/repair-lockfile.command.js +1 -0
  59. package/dist/src/commands/registry/repair-lockfile.command.js.map +1 -1
  60. package/dist/src/commands/registry/update.command.d.ts.map +1 -1
  61. package/dist/src/commands/registry/update.command.js +1 -0
  62. package/dist/src/commands/registry/update.command.js.map +1 -1
  63. package/dist/src/commands/seal/verify.command.d.ts +18 -0
  64. package/dist/src/commands/seal/verify.command.d.ts.map +1 -1
  65. package/dist/src/commands/seal/verify.command.js +62 -1
  66. package/dist/src/commands/seal/verify.command.js.map +1 -1
  67. package/dist/src/services/application/app-bootstrap.service.d.ts +41 -1
  68. package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
  69. package/dist/src/services/application/app-bootstrap.service.js +49 -3
  70. package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
  71. package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
  72. package/dist/src/services/application/app-runtime-targets.service.js +9 -1
  73. package/dist/src/services/application/app-runtime-targets.service.js.map +1 -1
  74. package/dist/src/services/application/application-dependency-alignment.service.d.ts +20 -0
  75. package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
  76. package/dist/src/services/application/application-dependency-alignment.service.js +32 -2
  77. package/dist/src/services/application/application-dependency-alignment.service.js.map +1 -1
  78. package/dist/src/services/application/local-tunnel.service.d.ts +153 -0
  79. package/dist/src/services/application/local-tunnel.service.d.ts.map +1 -0
  80. package/dist/src/services/application/local-tunnel.service.js +294 -0
  81. package/dist/src/services/application/local-tunnel.service.js.map +1 -0
  82. package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
  83. package/dist/src/services/application/provider-runtime-sync.service.js +29 -1
  84. package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
  85. package/dist/src/services/application/saas-skeleton.service.d.ts +7 -0
  86. package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
  87. package/dist/src/services/application/saas-skeleton.service.js +26 -2
  88. package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
  89. package/dist/src/services/catalog/service-address-resolver.service.d.ts +7 -1
  90. package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
  91. package/dist/src/services/catalog/service-address-resolver.service.js +6 -3
  92. package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
  93. package/dist/src/services/companion/build-console.service.d.ts +39 -2
  94. package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
  95. package/dist/src/services/companion/build-console.service.js +54 -4
  96. package/dist/src/services/companion/build-console.service.js.map +1 -1
  97. package/dist/src/services/companion/creation-console.service.d.ts +6 -1
  98. package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
  99. package/dist/src/services/companion/creation-console.service.js +14 -2
  100. package/dist/src/services/companion/creation-console.service.js.map +1 -1
  101. package/dist/src/services/companion/creation-drive.service.d.ts.map +1 -1
  102. package/dist/src/services/companion/creation-drive.service.js +5 -2
  103. package/dist/src/services/companion/creation-drive.service.js.map +1 -1
  104. package/dist/src/services/credentials/application-secrets.service.d.ts +6 -0
  105. package/dist/src/services/credentials/application-secrets.service.d.ts.map +1 -1
  106. package/dist/src/services/credentials/application-secrets.service.js +1 -1
  107. package/dist/src/services/credentials/application-secrets.service.js.map +1 -1
  108. package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -1
  109. package/dist/src/services/credentials/composed-provider-catalogue.js +14 -2
  110. package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
  111. package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
  112. package/dist/src/services/credentials/provider-env-vars.utils.js +3 -1
  113. package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
  114. package/dist/src/services/credentials/secret-requirements.service.d.ts +2 -1
  115. package/dist/src/services/credentials/secret-requirements.service.d.ts.map +1 -1
  116. package/dist/src/services/credentials/secret-requirements.service.js +17 -1
  117. package/dist/src/services/credentials/secret-requirements.service.js.map +1 -1
  118. package/dist/src/services/credentials/secrets-writer.service.d.ts +11 -2
  119. package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
  120. package/dist/src/services/credentials/secrets-writer.service.js +12 -3
  121. package/dist/src/services/credentials/secrets-writer.service.js.map +1 -1
  122. package/dist/src/services/deployment/application-runtime-environment.d.ts.map +1 -1
  123. package/dist/src/services/deployment/application-runtime-environment.js +3 -13
  124. package/dist/src/services/deployment/application-runtime-environment.js.map +1 -1
  125. package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -1
  126. package/dist/src/services/deployment/ci-deploy-generator.service.js +3 -3
  127. package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -1
  128. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +3 -3
  129. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
  130. package/dist/src/services/deployment/docker/docker-compose-generator.service.js +24 -14
  131. package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
  132. package/dist/src/services/deployment/framework-pod-network-membership.d.ts +6 -0
  133. package/dist/src/services/deployment/framework-pod-network-membership.d.ts.map +1 -1
  134. package/dist/src/services/deployment/framework-pod-network-membership.js +12 -3
  135. package/dist/src/services/deployment/framework-pod-network-membership.js.map +1 -1
  136. package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts +1 -1
  137. package/dist/src/services/deployment/host-toolchain-readiness.service.js +1 -1
  138. package/dist/src/services/deployment/host-toolchain-readiness.service.js.map +1 -1
  139. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts +4 -1
  140. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
  141. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +20 -8
  142. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
  143. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts +7 -0
  144. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
  145. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -1
  146. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -1
  147. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js +15 -9
  148. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
  149. package/dist/src/services/deployment/k8s/kind-pod-host-gateway.d.ts +43 -0
  150. package/dist/src/services/deployment/k8s/kind-pod-host-gateway.d.ts.map +1 -0
  151. package/dist/src/services/deployment/k8s/kind-pod-host-gateway.js +12 -0
  152. package/dist/src/services/deployment/k8s/kind-pod-host-gateway.js.map +1 -0
  153. package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts +3 -1
  154. package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts.map +1 -1
  155. package/dist/src/services/deployment/k8s/off-cluster-backing-services.js.map +1 -1
  156. package/dist/src/services/deployment/local-dev-late-workspace-members.service.d.ts +124 -0
  157. package/dist/src/services/deployment/local-dev-late-workspace-members.service.d.ts.map +1 -0
  158. package/dist/src/services/deployment/local-dev-late-workspace-members.service.js +249 -0
  159. package/dist/src/services/deployment/local-dev-late-workspace-members.service.js.map +1 -0
  160. package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
  161. package/dist/src/services/deployment/local-precondition-checks.service.js +4 -2
  162. package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
  163. package/dist/src/services/environment/authored-infra-config.utils.d.ts +9 -0
  164. package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
  165. package/dist/src/services/environment/authored-infra-config.utils.js +20 -1
  166. package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
  167. package/dist/src/services/environment/container-host-gateway-listen-host.d.ts +6 -0
  168. package/dist/src/services/environment/container-host-gateway-listen-host.d.ts.map +1 -1
  169. package/dist/src/services/environment/container-host-gateway-listen-host.js +6 -0
  170. package/dist/src/services/environment/container-host-gateway-listen-host.js.map +1 -1
  171. package/dist/src/services/environment/env-configuration-generator.service.d.ts +12 -0
  172. package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
  173. package/dist/src/services/environment/env-configuration-generator.service.js +45 -8
  174. package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
  175. package/dist/src/services/environment/env-vars-builder.service.d.ts +2 -1
  176. package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
  177. package/dist/src/services/environment/env-vars-builder.service.js +47 -32
  178. package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
  179. package/dist/src/services/environment/environment-lifecycle.service.d.ts +7 -4
  180. package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
  181. package/dist/src/services/environment/environment-lifecycle.service.js +14 -18
  182. package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
  183. package/dist/src/services/environment/environment-service-profile.utils.d.ts +8 -1
  184. package/dist/src/services/environment/environment-service-profile.utils.d.ts.map +1 -1
  185. package/dist/src/services/environment/environment-service-profile.utils.js +14 -1
  186. package/dist/src/services/environment/environment-service-profile.utils.js.map +1 -1
  187. package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
  188. package/dist/src/services/environment/environment-setup.service.js +17 -6
  189. package/dist/src/services/environment/environment-setup.service.js.map +1 -1
  190. package/dist/src/services/environment/environment.service.d.ts +4 -3
  191. package/dist/src/services/environment/environment.service.d.ts.map +1 -1
  192. package/dist/src/services/environment/environment.service.js +0 -1
  193. package/dist/src/services/environment/environment.service.js.map +1 -1
  194. package/dist/src/services/framework/framework-docker-publish.service.d.ts +129 -0
  195. package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
  196. package/dist/src/services/framework/framework-docker-publish.service.js +271 -19
  197. package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
  198. package/dist/src/services/framework/github-actions-annotation.d.ts +19 -0
  199. package/dist/src/services/framework/github-actions-annotation.d.ts.map +1 -0
  200. package/dist/src/services/framework/github-actions-annotation.js +25 -0
  201. package/dist/src/services/framework/github-actions-annotation.js.map +1 -0
  202. package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts +43 -0
  203. package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts.map +1 -0
  204. package/dist/src/services/framework/registry-host/registry-host-upgrade.js +117 -0
  205. package/dist/src/services/framework/registry-host/registry-host-upgrade.js.map +1 -0
  206. package/dist/src/services/framework/registry-host/registry-host.service.d.ts +1 -1
  207. package/dist/src/services/framework/registry-host/registry-host.service.d.ts.map +1 -1
  208. package/dist/src/services/framework/registry-host/registry-host.service.js +2 -0
  209. package/dist/src/services/framework/registry-host/registry-host.service.js.map +1 -1
  210. package/dist/src/services/registry/installed-file-state.utils.d.ts +8 -0
  211. package/dist/src/services/registry/installed-file-state.utils.d.ts.map +1 -1
  212. package/dist/src/services/registry/installed-file-state.utils.js +9 -1
  213. package/dist/src/services/registry/installed-file-state.utils.js.map +1 -1
  214. package/dist/src/services/registry/module-install.service.d.ts.map +1 -1
  215. package/dist/src/services/registry/module-install.service.js +1 -0
  216. package/dist/src/services/registry/module-install.service.js.map +1 -1
  217. package/dist/src/services/registry/provider-module-scaffold.service.d.ts.map +1 -1
  218. package/dist/src/services/registry/provider-module-scaffold.service.js +4 -0
  219. package/dist/src/services/registry/provider-module-scaffold.service.js.map +1 -1
  220. package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
  221. package/dist/src/services/security/csp-sync.service.js +21 -2
  222. package/dist/src/services/security/csp-sync.service.js.map +1 -1
  223. package/dist/tsconfig.build.tsbuildinfo +1 -1
  224. package/framework-root-package.json +3 -3
  225. package/package.json +23 -23
  226. package/scripts/app-dependency-alignment/propagated-engine-overrides.json +1 -1
  227. package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +31 -9
  228. package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +13 -0
  229. package/templates/infra/registry-host/docker-compose.yml +9 -2
  230. package/templates/infra/registry-host/upgrade-image.sh +108 -0
  231. package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_ready/labels.fr.ts +22 -0
  232. package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_received/labels.fr.ts +23 -0
  233. package/templates/saas/i18n/email/resources/dataSubjectRequests/update.users-custom_extended/labels.fr.ts +23 -0
  234. package/templates/saas/i18n/email/resources/organizationSsoConfig/repairUnreadableConfiguration.organization-users/labels.fr.ts +23 -0
  235. package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.ts +28 -0
  236. package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.ts +28 -0
  237. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.en.ts +2 -1
  238. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.fr.ts +2 -1
  239. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.ts +6 -1
  240. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.ts +6 -1
  241. package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.en.ts +40 -0
  242. package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.fr.ts +40 -0
  243. package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.ts +2 -1
  244. package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.ts +2 -1
  245. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.en.ts +2 -1
  246. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.fr.ts +2 -1
  247. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.ts +2 -1
  248. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.ts +2 -1
  249. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.en.ts +3 -1
  250. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.fr.ts +3 -1
  251. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.en.ts +2 -1
  252. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.fr.ts +2 -1
  253. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.en.ts +3 -1
  254. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.fr.ts +4 -2
  255. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.en.ts +18 -1
  256. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.fr.ts +18 -1
  257. package/templates/saas/i18n/engine/resources/actorSystemExecutions.en.ts +10 -82
  258. package/templates/saas/i18n/engine/resources/actorSystemExecutions.fr.ts +0 -72
  259. package/templates/saas/i18n/engine/resources/actorTasks.en.ts +0 -33
  260. package/templates/saas/i18n/engine/resources/actorTasks.fr.ts +0 -33
  261. package/templates/saas/i18n/engine/resources/agentBehaviorReports.en.ts +0 -108
  262. package/templates/saas/i18n/engine/resources/agentBehaviorReports.fr.ts +0 -108
  263. package/templates/saas/i18n/engine/resources/agentOperationRecords.en.ts +8 -24
  264. package/templates/saas/i18n/engine/resources/agentOperationRecords.fr.ts +10 -26
  265. package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.en.ts +0 -12
  266. package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.fr.ts +0 -12
  267. package/templates/saas/i18n/engine/resources/anonymous_users.en.ts +8 -74
  268. package/templates/saas/i18n/engine/resources/anonymous_users.fr.ts +0 -66
  269. package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.en.ts +3 -21
  270. package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.fr.ts +0 -18
  271. package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.en.ts +3 -33
  272. package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.fr.ts +0 -30
  273. package/templates/saas/i18n/engine/resources/applicationAccessGrants.en.ts +13 -55
  274. package/templates/saas/i18n/engine/resources/applicationAccessGrants.fr.ts +0 -42
  275. package/templates/saas/i18n/engine/resources/applicationAgentPolicies.en.ts +8 -24
  276. package/templates/saas/i18n/engine/resources/applicationAgentPolicies.fr.ts +8 -24
  277. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.en.ts +0 -27
  278. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.fr.ts +0 -27
  279. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.en.ts +13 -43
  280. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.fr.ts +0 -30
  281. package/templates/saas/i18n/engine/resources/applicationApiKeys.en.ts +2 -70
  282. package/templates/saas/i18n/engine/resources/applicationApiKeys.fr.ts +2 -70
  283. package/templates/saas/i18n/engine/resources/applicationAuditLogs.en.ts +41 -94
  284. package/templates/saas/i18n/engine/resources/applicationAuditLogs.fr.ts +41 -94
  285. package/templates/saas/i18n/engine/resources/applicationDataKeys.en.ts +2 -22
  286. package/templates/saas/i18n/engine/resources/applicationDataKeys.fr.ts +2 -22
  287. package/templates/saas/i18n/engine/resources/applicationFeatures.en.ts +0 -24
  288. package/templates/saas/i18n/engine/resources/applicationFeatures.fr.ts +0 -24
  289. package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.en.ts +25 -160
  290. package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.fr.ts +25 -160
  291. package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.en.ts +6 -28
  292. package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.fr.ts +8 -30
  293. package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.en.ts +92 -23
  294. package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.fr.ts +95 -26
  295. package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.en.ts +1 -25
  296. package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.fr.ts +4 -28
  297. package/templates/saas/i18n/engine/resources/applicationMetadata.en.ts +0 -18
  298. package/templates/saas/i18n/engine/resources/applicationMetadata.fr.ts +0 -18
  299. package/templates/saas/i18n/engine/resources/applicationOAuthClients.en.ts +2 -58
  300. package/templates/saas/i18n/engine/resources/applicationOAuthClients.fr.ts +2 -58
  301. package/templates/saas/i18n/engine/resources/applicationProviderCredentials.en.ts +168 -0
  302. package/templates/saas/i18n/engine/resources/applicationProviderCredentials.fr.ts +168 -0
  303. package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.en.ts +0 -30
  304. package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.fr.ts +0 -30
  305. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.en.ts +3 -42
  306. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.fr.ts +5 -44
  307. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.en.ts +3 -30
  308. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.fr.ts +0 -27
  309. package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.en.ts +0 -24
  310. package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.fr.ts +0 -24
  311. package/templates/saas/i18n/engine/resources/applicationSsoConfig.en.ts +113 -61
  312. package/templates/saas/i18n/engine/resources/applicationSsoConfig.fr.ts +113 -61
  313. package/templates/saas/i18n/engine/resources/applicationSsoConnections.en.ts +0 -138
  314. package/templates/saas/i18n/engine/resources/applicationSsoConnections.fr.ts +0 -138
  315. package/templates/saas/i18n/engine/resources/applicationVersions.en.ts +3 -27
  316. package/templates/saas/i18n/engine/resources/applicationVersions.fr.ts +0 -24
  317. package/templates/saas/i18n/engine/resources/applicationWebhookConfig.en.ts +5 -54
  318. package/templates/saas/i18n/engine/resources/applicationWebhookConfig.fr.ts +5 -54
  319. package/templates/saas/i18n/engine/resources/applications.en.ts +39 -2177
  320. package/templates/saas/i18n/engine/resources/applications.fr.ts +39 -2177
  321. package/templates/saas/i18n/engine/resources/approvalSeals.en.ts +38 -31
  322. package/templates/saas/i18n/engine/resources/approvalSeals.fr.ts +38 -31
  323. package/templates/saas/i18n/engine/resources/auditLogs.en.ts +78 -111
  324. package/templates/saas/i18n/engine/resources/auditLogs.fr.ts +78 -111
  325. package/templates/saas/i18n/engine/resources/billingEffectOutbox.en.ts +2 -4
  326. package/templates/saas/i18n/engine/resources/billingEffectOutbox.fr.ts +2 -4
  327. package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.en.ts +8 -6
  328. package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.fr.ts +8 -6
  329. package/templates/saas/i18n/engine/resources/chatConversations.en.ts +0 -18
  330. package/templates/saas/i18n/engine/resources/chatConversations.fr.ts +0 -18
  331. package/templates/saas/i18n/engine/resources/chatIdentityLinks.en.ts +0 -44
  332. package/templates/saas/i18n/engine/resources/chatIdentityLinks.fr.ts +0 -44
  333. package/templates/saas/i18n/engine/resources/consumableTokens.en.ts +4 -43
  334. package/templates/saas/i18n/engine/resources/consumableTokens.fr.ts +4 -43
  335. package/templates/saas/i18n/engine/resources/conversationMessages.en.ts +16 -27
  336. package/templates/saas/i18n/engine/resources/conversationMessages.fr.ts +16 -27
  337. package/templates/saas/i18n/engine/resources/conversationReplyTokens.en.ts +0 -27
  338. package/templates/saas/i18n/engine/resources/conversationReplyTokens.fr.ts +0 -27
  339. package/templates/saas/i18n/engine/resources/conversationThreads.en.ts +0 -27
  340. package/templates/saas/i18n/engine/resources/conversationThreads.fr.ts +0 -27
  341. package/templates/saas/i18n/engine/resources/dataSeedRuns.en.ts +22 -17
  342. package/templates/saas/i18n/engine/resources/dataSeedRuns.fr.ts +22 -17
  343. package/templates/saas/i18n/engine/resources/dataSubjectRequests.en.ts +410 -0
  344. package/templates/saas/i18n/engine/resources/dataSubjectRequests.fr.ts +410 -0
  345. package/templates/saas/i18n/engine/resources/etlPipelineStates.en.ts +128 -146
  346. package/templates/saas/i18n/engine/resources/etlPipelineStates.fr.ts +0 -18
  347. package/templates/saas/i18n/engine/resources/evaluationDatasetExports.en.ts +13 -43
  348. package/templates/saas/i18n/engine/resources/evaluationDatasetExports.fr.ts +0 -30
  349. package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.en.ts +0 -12
  350. package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.fr.ts +0 -12
  351. package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.en.ts +0 -21
  352. package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.fr.ts +0 -21
  353. package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.en.ts +24 -45
  354. package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.fr.ts +0 -21
  355. package/templates/saas/i18n/engine/resources/externalDataPendingReferences.en.ts +0 -24
  356. package/templates/saas/i18n/engine/resources/externalDataPendingReferences.fr.ts +0 -24
  357. package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.en.ts +0 -21
  358. package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.fr.ts +0 -21
  359. package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.en.ts +8 -14
  360. package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.fr.ts +0 -6
  361. package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.en.ts +0 -24
  362. package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.fr.ts +0 -24
  363. package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.en.ts +150 -174
  364. package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.fr.ts +0 -24
  365. package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.en.ts +12 -33
  366. package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.fr.ts +0 -21
  367. package/templates/saas/i18n/engine/resources/externalEffectReservations.en.ts +147 -0
  368. package/templates/saas/i18n/engine/resources/externalEffectReservations.fr.ts +147 -0
  369. package/templates/saas/i18n/engine/resources/files.en.ts +0 -39
  370. package/templates/saas/i18n/engine/resources/files.fr.ts +0 -39
  371. package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.en.ts +0 -18
  372. package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.fr.ts +0 -18
  373. package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.en.ts +115 -0
  374. package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.fr.ts +115 -0
  375. package/templates/saas/i18n/engine/resources/inboundAddressTombstones.en.ts +0 -27
  376. package/templates/saas/i18n/engine/resources/inboundAddressTombstones.fr.ts +0 -27
  377. package/templates/saas/i18n/engine/resources/inboundContacts.en.ts +3 -30
  378. package/templates/saas/i18n/engine/resources/inboundContacts.fr.ts +0 -27
  379. package/templates/saas/i18n/engine/resources/inboundEmails.en.ts +0 -27
  380. package/templates/saas/i18n/engine/resources/inboundEmails.fr.ts +0 -27
  381. package/templates/saas/i18n/engine/resources/jobExecutions.en.ts +11 -25
  382. package/templates/saas/i18n/engine/resources/jobExecutions.fr.ts +11 -25
  383. package/templates/saas/i18n/engine/resources/jobPayloadStorage.en.ts +3 -30
  384. package/templates/saas/i18n/engine/resources/jobPayloadStorage.fr.ts +0 -27
  385. package/templates/saas/i18n/engine/resources/legalHolds.en.ts +0 -88
  386. package/templates/saas/i18n/engine/resources/legalHolds.fr.ts +0 -88
  387. package/templates/saas/i18n/engine/resources/modelCallAttributions.en.ts +16 -40
  388. package/templates/saas/i18n/engine/resources/modelCallAttributions.fr.ts +0 -24
  389. package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.en.ts +13 -37
  390. package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.fr.ts +0 -24
  391. package/templates/saas/i18n/engine/resources/oauthConsentGrants.en.ts +10 -40
  392. package/templates/saas/i18n/engine/resources/oauthConsentGrants.fr.ts +0 -30
  393. package/templates/saas/i18n/engine/resources/operationApprovalRequests.en.ts +120 -60
  394. package/templates/saas/i18n/engine/resources/operationApprovalRequests.fr.ts +120 -60
  395. package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.en.ts +3 -21
  396. package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.fr.ts +0 -18
  397. package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.en.ts +3 -33
  398. package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.fr.ts +0 -30
  399. package/templates/saas/i18n/engine/resources/organizationAgentPolicies.en.ts +0 -27
  400. package/templates/saas/i18n/engine/resources/organizationAgentPolicies.fr.ts +0 -27
  401. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.en.ts +0 -27
  402. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.fr.ts +0 -27
  403. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.en.ts +13 -43
  404. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.fr.ts +0 -30
  405. package/templates/saas/i18n/engine/resources/organizationApiKeys.en.ts +2 -79
  406. package/templates/saas/i18n/engine/resources/organizationApiKeys.fr.ts +2 -79
  407. package/templates/saas/i18n/engine/resources/organizationBillingAccounts.en.ts +0 -549
  408. package/templates/saas/i18n/engine/resources/organizationBillingAccounts.fr.ts +0 -549
  409. package/templates/saas/i18n/engine/resources/organizationChatSettings.en.ts +0 -27
  410. package/templates/saas/i18n/engine/resources/organizationChatSettings.fr.ts +0 -27
  411. package/templates/saas/i18n/engine/resources/organizationCreditPools.en.ts +13 -18
  412. package/templates/saas/i18n/engine/resources/organizationCreditPools.fr.ts +13 -18
  413. package/templates/saas/i18n/engine/resources/organizationCustomDomains.en.ts +195 -0
  414. package/templates/saas/i18n/engine/resources/organizationCustomDomains.fr.ts +195 -0
  415. package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.en.ts +153 -0
  416. package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.fr.ts +153 -0
  417. package/templates/saas/i18n/engine/resources/organizationEmailDomains.en.ts +0 -39
  418. package/templates/saas/i18n/engine/resources/organizationEmailDomains.fr.ts +0 -39
  419. package/templates/saas/i18n/engine/resources/organizationFeatures.en.ts +0 -34
  420. package/templates/saas/i18n/engine/resources/organizationFeatures.fr.ts +0 -34
  421. package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.en.ts +25 -160
  422. package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.fr.ts +25 -160
  423. package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.en.ts +6 -28
  424. package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.fr.ts +8 -30
  425. package/templates/saas/i18n/engine/resources/organizationGuidanceState.en.ts +3 -18
  426. package/templates/saas/i18n/engine/resources/organizationGuidanceState.fr.ts +0 -15
  427. package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.en.ts +95 -26
  428. package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.fr.ts +95 -26
  429. package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.en.ts +14 -45
  430. package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.fr.ts +14 -45
  431. package/templates/saas/i18n/engine/resources/organizationLifecycleState.en.ts +1 -17
  432. package/templates/saas/i18n/engine/resources/organizationLifecycleState.fr.ts +1 -17
  433. package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.en.ts +2 -26
  434. package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.fr.ts +4 -28
  435. package/templates/saas/i18n/engine/resources/organizationMembers.en.ts +2 -95
  436. package/templates/saas/i18n/engine/resources/organizationMembers.fr.ts +2 -95
  437. package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.en.ts +0 -27
  438. package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.fr.ts +0 -27
  439. package/templates/saas/i18n/engine/resources/organizationNotificationBadges.en.ts +3 -36
  440. package/templates/saas/i18n/engine/resources/organizationNotificationBadges.fr.ts +0 -33
  441. package/templates/saas/i18n/engine/resources/organizationNotifications.en.ts +0 -12
  442. package/templates/saas/i18n/engine/resources/organizationNotifications.fr.ts +0 -12
  443. package/templates/saas/i18n/engine/resources/organizationOAuthClients.en.ts +2 -67
  444. package/templates/saas/i18n/engine/resources/organizationOAuthClients.fr.ts +2 -67
  445. package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.en.ts +0 -9
  446. package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.fr.ts +0 -9
  447. package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.en.ts +0 -27
  448. package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.fr.ts +0 -27
  449. package/templates/saas/i18n/engine/resources/organizationPreferences.en.ts +0 -37
  450. package/templates/saas/i18n/engine/resources/organizationPreferences.fr.ts +0 -37
  451. package/templates/saas/i18n/engine/resources/organizationProfiles.en.ts +0 -37
  452. package/templates/saas/i18n/engine/resources/organizationProfiles.fr.ts +0 -37
  453. package/templates/saas/i18n/engine/resources/organizationProgressionState.en.ts +1 -17
  454. package/templates/saas/i18n/engine/resources/organizationProgressionState.fr.ts +1 -17
  455. package/templates/saas/i18n/engine/resources/organizationProviderCredentials.en.ts +0 -58
  456. package/templates/saas/i18n/engine/resources/organizationProviderCredentials.fr.ts +0 -58
  457. package/templates/saas/i18n/engine/resources/organizationRelationships.en.ts +0 -128
  458. package/templates/saas/i18n/engine/resources/organizationRelationships.fr.ts +0 -128
  459. package/templates/saas/i18n/engine/resources/organizationRepresentations.en.ts +0 -83
  460. package/templates/saas/i18n/engine/resources/organizationRepresentations.fr.ts +0 -83
  461. package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.en.ts +0 -43
  462. package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.fr.ts +0 -43
  463. package/templates/saas/i18n/engine/resources/organizationScimTokens.en.ts +5 -76
  464. package/templates/saas/i18n/engine/resources/organizationScimTokens.fr.ts +5 -76
  465. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.en.ts +4 -43
  466. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.fr.ts +6 -45
  467. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.en.ts +3 -30
  468. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.fr.ts +0 -27
  469. package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.en.ts +0 -37
  470. package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.fr.ts +0 -37
  471. package/templates/saas/i18n/engine/resources/organizationSsoConfig.en.ts +113 -74
  472. package/templates/saas/i18n/engine/resources/organizationSsoConfig.fr.ts +113 -74
  473. package/templates/saas/i18n/engine/resources/organizationSsoConnections.en.ts +0 -148
  474. package/templates/saas/i18n/engine/resources/organizationSsoConnections.fr.ts +0 -148
  475. package/templates/saas/i18n/engine/resources/organizationSubscriptions.en.ts +40 -78
  476. package/templates/saas/i18n/engine/resources/organizationSubscriptions.fr.ts +42 -80
  477. package/templates/saas/i18n/engine/resources/organizationUnitMembers.en.ts +2 -50
  478. package/templates/saas/i18n/engine/resources/organizationUnitMembers.fr.ts +2 -50
  479. package/templates/saas/i18n/engine/resources/organizationUnits.en.ts +0 -49
  480. package/templates/saas/i18n/engine/resources/organizationUnits.fr.ts +0 -49
  481. package/templates/saas/i18n/engine/resources/organizationUsageRecords.en.ts +13 -37
  482. package/templates/saas/i18n/engine/resources/organizationUsageRecords.fr.ts +13 -37
  483. package/templates/saas/i18n/engine/resources/organizationWebhookConfig.en.ts +5 -67
  484. package/templates/saas/i18n/engine/resources/organizationWebhookConfig.fr.ts +5 -67
  485. package/templates/saas/i18n/engine/resources/organizations.en.ts +34 -637
  486. package/templates/saas/i18n/engine/resources/organizations.fr.ts +32 -635
  487. package/templates/saas/i18n/engine/resources/platformAccessGrants.en.ts +0 -91
  488. package/templates/saas/i18n/engine/resources/platformAccessGrants.fr.ts +0 -91
  489. package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.en.ts +0 -24
  490. package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.fr.ts +0 -24
  491. package/templates/saas/i18n/engine/resources/prices.en.ts +47 -108
  492. package/templates/saas/i18n/engine/resources/prices.fr.ts +48 -109
  493. package/templates/saas/i18n/engine/resources/products.en.ts +24 -68
  494. package/templates/saas/i18n/engine/resources/products.fr.ts +24 -68
  495. package/templates/saas/i18n/engine/resources/professionalQualifications.en.ts +0 -87
  496. package/templates/saas/i18n/engine/resources/professionalQualifications.fr.ts +0 -87
  497. package/templates/saas/i18n/engine/resources/promotions.en.ts +4 -56
  498. package/templates/saas/i18n/engine/resources/promotions.fr.ts +6 -58
  499. package/templates/saas/i18n/engine/resources/providerCallRecords.en.ts +77 -101
  500. package/templates/saas/i18n/engine/resources/providerCallRecords.fr.ts +0 -24
  501. package/templates/saas/i18n/engine/resources/publishedVerificationKeys.en.ts +2 -25
  502. package/templates/saas/i18n/engine/resources/publishedVerificationKeys.fr.ts +2 -25
  503. package/templates/saas/i18n/engine/resources/referrals.en.ts +21 -18
  504. package/templates/saas/i18n/engine/resources/referrals.fr.ts +21 -18
  505. package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.en.ts +0 -80
  506. package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.fr.ts +0 -80
  507. package/templates/saas/i18n/engine/resources/relationshipInvitations.en.ts +0 -89
  508. package/templates/saas/i18n/engine/resources/relationshipInvitations.fr.ts +0 -89
  509. package/templates/saas/i18n/engine/resources/relationshipMailboxes.en.ts +0 -27
  510. package/templates/saas/i18n/engine/resources/relationshipMailboxes.fr.ts +0 -27
  511. package/templates/saas/i18n/engine/resources/representativeAssignments.en.ts +108 -112
  512. package/templates/saas/i18n/engine/resources/representativeAssignments.fr.ts +108 -112
  513. package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.en.ts +8 -21
  514. package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.fr.ts +8 -21
  515. package/templates/saas/i18n/engine/resources/signatureRequestSigners.en.ts +141 -0
  516. package/templates/saas/i18n/engine/resources/signatureRequestSigners.fr.ts +141 -0
  517. package/templates/saas/i18n/engine/resources/signatureRequests.en.ts +205 -0
  518. package/templates/saas/i18n/engine/resources/signatureRequests.fr.ts +205 -0
  519. package/templates/saas/i18n/engine/resources/smsNumberAssignments.en.ts +101 -0
  520. package/templates/saas/i18n/engine/resources/smsNumberAssignments.fr.ts +101 -0
  521. package/templates/saas/i18n/engine/resources/smsOptOuts.en.ts +166 -0
  522. package/templates/saas/i18n/engine/resources/smsOptOuts.fr.ts +166 -0
  523. package/templates/saas/i18n/engine/resources/smsProviderEvents.en.ts +195 -0
  524. package/templates/saas/i18n/engine/resources/smsProviderEvents.fr.ts +195 -0
  525. package/templates/saas/i18n/engine/resources/ssoDomainReservations.en.ts +0 -27
  526. package/templates/saas/i18n/engine/resources/ssoDomainReservations.fr.ts +0 -27
  527. package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.en.ts +3 -39
  528. package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.fr.ts +0 -36
  529. package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.en.ts +0 -3
  530. package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.fr.ts +0 -3
  531. package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.en.ts +0 -6
  532. package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.fr.ts +0 -6
  533. package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.en.ts +3 -21
  534. package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.fr.ts +0 -18
  535. package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.en.ts +3 -33
  536. package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.fr.ts +0 -30
  537. package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.en.ts +0 -27
  538. package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.fr.ts +0 -27
  539. package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.en.ts +13 -43
  540. package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.fr.ts +0 -30
  541. package/templates/saas/i18n/engine/resources/userCredentials.en.ts +3 -87
  542. package/templates/saas/i18n/engine/resources/userCredentials.fr.ts +0 -84
  543. package/templates/saas/i18n/engine/resources/userFeatures.en.ts +0 -12
  544. package/templates/saas/i18n/engine/resources/userFeatures.fr.ts +0 -12
  545. package/templates/saas/i18n/engine/resources/userFlowActorExecutions.en.ts +25 -160
  546. package/templates/saas/i18n/engine/resources/userFlowActorExecutions.fr.ts +25 -160
  547. package/templates/saas/i18n/engine/resources/userFlowActorTasks.en.ts +6 -28
  548. package/templates/saas/i18n/engine/resources/userFlowActorTasks.fr.ts +8 -30
  549. package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.en.ts +13 -18
  550. package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.fr.ts +13 -18
  551. package/templates/saas/i18n/engine/resources/userGuidanceState.en.ts +3 -18
  552. package/templates/saas/i18n/engine/resources/userGuidanceState.fr.ts +0 -15
  553. package/templates/saas/i18n/engine/resources/userIdentityLinks.en.ts +13 -40
  554. package/templates/saas/i18n/engine/resources/userIdentityLinks.fr.ts +0 -27
  555. package/templates/saas/i18n/engine/resources/userLifecycleState.en.ts +0 -15
  556. package/templates/saas/i18n/engine/resources/userLifecycleState.fr.ts +0 -15
  557. package/templates/saas/i18n/engine/resources/userNotificationBadges.en.ts +3 -36
  558. package/templates/saas/i18n/engine/resources/userNotificationBadges.fr.ts +0 -33
  559. package/templates/saas/i18n/engine/resources/userPreferences.en.ts +8 -60
  560. package/templates/saas/i18n/engine/resources/userPreferences.fr.ts +8 -60
  561. package/templates/saas/i18n/engine/resources/userProfiles.en.ts +5 -56
  562. package/templates/saas/i18n/engine/resources/userProfiles.fr.ts +0 -51
  563. package/templates/saas/i18n/engine/resources/userProgressionState.en.ts +1 -17
  564. package/templates/saas/i18n/engine/resources/userProgressionState.fr.ts +1 -17
  565. package/templates/saas/i18n/engine/resources/userProviderCredentials.en.ts +0 -52
  566. package/templates/saas/i18n/engine/resources/userProviderCredentials.fr.ts +0 -52
  567. package/templates/saas/i18n/engine/resources/userSelfPreferences.en.ts +8 -56
  568. package/templates/saas/i18n/engine/resources/userSelfPreferences.fr.ts +8 -56
  569. package/templates/saas/i18n/engine/resources/userSelfProfiles.en.ts +5 -61
  570. package/templates/saas/i18n/engine/resources/userSelfProfiles.fr.ts +0 -56
  571. package/templates/saas/i18n/engine/resources/user_self.en.ts +37 -214
  572. package/templates/saas/i18n/engine/resources/user_self.fr.ts +37 -214
  573. package/templates/saas/i18n/engine/resources/users.en.ts +53 -180
  574. package/templates/saas/i18n/engine/resources/users.fr.ts +53 -180
  575. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/Dockerfile +4 -1
  576. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/plugins/api-reference-pages.ts +9 -1
  577. package/templates/saas/scenarios/add-website/files/website/Dockerfile +4 -1
  578. package/templates/saas/scenarios/add-website/files/website/astro.config.ts.hbs +4 -0
  579. package/templates/saas/scenarios/add-website/files/website/package.json.hbs +1 -1
  580. package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/Dockerfile.hbs +3 -1
  581. package/templates/saas/skeleton/.wildo-saas/wildo-dev-companion/scripts/dev-supervised.sh +18 -4
  582. package/templates/saas/skeleton/backend-api/Dockerfile +5 -2
  583. package/templates/saas/skeleton/frontend/Dockerfile +4 -1
  584. package/templates/saas/skeleton/frontend/nginx-config/default.conf.hbs +1 -1
  585. package/templates/saas/skeleton/frontend/src/generated/csp.generated.json.hbs +4 -4
  586. package/templates/saas/skeleton/frontend/vite-engine-dependency-prebundle.ts +10 -1
  587. package/templates/saas/skeleton/frontend/vite.config.ts.hbs +14 -3
  588. package/templates/saas/skeleton/infrastructure/local/wildo.infra.local.config.ts.hbs +2 -0
  589. package/wildo-framework.info.json +1 -1
@@ -32,6 +32,12 @@ export type FrameworkWorkload = PlatformDataServices | PlatformWildoServices;
32
32
  export interface FrameworkWorkloadNetworkContext {
33
33
  /** Whether the environment self-hosts the platform Vault (#2933); only then does apps-manager join its segment. */
34
34
  readonly selfHostsPlatformKeyVault: boolean;
35
+ /**
36
+ * Whether the environment runs a message broker (`environmentServiceProfileRunsMessageBroker`, #2303 slice D); only then
37
+ * do the platform's broker clients join its segment. Under a profile whose queue lives in the application's database
38
+ * there is no broker, and a segment with no server is a membership that grants nothing and claims a dependency.
39
+ */
40
+ readonly runsMessageBroker: boolean;
35
41
  }
36
42
  /**
37
43
  * The framework workloads that need a route off the cluster, with the reason. Everything else has none: a database, a
@@ -1 +1 @@
1
- {"version":3,"file":"framework-pod-network-membership.d.ts","sourceRoot":"","sources":["../../../../src/services/deployment/framework-pod-network-membership.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAE3F,OAAO,EAAE,oBAAoB,EAAE,MAAM,yDAAyD,CAAC;AAE/F,+FAA+F;AAC/F,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,GAAG,qBAAqB,CAAC;AAE7E,6DAA6D;AAC7D,MAAM,WAAW,+BAA+B;IAC9C,mHAAmH;IACnH,QAAQ,CAAC,yBAAyB,EAAE,OAAO,CAAC;CAC7C;AA+DD;;;;;;;;;GASG;AACH,eAAO,MAAM,kCAAkC,EAAE,WAAW,CAAC,iBAAiB,CAM5E,CAAC;AAEH;;;GAGG;AACH,wBAAgB,gCAAgC,CAC9C,QAAQ,EAAE,iBAAiB,EAC3B,OAAO,EAAE,+BAA+B,GACvC,mBAAmB,EAAE,CAIvB;AAED,wHAAwH;AACxH,wBAAgB,gCAAgC,CAC9C,QAAQ,EAAE,iBAAiB,EAC3B,OAAO,EAAE,+BAA+B,GACvC,mBAAmB,EAAE,CAIvB;AAED,4GAA4G;AAC5G,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,iBAAiB,GAAG,IAAI,CAEjF"}
1
+ {"version":3,"file":"framework-pod-network-membership.d.ts","sourceRoot":"","sources":["../../../../src/services/deployment/framework-pod-network-membership.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAE3F,OAAO,EAAE,oBAAoB,EAAE,MAAM,yDAAyD,CAAC;AAE/F,+FAA+F;AAC/F,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,GAAG,qBAAqB,CAAC;AAE7E,6DAA6D;AAC7D,MAAM,WAAW,+BAA+B;IAC9C,mHAAmH;IACnH,QAAQ,CAAC,yBAAyB,EAAE,OAAO,CAAC;IAC5C;;;;OAIG;IACH,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;CACrC;AAuED;;;;;;;;;GASG;AACH,eAAO,MAAM,kCAAkC,EAAE,WAAW,CAAC,iBAAiB,CAM5E,CAAC;AAEH;;;GAGG;AACH,wBAAgB,gCAAgC,CAC9C,QAAQ,EAAE,iBAAiB,EAC3B,OAAO,EAAE,+BAA+B,GACvC,mBAAmB,EAAE,CAKvB;AAED,wHAAwH;AACxH,wBAAgB,gCAAgC,CAC9C,QAAQ,EAAE,iBAAiB,EAC3B,OAAO,EAAE,+BAA+B,GACvC,mBAAmB,EAAE,CAIvB;AAED,4GAA4G;AAC5G,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,iBAAiB,GAAG,IAAI,CAEjF"}
@@ -46,11 +46,11 @@ const FRAMEWORK_WORKLOAD_SEGMENTS = {
46
46
  [PlatformDataServices.OPENBAO]: [WildoRuntimeNetwork.DATA_KEYS],
47
47
  // The platform services: the control plane every runtime fetches its bootstrap material from, plus the stores each
48
48
  // one writes. apps-manager's key-custodian segment is added by `resolveFrameworkWorkloadNetworks` when there is one.
49
+ // The broker segment is added by `resolveFrameworkWorkloadSegments` while the environment runs one (#2303 slice D).
49
50
  [PlatformWildoServices.PLATFORM_INIT]: [
50
51
  WildoRuntimeNetwork.PLATFORM,
51
52
  WildoRuntimeNetwork.DATA_MONGO,
52
53
  WildoRuntimeNetwork.DATA_REDIS,
53
- WildoRuntimeNetwork.DATA_RABBIT,
54
54
  WildoRuntimeNetwork.DATA_POSTGRES,
55
55
  WildoRuntimeNetwork.DATA_OBJECTS,
56
56
  ],
@@ -58,16 +58,15 @@ const FRAMEWORK_WORKLOAD_SEGMENTS = {
58
58
  WildoRuntimeNetwork.PLATFORM,
59
59
  WildoRuntimeNetwork.DATA_MONGO,
60
60
  WildoRuntimeNetwork.DATA_REDIS,
61
- WildoRuntimeNetwork.DATA_RABBIT,
62
61
  WildoRuntimeNetwork.DATA_POSTGRES,
63
62
  WildoRuntimeNetwork.DATA_OBJECTS,
64
63
  WildoRuntimeNetwork.DATA_TELEMETRY,
65
64
  ],
65
+ // No broker segment under any profile: the scheduler delivers over HTTP and holds no broker connection (#2303 slice B).
66
66
  [PlatformWildoServices.CRONTABS_BATCHES_MANAGER]: [
67
67
  WildoRuntimeNetwork.PLATFORM,
68
68
  WildoRuntimeNetwork.DATA_MONGO,
69
69
  WildoRuntimeNetwork.DATA_REDIS,
70
- WildoRuntimeNetwork.DATA_RABBIT,
71
70
  WildoRuntimeNetwork.DATA_OBJECTS,
72
71
  WildoRuntimeNetwork.DATA_TELEMETRY,
73
72
  ],
@@ -80,6 +79,14 @@ const FRAMEWORK_WORKLOAD_SEGMENTS = {
80
79
  WildoRuntimeNetwork.DATA_TELEMETRY,
81
80
  ],
82
81
  };
82
+ /**
83
+ * The workloads that join the broker's segment while the environment runs one: platform-init and apps-manager provision
84
+ * the broker's users and vhosts through its management API (#2303 slice D).
85
+ */
86
+ const MESSAGE_BROKER_CLIENTS = new Set([
87
+ PlatformWildoServices.PLATFORM_INIT,
88
+ PlatformWildoServices.APPS_MANAGER,
89
+ ]);
83
90
  /** The workloads that join the platform Vault's segment when the environment self-hosts one. */
84
91
  const PLATFORM_KEY_VAULT_CLIENTS = new Set([
85
92
  PlatformWildoServices.APPS_MANAGER,
@@ -108,6 +115,8 @@ export const FRAMEWORK_WORKLOAD_INTERNET_EGRESS = new Set([
108
115
  */
109
116
  export function resolveFrameworkWorkloadSegments(workload, context) {
110
117
  const segments = [...FRAMEWORK_WORKLOAD_SEGMENTS[workload]];
118
+ if (context.runsMessageBroker && MESSAGE_BROKER_CLIENTS.has(workload))
119
+ segments.push(WildoRuntimeNetwork.DATA_RABBIT);
111
120
  if (context.selfHostsPlatformKeyVault && PLATFORM_KEY_VAULT_CLIENTS.has(workload))
112
121
  segments.push(WildoRuntimeNetwork.DATA_KEYS);
113
122
  return segments;
@@ -1 +1 @@
1
- {"version":3,"file":"framework-pod-network-membership.js","sourceRoot":"","sources":["../../../../src/services/deployment/framework-pod-network-membership.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAE3F,OAAO,EAAE,oBAAoB,EAAE,MAAM,yDAAyD,CAAC;AAW/F;;;GAGG;AACH,MAAM,2BAA2B,GAA8D;IAC7F,qHAAqH;IACrH,4EAA4E;IAC5E,CAAC,oBAAoB,CAAC,OAAO,CAAC,EAAE,CAAC,mBAAmB,CAAC,UAAU,CAAC;IAChE,CAAC,oBAAoB,CAAC,YAAY,CAAC,EAAE,CAAC,mBAAmB,CAAC,UAAU,CAAC;IACrE,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,CAAC,mBAAmB,CAAC,UAAU,CAAC;IAC/D,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,CAAC,mBAAmB,CAAC,UAAU,CAAC;IAC/D,CAAC,oBAAoB,CAAC,QAAQ,CAAC,EAAE,CAAC,mBAAmB,CAAC,WAAW,CAAC;IAClE,CAAC,oBAAoB,CAAC,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAAC,YAAY,CAAC;IAChE,CAAC,oBAAoB,CAAC,UAAU,CAAC,EAAE,CAAC,mBAAmB,CAAC,YAAY,CAAC;IACrE,CAAC,oBAAoB,CAAC,UAAU,CAAC,EAAE,CAAC,mBAAmB,CAAC,aAAa,CAAC;IACtE,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,CAAC,mBAAmB,CAAC,cAAc,CAAC;IACnE,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H,MAAM,CAAC,MAAM,kCAAkC,GAAmC,IAAI,GAAG,CAAoB;IAC3G,oBAAoB,CAAC,MAAM;IAC3B,qBAAqB,CAAC,aAAa;IACnC,qBAAqB,CAAC,YAAY;IAClC,qBAAqB,CAAC,wBAAwB;IAC9C,qBAAqB,CAAC,eAAe;CACtC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,UAAU,gCAAgC,CAC9C,QAA2B,EAC3B,OAAwC;IAExC,MAAM,QAAQ,GAAG,CAAC,GAAG,2BAA2B,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5D,IAAI,OAAO,CAAC,yBAAyB,IAAI,0BAA0B,CAAC,GAAG,CAAC,QAAQ,CAAC;QAAE,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC;IAChI,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,wHAAwH;AACxH,MAAM,UAAU,gCAAgC,CAC9C,QAA2B,EAC3B,OAAwC;IAExC,MAAM,QAAQ,GAAG,gCAAgC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACrE,IAAI,kCAAkC,CAAC,GAAG,CAAC,QAAQ,CAAC;QAAE,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAChG,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,4GAA4G;AAC5G,MAAM,UAAU,mBAAmB,CAAC,WAAmB;IACrD,OAAO,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,2BAA2B,EAAE,WAAW,CAAC,CAAC,CAAC,CAAE,WAAiC,CAAC,CAAC,CAAC,IAAI,CAAC;AACpI,CAAC","sourcesContent":["/**\n * The network segments each FRAMEWORK-owned workload belongs to (#3372): the backing services, the one-shot init jobs\n * and the platform services. Application runtimes are not here — their membership is derived from their principal and\n * declaration by `resolveRuntimeNetworkMembership` in `@wildo-ai/platform-config-lib`.\n *\n * ## Why this table exists\n *\n * The Kubernetes `NetworkPolicy` set is a namespace-wide default-deny plus one allow per segment, selecting on\n * `wildo.ai/net-<segment>` pod labels. Until #3372 only the application runtime pods carried those labels, so the\n * backing services they dial matched no allow rule and the policy set cut every runtime off its data plane. Every pod\n * the framework renders into the namespace therefore needs a membership, and this is where it is decided.\n *\n * ## Two lanes, one membership\n *\n * The compose lane expresses the same segments as network attachments written into\n * `templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs`. That template is hand-written, so this table\n * is the second statement of the same fact — the shape `.claude/rules/invariant-call-site-enumeration.md` row 23\n * records (one contract, two deployment lanes, one of them wrong). The coupling is pinned rather than trusted:\n * `docker-compose-generator.service.test.ts` renders the real compose template and requires every service's\n * `wildo-*` segment attachments to equal this table, so a segment added on either side alone fails a test.\n *\n * What the table deliberately does NOT copy from compose is the publish bridge (`wildo-host-access`). In compose every\n * container that publishes a port joins that non-internal bridge, which incidentally gives it a route off the host.\n * Kubernetes has no such side effect, so the route off the cluster is authored per workload as\n * {@link WildoRuntimeNetwork.EGRESS}, and is compared separately (see {@link FRAMEWORK_WORKLOAD_INTERNET_EGRESS}).\n */\nimport { PlatformWildoServices, WildoRuntimeNetwork } from '@wildo-ai/platform-config-lib';\n\nimport { PlatformDataServices } from '~wildo-cli/services/data-services/data-services.schemas';\n\n/** Every framework-owned workload that can be rendered into an environment, on either lane. */\nexport type FrameworkWorkload = PlatformDataServices | PlatformWildoServices;\n\n/** What membership depends on beyond the workload itself. */\nexport interface FrameworkWorkloadNetworkContext {\n /** Whether the environment self-hosts the platform Vault (#2933); only then does apps-manager join its segment. */\n readonly selfHostsPlatformKeyVault: boolean;\n}\n\n/**\n * The INTERNAL segments of each workload. Total over both vocabularies, so a new backing or platform service is a\n * compile error here rather than a pod the default-deny silently isolates.\n */\nconst FRAMEWORK_WORKLOAD_SEGMENTS: Record<FrameworkWorkload, readonly WildoRuntimeNetwork[]> = {\n // mongod and its search sidecar dial EACH OTHER (`mongotHost` one way, the sync source the other), which is why both\n // are plain members of the Mongo segment rather than one serving the other.\n [PlatformDataServices.MONGODB]: [WildoRuntimeNetwork.DATA_MONGO],\n [PlatformDataServices.MONGODB_INIT]: [WildoRuntimeNetwork.DATA_MONGO],\n [PlatformDataServices.MONGOT]: [WildoRuntimeNetwork.DATA_MONGO],\n [PlatformDataServices.VALKEY]: [WildoRuntimeNetwork.DATA_REDIS],\n [PlatformDataServices.RABBITMQ]: [WildoRuntimeNetwork.DATA_RABBIT],\n [PlatformDataServices.MINIO]: [WildoRuntimeNetwork.DATA_OBJECTS],\n [PlatformDataServices.MINIO_INIT]: [WildoRuntimeNetwork.DATA_OBJECTS],\n [PlatformDataServices.POSTGRESQL]: [WildoRuntimeNetwork.DATA_POSTGRES],\n [PlatformDataServices.CLAMAV]: [WildoRuntimeNetwork.DATA_ANTIVIRUS],\n [PlatformDataServices.IMMUDB]: [WildoRuntimeNetwork.DATA_AUDIT],\n [PlatformDataServices.OPENBAO]: [WildoRuntimeNetwork.DATA_KEYS],\n // The platform services: the control plane every runtime fetches its bootstrap material from, plus the stores each\n // one writes. apps-manager's key-custodian segment is added by `resolveFrameworkWorkloadNetworks` when there is one.\n [PlatformWildoServices.PLATFORM_INIT]: [\n WildoRuntimeNetwork.PLATFORM,\n WildoRuntimeNetwork.DATA_MONGO,\n WildoRuntimeNetwork.DATA_REDIS,\n WildoRuntimeNetwork.DATA_RABBIT,\n WildoRuntimeNetwork.DATA_POSTGRES,\n WildoRuntimeNetwork.DATA_OBJECTS,\n ],\n [PlatformWildoServices.APPS_MANAGER]: [\n WildoRuntimeNetwork.PLATFORM,\n WildoRuntimeNetwork.DATA_MONGO,\n WildoRuntimeNetwork.DATA_REDIS,\n WildoRuntimeNetwork.DATA_RABBIT,\n WildoRuntimeNetwork.DATA_POSTGRES,\n WildoRuntimeNetwork.DATA_OBJECTS,\n WildoRuntimeNetwork.DATA_TELEMETRY,\n ],\n [PlatformWildoServices.CRONTABS_BATCHES_MANAGER]: [\n WildoRuntimeNetwork.PLATFORM,\n WildoRuntimeNetwork.DATA_MONGO,\n WildoRuntimeNetwork.DATA_REDIS,\n WildoRuntimeNetwork.DATA_RABBIT,\n WildoRuntimeNetwork.DATA_OBJECTS,\n WildoRuntimeNetwork.DATA_TELEMETRY,\n ],\n [PlatformWildoServices.MODULE_REGISTRY]: [\n WildoRuntimeNetwork.PLATFORM,\n WildoRuntimeNetwork.DATA_MONGO,\n WildoRuntimeNetwork.DATA_POSTGRES,\n WildoRuntimeNetwork.DATA_REDIS,\n WildoRuntimeNetwork.DATA_OBJECTS,\n WildoRuntimeNetwork.DATA_TELEMETRY,\n ],\n};\n\n/** The workloads that join the platform Vault's segment when the environment self-hosts one. */\nconst PLATFORM_KEY_VAULT_CLIENTS: ReadonlySet<FrameworkWorkload> = new Set<FrameworkWorkload>([\n PlatformWildoServices.APPS_MANAGER,\n PlatformWildoServices.PLATFORM_INIT,\n]);\n\n/**\n * The framework workloads that need a route off the cluster, with the reason. Everything else has none: a database, a\n * cache, a broker or a key custodian answers connections and opens none to the outside.\n *\n * - **ClamAV** refreshes its signature database from the ClamAV mirrors (`freshclam`, run by the image itself); cut off,\n * it keeps scanning against signatures that age from the day the pod started.\n * - **The platform services** reach every backing service an environment declares MANAGED — those live outside the\n * cluster, so no in-namespace segment reaches them — and the external providers apps-manager calls (cloud key\n * management, provider credential checks). In compose they have the same route, through the publish bridge.\n */\nexport const FRAMEWORK_WORKLOAD_INTERNET_EGRESS: ReadonlySet<FrameworkWorkload> = new Set<FrameworkWorkload>([\n PlatformDataServices.CLAMAV,\n PlatformWildoServices.PLATFORM_INIT,\n PlatformWildoServices.APPS_MANAGER,\n PlatformWildoServices.CRONTABS_BATCHES_MANAGER,\n PlatformWildoServices.MODULE_REGISTRY,\n]);\n\n/**\n * The INTERNAL segments a framework workload joins: the set the compose lane attaches it to (pinned against the\n * rendered compose file) and the set its Kubernetes pod labels name, minus the route off the cluster.\n */\nexport function resolveFrameworkWorkloadSegments(\n workload: FrameworkWorkload,\n context: FrameworkWorkloadNetworkContext,\n): WildoRuntimeNetwork[] {\n const segments = [...FRAMEWORK_WORKLOAD_SEGMENTS[workload]];\n if (context.selfHostsPlatformKeyVault && PLATFORM_KEY_VAULT_CLIENTS.has(workload)) segments.push(WildoRuntimeNetwork.DATA_KEYS);\n return segments;\n}\n\n/** Everything a framework workload's Kubernetes pod labels name: its segments plus, where authored, the egress door. */\nexport function resolveFrameworkWorkloadNetworks(\n workload: FrameworkWorkload,\n context: FrameworkWorkloadNetworkContext,\n): WildoRuntimeNetwork[] {\n const networks = resolveFrameworkWorkloadSegments(workload, context);\n if (FRAMEWORK_WORKLOAD_INTERNET_EGRESS.has(workload)) networks.push(WildoRuntimeNetwork.EGRESS);\n return networks;\n}\n\n/** Narrow a rendered service name to a framework workload, or `null` for a name the table does not know. */\nexport function asFrameworkWorkload(serviceName: string): FrameworkWorkload | null {\n return Object.prototype.hasOwnProperty.call(FRAMEWORK_WORKLOAD_SEGMENTS, serviceName) ? (serviceName as FrameworkWorkload) : null;\n}\n"]}
1
+ {"version":3,"file":"framework-pod-network-membership.js","sourceRoot":"","sources":["../../../../src/services/deployment/framework-pod-network-membership.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAE3F,OAAO,EAAE,oBAAoB,EAAE,MAAM,yDAAyD,CAAC;AAiB/F;;;GAGG;AACH,MAAM,2BAA2B,GAA8D;IAC7F,qHAAqH;IACrH,4EAA4E;IAC5E,CAAC,oBAAoB,CAAC,OAAO,CAAC,EAAE,CAAC,mBAAmB,CAAC,UAAU,CAAC;IAChE,CAAC,oBAAoB,CAAC,YAAY,CAAC,EAAE,CAAC,mBAAmB,CAAC,UAAU,CAAC;IACrE,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,CAAC,mBAAmB,CAAC,UAAU,CAAC;IAC/D,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,CAAC,mBAA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,OAAwC;IAExC,MAAM,QAAQ,GAAG,gCAAgC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACrE,IAAI,kCAAkC,CAAC,GAAG,CAAC,QAAQ,CAAC;QAAE,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAChG,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,4GAA4G;AAC5G,MAAM,UAAU,mBAAmB,CAAC,WAAmB;IACrD,OAAO,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,2BAA2B,EAAE,WAAW,CAAC,CAAC,CAAC,CAAE,WAAiC,CAAC,CAAC,CAAC,IAAI,CAAC;AACpI,CAAC","sourcesContent":["/**\n * The network segments each FRAMEWORK-owned workload belongs to (#3372): the backing services, the one-shot init jobs\n * and the platform services. Application runtimes are not here — their membership is derived from their principal and\n * declaration by `resolveRuntimeNetworkMembership` in `@wildo-ai/platform-config-lib`.\n *\n * ## Why this table exists\n *\n * The Kubernetes `NetworkPolicy` set is a namespace-wide default-deny plus one allow per segment, selecting on\n * `wildo.ai/net-<segment>` pod labels. Until #3372 only the application runtime pods carried those labels, so the\n * backing services they dial matched no allow rule and the policy set cut every runtime off its data plane. Every pod\n * the framework renders into the namespace therefore needs a membership, and this is where it is decided.\n *\n * ## Two lanes, one membership\n *\n * The compose lane expresses the same segments as network attachments written into\n * `templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs`. That template is hand-written, so this table\n * is the second statement of the same fact — the shape `.claude/rules/invariant-call-site-enumeration.md` row 23\n * records (one contract, two deployment lanes, one of them wrong). The coupling is pinned rather than trusted:\n * `docker-compose-generator.service.test.ts` renders the real compose template and requires every service's\n * `wildo-*` segment attachments to equal this table, so a segment added on either side alone fails a test.\n *\n * What the table deliberately does NOT copy from compose is the publish bridge (`wildo-host-access`). In compose every\n * container that publishes a port joins that non-internal bridge, which incidentally gives it a route off the host.\n * Kubernetes has no such side effect, so the route off the cluster is authored per workload as\n * {@link WildoRuntimeNetwork.EGRESS}, and is compared separately (see {@link FRAMEWORK_WORKLOAD_INTERNET_EGRESS}).\n */\nimport { PlatformWildoServices, WildoRuntimeNetwork } from '@wildo-ai/platform-config-lib';\n\nimport { PlatformDataServices } from '~wildo-cli/services/data-services/data-services.schemas';\n\n/** Every framework-owned workload that can be rendered into an environment, on either lane. */\nexport type FrameworkWorkload = PlatformDataServices | PlatformWildoServices;\n\n/** What membership depends on beyond the workload itself. */\nexport interface FrameworkWorkloadNetworkContext {\n /** Whether the environment self-hosts the platform Vault (#2933); only then does apps-manager join its segment. */\n readonly selfHostsPlatformKeyVault: boolean;\n /**\n * Whether the environment runs a message broker (`environmentServiceProfileRunsMessageBroker`, #2303 slice D); only then\n * do the platform's broker clients join its segment. Under a profile whose queue lives in the application's database\n * there is no broker, and a segment with no server is a membership that grants nothing and claims a dependency.\n */\n readonly runsMessageBroker: boolean;\n}\n\n/**\n * The INTERNAL segments of each workload. Total over both vocabularies, so a new backing or platform service is a\n * compile error here rather than a pod the default-deny silently isolates.\n */\nconst FRAMEWORK_WORKLOAD_SEGMENTS: Record<FrameworkWorkload, readonly WildoRuntimeNetwork[]> = {\n // mongod and its search sidecar dial EACH OTHER (`mongotHost` one way, the sync source the other), which is why both\n // are plain members of the Mongo segment rather than one serving the other.\n [PlatformDataServices.MONGODB]: [WildoRuntimeNetwork.DATA_MONGO],\n [PlatformDataServices.MONGODB_INIT]: [WildoRuntimeNetwork.DATA_MONGO],\n [PlatformDataServices.MONGOT]: [WildoRuntimeNetwork.DATA_MONGO],\n [PlatformDataServices.VALKEY]: [WildoRuntimeNetwork.DATA_REDIS],\n [PlatformDataServices.RABBITMQ]: [WildoRuntimeNetwork.DATA_RABBIT],\n [PlatformDataServices.MINIO]: [WildoRuntimeNetwork.DATA_OBJECTS],\n [PlatformDataServices.MINIO_INIT]: [WildoRuntimeNetwork.DATA_OBJECTS],\n [PlatformDataServices.POSTGRESQL]: [WildoRuntimeNetwork.DATA_POSTGRES],\n [PlatformDataServices.CLAMAV]: [WildoRuntimeNetwork.DATA_ANTIVIRUS],\n [PlatformDataServices.IMMUDB]: [WildoRuntimeNetwork.DATA_AUDIT],\n [PlatformDataServices.OPENBAO]: [WildoRuntimeNetwork.DATA_KEYS],\n // The platform services: the control plane every runtime fetches its bootstrap material from, plus the stores each\n // one writes. apps-manager's key-custodian segment is added by `resolveFrameworkWorkloadNetworks` when there is one.\n // The broker segment is added by `resolveFrameworkWorkloadSegments` while the environment runs one (#2303 slice D).\n [PlatformWildoServices.PLATFORM_INIT]: [\n WildoRuntimeNetwork.PLATFORM,\n WildoRuntimeNetwork.DATA_MONGO,\n WildoRuntimeNetwork.DATA_REDIS,\n WildoRuntimeNetwork.DATA_POSTGRES,\n WildoRuntimeNetwork.DATA_OBJECTS,\n ],\n [PlatformWildoServices.APPS_MANAGER]: [\n WildoRuntimeNetwork.PLATFORM,\n WildoRuntimeNetwork.DATA_MONGO,\n WildoRuntimeNetwork.DATA_REDIS,\n WildoRuntimeNetwork.DATA_POSTGRES,\n WildoRuntimeNetwork.DATA_OBJECTS,\n WildoRuntimeNetwork.DATA_TELEMETRY,\n ],\n // No broker segment under any profile: the scheduler delivers over HTTP and holds no broker connection (#2303 slice B).\n [PlatformWildoServices.CRONTABS_BATCHES_MANAGER]: [\n WildoRuntimeNetwork.PLATFORM,\n WildoRuntimeNetwork.DATA_MONGO,\n WildoRuntimeNetwork.DATA_REDIS,\n WildoRuntimeNetwork.DATA_OBJECTS,\n WildoRuntimeNetwork.DATA_TELEMETRY,\n ],\n [PlatformWildoServices.MODULE_REGISTRY]: [\n WildoRuntimeNetwork.PLATFORM,\n WildoRuntimeNetwork.DATA_MONGO,\n WildoRuntimeNetwork.DATA_POSTGRES,\n WildoRuntimeNetwork.DATA_REDIS,\n WildoRuntimeNetwork.DATA_OBJECTS,\n WildoRuntimeNetwork.DATA_TELEMETRY,\n ],\n};\n\n/**\n * The workloads that join the broker's segment while the environment runs one: platform-init and apps-manager provision\n * the broker's users and vhosts through its management API (#2303 slice D).\n */\nconst MESSAGE_BROKER_CLIENTS: ReadonlySet<FrameworkWorkload> = new Set<FrameworkWorkload>([\n PlatformWildoServices.PLATFORM_INIT,\n PlatformWildoServices.APPS_MANAGER,\n]);\n\n/** The workloads that join the platform Vault's segment when the environment self-hosts one. */\nconst PLATFORM_KEY_VAULT_CLIENTS: ReadonlySet<FrameworkWorkload> = new Set<FrameworkWorkload>([\n PlatformWildoServices.APPS_MANAGER,\n PlatformWildoServices.PLATFORM_INIT,\n]);\n\n/**\n * The framework workloads that need a route off the cluster, with the reason. Everything else has none: a database, a\n * cache, a broker or a key custodian answers connections and opens none to the outside.\n *\n * - **ClamAV** refreshes its signature database from the ClamAV mirrors (`freshclam`, run by the image itself); cut off,\n * it keeps scanning against signatures that age from the day the pod started.\n * - **The platform services** reach every backing service an environment declares MANAGED — those live outside the\n * cluster, so no in-namespace segment reaches them — and the external providers apps-manager calls (cloud key\n * management, provider credential checks). In compose they have the same route, through the publish bridge.\n */\nexport const FRAMEWORK_WORKLOAD_INTERNET_EGRESS: ReadonlySet<FrameworkWorkload> = new Set<FrameworkWorkload>([\n PlatformDataServices.CLAMAV,\n PlatformWildoServices.PLATFORM_INIT,\n PlatformWildoServices.APPS_MANAGER,\n PlatformWildoServices.CRONTABS_BATCHES_MANAGER,\n PlatformWildoServices.MODULE_REGISTRY,\n]);\n\n/**\n * The INTERNAL segments a framework workload joins: the set the compose lane attaches it to (pinned against the\n * rendered compose file) and the set its Kubernetes pod labels name, minus the route off the cluster.\n */\nexport function resolveFrameworkWorkloadSegments(\n workload: FrameworkWorkload,\n context: FrameworkWorkloadNetworkContext,\n): WildoRuntimeNetwork[] {\n const segments = [...FRAMEWORK_WORKLOAD_SEGMENTS[workload]];\n if (context.runsMessageBroker && MESSAGE_BROKER_CLIENTS.has(workload)) segments.push(WildoRuntimeNetwork.DATA_RABBIT);\n if (context.selfHostsPlatformKeyVault && PLATFORM_KEY_VAULT_CLIENTS.has(workload)) segments.push(WildoRuntimeNetwork.DATA_KEYS);\n return segments;\n}\n\n/** Everything a framework workload's Kubernetes pod labels name: its segments plus, where authored, the egress door. */\nexport function resolveFrameworkWorkloadNetworks(\n workload: FrameworkWorkload,\n context: FrameworkWorkloadNetworkContext,\n): WildoRuntimeNetwork[] {\n const networks = resolveFrameworkWorkloadSegments(workload, context);\n if (FRAMEWORK_WORKLOAD_INTERNET_EGRESS.has(workload)) networks.push(WildoRuntimeNetwork.EGRESS);\n return networks;\n}\n\n/** Narrow a rendered service name to a framework workload, or `null` for a name the table does not know. */\nexport function asFrameworkWorkload(serviceName: string): FrameworkWorkload | null {\n return Object.prototype.hasOwnProperty.call(FRAMEWORK_WORKLOAD_SEGMENTS, serviceName) ? (serviceName as FrameworkWorkload) : null;\n}\n"]}
@@ -80,7 +80,7 @@ export declare const SUPPORTED_NODE_MAJOR_VERSION = 26;
80
80
  * Floor for pnpm, mirroring root `package.json` → `engines.pnpm`.
81
81
  *
82
82
  * Deliberately a FLOOR rather than the exact `packageManager` pin. The pin
83
- * (`pnpm@10.6.4`) is enforced per-invocation by pnpm's own self-switch, so a
83
+ * (`pnpm@10.34.9` since #3014) is enforced per-invocation by pnpm's own self-switch, so a
84
84
  * host sitting slightly off it is normal and self-correcting; a host BELOW the
85
85
  * floor is not, because the self-switch mechanism itself is what changed
86
86
  * across pnpm 9 → 10. The two are reported separately by
@@ -82,7 +82,7 @@ export const SUPPORTED_NODE_MAJOR_VERSION = 26;
82
82
  * Floor for pnpm, mirroring root `package.json` → `engines.pnpm`.
83
83
  *
84
84
  * Deliberately a FLOOR rather than the exact `packageManager` pin. The pin
85
- * (`pnpm@10.6.4`) is enforced per-invocation by pnpm's own self-switch, so a
85
+ * (`pnpm@10.34.9` since #3014) is enforced per-invocation by pnpm's own self-switch, so a
86
86
  * host sitting slightly off it is normal and self-correcting; a host BELOW the
87
87
  * floor is not, because the self-switch mechanism itself is what changed
88
88
  * across pnpm 9 → 10. The two are reported separately by
@@ -1 +1 @@
1
- {"version":3,"file":"host-toolchain-readiness.service.js","sourceRoot":"","sources":["../../../../src/services/deployment/host-toolchain-readiness.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAE5G;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAE/C;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC;AAE7C;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,+CAA+C,CAAC;AAElF,6FAA6F;AAC7F,MAAM,sBAAsB,GAAG,MAAM,CAAC;AAEtC;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAC,GAAW;IAC/C,MAAM,MAAM,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC;IACvC,OAAO,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACnC,CAAC;AAED,2EAA2E;AAC3E,MAAM,UAAU,sBAAsB,CACpC,WAAmB,EACnB,iBAAyB,4BAA4B;IAErD,MAAM,KAAK,GAAG,qBAAqB,CAAC,WAAW,CAAC,CAAC;IACjD,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,IAAI,cAAc,CAAC;AACnD,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,qCAAqC,CACnD,YAAoB,EACpB,eAAyC,CAAC,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC;IAE9E,IAAI,QAAsC,CAAC;IAC3C,IAAI,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KAAK,QAAQ,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC;AACnG,CAAC;AAED,SAAS,QAAQ,CAAC,IAAY;IAC5B,OAAO,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7D,CAAC;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC","sourcesContent":["/**\n * Host toolchain readiness — Node, pnpm, and the C++ toolchain.\n *\n * These three sit BELOW everything else this CLI diagnoses. Docker Compose\n * being too old breaks the infrastructure; these break the machine, and every\n * one of them presents as something else entirely:\n *\n * - **Node.** The supported version had no single named source. `engines.node`\n * declared `>=18.0.0`, ~20 CI workflows pinned `22`, both installers\n * required `>=20`, and development ran `26.7.0` — four answers to one\n * question, with the LOOSEST one declared. That is not cosmetic: an\n * `engines` range advertising Node 18 covered configurations that provably\n * do not build, because `better-sqlite3` 11.x cannot compile on Node 26 at\n * all (Node 26 removed `v8::Object::GetPrototype`,\n * `v8::Context::GetIsolate` and `v8::PropertyCallbackInfo<T>::This`, which\n * its C++ uses). `SUPPORTED_NODE_MAJOR_VERSION` below is now that single\n * source; see its docblock for the sites that must be bumped with it.\n *\n * - **pnpm.** On 2026-08-08 the PATH-winning shim hardcoded pnpm 10.2.0,\n * which self-switches to the `packageManager` pin by downloading into\n * `~/Library/pnpm/.tools/`. That download had ABORTED, leaving a 4 KB\n * skeleton with no binary — so every `pnpm` invocation died `ENOENT` and\n * nothing in the repository could be installed, built or run. Note what\n * this means for the check: reading a version string would not have found\n * it, because the failure IS the inability to produce one. The probe below\n * therefore executes pnpm; the version comparison is the secondary answer,\n * not the primary one.\n *\n * - **The C++ toolchain.** The same machine reported Apple clang 21.0.0 with\n * SDK 26.5 — thoroughly modern — while\n * `CommandLineTools/usr/include/c++/v1` still held libc++ **11.0** (LLVM\n * 11, late 2020), with no `<ranges>`, `<format>` or `<coroutine>`. Every\n * native Node addon needing C++20 was unbuildable, which on Node 26 means\n * all of them, since Node's own V8 headers require C++20. The clang\n * version string was not merely unhelpful here — it was actively\n * misleading, which is why `probeCxx20Toolchain` COMPILES rather than\n * parses. That is the general rule this module follows and the baseline\n * records: verify a toolchain claim by executing it.\n *\n * Everything here is READ-ONLY and injection-friendly: each probe takes its\n * runner so a unit test can exercise the failure shapes without a host that\n * happens to be broken in the right way.\n *\n * @see `.claude/rules/toolchain-installation-baseline.md` — owns the baseline,\n * the framework-vs-application audience split, and the gap inventory these\n * probes close.\n */\n\nimport { execFileSync } from 'child_process';\nimport { readFileSync } from 'fs';\nimport { isVersionAtLeast, parseVersionTriple } from '~wildo-cli/services/deployment/version-compare.utils';\n\n/**\n * **The single named source for the supported Node major version.**\n *\n * Everything that states a Node requirement derives from this constant or is\n * pinned against it by a test. When it moves, ALL of the following move in the\n * same change — they are one decision expressed five times, and the reason the\n * baseline calls the previous state a defect is that four of them disagreed:\n *\n * 1. this constant;\n * 2. root `package.json` → `engines.node`;\n * 3. every `node-version:` in `.github/workflows/*.yml`;\n * 4. `platform/factory/scripts/install.sh` → `MIN_NODE_VERSION`;\n * 5. `platform/factory/scripts/install.ps1` → `$MIN_NODE_VERSION`.\n *\n * Sites 2, 4 and 5 are pinned to this constant by\n * `__tests__/host-toolchain-readiness.service.test.ts`; site 3 is pinned by\n * `__tests__/local-precondition-checks.service.test.ts`. Neither a shell\n * installer nor a YAML workflow can import a TypeScript constant, so a test is\n * the only mechanism available — bump one and CI fails until the rest follow.\n *\n * Recorded as TESTED, not aspirational: 26 is what development runs and what\n * CI runs. A range wider than that would be a claim nothing exercises, which\n * is precisely how `>=18.0.0` came to cover a configuration that cannot build.\n *\n * Binds BOTH audiences (framework development and application development) —\n * contrast the compiler, watcher and alias finalizer, which are\n * framework-development concerns and are never propagated into a generated\n * application. See the audience table in the baseline rule.\n */\nexport const SUPPORTED_NODE_MAJOR_VERSION = 26;\n\n/**\n * Floor for pnpm, mirroring root `package.json` → `engines.pnpm`.\n *\n * Deliberately a FLOOR rather than the exact `packageManager` pin. The pin\n * (`pnpm@10.6.4`) is enforced per-invocation by pnpm's own self-switch, so a\n * host sitting slightly off it is normal and self-correcting; a host BELOW the\n * floor is not, because the self-switch mechanism itself is what changed\n * across pnpm 9 → 10. The two are reported separately by\n * `checkPnpmToolchain` — one fails, the other warns.\n */\nexport const MINIMUM_PNPM_VERSION = '10.0.0';\n\n/**\n * The C++20 probe's translation unit.\n *\n * `<ranges>` is the discriminator, chosen because it is exactly what the\n * broken host lacked and because libc++ gained it late (LLVM 15/16), so a\n * pre-C++20 standard library fails on the `#include` itself rather than on\n * anything subtle. `<format>` and `<coroutine>` fail the same way on the same\n * hosts; one header keeps the probe near a second instead of near two.\n *\n * A feature-test macro (`__cpp_lib_ranges` via `<version>`) would be ~20x\n * faster and was rejected: it reports what the library CLAIMS, and this probe\n * exists because a toolchain's own claims about itself were the thing that\n * lied.\n */\nexport const CXX20_PROBE_SOURCE = '#include <ranges>\\nint main() { return 0; }\\n';\n\n/** Wall-clock ceiling for the C++ probe, so a wedged compiler cannot hang the diagnostic. */\nconst CXX20_PROBE_TIMEOUT_MS = 20_000;\n\n/**\n * Parse the major version out of a Node version string (`v26.7.0`, `26.7.0`).\n * Returns `null` for anything unparseable — see `parseVersionTriple` for why an\n * unknown version must never degrade to `0`.\n */\nexport function parseNodeMajorVersion(raw: string): number | null {\n const triple = parseVersionTriple(raw);\n return triple ? triple[0] : null;\n}\n\n/** `true` when `nodeVersion` is on the supported major, or a later one. */\nexport function isNodeVersionSupported(\n nodeVersion: string,\n supportedMajor: number = SUPPORTED_NODE_MAJOR_VERSION,\n): boolean {\n const major = parseNodeMajorVersion(nodeVersion);\n return major !== null && major >= supportedMajor;\n}\n\n/**\n * Read the pnpm version declared by a manifest's `packageManager` field.\n *\n * That field — not `engines.pnpm` — is the exact pin, because it is what\n * pnpm's own self-switch reads. Returns `null` when the manifest is absent,\n * unparseable, or declares a `packageManager` for some other tool; every one of\n * those is \"no declared pin\", which the caller must treat as an absence of\n * evidence rather than as a mismatch.\n */\nexport function readDeclaredPackageManagerPnpmVersion(\n manifestPath: string,\n readManifest: (path: string) => string = (path) => readFileSync(path, 'utf-8'),\n): string | null {\n let manifest: { packageManager?: unknown };\n try {\n manifest = JSON.parse(readManifest(manifestPath)) as { packageManager?: unknown };\n } catch {\n return null;\n }\n if (typeof manifest.packageManager !== 'string') return null;\n const match = manifest.packageManager.trim().match(/^pnpm@(\\d[^\\s+]*)/);\n return match ? match[1] : null;\n}\n\n/**\n * Outcome of actually running pnpm.\n *\n * `version` and `failure` are mutually exclusive, and the distinction is the\n * entire point of this probe: a host with NO usable pnpm and a host with an\n * OLD pnpm need different remediation, and the 2026-08-08 failure was the\n * former while presenting as neither.\n */\nexport interface PnpmProbeResult {\n readonly version: string | null;\n readonly failure: string | null;\n}\n\n/**\n * Execute pnpm and report what came back.\n *\n * INVOKES rather than inspects, deliberately. The recorded failure was a\n * `packageManager` self-switch whose download aborted, leaving a 4 KB skeleton\n * with no binary in `~/Library/pnpm/.tools/`; the shim was present, on PATH,\n * and reported nothing at all because every invocation died `ENOENT`. Any\n * check that read a version from a file, a lockfile, or the shim's own\n * metadata would have called that host healthy.\n *\n * Output that parses to no version is reported as a FAILURE, not as an unknown\n * version — pnpm answering `--version` with something unrecognisable is itself\n * a broken pnpm.\n */\nexport function probePnpmExecutable(\n run: () => string = () => execFileSync('pnpm', ['--version'], {\n encoding: 'utf-8',\n stdio: 'pipe',\n timeout: CXX20_PROBE_TIMEOUT_MS,\n }),\n): PnpmProbeResult {\n let output: string;\n try {\n output = run();\n } catch (error) {\n return { version: null, failure: extractProbeFailure(error) };\n }\n const version = output.trim().split(/\\s+/).pop() ?? '';\n if (!parseVersionTriple(version)) {\n return { version: null, failure: `\\`pnpm --version\\` returned unrecognisable output: ${truncate(output.trim())}` };\n }\n return { version, failure: null };\n}\n\n/**\n * What a C++20 compile probe can conclude.\n *\n * A named enum rather than a literal union because each member carries a\n * distinct remedy that only a named home can document — the repository rule in\n * `CLAUDE.md` (\"closed semantic vocabularies must have one named runtime\n * source\"), enforced by `pnpm check:semantic-string-literals`.\n */\nexport enum Cxx20ProbeStatus {\n /** The driver compiled a `<ranges>` probe at `-std=c++20`. Nothing to do. */\n OK = 'ok',\n /**\n * A compiler driver exists but cannot compile C++20. Kept apart from `ABSENT`\n * because the remedy is to REPAIR a toolchain — the recorded case was Apple\n * clang 21 sitting on a libc++ from 2020, which reports a healthy version and\n * still lacks `<ranges>`, `<format>` and `<coroutine>`.\n */\n UNSUPPORTED = 'unsupported',\n /** No compiler driver at all. The remedy is to INSTALL a toolchain. */\n ABSENT = 'absent',\n /**\n * Not attempted — Windows, where answering needs a Developer Command Prompt\n * environment the CLI does not have. Reported as a PASS with a detail string\n * rather than a warning: a permanent yellow line on every Windows machine\n * trains operators to skim past the diagnostics that do mean something.\n */\n NOT_PROBED = 'not-probed',\n}\n\nexport interface Cxx20ProbeResult {\n readonly status: Cxx20ProbeStatus;\n readonly compiler: string;\n readonly diagnostic: string | null;\n}\n\n/**\n * Compile a one-file C++20 translation unit and report whether it succeeded.\n *\n * **Never infers from a version string.** Apple clang reported 21.0.0 on a\n * host whose libc++ was from 2020, and no amount of version parsing would have\n * caught it; compiling `#include <ranges>` caught it in one step. The source\n * goes in on STDIN (`-x c++ -`) so the probe writes nothing to disk — this runs\n * inside `wildo local doctor`, which is a read-only diagnostic.\n *\n * `-fsyntax-only` stops after semantic analysis: the headers must parse, but no\n * object file is produced and no linker is involved. That is the right depth,\n * because a missing standard library header fails here while an unrelated\n * link-time problem — not this check's business — does not.\n *\n * Not probed on Windows. Establishing whether MSVC can compile C++20 requires\n * a Developer Command Prompt environment that a CLI invoked from an ordinary\n * shell does not have, and guessing would produce either a permanent false\n * warning or a false assurance. `not-probed` says so explicitly rather than\n * pretending either way.\n */\nexport function probeCxx20Toolchain(\n options: {\n platform?: NodeJS.Platform;\n compiler?: string;\n run?: (compiler: string, args: readonly string[], source: string) => void;\n } = {},\n): Cxx20ProbeResult {\n const platform = options.platform ?? process.platform;\n // `CXX` is the conventional override; `c++` is the generic driver that\n // resolves to clang++ or g++ on every POSIX host.\n const compiler = options.compiler ?? process.env.CXX ?? 'c++';\n\n if (platform === 'win32') {\n return { status: Cxx20ProbeStatus.NOT_PROBED, compiler, diagnostic: null };\n }\n\n const run = options.run ?? ((command: string, args: readonly string[], source: string) => {\n execFileSync(command, [...args], {\n input: source,\n encoding: 'utf-8',\n stdio: ['pipe', 'pipe', 'pipe'],\n timeout: CXX20_PROBE_TIMEOUT_MS,\n });\n });\n\n try {\n run(compiler, ['-std=c++20', '-fsyntax-only', '-x', 'c++', '-'], CXX20_PROBE_SOURCE);\n return { status: Cxx20ProbeStatus.OK, compiler, diagnostic: null };\n } catch (error) {\n const diagnostic = extractProbeFailure(error);\n const absent = isMissingExecutableError(error);\n return { status: absent ? Cxx20ProbeStatus.ABSENT : Cxx20ProbeStatus.UNSUPPORTED, compiler, diagnostic };\n }\n}\n\n/** `true` when the failure is \"there is no such executable\", not \"it ran and refused\". */\nfunction isMissingExecutableError(error: unknown): boolean {\n const code = (error as { code?: unknown } | null)?.code;\n return code === 'ENOENT';\n}\n\n/**\n * Best available one-line description of why a probe failed.\n *\n * Prefers the child's STDERR, because for the C++ probe that is the compiler\n * diagnostic naming the missing header — the single most useful string this\n * whole check can print. Falls back to the Error message (which carries\n * `ENOENT` for an absent executable).\n */\nfunction extractProbeFailure(error: unknown): string {\n const stderr = (error as { stderr?: unknown } | null)?.stderr;\n const stderrText = typeof stderr === 'string'\n ? stderr\n : Buffer.isBuffer(stderr) ? stderr.toString('utf-8') : '';\n const firstDiagnosticLine = stderrText\n .split('\\n')\n .map((line) => line.trim())\n .find((line) => line.length > 0);\n if (firstDiagnosticLine) return truncate(firstDiagnosticLine);\n\n const message = (error as { message?: unknown } | null)?.message;\n return typeof message === 'string' && message.length > 0 ? truncate(message) : 'unknown failure';\n}\n\nfunction truncate(text: string): string {\n return text.length > 160 ? `${text.slice(0, 160)}…` : text;\n}\n\nexport { isVersionAtLeast };\n"]}
1
+ {"version":3,"file":"host-toolchain-readiness.service.js","sourceRoot":"","sources":["../../../../src/services/deployment/host-toolchain-readiness.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAE5G;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAE/C;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC;AAE7C;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,+CAA+C,CAAC;AAElF,6FAA6F;AAC7F,MAAM,sBAAsB,GAAG,MAAM,CAAC;AAEtC;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAC,GAAW;IAC/C,MAAM,MAAM,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC;IACvC,OAAO,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACnC,CAAC;AAED,2EAA2E;AAC3E,MAAM,UAAU,sBAAsB,CACpC,WAAmB,EACnB,iBAAyB,4BAA4B;IAErD,MAAM,KAAK,GAAG,qBAAqB,CAAC,WAAW,CAAC,CAAC;IACjD,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,IAAI,cAAc,CAAC;AACnD,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,q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ACnC,IAAI,mBAAmB;QAAE,OAAO,QAAQ,CAAC,mBAAmB,CAAC,CAAC;IAE9D,MAAM,OAAO,GAAI,KAAsC,EAAE,OAAO,CAAC;IACjE,OAAO,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC;AACnG,CAAC;AAED,SAAS,QAAQ,CAAC,IAAY;IAC5B,OAAO,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7D,CAAC;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC","sourcesContent":["/**\n * Host toolchain readiness — Node, pnpm, and the C++ toolchain.\n *\n * These three sit BELOW everything else this CLI diagnoses. Docker Compose\n * being too old breaks the infrastructure; these break the machine, and every\n * one of them presents as something else entirely:\n *\n * - **Node.** The supported version had no single named source. `engines.node`\n * declared `>=18.0.0`, ~20 CI workflows pinned `22`, both installers\n * required `>=20`, and development ran `26.7.0` — four answers to one\n * question, with the LOOSEST one declared. That is not cosmetic: an\n * `engines` range advertising Node 18 covered configurations that provably\n * do not build, because `better-sqlite3` 11.x cannot compile on Node 26 at\n * all (Node 26 removed `v8::Object::GetPrototype`,\n * `v8::Context::GetIsolate` and `v8::PropertyCallbackInfo<T>::This`, which\n * its C++ uses). `SUPPORTED_NODE_MAJOR_VERSION` below is now that single\n * source; see its docblock for the sites that must be bumped with it.\n *\n * - **pnpm.** On 2026-08-08 the PATH-winning shim hardcoded pnpm 10.2.0,\n * which self-switches to the `packageManager` pin by downloading into\n * `~/Library/pnpm/.tools/`. That download had ABORTED, leaving a 4 KB\n * skeleton with no binary — so every `pnpm` invocation died `ENOENT` and\n * nothing in the repository could be installed, built or run. Note what\n * this means for the check: reading a version string would not have found\n * it, because the failure IS the inability to produce one. The probe below\n * therefore executes pnpm; the version comparison is the secondary answer,\n * not the primary one.\n *\n * - **The C++ toolchain.** The same machine reported Apple clang 21.0.0 with\n * SDK 26.5 — thoroughly modern — while\n * `CommandLineTools/usr/include/c++/v1` still held libc++ **11.0** (LLVM\n * 11, late 2020), with no `<ranges>`, `<format>` or `<coroutine>`. Every\n * native Node addon needing C++20 was unbuildable, which on Node 26 means\n * all of them, since Node's own V8 headers require C++20. The clang\n * version string was not merely unhelpful here — it was actively\n * misleading, which is why `probeCxx20Toolchain` COMPILES rather than\n * parses. That is the general rule this module follows and the baseline\n * records: verify a toolchain claim by executing it.\n *\n * Everything here is READ-ONLY and injection-friendly: each probe takes its\n * runner so a unit test can exercise the failure shapes without a host that\n * happens to be broken in the right way.\n *\n * @see `.claude/rules/toolchain-installation-baseline.md` — owns the baseline,\n * the framework-vs-application audience split, and the gap inventory these\n * probes close.\n */\n\nimport { execFileSync } from 'child_process';\nimport { readFileSync } from 'fs';\nimport { isVersionAtLeast, parseVersionTriple } from '~wildo-cli/services/deployment/version-compare.utils';\n\n/**\n * **The single named source for the supported Node major version.**\n *\n * Everything that states a Node requirement derives from this constant or is\n * pinned against it by a test. When it moves, ALL of the following move in the\n * same change — they are one decision expressed five times, and the reason the\n * baseline calls the previous state a defect is that four of them disagreed:\n *\n * 1. this constant;\n * 2. root `package.json` → `engines.node`;\n * 3. every `node-version:` in `.github/workflows/*.yml`;\n * 4. `platform/factory/scripts/install.sh` → `MIN_NODE_VERSION`;\n * 5. `platform/factory/scripts/install.ps1` → `$MIN_NODE_VERSION`.\n *\n * Sites 2, 4 and 5 are pinned to this constant by\n * `__tests__/host-toolchain-readiness.service.test.ts`; site 3 is pinned by\n * `__tests__/local-precondition-checks.service.test.ts`. Neither a shell\n * installer nor a YAML workflow can import a TypeScript constant, so a test is\n * the only mechanism available — bump one and CI fails until the rest follow.\n *\n * Recorded as TESTED, not aspirational: 26 is what development runs and what\n * CI runs. A range wider than that would be a claim nothing exercises, which\n * is precisely how `>=18.0.0` came to cover a configuration that cannot build.\n *\n * Binds BOTH audiences (framework development and application development) —\n * contrast the compiler, watcher and alias finalizer, which are\n * framework-development concerns and are never propagated into a generated\n * application. See the audience table in the baseline rule.\n */\nexport const SUPPORTED_NODE_MAJOR_VERSION = 26;\n\n/**\n * Floor for pnpm, mirroring root `package.json` → `engines.pnpm`.\n *\n * Deliberately a FLOOR rather than the exact `packageManager` pin. The pin\n * (`pnpm@10.34.9` since #3014) is enforced per-invocation by pnpm's own self-switch, so a\n * host sitting slightly off it is normal and self-correcting; a host BELOW the\n * floor is not, because the self-switch mechanism itself is what changed\n * across pnpm 9 → 10. The two are reported separately by\n * `checkPnpmToolchain` — one fails, the other warns.\n */\nexport const MINIMUM_PNPM_VERSION = '10.0.0';\n\n/**\n * The C++20 probe's translation unit.\n *\n * `<ranges>` is the discriminator, chosen because it is exactly what the\n * broken host lacked and because libc++ gained it late (LLVM 15/16), so a\n * pre-C++20 standard library fails on the `#include` itself rather than on\n * anything subtle. `<format>` and `<coroutine>` fail the same way on the same\n * hosts; one header keeps the probe near a second instead of near two.\n *\n * A feature-test macro (`__cpp_lib_ranges` via `<version>`) would be ~20x\n * faster and was rejected: it reports what the library CLAIMS, and this probe\n * exists because a toolchain's own claims about itself were the thing that\n * lied.\n */\nexport const CXX20_PROBE_SOURCE = '#include <ranges>\\nint main() { return 0; }\\n';\n\n/** Wall-clock ceiling for the C++ probe, so a wedged compiler cannot hang the diagnostic. */\nconst CXX20_PROBE_TIMEOUT_MS = 20_000;\n\n/**\n * Parse the major version out of a Node version string (`v26.7.0`, `26.7.0`).\n * Returns `null` for anything unparseable — see `parseVersionTriple` for why an\n * unknown version must never degrade to `0`.\n */\nexport function parseNodeMajorVersion(raw: string): number | null {\n const triple = parseVersionTriple(raw);\n return triple ? triple[0] : null;\n}\n\n/** `true` when `nodeVersion` is on the supported major, or a later one. */\nexport function isNodeVersionSupported(\n nodeVersion: string,\n supportedMajor: number = SUPPORTED_NODE_MAJOR_VERSION,\n): boolean {\n const major = parseNodeMajorVersion(nodeVersion);\n return major !== null && major >= supportedMajor;\n}\n\n/**\n * Read the pnpm version declared by a manifest's `packageManager` field.\n *\n * That field — not `engines.pnpm` — is the exact pin, because it is what\n * pnpm's own self-switch reads. Returns `null` when the manifest is absent,\n * unparseable, or declares a `packageManager` for some other tool; every one of\n * those is \"no declared pin\", which the caller must treat as an absence of\n * evidence rather than as a mismatch.\n */\nexport function readDeclaredPackageManagerPnpmVersion(\n manifestPath: string,\n readManifest: (path: string) => string = (path) => readFileSync(path, 'utf-8'),\n): string | null {\n let manifest: { packageManager?: unknown };\n try {\n manifest = JSON.parse(readManifest(manifestPath)) as { packageManager?: unknown };\n } catch {\n return null;\n }\n if (typeof manifest.packageManager !== 'string') return null;\n const match = manifest.packageManager.trim().match(/^pnpm@(\\d[^\\s+]*)/);\n return match ? match[1] : null;\n}\n\n/**\n * Outcome of actually running pnpm.\n *\n * `version` and `failure` are mutually exclusive, and the distinction is the\n * entire point of this probe: a host with NO usable pnpm and a host with an\n * OLD pnpm need different remediation, and the 2026-08-08 failure was the\n * former while presenting as neither.\n */\nexport interface PnpmProbeResult {\n readonly version: string | null;\n readonly failure: string | null;\n}\n\n/**\n * Execute pnpm and report what came back.\n *\n * INVOKES rather than inspects, deliberately. The recorded failure was a\n * `packageManager` self-switch whose download aborted, leaving a 4 KB skeleton\n * with no binary in `~/Library/pnpm/.tools/`; the shim was present, on PATH,\n * and reported nothing at all because every invocation died `ENOENT`. Any\n * check that read a version from a file, a lockfile, or the shim's own\n * metadata would have called that host healthy.\n *\n * Output that parses to no version is reported as a FAILURE, not as an unknown\n * version — pnpm answering `--version` with something unrecognisable is itself\n * a broken pnpm.\n */\nexport function probePnpmExecutable(\n run: () => string = () => execFileSync('pnpm', ['--version'], {\n encoding: 'utf-8',\n stdio: 'pipe',\n timeout: CXX20_PROBE_TIMEOUT_MS,\n }),\n): PnpmProbeResult {\n let output: string;\n try {\n output = run();\n } catch (error) {\n return { version: null, failure: extractProbeFailure(error) };\n }\n const version = output.trim().split(/\\s+/).pop() ?? '';\n if (!parseVersionTriple(version)) {\n return { version: null, failure: `\\`pnpm --version\\` returned unrecognisable output: ${truncate(output.trim())}` };\n }\n return { version, failure: null };\n}\n\n/**\n * What a C++20 compile probe can conclude.\n *\n * A named enum rather than a literal union because each member carries a\n * distinct remedy that only a named home can document — the repository rule in\n * `CLAUDE.md` (\"closed semantic vocabularies must have one named runtime\n * source\"), enforced by `pnpm check:semantic-string-literals`.\n */\nexport enum Cxx20ProbeStatus {\n /** The driver compiled a `<ranges>` probe at `-std=c++20`. Nothing to do. */\n OK = 'ok',\n /**\n * A compiler driver exists but cannot compile C++20. Kept apart from `ABSENT`\n * because the remedy is to REPAIR a toolchain — the recorded case was Apple\n * clang 21 sitting on a libc++ from 2020, which reports a healthy version and\n * still lacks `<ranges>`, `<format>` and `<coroutine>`.\n */\n UNSUPPORTED = 'unsupported',\n /** No compiler driver at all. The remedy is to INSTALL a toolchain. */\n ABSENT = 'absent',\n /**\n * Not attempted — Windows, where answering needs a Developer Command Prompt\n * environment the CLI does not have. Reported as a PASS with a detail string\n * rather than a warning: a permanent yellow line on every Windows machine\n * trains operators to skim past the diagnostics that do mean something.\n */\n NOT_PROBED = 'not-probed',\n}\n\nexport interface Cxx20ProbeResult {\n readonly status: Cxx20ProbeStatus;\n readonly compiler: string;\n readonly diagnostic: string | null;\n}\n\n/**\n * Compile a one-file C++20 translation unit and report whether it succeeded.\n *\n * **Never infers from a version string.** Apple clang reported 21.0.0 on a\n * host whose libc++ was from 2020, and no amount of version parsing would have\n * caught it; compiling `#include <ranges>` caught it in one step. The source\n * goes in on STDIN (`-x c++ -`) so the probe writes nothing to disk — this runs\n * inside `wildo local doctor`, which is a read-only diagnostic.\n *\n * `-fsyntax-only` stops after semantic analysis: the headers must parse, but no\n * object file is produced and no linker is involved. That is the right depth,\n * because a missing standard library header fails here while an unrelated\n * link-time problem — not this check's business — does not.\n *\n * Not probed on Windows. Establishing whether MSVC can compile C++20 requires\n * a Developer Command Prompt environment that a CLI invoked from an ordinary\n * shell does not have, and guessing would produce either a permanent false\n * warning or a false assurance. `not-probed` says so explicitly rather than\n * pretending either way.\n */\nexport function probeCxx20Toolchain(\n options: {\n platform?: NodeJS.Platform;\n compiler?: string;\n run?: (compiler: string, args: readonly string[], source: string) => void;\n } = {},\n): Cxx20ProbeResult {\n const platform = options.platform ?? process.platform;\n // `CXX` is the conventional override; `c++` is the generic driver that\n // resolves to clang++ or g++ on every POSIX host.\n const compiler = options.compiler ?? process.env.CXX ?? 'c++';\n\n if (platform === 'win32') {\n return { status: Cxx20ProbeStatus.NOT_PROBED, compiler, diagnostic: null };\n }\n\n const run = options.run ?? ((command: string, args: readonly string[], source: string) => {\n execFileSync(command, [...args], {\n input: source,\n encoding: 'utf-8',\n stdio: ['pipe', 'pipe', 'pipe'],\n timeout: CXX20_PROBE_TIMEOUT_MS,\n });\n });\n\n try {\n run(compiler, ['-std=c++20', '-fsyntax-only', '-x', 'c++', '-'], CXX20_PROBE_SOURCE);\n return { status: Cxx20ProbeStatus.OK, compiler, diagnostic: null };\n } catch (error) {\n const diagnostic = extractProbeFailure(error);\n const absent = isMissingExecutableError(error);\n return { status: absent ? Cxx20ProbeStatus.ABSENT : Cxx20ProbeStatus.UNSUPPORTED, compiler, diagnostic };\n }\n}\n\n/** `true` when the failure is \"there is no such executable\", not \"it ran and refused\". */\nfunction isMissingExecutableError(error: unknown): boolean {\n const code = (error as { code?: unknown } | null)?.code;\n return code === 'ENOENT';\n}\n\n/**\n * Best available one-line description of why a probe failed.\n *\n * Prefers the child's STDERR, because for the C++ probe that is the compiler\n * diagnostic naming the missing header — the single most useful string this\n * whole check can print. Falls back to the Error message (which carries\n * `ENOENT` for an absent executable).\n */\nfunction extractProbeFailure(error: unknown): string {\n const stderr = (error as { stderr?: unknown } | null)?.stderr;\n const stderrText = typeof stderr === 'string'\n ? stderr\n : Buffer.isBuffer(stderr) ? stderr.toString('utf-8') : '';\n const firstDiagnosticLine = stderrText\n .split('\\n')\n .map((line) => line.trim())\n .find((line) => line.length > 0);\n if (firstDiagnosticLine) return truncate(firstDiagnosticLine);\n\n const message = (error as { message?: unknown } | null)?.message;\n return typeof message === 'string' && message.length > 0 ? truncate(message) : 'unknown failure';\n}\n\nfunction truncate(text: string): string {\n return text.length > 160 ? `${text.slice(0, 160)}…` : text;\n}\n\nexport { isVersionAtLeast };\n"]}
@@ -8,6 +8,7 @@ import { type RuntimeAccessDeclaration, type MinionLiveness, type DatabaseEngine
8
8
  import { PlatformWildoServices } from '@wildo-ai/platform-config-lib';
9
9
  import { TemplateVariables } from '../../../services/deployment/k8s/k8s-manifest.schemas';
10
10
  import type { PlatformEnvironmentConfiguration } from '../../../services/environment/environment.schemas';
11
+ import type { ContainerHostGatewayProbe } from '../../../services/environment/container-host-gateway-listen-host';
11
12
  /**
12
13
  * The file holding the namespace's NetworkPolicy set, in both lanes: the local `cluster/` directory and the remote CI
13
14
  * deploy directory (#3511).
@@ -19,7 +20,9 @@ export declare class K8sManifestGenerator {
19
20
  * Build TemplateVariables for a platform service deployment.
20
21
  * @param replicaOverride — from infra config `services.<key>.replicas`, falls back to 1.
21
22
  */
22
- static buildForPlatformService(service: PlatformWildoServices, env: PlatformEnvironmentConfiguration, imageTag?: string, replicaOverride?: number): TemplateVariables;
23
+ static buildForPlatformService(service: PlatformWildoServices, env: PlatformEnvironmentConfiguration, imageTag?: string, replicaOverride?: number,
24
+ /** What the scheduler's host route reads from the machine (#3957); the real probe unless a test supplies one. */
25
+ hostGatewayProbe?: ContainerHostGatewayProbe): TemplateVariables;
23
26
  /**
24
27
  * Build TemplateVariables for an internal (infra) service.
25
28
  */
@@ -1 +1 @@
1
- {"version":3,"file":"k8s-manifest-generator.service.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/k8s-manifest-generator.service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAML,KAAK,wBAAw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QACH,SAAS,CAAC,EAAE;YAAE,SAAS,CAAC,EAAE,MAAM,CAAC;YAAC,UAAU,CAAC,EAAE,MAAM,CAAC;YAAC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;YAAC,SAAS,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QACtG,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,EACD,QAAQ,CAAC,EAAE,MAAM,GAChB,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAkGxC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,qBAAqB,CAC1B,GAAG,EAAE,gCAAgC,EACrC,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE;QACN,+FAA+F;QAC/F,yBAAyB,EAAE,cAAc,CAAC;QAC1C,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB;;;;;WAKG;QACH,SAAS,CAAC,EAAE;YAAE,SAAS,CAAC,EAAE,MAAM,CAAC;YAAC,UAAU,CAAC,EAAE,MAAM,CAAC;YAAC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;YAAC,SAAS,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QACtG,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,EACD,QAAQ,CAAC,EAAE,MAAM,GAChB,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAiFzC"}
1
+ {"version":3,"file":"k8s-manifest-generator.service.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/k8s-manifest-generator.service.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C;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAiFzC"}
@@ -11,7 +11,7 @@ import { existsSync, readFileSync, mkdirSync, rmSync, writeFileSync } from 'fs';
11
11
  import { TemplateProcessor } from '../../../infrastructure/io/template-processor.js';
12
12
  import { DEFAULT_PLATFORM_IMAGE_TAG, resolvePlatformImageRef } from '../../../services/environment/platform-runtime.schemas.js';
13
13
  import { readVersion } from '../../../kernel/bootstrap.js';
14
- import { BackingServiceKind, K8S_LOCAL_DEFAULTS, PUBLIC_DOMAIN_DEFAULTS, KIND_CLUSTER_DEFAULTS, resolveFrameworkLayout, WildoLocationType, WildoTlsIssuer, WildoKubernetesIngressClass, PlatformWildoServices, k8sServiceSecretName, k8sRuntimeProvidersSecretName, k8sRuntimeEnvSecretName, RUNTIME_MANDATORY_WRITABLE_PATH, APP_BACKEND_DEFAULT_RUNTIME_UID, APP_FRONTEND_DEFAULT_RUNTIME_UID, APP_FRONTEND_MANDATORY_WRITABLE_PATHS, INFRA_DEFAULT_PORTS, } from '@wildo-ai/platform-config-lib';
14
+ import { BackingServiceKind, K8S_LOCAL_DEFAULTS, PUBLIC_DOMAIN_DEFAULTS, KIND_CLUSTER_DEFAULTS, resolveFrameworkLayout, WildoLocationType, WildoTlsIssuer, WildoKubernetesIngressClass, PlatformWildoServices, k8sServiceSecretName, k8sRuntimeProvidersSecretName, k8sRuntimeEnvSecretName, RUNTIME_MANDATORY_WRITABLE_PATH, APP_BACKEND_DEFAULT_RUNTIME_UID, APP_FRONTEND_DEFAULT_RUNTIME_UID, APP_FRONTEND_MANDATORY_WRITABLE_PATHS, INFRA_DEFAULT_PORTS, environmentServiceProfileRunsMessageBroker, resolveRuntimeApplicationStores, } from '@wildo-ai/platform-config-lib';
15
15
  import { CUSTOM_DOMAIN_BACKEND_PATH_PREFIXES, CUSTOM_DOMAIN_RECONCILER_IMAGE, CUSTOM_DOMAIN_RECONCILER_MANAGED_BY, ENGINE_ROOT_ROUTES, EngineRootRouteKey, RuntimeEnvironment, } from '@wildo-ai/saas-models';
16
16
  import { buildMinionServiceName, buildWorkerServiceName, normalizeServiceKeyToDnsName } from '@wildo-ai/platform-core-shared';
17
17
  import { PlatformDataServices, IMMUDB_AUDIT_STATE_CONTAINER_DIR, MONGOT_SYNC_SOURCE } from '../../../services/data-services/data-services.schemas.js';
@@ -20,8 +20,9 @@ import { PLATFORM_KEY_VAULT_SERVER, renderPlatformKeyVaultServerConfig } from '.
20
20
  import { SecretsReader } from '../../../services/credentials/secrets-reader.service.js';
21
21
  import { PLATFORM_SERVICE_CATALOG, INFRA_SERVICE_CATALOG, getDeployableInfraServicesForK8s } from '../../../services/catalog/service-catalog.schemas.js';
22
22
  import { EnvironmentUtils } from '../../../services/environment/environment.service.js';
23
- import { includesMongoSearchSidecar } from '../../../services/environment/environment-service-profile.utils.js';
23
+ import { assertProfileRunsDeclaredMinions, includesMongoSearchSidecar } from '../../../services/environment/environment-service-profile.utils.js';
24
24
  import { DEFAULT_PLATFORM_RESOURCES, DEFAULT_PLATFORM_DEV_RESOURCES, platformServiceResources, DEFAULT_INTERNAL_RESOURCES, DEFAULT_APP_PROD_RESOURCES, } from '../../../services/deployment/k8s/k8s-manifest.schemas.js';
25
+ import { resolveKindPodHostGateway } from '../../../services/deployment/k8s/kind-pod-host-gateway.js';
25
26
  import { EnvironmentPaths } from '../../../services/environment/environment-paths.service.js';
26
27
  import { InfrastructureHost, SharedInfrastructureAction } from '../../../services/environment/infrastructure-host.service.js';
27
28
  import { shouldDeployPlatformServicesInRuntime } from '../../../services/deployment/platform-runtime-policy.service.js';
@@ -242,11 +243,14 @@ export class K8sManifestGenerator {
242
243
  * Build TemplateVariables for a platform service deployment.
243
244
  * @param replicaOverride — from infra config `services.<key>.replicas`, falls back to 1.
244
245
  */
245
- static buildForPlatformService(service, env, imageTag, replicaOverride) {
246
+ static buildForPlatformService(service, env, imageTag, replicaOverride,
247
+ /** What the scheduler's host route reads from the machine (#3957); the real probe unless a test supplies one. */
248
+ hostGatewayProbe) {
246
249
  const isLocal = env.locationType === WildoLocationType.LOCAL;
247
250
  const isDevMode = isLocal;
248
251
  const catalog = PLATFORM_SERVICE_CATALOG[service];
249
252
  const runtime = resolveManifestKubernetesRuntime(env);
253
+ const hostGateway = resolveKindPodHostGateway(service, env, hostGatewayProbe);
250
254
  return {
251
255
  namespace: runtime.namespace,
252
256
  publicDomain: runtime.publicDomain,
@@ -287,6 +291,9 @@ export class K8sManifestGenerator {
287
291
  port: catalog.defaultPort,
288
292
  useStaticPV: false,
289
293
  podNetworkLabelsYaml: K8sManifestGenerator.renderFrameworkWorkloadLabels(service, env),
294
+ // The scheduler's route to a host-run backend on a LOCAL (Kind) environment (#3957).
295
+ hostGatewayHostname: hostGateway?.hostname,
296
+ hostGatewayAliasIp: hostGateway?.aliasIp,
290
297
  ...buildApplicationsManagerPkcs11Variables(service, env),
291
298
  };
292
299
  }
@@ -624,7 +631,10 @@ export class K8sManifestGenerator {
624
631
  * for the pod template's `labels:` mapping (eight spaces, like every runtime's).
625
632
  */
626
633
  static renderFrameworkWorkloadLabels(workload, env) {
627
- return K8sManifestGenerator.renderPodLabelBlock(buildNetworkMembershipPodLabels(resolveFrameworkWorkloadNetworks(workload, { selfHostsPlatformKeyVault: selfHostsPlatformKeyVault(env.platformKeyManagement) })), 8);
634
+ return K8sManifestGenerator.renderPodLabelBlock(buildNetworkMembershipPodLabels(resolveFrameworkWorkloadNetworks(workload, {
635
+ selfHostsPlatformKeyVault: selfHostsPlatformKeyVault(env.platformKeyManagement),
636
+ runsMessageBroker: environmentServiceProfileRunsMessageBroker(env.serviceProfile),
637
+ })), 8);
628
638
  }
629
639
  /**
630
640
  * Render pod labels as an indented YAML block.
@@ -799,7 +809,7 @@ export class K8sManifestGenerator {
799
809
  const backendVars = {
800
810
  // The application backend reaches every backing service the app provisions,
801
811
  // and serves the public route, so it joins the edge as well.
802
- runtimeNetworkLabelsYaml: K8sManifestGenerator.renderPodLabelBlock(buildRuntimeNetworkPodLabels({ kind: ApplicationRuntimePrincipalKind.APPLICATION_BACKEND }, undefined, { servesHttp: true, applicationDatabaseEngine: target.applicationDatabaseEngine }), 8),
812
+ runtimeNetworkLabelsYaml: K8sManifestGenerator.renderPodLabelBlock(buildRuntimeNetworkPodLabels({ kind: ApplicationRuntimePrincipalKind.APPLICATION_BACKEND }, undefined, { servesHttp: true, ...resolveRuntimeApplicationStores({ applicationDatabase: { engine: target.applicationDatabaseEngine }, serviceProfile: env.serviceProfile }) }), 8),
803
813
  ...base,
804
814
  appName: target.appName,
805
815
  serviceName: target.backendServiceName,
@@ -840,7 +850,7 @@ export class K8sManifestGenerator {
840
850
  // simple" would put an nginx container on every database segment.
841
851
  // It joins the edge only: `resolveRuntimeNetworkMembership` adds PLATFORM
842
852
  // for runtime principals alone, and a static frontend is none.
843
- runtimeNetworkLabelsYaml: K8sManifestGenerator.renderPodLabelBlock(buildRuntimeNetworkPodLabels(undefined, undefined, { servesHttp: true, applicationDatabaseEngine: target.applicationDatabaseEngine }), 8),
853
+ runtimeNetworkLabelsYaml: K8sManifestGenerator.renderPodLabelBlock(buildRuntimeNetworkPodLabels(undefined, undefined, { servesHttp: true, ...resolveRuntimeApplicationStores({ applicationDatabase: { engine: target.applicationDatabaseEngine }, serviceProfile: env.serviceProfile }) }), 8),
844
854
  ...base,
845
855
  appName: target.appName,
846
856
  serviceName: fe.serviceName,
@@ -923,6 +933,8 @@ export class K8sManifestGenerator {
923
933
  * workflow owns building and publishing that image from its package Dockerfile.
924
934
  */
925
935
  static renderMinionForTarget(env, frameworkPath, target, imageTag) {
936
+ // #2303: a profile whose queue cannot confine a minion (the DATABASE queue on MongoDB) refuses it, before anything is rendered.
937
+ assertProfileRunsDeclaredMinions(env, 1, target.applicationDatabaseEngine);
926
938
  const templatesRoot = K8sManifestGenerator.resolveK8sTemplatesRoot(frameworkPath);
927
939
  const tpl = `applications/${APPLICATION_NAME}/minion.deployment.yaml.hbs`;
928
940
  if (!existsSync(join(templatesRoot, tpl)))
@@ -996,7 +1008,7 @@ export class K8sManifestGenerator {
996
1008
  // reasoning as `livenessCommandJson` above — serialise where the types are.
997
1009
  runtimeNetworkLabelsYaml: K8sManifestGenerator.renderPodLabelBlock(buildRuntimeNetworkPodLabels({ kind: ApplicationRuntimePrincipalKind.MINION, name: target.minionName }, target.accessDeclaration,
998
1010
  // A minion serves no HTTP route, so it never joins the edge segment.
999
- { servesHttp: false, applicationDatabaseEngine: target.applicationDatabaseEngine }), 8),
1011
+ { servesHttp: false, ...resolveRuntimeApplicationStores({ applicationDatabase: { engine: target.applicationDatabaseEngine }, serviceProfile: env.serviceProfile }) }), 8),
1000
1012
  // Defaults mirror `MinionIsolationSchema`. Repeated here because this
1001
1013
  // renderer is reachable from callers that pass a partially-populated
1002
1014
  // target (the schema defaults apply at config-parse time, not here), and
@@ -1041,7 +1053,7 @@ export class K8sManifestGenerator {
1041
1053
  // credential (D22/KD-3), so it joins PLATFORM and the telemetry collector it
1042
1054
  // emits to (#3368) — the declaration is not even consulted, because there is
1043
1055
  // no declaration that would widen it.
1044
- const workerNetworkLabelsYaml = K8sManifestGenerator.renderPodLabelBlock(buildRuntimeNetworkPodLabels({ kind: ApplicationRuntimePrincipalKind.WORKER, name: target.workerName }, undefined, { servesHttp: false, applicationDatabaseEngine: target.applicationDatabaseEngine }), 8);
1056
+ const workerNetworkLabelsYaml = K8sManifestGenerator.renderPodLabelBlock(buildRuntimeNetworkPodLabels({ kind: ApplicationRuntimePrincipalKind.WORKER, name: target.workerName }, undefined, { servesHttp: false, ...resolveRuntimeApplicationStores({ applicationDatabase: { engine: target.applicationDatabaseEngine }, serviceProfile: env.serviceProfile }) }), 8);
1045
1057
  // The bare normalized segment (`myNodeWorker` → `my-node-worker`) for the
1046
1058
  // per-manifest FILE key `{appName}-{seg}-{deployment|service}` — keeps the
1047
1059
  // historical filename shape (already lowercase for a lowercase key) rather than