@wildo-ai/platform-config-lib 1.1.7 → 1.1.9
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.
- package/dist/esm/_unimplemented/index.d.ts.map +1 -1
- package/dist/esm/_unimplemented/index.js.map +1 -1
- package/dist/esm/_unimplemented/soft-warn.d.ts.map +1 -1
- package/dist/esm/_unimplemented/soft-warn.js.map +1 -1
- package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts.map +1 -1
- package/dist/esm/_unimplemented/unimplemented-field-warning.js.map +1 -1
- package/dist/esm/bootstrap/application-backend-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/application-backend-env.contracts.js.map +1 -1
- package/dist/esm/bootstrap/application-creation-verification-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/application-creation-verification-env.contracts.js.map +1 -1
- package/dist/esm/bootstrap/bootstrap-planner.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap-planner.js.map +1 -1
- package/dist/esm/bootstrap/bootstrap.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.contracts.js.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts +12 -5
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.js +21 -5
- package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.js.map +1 -1
- package/dist/esm/bootstrap/platform-store-preconnect.d.ts.map +1 -1
- package/dist/esm/bootstrap/platform-store-preconnect.js.map +1 -1
- package/dist/esm/bootstrap/runtime-backing-service-access.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-backing-service-access.js.map +1 -1
- package/dist/esm/bootstrap/runtime-network-policy.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-network-policy.js.map +1 -1
- package/dist/esm/bootstrap/runtime-network-topology.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-network-topology.js.map +1 -1
- package/dist/esm/bootstrap/runtime-platform-access.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-platform-access.js.map +1 -1
- package/dist/esm/bootstrap/runtime-principal.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-principal.contracts.js.map +1 -1
- package/dist/esm/bootstrap/runtime-topology.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-topology.contracts.js.map +1 -1
- package/dist/esm/bootstrap/wildo-owner-organization.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/wildo-owner-organization.contracts.js.map +1 -1
- package/dist/esm/config-authoring.entry.d.ts.map +1 -1
- package/dist/esm/config-authoring.entry.js.map +1 -1
- package/dist/esm/credentials/credential-generator.service.d.ts.map +1 -1
- package/dist/esm/credentials/credential-generator.service.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lockfile/build-parallelism.d.ts.map +1 -1
- package/dist/esm/lockfile/build-parallelism.js.map +1 -1
- package/dist/esm/lockfile/canonical-json.d.ts.map +1 -1
- package/dist/esm/lockfile/canonical-json.js.map +1 -1
- package/dist/esm/lockfile/file-lock-hold.d.ts +87 -0
- package/dist/esm/lockfile/file-lock-hold.d.ts.map +1 -0
- package/dist/esm/lockfile/file-lock-hold.js +279 -0
- package/dist/esm/lockfile/file-lock-hold.js.map +1 -0
- package/dist/esm/lockfile/lockfile-io.d.ts +21 -3
- package/dist/esm/lockfile/lockfile-io.d.ts.map +1 -1
- package/dist/esm/lockfile/lockfile-io.js +8 -16
- package/dist/esm/lockfile/lockfile-io.js.map +1 -1
- package/dist/esm/lockfile/materialize-infra-section.d.ts.map +1 -1
- package/dist/esm/lockfile/materialize-infra-section.js.map +1 -1
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts.map +1 -1
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js.map +1 -1
- package/dist/esm/project-config/application-public-pricing-catalog.loader.d.ts.map +1 -1
- package/dist/esm/project-config/application-public-pricing-catalog.loader.js.map +1 -1
- package/dist/esm/project-config/define-framework-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-framework-config.js.map +1 -1
- package/dist/esm/project-config/define-infra-env-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-infra-env-config.js.map +1 -1
- package/dist/esm/project-config/define-minion-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-minion-config.js.map +1 -1
- package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-saas-config.js.map +1 -1
- package/dist/esm/project-config/define-worker-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-worker-config.js.map +1 -1
- package/dist/esm/project-config/hosted-infra-env-config.d.ts.map +1 -1
- package/dist/esm/project-config/hosted-infra-env-config.js.map +1 -1
- package/dist/esm/project-config/index.d.ts.map +1 -1
- package/dist/esm/project-config/index.js.map +1 -1
- package/dist/esm/project-config/loader.d.ts +16 -1
- package/dist/esm/project-config/loader.d.ts.map +1 -1
- package/dist/esm/project-config/loader.js +35 -1
- package/dist/esm/project-config/loader.js.map +1 -1
- package/dist/esm/project-config/minion-local-provider-registration.d.ts.map +1 -1
- package/dist/esm/project-config/minion-local-provider-registration.js.map +1 -1
- package/dist/esm/project-config/npm-version-range.d.ts.map +1 -1
- package/dist/esm/project-config/npm-version-range.js.map +1 -1
- package/dist/esm/project-config/provider-catalog-types.d.ts.map +1 -1
- package/dist/esm/project-config/provider-catalog-types.js.map +1 -1
- package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -1
- package/dist/esm/project-config/provider-companion-discovery.js +1 -0
- package/dist/esm/project-config/provider-companion-discovery.js.map +1 -1
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -1
- package/dist/esm/project-config/provider-runtime-artifacts.js.map +1 -1
- package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/application-creation-verification.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/application-modules.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/application-modules.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/application-modules.utils.d.ts.map +1 -1
- package/dist/esm/project-config/shared/application-modules.utils.js.map +1 -1
- package/dist/esm/project-config/shared/auth.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/auth.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/backing-service-servability.d.ts.map +1 -1
- package/dist/esm/project-config/shared/backing-service-servability.js.map +1 -1
- package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/backing-services.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/cdn.example.d.ts.map +1 -1
- package/dist/esm/project-config/shared/cdn.example.js.map +1 -1
- package/dist/esm/project-config/shared/cdn.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/cdn.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/csp-defaults.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp-defaults.js.map +1 -1
- package/dist/esm/project-config/shared/csp-emit.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp-emit.js.map +1 -1
- package/dist/esm/project-config/shared/csp.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/data-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/data-services.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/env-example-defaults.d.ts.map +1 -1
- package/dist/esm/project-config/shared/env-example-defaults.js.map +1 -1
- package/dist/esm/project-config/shared/environment.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/environment.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/infra-providers.schemas.d.ts +13 -0
- package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/infra-providers.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/infra-service.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/infra-service.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/k8s-utils.d.ts.map +1 -1
- package/dist/esm/project-config/shared/k8s-utils.js.map +1 -1
- package/dist/esm/project-config/shared/minion-platform-access.vocabulary.d.ts.map +1 -1
- package/dist/esm/project-config/shared/minion-platform-access.vocabulary.js.map +1 -1
- package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts.map +1 -1
- package/dist/esm/project-config/shared/minion-resource-access.validation.js.map +1 -1
- package/dist/esm/project-config/shared/object-storage-session-policy.d.ts.map +1 -1
- package/dist/esm/project-config/shared/object-storage-session-policy.js.map +1 -1
- package/dist/esm/project-config/shared/platform-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/platform-services.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/platform-storage.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/platform-storage.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/schema-version.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/schema-version.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/service-definitions.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/service-definitions.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/systems-of-record-env.schemas.js.map +1 -1
- package/dist/esm/project-config/static-asset-import-noop.d.ts.map +1 -1
- package/dist/esm/project-config/static-asset-import-noop.js.map +1 -1
- package/dist/esm/registry/artifact-domain.schemas.d.ts.map +1 -1
- package/dist/esm/registry/artifact-domain.schemas.js.map +1 -1
- package/dist/esm/registry/digest.schemas.d.ts.map +1 -1
- package/dist/esm/registry/digest.schemas.js.map +1 -1
- package/dist/esm/registry/index.d.ts.map +1 -1
- package/dist/esm/registry/index.js.map +1 -1
- package/dist/esm/registry/local-checkout-source.d.ts.map +1 -1
- package/dist/esm/registry/local-checkout-source.js.map +1 -1
- package/dist/esm/registry/lockfile-modules-section.schemas.d.ts.map +1 -1
- package/dist/esm/registry/lockfile-modules-section.schemas.js.map +1 -1
- package/dist/esm/registry/module-artifact.schemas.d.ts.map +1 -1
- package/dist/esm/registry/module-artifact.schemas.js.map +1 -1
- package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -1
- package/dist/esm/registry/module-manifest.schemas.js.map +1 -1
- package/dist/esm/registry/module-search.schemas.d.ts.map +1 -1
- package/dist/esm/registry/module-search.schemas.js.map +1 -1
- package/dist/esm/registry/registry-config.schemas.d.ts.map +1 -1
- package/dist/esm/registry/registry-config.schemas.js.map +1 -1
- package/dist/esm/registry/registry-defaults.constants.d.ts.map +1 -1
- package/dist/esm/registry/registry-defaults.constants.js.map +1 -1
- package/dist/esm/registry/registry-errors.d.ts.map +1 -1
- package/dist/esm/registry/registry-errors.js.map +1 -1
- package/dist/esm/registry/registry-keys.schemas.d.ts.map +1 -1
- package/dist/esm/registry/registry-keys.schemas.js.map +1 -1
- package/dist/esm/registry/registry-section-schemas.constants.d.ts.map +1 -1
- package/dist/esm/registry/registry-section-schemas.constants.js.map +1 -1
- package/dist/esm/release/framework-release.constants.d.ts.map +1 -1
- package/dist/esm/release/framework-release.constants.js.map +1 -1
- package/dist/esm/schemas/framework-info.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/framework-info.schemas.js.map +1 -1
- package/dist/esm/schemas/framework-secrets.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/framework-secrets.schemas.js.map +1 -1
- package/dist/esm/schemas/platform-application-config.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/platform-application-config.schemas.js.map +1 -1
- package/dist/esm/schemas/platform-application-secrets.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/platform-application-secrets.schemas.js.map +1 -1
- package/dist/esm/schemas/platform-config.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/platform-config.schemas.js.map +1 -1
- package/dist/esm/workspace-scope/application-subject-manifest.d.ts.map +1 -1
- package/dist/esm/workspace-scope/application-subject-manifest.js.map +1 -1
- package/dist/esm/workspace-scope/index.d.ts.map +1 -1
- package/dist/esm/workspace-scope/index.js.map +1 -1
- package/dist/esm/workspace-scope/resolve-homes.d.ts.map +1 -1
- package/dist/esm/workspace-scope/resolve-homes.js.map +1 -1
- package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-homes.schemas.js.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope-detector.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope-detector.js.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope.schemas.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope.schemas.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/_unimplemented/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/_unimplemented/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,aAAa,CAAC","sourcesContent":["export * from './unimplemented-field-warning';\nexport * from './soft-warn';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"soft-warn.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"soft-warn.d.ts","sourceRoot":"","sources":["../../../../src/_unimplemented/soft-warn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyFG;AAkCH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAmB9E;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"soft-warn.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"soft-warn.js","sourceRoot":"","sources":["../../../../src/_unimplemented/soft-warn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyFG;AAEH,MAAM,oBAAoB,GAAG,CAAC,CAAC;AAE/B;;;;;;;;;;;;;GAaG;AACH,MAAM,aAAa,GAAG,IAAI,GAAG,EAAkB,CAAC;AAEhD,SAAS,eAAe;IACtB,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC;IAC9C,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,EAAE;QAAE,OAAO,oBAAoB,CAAC;IACjE,MAAM,UAAU,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;IAC9B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC;QAAE,OAAO,oBAAoB,CAAC;IAChE,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IAClC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,MAAM,GAAG,CAAC;QAAE,OAAO,oBAAoB,CAAC;IAC7E,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,kBAAkB,CAAC,KAAa,EAAE,GAAW;IACpD,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;AACtC,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,UAAU,YAAY,CAAC,KAAa,EAAE,GAAW,EAAE,OAAe;IACtE,MAAM,GAAG,GAAG,eAAe,EAAE,CAAC;IAC9B,MAAM,SAAS,GAAG,kBAAkB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACjD,MAAM,QAAQ,GAAG,aAAa,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAEnD,IAAI,QAAQ,IAAI,GAAG,EAAE,CAAC;QACpB,OAAO;IACT,CAAC;IAED,MAAM,IAAI,GAAG,QAAQ,GAAG,CAAC,CAAC;IAC1B,aAAa,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IAEnC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,oBAAoB,KAAK,KAAK,GAAG,KAAK,OAAO,IAAI,CAAC,CAAC;IAExE,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC;QACjB,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,oBAAoB,KAAK,KAAK,GAAG,kDAAkD,GAAG,0CAA0C,CACjI,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,oBAAoB;IAClC,aAAa,CAAC,KAAK,EAAE,CAAC;AACxB,CAAC","sourcesContent":["/**\n * @fileoverview Soft-warn utility — companion to\n * `unimplemented-field-warning.ts` for cross-cutting authoring concerns\n * that are NOT bound to a single `@unimplemented` field but still need\n * a noisy-yet-non-fatal `process.stderr` channel during the v1 minions\n * & workers rollout.\n *\n * Why a separate utility (and not just call `emitUnimplementedFieldWarning`)?\n *\n * - `@unimplemented` warnings are pinned to a SCHEMA FIELD — every\n * surface today appears in the `cli-dx.md` table and has a tracking\n * ID in the deferred backlog. Adding non-field-bound warnings to\n * that channel would dilute the contract that \"every line in the\n * `@unimplemented` stream maps 1:1 to a deferred-backlog row\".\n *\n * - The minions/workers slice (KD-11 / H-3 in\n * `.cursor/plans/minions-and-workers-implementation.md`) needs to\n * surface advisories like \"your minion's `resourceAccess` whitelist\n * is empty — you'll get blocked at every repository call\" that are\n * PER-MINION, not per-field. The natural authoring key is a\n * `(scope, key)` pair (e.g. `('minions.marketingScrapper', 'resourceAccess.empty')`),\n * not a dotted field path.\n *\n * - The dev watcher re-parses on every save, so without an in-process\n * repeat-cap a verbose minion ACL would spam the log on every\n * keystroke. The `@unimplemented` warner solves dedupe per parse\n * call (a fresh `Set` is captured per `defineSaasConfig` call); the\n * soft-warn utility solves dedupe + cap PER PROCESS so a noisy\n * advisory does not drown the watcher even under tight save loops.\n *\n * Design choices (all pinned by `__tests__/soft-warn.test.ts`):\n *\n * - **Channel = `process.stderr.write`** (parity with\n * `emitUnimplementedFieldWarning`). The dev watcher's\n * pretty-printer hijacks `console.warn`; writing to the FD keeps\n * the line raw and grep-friendly.\n *\n * - **Dedupe = process-wide on `(scope, key)`** with a configurable\n * repeat cap (default 5, env override `WILDO_SOFT_WARN_LIMIT`).\n * After the cap is reached the utility emits ONE final\n * `[wildo-soft-warn:<scope>] <key>: suppressed further occurrences\n * (cap reached: <N>; override via WILDO_SOFT_WARN_LIMIT).` line and\n * falls silent for that pair. The cap is per-process (not per parse\n * call) because the SAME advisory firing on every dev-watcher save\n * is exactly the noise we're trying to suppress.\n *\n * - **Emit ordering vs `@unimplemented`** — soft-warns emit AFTER the\n * `@unimplemented` block in `defineSaasConfig`. The order is the\n * contract because operators read the stream top-to-bottom: the\n * \"canonical\" backlog warnings come first, the \"soft authoring\n * advisory\" lines come after. `__tests__/soft-warn.test.ts`\n * captures stderr writes in order and asserts the ordering by\n * interleaving an `@unimplemented` warning with a soft-warn and\n * pinning the resulting message sequence.\n *\n * - **Format = single-line with `[wildo-soft-warn:<scope>]` prefix**.\n * The `<scope>` is operator-supplied (e.g. `'minions.marketingScrapper'`,\n * `'workers'`) so a reader can grep `wildo-soft-warn:minions` to\n * isolate per-minion advisories. The prefix is intentionally\n * distinct from `[wildo-saas-config]` / `[wildo-infra-env-config]`\n * so the two streams never collide visually in the dev watcher.\n *\n * - **Test reset hook = `__resetSoftWarnState`** — exported strictly\n * for test usage. The state is a module-level `Map` because the\n * \"process-wide cap\" semantic requires it; tests `vi.resetModules()`\n * is too heavy for the cross-test isolation needed in\n * `define-saas-config.unimplemented.test.ts` (which exercises both\n * warners interleaved). The reset hook is documented as\n * test-only via the leading underscore convention used elsewhere\n * in this package.\n *\n * NOT a replacement for schema validation:\n *\n * - Soft-warns DO NOT prevent parse — they are written AFTER the\n * `WildoSaasConfigSchema.parse()` returns successfully.\n * - The utility is intentionally NOT typed against a known list of\n * `(scope, key)` pairs. The caller owns the taxonomy — adding a\n * closed enum here would force a circular dep with\n * `define-saas-config.ts` and force every new advisory to touch\n * this file.\n *\n * Removal contract:\n *\n * - When the v1 minions & workers runtime ships and the advisories\n * become hard parse errors (or migrate into `@unimplemented`\n * surfaces because a backlog item is on file), the corresponding\n * `emitSoftWarn(...)` call sites MUST be deleted in the same commit\n * as the new behaviour. Leaving a stale soft-warn is worse than\n * silence — operators will start ignoring the channel.\n */\n\nconst DEFAULT_REPEAT_LIMIT = 5;\n\n/**\n * Module-level state — process-wide, deliberately so the dev watcher's\n * per-save re-parses do not re-emit the same advisory on every keystroke.\n *\n * Keys are a serialized tuple `[scope, key]`, not a raw concatenated\n * string. This keeps the dedupe channel robust even when either input\n * contains punctuation like `::` — author-authored identifiers must not\n * be able to make advisory emission throw after a successful config\n * parse.\n *\n * The value is the count of actual emitted advisory lines for the pair.\n * Once the count reaches the cap, the cap-reached suppression line is\n * written exactly once.\n */\nconst softWarnState = new Map<string, number>();\n\nfunction readRepeatLimit(): number {\n const raw = process.env.WILDO_SOFT_WARN_LIMIT;\n if (raw === undefined || raw === '') return DEFAULT_REPEAT_LIMIT;\n const normalized = raw.trim();\n if (!/^[1-9]\\d*$/.test(normalized)) return DEFAULT_REPEAT_LIMIT;\n const parsed = Number(normalized);\n if (!Number.isSafeInteger(parsed) || parsed < 1) return DEFAULT_REPEAT_LIMIT;\n return parsed;\n}\n\nfunction serializeDedupeKey(scope: string, key: string): string {\n return JSON.stringify([scope, key]);\n}\n\n/**\n * Emit a single-line soft-warn to `process.stderr`.\n *\n * @param scope - Authoring scope, surfaced verbatim in the prefix\n * (e.g. `'minions.marketingScrapper'`, `'workers'`).\n * @param key - Stable advisory id within the scope\n * (e.g. `'resourceAccess.empty-write'`,\n * `'resourceAccess.unknown-resource'`).\n * @param message - Free-form advisory text. Newline appended by the\n * utility (do not include trailing `\\n` in `message`).\n *\n * Behaviour:\n *\n * - Writes the formatted line to `process.stderr.write`.\n * - Increments the per-`(scope, key)` counter.\n * - When the counter reaches the configured cap, the formatted line\n * is written normally AND followed by a single\n * `[wildo-soft-warn:<scope>] <key>: suppressed further occurrences\n * (cap reached: <N>)` line. Subsequent calls to the same\n * `(scope, key)` pair are silent.\n * - Dedupe is driven by the serialized `(scope, key)` tuple, so\n * punctuation inside either input does NOT affect correctness.\n */\nexport function emitSoftWarn(scope: string, key: string, message: string): void {\n const cap = readRepeatLimit();\n const dedupeKey = serializeDedupeKey(scope, key);\n const previous = softWarnState.get(dedupeKey) ?? 0;\n\n if (previous >= cap) {\n return;\n }\n\n const next = previous + 1;\n softWarnState.set(dedupeKey, next);\n\n process.stderr.write(`[wildo-soft-warn:${scope}] ${key}: ${message}\\n`);\n\n if (next === cap) {\n process.stderr.write(\n `[wildo-soft-warn:${scope}] ${key}: suppressed further occurrences (cap reached: ${cap}; override via WILDO_SOFT_WARN_LIMIT).\\n`,\n );\n }\n}\n\n/**\n * Test-only reset hook. Clears the process-wide `(scope, key) → count`\n * map so each test starts from a clean slate. Production call sites\n * must NEVER invoke this — the cap is the contract.\n *\n * Named with a leading underscore to match the package-wide convention\n * for \"exported strictly for test usage\" hooks.\n */\nexport function __resetSoftWarnState(): void {\n softWarnState.clear();\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unimplemented-field-warning.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"unimplemented-field-warning.d.ts","sourceRoot":"","sources":["../../../../src/_unimplemented/unimplemented-field-warning.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AAEH;;;;GAIG;AACH,oBAAY,wBAAwB;IAClC,WAAW,sBAAsB;IACjC,gBAAgB,2BAA2B;CAC5C;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,wBAAwB,EAChC,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,MAAM,EACvB,gBAAgB,GAAE,MAAwC,GACzD,IAAI,CAON;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,wBAAwB,GAC/B,CAAC,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,MAAM,KAAK,IAAI,CAOjF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unimplemented-field-warning.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"unimplemented-field-warning.js","sourceRoot":"","sources":["../../../../src/_unimplemented/unimplemented-field-warning.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AAEH;;;;GAIG;AACH,MAAM,CAAN,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAClC,6DAAiC,CAAA;IACjC,uEAA2C,CAAA;AAC7C,CAAC,EAHW,wBAAwB,KAAxB,wBAAwB,QAGnC;AAED,MAAM,+BAA+B,GAAG,mDAAmD,CAAC;AAE5F;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,UAAU,6BAA6B,CAC3C,MAAgC,EAChC,SAAiB,EACjB,eAAuB,EACvB,mBAA2B,+BAA+B;IAE1D,MAAM,OAAO,GACX,IAAI,MAAM,2BAA2B,SAAS,eAAe;QAC7D,iCAAiC,eAAe,GAAG;QACnD,IAAI,gBAAgB,KAAK;QACzB,8DAA8D,CAAC;IACjE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,8BAA8B,CAC5C,MAAgC;IAEhC,MAAM,OAAO,GAAG,IAAI,GAAG,EAAU,CAAC;IAClC,OAAO,CAAC,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,EAAE;QACtD,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC;YAAE,OAAO;QACnC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACvB,6BAA6B,CAAC,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,gBAAgB,CAAC,CAAC;IACtF,CAAC,CAAC;AACJ,CAAC","sourcesContent":["/**\n * @fileoverview `@unimplemented` runtime-contract warning utility\n * (Slice 3.4 + Slice 3.5 infra extension).\n *\n * Some authored fields on `WildoSaasConfigSchema` and\n * `WildoInfraEnvConfigInputSchema` are intentionally exposed in the\n * authoring surface today but have **no runtime consumer yet**: they\n * are \"scaffolded for the next slice\". Examples (full list in\n * `.cursor/plans/post-flattening-completion-fixes.md` Slices 3.4-3.5 +\n * the deferred-backlog table):\n *\n * - `WildoSaasConfig.version`, `WildoInfraEnvConfig.version` → backlog `D-5`\n *\n * (`WildoSaasConfig.{minions, workers}` → backlog `D-1` was retired\n * 2026-05-05 with the close of D-1; the runtime path now ships\n * end-to-end — see `.claude/plans/minions-and-workers-implementation.md`\n * Phase 4. The per-entry `resourceAccess` soft-warn channel under\n * `minions.<key>` survives because it is an authoring-contract\n * advisory, not a \"runtime missing\" marker.)\n *\n * The framework-mindset rule of thumb (per `.cursor/rules/design-philosophy.mdc`)\n * is that **every authored field must carry its semantic weight**. Silently\n * stripping or silently ignoring authored values is the kind of \"trick\" that\n * compounds into long-term debt — an app developer who writes a still-deferred\n * field should NOT discover six months later that the flag never wired\n * anything up.\n *\n * The honest middle-ground until the deferred slices land is:\n *\n * 1. Keep the field in the schema so authored configs stay forward-compatible\n * when the runtime support DOES arrive (no breaking re-author).\n * 2. **Loudly warn at parse time** that the field is parsed but currently\n * has no runtime consumer, with a pointer to the tracking backlog ID.\n * 3. Document the same set in `cli-dx.md` so a reader can audit the gap\n * without grepping the codebase.\n *\n * Design choices made for this utility:\n *\n * - **Channel = `process.stderr`** (decided 2026-04-13). Writing directly to\n * the FD keeps the utility usable from every context the schema runs in\n * today — CLI commands, the dev watcher, backend bootstrap, and tests —\n * without coupling to the CLI logger or to `console.warn` (the latter\n * would be hijacked by the dev watcher's pretty-printer and the warning\n * would lose its raw form). Tests stub via `vi.spyOn(process.stderr, 'write')`.\n * - **Dedupe = \"once per parse call\"** (decided 2026-04-13). The utility is\n * stateless — no module-level `Set` caching emitted warnings — and the\n * *caller* (`defineSaasConfig`) owns a fresh `Set<string>` per parse so\n * that authoring the same field twice in one config still warns once,\n * but the dev watcher re-parsing on every save still re-emits the full\n * set so authors see them on every save instead of \"warning fatigue =\n * silent after the first save\". Process-wide dedupe was rejected because\n * a long-lived dev watcher would emit each warning exactly once at boot\n * and never again, defeating the purpose for someone who joins later.\n * - **Format = single-line with slice ID + plan reference** (decided\n * 2026-04-13). One line per warning is grep-friendly, fits inside dev\n * watcher log streams without breaking layout, and embedding `D-{n}`\n * plus the plan filename gives the reader a one-jump path to the\n * tracking entry. The longer \"two-line block\" alternative was rejected\n * because the dev watcher's per-line log prefixes break the visual\n * indentation, and the \"minimal one-liner\" alternative was rejected\n * because it required the reader to look up `D-{n}` separately.\n *\n * NOT a replacement for schema validation:\n * - This utility does NOT prevent the field from being authored.\n * - It does NOT cast / coerce / mutate the parsed value.\n * - It is a **runtime advisory**, surfaced AFTER `WildoSaasConfigSchema.parse()`\n * succeeds, by the `defineSaasConfig` wrapper.\n *\n * When the deferred backlog item lands and the runtime consumer ships, the\n * corresponding `if (...) emitUnimplementedFieldWarning(...)` block in\n * `defineSaasConfig.ts` MUST be removed in the same commit as the runtime\n * wiring — leaving a stale warning is worse than silence because authors\n * will start ignoring the channel.\n */\n\n/**\n * Source label embedded in the warning prefix so a reader can tell at a\n * glance which authored config emitted the warning. Keep the literals\n * stable — tests and operator runbooks may grep on these prefixes.\n */\nexport enum UnimplementedFieldSource {\n SAAS_CONFIG = 'wildo-saas-config',\n INFRA_ENV_CONFIG = 'wildo-infra-env-config',\n}\n\nconst DEFAULT_UNIMPLEMENTED_PLAN_PATH = '.cursor/plans/post-flattening-completion-fixes.md';\n\n/**\n * Emit a single-line `@unimplemented` warning to `process.stderr`.\n *\n * @param source - Which authored config the field belongs to. Surfaces in\n * the warning prefix (`[wildo-saas-config]` /\n * `[wildo-infra-env-config]`) so the reader can match the\n * warning back to the file they were editing without\n * scrolling the call stack.\n * @param fieldPath - Dotted path to the authored field, e.g.\n * `'features.organizations'` or\n * `'capabilities.AI_LLM.runtime'`. Used as the dedupe\n * key by callers and surfaced verbatim in the warning\n * text so authors can ctrl-F it in their config.\n * @param followUpSliceId - Tracking ID in the deferred backlog\n * (`D-1` / `D-2` / `D-3` / `D-5` today, plus\n * auth-hardening's `B-2C`). Surfaced in the\n * warning so readers can jump to the matching\n * plan entry without grepping.\n * @param followUpPlanPath - Plan file that owns the backlog ID. Defaults\n * to `post-flattening-completion-fixes.md` so\n * the existing D-series warnings keep their\n * current breadcrumb, but callers can override\n * it for backlog IDs owned by another plan.\n *\n * The warning is written synchronously; this is intentional so the line\n * appears next to the offending parse in the dev watcher's interleaved\n * log stream. Throwing here is intentionally not done — a bad warning\n * must never block a parse, only inform.\n */\nexport function emitUnimplementedFieldWarning(\n source: UnimplementedFieldSource,\n fieldPath: string,\n followUpSliceId: string,\n followUpPlanPath: string = DEFAULT_UNIMPLEMENTED_PLAN_PATH,\n): void {\n const message =\n `[${source}] @unimplemented field '${fieldPath}' authored — ` +\n `runtime support tracked under ${followUpSliceId} ` +\n `(${followUpPlanPath}). ` +\n `The field is parsed but currently has no runtime consumer.\\n`;\n process.stderr.write(message);\n}\n\n/**\n * Convenience wrapper that owns a per-call dedupe `Set<string>` keyed by\n * `fieldPath` alone (the `source` is bound by the closure, so embedding\n * it in the dedupe key would be redundant — one warner instance is\n * scoped to one source). Intended call shape:\n *\n * ```ts\n * const warn = createUnimplementedFieldWarner(UnimplementedFieldSource.SAAS_CONFIG);\n * warn('features.organizations', 'D-3');\n * warn('features.organizations', 'D-3'); // second call is a no-op\n * warn('csp.docs', 'B-2C', '.cursor/plans/auth-hardening.md');\n * ```\n *\n * The returned closure is local to the parse call (not stored on a\n * module / singleton) so dev-watcher re-parses still re-emit the full set\n * — see the \"once per parse call\" decision in the file-level JSDoc above.\n *\n * The source is captured by the closure so callers (one per\n * `defineSaasConfig` / `defineInfraEnvConfig` invocation) only have to\n * pass field paths, matching the existing call shape used in\n * `defineSaasConfig.emitUnimplementedRuntimeWarnings`.\n */\nexport function createUnimplementedFieldWarner(\n source: UnimplementedFieldSource,\n): (fieldPath: string, followUpSliceId: string, followUpPlanPath?: string) => void {\n const emitted = new Set<string>();\n return (fieldPath, followUpSliceId, followUpPlanPath) => {\n if (emitted.has(fieldPath)) return;\n emitted.add(fieldPath);\n emitUnimplementedFieldWarning(source, fieldPath, followUpSliceId, followUpPlanPath);\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-backend-env.contracts.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"application-backend-env.contracts.d.ts","sourceRoot":"","sources":["../../../../src/bootstrap/application-backend-env.contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0CAA0C,EAC1C,qCAAqC,EACrC,gCAAgC,EAChC,6CAA6C,EAC7C,wCAAwC,EACxC,sCAAsC,EACtC,iCAAiC,EACjC,kCAAkC,EAClC,4BAA4B,EAC5B,6BAA6B,EAC7B,KAAK,wBAAwB,EAC7B,mCAAmC,EACnC,oCAAoC,EACpC,+BAA+B,EAC/B,gCAAgC,GACjC,MAAM,gCAAgC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-backend-env.contracts.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"application-backend-env.contracts.js","sourceRoot":"","sources":["../../../../src/bootstrap/application-backend-env.contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0CAA0C,EAC1C,qCAAqC,EACrC,gCAAgC,EAChC,6CAA6C,EAC7C,wCAAwC,EACxC,sCAAsC,EACtC,iCAAiC,EACjC,kCAAkC,EAClC,4BAA4B,EAC5B,6BAA6B,EAE7B,mCAAmC,EACnC,oCAAoC,EACpC,+BAA+B,EAC/B,gCAAgC,GACjC,MAAM,gCAAgC,CAAC","sourcesContent":["export {\n APPLICATION_BACKEND_BOOTSTRAP_ENV_KEY_LIST,\n APPLICATION_BACKEND_DATA_ENV_KEY_LIST,\n APPLICATION_BACKEND_ENV_KEY_LIST,\n APPLICATION_BACKEND_PLATFORM_URL_ENV_KEY_LIST,\n APPLICATION_BACKEND_RUNTIME_ENV_KEY_LIST,\n APPLICATION_BACKEND_SENSITIVE_ENV_KEYS,\n ApplicationBackendBootstrapEnvKey,\n ApplicationBackendBootstrapEnvKeys,\n ApplicationBackendDataEnvKey,\n ApplicationBackendDataEnvKeys,\n type ApplicationBackendEnvKey,\n ApplicationBackendPlatformUrlEnvKey,\n ApplicationBackendPlatformUrlEnvKeys,\n ApplicationBackendRuntimeEnvKey,\n ApplicationBackendRuntimeEnvKeys,\n} from '@wildo-ai/platform-core-shared';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-creation-verification-env.contracts.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"application-creation-verification-env.contracts.d.ts","sourceRoot":"","sources":["../../../../src/bootstrap/application-creation-verification-env.contracts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,oBAAY,qCAAqC;IAC/C,kBAAkB,4CAA4C;IAC9D,MAAM,+CAA+C;IACrD,MAAM,+CAA+C;CACtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-creation-verification-env.contracts.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"application-creation-verification-env.contracts.js","sourceRoot":"","sources":["../../../../src/bootstrap/application-creation-verification-env.contracts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,qCAIX;AAJD,WAAY,qCAAqC;IAC/C,uGAA8D,CAAA;IAC9D,8FAAqD,CAAA;IACrD,8FAAqD,CAAA;AACvD,CAAC,EAJW,qCAAqC,KAArC,qCAAqC,QAIhD","sourcesContent":["/**\n * Generated app-root environment contract for application-creation verification.\n *\n * `EVIDENCE_DIRECTORY` and `SILENT` are projections of the authored local infra\n * config. `RUN_ID` is deliberately not authored: the operator supervisor mints\n * it for one execution and passes it only to the child process.\n */\nexport enum ApplicationCreationVerificationEnvKey {\n EVIDENCE_DIRECTORY = 'WILDO_APPLICATION_CREATION_EVIDENCE_DIR',\n SILENT = 'WILDO_APPLICATION_CREATION_EVIDENCE_SILENT',\n RUN_ID = 'WILDO_APPLICATION_CREATION_EVIDENCE_RUN_ID',\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap-planner.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"bootstrap-planner.d.ts","sourceRoot":"","sources":["../../../../src/bootstrap/bootstrap-planner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE7E,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,qBAAqB,CAAC;IAChC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,eAAe,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,kBAAkB,GAAG,iBAAiB,EAAE,CAwBjF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap-planner.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"bootstrap-planner.js","sourceRoot":"","sources":["../../../../src/bootstrap/bootstrap-planner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAgB7E;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAyB;IAC1D,MAAM,KAAK,GAAwB,EAAE,CAAC;IAEtC,IAAI,KAAK,CAAC,kBAAkB,EAAE,CAAC;QAC7B,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,mBAAmB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,IAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC5B,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IACzE,CAAC;IAED,IAAI,KAAK,CAAC,yBAAyB,EAAE,CAAC;QACpC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,2BAA2B,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IAClF,CAAC;IAED,IAAI,KAAK,CAAC,wBAAwB,EAAE,CAAC;QACnC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,0BAA0B,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IACjF,CAAC;IAED,IAAI,KAAK,CAAC,QAAQ,KAAK,qBAAqB,CAAC,KAAK,IAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC9E,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,mBAAmB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["import { BootstrapExecutorKind, BootstrapStepId } from './bootstrap.schemas';\n\nexport interface BootstrapPlanInput {\n executor: BootstrapExecutorKind;\n initializePlatform?: boolean;\n ensureApplication?: boolean;\n fetchBootstrapCredentials?: boolean;\n generateRuntimeArtifacts?: boolean;\n startLocalRuntime?: boolean;\n}\n\nexport interface BootstrapPlanStep {\n id: BootstrapStepId;\n required: boolean;\n}\n\n/**\n * Build a semantic bootstrap plan independent of the concrete executor.\n * Executors (CLI local processes, CI/CD remote jobs, HTTP workflows) can interpret\n * the same ordered steps differently while keeping one shared core behavior.\n */\nexport function buildBootstrapPlan(input: BootstrapPlanInput): BootstrapPlanStep[] {\n const steps: BootstrapPlanStep[] = [];\n\n if (input.initializePlatform) {\n steps.push({ id: BootstrapStepId.INITIALIZE_PLATFORM, required: true });\n }\n\n if (input.ensureApplication) {\n steps.push({ id: BootstrapStepId.ENSURE_APPLICATION, required: true });\n }\n\n if (input.fetchBootstrapCredentials) {\n steps.push({ id: BootstrapStepId.FETCH_BOOTSTRAP_CREDENTIALS, required: true });\n }\n\n if (input.generateRuntimeArtifacts) {\n steps.push({ id: BootstrapStepId.GENERATE_RUNTIME_ARTIFACTS, required: true });\n }\n\n if (input.executor === BootstrapExecutorKind.LOCAL && input.startLocalRuntime) {\n steps.push({ id: BootstrapStepId.START_LOCAL_RUNTIME, required: true });\n }\n\n return steps;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.contracts.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"bootstrap.contracts.d.ts","sourceRoot":"","sources":["../../../../src/bootstrap/bootstrap.contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,KAAK,6BAA6B,EAAE,KAAK,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACjI,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAM/F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAEtF,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,sDAAsD,CAAC;AAE9D,OAAO,KAAK,EACV,+BAA+B,EAC/B,2BAA2B,EAC3B,oBAAoB,EACpB,2BAA2B,EAC3B,6BAA6B,EAC9B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,gGAAgG;AAChG,KAAK,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAClF,8FAA8F;AAC9F,KAAK,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC9E,OAAO,EAIL,KAAK,+BAA+B,EACpC,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAChC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AAS;YAC1B,sBAAsB,EAAE,KAAK,CAAC,sBAAsB;YACpD,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;YAC1C,eAAe,EAAE,KAAK,CAAC,eAAe;SACvC,CAAC;QACF,cAAc,EAAE,KAAK,CAAC,SAAS,EAAE,UAAU;QAC3C,eAAe,EAAE,wBAAwB,CAAC,eAAe;QACzD,SAAS,EAAE,wBAAwB,CAAC,SAAS;QAC7C,kBAAkB,EAAE,wBAAwB,CAAC,kBAAkB;KAChE,CAAC;AACJ,CAAC","sourcesContent":["import { RuntimeEnvironment, type OrganizationTypesConfigSchema, type SystemsOfRecordConfigSchema } from '@wildo-ai/saas-models';\nimport type { z } from 'zod';\nimport type { ApplicationModules } from '../project-config/shared/application-modules.schemas';\nimport {\n getDeclaredApplicationModuleIds,\n getServiceBoundApplicationModuleIds,\n hasServiceBoundModuleWithSamlIntegration,\n} from '../project-config/shared/application-modules.utils';\nimport type { AppDataServices } from '../project-config/shared/data-services.schemas';\nimport { deriveAppDatabaseName } from '../project-config/shared/data-services.schemas';\nimport type {\n AppFrontendType,\n AppLibraryDefinition,\n AppServiceDefinition,\n RuntimeIsolation,\n} from '../project-config/shared/service-definitions.schemas';\nimport { resolveAppServiceIsolation } from '../project-config/shared/service-definitions.schemas';\nimport type {\n EngineCapabilityActivationInput,\n MinionPlatformAccessCarried,\n MinionResourceAccess,\n ProviderConfigurationsInput,\n SaasConfigProvidersBlockInput,\n} from '../project-config/define-saas-config';\nimport type { WildoWorkerConfig } from '../project-config/define-worker-config';\n\n/** What `wildo.saas.config.ts` authors for `organizationTypes`, before defaults are applied. */\ntype OrganizationTypesConfigInput = z.input<typeof OrganizationTypesConfigSchema>;\n/** What `wildo.saas.config.ts` authors for `systemsOfRecord`, before defaults are applied. */\ntype SystemsOfRecordConfigInput = z.input<typeof SystemsOfRecordConfigSchema>;\nimport {\n AdminAppManagedDeclarationSchema,\n AppBootstrapCredentialsResponseSchema,\n AppWorkerBootstrapResponseSchema,\n type AppBootstrapCredentialsResponse,\n type AppBootstrapFirstAdminSeed,\n type AdminAppManagedDeclaration,\n type AppWorkerBootstrapResponse,\n} from './bootstrap.schemas';\n\nexport interface BuildAppBootstrapCredentialsResponseInput {\n appSlug: string;\n environment: RuntimeEnvironment;\n applicationId: string;\n primarySecret: string;\n appsManagerUrl: string;\n}\n\ntype ManagedWorkerDeclaration = Pick<\n WildoWorkerConfig,\n 'name' | 'displayName' | 'description' | 'runtime' | 'http' | 'auth' | 'replicas' | 'resources' | 'dataAccess'\n>;\n\n/**\n * The service-row surface these normalizers actually read, derived from\n * {@link AppServiceDefinition} rather than restated structurally.\n *\n * Restating it by hand is what let `frontendType` widen to `string` and let\n * `isolation` disappear from the contract entirely: the normalizer forwards the\n * whole row to `resolveAppServiceIsolation`, so a row type that omits the\n * authored isolation block describes a normalizer that silently drops it, and a\n * `string` frontendType is a closed vocabulary (`AppFrontendType`) re-opened at\n * a boundary that only ever receives parsed config.\n */\ntype NormalizableAppServiceRow = Pick<\n AppServiceDefinition,\n 'path' | 'serviceName' | 'defaultPort' | 'frontendType' | 'isolation'\n>;\n\n/**\n * apps-manager control-plane bootstrap protocol details shared by CLI callers\n * and apps-manager producers.\n */\nexport const APPS_MANAGER_ADMIN_SECRET_HEADER = 'X-Admin-Secret';\nexport const APPS_MANAGER_API_PREFIX = '/api/v1';\n\n/**\n * The apps-manager application-config read path (prefix-qualified) — the route the executable JWT/config\n * initialization postcondition authenticates through. The canonical route for CLI callers — the\n * `ApplicationInitializationVerificationService` (the `wildo local init` postcondition) imports it here so it\n * never pins the route independently. `@wildo-ai/platform-e2e-runner` RE-EXPOSES this exact constant (as\n * `APPS_MANAGER_APPLICATION_CONFIG_PATH`) for the platform e2e scenarios that reach only its barrel — one\n * definition here, no duplicate literal.\n */\nexport const APPS_MANAGER_APPLICATION_CONFIG_PATH = `${APPS_MANAGER_API_PREFIX}/apps-to-manager/application-config`;\n\nexport function buildAdminInitializeApplicationPath(appSlug: string): string {\n return `/admin/apps/${encodeURIComponent(appSlug)}/initialize`;\n}\n\n/**\n * Path builders for application WITHDRAWAL (#1556).\n *\n * Deregistering removes an application's cron schedule, marks its row and REVOKES every credential\n * minted for it (#1307); it destroys no data, which is why the pair is a plain admin verb rather than a\n * guarded one. Restoring clears the mark and re-mints those credentials with their recorded values — the\n * schedule comes back from the application's own code at its next boot.\n *\n * Declared HERE, beside the other admin paths, so the CLI and the controller cannot pin the route\n * independently and drift.\n */\nexport function buildAdminDeregisterApplicationPath(appSlug: string): string {\n return `/admin/apps/${encodeURIComponent(appSlug)}/deregister`;\n}\n\nexport function buildAdminApplicationResiduePath(appSlug: string): string {\n return `/admin/apps/${encodeURIComponent(appSlug)}/residue`;\n}\n\nexport function buildAdminRestoreApplicationPath(appSlug: string): string {\n return `/admin/apps/${encodeURIComponent(appSlug)}/restore`;\n}\n\n/**\n * Path builder for the managed-declaration reapply endpoint.\n *\n * See `AdminAppReapplyDeclarationRequestSchema` (in `bootstrap.schemas.ts`)\n * for the full contract semantics — what it does and what it deliberately\n * does NOT touch.\n */\nexport function buildAdminReapplyDeclarationPath(appSlug: string): string {\n return `/admin/apps/${encodeURIComponent(appSlug)}/reapply-declaration`;\n}\n\n/**\n * Stable action identifier reserved for the managed-declaration reapply\n * endpoint. Callers (notably the CI/CD admin rights workstream — Step 8)\n * should use this constant when granting permissions instead of hard-coding\n * the string, so the wiring survives any future identifier rename.\n *\n * The full action-identifier enum lives downstream of this constant and\n * will be introduced when Step 8 lands the permission grid.\n */\nexport const APPS_REAPPLY_DECLARATION_ACTION_ID = 'apps.reapply-declaration';\n\n/**\n * Query parameter naming WHICH runtime principal's bootstrap credentials to\n * return (Step 1 / F11). Absent ⇒ the application backend, which is both the\n * historical behaviour and the correct default: every existing caller wants the\n * backend, and a caller that forgets to name a principal gets the one identity\n * that certainly exists rather than an error.\n *\n * A query parameter rather than a path segment because the principal key already\n * contains a `:` (`minion:marketingScrapper`), which reads badly in a path and\n * would need double-encoding through the router.\n */\nexport const APP_BOOTSTRAP_PRINCIPAL_QUERY_PARAM = 'principal';\n\nexport function buildAppBootstrapCredentialsPath(\n appSlug: string,\n environment: RuntimeEnvironment,\n /**\n * A rendered principal key from `buildRuntimePrincipalKey`. Omit for the\n * application backend.\n */\n principalKey?: string,\n): string {\n const base = `/admin/apps/${encodeURIComponent(appSlug)}/credentials/${environment}`;\n return principalKey\n ? `${base}?${APP_BOOTSTRAP_PRINCIPAL_QUERY_PARAM}=${encodeURIComponent(principalKey)}`\n : base;\n}\n\nexport function buildAppWorkerBootstrapPath(workerName: string): string {\n return `/apps-to-manager/workers/${encodeURIComponent(workerName)}/bootstrap`;\n}\n\n/**\n * Build and validate the shared bootstrap credentials response envelope.\n * This keeps the response contract identical across apps-manager producers and CLI consumers.\n */\nexport function buildAppBootstrapCredentialsResponse(\n input: BuildAppBootstrapCredentialsResponseInput,\n): AppBootstrapCredentialsResponse {\n return AppBootstrapCredentialsResponseSchema.parse({\n success: true,\n appSlug: input.appSlug,\n environment: input.environment,\n credentials: {\n APPLICATION_ID: input.applicationId,\n PLATFORM_APPLICATION_PRIMARY_SECRET: input.primarySecret,\n PLATFORM_APPS_MANAGER_URL: input.appsManagerUrl,\n APPLICATION_ENV: input.environment,\n APPLICATION_SLUG: input.appSlug,\n },\n });\n}\n\nexport function buildAppWorkerBootstrapResponse(input: {\n appSlug: string;\n workerName: string;\n worker: ManagedWorkerDeclaration;\n publicKey: string;\n rotatedPublicKeys?: Array<{ kid: string; publicKey: string; notAfter?: Date }> | undefined;\n}): AppWorkerBootstrapResponse {\n return AppWorkerBootstrapResponseSchema.parse({\n appSlug: input.appSlug,\n workerName: input.workerName,\n worker: input.worker,\n jwt: {\n publicKey: input.publicKey,\n rotatedPublicKeys: input.rotatedPublicKeys,\n },\n });\n}\n\nexport interface NormalizedSaasBackendServiceDescriptor {\n key: string;\n path: string;\n serviceName: string;\n defaultPort?: number | undefined;\n /**\n * Effective container isolation — the authored `services.<key>.isolation`\n * merged with the kind-correct defaults by `resolveAppServiceIsolation`.\n * Consumed by the k8s manifest renderer and the compose app lane, which must\n * never re-derive it. Only the authorable knobs; the security floor is emitted\n * unconditionally and is deliberately not representable here.\n */\n isolation: RuntimeIsolation;\n}\n\nexport interface NormalizedSaasFrontendServiceDescriptor {\n key: string;\n path: string;\n serviceName: string;\n defaultPort?: number | undefined;\n frontendType: AppFrontendType;\n /**\n * Effective container isolation — the authored `services.<key>.isolation`\n * merged with the kind-correct defaults by `resolveAppServiceIsolation`.\n * Consumed by the k8s manifest renderer and the compose app lane, which must\n * never re-derive it. Only the authorable knobs; the security floor is emitted\n * unconditionally and is deliberately not representable here.\n */\n isolation: RuntimeIsolation;\n}\n\nexport interface NormalizedSaasRuntimeDescriptor {\n appSlug: string;\n appDisplayName: string;\n appDatabaseName?: string | undefined;\n /**\n * Authored `wildo.saas.config.dataServices.redis.keyPrefix`. When defined,\n * threads downstream into the per-app `.env` as `REDIS_KEY_PREFIX` and\n * becomes the canonical app-level Redis key namespace consumed by\n * `RedisService` (Slice 3.6).\n */\n redisKeyPrefix?: string | undefined;\n /**\n * Authored `wildo.saas.config.dataServices.s3.bucketPrefix`. When defined,\n * threads downstream into the per-app `.env` as `STORAGE_BUCKET_PREFIX`\n * and is prepended to every application object key by\n * `WildoManagedStorageProvider` (Slice 3.6). The actual MinIO bucket name\n * remains infra-controlled.\n */\n storageBucketPrefix?: string | undefined;\n requiresJavaBackendBase: boolean;\n backendServices: NormalizedSaasBackendServiceDescriptor[];\n frontendServices: NormalizedSaasFrontendServiceDescriptor[];\n libraries: Record<string, AppLibraryDefinition>;\n specifications?: { path: string } | undefined;\n managedDeclaration: AdminAppManagedDeclaration;\n firstAdminSeed?: AppBootstrapFirstAdminSeed | undefined;\n declaredModules: NonNullable<ApplicationModules>;\n moduleIds: string[];\n moduleIdsByService: Record<string, string[]>;\n}\n\nexport interface NormalizedLocalServiceAddressingDescriptor {\n host?: string | undefined;\n port?: number | undefined;\n url?: string | undefined;\n}\n\nexport function normalizeSaasModuleBindings(input: {\n services: Record<string, { serviceName: string }>;\n modules?: ApplicationModules | undefined;\n}) {\n const declaredModules = input.modules ?? {};\n\n return {\n declaredModules,\n moduleIds: getDeclaredApplicationModuleIds(declaredModules),\n moduleIdsByService: Object.fromEntries(\n Object.keys(input.services).map((serviceKey) => [\n serviceKey,\n getServiceBoundApplicationModuleIds(declaredModules, serviceKey),\n ]),\n ),\n };\n}\n\nexport function buildAdminAppManagedDeclaration(input: {\n name: string;\n slug: string;\n displayName: string;\n description?: string | undefined;\n type: 'saas';\n services: Record<string, Pick<NormalizableAppServiceRow, 'serviceName' | 'frontendType'>>;\n minions?: Record<string, {\n resourceAccess?: MinionResourceAccess;\n platformAccess?: MinionPlatformAccessCarried;\n mode?: 'always-up' | 'cron';\n schedule?: string;\n }> | undefined;\n workers?: Record<string, ManagedWorkerDeclaration> | undefined;\n engineCapabilities?: Record<string, EngineCapabilityActivationInput> | undefined;\n providers?: SaasConfigProvidersBlockInput | undefined;\n providerConfigurations?: ProviderConfigurationsInput | undefined;\n organizationTypes: OrganizationTypesConfigInput;\n systemsOfRecord?: SystemsOfRecordConfigInput | undefined;\n}): AdminAppManagedDeclaration {\n return AdminAppManagedDeclarationSchema.parse({\n app: {\n name: input.name,\n slug: input.slug,\n displayName: input.displayName,\n description: input.description,\n type: input.type,\n },\n frontendServices: Object.values(input.services)\n .filter((service) => service.frontendType !== undefined)\n .map((service) => ({\n serviceName: service.serviceName,\n frontendType: service.frontendType,\n })),\n minions: Object.fromEntries(\n Object.entries(input.minions ?? {}).map(([minionName, declaration]) => [\n minionName,\n {\n ...(declaration.resourceAccess ? { resourceAccess: declaration.resourceAccess } : {}),\n // Forwarded only when authored, like every sibling here: an absent\n // axis must stay absent rather than becoming an explicit empty\n // declaration downstream.\n ...(declaration.platformAccess ? { platformAccess: declaration.platformAccess } : {}),\n // KD-12 — only forward `mode` + `schedule` when present so the\n // declaration stays minimal for legacy / always-up minions.\n ...(declaration.mode !== undefined ? { mode: declaration.mode } : {}),\n ...(declaration.schedule !== undefined ? { schedule: declaration.schedule } : {}),\n },\n ]),\n ),\n workers: input.workers ?? {},\n engineCapabilities: input.engineCapabilities,\n providers: input.providers,\n providerConfigurations: input.providerConfigurations,\n organizationTypes: input.organizationTypes,\n systemsOfRecord: input.systemsOfRecord,\n });\n}\n\nexport function normalizeSaasRuntimeDescriptor(input: {\n name: string;\n slug: string;\n displayName: string;\n description?: string | undefined;\n type: 'saas';\n services: Record<string, NormalizableAppServiceRow>;\n minions?: Record<string, {\n resourceAccess?: MinionResourceAccess;\n platformAccess?: MinionPlatformAccessCarried;\n mode?: 'always-up' | 'cron';\n schedule?: string;\n }> | undefined;\n workers?: Record<string, ManagedWorkerDeclaration> | undefined;\n engineCapabilities?: Record<string, EngineCapabilityActivationInput> | undefined;\n providers?: SaasConfigProvidersBlockInput | undefined;\n providerConfigurations?: ProviderConfigurationsInput | undefined;\n organizationTypes: OrganizationTypesConfigInput;\n systemsOfRecord?: SystemsOfRecordConfigInput | undefined;\n dataServices?: AppDataServices | undefined;\n modules?: ApplicationModules | undefined;\n libraries?: Record<string, AppLibraryDefinition> | undefined;\n specifications?: { path: string } | undefined;\n bootstrap?: {\n firstAdmin?: AppBootstrapFirstAdminSeed | undefined;\n } | undefined;\n}): NormalizedSaasRuntimeDescriptor {\n // `isolation` is resolved HERE — the single point where a service row is read\n // and classified as backend or frontend — because the correct default depends\n // on exactly that classification (Node as `wildo` vs nginx as `nginx`). Two\n // renderers consume the result; resolving it per-renderer instead is how the\n // same row ends up running as different users in the k8s and compose lanes.\n const backendServices = Object.entries(input.services)\n .filter(([, service]) => service.frontendType === undefined)\n .map(([key, service]) => ({\n key,\n path: service.path,\n serviceName: service.serviceName,\n defaultPort: service.defaultPort,\n isolation: resolveAppServiceIsolation(service),\n }));\n\n const frontendServices = Object.entries(input.services)\n .filter(([, service]) => service.frontendType !== undefined)\n .map(([key, service]) => ({\n key,\n path: service.path,\n serviceName: service.serviceName,\n defaultPort: service.defaultPort,\n frontendType: service.frontendType!,\n isolation: resolveAppServiceIsolation(service),\n }));\n const normalizedModuleBindings = normalizeSaasModuleBindings({\n services: input.services,\n modules: input.modules,\n });\n const backendServiceKeys = backendServices.map((service) => service.key);\n\n return {\n appSlug: input.slug,\n appDisplayName: input.displayName,\n appDatabaseName: deriveAppDatabaseName(input.dataServices),\n redisKeyPrefix: input.dataServices?.redis?.keyPrefix,\n storageBucketPrefix: input.dataServices?.s3?.bucketPrefix,\n requiresJavaBackendBase: hasServiceBoundModuleWithSamlIntegration(\n normalizedModuleBindings.declaredModules,\n backendServiceKeys,\n ),\n backendServices,\n frontendServices,\n libraries: input.libraries ?? {},\n specifications: input.specifications,\n managedDeclaration: buildAdminAppManagedDeclaration({\n name: input.name,\n slug: input.slug,\n displayName: input.displayName,\n description: input.description,\n type: input.type,\n services: input.services,\n minions: input.minions,\n workers: input.workers,\n engineCapabilities: input.engineCapabilities,\n providers: input.providers,\n providerConfigurations: input.providerConfigurations,\n organizationTypes: input.organizationTypes,\n systemsOfRecord: input.systemsOfRecord,\n }),\n firstAdminSeed: input.bootstrap?.firstAdmin,\n declaredModules: normalizedModuleBindings.declaredModules,\n moduleIds: normalizedModuleBindings.moduleIds,\n moduleIdsByService: normalizedModuleBindings.moduleIdsByService,\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"bootstrap.contracts.js","sourceRoot":"","sources":["../../../../src/bootstrap/bootstrap.contracts.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,+BAA+B,EAC/B,mCAAmC,EACnC,wCAAwC,GACzC,MAAM,oDAAoD,CAAC;AAE5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AAOvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,sDAAsD,CAAC;AAclG,OAAO,EACL,gCAAgC,EAChC,qCAAqC,EACrC,gCAAgC,GAKjC,MAAM,qBAAqB,CAAC;AA+B7B;;;GAGG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,gBAAgB,CA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EAAE,KAAK,CAAC,OAAO;YACtB,kBAAkB,EAAE,KAAK,CAAC,kBAAkB;YAC5C,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,sBAAsB,EAAE,KAAK,CAAC,sBAAsB;YACpD,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;YAC1C,eAAe,EAAE,KAAK,CAAC,eAAe;SACvC,CAAC;QACF,cAAc,EAAE,KAAK,CAAC,SAAS,EAAE,UAAU;QAC3C,eAAe,EAAE,wBAAwB,CAAC,eAAe;QACzD,SAAS,EAAE,wBAAwB,CAAC,SAAS;QAC7C,kBAAkB,EAAE,wBAAwB,CAAC,kBAAkB;KAChE,CAAC;AACJ,CAAC","sourcesContent":["import { RuntimeEnvironment, type OrganizationTypesConfigSchema, type SystemsOfRecordConfigSchema } from '@wildo-ai/saas-models';\nimport type { z } from 'zod';\nimport type { ApplicationModules } from '../project-config/shared/application-modules.schemas';\nimport {\n getDeclaredApplicationModuleIds,\n getServiceBoundApplicationModuleIds,\n hasServiceBoundModuleWithSamlIntegration,\n} from '../project-config/shared/application-modules.utils';\nimport type { AppDataServices } from '../project-config/shared/data-services.schemas';\nimport { deriveAppDatabaseName } from '../project-config/shared/data-services.schemas';\nimport type {\n AppFrontendType,\n AppLibraryDefinition,\n AppServiceDefinition,\n RuntimeIsolation,\n} from '../project-config/shared/service-definitions.schemas';\nimport { resolveAppServiceIsolation } from '../project-config/shared/service-definitions.schemas';\nimport type {\n EngineCapabilityActivationInput,\n MinionPlatformAccessCarried,\n MinionResourceAccess,\n ProviderConfigurationsInput,\n SaasConfigProvidersBlockInput,\n} from '../project-config/define-saas-config';\nimport type { WildoWorkerConfig } from '../project-config/define-worker-config';\n\n/** What `wildo.saas.config.ts` authors for `organizationTypes`, before defaults are applied. */\ntype OrganizationTypesConfigInput = z.input<typeof OrganizationTypesConfigSchema>;\n/** What `wildo.saas.config.ts` authors for `systemsOfRecord`, before defaults are applied. */\ntype SystemsOfRecordConfigInput = z.input<typeof SystemsOfRecordConfigSchema>;\nimport {\n AdminAppManagedDeclarationSchema,\n AppBootstrapCredentialsResponseSchema,\n AppWorkerBootstrapResponseSchema,\n type AppBootstrapCredentialsResponse,\n type AppBootstrapFirstAdminSeed,\n type AdminAppManagedDeclaration,\n type AppWorkerBootstrapResponse,\n} from './bootstrap.schemas';\n\nexport interface BuildAppBootstrapCredentialsResponseInput {\n appSlug: string;\n environment: RuntimeEnvironment;\n applicationId: string;\n primarySecret: string;\n appsManagerUrl: string;\n}\n\ntype ManagedWorkerDeclaration = Pick<\n WildoWorkerConfig,\n 'name' | 'displayName' | 'description' | 'runtime' | 'http' | 'auth' | 'replicas' | 'resources' | 'dataAccess'\n>;\n\n/**\n * The service-row surface these normalizers actually read, derived from\n * {@link AppServiceDefinition} rather than restated structurally.\n *\n * Restating it by hand is what let `frontendType` widen to `string` and let\n * `isolation` disappear from the contract entirely: the normalizer forwards the\n * whole row to `resolveAppServiceIsolation`, so a row type that omits the\n * authored isolation block describes a normalizer that silently drops it, and a\n * `string` frontendType is a closed vocabulary (`AppFrontendType`) re-opened at\n * a boundary that only ever receives parsed config.\n */\ntype NormalizableAppServiceRow = Pick<\n AppServiceDefinition,\n 'path' | 'serviceName' | 'defaultPort' | 'frontendType' | 'isolation'\n>;\n\n/**\n * apps-manager control-plane bootstrap protocol details shared by CLI callers\n * and apps-manager producers.\n */\nexport const APPS_MANAGER_ADMIN_SECRET_HEADER = 'X-Admin-Secret';\nexport const APPS_MANAGER_API_PREFIX = '/api/v1';\n\n/**\n * The apps-manager application-config read path (prefix-qualified) — the route the executable JWT/config\n * initialization postcondition authenticates through. The canonical route for CLI callers — the\n * `ApplicationInitializationVerificationService` (the `wildo local init` postcondition) imports it here so it\n * never pins the route independently. `@wildo-ai/platform-e2e-runner` RE-EXPOSES this exact constant (as\n * `APPS_MANAGER_APPLICATION_CONFIG_PATH`) for the platform e2e scenarios that reach only its barrel — one\n * definition here, no duplicate literal.\n */\nexport const APPS_MANAGER_APPLICATION_CONFIG_PATH = `${APPS_MANAGER_API_PREFIX}/apps-to-manager/application-config`;\n\nexport function buildAdminInitializeApplicationPath(appSlug: string): string {\n return `/admin/apps/${encodeURIComponent(appSlug)}/initialize`;\n}\n\n/**\n * Path builders for application WITHDRAWAL (#1556).\n *\n * Deregistering removes an application's cron schedule, marks its row and REVOKES every credential\n * minted for it (#1307); it destroys no data, which is why the pair is a plain admin verb rather than a\n * guarded one. Restoring clears the mark and re-mints those credentials with their recorded values — the\n * schedule comes back from the application's own code at its next boot.\n *\n * Declared HERE, beside the other admin paths, so the CLI and the controller cannot pin the route\n * independently and drift.\n */\nexport function buildAdminDeregisterApplicationPath(appSlug: string): string {\n return `/admin/apps/${encodeURIComponent(appSlug)}/deregister`;\n}\n\nexport function buildAdminApplicationResiduePath(appSlug: string): string {\n return `/admin/apps/${encodeURIComponent(appSlug)}/residue`;\n}\n\nexport function buildAdminRestoreApplicationPath(appSlug: string): string {\n return `/admin/apps/${encodeURIComponent(appSlug)}/restore`;\n}\n\n/**\n * Path builder for the managed-declaration reapply endpoint.\n *\n * See `AdminAppReapplyDeclarationRequestSchema` (in `bootstrap.schemas.ts`)\n * for the full contract semantics — what it does and what it deliberately\n * does NOT touch.\n */\nexport function buildAdminReapplyDeclarationPath(appSlug: string): string {\n return `/admin/apps/${encodeURIComponent(appSlug)}/reapply-declaration`;\n}\n\n/**\n * Stable action identifier reserved for the managed-declaration reapply\n * endpoint. Callers (notably the CI/CD admin rights workstream — Step 8)\n * should use this constant when granting permissions instead of hard-coding\n * the string, so the wiring survives any future identifier rename.\n *\n * The full action-identifier enum lives downstream of this constant and\n * will be introduced when Step 8 lands the permission grid.\n */\nexport const APPS_REAPPLY_DECLARATION_ACTION_ID = 'apps.reapply-declaration';\n\n/**\n * Query parameter naming WHICH runtime principal's bootstrap credentials to\n * return (Step 1 / F11). Absent ⇒ the application backend, which is both the\n * historical behaviour and the correct default: every existing caller wants the\n * backend, and a caller that forgets to name a principal gets the one identity\n * that certainly exists rather than an error.\n *\n * A query parameter rather than a path segment because the principal key already\n * contains a `:` (`minion:marketingScrapper`), which reads badly in a path and\n * would need double-encoding through the router.\n */\nexport const APP_BOOTSTRAP_PRINCIPAL_QUERY_PARAM = 'principal';\n\nexport function buildAppBootstrapCredentialsPath(\n appSlug: string,\n environment: RuntimeEnvironment,\n /**\n * A rendered principal key from `buildRuntimePrincipalKey`. Omit for the\n * application backend.\n */\n principalKey?: string,\n): string {\n const base = `/admin/apps/${encodeURIComponent(appSlug)}/credentials/${environment}`;\n return principalKey\n ? `${base}?${APP_BOOTSTRAP_PRINCIPAL_QUERY_PARAM}=${encodeURIComponent(principalKey)}`\n : base;\n}\n\nexport function buildAppWorkerBootstrapPath(workerName: string): string {\n return `/apps-to-manager/workers/${encodeURIComponent(workerName)}/bootstrap`;\n}\n\n/**\n * Build and validate the shared bootstrap credentials response envelope.\n * This keeps the response contract identical across apps-manager producers and CLI consumers.\n */\nexport function buildAppBootstrapCredentialsResponse(\n input: BuildAppBootstrapCredentialsResponseInput,\n): AppBootstrapCredentialsResponse {\n return AppBootstrapCredentialsResponseSchema.parse({\n success: true,\n appSlug: input.appSlug,\n environment: input.environment,\n credentials: {\n APPLICATION_ID: input.applicationId,\n PLATFORM_APPLICATION_PRIMARY_SECRET: input.primarySecret,\n PLATFORM_APPS_MANAGER_URL: input.appsManagerUrl,\n APPLICATION_ENV: input.environment,\n APPLICATION_SLUG: input.appSlug,\n },\n });\n}\n\nexport function buildAppWorkerBootstrapResponse(input: {\n appSlug: string;\n workerName: string;\n worker: ManagedWorkerDeclaration;\n publicKey: string;\n rotatedPublicKeys?: Array<{ kid: string; publicKey: string; notAfter?: Date }> | undefined;\n}): AppWorkerBootstrapResponse {\n return AppWorkerBootstrapResponseSchema.parse({\n appSlug: input.appSlug,\n workerName: input.workerName,\n worker: input.worker,\n jwt: {\n publicKey: input.publicKey,\n rotatedPublicKeys: input.rotatedPublicKeys,\n },\n });\n}\n\nexport interface NormalizedSaasBackendServiceDescriptor {\n key: string;\n path: string;\n serviceName: string;\n defaultPort?: number | undefined;\n /**\n * Effective container isolation — the authored `services.<key>.isolation`\n * merged with the kind-correct defaults by `resolveAppServiceIsolation`.\n * Consumed by the k8s manifest renderer and the compose app lane, which must\n * never re-derive it. Only the authorable knobs; the security floor is emitted\n * unconditionally and is deliberately not representable here.\n */\n isolation: RuntimeIsolation;\n}\n\nexport interface NormalizedSaasFrontendServiceDescriptor {\n key: string;\n path: string;\n serviceName: string;\n defaultPort?: number | undefined;\n frontendType: AppFrontendType;\n /**\n * Effective container isolation — the authored `services.<key>.isolation`\n * merged with the kind-correct defaults by `resolveAppServiceIsolation`.\n * Consumed by the k8s manifest renderer and the compose app lane, which must\n * never re-derive it. Only the authorable knobs; the security floor is emitted\n * unconditionally and is deliberately not representable here.\n */\n isolation: RuntimeIsolation;\n}\n\nexport interface NormalizedSaasRuntimeDescriptor {\n appSlug: string;\n appDisplayName: string;\n appDatabaseName?: string | undefined;\n /**\n * Authored `wildo.saas.config.dataServices.redis.keyPrefix`. When defined,\n * threads downstream into the per-app `.env` as `REDIS_KEY_PREFIX` and\n * becomes the canonical app-level Redis key namespace consumed by\n * `RedisService` (Slice 3.6).\n */\n redisKeyPrefix?: string | undefined;\n /**\n * Authored `wildo.saas.config.dataServices.s3.bucketPrefix`. When defined,\n * threads downstream into the per-app `.env` as `STORAGE_BUCKET_PREFIX`\n * and is prepended to every application object key by\n * `WildoManagedStorageProvider` (Slice 3.6). The actual MinIO bucket name\n * remains infra-controlled.\n */\n storageBucketPrefix?: string | undefined;\n requiresJavaBackendBase: boolean;\n backendServices: NormalizedSaasBackendServiceDescriptor[];\n frontendServices: NormalizedSaasFrontendServiceDescriptor[];\n libraries: Record<string, AppLibraryDefinition>;\n specifications?: { path: string } | undefined;\n managedDeclaration: AdminAppManagedDeclaration;\n firstAdminSeed?: AppBootstrapFirstAdminSeed | undefined;\n declaredModules: NonNullable<ApplicationModules>;\n moduleIds: string[];\n moduleIdsByService: Record<string, string[]>;\n}\n\nexport interface NormalizedLocalServiceAddressingDescriptor {\n host?: string | undefined;\n port?: number | undefined;\n url?: string | undefined;\n}\n\nexport function normalizeSaasModuleBindings(input: {\n services: Record<string, { serviceName: string }>;\n modules?: ApplicationModules | undefined;\n}) {\n const declaredModules = input.modules ?? {};\n\n return {\n declaredModules,\n moduleIds: getDeclaredApplicationModuleIds(declaredModules),\n moduleIdsByService: Object.fromEntries(\n Object.keys(input.services).map((serviceKey) => [\n serviceKey,\n getServiceBoundApplicationModuleIds(declaredModules, serviceKey),\n ]),\n ),\n };\n}\n\nexport function buildAdminAppManagedDeclaration(input: {\n name: string;\n slug: string;\n displayName: string;\n description?: string | undefined;\n type: 'saas';\n services: Record<string, Pick<NormalizableAppServiceRow, 'serviceName' | 'frontendType'>>;\n minions?: Record<string, {\n resourceAccess?: MinionResourceAccess;\n platformAccess?: MinionPlatformAccessCarried;\n mode?: 'always-up' | 'cron';\n schedule?: string;\n }> | undefined;\n workers?: Record<string, ManagedWorkerDeclaration> | undefined;\n engineCapabilities?: Record<string, EngineCapabilityActivationInput> | undefined;\n providers?: SaasConfigProvidersBlockInput | undefined;\n providerConfigurations?: ProviderConfigurationsInput | undefined;\n organizationTypes: OrganizationTypesConfigInput;\n systemsOfRecord?: SystemsOfRecordConfigInput | undefined;\n}): AdminAppManagedDeclaration {\n return AdminAppManagedDeclarationSchema.parse({\n app: {\n name: input.name,\n slug: input.slug,\n displayName: input.displayName,\n description: input.description,\n type: input.type,\n },\n frontendServices: Object.values(input.services)\n .filter((service) => service.frontendType !== undefined)\n .map((service) => ({\n serviceName: service.serviceName,\n frontendType: service.frontendType,\n })),\n minions: Object.fromEntries(\n Object.entries(input.minions ?? {}).map(([minionName, declaration]) => [\n minionName,\n {\n ...(declaration.resourceAccess ? { resourceAccess: declaration.resourceAccess } : {}),\n // Forwarded only when authored, like every sibling here: an absent\n // axis must stay absent rather than becoming an explicit empty\n // declaration downstream.\n ...(declaration.platformAccess ? { platformAccess: declaration.platformAccess } : {}),\n // KD-12 — only forward `mode` + `schedule` when present so the\n // declaration stays minimal for legacy / always-up minions.\n ...(declaration.mode !== undefined ? { mode: declaration.mode } : {}),\n ...(declaration.schedule !== undefined ? { schedule: declaration.schedule } : {}),\n },\n ]),\n ),\n workers: input.workers ?? {},\n engineCapabilities: input.engineCapabilities,\n providers: input.providers,\n providerConfigurations: input.providerConfigurations,\n organizationTypes: input.organizationTypes,\n systemsOfRecord: input.systemsOfRecord,\n });\n}\n\nexport function normalizeSaasRuntimeDescriptor(input: {\n name: string;\n slug: string;\n displayName: string;\n description?: string | undefined;\n type: 'saas';\n services: Record<string, NormalizableAppServiceRow>;\n minions?: Record<string, {\n resourceAccess?: MinionResourceAccess;\n platformAccess?: MinionPlatformAccessCarried;\n mode?: 'always-up' | 'cron';\n schedule?: string;\n }> | undefined;\n workers?: Record<string, ManagedWorkerDeclaration> | undefined;\n engineCapabilities?: Record<string, EngineCapabilityActivationInput> | undefined;\n providers?: SaasConfigProvidersBlockInput | undefined;\n providerConfigurations?: ProviderConfigurationsInput | undefined;\n organizationTypes: OrganizationTypesConfigInput;\n systemsOfRecord?: SystemsOfRecordConfigInput | undefined;\n dataServices?: AppDataServices | undefined;\n modules?: ApplicationModules | undefined;\n libraries?: Record<string, AppLibraryDefinition> | undefined;\n specifications?: { path: string } | undefined;\n bootstrap?: {\n firstAdmin?: AppBootstrapFirstAdminSeed | undefined;\n } | undefined;\n}): NormalizedSaasRuntimeDescriptor {\n // `isolation` is resolved HERE — the single point where a service row is read\n // and classified as backend or frontend — because the correct default depends\n // on exactly that classification (Node as `wildo` vs nginx as `nginx`). Two\n // renderers consume the result; resolving it per-renderer instead is how the\n // same row ends up running as different users in the k8s and compose lanes.\n const backendServices = Object.entries(input.services)\n .filter(([, service]) => service.frontendType === undefined)\n .map(([key, service]) => ({\n key,\n path: service.path,\n serviceName: service.serviceName,\n defaultPort: service.defaultPort,\n isolation: resolveAppServiceIsolation(service),\n }));\n\n const frontendServices = Object.entries(input.services)\n .filter(([, service]) => service.frontendType !== undefined)\n .map(([key, service]) => ({\n key,\n path: service.path,\n serviceName: service.serviceName,\n defaultPort: service.defaultPort,\n frontendType: service.frontendType!,\n isolation: resolveAppServiceIsolation(service),\n }));\n const normalizedModuleBindings = normalizeSaasModuleBindings({\n services: input.services,\n modules: input.modules,\n });\n const backendServiceKeys = backendServices.map((service) => service.key);\n\n return {\n appSlug: input.slug,\n appDisplayName: input.displayName,\n appDatabaseName: deriveAppDatabaseName(input.dataServices),\n redisKeyPrefix: input.dataServices?.redis?.keyPrefix,\n storageBucketPrefix: input.dataServices?.s3?.bucketPrefix,\n requiresJavaBackendBase: hasServiceBoundModuleWithSamlIntegration(\n normalizedModuleBindings.declaredModules,\n backendServiceKeys,\n ),\n backendServices,\n frontendServices,\n libraries: input.libraries ?? {},\n specifications: input.specifications,\n managedDeclaration: buildAdminAppManagedDeclaration({\n name: input.name,\n slug: input.slug,\n displayName: input.displayName,\n description: input.description,\n type: input.type,\n services: input.services,\n minions: input.minions,\n workers: input.workers,\n engineCapabilities: input.engineCapabilities,\n providers: input.providers,\n providerConfigurations: input.providerConfigurations,\n organizationTypes: input.organizationTypes,\n systemsOfRecord: input.systemsOfRecord,\n }),\n firstAdminSeed: input.bootstrap?.firstAdmin,\n declaredModules: normalizedModuleBindings.declaredModules,\n moduleIds: normalizedModuleBindings.moduleIds,\n moduleIdsByService: normalizedModuleBindings.moduleIdsByService,\n };\n}\n"]}
|
|
@@ -693,6 +693,7 @@ export declare const AdminAppInitializeResponseSchema: z.ZodObject<{
|
|
|
693
693
|
password: z.ZodString;
|
|
694
694
|
}, z.core.$strip>;
|
|
695
695
|
appDatabaseSeeding: z.ZodOptional<z.ZodEnum<typeof AppDatabaseSeedingOutcome>>;
|
|
696
|
+
declarationConvergedFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
696
697
|
}, z.core.$strip>;
|
|
697
698
|
/**
|
|
698
699
|
* Shared admin request payload for reapplying the `wildo.saas.config.ts`
|
|
@@ -702,14 +703,20 @@ export declare const AdminAppInitializeResponseSchema: z.ZodObject<{
|
|
|
702
703
|
* Contract semantics — what this endpoint owns:
|
|
703
704
|
* - Re-source the declaration-managed slices of `Wildo_Application_Config`
|
|
704
705
|
* from the new declaration: `appIdentity` display fields,
|
|
705
|
-
* `frontendServices` seed, `
|
|
706
|
-
* `providerConfigurations
|
|
706
|
+
* `frontendServices` seed, `minions`, `workers`, `engineCapabilities`,
|
|
707
|
+
* `providers`, `providerConfigurations`, `organizationTypes` and
|
|
708
|
+
* `systemsOfRecord`.
|
|
707
709
|
* - Return a `updatedFields` diff so the caller can surface what changed.
|
|
710
|
+
* - When `minions` changed (and only then), reconcile the minions'
|
|
711
|
+
* runtime-principal backing-service credentials from the new declaration —
|
|
712
|
+
* mint a new minion's, revoke a removed one's. The declaration is the
|
|
713
|
+
* revocation authority, so the operation that changes it is the one that
|
|
714
|
+
* brings credentials back in line. A dry run never reaches this step.
|
|
708
715
|
*
|
|
709
716
|
* Contract semantics — what this endpoint deliberately does NOT touch:
|
|
710
|
-
* -
|
|
711
|
-
* passwords). Those live in
|
|
712
|
-
* by initialize / rotate flows.
|
|
717
|
+
* - Any other credential (DB users, JWT private keys, session secrets,
|
|
718
|
+
* admin passwords, a new WORKER's principal secret). Those live in
|
|
719
|
+
* `Wildo_Application_Secrets` and are owned by initialize / rotate flows.
|
|
713
720
|
* - Database / infrastructure provisioning. Those are owned by
|
|
714
721
|
* `/admin/apps/:appSlug/initialize` and the platform-init flow.
|
|
715
722
|
* - K8s endpoints. Those are owned by
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"bootstrap.schemas.d.ts","sourceRoot":"","sources":["../../../../src/bootstrap/bootstrap.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,mCAAmC,EAExC,KAAK,sBAAsB,EAE3B,KAAK,uBAAuB,EAE5B,KAAK,q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,CAAC;CACrC;AAED;;;GAGG;AACH,eAAO,MAAM,qCAAqC,EAW5C,CAAC,CAAC,OAAO,CAAC,+BAA+B,CAAC,CAAC;AAEjD,MAAM,WAAW,iCAAiC;IAChD,kBAAkB,EAAE,0BAA0B,CAAC;IAC/C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;iBA6B3C,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,uCAAuC,EAG9C,CAAC,CAAC,OAAO,CAAC,iCAAiC,CAAC,CAAC;AAEnD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,wCAAwC;;;;;;iBAenD,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AACpG,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1F,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1F,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC"}
|
|
@@ -600,6 +600,16 @@ export const AdminAppInitializeResponseSchema = z.object({
|
|
|
600
600
|
* so, never as `SEEDED`.
|
|
601
601
|
*/
|
|
602
602
|
appDatabaseSeeding: z.enum(AppDatabaseSeedingOutcome).optional(),
|
|
603
|
+
/**
|
|
604
|
+
* The declaration slices this initialization applied to the stored application config (the
|
|
605
|
+
* `updatedFields` of the declaration reapply init runs unconditionally); empty when the stored
|
|
606
|
+
* config already matched `wildo.saas.config.ts`.
|
|
607
|
+
*
|
|
608
|
+
* What lets `wildo local dev` NAME the edit it applied instead of applying it silently.
|
|
609
|
+
* OPTIONAL so a CLI can parse a response from an apps-manager that predates the field; absence means
|
|
610
|
+
* "not reported", never "nothing changed".
|
|
611
|
+
*/
|
|
612
|
+
declarationConvergedFields: z.array(z.string()).optional(),
|
|
603
613
|
});
|
|
604
614
|
/**
|
|
605
615
|
* Shared admin request payload for reapplying the `wildo.saas.config.ts`
|
|
@@ -609,14 +619,20 @@ export const AdminAppInitializeResponseSchema = z.object({
|
|
|
609
619
|
* Contract semantics — what this endpoint owns:
|
|
610
620
|
* - Re-source the declaration-managed slices of `Wildo_Application_Config`
|
|
611
621
|
* from the new declaration: `appIdentity` display fields,
|
|
612
|
-
* `frontendServices` seed, `
|
|
613
|
-
* `providerConfigurations
|
|
622
|
+
* `frontendServices` seed, `minions`, `workers`, `engineCapabilities`,
|
|
623
|
+
* `providers`, `providerConfigurations`, `organizationTypes` and
|
|
624
|
+
* `systemsOfRecord`.
|
|
614
625
|
* - Return a `updatedFields` diff so the caller can surface what changed.
|
|
626
|
+
* - When `minions` changed (and only then), reconcile the minions'
|
|
627
|
+
* runtime-principal backing-service credentials from the new declaration —
|
|
628
|
+
* mint a new minion's, revoke a removed one's. The declaration is the
|
|
629
|
+
* revocation authority, so the operation that changes it is the one that
|
|
630
|
+
* brings credentials back in line. A dry run never reaches this step.
|
|
615
631
|
*
|
|
616
632
|
* Contract semantics — what this endpoint deliberately does NOT touch:
|
|
617
|
-
* -
|
|
618
|
-
* passwords). Those live in
|
|
619
|
-
* by initialize / rotate flows.
|
|
633
|
+
* - Any other credential (DB users, JWT private keys, session secrets,
|
|
634
|
+
* admin passwords, a new WORKER's principal secret). Those live in
|
|
635
|
+
* `Wildo_Application_Secrets` and are owned by initialize / rotate flows.
|
|
620
636
|
* - Database / infrastructure provisioning. Those are owned by
|
|
621
637
|
* `/admin/apps/:appSlug/initialize` and the platform-init flow.
|
|
622
638
|
* - K8s endpoints. Those are owned by
|