@wildo-ai/wildo-cli 1.1.12 → 1.1.13

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 (102) hide show
  1. package/dist/src/commands/config/sync.command.d.ts.map +1 -1
  2. package/dist/src/commands/config/sync.command.js +1 -0
  3. package/dist/src/commands/config/sync.command.js.map +1 -1
  4. package/dist/src/commands/context/journey.command.d.ts.map +1 -1
  5. package/dist/src/commands/context/journey.command.js +8 -0
  6. package/dist/src/commands/context/journey.command.js.map +1 -1
  7. package/dist/src/commands/creation/drive.command.d.ts.map +1 -1
  8. package/dist/src/commands/creation/drive.command.js +2 -0
  9. package/dist/src/commands/creation/drive.command.js.map +1 -1
  10. package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
  11. package/dist/src/commands/fwk/publish-all.command.js +8 -0
  12. package/dist/src/commands/fwk/publish-all.command.js.map +1 -1
  13. package/dist/src/commands/local/dev.command.d.ts +68 -0
  14. package/dist/src/commands/local/dev.command.d.ts.map +1 -1
  15. package/dist/src/commands/local/dev.command.js +216 -8
  16. package/dist/src/commands/local/dev.command.js.map +1 -1
  17. package/dist/src/commands/local/doctor.command.d.ts +22 -9
  18. package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
  19. package/dist/src/commands/local/doctor.command.js +45 -42
  20. package/dist/src/commands/local/doctor.command.js.map +1 -1
  21. package/dist/src/commands/providers/connect.command.d.ts.map +1 -1
  22. package/dist/src/commands/providers/connect.command.js +11 -1
  23. package/dist/src/commands/providers/connect.command.js.map +1 -1
  24. package/dist/src/commands/seal/currency.command.d.ts +13 -0
  25. package/dist/src/commands/seal/currency.command.d.ts.map +1 -0
  26. package/dist/src/commands/seal/currency.command.js +52 -0
  27. package/dist/src/commands/seal/currency.command.js.map +1 -0
  28. package/dist/src/commands/seal/seal-admin-door.utils.d.ts.map +1 -1
  29. package/dist/src/commands/seal/seal-admin-door.utils.js +2 -0
  30. package/dist/src/commands/seal/seal-admin-door.utils.js.map +1 -1
  31. package/dist/src/commands/seal/verify.command.d.ts +5 -0
  32. package/dist/src/commands/seal/verify.command.d.ts.map +1 -1
  33. package/dist/src/commands/seal/verify.command.js +26 -2
  34. package/dist/src/commands/seal/verify.command.js.map +1 -1
  35. package/dist/src/services/application/content-guardrail-classifier.service.d.ts +19 -0
  36. package/dist/src/services/application/content-guardrail-classifier.service.d.ts.map +1 -1
  37. package/dist/src/services/application/content-guardrail-classifier.service.js +75 -11
  38. package/dist/src/services/application/content-guardrail-classifier.service.js.map +1 -1
  39. package/dist/src/services/application/local-provider-doubles.service.d.ts +98 -0
  40. package/dist/src/services/application/local-provider-doubles.service.d.ts.map +1 -0
  41. package/dist/src/services/application/local-provider-doubles.service.js +214 -0
  42. package/dist/src/services/application/local-provider-doubles.service.js.map +1 -0
  43. package/dist/src/services/application/system-of-record-simulators.service.d.ts +21 -2
  44. package/dist/src/services/application/system-of-record-simulators.service.d.ts.map +1 -1
  45. package/dist/src/services/application/system-of-record-simulators.service.js +21 -12
  46. package/dist/src/services/application/system-of-record-simulators.service.js.map +1 -1
  47. package/dist/src/services/companion/creation-drive.service.d.ts +32 -2
  48. package/dist/src/services/companion/creation-drive.service.d.ts.map +1 -1
  49. package/dist/src/services/companion/creation-drive.service.js +61 -4
  50. package/dist/src/services/companion/creation-drive.service.js.map +1 -1
  51. package/dist/src/services/credentials/credentials.schemas.d.ts +6 -0
  52. package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
  53. package/dist/src/services/credentials/credentials.schemas.js +7 -1
  54. package/dist/src/services/credentials/credentials.schemas.js.map +1 -1
  55. package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
  56. package/dist/src/services/credentials/provider-env-vars.utils.js +11 -3
  57. package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
  58. package/dist/src/services/data-services/data-services.schemas.d.ts +9 -0
  59. package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -1
  60. package/dist/src/services/data-services/data-services.schemas.js +9 -0
  61. package/dist/src/services/data-services/data-services.schemas.js.map +1 -1
  62. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
  63. package/dist/src/services/deployment/docker/docker-compose-generator.service.js +7 -2
  64. package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
  65. package/dist/src/services/deployment/local-dev-session-lease.service.d.ts.map +1 -1
  66. package/dist/src/services/deployment/local-dev-session-lease.service.js +22 -1
  67. package/dist/src/services/deployment/local-dev-session-lease.service.js.map +1 -1
  68. package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
  69. package/dist/src/services/environment/authored-infra-config.utils.js +1 -0
  70. package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
  71. package/dist/src/services/environment/authored-infra-member-authority.d.ts.map +1 -1
  72. package/dist/src/services/environment/authored-infra-member-authority.js +5 -0
  73. package/dist/src/services/environment/authored-infra-member-authority.js.map +1 -1
  74. package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
  75. package/dist/src/services/environment/env-configuration-generator.service.js +6 -3
  76. package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
  77. package/dist/src/services/environment/env-vars-builder.service.d.ts +6 -0
  78. package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
  79. package/dist/src/services/environment/env-vars-builder.service.js +24 -1
  80. package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
  81. package/dist/src/services/environment/environment-hydration.utils.d.ts.map +1 -1
  82. package/dist/src/services/environment/environment-hydration.utils.js +1 -0
  83. package/dist/src/services/environment/environment-hydration.utils.js.map +1 -1
  84. package/dist/src/services/environment/environment.schemas.d.ts +7 -1
  85. package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
  86. package/dist/src/services/environment/environment.schemas.js.map +1 -1
  87. package/dist/src/services/environment/runtime-bootstrap.service.d.ts +2 -0
  88. package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -1
  89. package/dist/src/services/environment/runtime-bootstrap.service.js +4 -0
  90. package/dist/src/services/environment/runtime-bootstrap.service.js.map +1 -1
  91. package/dist/src/services/framework/framework-docker-publish.service.d.ts +13 -0
  92. package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
  93. package/dist/src/services/framework/framework-docker-publish.service.js +24 -7
  94. package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
  95. package/dist/src/services/registry/provider-connect.service.d.ts +57 -1
  96. package/dist/src/services/registry/provider-connect.service.d.ts.map +1 -1
  97. package/dist/src/services/registry/provider-connect.service.js +63 -2
  98. package/dist/src/services/registry/provider-connect.service.js.map +1 -1
  99. package/dist/tsconfig.build.tsbuildinfo +1 -1
  100. package/package.json +18 -18
  101. package/scripts/app-dependency-alignment/propagated-engine-overrides.json +1 -1
  102. package/wildo-framework.info.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"data-services.schemas.js","sourceRoot":"","sources":["../../../../src/services/data-services/data-services.schemas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE;;;GAGG;AACH,MAAM,CAAN,IAAY,oBA+BX;AA/BD,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;IACnB,qDAA6B,CAAA;IAC7B,yCAAiB,CAAA;IACjB,6CAAqB,CAAA;IACrB,uCAAe,CAAA;IACf,iDAAyB,CAAA;IACzB,iDAAyB,CAAA;IACzB,oEAAoE;IACpE,yEAAyE;IACzE,yEAAyE;IACzE,qEAAqE;IACrE,yCAAiB,CAAA;IACjB,yEAAyE;IACzE,gFAAgF;IAChF,0EAA0E;IAC1E,yCAAiB,CAAA;IACjB,8EAA8E;IAC9E,wEAAwE;IACxE,+EAA+E;IAC/E,gFAAgF;IAChF,iFAAiF;IACjF,mFAAmF;IACnF,8EAA8E;IAC9E,2DAA2D;IAC3D,yCAAiB,CAAA;IACjB,gHAAgH;IAChH,gHAAgH;IAChH,kHAAkH;IAClH,qBAAqB;IACrB,2CAAmB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,QAAQ,EAAE,gBAAgB,CAAC,QAAQ;IACnC,MAAM,EAAE,gBAAgB,CAAC,MAAM;CACvB,CAAC","sourcesContent":["import type { BackingServiceSource, DatabaseEngine } from '@wildo-ai/platform-config-lib';\nimport { STORAGE_DEFAULTS } from '@wildo-ai/platform-config-lib';\n\n/**\n * Platform data services that support the platform.\n * Deployed via Docker Compose (local) or K8s manifests (cluster).\n */\nexport enum PlatformDataServices {\n MONGODB = 'mongodb',\n MONGODB_INIT = 'mongodb-init',\n VALKEY = 'valkey',\n RABBITMQ = 'rabbitmq',\n MINIO = 'minio',\n MINIO_INIT = 'minio-init',\n POSTGRESQL = 'postgresql',\n // Slice 4 (4.8) — ClamAV is now a first-class self-deployable infra\n // service (was previously hand-rolled in the static docker-compose.yml).\n // STATEFUL because it must persist its ~500 MB virus signature DB across\n // restarts; otherwise every `up` triggers a full freshclam download.\n CLAMAV = 'clamav',\n // Audit Phase 2 — immudb is the self-deployable tamper-evident audit-log\n // store (the COMPLIANCE_AUDIT_TRAIL provider backend). STATEFUL: an append-only\n // DB whose history MUST persist across restarts, in both Compose and K8s.\n IMMUDB = 'immudb',\n // Issue #74 — `mongot` is the separate MongoDB Search / Vector Search process\n // that MongoDB 8.2 Community requires beside `mongod` for `$search` and\n // `$vectorSearch`. It is NOT an author-configurable backing service: it has no\n // `BackingServiceKind`, no managed variant, and no independent source. It is an\n // ATTACHMENT to a self-hosted mongod, deployed exactly when one is, which is why\n // both lanes gate it on the same `needsLocalMongoDB(env)` predicate rather than on\n // a second author switch. STATEFUL: mongot keeps its Lucene index on disk and\n // rebuilding it means re-reading every indexed collection.\n MONGOT = 'mongot',\n // #2933 — the self-hosted OpenBao (MPL-2.0 Vault) holding the PLATFORM's custodied keys. Not a backing service:\n // no application runtime dials it and nothing is minted per application in it; apps-manager is its only client.\n // Deployed exactly when the environment declares `platformKeyManagement.vault.source === SELF`. STATEFUL, and its\n // state IS the keys.\n OPENBAO = 'openbao',\n}\n\n// ============================================================================\n// Infrastructure service deployment metadata\n// ============================================================================\n\n/**\n * Whether a service requires persistent storage.\n * Runtime-agnostic: Docker Compose uses named volumes, K8s uses StatefulSets + PVCs.\n */\nexport enum InfraDeploymentType {\n STATEFUL = 'stateful',\n STATELESS = 'stateless',\n}\n\n// Infrastructure service catalog (with deployment type, ports, container names)\n// is defined in service-catalog.schemas.ts — the single source of truth.\n// STATEFUL_INFRA_SERVICES and ALL_SERVICE_CONTAINER_NAMES are derived there.\n\n// ============================================================================\n// Infra service container env var keys\n// ============================================================================\n// These are the env var names each container image reads for its own credentials.\n// Runtime-agnostic: injected via Docker Compose env_file or K8s Secret.\n\n/**\n * MongoDB container env var keys.\n *\n * - `MONGO_INITDB_ROOT_USERNAME` / `MONGO_INITDB_ROOT_PASSWORD` are the\n * well-known names the official `mongo:8.2` entrypoint reads to seed the\n * root user on first boot (re-verified 2026-08-27 on `mongo:8.2` — its\n * `docker-entrypoint.sh` still reads exactly these two, and a probe container\n * authenticated with the seeded root user). We deliberately export the long form (not\n * the legacy `MONGO_ROOT_USER` shorthand used by the Compose env file)\n * because the K8s secret is consumed directly by the StatefulSet —\n * there is no env-file translation layer.\n * - The Compose template still reads `MONGO_ROOT_USER` / `MONGO_ROOT_PASSWORD`\n * from `mongo.env` then injects them into `MONGO_INITDB_ROOT_*` at\n * container start; the K8s path skips that hop and binds the secret keys\n * directly to the env vars the image reads.\n */\nexport const MONGODB_CREDENTIAL_ENV_KEYS = {\n ROOT_USER: 'MONGO_INITDB_ROOT_USERNAME',\n ROOT_PASSWORD: 'MONGO_INITDB_ROOT_PASSWORD',\n} as const;\n\n/**\n * `mongot` sync-source identity — issue #74.\n *\n * mongot reads NO environment variables for its credential. It is configured entirely\n * from a file (`/mongot-community/config.default.yml`) whose `syncSource.replicaSet.scramAuth`\n * block names a username, an `authSource`, and a **passwordFile path** — never a password.\n * That is why this constant block has no `*_ENV_KEYS` sibling: the shape of the contract is\n * a file, not an env var, and pretending otherwise would put the password in a process\n * environment where every `docker inspect` reader can see it.\n *\n * Two facts here are load-bearing and were both measured, not read:\n *\n * - **`PASSWORD_FILE_MODE` is `0400` and mongot ENFORCES it.** A more permissive file is\n * refused at startup with `Secret file /passwordFile permissions are too permissive (must\n * only be readable by owner)` and the process exits 1 — so a 0644 file (the mode the\n * immudb signing key deliberately uses, because that container's UID differs) would make\n * the sidecar crash-loop. mongot's image runs as root, so root reads the file whoever owns\n * it; the mode is the only thing that matters, and it is checked.\n * - **`searchCoordinator` is a BUILT-IN role on 8.2** (`db.createUser({roles:['searchCoordinator']})`\n * succeeded against `mongo:8.2` / 8.2.12), so nothing needs to define it.\n *\n * The username is a framework-owned service identity, so it is a constant rather than an\n * authored value — exactly like the other internal service usernames.\n */\nexport const MONGOT_SYNC_SOURCE = {\n /** The `searchCoordinator`-roled user mongot authenticates to mongod as. */\n USERNAME: 'wildoMongotSyncSource',\n /** SCRAM auth database for that user. */\n AUTH_SOURCE: 'admin',\n /** Absolute in-container path both lanes mount the password file at. */\n PASSWORD_FILE_PATH: '/mongot-password',\n /** Owner-read-only. mongot refuses anything more permissive — see above. */\n PASSWORD_FILE_MODE: 0o400,\n /**\n * The mode the generator widens an EXISTING password file to just before rewriting it.\n *\n * `PASSWORD_FILE_MODE` is owner-READ-only, and `writeFileSync` opens for WRITE — so re-rendering\n * over a file the generator itself wrote fails `EACCES`. This is the transient mode held only\n * across the rewrite, never the mode mongot sees: the generator re-narrows to\n * `PASSWORD_FILE_MODE` immediately afterwards, and mongot exits 1 on anything more permissive.\n */\n PASSWORD_FILE_REWRITE_MODE: 0o600,\n /** In-container path of mongot's own configuration file (fixed by the image's CMD). */\n CONFIG_FILE_PATH: '/mongot-community/config.default.yml',\n /** In-container path of mongot's Lucene index storage (`storage.dataPath`). */\n DATA_PATH: '/data/mongot',\n} as const;\n\nexport const VALKEY_CREDENTIAL_ENV_KEYS = {\n PASSWORD: 'VALKEY_PASSWORD',\n} as const;\n\nexport const RABBITMQ_CREDENTIAL_ENV_KEYS = {\n DEFAULT_USER: 'RABBITMQ_DEFAULT_USER',\n DEFAULT_PASS: 'RABBITMQ_DEFAULT_PASS',\n ERLANG_COOKIE: 'RABBITMQ_ERLANG_COOKIE',\n} as const;\n\nexport const MINIO_CREDENTIAL_ENV_KEYS = {\n ROOT_USER: 'MINIO_ROOT_USER',\n ROOT_PASSWORD: 'MINIO_ROOT_PASSWORD',\n} as const;\n\nexport const POSTGRESQL_CREDENTIAL_ENV_KEYS = {\n ADMIN_USER: 'POSTGRES_ADMIN_USER',\n ADMIN_PASSWORD: 'POSTGRES_ADMIN_PASSWORD',\n ADMIN_DATABASE: 'POSTGRES_ADMIN_DATABASE',\n} as const;\n\n/**\n * Env-var keys for the self-hosted immudb audit store (Audit Phase 2, #1696).\n *\n * A SELF-hosted immudb's credentials are MINTED, never authored (#1696). The server's built-in `immudb` sysadmin\n * password is framework-managed platform material (`credentials.immudb.adminPassword`); apps-manager alone holds it\n * and uses it to give each application its OWN database and its OWN `READ_WRITE` user, which reach the application\n * in its platform secrets (`database.immudb.*`) and win over anything in `providerEnv`.\n *\n * Until #1696 the server's admin password was COPIED from `providerEnv.IMMUDB_PASSWORD`, the credential every\n * application's audit sink connected with — one shared sysadmin over every application's audit data. The operator\n * keys (`IMMUDB_USER` / `IMMUDB_PASSWORD` / `IMMUDB_DATABASE`) now matter only for a MANAGED immudb.\n *\n * - `SERVER.ADMIN_PASSWORD` — the immudb SERVER env var that sets the built-in `immudb` sysadmin's initial password\n * on a fresh data dir. The K8s `immudb-secret` binds this key; the StatefulSet reads it via `secretKeyRef`\n * (optional); the compose service renders it from the same material.\n * - `PROVIDER.PASSWORD` — the audit-sink provider's operator-authored connection password inside\n * `credentials.providerEnv` (a MANAGED immudb's credential). Mirrors the immudb backend provider's\n * `secretsContract.password.envVarName` in `external-connectors-private`.\n */\nexport const IMMUDB_CREDENTIAL_ENV_KEYS = {\n SERVER: {\n ADMIN_PASSWORD: 'IMMUDB_ADMIN_PASSWORD',\n /**\n * SEC1 EC PRIVATE KEY PEM the SELF-hosted immudb server signs its state with\n * (`--signingKey`). Rides the k8s `immudb-secret` (mounted as a file) / the compose\n * local-data key file. SERVER-side ONLY — the whole-server-substitution defense collapses\n * if this ever reaches an app pod, so it is NEVER placed in `providerEnv`.\n */\n STATE_SIGNING_KEY: 'IMMUDB_STATE_SIGNING_KEY',\n },\n PROVIDER: {\n PASSWORD: 'IMMUDB_PASSWORD',\n /**\n * The audit-sink provider's immudb host. Its presence in `credentials.providerEnv` is the\n * signal that the immudb audit provider is configured for this env — used to gate injection\n * of the generated `STATE_PUBLIC_KEY` (don't emit pinning material for an unused provider).\n */\n HOST: 'IMMUDB_HOST',\n /**\n * Durable trust-anchor directory the audit client persists its last-verified immudb state root\n * in (`external-connectors-private` immudb provider `secretsContract.stateDir`). Its VALUE is\n * runtime-topology, not a secret: LOCAL uses a host `local_data` path (env-configuration-generator),\n * while REMOTE containers use the fixed in-container mount path below, backed by a durable volume\n * (a PVC in k8s, a named volume in compose — provisioned by the manifest generators).\n */\n STATE_DIR: 'IMMUDB_STATE_DIR',\n /**\n * Pinned immudb state-signing PUBLIC key (SPKI PEM). Injected into every backend runtime's\n * `providerEnv` from the generated `credentials.immudb.stateSigningPublicKey`; the audit\n * client (`external-connectors-private` immudb provider `secretsContract.statePublicKeyPem`)\n * verifies the server's signed state against it. Public material — safe in every app pod.\n */\n STATE_PUBLIC_KEY: 'IMMUDB_STATE_PUBLIC_KEY',\n },\n} as const;\n\n/**\n * Fixed in-CONTAINER mount path for the immudb audit trust anchor in REMOTE deployments (k8s + compose).\n *\n * The anchor is the audit client's cross-restart tamper-evidence store; it MUST live on a durable,\n * access-protected volume (a PVC in k8s, a named volume in compose), never the pod/container's ephemeral\n * filesystem — otherwise a cross-restart rollback of the tamper-evident ledger is silently re-adopted, and\n * state-signature pinning does NOT catch it (immudb re-signs its current state; only the anchor remembers\n * tx N). Both remote runtimes mount their durable volume AT this path and set `IMMUDB_STATE_DIR` to it, so\n * the value is shared here to keep the env and the mount in lockstep. LOCAL uses a host `local_data` path\n * instead (a container mount path is meaningless without a container).\n */\nexport const IMMUDB_AUDIT_STATE_CONTAINER_DIR = '/var/lib/wildo/immudb-audit-state';\n\n// ============================================================================\n// Platform data services provider identifiers\n// ============================================================================\n\nexport const PLATFORM_DATA_SERVICES_PROVIDER = {\n SELF_MANAGED: 'self-managed',\n VALKEY_SELF: 'valkey-self',\n MINIO: 'minio',\n ATLAS: 'atlas',\n} as const;\n\n\n\nexport const DEFAULT_PLATFORM_POSTGRESQL_CONFIGURATION = {\n DATABASE: 'wildo_platform',\n SSL_MODE: 'disable',\n} as const;\n\n\n// ============================================================================\n// Atlas defaults\n// ============================================================================\n\nexport const DEFAULT_PLATFORM_ATLAS_CONFIGURATION = {\n DEFAULT_CLUSTER_NAME: 'Cluster0',\n DEFAULT_API_BASE_URL: 'https://cloud.mongodb.com/api/atlas/v1.0',\n} as const;\n\n// ============================================================================\n// MongoDB connection URL template\n// ============================================================================\n\nexport const DEFAULT_PLATFORM_MONGO_CONNECTION_URL_TEMPLATE = {\n SCHEME: 'mongodb://',\n SRV_SCHEME: 'mongodb+srv://',\n REPLICA_SET: 'rs0',\n AUTH_SOURCE: 'admin',\n} as const;\n\n\nexport const DEFAULT_PLATFORM_FILE_STORAGE_CONFIGURATION = {\n PROVIDER: STORAGE_DEFAULTS.PROVIDER,\n BUCKET: STORAGE_DEFAULTS.BUCKET,\n} as const;\n\n\n/**\n * Database structural choice stored in environments.json.\n * Contains NO credentials — just which engine, source, and (for\n * managed sources, post-Slice-4.B.0) brand.\n */\nexport interface PlatformDatabaseChoice {\n engine: DatabaseEngine;\n source?: BackingServiceSource | undefined;\n /**\n * Managed-brand identifier when `source === MANAGED`. For Mongo\n * this is `'atlas'`; for Postgres one of `'aws-rds' |\n * 'gcp-cloud-sql' | 'azure-database' | 'supabase' | 'neon' |\n * 'render'`. Slice 4.B.0 (2026-05-07) generalized the source/brand\n * split — pre-reshape Atlas was a `source` value, now it's a\n * `provider` brand under `source: MANAGED`.\n */\n provider?: string;\n}\n\nexport interface DatabaseInitializationInput {\n database: PlatformDatabaseChoice;\n atlasConnectionUrl?: string;\n atlasProjectId?: string;\n atlasApiPublicKey?: string;\n atlasApiPrivateKey?: string;\n atlasClusterName?: string;\n atlasApiBaseUrl?: string;\n}\n\n"]}
