@wildo-ai/platform-config-lib 1.1.4 → 1.1.5
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/bootstrap/application-backend-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap-planner.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.contracts.d.ts +23 -1
- package/dist/esm/bootstrap/bootstrap.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.contracts.js +24 -0
- package/dist/esm/bootstrap/bootstrap.contracts.js.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts +70 -1
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.js +55 -4
- package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts +12 -0
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.js +12 -0
- package/dist/esm/bootstrap/platform-runtime-env.contracts.js.map +1 -1
- package/dist/esm/bootstrap/runtime-backing-service-access.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-network-policy.d.ts.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-principal.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-topology.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/wildo-owner-organization.contracts.d.ts +29 -0
- package/dist/esm/bootstrap/wildo-owner-organization.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/wildo-owner-organization.contracts.js +39 -0
- 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/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 +40 -0
- package/dist/esm/lockfile/build-parallelism.d.ts.map +1 -0
- package/dist/esm/lockfile/build-parallelism.js +64 -0
- package/dist/esm/lockfile/build-parallelism.js.map +1 -0
- package/dist/esm/lockfile/lockfile-io.d.ts.map +1 -1
- package/dist/esm/lockfile/materialize-infra-section.d.ts +1 -1
- package/dist/esm/lockfile/materialize-infra-section.d.ts.map +1 -1
- package/dist/esm/lockfile/materialize-infra-section.js +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/define-framework-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-infra-env-config.d.ts +899 -15
- package/dist/esm/project-config/define-infra-env-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-infra-env-config.js +397 -16
- 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 +1 -2
- package/dist/esm/project-config/define-minion-config.js.map +1 -1
- package/dist/esm/project-config/define-saas-config.d.ts +90 -25
- package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-saas-config.js +165 -12
- 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/hosted-infra-env-config.d.ts +59 -0
- package/dist/esm/project-config/hosted-infra-env-config.d.ts.map +1 -0
- package/dist/esm/project-config/hosted-infra-env-config.js +187 -0
- package/dist/esm/project-config/hosted-infra-env-config.js.map +1 -0
- package/dist/esm/project-config/index.d.ts +3 -0
- package/dist/esm/project-config/index.d.ts.map +1 -1
- package/dist/esm/project-config/index.js +3 -0
- package/dist/esm/project-config/index.js.map +1 -1
- package/dist/esm/project-config/loader.d.ts +24 -0
- package/dist/esm/project-config/loader.d.ts.map +1 -1
- package/dist/esm/project-config/loader.js +114 -1
- package/dist/esm/project-config/loader.js.map +1 -1
- package/dist/esm/project-config/provider-catalog-types.d.ts.map +1 -1
- package/dist/esm/project-config/provider-companion-discovery.d.ts +32 -0
- package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -1
- package/dist/esm/project-config/provider-companion-discovery.js +82 -12
- package/dist/esm/project-config/provider-companion-discovery.js.map +1 -1
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts +71 -22
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -1
- package/dist/esm/project-config/provider-runtime-artifacts.js +135 -13
- 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-modules.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/application-modules.utils.d.ts.map +1 -1
- package/dist/esm/project-config/shared/auth.schemas.d.ts +14 -35
- package/dist/esm/project-config/shared/auth.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/auth.schemas.js +14 -35
- package/dist/esm/project-config/shared/auth.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/backing-services.schemas.d.ts +17 -12
- package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/backing-services.schemas.js +17 -12
- 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.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp-defaults.d.ts.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 +11 -12
- package/dist/esm/project-config/shared/csp.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp.schemas.js +11 -12
- 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/env-example-defaults.d.ts.map +1 -1
- package/dist/esm/project-config/shared/environment.schemas.d.ts +152 -12
- package/dist/esm/project-config/shared/environment.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/environment.schemas.js +186 -9
- package/dist/esm/project-config/shared/environment.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/infra-providers.schemas.d.ts +5 -6
- package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/infra-providers.schemas.js +0 -3
- 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/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 +77 -47
- 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 +114 -52
- package/dist/esm/project-config/shared/minion-resource-access.validation.js.map +1 -1
- package/dist/esm/project-config/shared/platform-services.schemas.d.ts +50 -0
- package/dist/esm/project-config/shared/platform-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/platform-services.schemas.js +57 -0
- package/dist/esm/project-config/shared/platform-services.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/platform-storage.schemas.d.ts +35 -0
- package/dist/esm/project-config/shared/platform-storage.schemas.d.ts.map +1 -0
- package/dist/esm/project-config/shared/platform-storage.schemas.js +37 -0
- package/dist/esm/project-config/shared/platform-storage.schemas.js.map +1 -0
- package/dist/esm/project-config/shared/schema-version.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/service-definitions.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts +81 -0
- package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts.map +1 -0
- package/dist/esm/project-config/shared/systems-of-record-env.schemas.js +74 -0
- package/dist/esm/project-config/shared/systems-of-record-env.schemas.js.map +1 -0
- package/dist/esm/registry/artifact-domain.schemas.d.ts +1 -1
- package/dist/esm/registry/artifact-domain.schemas.d.ts.map +1 -1
- package/dist/esm/registry/companion-api.schemas.d.ts.map +1 -1
- package/dist/esm/registry/digest.schemas.d.ts.map +1 -1
- package/dist/esm/registry/index.d.ts.map +1 -1
- package/dist/esm/registry/lockfile-modules-section.schemas.d.ts.map +1 -1
- package/dist/esm/registry/module-artifact.schemas.d.ts.map +1 -1
- package/dist/esm/registry/module-manifest.schemas.d.ts +10 -16
- package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -1
- package/dist/esm/registry/module-manifest.schemas.js +14 -20
- package/dist/esm/registry/module-manifest.schemas.js.map +1 -1
- package/dist/esm/registry/registry-config.schemas.d.ts.map +1 -1
- package/dist/esm/registry/registry-section-schemas.constants.d.ts.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-secrets.schemas.d.ts +12 -1
- package/dist/esm/schemas/framework-secrets.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/framework-secrets.schemas.js +14 -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-secrets.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/platform-config.schemas.d.ts.map +1 -1
- package/dist/esm/workspace-scope/application-subject-manifest.d.ts.map +1 -1
- package/dist/esm/workspace-scope/index.d.ts.map +1 -1
- package/dist/esm/workspace-scope/resolve-homes.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts +4 -3
- package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-homes.schemas.js +6 -5
- package/dist/esm/workspace-scope/workspace-homes.schemas.js.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope.schemas.d.ts +15 -6
- package/dist/esm/workspace-scope/workspace-scope.schemas.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope.schemas.js +23 -9
- 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":"schema-version.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"schema-version.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/project-config/shared/schema-version.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB,aAGpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-definitions.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"service-definitions.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/project-config/shared/service-definitions.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;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+
* The saas config says WHAT the application reads (`systemsOfRecord.<name>`: a vendor, a dialect);
|
|
5
|
+
* this says WHERE that instance is in THIS environment, and `secrets.json` says with what. The same
|
|
6
|
+
* split `applicationDatabase` already makes between selection and substrate, for the same reason: an
|
|
7
|
+
* address is environment-specific and a declaration is not.
|
|
8
|
+
*
|
|
9
|
+
* ## Two authored shapes, and the second one is the point
|
|
10
|
+
*
|
|
11
|
+
* ```ts
|
|
12
|
+
* systemsOfRecord: {
|
|
13
|
+
* odoo: { address: { baseUrl: 'https://acme.odoo.com', database: 'acme', login: 'bot@acme.com' } },
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* systemsOfRecord: {
|
|
19
|
+
* odoo: { enabled: false }, // this environment has no access to the ERP
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* A developer laptop and a staging with no ERP are the ordinary case, not an edge (#1055 E3), and
|
|
24
|
+
* they need a way to SAY so. Without one, "no access here" and "somebody forgot to author the
|
|
25
|
+
* address" are the same observation — and they need opposite behaviours: the first boots and refuses
|
|
26
|
+
* reads with a clear code, the second refuses at `wildo config sync` and again at boot. So silence is
|
|
27
|
+
* never a declaration: an instance the saas config declares and this file omits entirely is refused.
|
|
28
|
+
*
|
|
29
|
+
* ## What this file deliberately does NOT know
|
|
30
|
+
*
|
|
31
|
+
* Which slots a vendor NEEDS. That is the facet's, and the facet is not in scope here — the saas
|
|
32
|
+
* config and the infra env config parse independently. Completeness is therefore checked at the
|
|
33
|
+
* SEAMS where both are visible: `wildo config sync` and the backend startup validator. What is
|
|
34
|
+
* checked here is only the shape and the slot-slug charset, because a slug outside it could not
|
|
35
|
+
* derive a parseable variable name.
|
|
36
|
+
*
|
|
37
|
+
* ## Addresses are not secrets
|
|
38
|
+
*
|
|
39
|
+
* A base URL is registration-scoped, and a database name and a login identify WHICH deployment and
|
|
40
|
+
* WHICH user rather than proving anything. They belong in the authored infra file, where they are
|
|
41
|
+
* diffable and reviewable. The credential lives in `secrets.json`, keyed by the same derived name.
|
|
42
|
+
*/
|
|
43
|
+
import { z } from 'zod';
|
|
44
|
+
/**
|
|
45
|
+
* One instance's address in one environment.
|
|
46
|
+
*
|
|
47
|
+
* A union rather than one object with two optional halves, so the two states cannot be authored at
|
|
48
|
+
* once and neither can be half-written: an entry is either an address or a declaration of absence.
|
|
49
|
+
*/
|
|
50
|
+
export declare const WildoSystemOfRecordEnvSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
51
|
+
/**
|
|
52
|
+
* This environment has NO access to the instance. Reads on a bound resource refuse with a stable
|
|
53
|
+
* code, a scheduled pipeline is not dispatched, and the backend still boots — an application
|
|
54
|
+
* whose ERP is simply not present in staging must still run.
|
|
55
|
+
*/
|
|
56
|
+
enabled: z.ZodLiteral<false>;
|
|
57
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
58
|
+
/**
|
|
59
|
+
* The vendor's non-secret address slots, keyed by the facet's slug (Odoo: `baseUrl`, `database`,
|
|
60
|
+
* `login`). Whether the set is COMPLETE is the seam's question, not this schema's.
|
|
61
|
+
*/
|
|
62
|
+
address: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
63
|
+
}, z.core.$strict>]>;
|
|
64
|
+
export type WildoSystemOfRecordEnv = z.infer<typeof WildoSystemOfRecordEnvSchema>;
|
|
65
|
+
/** Every instance's address in this environment, keyed by the instance name the saas config declares. */
|
|
66
|
+
export declare const WildoSystemsOfRecordEnvConfigSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
67
|
+
/**
|
|
68
|
+
* This environment has NO access to the instance. Reads on a bound resource refuse with a stable
|
|
69
|
+
* code, a scheduled pipeline is not dispatched, and the backend still boots — an application
|
|
70
|
+
* whose ERP is simply not present in staging must still run.
|
|
71
|
+
*/
|
|
72
|
+
enabled: z.ZodLiteral<false>;
|
|
73
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
74
|
+
/**
|
|
75
|
+
* The vendor's non-secret address slots, keyed by the facet's slug (Odoo: `baseUrl`, `database`,
|
|
76
|
+
* `login`). Whether the set is COMPLETE is the seam's question, not this schema's.
|
|
77
|
+
*/
|
|
78
|
+
address: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
79
|
+
}, z.core.$strict>]>>;
|
|
80
|
+
export type WildoSystemsOfRecordEnvConfig = z.infer<typeof WildoSystemsOfRecordEnvConfigSchema>;
|
|
81
|
+
//# sourceMappingURL=systems-of-record-env.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"systems-of-record-env.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/project-config/shared/systems-of-record-env.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B;IAErC;;;;OAIG;;;IAIH;;;OAGG;;oBAUL,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,yGAAyG;AACzG,eAAO,MAAM,mCAAmC;IAzB5C;;;;OAIG;;;IAIH;;;OAGG;;qBAcqG,CAAC;AAC7G,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WHERE each declared system of record lives, per ENVIRONMENT (#1055 §2).
|
|
3
|
+
*
|
|
4
|
+
* The saas config says WHAT the application reads (`systemsOfRecord.<name>`: a vendor, a dialect);
|
|
5
|
+
* this says WHERE that instance is in THIS environment, and `secrets.json` says with what. The same
|
|
6
|
+
* split `applicationDatabase` already makes between selection and substrate, for the same reason: an
|
|
7
|
+
* address is environment-specific and a declaration is not.
|
|
8
|
+
*
|
|
9
|
+
* ## Two authored shapes, and the second one is the point
|
|
10
|
+
*
|
|
11
|
+
* ```ts
|
|
12
|
+
* systemsOfRecord: {
|
|
13
|
+
* odoo: { address: { baseUrl: 'https://acme.odoo.com', database: 'acme', login: 'bot@acme.com' } },
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* systemsOfRecord: {
|
|
19
|
+
* odoo: { enabled: false }, // this environment has no access to the ERP
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* A developer laptop and a staging with no ERP are the ordinary case, not an edge (#1055 E3), and
|
|
24
|
+
* they need a way to SAY so. Without one, "no access here" and "somebody forgot to author the
|
|
25
|
+
* address" are the same observation — and they need opposite behaviours: the first boots and refuses
|
|
26
|
+
* reads with a clear code, the second refuses at `wildo config sync` and again at boot. So silence is
|
|
27
|
+
* never a declaration: an instance the saas config declares and this file omits entirely is refused.
|
|
28
|
+
*
|
|
29
|
+
* ## What this file deliberately does NOT know
|
|
30
|
+
*
|
|
31
|
+
* Which slots a vendor NEEDS. That is the facet's, and the facet is not in scope here — the saas
|
|
32
|
+
* config and the infra env config parse independently. Completeness is therefore checked at the
|
|
33
|
+
* SEAMS where both are visible: `wildo config sync` and the backend startup validator. What is
|
|
34
|
+
* checked here is only the shape and the slot-slug charset, because a slug outside it could not
|
|
35
|
+
* derive a parseable variable name.
|
|
36
|
+
*
|
|
37
|
+
* ## Addresses are not secrets
|
|
38
|
+
*
|
|
39
|
+
* A base URL is registration-scoped, and a database name and a login identify WHICH deployment and
|
|
40
|
+
* WHICH user rather than proving anything. They belong in the authored infra file, where they are
|
|
41
|
+
* diffable and reviewable. The credential lives in `secrets.json`, keyed by the same derived name.
|
|
42
|
+
*/
|
|
43
|
+
import { z } from 'zod';
|
|
44
|
+
import { SYSTEM_OF_RECORD_SLOT_SLUG_PATTERN } from '@wildo-ai/saas-models';
|
|
45
|
+
/**
|
|
46
|
+
* One instance's address in one environment.
|
|
47
|
+
*
|
|
48
|
+
* A union rather than one object with two optional halves, so the two states cannot be authored at
|
|
49
|
+
* once and neither can be half-written: an entry is either an address or a declaration of absence.
|
|
50
|
+
*/
|
|
51
|
+
export const WildoSystemOfRecordEnvSchema = z.union([
|
|
52
|
+
z.strictObject({
|
|
53
|
+
/**
|
|
54
|
+
* This environment has NO access to the instance. Reads on a bound resource refuse with a stable
|
|
55
|
+
* code, a scheduled pipeline is not dispatched, and the backend still boots — an application
|
|
56
|
+
* whose ERP is simply not present in staging must still run.
|
|
57
|
+
*/
|
|
58
|
+
enabled: z.literal(false),
|
|
59
|
+
}),
|
|
60
|
+
z.strictObject({
|
|
61
|
+
/**
|
|
62
|
+
* The vendor's non-secret address slots, keyed by the facet's slug (Odoo: `baseUrl`, `database`,
|
|
63
|
+
* `login`). Whether the set is COMPLETE is the seam's question, not this schema's.
|
|
64
|
+
*/
|
|
65
|
+
address: z
|
|
66
|
+
.record(z.string().regex(SYSTEM_OF_RECORD_SLOT_SLUG_PATTERN, 'A slot slug is lowerCamelCase with no separators.'), z.string().min(1))
|
|
67
|
+
.refine((address) => Object.keys(address).length > 0, {
|
|
68
|
+
error: 'An address with no slots says nothing. Author the vendor\'s slots, or declare `{ enabled: false }`.',
|
|
69
|
+
}),
|
|
70
|
+
}),
|
|
71
|
+
]);
|
|
72
|
+
/** Every instance's address in this environment, keyed by the instance name the saas config declares. */
|
|
73
|
+
export const WildoSystemsOfRecordEnvConfigSchema = z.record(z.string().min(1), WildoSystemOfRecordEnvSchema);
|
|
74
|
+
//# sourceMappingURL=systems-of-record-env.schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"systems-of-record-env.schemas.js","sourceRoot":"","sources":["../../../../../src/project-config/shared/systems-of-record-env.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kCAAkC,EAAE,MAAM,uBAAuB,CAAC;AAE3E;;;;;GAKG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC;IAClD,CAAC,CAAC,YAAY,CAAC;QACb;;;;WAIG;QACH,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;KAC1B,CAAC;IACF,CAAC,CAAC,YAAY,CAAC;QACb;;;WAGG;QACH,OAAO,EAAE,CAAC;aACP,MAAM,CACL,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kCAAkC,EAAE,mDAAmD,CAAC,EACzG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAClB;aACA,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YACpD,KAAK,EAAE,qGAAqG;SAC7G,CAAC;KACL,CAAC;CACH,CAAC,CAAC;AAGH,yGAAyG;AACzG,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,4BAA4B,CAAC,CAAC","sourcesContent":["/**\n * WHERE each declared system of record lives, per ENVIRONMENT (#1055 §2).\n *\n * The saas config says WHAT the application reads (`systemsOfRecord.<name>`: a vendor, a dialect);\n * this says WHERE that instance is in THIS environment, and `secrets.json` says with what. The same\n * split `applicationDatabase` already makes between selection and substrate, for the same reason: an\n * address is environment-specific and a declaration is not.\n *\n * ## Two authored shapes, and the second one is the point\n *\n * ```ts\n * systemsOfRecord: {\n * odoo: { address: { baseUrl: 'https://acme.odoo.com', database: 'acme', login: 'bot@acme.com' } },\n * }\n * ```\n *\n * ```ts\n * systemsOfRecord: {\n * odoo: { enabled: false }, // this environment has no access to the ERP\n * }\n * ```\n *\n * A developer laptop and a staging with no ERP are the ordinary case, not an edge (#1055 E3), and\n * they need a way to SAY so. Without one, \"no access here\" and \"somebody forgot to author the\n * address\" are the same observation — and they need opposite behaviours: the first boots and refuses\n * reads with a clear code, the second refuses at `wildo config sync` and again at boot. So silence is\n * never a declaration: an instance the saas config declares and this file omits entirely is refused.\n *\n * ## What this file deliberately does NOT know\n *\n * Which slots a vendor NEEDS. That is the facet's, and the facet is not in scope here — the saas\n * config and the infra env config parse independently. Completeness is therefore checked at the\n * SEAMS where both are visible: `wildo config sync` and the backend startup validator. What is\n * checked here is only the shape and the slot-slug charset, because a slug outside it could not\n * derive a parseable variable name.\n *\n * ## Addresses are not secrets\n *\n * A base URL is registration-scoped, and a database name and a login identify WHICH deployment and\n * WHICH user rather than proving anything. They belong in the authored infra file, where they are\n * diffable and reviewable. The credential lives in `secrets.json`, keyed by the same derived name.\n */\nimport { z } from 'zod';\nimport { SYSTEM_OF_RECORD_SLOT_SLUG_PATTERN } from '@wildo-ai/saas-models';\n\n/**\n * One instance's address in one environment.\n *\n * A union rather than one object with two optional halves, so the two states cannot be authored at\n * once and neither can be half-written: an entry is either an address or a declaration of absence.\n */\nexport const WildoSystemOfRecordEnvSchema = z.union([\n z.strictObject({\n /**\n * This environment has NO access to the instance. Reads on a bound resource refuse with a stable\n * code, a scheduled pipeline is not dispatched, and the backend still boots — an application\n * whose ERP is simply not present in staging must still run.\n */\n enabled: z.literal(false),\n }),\n z.strictObject({\n /**\n * The vendor's non-secret address slots, keyed by the facet's slug (Odoo: `baseUrl`, `database`,\n * `login`). Whether the set is COMPLETE is the seam's question, not this schema's.\n */\n address: z\n .record(\n z.string().regex(SYSTEM_OF_RECORD_SLOT_SLUG_PATTERN, 'A slot slug is lowerCamelCase with no separators.'),\n z.string().min(1),\n )\n .refine((address) => Object.keys(address).length > 0, {\n error: 'An address with no slots says nothing. Author the vendor\\'s slots, or declare `{ enabled: false }`.',\n }),\n }),\n]);\nexport type WildoSystemOfRecordEnv = z.infer<typeof WildoSystemOfRecordEnvSchema>;\n\n/** Every instance's address in this environment, keyed by the instance name the saas config declares. */\nexport const WildoSystemsOfRecordEnvConfigSchema = z.record(z.string().min(1), WildoSystemOfRecordEnvSchema);\nexport type WildoSystemsOfRecordEnvConfig = z.infer<typeof WildoSystemsOfRecordEnvConfigSchema>;\n"]}
|
|
@@ -27,8 +27,8 @@ export declare const RegistryApiKeyScope: {
|
|
|
27
27
|
readonly ADMIN: "admin";
|
|
28
28
|
};
|
|
29
29
|
export declare const RegistryApiKeyScopeSchema: z.ZodEnum<{
|
|
30
|
-
read: "read";
|
|
31
30
|
publish: "publish";
|
|
31
|
+
read: "read";
|
|
32
32
|
admin: "admin";
|
|
33
33
|
}>;
|
|
34
34
|
export type RegistryApiKeyScope = (typeof REGISTRY_API_KEY_SCOPE_VALUES)[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact-domain.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"artifact-domain.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/artifact-domain.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,QAAA,MAAM,mCAAmC,mCAAoC,CAAC;AAE9E,eAAO,MAAM,0BAA0B;IACrC,yDAAyD;;IAEzD,wCAAwC;;CAEhC,CAAC;AACX,eAAO,MAAM,gCAAgC;;;EAA8C,CAAC;AAC5F,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,mCAAmC,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,QAAA,MAAM,6BAA6B,uCAAwC,CAAC;AAE5E,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC;AACX,eAAO,MAAM,yBAAyB;;;;EAAwC,CAAC;AAC/E,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,6BAA6B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjF;;;;GAIG;AACH,eAAO,MAAM,gCAAgC;IAC3C,qEAAqE;;;;;IAErE;;;OAGG;;kBAEH,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companion-api.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"companion-api.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/companion-api.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;;;;EAKvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAIlF,eAAO,MAAM,4BAA4B;IACvC,qCAAqC;;IAErC;;;;OAIG;;IAEH,yEAAyE;;IAEzE,uEAAuE;;IAEvE,6CAA6C;;IAE7C,yCAAyC;;IAEzC,qDAAqD;;kBAErD,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAIlF,eAAO,MAAM,2BAA2B;;IAEtC,6DAA6D;;;;kBAI7D,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAIhF,eAAO,MAAM,2BAA2B;;kBAEtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAIhF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,4BAA4B;;;;;iBAKvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,4BAA4B;IACvC,0CAA0C;;IAE1C,iEAAiE;;IAEjE,iCAAiC;;IAEjC,+BAA+B;;IAE/B,kEAAkE;;kBAElE,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAIlF;;;;GAIG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;8BA2B5C,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE5F,eAAO,MAAM,yBAAyB;;IAEpC,6DAA6D;;IAE7D,yEAAyE;;;;;;;;;;;;;;;;;;;;IAEzE,iCAAiC;;kBAEjC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;;;;CAK5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"digest.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"digest.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/digest.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,aAE0C,CAAC;AAC1E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/registry/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sCAAsC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lockfile-modules-section.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"lockfile-modules-section.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/lockfile-modules-section.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC;;;;EAAyC,CAAC;AACzF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F;;;GAGG;AACH,eAAO,MAAM,8BAA8B;IACzC,oEAAoE;;IAEpE,uEAAuE;;IAEvE,wEAAwE;;IAExE,uDAAuD;;IAEvD,gDAAgD;;IAEhD,oEAAoE;;IAEpE;;;;;OAKG;;IAEH,sDAAsD;;IAEtD,gEAAgE;;IAEhE,oDAAoD;;;;;;kBAEpD,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC;;QAnC3C,oEAAoE;;QAEpE,uEAAuE;;QAEvE,wEAAwE;;QAExE,uDAAuD;;QAEvD,gDAAgD;;QAEhD,oEAAoE;;QAEpE;;;;;WAKG;;QAEH,sDAAsD;;QAEtD,gEAAgE;;QAEhE,oDAAoD;;;;;;;kBAcpD,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-artifact.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"module-artifact.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/module-artifact.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIpC,iEAAiE;;IAEjE,4DAA4D;;IAE5D,gEAAgE;;;IAGhE;;;;;;;OAOG;;IAEH,6EAA6E;;;IAG7E;;;;OAIG;;kBAEH,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -36,7 +36,7 @@ export type ModuleManifestModuleDependencies = z.infer<typeof ModuleManifestModu
|
|
|
36
36
|
* `dependsOn.npm.dependencies` / `peerDependencies` — npm packages
|
|
37
37
|
* the installed module imports at runtime. Install surfaces these
|
|
38
38
|
* to the operator but does not edit `package.json` automatically
|
|
39
|
-
*
|
|
39
|
+
* or install dependencies. The operator chooses the consuming package (KD-13).
|
|
40
40
|
*/
|
|
41
41
|
export declare const ModuleManifestNpmDependenciesSchema: z.ZodObject<{
|
|
42
42
|
dependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -44,17 +44,10 @@ export declare const ModuleManifestNpmDependenciesSchema: z.ZodObject<{
|
|
|
44
44
|
}, z.core.$strict>;
|
|
45
45
|
export type ModuleManifestNpmDependencies = z.infer<typeof ModuleManifestNpmDependenciesSchema>;
|
|
46
46
|
/**
|
|
47
|
-
* `dependsOn.capabilities` —
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* Held as a free-form `string` array because the canonical capability
|
|
53
|
-
* vocabulary lives in `@wildo-ai/saas-models`'s
|
|
54
|
-
* `EngineCapability` enum. Re-importing that enum here would form
|
|
55
|
-
* a `platform-config-lib → saas-models` cycle for a string-list use
|
|
56
|
-
* case — Phase 5+ resolves capability names at runtime against the
|
|
57
|
-
* registry it does have access to.
|
|
47
|
+
* `dependsOn.capabilities` — required EngineCapability names. Adoption validates
|
|
48
|
+
* each name against the canonical enum and requires enabled:true in the host's
|
|
49
|
+
* authored engineCapabilities. This proves declared activation, not provider
|
|
50
|
+
* health. Strings remain the artifact format; the CLI performs host comparison.
|
|
58
51
|
*/
|
|
59
52
|
export declare const ModuleManifestCapabilityDependenciesSchema: z.ZodArray<z.ZodString>;
|
|
60
53
|
export type ModuleManifestCapabilityDependencies = z.infer<typeof ModuleManifestCapabilityDependenciesSchema>;
|
|
@@ -70,7 +63,9 @@ export type ModuleManifestDependencies = z.infer<typeof ModuleManifestDependenci
|
|
|
70
63
|
/**
|
|
71
64
|
* Engine compatibility — the framework version range this module
|
|
72
65
|
* targets. Install hard-fails by default if the host app's framework
|
|
73
|
-
* version is outside the range.
|
|
66
|
+
* version is outside the range. Every installed saas-models copy reached from
|
|
67
|
+
* application workspace framework dependencies must satisfy it; desired pins
|
|
68
|
+
* and the running CLI version are not installed application evidence.
|
|
74
69
|
*/
|
|
75
70
|
export declare const ModuleManifestEngineSchema: z.ZodObject<{
|
|
76
71
|
framework: z.ZodString;
|
|
@@ -99,9 +94,8 @@ export type ModuleManifestBoundaries = z.infer<typeof ModuleManifestBoundariesSc
|
|
|
99
94
|
* Top-level manifest. Stored at `wildo.module.json` inside every
|
|
100
95
|
* artifact zip and at the registry server alongside its version row.
|
|
101
96
|
*
|
|
102
|
-
* `id` semantics: `<
|
|
103
|
-
*
|
|
104
|
-
* the domain. The id is reused as the lockfile entry key
|
|
97
|
+
* `id` semantics: `<scope>/<name>` (e.g. `acme/billing`), separate
|
|
98
|
+
* from the registry domain (e.g. `internal`). The id is reused as the lockfile entry key
|
|
105
99
|
* (`sections.modules.installed[<id>]`).
|
|
106
100
|
*/
|
|
107
101
|
export declare const ModuleManifestSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-manifest.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"module-manifest.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/module-manifest.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,QACwJ,CAAC;AACxL,eAAO,MAAM,iBAAiB,aAGK,CAAC;AAGpC;;;;;GAKG;AACH,eAAO,MAAM,sCAAsC,uCAA2C,CAAC;AAC/F,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAEtG;;;;;GAKG;AACH,eAAO,MAAM,mCAAmC;;;kBAG9C,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEhG;;;;;GAKG;AACH,eAAO,MAAM,0CAA0C,yBAA6B,CAAC;AACrF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0CAA0C,CAAC,CAAC;AAE9G,eAAO,MAAM,gCAAgC;;;;;;;kBAO3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B;;kBAErC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAiC9E;;;;;;;;;GASG;AACH,eAAO,MAAM,8BAA8B;;;;;;;kBAOzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;kCAeT,CAAC;AACzB,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import { z } from 'zod';
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
20
|
+
* Authoring shape for a nonempty version constraint. Registry release selectors
|
|
21
|
+
* can resolve tags; manifest module/framework requirements instead use npm
|
|
22
|
+
* semver ranges and are validated against the receiving application's recorded
|
|
23
|
+
* module versions and installed framework packages before source adoption.
|
|
24
24
|
*/
|
|
25
25
|
const SemverRange = z.string().min(1).describe('npm-style semver range');
|
|
26
26
|
/**
|
|
@@ -46,24 +46,17 @@ export const ModuleManifestModuleDependenciesSchema = z.record(z.string().min(1)
|
|
|
46
46
|
* `dependsOn.npm.dependencies` / `peerDependencies` — npm packages
|
|
47
47
|
* the installed module imports at runtime. Install surfaces these
|
|
48
48
|
* to the operator but does not edit `package.json` automatically
|
|
49
|
-
*
|
|
49
|
+
* or install dependencies. The operator chooses the consuming package (KD-13).
|
|
50
50
|
*/
|
|
51
51
|
export const ModuleManifestNpmDependenciesSchema = z.strictObject({
|
|
52
52
|
dependencies: z.record(z.string().min(1), SemverRange).default({}),
|
|
53
53
|
peerDependencies: z.record(z.string().min(1), SemverRange).default({}),
|
|
54
54
|
});
|
|
55
55
|
/**
|
|
56
|
-
* `dependsOn.capabilities` —
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* Held as a free-form `string` array because the canonical capability
|
|
62
|
-
* vocabulary lives in `@wildo-ai/saas-models`'s
|
|
63
|
-
* `EngineCapability` enum. Re-importing that enum here would form
|
|
64
|
-
* a `platform-config-lib → saas-models` cycle for a string-list use
|
|
65
|
-
* case — Phase 5+ resolves capability names at runtime against the
|
|
66
|
-
* registry it does have access to.
|
|
56
|
+
* `dependsOn.capabilities` — required EngineCapability names. Adoption validates
|
|
57
|
+
* each name against the canonical enum and requires enabled:true in the host's
|
|
58
|
+
* authored engineCapabilities. This proves declared activation, not provider
|
|
59
|
+
* health. Strings remain the artifact format; the CLI performs host comparison.
|
|
67
60
|
*/
|
|
68
61
|
export const ModuleManifestCapabilityDependenciesSchema = z.array(z.string().min(1));
|
|
69
62
|
export const ModuleManifestDependenciesSchema = z.strictObject({
|
|
@@ -77,7 +70,9 @@ export const ModuleManifestDependenciesSchema = z.strictObject({
|
|
|
77
70
|
/**
|
|
78
71
|
* Engine compatibility — the framework version range this module
|
|
79
72
|
* targets. Install hard-fails by default if the host app's framework
|
|
80
|
-
* version is outside the range.
|
|
73
|
+
* version is outside the range. Every installed saas-models copy reached from
|
|
74
|
+
* application workspace framework dependencies must satisfy it; desired pins
|
|
75
|
+
* and the running CLI version are not installed application evidence.
|
|
81
76
|
*/
|
|
82
77
|
export const ModuleManifestEngineSchema = z.strictObject({
|
|
83
78
|
framework: SemverRange,
|
|
@@ -131,9 +126,8 @@ export const ModuleManifestBoundariesSchema = z.strictObject({
|
|
|
131
126
|
* Top-level manifest. Stored at `wildo.module.json` inside every
|
|
132
127
|
* artifact zip and at the registry server alongside its version row.
|
|
133
128
|
*
|
|
134
|
-
* `id` semantics: `<
|
|
135
|
-
*
|
|
136
|
-
* the domain. The id is reused as the lockfile entry key
|
|
129
|
+
* `id` semantics: `<scope>/<name>` (e.g. `acme/billing`), separate
|
|
130
|
+
* from the registry domain (e.g. `internal`). The id is reused as the lockfile entry key
|
|
137
131
|
* (`sections.modules.installed[<id>]`).
|
|
138
132
|
*/
|
|
139
133
|
export const ModuleManifestSchema = z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-manifest.schemas.js","sourceRoot":"","sources":["../../../../src/registry/module-manifest.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC;AAEzE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC7B,qLAAqL,CAAC;AACxL,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC;KAC/B,MAAM,EAAE;KACR,KAAK,CAAC,kBAAkB,EAAE,gEAAgE,CAAC;KAC3F,QAAQ,CAAC,sBAAsB,CAAC,CAAC;AACpC,MAAM,WAAW,GAAG,iBAAiB,CAAC;AAEtC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;AAG/F;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,YAAY,CAAC;IAChE,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAClE,gBAAgB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,OAAO,CAA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;IAC/D,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACvD,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACzD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACxD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACxD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CACzD,CAAC,CAAC;AAGH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,OAAO,EAAE,WAAW;IACpB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,iFAAiF;IACjF,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,MAAM,EAAE,0BAA0B,CAAC,QAAQ,EAAE;IAC7C,UAAU,EAAE,8BAA8B,CAAC,QAAQ,EAAE;IACrD,SAAS,EAAE,gCAAgC,CAAC,QAAQ,EAAE;IACtD;;;;OAIG;IACH,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC1D,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC","sourcesContent":["/**\n * Module manifest schema — `wildo.module.json` shipped inside every\n * registry artifact.\n *\n * Phase 1 fleshes out the dependency / boundary contract that Phase\n * 5+ install/update/remove flows need. The manifest is the single\n * cross-package contract every registry client signs against; new\n * fields require a plan amendment.\n *\n * Authoritative references (keep these in sync with edits below):\n * - KD-12 — modules cannot claim arbitrary top-level app ownership;\n * `boundaries` declares which app surfaces the artifact may write.\n * - KD-13 — npm + module + capability dependencies are explicit.\n * - KD-19 — runtime packages produced from installed module content\n * must NOT import `platform-config-lib`; this is enforced\n * downstream by Phase 5+ verification, not the manifest itself.\n */\n\nimport { z } from 'zod';\n\n/**\n * Semver-range schema. Accepts npm-style ranges (`^1.2.0`,\n * `~1.2.x`, `>=1.0.0 <2.0.0`, `latest`, `*`, etc.). Phase 5\n * resolves these via `semver.satisfies()` at install time; at\n * authoring time we only enforce non-empty.\n */\nconst SemverRange = z.string().min(1).describe('npm-style semver range');\n\n/**\n * Exact `MAJOR.MINOR.PATCH[-prerelease][+build]` semver. The regex\n * mirrors the official semver.org grammar, so manifest authors\n * cannot publish version `^1.2.3` or `latest` and have install\n * silently treat it as concrete.\n */\nexport const SEMVER_EXACT_REGEX =\n /^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$/;\nexport const SemverExactSchema = z\n .string()\n .regex(SEMVER_EXACT_REGEX, 'Expected exact semver `MAJOR.MINOR.PATCH` (no ranges, no tags)')\n .describe('Exact semver version');\nconst SemverExact = SemverExactSchema;\n\n/**\n * `dependsOn.modules.<moduleId>` — other Wildo modules that this\n * module requires. Install hard-fails by default if any required\n * module is missing (KD-13). Range resolution mirrors npm semver\n * semantics.\n */\nexport const ModuleManifestModuleDependenciesSchema = z.record(z.string().min(1), SemverRange);\nexport type ModuleManifestModuleDependencies = z.infer<typeof ModuleManifestModuleDependenciesSchema>;\n\n/**\n * `dependsOn.npm.dependencies` / `peerDependencies` — npm packages\n * the installed module imports at runtime. Install surfaces these\n * to the operator but does not edit `package.json` automatically\n * until a future `--with-deps` flow lands (KD-13).\n */\nexport const ModuleManifestNpmDependenciesSchema = z.strictObject({\n dependencies: z.record(z.string().min(1), SemverRange).default({}),\n peerDependencies: z.record(z.string().min(1), SemverRange).default({}),\n});\nexport type ModuleManifestNpmDependencies = z.infer<typeof ModuleManifestNpmDependenciesSchema>;\n\n/**\n * `dependsOn.capabilities` — engine/platform capabilities the module\n * requires (e.g. `EMAIL_TRANSACTIONAL`, `AI_LLM`). Phase 5+ verifies\n * the host app's `engineCapabilities` covers each entry before\n * install.\n *\n * Held as a free-form `string` array because the canonical capability\n * vocabulary lives in `@wildo-ai/saas-models`'s\n * `EngineCapability` enum. Re-importing that enum here would form\n * a `platform-config-lib → saas-models` cycle for a string-list use\n * case — Phase 5+ resolves capability names at runtime against the\n * registry it does have access to.\n */\nexport const ModuleManifestCapabilityDependenciesSchema = z.array(z.string().min(1));\nexport type ModuleManifestCapabilityDependencies = z.infer<typeof ModuleManifestCapabilityDependenciesSchema>;\n\nexport const ModuleManifestDependenciesSchema = z.strictObject({\n modules: ModuleManifestModuleDependenciesSchema.default({}),\n npm: ModuleManifestNpmDependenciesSchema.default({\n dependencies: {},\n peerDependencies: {},\n }),\n capabilities: ModuleManifestCapabilityDependenciesSchema.default([]),\n});\nexport type ModuleManifestDependencies = z.infer<typeof ModuleManifestDependenciesSchema>;\n\n/**\n * Engine compatibility — the framework version range this module\n * targets. Install hard-fails by default if the host app's framework\n * version is outside the range.\n */\nexport const ModuleManifestEngineSchema = z.strictObject({\n framework: SemverRange,\n});\nexport type ModuleManifestEngine = z.infer<typeof ModuleManifestEngineSchema>;\n\n/**\n * 6th-pass M5: each entry in a `boundaries.*` array must be a\n * RELATIVE path with no `..` segments. Without this refine:\n * - `path.resolve(saasRoot, '/abs/path')` returns `/abs/path` on\n * POSIX (absolute argument resets the resolve chain), so the\n * boundary check fails for every candidate file → publish\n * surfaces a confusing \"outside boundary\" error when the real\n * problem is the boundary itself being malformed.\n * - `'../../escape'` could legitimately resolve inside `saasRoot`\n * after normalization, but the publisher intent is unclear and\n * downstream zip-slip / symlink-escape guards become harder to\n * reason about. Reject at parse time with a precise message.\n */\nconst RelativeBoundaryPathSchema = z\n .string()\n .min(1)\n .refine(\n (s) => {\n // Reject absolute paths (POSIX `/...`, Windows `C:\\...` or `\\\\server\\...`).\n if (/^([a-zA-Z]:|[\\\\/])/.test(s)) return false;\n // Reject `..` segments after normalizing path separators.\n const segments = s.split(/[\\\\/]/);\n return !segments.includes('..');\n },\n {\n error:\n 'boundary entries must be relative to the saas root and contain no `..` segments ' +\n '(e.g. `app/src/modules/acme-billing`, NOT `/app/src/modules/acme-billing` or `../escape`)',\n },\n );\n\n/**\n * `boundaries` — the per-layer surface the module is allowed to\n * write into the host app source (KD-12). Paths are relative to the\n * saas root; install rejects artifacts that attempt to write outside\n * any declared boundary.\n *\n * Each layer is optional; modules typically declare only the layers\n * they actually contain (a backend-only module declares `backend`\n * + `shared` and omits `frontend` / `specifications`).\n */\nexport const ModuleManifestBoundariesSchema = z.strictObject({\n specifications: z.array(RelativeBoundaryPathSchema).default([]),\n shared: z.array(RelativeBoundaryPathSchema).default([]),\n frontend: z.array(RelativeBoundaryPathSchema).default([]),\n backend: z.array(RelativeBoundaryPathSchema).default([]),\n minions: z.array(RelativeBoundaryPathSchema).default([]),\n workers: z.array(RelativeBoundaryPathSchema).default([]),\n});\nexport type ModuleManifestBoundaries = z.infer<typeof ModuleManifestBoundariesSchema>;\n\n/**\n * Top-level manifest. Stored at `wildo.module.json` inside every\n * artifact zip and at the registry server alongside its version row.\n *\n * `id` semantics: `<domain>/<name>` (e.g. `acme/billing`) where the\n * domain is the registry domain and `name` is locally unique within\n * the domain. The id is reused as the lockfile entry key\n * (`sections.modules.installed[<id>]`).\n */\nexport const ModuleManifestSchema = z.object({\n id: z.string().min(1),\n version: SemverExact,\n description: z.string().optional(),\n /** Free-form description of what the module ships, for `wildo registry info`. */\n longDescription: z.string().optional(),\n engine: ModuleManifestEngineSchema.optional(),\n boundaries: ModuleManifestBoundariesSchema.optional(),\n dependsOn: ModuleManifestDependenciesSchema.optional(),\n /**\n * Free-form key/value bag for non-load-bearing metadata\n * (homepage, license, repository). Phase 1 keeps it open;\n * Phase 6 may tighten it for `wildo registry publish` UX.\n */\n meta: z.record(z.string().min(1), z.unknown()).optional(),\n}).catchall(z.unknown());\nexport type ModuleManifest = z.infer<typeof ModuleManifestSchema>;\n"]}
|
|
1
|
+
{"version":3,"file":"module-manifest.schemas.js","sourceRoot":"","sources":["../../../../src/registry/module-manifest.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC;AAEzE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC7B,qLAAqL,CAAC;AACxL,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC;KAC/B,MAAM,EAAE;KACR,KAAK,CAAC,kBAAkB,EAAE,gEAAgE,CAAC;KAC3F,QAAQ,CAAC,sBAAsB,CAAC,CAAC;AACpC,MAAM,WAAW,GAAG,iBAAiB,CAAC;AAEtC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;AAG/F;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,YAAY,CAAC;IAChE,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CA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,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC1D,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC","sourcesContent":["/**\n * Module manifest schema — `wildo.module.json` shipped inside every\n * registry artifact.\n *\n * Phase 1 fleshes out the dependency / boundary contract that Phase\n * 5+ install/update/remove flows need. The manifest is the single\n * cross-package contract every registry client signs against; new\n * fields require a plan amendment.\n *\n * Authoritative references (keep these in sync with edits below):\n * - KD-12 — modules cannot claim arbitrary top-level app ownership;\n * `boundaries` declares which app surfaces the artifact may write.\n * - KD-13 — npm + module + capability dependencies are explicit.\n * - KD-19 — runtime packages produced from installed module content\n * must NOT import `platform-config-lib`; this is enforced\n * downstream by Phase 5+ verification, not the manifest itself.\n */\n\nimport { z } from 'zod';\n\n/**\n * Authoring shape for a nonempty version constraint. Registry release selectors\n * can resolve tags; manifest module/framework requirements instead use npm\n * semver ranges and are validated against the receiving application's recorded\n * module versions and installed framework packages before source adoption.\n */\nconst SemverRange = z.string().min(1).describe('npm-style semver range');\n\n/**\n * Exact `MAJOR.MINOR.PATCH[-prerelease][+build]` semver. The regex\n * mirrors the official semver.org grammar, so manifest authors\n * cannot publish version `^1.2.3` or `latest` and have install\n * silently treat it as concrete.\n */\nexport const SEMVER_EXACT_REGEX =\n /^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$/;\nexport const SemverExactSchema = z\n .string()\n .regex(SEMVER_EXACT_REGEX, 'Expected exact semver `MAJOR.MINOR.PATCH` (no ranges, no tags)')\n .describe('Exact semver version');\nconst SemverExact = SemverExactSchema;\n\n/**\n * `dependsOn.modules.<moduleId>` — other Wildo modules that this\n * module requires. Install hard-fails by default if any required\n * module is missing (KD-13). Range resolution mirrors npm semver\n * semantics.\n */\nexport const ModuleManifestModuleDependenciesSchema = z.record(z.string().min(1), SemverRange);\nexport type ModuleManifestModuleDependencies = z.infer<typeof ModuleManifestModuleDependenciesSchema>;\n\n/**\n * `dependsOn.npm.dependencies` / `peerDependencies` — npm packages\n * the installed module imports at runtime. Install surfaces these\n * to the operator but does not edit `package.json` automatically\n * or install dependencies. The operator chooses the consuming package (KD-13).\n */\nexport const ModuleManifestNpmDependenciesSchema = z.strictObject({\n dependencies: z.record(z.string().min(1), SemverRange).default({}),\n peerDependencies: z.record(z.string().min(1), SemverRange).default({}),\n});\nexport type ModuleManifestNpmDependencies = z.infer<typeof ModuleManifestNpmDependenciesSchema>;\n\n/**\n * `dependsOn.capabilities` — required EngineCapability names. Adoption validates\n * each name against the canonical enum and requires enabled:true in the host's\n * authored engineCapabilities. This proves declared activation, not provider\n * health. Strings remain the artifact format; the CLI performs host comparison.\n */\nexport const ModuleManifestCapabilityDependenciesSchema = z.array(z.string().min(1));\nexport type ModuleManifestCapabilityDependencies = z.infer<typeof ModuleManifestCapabilityDependenciesSchema>;\n\nexport const ModuleManifestDependenciesSchema = z.strictObject({\n modules: ModuleManifestModuleDependenciesSchema.default({}),\n npm: ModuleManifestNpmDependenciesSchema.default({\n dependencies: {},\n peerDependencies: {},\n }),\n capabilities: ModuleManifestCapabilityDependenciesSchema.default([]),\n});\nexport type ModuleManifestDependencies = z.infer<typeof ModuleManifestDependenciesSchema>;\n\n/**\n * Engine compatibility — the framework version range this module\n * targets. Install hard-fails by default if the host app's framework\n * version is outside the range. Every installed saas-models copy reached from\n * application workspace framework dependencies must satisfy it; desired pins\n * and the running CLI version are not installed application evidence.\n */\nexport const ModuleManifestEngineSchema = z.strictObject({\n framework: SemverRange,\n});\nexport type ModuleManifestEngine = z.infer<typeof ModuleManifestEngineSchema>;\n\n/**\n * 6th-pass M5: each entry in a `boundaries.*` array must be a\n * RELATIVE path with no `..` segments. Without this refine:\n * - `path.resolve(saasRoot, '/abs/path')` returns `/abs/path` on\n * POSIX (absolute argument resets the resolve chain), so the\n * boundary check fails for every candidate file → publish\n * surfaces a confusing \"outside boundary\" error when the real\n * problem is the boundary itself being malformed.\n * - `'../../escape'` could legitimately resolve inside `saasRoot`\n * after normalization, but the publisher intent is unclear and\n * downstream zip-slip / symlink-escape guards become harder to\n * reason about. Reject at parse time with a precise message.\n */\nconst RelativeBoundaryPathSchema = z\n .string()\n .min(1)\n .refine(\n (s) => {\n // Reject absolute paths (POSIX `/...`, Windows `C:\\...` or `\\\\server\\...`).\n if (/^([a-zA-Z]:|[\\\\/])/.test(s)) return false;\n // Reject `..` segments after normalizing path separators.\n const segments = s.split(/[\\\\/]/);\n return !segments.includes('..');\n },\n {\n error:\n 'boundary entries must be relative to the saas root and contain no `..` segments ' +\n '(e.g. `app/src/modules/acme-billing`, NOT `/app/src/modules/acme-billing` or `../escape`)',\n },\n );\n\n/**\n * `boundaries` — the per-layer surface the module is allowed to\n * write into the host app source (KD-12). Paths are relative to the\n * saas root; install rejects artifacts that attempt to write outside\n * any declared boundary.\n *\n * Each layer is optional; modules typically declare only the layers\n * they actually contain (a backend-only module declares `backend`\n * + `shared` and omits `frontend` / `specifications`).\n */\nexport const ModuleManifestBoundariesSchema = z.strictObject({\n specifications: z.array(RelativeBoundaryPathSchema).default([]),\n shared: z.array(RelativeBoundaryPathSchema).default([]),\n frontend: z.array(RelativeBoundaryPathSchema).default([]),\n backend: z.array(RelativeBoundaryPathSchema).default([]),\n minions: z.array(RelativeBoundaryPathSchema).default([]),\n workers: z.array(RelativeBoundaryPathSchema).default([]),\n});\nexport type ModuleManifestBoundaries = z.infer<typeof ModuleManifestBoundariesSchema>;\n\n/**\n * Top-level manifest. Stored at `wildo.module.json` inside every\n * artifact zip and at the registry server alongside its version row.\n *\n * `id` semantics: `<scope>/<name>` (e.g. `acme/billing`), separate\n * from the registry domain (e.g. `internal`). The id is reused as the lockfile entry key\n * (`sections.modules.installed[<id>]`).\n */\nexport const ModuleManifestSchema = z.object({\n id: z.string().min(1),\n version: SemverExact,\n description: z.string().optional(),\n /** Free-form description of what the module ships, for `wildo registry info`. */\n longDescription: z.string().optional(),\n engine: ModuleManifestEngineSchema.optional(),\n boundaries: ModuleManifestBoundariesSchema.optional(),\n dependsOn: ModuleManifestDependenciesSchema.optional(),\n /**\n * Free-form key/value bag for non-load-bearing metadata\n * (homepage, license, repository). Phase 1 keeps it open;\n * Phase 6 may tighten it for `wildo registry publish` UX.\n */\n meta: z.record(z.string().min(1), z.unknown()).optional(),\n}).catchall(z.unknown());\nexport type ModuleManifest = z.infer<typeof ModuleManifestSchema>;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry-config.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"registry-config.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/registry-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,yBAAyB;IACpC,qEAAqE;;IAErE,+DAA+D;;kBAE/D,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,oBAAoB;IAP/B,qEAAqE;;IAErE,+DAA+D;;oBAKiB,CAAC;AACnF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry-section-schemas.constants.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"registry-section-schemas.constants.d.ts","sourceRoot":"","sources":["../../../../src/registry/registry-section-schemas.constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;CAEnC,CAAC;AAEX,MAAM,MAAM,6BAA6B,GAAG,OAAO,gCAAgC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework-release.constants.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"framework-release.constants.d.ts","sourceRoot":"","sources":["../../../../src/release/framework-release.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,cAAc,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,sCAAsC,cAAc,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework-release.constants.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"framework-release.constants.js","sourceRoot":"","sources":["../../../../src/release/framework-release.constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,2BAA2B,GAAG,WAAW,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAG,WAAW,CAAC;AAElE;;;;GAIG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,SAAS,CAAC","sourcesContent":["export const FRAMEWORK_RELEASE_NPM_SCOPE = '@wildo-ai';\n\n/**\n * Container registry that hosts the published framework images.\n *\n * Declared EXPLICITLY rather than left to Docker's default resolution: a bare\n * `<namespace>/<image>` reference silently means Docker Hub, and naming the host\n * makes the choice reviewable and a future move a config change instead of an\n * archaeology exercise. Every consumer-side reference (the compose template's\n * `platformImageRef`) is built from these two constants, and the publish lane\n * refuses any framework config that names a different pair.\n *\n * ## History, because it moved twice\n *\n * Docker Hub (`wildoai`) was the original home; the images `wildoai/wildo-platform:0.2.0`\n * and `:1.0.1` were pushed there in April 2026. On 2026-08-26 the lane was moved to GHCR\n * (`ghcr.io/wildo-ai`) for two reasons: publication could authenticate with a workflow's\n * own run-scoped `GITHUB_TOKEN`, and public GHCR pulls carry no anonymous pull-rate limit.\n * Neither reason was ever exercised — no publish CI exists, and the lane runs from a\n * developer machine — while the only container credential the framework holds is the\n * Docker Hub one. The first real GHCR publish (2026-09-04) was refused for exactly that.\n * Paul decided on 2026-09-05 to go BACK to Docker Hub rather than mint a second credential.\n *\n * If the lane ever moves to CI, the GHCR argument returns; move both constants and the\n * framework config together, and the publish-lane pin and the compose pins will say so.\n */\nexport const FRAMEWORK_RELEASE_DOCKER_REGISTRY_HOST = 'docker.io';\n\n/**\n * Owner namespace under {@link FRAMEWORK_RELEASE_DOCKER_REGISTRY_HOST} — the Docker Hub\n * organization (`wildoai`, no hyphen: Docker Hub namespaces cannot carry one, which is why\n * it differs from the GitHub organization `wildo-ai` and the npm scope `@wildo-ai`).\n */\nexport const FRAMEWORK_RELEASE_DOCKER_NAMESPACE = 'wildoai';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework-info.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"framework-info.schemas.d.ts","sourceRoot":"","sources":["../../../../src/schemas/framework-info.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,wBAAwB;;;;iBAInC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -8,8 +8,19 @@ export declare const WildoFrameworkPublishDockerSecretsSchema: z.ZodObject<{
|
|
|
8
8
|
publishToken: z.ZodString;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
export type WildoFrameworkPublishDockerSecrets = z.infer<typeof WildoFrameworkPublishDockerSecretsSchema>;
|
|
11
|
+
/**
|
|
12
|
+
* One provider's credentials in the framework secrets file: a single secret (an API key), or a named
|
|
13
|
+
* set of them when the provider issues several — Slack issues a bot token, an app token, OAuth
|
|
14
|
+
* access/refresh tokens and identifiers that belong together.
|
|
15
|
+
*
|
|
16
|
+
* Until 2026-09-24 only the single-string form was accepted. A Slack credential set stored under
|
|
17
|
+
* `providers.slack` then made the WHOLE file unparseable, and `wildo fwk publish npm` — which reads
|
|
18
|
+
* nothing but `npm.publishToken` — refused every release with a Zod error about Slack.
|
|
19
|
+
*/
|
|
20
|
+
export declare const WildoFrameworkProviderSecretSchema: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
|
|
21
|
+
export type WildoFrameworkProviderSecret = z.infer<typeof WildoFrameworkProviderSecretSchema>;
|
|
11
22
|
export declare const WildoFrameworkSecretsSchema: z.ZodObject<{
|
|
12
|
-
providers: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString
|
|
23
|
+
providers: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>>>;
|
|
13
24
|
docker: z.ZodOptional<z.ZodObject<{
|
|
14
25
|
publishUsername: z.ZodOptional<z.ZodString>;
|
|
15
26
|
publishToken: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework-secrets.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"framework-secrets.schemas.d.ts","sourceRoot":"","sources":["../../../../src/schemas/framework-secrets.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qCAAqC;;iBAEhD,CAAC;AACH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAEpG,eAAO,MAAM,wCAAwC;;;iBAGnD,CAAC;AACH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC;AAE1G;;;;;;;;GAQG;AACH,eAAO,MAAM,kCAAkC,2EAG7C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,eAAO,MAAM,2BAA2B;;;;;;;;;iBAItC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -6,8 +6,21 @@ export const WildoFrameworkPublishDockerSecretsSchema = z.object({
|
|
|
6
6
|
publishUsername: z.string().min(1).optional(),
|
|
7
7
|
publishToken: z.string().min(1),
|
|
8
8
|
});
|
|
9
|
+
/**
|
|
10
|
+
* One provider's credentials in the framework secrets file: a single secret (an API key), or a named
|
|
11
|
+
* set of them when the provider issues several — Slack issues a bot token, an app token, OAuth
|
|
12
|
+
* access/refresh tokens and identifiers that belong together.
|
|
13
|
+
*
|
|
14
|
+
* Until 2026-09-24 only the single-string form was accepted. A Slack credential set stored under
|
|
15
|
+
* `providers.slack` then made the WHOLE file unparseable, and `wildo fwk publish npm` — which reads
|
|
16
|
+
* nothing but `npm.publishToken` — refused every release with a Zod error about Slack.
|
|
17
|
+
*/
|
|
18
|
+
export const WildoFrameworkProviderSecretSchema = z.union([
|
|
19
|
+
z.string().min(1),
|
|
20
|
+
z.record(z.string(), z.string()),
|
|
21
|
+
]);
|
|
9
22
|
export const WildoFrameworkSecretsSchema = z.object({
|
|
10
|
-
providers: z.record(z.string(),
|
|
23
|
+
providers: z.record(z.string(), WildoFrameworkProviderSecretSchema).optional().default({}),
|
|
11
24
|
docker: WildoFrameworkPublishDockerSecretsSchema.optional(),
|
|
12
25
|
npm: WildoFrameworkPublishNpmSecretsSchema.optional(),
|
|
13
26
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework-secrets.schemas.js","sourceRoot":"","sources":["../../../../src/schemas/framework-secrets.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAA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CAAC;CACjC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,kCAAkC,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1F,MAAM,EAAE,wCAAwC,CAAC,QAAQ,EAAE;IAC3D,GAAG,EAAE,qCAAqC,CAAC,QAAQ,EAAE;CACtD,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\nexport const WildoFrameworkPublishNpmSecretsSchema = z.object({\n publishToken: z.string().min(1),\n});\nexport type WildoFrameworkPublishNpmSecrets = z.infer<typeof WildoFrameworkPublishNpmSecretsSchema>;\n\nexport const WildoFrameworkPublishDockerSecretsSchema = z.object({\n publishUsername: z.string().min(1).optional(),\n publishToken: z.string().min(1),\n});\nexport type WildoFrameworkPublishDockerSecrets = z.infer<typeof WildoFrameworkPublishDockerSecretsSchema>;\n\n/**\n * One provider's credentials in the framework secrets file: a single secret (an API key), or a named\n * set of them when the provider issues several — Slack issues a bot token, an app token, OAuth\n * access/refresh tokens and identifiers that belong together.\n *\n * Until 2026-09-24 only the single-string form was accepted. A Slack credential set stored under\n * `providers.slack` then made the WHOLE file unparseable, and `wildo fwk publish npm` — which reads\n * nothing but `npm.publishToken` — refused every release with a Zod error about Slack.\n */\nexport const WildoFrameworkProviderSecretSchema = z.union([\n z.string().min(1),\n z.record(z.string(), z.string()),\n]);\nexport type WildoFrameworkProviderSecret = z.infer<typeof WildoFrameworkProviderSecretSchema>;\n\nexport const WildoFrameworkSecretsSchema = z.object({\n providers: z.record(z.string(), WildoFrameworkProviderSecretSchema).optional().default({}),\n docker: WildoFrameworkPublishDockerSecretsSchema.optional(),\n npm: WildoFrameworkPublishNpmSecretsSchema.optional(),\n});\nexport type WildoFrameworkSecrets = z.infer<typeof WildoFrameworkSecretsSchema>;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-application-config.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"platform-application-config.schemas.d.ts","sourceRoot":"","sources":["../../../../src/schemas/platform-application-config.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kCAAkC;;;;iBAe7C,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-application-secrets.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"platform-application-secrets.schemas.d.ts","sourceRoot":"","sources":["../../../../src/schemas/platform-application-secrets.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuE9C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-config.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"platform-config.schemas.d.ts","sourceRoot":"","sources":["../../../../src/schemas/platform-config.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,oCAAoC;;iBAE/C,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAE3F;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;iBAKnC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqBpC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACzE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE3E,MAAM,MAAM,6BAA6B,GAAG;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-subject-manifest.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"application-subject-manifest.d.ts","sourceRoot":"","sources":["../../../../src/workspace-scope/application-subject-manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAClC,KAAK,4BAA4B,EAClC,MAAM,uBAAuB,CAAC;AAK/B,4EAA4E;AAC5E,eAAO,MAAM,sCAAsC,4BACK,CAAC;AAEzD;;;;;;GAMG;AACH,eAAO,MAAM,oCAAoC,EAC/C,OAAO,kCAAuE,CAAC;AAEjF;;;GAGG;AACH,wBAAgB,qCAAqC,CACnD,eAAe,EAAE,MAAM,GACtB,MAAM,CAKR;AAED;;;;;;;GAOG;AACH,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,MAAM,GACb,4BAA4B,CAQ9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/workspace-scope/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,gCAAgC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-homes.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"resolve-homes.d.ts","sourceRoot":"","sources":["../../../../src/workspace-scope/resolve-homes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAOtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,cAAc,EAAE,oBAAoB,EACpC,OAAO,GAAE,mBAAwB,GAChC,aAAa,CA0Cf;AAED;;GAEG;AACH,wBAAgB,YAAY,CAC1B,GAAG,GAAE,MAAsB,EAC3B,OAAO,GAAE,mBAAwB,GAChC,aAAa,CAEf"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { WorkspaceScope } from './workspace-scope.schemas';
|
|
1
|
+
import { WorkspaceScope, type WorkspaceScopeResult } from './workspace-scope.schemas';
|
|
3
2
|
export interface MachineLayoutPaths {
|
|
4
3
|
home: string;
|
|
5
4
|
preferencesPath: string;
|
|
@@ -211,7 +210,9 @@ export interface ResolvedHomes {
|
|
|
211
210
|
capabilities: ResolvedHomeCapabilities;
|
|
212
211
|
}
|
|
213
212
|
/**
|
|
214
|
-
* Build the machine-global Wildo home layout under the current user's
|
|
213
|
+
* Build the machine-global Wildo home layout: under `$WILDO_HOME` when set, else the current user's
|
|
214
|
+
* `~/.wildo` — the one rule `resolveMachineWildoHomePath` owns and both launchers apply. An explicit
|
|
215
|
+
* `userHome` answers about that home and ignores the environment.
|
|
215
216
|
*/
|
|
216
217
|
export declare function resolveMachineLayout(userHome?: string): MachineLayoutPaths;
|
|
217
218
|
/**
|