1
+ {"version":3,"file":"data-services.schemas.js","sourceRoot":"","sources":["../../../../src/services/data-services/data-services.schemas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE;;;GAGG;AACH,MAAM,CAAN,IAAY,oBA+BX;AA/BD,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;IACnB,qDAA6B,CAAA;IAC7B,yCAAiB,CAAA;IACjB,6CAAqB,CAAA;IACrB,uCAAe,CAAA;IACf,iDAAyB,CAAA;IACzB,iDAAyB,CAAA;IACzB,oEAAoE;IACpE,yEAAyE;IACzE,yEAAyE;IACzE,qEAAqE;IACrE,yCAAiB,CAAA;IACjB,yEAAyE;IACzE,gFAAgF;IAChF,0EAA0E;IAC1E,yCAAiB,CAAA;IACjB,8EAA8E;IAC9E,wEAAwE;IACxE,+EAA+E;IAC/E,gFAAgF;IAChF,iFAAiF;IACjF,mFAAmF;IACnF,8EAA8E;IAC9E,2DAA2D;IAC3D,yCAAiB,CAAA;IACjB,gHAAgH;IAChH,gHAAgH;IAChH,kHAAkH;IAClH,qBAAqB;IACrB,2CAAmB,CAAA;AACrB,CAAC,EA/BW,oBAAoB,KAApB,oBAAoB,QA+B/B;AAED,+EAA+E;AAC/E,6CAA6C;AAC7C,+EAA+E;AAE/E;;;GAGG;AACH,MAAM,CAAN,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,4CAAqB,CAAA;IACrB,8CAAuB,CAAA;AACzB,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B;AAED,gFAAgF;AAChF,yEAAyE;AACzE,6EAA6E;AAE7E,+EAA+E;AAC/E,uCAAuC;AACvC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H,IAAI,EAAE,aAAa;QACnB;;;;;;WAMG;QACH,SAAS,EAAE,kBAAkB;QAC7B;;;;;WAKG;QACH,gBAAgB,EAAE,yBAAyB;KAC5C;CACO,CAAC;AAEX;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,mCAAmC,CAAC;AAEpF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,oBAAoB,CAAC;AAEtE,+EAA+E;AAC/E,8CAA8C;AAC9C,+EAA+E;AAE/E,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,YAAY,EAAE,cAAc;IAC5B,WAAW,EAAE,aAAa;IAC1B,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACN,CAAC;AAIX,MAAM,CAAC,MAAM,yCAAyC,GAAG;IACvD,QAAQ,EAAE,gBAAgB;IAC1B,QAAQ,EAAE,SAAS;CACX,CAAC;AAGX,+EAA+E;AAC/E,iBAAiB;AACjB,+EAA+E;AAE/E,MAAM,CAAC,MAAM,oCAAoC,GAAG;IAClD,oBAAoB,EAAE,UAAU;IAChC,oBAAoB,EAAE,0CAA0C;CACxD,CAAC;AAEX,+EAA+E;AAC/E,kCAAkC;AAClC,+EAA+E;AAE/E,MAAM,CAAC,MAAM,8CAA8C,GAAG;IAC5D,MAAM,EAAE,YAAY;IACpB,UAAU,EAAE,gBAAgB;IAC5B,WAAW,EAAE,KAAK;IAClB,WAAW,EAAE,OAAO;CACZ,CAAC;AAGX,MAAM,CAAC,MAAM,2CAA2C,GAAG;IACzD,QAAQ,EAAE,gBAAgB,CAAC,QAAQ;IACnC,MAAM,EAAE,gBAAgB,CAAC,MAAM;CACvB,CAAC","sourcesContent":["import type { BackingServiceSource, DatabaseEngine } from '@wildo-ai/platform-config-lib';\nimport { STORAGE_DEFAULTS } from '@wildo-ai/platform-config-lib';\n\n/**\n * Platform data services that support the platform.\n * Deployed via Docker Compose (local) or K8s manifests (cluster).\n */\nexport enum PlatformDataServices {\n MONGODB = 'mongodb',\n MONGODB_INIT = 'mongodb-init',\n VALKEY = 'valkey',\n RABBITMQ = 'rabbitmq',\n MINIO = 'minio',\n MINIO_INIT = 'minio-init',\n POSTGRESQL = 'postgresql',\n // Slice 4 (4.8) — ClamAV is now a first-class self-deployable infra\n // service (was previously hand-rolled in the static docker-compose.yml).\n // STATEFUL because it must persist its ~500 MB virus signature DB across\n // restarts; otherwise every `up` triggers a full freshclam download.\n CLAMAV = 'clamav',\n // Audit Phase 2 — immudb is the self-deployable tamper-evident audit-log\n // store (the COMPLIANCE_AUDIT_TRAIL provider backend). STATEFUL: an append-only\n // DB whose history MUST persist across restarts, in both Compose and K8s.\n IMMUDB = 'immudb',\n // Issue #74 — `mongot` is the separate MongoDB Search / Vector Search process\n // that MongoDB 8.2 Community requires beside `mongod` for `$search` and\n // `$vectorSearch`. It is NOT an author-configurable backing service: it has no\n // `BackingServiceKind`, no managed variant, and no independent source. It is an\n // ATTACHMENT to a self-hosted mongod, deployed exactly when one is, which is why\n // both lanes gate it on the same `needsLocalMongoDB(env)` predicate rather than on\n // a second author switch. STATEFUL: mongot keeps its Lucene index on disk and\n // rebuilding it means re-reading every indexed collection.\n MONGOT = 'mongot',\n // #2933 — the self-hosted OpenBao (MPL-2.0 Vault) holding the PLATFORM's custodied keys. Not a backing service:\n // no application runtime dials it and nothing is minted per application in it; apps-manager is its only client.\n // Deployed exactly when the environment declares `platformKeyManagement.vault.source === SELF`. STATEFUL, and its\n // state IS the keys.\n OPENBAO = 'openbao',\n}\n\n// ============================================================================\n// Infrastructure service deployment metadata\n// ============================================================================\n\n/**\n * Whether a service requires persistent storage.\n * Runtime-agnostic: Docker Compose uses named volumes, K8s uses StatefulSets + PVCs.\n */\nexport enum InfraDeploymentType {\n STATEFUL = 'stateful',\n STATELESS = 'stateless',\n}\n\n// Infrastructure service catalog (with deployment type, ports, container names)\n// is defined in service-catalog.schemas.ts — the single source of truth.\n// STATEFUL_INFRA_SERVICES and ALL_SERVICE_CONTAINER_NAMES are derived there.\n\n// ============================================================================\n// Infra service container env var keys\n// ============================================================================\n// These are the env var names each container image reads for its own credentials.\n// Runtime-agnostic: injected via Docker Compose env_file or K8s Secret.\n\n/**\n * MongoDB container env var keys.\n *\n * - `MONGO_INITDB_ROOT_USERNAME` / `MONGO_INITDB_ROOT_PASSWORD` are the\n * well-known names the official `mongo:8.2` entrypoint reads to seed the\n * root user on first boot (re-verified 2026-08-27 on `mongo:8.2` — its\n * `docker-entrypoint.sh` still reads exactly these two, and a probe container\n * authenticated with the seeded root user). We deliberately export the long form (not\n * the legacy `MONGO_ROOT_USER` shorthand used by the Compose env file)\n * because the K8s secret is consumed directly by the StatefulSet —\n * there is no env-file translation layer.\n * - The Compose template still reads `MONGO_ROOT_USER` / `MONGO_ROOT_PASSWORD`\n * from `mongo.env` then injects them into `MONGO_INITDB_ROOT_*` at\n * container start; the K8s path skips that hop and binds the secret keys\n * directly to the env vars the image reads.\n */\nexport const MONGODB_CREDENTIAL_ENV_KEYS = {\n ROOT_USER: 'MONGO_INITDB_ROOT_USERNAME',\n ROOT_PASSWORD: 'MONGO_INITDB_ROOT_PASSWORD',\n} as const;\n\n/**\n * `mongot` sync-source identity — issue #74.\n *\n * mongot reads NO environment variables for its credential. It is configured entirely\n * from a file (`/mongot-community/config.default.yml`) whose `syncSource.replicaSet.scramAuth`\n * block names a username, an `authSource`, and a **passwordFile path** — never a password.\n * That is why this constant block has no `*_ENV_KEYS` sibling: the shape of the contract is\n * a file, not an env var, and pretending otherwise would put the password in a process\n * environment where every `docker inspect` reader can see it.\n *\n * Two facts here are load-bearing and were both measured, not read:\n *\n * - **`PASSWORD_FILE_MODE` is `0400` and mongot ENFORCES it.** A more permissive file is\n * refused at startup with `Secret file /passwordFile permissions are too permissive (must\n * only be readable by owner)` and the process exits 1 — so a 0644 file (the mode the\n * immudb signing key deliberately uses, because that container's UID differs) would make\n * the sidecar crash-loop. mongot's image runs as root, so root reads the file whoever owns\n * it; the mode is the only thing that matters, and it is checked.\n * - **`searchCoordinator` is a BUILT-IN role on 8.2** (`db.createUser({roles:['searchCoordinator']})`\n * succeeded against `mongo:8.2` / 8.2.12), so nothing needs to define it.\n *\n * The username is a framework-owned service identity, so it is a constant rather than an\n * authored value — exactly like the other internal service usernames.\n */\nexport const MONGOT_SYNC_SOURCE = {\n /** The `searchCoordinator`-roled user mongot authenticates to mongod as. */\n USERNAME: 'wildoMongotSyncSource',\n /** SCRAM auth database for that user. */\n AUTH_SOURCE: 'admin',\n /** Absolute in-container path both lanes mount the password file at. */\n PASSWORD_FILE_PATH: '/mongot-password',\n /** Owner-read-only. mongot refuses anything more permissive — see above. */\n PASSWORD_FILE_MODE: 0o400,\n /**\n * The mode the generator widens an EXISTING password file to just before rewriting it.\n *\n * `PASSWORD_FILE_MODE` is owner-READ-only, and `writeFileSync` opens for WRITE — so re-rendering\n * over a file the generator itself wrote fails `EACCES`. This is the transient mode held only\n * across the rewrite, never the mode mongot sees: the generator re-narrows to\n * `PASSWORD_FILE_MODE` immediately afterwards, and mongot exits 1 on anything more permissive.\n */\n PASSWORD_FILE_REWRITE_MODE: 0o600,\n /** In-container path of mongot's own configuration file (fixed by the image's CMD). */\n CONFIG_FILE_PATH: '/mongot-community/config.default.yml',\n /** In-container path of mongot's Lucene index storage (`storage.dataPath`). */\n DATA_PATH: '/data/mongot',\n} as const;\n\nexport const VALKEY_CREDENTIAL_ENV_KEYS = {\n PASSWORD: 'VALKEY_PASSWORD',\n} as const;\n\nexport const RABBITMQ_CREDENTIAL_ENV_KEYS = {\n DEFAULT_USER: 'RABBITMQ_DEFAULT_USER',\n DEFAULT_PASS: 'RABBITMQ_DEFAULT_PASS',\n ERLANG_COOKIE: 'RABBITMQ_ERLANG_COOKIE',\n} as const;\n\nexport const MINIO_CREDENTIAL_ENV_KEYS = {\n ROOT_USER: 'MINIO_ROOT_USER',\n ROOT_PASSWORD: 'MINIO_ROOT_PASSWORD',\n} as const;\n\nexport const POSTGRESQL_CREDENTIAL_ENV_KEYS = {\n ADMIN_USER: 'POSTGRES_ADMIN_USER',\n ADMIN_PASSWORD: 'POSTGRES_ADMIN_PASSWORD',\n ADMIN_DATABASE: 'POSTGRES_ADMIN_DATABASE',\n} as const;\n\n/**\n * Env-var keys for the self-hosted immudb audit store (Audit Phase 2, #1696).\n *\n * A SELF-hosted immudb's credentials are MINTED, never authored (#1696). The server's built-in `immudb` sysadmin\n * password is framework-managed platform material (`credentials.immudb.adminPassword`); apps-manager alone holds it\n * and uses it to give each application its OWN database and its OWN `READ_WRITE` user, which reach the application\n * in its platform secrets (`database.immudb.*`) and win over anything in `providerEnv`.\n *\n * Until #1696 the server's admin password was COPIED from `providerEnv.IMMUDB_PASSWORD`, the credential every\n * application's audit sink connected with — one shared sysadmin over every application's audit data. The operator\n * keys (`IMMUDB_USER` / `IMMUDB_PASSWORD` / `IMMUDB_DATABASE`) now matter only for a MANAGED immudb.\n *\n * - `SERVER.ADMIN_PASSWORD` — the immudb SERVER env var that sets the built-in `immudb` sysadmin's initial password\n * on a fresh data dir. The K8s `immudb-secret` binds this key; the StatefulSet reads it via `secretKeyRef`\n * (optional); the compose service renders it from the same material.\n * - `PROVIDER.PASSWORD` — the audit-sink provider's operator-authored connection password inside\n * `credentials.providerEnv` (a MANAGED immudb's credential). Mirrors the immudb backend provider's\n * `secretsContract.password.envVarName` in `external-connectors-private`.\n */\nexport const IMMUDB_CREDENTIAL_ENV_KEYS = {\n SERVER: {\n ADMIN_PASSWORD: 'IMMUDB_ADMIN_PASSWORD',\n /**\n * SEC1 EC PRIVATE KEY PEM the SELF-hosted immudb server signs its state with\n * (`--signingKey`). Rides the k8s `immudb-secret` (mounted as a file) / the compose\n * local-data key file. SERVER-side ONLY — the whole-server-substitution defense collapses\n * if this ever reaches an app pod, so it is NEVER placed in `providerEnv`.\n */\n STATE_SIGNING_KEY: 'IMMUDB_STATE_SIGNING_KEY',\n },\n PROVIDER: {\n PASSWORD: 'IMMUDB_PASSWORD',\n /**\n * The audit-sink provider's immudb host. Its presence in `credentials.providerEnv` is the\n * signal that the immudb audit provider is configured for this env — used to gate injection\n * of the generated `STATE_PUBLIC_KEY` (don't emit pinning material for an unused provider).\n */\n HOST: 'IMMUDB_HOST',\n /**\n * Durable trust-anchor directory the audit client persists its last-verified immudb state root\n * in (`external-connectors-private` immudb provider `secretsContract.stateDir`). Its VALUE is\n * runtime-topology, not a secret: LOCAL uses a host `local_data` path (env-configuration-generator),\n * while REMOTE containers use the fixed in-container mount path below, backed by a durable volume\n * (a PVC in k8s, a named volume in compose — provisioned by the manifest generators).\n */\n STATE_DIR: 'IMMUDB_STATE_DIR',\n /**\n * Pinned immudb state-signing PUBLIC key (SPKI PEM). Injected into every backend runtime's\n * `providerEnv` from the generated `credentials.immudb.stateSigningPublicKey`; the audit\n * client (`external-connectors-private` immudb provider `secretsContract.statePublicKeyPem`)\n * verifies the server's signed state against it. Public material — safe in every app pod.\n */\n STATE_PUBLIC_KEY: 'IMMUDB_STATE_PUBLIC_KEY',\n },\n} as const;\n\n/**\n * Fixed in-CONTAINER mount path for the immudb audit trust anchor in REMOTE deployments (k8s + compose).\n *\n * The anchor is the audit client's cross-restart tamper-evidence store; it MUST live on a durable,\n * access-protected volume (a PVC in k8s, a named volume in compose), never the pod/container's ephemeral\n * filesystem — otherwise a cross-restart rollback of the tamper-evident ledger is silently re-adopted, and\n * state-signature pinning does NOT catch it (immudb re-signs its current state; only the anchor remembers\n * tx N). Both remote runtimes mount their durable volume AT this path and set `IMMUDB_STATE_DIR` to it, so\n * the value is shared here to keep the env and the mount in lockstep. LOCAL uses a host `local_data` path\n * instead (a container mount path is meaningless without a container).\n */\nexport const IMMUDB_AUDIT_STATE_CONTAINER_DIR = '/var/lib/wildo/immudb-audit-state';\n\n/**\n * The LOCAL counterpart: the `local_data` subdirectory holding the immudb audit trust anchor on the developer's host.\n * `IMMUDB_STATE_DIR` points at it (`env-configuration-generator.service.ts`), and `wildo local reset` wipes it together\n * with the local immudb's own data (`wipeLocalDataServiceDirsForCompose`): an anchor must never outlive the ledger it\n * anchors. The state-signing key is pinned for a self-hosted immudb, and under a pin a fresh ledger below an old anchor\n * is a PROVEN tamper, not a re-bootstrap. A reset that wiped the ledger and kept the anchor raised that critical alert on\n * the next stack after every reset (the QA VM resets before each e2e run: run 43234451120, #3775).\n */\nexport const IMMUDB_AUDIT_STATE_LOCAL_DATA_DIR = 'immudb-audit-state';\n\n// ============================================================================\n// Platform data services provider identifiers\n// ============================================================================\n\nexport const PLATFORM_DATA_SERVICES_PROVIDER = {\n SELF_MANAGED: 'self-managed',\n VALKEY_SELF: 'valkey-self',\n MINIO: 'minio',\n ATLAS: 'atlas',\n} as const;\n\n\n\nexport const DEFAULT_PLATFORM_POSTGRESQL_CONFIGURATION = {\n DATABASE: 'wildo_platform',\n SSL_MODE: 'disable',\n} as const;\n\n\n// ============================================================================\n// Atlas defaults\n// ============================================================================\n\nexport const DEFAULT_PLATFORM_ATLAS_CONFIGURATION = {\n DEFAULT_CLUSTER_NAME: 'Cluster0',\n DEFAULT_API_BASE_URL: 'https://cloud.mongodb.com/api/atlas/v1.0',\n} as const;\n\n// ============================================================================\n// MongoDB connection URL template\n// ============================================================================\n\nexport const DEFAULT_PLATFORM_MONGO_CONNECTION_URL_TEMPLATE = {\n SCHEME: 'mongodb://',\n SRV_SCHEME: 'mongodb+srv://',\n REPLICA_SET: 'rs0',\n AUTH_SOURCE: 'admin',\n} as const;\n\n\nexport const DEFAULT_PLATFORM_FILE_STORAGE_CONFIGURATION = {\n PROVIDER: STORAGE_DEFAULTS.PROVIDER,\n BUCKET: STORAGE_DEFAULTS.BUCKET,\n} as const;\n\n\n/**\n * Database structural choice stored in environments.json.\n * Contains NO credentials — just which engine, source, and (for\n * managed sources, post-Slice-4.B.0) brand.\n */\nexport interface PlatformDatabaseChoice {\n engine: DatabaseEngine;\n source?: BackingServiceSource | undefined;\n /**\n * Managed-brand identifier when `source === MANAGED`. For Mongo\n * this is `'atlas'`; for Postgres one of `'aws-rds' |\n * 'gcp-cloud-sql' | 'azure-database' | 'supabase' | 'neon' |\n * 'render'`. Slice 4.B.0 (2026-05-07) generalized the source/brand\n * split — pre-reshape Atlas was a `source` value, now it's a\n * `provider` brand under `source: MANAGED`.\n */\n provider?: string;\n}\n\nexport interface DatabaseInitializationInput {\n database: PlatformDatabaseChoice;\n atlasConnectionUrl?: string;\n atlasProjectId?: string;\n atlasApiPublicKey?: string;\n atlasApiPrivateKey?: string;\n atlasClusterName?: string;\n atlasApiBaseUrl?: string;\n}\n\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"docker-compose-generator.service.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/docker/docker-compose-generator.service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AACzH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAW5G,OAAO,EAaL,qBAAqB,EAWrB,KAAK,cAAc,EAKnB,KAAK,cAAc,EAEpB,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EAAkD,KAAK,4BAA4B,EAAE,MAAM,qDAAqD,CAAC;AAOxJ,OAAO,KAAK,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,qEAAqE,CAAC;AAoIlJ,wGAAwG;AACxG,MAAM,WAAW,4BAA4B;IAC3C,oHAAoH;IACpH,WAAW,EAAE,KAAK,CAAC;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,iBAAiB,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACxE,6GAA6G;IAC7G,WAAW,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACzD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,iCAAiC,CAC/C,GAAG,EAAE,gCAAgC,EACrC,uBAAuB,EAAE,OAAO,GAC/B,4BAA4B,GAAG,SAAS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;CAAO,GACxD,MAAM,EAAE,CA6BV;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,6BAA6B,yBAAyB,CAAC;AACpE,eAAO,MAAM,+BAA+B,sCAAkD,CAAC;AAE/F,wHAAwH;AACxH,wBAAgB,0BAA0B,CACxC,eAAe,EAAE,MAAM,EACvB,OAAO,EAAE,SAAS,0BAA0B,EAAE,GAAG,SAAS,EAC1D,OAAO,EAAE,SAAS,0BAA0B,EAAE,GAAG,SAAS,GACzD,MAAM,EAAE,CAKV;AAED;;;;;GAKG;AACH,wBAAgB,qCAAqC,CAAC,eAAe,EAAE,MAAM,EAAE,2BAA2B,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAOrI;AAeD;;;;;;;;;GASG;AACH,wBAAsB,2BAA2B,CAC/C,GAAG,EAAE,gCAAgC,EACrC,aAAa,EAAE,MAAM,EACrB,oBAAoB,EAAE,OAAO,GAC5B,OAAO,CAAC,OAAO,CAAC,CAwalB"}
1
+ {"version":3,"file":"docker-compose-generator.service.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/docker/docker-compose-generator.service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AACzH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAW5G,OAAO,EAaL,qBAAqB,EAWrB,KAAK,cAAc,EAKnB,KAAK,cAAc,EAEpB,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EAAkD,KAAK,4BAA4B,EAAE,MAAM,qDAAqD,CAAC;AAOxJ,OAAO,KAAK,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,qEAAqE,CAAC;AAoIlJ,wGAAwG;AACxG,MAAM,WAAW,4BAA4B;IAC3C,oHAAoH;IACpH,WAAW,EAAE,KAAK,CAAC;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,iBAAiB,EAAE,MAAM,CAAA;KA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;;;;GAeG;AACH,wBAAgB,2BAA2B,CACzC,GAAG,EAAE,gCAAgC,EACrC,WAAW,EAAE,sBAAsB,EACnC,OAAO,EAAE,SAAS,0BAA0B,EAAE,GAAG,SAAS,EAC1D,OAAO,EAAE,SAAS,0BAA0B,EAAE,GAAG,SAAS;AAC1D,yHAAyH;AACzH,OAAO,GAAE;IAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,qBAAqB,CAAA;CAAO,GACxD,MAAM,EAAE,CA6BV;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,6BAA6B,yBAAyB,CAAC;AACpE,eAAO,MAAM,+BAA+B,sCAAkD,CAAC;AAE/F,wHAAwH;AACxH,wBAAgB,0BAA0B,CACxC,eAAe,EAAE,MAAM,EACvB,OAAO,EAAE,SAAS,0BAA0B,EAAE,GAAG,SAAS,EAC1D,OAAO,EAAE,SAAS,0BAA0B,EAAE,GAAG,SAAS,GACzD,MAAM,EAAE,CAKV;AAED;;;;;GAKG;AACH,wBAAgB,qCAAqC,CAAC,eAAe,EAAE,MAAM,EAAE,2BAA2B,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAOrI;AAeD;;;;;;;;;GASG;AACH,wBAAsB,2BAA2B,CAC/C,GAAG,EAAE,gCAAgC,EACrC,aAAa,EAAE,MAAM,EACrB,oBAAoB,EAAE,OAAO,GAC5B,OAAO,CAAC,OAAO,CAAC,CAwalB"}
@@ -17,7 +17,7 @@ import { PLATFORM_INIT_MEMORY, PLATFORM_SERVICE_CATALOG } from '../../../service
17
17
  import { PlatformEnvVarsBuilder } from '../../../services/environment/env-vars-builder.service.js';
18
18
  import { loadInfraHydratedConfig } from '../../../services/environment/env-configuration-generator.service.js';
19
19
  import { SecretsReader } from '../../../services/credentials/secrets-reader.service.js';
20
- import { MONGOT_SYNC_SOURCE } from '../../../services/data-services/data-services.schemas.js';
20
+ import { IMMUDB_AUDIT_STATE_LOCAL_DATA_DIR, MONGOT_SYNC_SOURCE } from '../../../services/data-services/data-services.schemas.js';
21
21
  import { PLATFORM_KEY_VAULT_SERVER, renderPlatformKeyVaultServerConfig } from '../../../services/data-services/platform-key-vault.server-config.js';
22
22
  import { TemplateProcessor } from '../../../infrastructure/io/template-processor.js';
23
23
  import { buildContainerisedMinionEnvironment, buildContainerisedWorkerEnvironment, resolveRuntimeTargetAppSlug } from '../../../services/deployment/application-runtime-environment.js';
@@ -210,7 +210,12 @@ export function wipeLocalDataServiceDirsForCompose(env) {
210
210
  if (!saasRoot) {
211
211
  throw new Error('Cannot wipe local_data subdirs: no targeted SaaS app root detected.');
212
212
  }
213
- const services = getDockerComposeLocalDataServices(env);
213
+ // The immudb audit trust anchor goes with the ledger it anchors, and only then: a reset leaves a managed immudb's
214
+ // ledger in place, so its anchor must stay too (see `IMMUDB_AUDIT_STATE_LOCAL_DATA_DIR`).
215
+ const services = [
216
+ ...getDockerComposeLocalDataServices(env),
217
+ ...(resolveIncludeLocalImmudb(env) ? [IMMUDB_AUDIT_STATE_LOCAL_DATA_DIR] : []),
218
+ ];
214
219
  EnvironmentPaths.wipeLocalDataServiceDirs(saasRoot, services);
215
220
  }
216
221
  /**