@wildo-ai/platform-config-lib 1.1.3 → 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/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 +150 -1
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.js +124 -4
- package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts +16 -0
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.js +28 -0
- package/dist/esm/bootstrap/platform-runtime-env.contracts.js.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/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/materialize-infra-section.d.ts +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/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/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-companion-discovery.d.ts +46 -0
- package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -1
- package/dist/esm/project-config/provider-companion-discovery.js +155 -13
- package/dist/esm/project-config/provider-companion-discovery.js.map +1 -1
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts +72 -23
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -1
- package/dist/esm/project-config/provider-runtime-artifacts.js +190 -17
- package/dist/esm/project-config/provider-runtime-artifacts.js.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 +37 -7
- package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/backing-services.schemas.js +37 -7
- package/dist/esm/project-config/shared/backing-services.schemas.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/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 +13 -3
- 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/minion-resource-access.validation.d.ts +140 -34
- 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 +174 -37
- 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/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/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/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/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
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
/**
|
|
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];
|
|
@@ -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":["../../../../src/registry/module-manifest.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CA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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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.\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,MAA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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 * 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"]}
|
|
@@ -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":["../../../../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,eAAO,MAAM,2BAA2B;;;;;;;;;iBAItC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
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,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AE,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,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
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-homes.schemas.d.ts","sourceRoot":"","sources":["../../../../src/workspace-scope/workspace-homes.schemas.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workspace-homes.schemas.d.ts","sourceRoot":"","sources":["../../../../src/workspace-scope/workspace-homes.schemas.ts"],"names":[],"mappings":"AACA,OAAO,EAML,cAAc,EACd,KAAK,oBAAoB,EAC1B,MAAM,2BAA2B,CAAC;AAEnC,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,4EAA4E;IAC5E,cAAc,EAAE,MAAM,CAAC;IACvB;;;;;;OAMG;IACH,qCAAqC,EAAE,MAAM,CAAC;IAC9C,oEAAoE;IACpE,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,oBAAoB;IACnC,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBA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AMES, resolveMachineWildoHomePath, WORKSPACE_HOME_NAMES, } from './workspace-scope.schemas.js';
|
|
4
3
|
/**
|
|
5
|
-
* Build the machine-global Wildo home layout under the current user's
|
|
4
|
+
* Build the machine-global Wildo home layout: under `$WILDO_HOME` when set, else the current user's
|
|
5
|
+
* `~/.wildo` — the one rule `resolveMachineWildoHomePath` owns and both launchers apply. An explicit
|
|
6
|
+
* `userHome` answers about that home and ignores the environment.
|
|
6
7
|
*/
|
|
7
|
-
export function resolveMachineLayout(userHome
|
|
8
|
-
const home =
|
|
8
|
+
export function resolveMachineLayout(userHome) {
|
|
9
|
+
const home = resolveMachineWildoHomePath(userHome);
|
|
9
10
|
const continuityHome = join(home, 'continuity');
|
|
10
11
|
return {
|
|
11
12
|
home,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-homes.schemas.js","sourceRoot":"","sources":["../../../../src/workspace-scope/workspace-homes.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EACzB,wBAAwB,EACxB,kBAAkB,EAClB,oBAAoB,GAErB,MAAM,2BAA2B,CAAC;AA4NnC;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,WAAmB,OAAO,EAAE;IAC/D,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAC7D,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;IAChD,OAAO;QACL,IAAI;QACJ,eAAe,EAAE,IAAI,CAAC,IAAI,EAAE,0BAA0B,CAAC,WAAW,CAAC;QACnE,cAAc;QACd,qCAAqC,EAAE,IAAI,CACzC,cAAc,EACd,uBAAuB,CACxB;QACD,qBAAqB,EAAE,IAAI,CAAC,cAAc,EAAE,SAAS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d,yBAAyB,CAAC,iBAAiB,CAC5C;QACD,QAAQ;QACR,iCAAiC;QACjC,uCAAuC,EAAE,IAAI,CAC3C,iCAAiC,EACjC,wBAAwB,CAAC,WAAW,CACrC;QACD,SAAS,EAAE,IAAI,CAAC,WAAW,EAAE,wBAAwB,CAAC,KAAK,CAAC;QAC5D,aAAa;QACb,6BAA6B,EAAE,IAAI,CACjC,aAAa,EACb,wBAAwB,CAAC,iBAAiB,CAC3C;QACD,QAAQ;QACR,iBAAiB,EAAE,IAAI,CAAC,QAAQ,EAAE,eAAe,CAAC;QAClD,aAAa,EAAE,IAAI,CAAC,WAAW,EAAE,wBAAwB,CAAC,UAAU,CAAC;QACrE,yBAAyB;QACzB,uBAAuB,EAAE,IAAI,CAAC,yBAAyB,EAAE,wBAAwB,CAAC,YAAY,CAAC;QAC/F,mBAAmB,EAAE,IAAI,CAAC,WAAW,EAAE,wBAAwB,CAAC,MAAM,CAAC;QACvE,oBAAoB,EAAE,IAAI,CAAC,WAAW,EAAE,wBAAwB,CAAC,iBAAiB,CAAC;QACnF,kBAAkB,EAAE,IAAI,CAAC,WAAW,EAAE,wBAAwB,CAAC,eAAe,CAAC;QAC/E,aAAa,EAAE,IAAI,CAAC,WAAW,EAAE,wBAAwB,CAAC,SAAS,CAAC;QACpE,sBAAsB,EAAE,IAAI,CAAC,WAAW,EAAE,0BAA0B,CAAC,qBAAqB,CAAC;QAC3F,yBAAyB,EAAE,IAAI,CAC7B,QAAQ,EACR,wBAAwB,CAAC,aAAa,EACtC,MAAM,CACP;KACF,CAAC;AACJ,CAAC","sourcesContent":["import { homedir } from 'os';\nimport { join } from 'path';\nimport type { WorkspaceScopeResult } from './workspace-scope.schemas';\nimport {\n AUTHORED_CONFIG_FILE_NAMES,\n APP_CONTINUITY_FILE_NAMES,\n APP_RUNTIME_SUBDIR_NAMES,\n MACHINE_HOME_NAMES,\n WORKSPACE_HOME_NAMES,\n WorkspaceScope,\n} from './workspace-scope.schemas';\n\nexport interface MachineLayoutPaths {\n home: string;\n preferencesPath: string;\n /** Machine-local root for all continuity authority domains and subjects. */\n continuityHome: string;\n /**\n * Machine-local authority-domain manifest.\n *\n * The manifest identifies a storage/writer namespace. It is deliberately\n * outside every subject directory because one local authority domain may\n * own several application subjects.\n */\n continuityAuthorityDomainManifestPath: string;\n /** Root containing `domains/<authority-domain-id>/subjects/...`. */\n continuityDomainsHome: string;\n}\n\nexport interface FrameworkLayoutPaths {\n repositoryRoot: string;\n rootPackageJsonPath: string;\n pnpmLockfilePath: string;\n engineHome: string;\n platformHome: string;\n /**\n * The THIRD workspace home (plan D9): one package per provider, several facet barrels each,\n * deliberately OUTSIDE `engine/` so that \"out of the core engine\" is a directory rather than a\n * convention. Named for the HOME, never for a package in it — which provider inhabits it first is\n * a decision of the slice that generates providers, not of the layout.\n *\n * It is a field here because this interface is what makes a home VISIBLE to tooling: publish\n * discovery, framework-knowledge generation and the anchor audit all take their scan roots from\n * `engineHome` + `platformHome`, and a home absent from that pair is not excluded — it is\n * unseen. An unseen home reports clean, which is the shape\n * `negative-results-require-a-positive-probe.md` exists for: a `@wildo_source` anchor in a\n * provider package would never reach a skill, and nothing would say so.\n */\n providersHome: string;\n examplesHome: string;\n markerHome: string;\n declarationConfigPath: string;\n templatesHome: string;\n infraTemplatesHome: string;\n dockerComposeTemplatesHome: string;\n ciTemplatesHome: string;\n k8sTemplatesHome: string;\n dockerImagesTemplatesHome: string;\n platformBaseDockerfilePath: string;\n backendBaseDockerfilePath: string;\n backendJavaDockerfilePath: string;\n docsHome: string;\n frameworkKnowledgePackageHome: string;\n frameworkKnowledgeSourceHome: string;\n /**\n * Home of **authored** skill folders (`src/skills/<skill_id>/SKILL.md` + supporting\n * markdown). Distinct from {@link frameworkKnowledgeSkillsHome}, which is the\n * **materialized** output home under `dist/knowledge/skills/`. Keeping the two\n * names clearly separated prevents accidental conflation between authored\n * source and generated artifact.\n */\n frameworkKnowledgeAuthoredSkillsHome: string;\n /**\n * Home of **authored** playbook folders\n * (`src/playbooks/<ref>/playbook.json` + `method.md`). Playbooks are the\n * meta-workflow artifact kind (app-creation methodology definitions) — a\n * distinct compilation lane from skills, so they get their own authored\n * home instead of polluting the skills router. Mirrors the\n * authored-vs-materialized split of\n * {@link frameworkKnowledgeAuthoredSkillsHome} /\n * {@link frameworkKnowledgeSkillsHome}.\n */\n frameworkKnowledgeAuthoredPlaybooksHome: string;\n /**\n * Home of **authored** always-on rules (`src/rules/*.md`).\n *\n * A rule is policy an application's coding agent should have at its elbow WITHOUT routing to a\n * skill first — the distinction the skills router cannot express, because a router match requires\n * the agent to already suspect the topic. Authored-vs-materialized split as above:\n * {@link frameworkKnowledgeRulesHome} is the compiled output.\n */\n frameworkKnowledgeAuthoredRulesHome: string;\n frameworkKnowledgeOutputHome: string;\n frameworkKnowledgeReferencesHome: string;\n frameworkKnowledgeSkillsHome: string;\n frameworkKnowledgeRegistriesHome: string;\n /** Materialized playbook output home under `dist/knowledge/playbooks/`. */\n frameworkKnowledgePlaybooksHome: string;\n /** Materialized rule output home under `dist/knowledge/rules/`. */\n frameworkKnowledgeRulesHome: string;\n releaseHome: string;\n releaseDistHome: string;\n releasePublishHome: string;\n releaseSecretsHome: string;\n releaseSecretsPath: string;\n npmPublishManifestsHome: string;\n configLoaderArtifactsHome: string;\n}\n\nexport interface AppLayoutPaths {\n declarationRoot: string;\n declarationConfigPath: string;\n authoredInfrastructureHome: string;\n runtimeHome: string;\n /** Tracked portable identity/bootstrap inputs for local continuity. */\n continuityHome: string;\n applicationSubjectManifestPath: string;\n applicationContinuityBootstrapProfilePath: string;\n distHome: string;\n /** Generated application-specification runtime outputs. */\n applicationSpecificationsDistHome: string;\n applicationSpecificationProjectionsHome: string;\n stateHome: string;\n /** Disposable application-owned workspaces; never application truth. */\n temporaryHome: string;\n integrationTestsTemporaryHome: string;\n logsHome: string;\n companionLogsHome: string;\n localDataHome: string;\n runtimeInfrastructureHome: string;\n runtimeEnvironmentsHome: string;\n /**\n * Root of the env-scoped deployment-artifact staging area\n * (`.wildo-saas/deploy/`). Per-env renders live at `<home>/<envName>/`.\n * Always secret-bearing — see {@link APP_RUNTIME_SUBDIR_NAMES.DEPLOY}.\n */\n deployArtifactsHome: string;\n frameworkScriptsHome: string;\n runtimeSignalsHome: string;\n companionHome: string;\n preferencesOverlayPath: string;\n configLoaderArtifactsHome: string;\n}\n\nexport interface ResolvedMachineHomes {\n layout: MachineLayoutPaths;\n hasPreferencesFile: boolean;\n}\n\nexport interface ResolvedFrameworkHomes {\n repositoryRoot: string | null;\n markerHome: string | null;\n declarationConfigPath: string | null;\n layout: FrameworkLayoutPaths | null;\n /**\n * True ONLY when the caller's `cwd` sits inside a framework workspace that\n * was discovered by walking up for `wildo-framework.info.json`. A framework\n * root derived from `frameworkPathHint` (machine preferences) populates\n * `repositoryRoot` and `layout`, but leaves this flag `false` because the\n * caller is NOT operating from inside the framework repo — they merely have\n * a pointer to it. Consumers that need \"am I currently developing the\n * framework?\" must read this field; consumers that need \"can I read\n * framework-owned assets from here?\" must read\n * `ResolvedHomeCapabilities.canUseFrameworkAssets`.\n */\n isInFrameworkWorkspace: boolean;\n}\n\nexport interface ResolvedAppHomes {\n declarationRoot: string | null;\n runtimeHome: string | null;\n saasConfigPath: string | null;\n layout: AppLayoutPaths | null;\n isInAppWorkspace: boolean;\n}\n\n/**\n * Pre-computed, semantic booleans that gate downstream CLI / companion /\n * runtime behavior based on the resolved-homes snapshot.\n *\n * Each flag is intentionally separate because they answer different questions\n * — merging any two of them (\"are we in a framework workspace?\" vs \"can we\n * reach framework assets?\") would silently reintroduce the Phase 5\n * env-vs-context confusion we explicitly killed:\n *\n * - `hasMachinePreferences` — A `preferences.json` file exists under the\n * machine Wildo home. `canUseFrameworkAssets` can be true without this\n * flag being true (e.g. the preferences hint was seeded in a session that\n * never persisted), and vice versa.\n * - `hasFrameworkWorkspace` — The caller's `cwd` is inside a framework\n * workspace (walk-up found `wildo-framework.info.json`). Equivalent to\n * `framework.isInFrameworkWorkspace`; duplicated here so capability checks\n * are one-stop-shop without having to reach into the nested roots.\n * - `hasAppWorkspace` — The caller's `cwd` is inside a SaaS app workspace\n * (walk-up found `wildo.saas.config.ts`). Equivalent to\n * `app.isInAppWorkspace`.\n * - `hasFrameworkDeveloperCapabilities` — Either the operator is actually\n * sitting inside the framework workspace (`hasFrameworkWorkspace`) OR the\n * `isFrameworkDeveloperHint` from preferences is true. This is metadata\n * used by commands that surface framework-dev-only tooling — it never\n * participates in path resolution.\n * - `canUseFrameworkAssets` — The resolved snapshot has a usable framework\n * `repositoryRoot` (either because the caller is inside one, or because a\n * validated hint pointed at one). This is the flag used by consumers that\n * need to READ framework-owned paths (scripts, shared dist, etc.) — it is\n * intentionally broader than `hasFrameworkWorkspace` so that apps can\n * reach framework assets without the caller pretending to be \"in\" the\n * framework workspace.\n * - `canUseAppRuntimeHome` — The resolved snapshot has a usable\n * `.wildo-saas/` runtime home. Required by anything that writes runtime\n * signals, caches, generated files, etc.\n */\nexport interface ResolvedHomeCapabilities {\n hasMachinePreferences: boolean;\n hasFrameworkWorkspace: boolean;\n hasAppWorkspace: boolean;\n hasFrameworkDeveloperCapabilities: boolean;\n canUseFrameworkAssets: boolean;\n canUseAppRuntimeHome: boolean;\n}\n\nexport interface ResolvedHomes {\n workspaceScope: WorkspaceScopeResult;\n scope: WorkspaceScope;\n machine: ResolvedMachineHomes;\n framework: ResolvedFrameworkHomes;\n app: ResolvedAppHomes;\n capabilities: ResolvedHomeCapabilities;\n}\n\n/**\n * Build the machine-global Wildo home layout under the current user's home.\n */\nexport function resolveMachineLayout(userHome: string = homedir()): MachineLayoutPaths {\n const home = join(userHome, MACHINE_HOME_NAMES.MACHINE_HOME);\n const continuityHome = join(home, 'continuity');\n return {\n home,\n preferencesPath: join(home, AUTHORED_CONFIG_FILE_NAMES.PREFERENCES),\n continuityHome,\n continuityAuthorityDomainManifestPath: join(\n continuityHome,\n 'authority-domain.json',\n ),\n continuityDomainsHome: join(continuityHome, 'domains'),\n };\n}\n\n/**\n * Build the framework-owned homes and asset roots for a framework repository.\n */\nexport function resolveFrameworkLayout(frameworkRoot: string): FrameworkLayoutPaths {\n const markerHome = join(frameworkRoot, WORKSPACE_HOME_NAMES.FRAMEWORK_HOME);\n const engineHome = join(frameworkRoot, 'engine');\n const platformHome = join(frameworkRoot, 'platform');\n const providersHome = join(frameworkRoot, 'providers');\n const examplesHome = join(frameworkRoot, 'examples');\n const templatesHome = join(frameworkRoot, 'templates');\n const infraTemplatesHome = join(templatesHome, 'infra');\n const dockerImagesTemplatesHome = join(infraTemplatesHome, 'docker-images');\n const backendDockerImagesHome = join(dockerImagesTemplatesHome, 'backend');\n const frameworkKnowledgePackageHome = join(platformHome, 'factory', 'framework-knowledge');\n const frameworkKnowledgeSourceHome = join(frameworkKnowledgePackageHome, 'src');\n const frameworkKnowledgeOutputHome = join(frameworkKnowledgePackageHome, 'dist', 'knowledge');\n const releaseDistHome = join(markerHome, APP_RUNTIME_SUBDIR_NAMES.DIST);\n const releasePublishHome = join(releaseDistHome, 'publish');\n const releaseSecretsHome = join(markerHome, 'framework-secrets');\n return {\n repositoryRoot: frameworkRoot,\n rootPackageJsonPath: join(frameworkRoot, 'package.json'),\n pnpmLockfilePath: join(frameworkRoot, 'pnpm-lock.yaml'),\n engineHome,\n platformHome,\n providersHome,\n examplesHome,\n markerHome,\n declarationConfigPath: join(markerHome, AUTHORED_CONFIG_FILE_NAMES.FRAMEWORK),\n templatesHome,\n infraTemplatesHome,\n dockerComposeTemplatesHome: join(infraTemplatesHome, 'docker-compose'),\n ciTemplatesHome: join(infraTemplatesHome, 'ci'),\n k8sTemplatesHome: join(infraTemplatesHome, 'k8s'),\n dockerImagesTemplatesHome,\n platformBaseDockerfilePath: join(\n dockerImagesTemplatesHome,\n 'platform',\n 'Dockerfile.platform-base',\n ),\n backendBaseDockerfilePath: join(\n backendDockerImagesHome,\n 'Dockerfile.backend-base',\n ),\n backendJavaDockerfilePath: join(\n backendDockerImagesHome,\n 'Dockerfile.backend-base-java',\n ),\n docsHome: join(frameworkRoot, 'docs'),\n frameworkKnowledgePackageHome,\n frameworkKnowledgeSourceHome,\n frameworkKnowledgeAuthoredSkillsHome: join(frameworkKnowledgeSourceHome, 'skills'),\n frameworkKnowledgeAuthoredPlaybooksHome: join(frameworkKnowledgeSourceHome, 'playbooks'),\n frameworkKnowledgeAuthoredRulesHome: join(frameworkKnowledgeSourceHome, 'rules'),\n frameworkKnowledgeOutputHome,\n frameworkKnowledgeReferencesHome: join(frameworkKnowledgeOutputHome, 'references'),\n frameworkKnowledgeSkillsHome: join(frameworkKnowledgeOutputHome, 'skills'),\n frameworkKnowledgeRegistriesHome: join(frameworkKnowledgeOutputHome, 'registries'),\n frameworkKnowledgePlaybooksHome: join(frameworkKnowledgeOutputHome, 'playbooks'),\n frameworkKnowledgeRulesHome: join(frameworkKnowledgeOutputHome, 'rules'),\n releaseHome: markerHome,\n releaseDistHome,\n releasePublishHome,\n releaseSecretsHome,\n releaseSecretsPath: join(releaseSecretsHome, 'secrets.json'),\n npmPublishManifestsHome: join(releasePublishHome, 'npm-manifests'),\n configLoaderArtifactsHome: join(\n markerHome,\n APP_RUNTIME_SUBDIR_NAMES.DIST,\n APP_RUNTIME_SUBDIR_NAMES.CONFIG_LOADER,\n 'framework',\n ),\n };\n}\n\n/**\n * Build the app declaration-root and runtime-home layout for a SaaS app.\n */\nexport function resolveAppLayout(appRoot: string): AppLayoutPaths {\n const runtimeHome = join(appRoot, WORKSPACE_HOME_NAMES.APP_RUNTIME_HOME);\n const continuityHome = join(\n runtimeHome,\n APP_RUNTIME_SUBDIR_NAMES.CONTINUITY,\n );\n const distHome = join(runtimeHome, APP_RUNTIME_SUBDIR_NAMES.DIST);\n const applicationSpecificationsDistHome = join(\n distHome,\n APP_RUNTIME_SUBDIR_NAMES.APPLICATION_SPECIFICATIONS,\n );\n const temporaryHome = join(\n runtimeHome,\n APP_RUNTIME_SUBDIR_NAMES.TEMPORARY,\n );\n const runtimeInfrastructureHome = join(runtimeHome, APP_RUNTIME_SUBDIR_NAMES.INFRASTRUCTURE);\n const logsHome = join(runtimeHome, APP_RUNTIME_SUBDIR_NAMES.LOGS);\n return {\n declarationRoot: appRoot,\n declarationConfigPath: join(appRoot, AUTHORED_CONFIG_FILE_NAMES.SAAS),\n authoredInfrastructureHome: join(appRoot, APP_RUNTIME_SUBDIR_NAMES.INFRASTRUCTURE),\n runtimeHome,\n continuityHome,\n applicationSubjectManifestPath: join(\n continuityHome,\n APP_CONTINUITY_FILE_NAMES.APPLICATION_SUBJECT_MANIFEST,\n ),\n applicationContinuityBootstrapProfilePath: join(\n continuityHome,\n APP_CONTINUITY_FILE_NAMES.BOOTSTRAP_PROFILE,\n ),\n distHome,\n applicationSpecificationsDistHome,\n applicationSpecificationProjectionsHome: join(\n applicationSpecificationsDistHome,\n APP_RUNTIME_SUBDIR_NAMES.PROJECTIONS,\n ),\n stateHome: join(runtimeHome, APP_RUNTIME_SUBDIR_NAMES.STATE),\n temporaryHome,\n integrationTestsTemporaryHome: join(\n temporaryHome,\n APP_RUNTIME_SUBDIR_NAMES.INTEGRATION_TESTS,\n ),\n logsHome,\n companionLogsHome: join(logsHome, 'dev-companion'),\n localDataHome: join(runtimeHome, APP_RUNTIME_SUBDIR_NAMES.LOCAL_DATA),\n runtimeInfrastructureHome,\n runtimeEnvironmentsHome: join(runtimeInfrastructureHome, APP_RUNTIME_SUBDIR_NAMES.ENVIRONMENTS),\n deployArtifactsHome: join(runtimeHome, APP_RUNTIME_SUBDIR_NAMES.DEPLOY),\n frameworkScriptsHome: join(runtimeHome, APP_RUNTIME_SUBDIR_NAMES.FRAMEWORK_SCRIPTS),\n runtimeSignalsHome: join(runtimeHome, APP_RUNTIME_SUBDIR_NAMES.RUNTIME_SIGNALS),\n companionHome: join(runtimeHome, APP_RUNTIME_SUBDIR_NAMES.COMPANION),\n preferencesOverlayPath: join(runtimeHome, AUTHORED_CONFIG_FILE_NAMES.APP_LOCAL_PREFERENCES),\n configLoaderArtifactsHome: join(\n distHome,\n APP_RUNTIME_SUBDIR_NAMES.CONFIG_LOADER,\n 'saas',\n ),\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"workspace-homes.schemas.js","sourceRoot":"","sources":["../../../../src/workspace-scope/workspace-homes.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EACzB,wBAAwB,EACxB,2BAA2B,EAC3B,oBAAoB,GAGrB,MAAM,2BAA2B,CAAC;AA4NnC;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,QAAiB;IACpD,MAAM,IAAI,GAAG,2BAA2B,CAAC,QAAQ,CAAC,CAAC;IACnD,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;IAChD,OAAO;QACL,IAAI;QACJ,eAAe,EAAE,IAAI,CAAC,IAAI,EAAE,0BAA0B,CAAC,WAAW,CAAC;QACnE,cAAc;QACd,qCAAqC,EAAE,IAAI,CACzC,cAAc,EACd,uBAAuB,CACxB;QACD,qBAAqB,EAAE,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC;KACvD,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB,CAAC,aAAqB;IAC1D,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,EAAE,oBAAoB,CAAC,cAAc,CAAC,CAAC;IAC5E,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;IACjD,MAAM,YAAY,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;IACrD,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;IACvD,MAAM,YAAY,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;IACrD,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;IACv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AY,CAAC;QAC/F,mBAAmB,EAAE,IAAI,CAAC,WAAW,EAAE,wBAAwB,CAAC,MAAM,CAAC;QACvE,oBAAoB,EAAE,IAAI,CAAC,WAAW,EAAE,wBAAwB,CAAC,iBAAiB,CAAC;QACnF,kBAAkB,EAAE,IAAI,CAAC,WAAW,EAAE,wBAAwB,CAAC,eAAe,CAAC;QAC/E,aAAa,EAAE,IAAI,CAAC,WAAW,EAAE,wBAAwB,CAAC,SAAS,CAAC;QACpE,sBAAsB,EAAE,IAAI,CAAC,WAAW,EAAE,0BAA0B,CAAC,qBAAqB,CAAC;QAC3F,yBAAyB,EAAE,IAAI,CAC7B,QAAQ,EACR,wBAAwB,CAAC,aAAa,EACtC,MAAM,CACP;KACF,CAAC;AACJ,CAAC","sourcesContent":["import { join } from 'path';\nimport {\n AUTHORED_CONFIG_FILE_NAMES,\n APP_CONTINUITY_FILE_NAMES,\n APP_RUNTIME_SUBDIR_NAMES,\n resolveMachineWildoHomePath,\n WORKSPACE_HOME_NAMES,\n WorkspaceScope,\n type WorkspaceScopeResult,\n} from './workspace-scope.schemas';\n\nexport interface MachineLayoutPaths {\n home: string;\n preferencesPath: string;\n /** Machine-local root for all continuity authority domains and subjects. */\n continuityHome: string;\n /**\n * Machine-local authority-domain manifest.\n *\n * The manifest identifies a storage/writer namespace. It is deliberately\n * outside every subject directory because one local authority domain may\n * own several application subjects.\n */\n continuityAuthorityDomainManifestPath: string;\n /** Root containing `domains/<authority-domain-id>/subjects/...`. */\n continuityDomainsHome: string;\n}\n\nexport interface FrameworkLayoutPaths {\n repositoryRoot: string;\n rootPackageJsonPath: string;\n pnpmLockfilePath: string;\n engineHome: string;\n platformHome: string;\n /**\n * The THIRD workspace home (plan D9): one package per provider, several facet barrels each,\n * deliberately OUTSIDE `engine/` so that \"out of the core engine\" is a directory rather than a\n * convention. Named for the HOME, never for a package in it — which provider inhabits it first is\n * a decision of the slice that generates providers, not of the layout.\n *\n * It is a field here because this interface is what makes a home VISIBLE to tooling: publish\n * discovery, framework-knowledge generation and the anchor audit all take their scan roots from\n * `engineHome` + `platformHome`, and a home absent from that pair is not excluded — it is\n * unseen. An unseen home reports clean, which is the shape\n * `negative-results-require-a-positive-probe.md` exists for: a `@wildo_source` anchor in a\n * provider package would never reach a skill, and nothing would say so.\n */\n providersHome: string;\n examplesHome: string;\n markerHome: string;\n declarationConfigPath: string;\n templatesHome: string;\n infraTemplatesHome: string;\n dockerComposeTemplatesHome: string;\n ciTemplatesHome: string;\n k8sTemplatesHome: string;\n dockerImagesTemplatesHome: string;\n platformBaseDockerfilePath: string;\n backendBaseDockerfilePath: string;\n backendJavaDockerfilePath: string;\n docsHome: string;\n frameworkKnowledgePackageHome: string;\n frameworkKnowledgeSourceHome: string;\n /**\n * Home of **authored** skill folders (`src/skills/<skill_id>/SKILL.md` + supporting\n * markdown). Distinct from {@link frameworkKnowledgeSkillsHome}, which is the\n * **materialized** output home under `dist/knowledge/skills/`. Keeping the two\n * names clearly separated prevents accidental conflation between authored\n * source and generated artifact.\n */\n frameworkKnowledgeAuthoredSkillsHome: string;\n /**\n * Home of **authored** playbook folders\n * (`src/playbooks/<ref>/playbook.json` + `method.md`). Playbooks are the\n * meta-workflow artifact kind (app-creation methodology definitions) — a\n * distinct compilation lane from skills, so they get their own authored\n * home instead of polluting the skills router. Mirrors the\n * authored-vs-materialized split of\n * {@link frameworkKnowledgeAuthoredSkillsHome} /\n * {@link frameworkKnowledgeSkillsHome}.\n */\n frameworkKnowledgeAuthoredPlaybooksHome: string;\n /**\n * Home of **authored** always-on rules (`src/rules/*.md`).\n *\n * A rule is policy an application's coding agent should have at its elbow WITHOUT routing to a\n * skill first — the distinction the skills router cannot express, because a router match requires\n * the agent to already suspect the topic. Authored-vs-materialized split as above:\n * {@link frameworkKnowledgeRulesHome} is the compiled output.\n */\n frameworkKnowledgeAuthoredRulesHome: string;\n frameworkKnowledgeOutputHome: string;\n frameworkKnowledgeReferencesHome: string;\n frameworkKnowledgeSkillsHome: string;\n frameworkKnowledgeRegistriesHome: string;\n /** Materialized playbook output home under `dist/knowledge/playbooks/`. */\n frameworkKnowledgePlaybooksHome: string;\n /** Materialized rule output home under `dist/knowledge/rules/`. */\n frameworkKnowledgeRulesHome: string;\n releaseHome: string;\n releaseDistHome: string;\n releasePublishHome: string;\n releaseSecretsHome: string;\n releaseSecretsPath: string;\n npmPublishManifestsHome: string;\n configLoaderArtifactsHome: string;\n}\n\nexport interface AppLayoutPaths {\n declarationRoot: string;\n declarationConfigPath: string;\n authoredInfrastructureHome: string;\n runtimeHome: string;\n /** Tracked portable identity/bootstrap inputs for local continuity. */\n continuityHome: string;\n applicationSubjectManifestPath: string;\n applicationContinuityBootstrapProfilePath: string;\n distHome: string;\n /** Generated application-specification runtime outputs. */\n applicationSpecificationsDistHome: string;\n applicationSpecificationProjectionsHome: string;\n stateHome: string;\n /** Disposable application-owned workspaces; never application truth. */\n temporaryHome: string;\n integrationTestsTemporaryHome: string;\n logsHome: string;\n companionLogsHome: string;\n localDataHome: string;\n runtimeInfrastructureHome: string;\n runtimeEnvironmentsHome: string;\n /**\n * Root of the env-scoped deployment-artifact staging area\n * (`.wildo-saas/deploy/`). Per-env renders live at `<home>/<envName>/`.\n * Always secret-bearing — see {@link APP_RUNTIME_SUBDIR_NAMES.DEPLOY}.\n */\n deployArtifactsHome: string;\n frameworkScriptsHome: string;\n runtimeSignalsHome: string;\n companionHome: string;\n preferencesOverlayPath: string;\n configLoaderArtifactsHome: string;\n}\n\nexport interface ResolvedMachineHomes {\n layout: MachineLayoutPaths;\n hasPreferencesFile: boolean;\n}\n\nexport interface ResolvedFrameworkHomes {\n repositoryRoot: string | null;\n markerHome: string | null;\n declarationConfigPath: string | null;\n layout: FrameworkLayoutPaths | null;\n /**\n * True ONLY when the caller's `cwd` sits inside a framework workspace that\n * was discovered by walking up for `wildo-framework.info.json`. A framework\n * root derived from `frameworkPathHint` (machine preferences) populates\n * `repositoryRoot` and `layout`, but leaves this flag `false` because the\n * caller is NOT operating from inside the framework repo — they merely have\n * a pointer to it. Consumers that need \"am I currently developing the\n * framework?\" must read this field; consumers that need \"can I read\n * framework-owned assets from here?\" must read\n * `ResolvedHomeCapabilities.canUseFrameworkAssets`.\n */\n isInFrameworkWorkspace: boolean;\n}\n\nexport interface ResolvedAppHomes {\n declarationRoot: string | null;\n runtimeHome: string | null;\n saasConfigPath: string | null;\n layout: AppLayoutPaths | null;\n isInAppWorkspace: boolean;\n}\n\n/**\n * Pre-computed, semantic booleans that gate downstream CLI / companion /\n * runtime behavior based on the resolved-homes snapshot.\n *\n * Each flag is intentionally separate because they answer different questions\n * — merging any two of them (\"are we in a framework workspace?\" vs \"can we\n * reach framework assets?\") would silently reintroduce the Phase 5\n * env-vs-context confusion we explicitly killed:\n *\n * - `hasMachinePreferences` — A `preferences.json` file exists under the\n * machine Wildo home. `canUseFrameworkAssets` can be true without this\n * flag being true (e.g. the preferences hint was seeded in a session that\n * never persisted), and vice versa.\n * - `hasFrameworkWorkspace` — The caller's `cwd` is inside a framework\n * workspace (walk-up found `wildo-framework.info.json`). Equivalent to\n * `framework.isInFrameworkWorkspace`; duplicated here so capability checks\n * are one-stop-shop without having to reach into the nested roots.\n * - `hasAppWorkspace` — The caller's `cwd` is inside a SaaS app workspace\n * (walk-up found `wildo.saas.config.ts`). Equivalent to\n * `app.isInAppWorkspace`.\n * - `hasFrameworkDeveloperCapabilities` — Either the operator is actually\n * sitting inside the framework workspace (`hasFrameworkWorkspace`) OR the\n * `isFrameworkDeveloperHint` from preferences is true. This is metadata\n * used by commands that surface framework-dev-only tooling — it never\n * participates in path resolution.\n * - `canUseFrameworkAssets` — The resolved snapshot has a usable framework\n * `repositoryRoot` (either because the caller is inside one, or because a\n * validated hint pointed at one). This is the flag used by consumers that\n * need to READ framework-owned paths (scripts, shared dist, etc.) — it is\n * intentionally broader than `hasFrameworkWorkspace` so that apps can\n * reach framework assets without the caller pretending to be \"in\" the\n * framework workspace.\n * - `canUseAppRuntimeHome` — The resolved snapshot has a usable\n * `.wildo-saas/` runtime home. Required by anything that writes runtime\n * signals, caches, generated files, etc.\n */\nexport interface ResolvedHomeCapabilities {\n hasMachinePreferences: boolean;\n hasFrameworkWorkspace: boolean;\n hasAppWorkspace: boolean;\n hasFrameworkDeveloperCapabilities: boolean;\n canUseFrameworkAssets: boolean;\n canUseAppRuntimeHome: boolean;\n}\n\nexport interface ResolvedHomes {\n workspaceScope: WorkspaceScopeResult;\n scope: WorkspaceScope;\n machine: ResolvedMachineHomes;\n framework: ResolvedFrameworkHomes;\n app: ResolvedAppHomes;\n capabilities: ResolvedHomeCapabilities;\n}\n\n/**\n * Build the machine-global Wildo home layout: under `$WILDO_HOME` when set, else the current user's\n * `~/.wildo` — the one rule `resolveMachineWildoHomePath` owns and both launchers apply. An explicit\n * `userHome` answers about that home and ignores the environment.\n */\nexport function resolveMachineLayout(userHome?: string): MachineLayoutPaths {\n const home = resolveMachineWildoHomePath(userHome);\n const continuityHome = join(home, 'continuity');\n return {\n home,\n preferencesPath: join(home, AUTHORED_CONFIG_FILE_NAMES.PREFERENCES),\n continuityHome,\n continuityAuthorityDomainManifestPath: join(\n continuityHome,\n 'authority-domain.json',\n ),\n continuityDomainsHome: join(continuityHome, 'domains'),\n };\n}\n\n/**\n * Build the framework-owned homes and asset roots for a framework repository.\n */\nexport function resolveFrameworkLayout(frameworkRoot: string): FrameworkLayoutPaths {\n const markerHome = join(frameworkRoot, WORKSPACE_HOME_NAMES.FRAMEWORK_HOME);\n const engineHome = join(frameworkRoot, 'engine');\n const platformHome = join(frameworkRoot, 'platform');\n const providersHome = join(frameworkRoot, 'providers');\n const examplesHome = join(frameworkRoot, 'examples');\n const templatesHome = join(frameworkRoot, 'templates');\n const infraTemplatesHome = join(templatesHome, 'infra');\n const dockerImagesTemplatesHome = join(infraTemplatesHome, 'docker-images');\n const backendDockerImagesHome = join(dockerImagesTemplatesHome, 'backend');\n const frameworkKnowledgePackageHome = join(platformHome, 'factory', 'framework-knowledge');\n const frameworkKnowledgeSourceHome = join(frameworkKnowledgePackageHome, 'src');\n const frameworkKnowledgeOutputHome = join(frameworkKnowledgePackageHome, 'dist', 'knowledge');\n const releaseDistHome = join(markerHome, APP_RUNTIME_SUBDIR_NAMES.DIST);\n const releasePublishHome = join(releaseDistHome, 'publish');\n const releaseSecretsHome = join(markerHome, 'framework-secrets');\n return {\n repositoryRoot: frameworkRoot,\n rootPackageJsonPath: join(frameworkRoot, 'package.json'),\n pnpmLockfilePath: join(frameworkRoot, 'pnpm-lock.yaml'),\n engineHome,\n platformHome,\n providersHome,\n examplesHome,\n markerHome,\n declarationConfigPath: join(markerHome, AUTHORED_CONFIG_FILE_NAMES.FRAMEWORK),\n templatesHome,\n infraTemplatesHome,\n dockerComposeTemplatesHome: join(infraTemplatesHome, 'docker-compose'),\n ciTemplatesHome: join(infraTemplatesHome, 'ci'),\n k8sTemplatesHome: join(infraTemplatesHome, 'k8s'),\n dockerImagesTemplatesHome,\n platformBaseDockerfilePath: join(\n dockerImagesTemplatesHome,\n 'platform',\n 'Dockerfile.platform-base',\n ),\n backendBaseDockerfilePath: join(\n backendDockerImagesHome,\n 'Dockerfile.backend-base',\n ),\n backendJavaDockerfilePath: join(\n backendDockerImagesHome,\n 'Dockerfile.backend-base-java',\n ),\n docsHome: join(frameworkRoot, 'docs'),\n frameworkKnowledgePackageHome,\n frameworkKnowledgeSourceHome,\n frameworkKnowledgeAuthoredSkillsHome: join(frameworkKnowledgeSourceHome, 'skills'),\n frameworkKnowledgeAuthoredPlaybooksHome: join(frameworkKnowledgeSourceHome, 'playbooks'),\n frameworkKnowledgeAuthoredRulesHome: join(frameworkKnowledgeSourceHome, 'rules'),\n frameworkKnowledgeOutputHome,\n frameworkKnowledgeReferencesHome: join(frameworkKnowledgeOutputHome, 'references'),\n frameworkKnowledgeSkillsHome: join(frameworkKnowledgeOutputHome, 'skills'),\n frameworkKnowledgeRegistriesHome: join(frameworkKnowledgeOutputHome, 'registries'),\n frameworkKnowledgePlaybooksHome: join(frameworkKnowledgeOutputHome, 'playbooks'),\n frameworkKnowledgeRulesHome: join(frameworkKnowledgeOutputHome, 'rules'),\n releaseHome: markerHome,\n releaseDistHome,\n releasePublishHome,\n releaseSecretsHome,\n releaseSecretsPath: join(releaseSecretsHome, 'secrets.json'),\n npmPublishManifestsHome: join(releasePublishHome, 'npm-manifests'),\n configLoaderArtifactsHome: join(\n markerHome,\n APP_RUNTIME_SUBDIR_NAMES.DIST,\n APP_RUNTIME_SUBDIR_NAMES.CONFIG_LOADER,\n 'framework',\n ),\n };\n}\n\n/**\n * Build the app declaration-root and runtime-home layout for a SaaS app.\n */\nexport function resolveAppLayout(appRoot: string): AppLayoutPaths {\n const runtimeHome = join(appRoot, WORKSPACE_HOME_NAMES.APP_RUNTIME_HOME);\n const continuityHome = join(\n runtimeHome,\n APP_RUNTIME_SUBDIR_NAMES.CONTINUITY,\n );\n const distHome = join(runtimeHome, APP_RUNTIME_SUBDIR_NAMES.DIST);\n const applicationSpecificationsDistHome = join(\n distHome,\n APP_RUNTIME_SUBDIR_NAMES.APPLICATION_SPECIFICATIONS,\n );\n const temporaryHome = join(\n runtimeHome,\n APP_RUNTIME_SUBDIR_NAMES.TEMPORARY,\n );\n const runtimeInfrastructureHome = join(runtimeHome, APP_RUNTIME_SUBDIR_NAMES.INFRASTRUCTURE);\n const logsHome = join(runtimeHome, APP_RUNTIME_SUBDIR_NAMES.LOGS);\n return {\n declarationRoot: appRoot,\n declarationConfigPath: join(appRoot, AUTHORED_CONFIG_FILE_NAMES.SAAS),\n authoredInfrastructureHome: join(appRoot, APP_RUNTIME_SUBDIR_NAMES.INFRASTRUCTURE),\n runtimeHome,\n continuityHome,\n applicationSubjectManifestPath: join(\n continuityHome,\n APP_CONTINUITY_FILE_NAMES.APPLICATION_SUBJECT_MANIFEST,\n ),\n applicationContinuityBootstrapProfilePath: join(\n continuityHome,\n APP_CONTINUITY_FILE_NAMES.BOOTSTRAP_PROFILE,\n ),\n distHome,\n applicationSpecificationsDistHome,\n applicationSpecificationProjectionsHome: join(\n applicationSpecificationsDistHome,\n APP_RUNTIME_SUBDIR_NAMES.PROJECTIONS,\n ),\n stateHome: join(runtimeHome, APP_RUNTIME_SUBDIR_NAMES.STATE),\n temporaryHome,\n integrationTestsTemporaryHome: join(\n temporaryHome,\n APP_RUNTIME_SUBDIR_NAMES.INTEGRATION_TESTS,\n ),\n logsHome,\n companionLogsHome: join(logsHome, 'dev-companion'),\n localDataHome: join(runtimeHome, APP_RUNTIME_SUBDIR_NAMES.LOCAL_DATA),\n runtimeInfrastructureHome,\n runtimeEnvironmentsHome: join(runtimeInfrastructureHome, APP_RUNTIME_SUBDIR_NAMES.ENVIRONMENTS),\n deployArtifactsHome: join(runtimeHome, APP_RUNTIME_SUBDIR_NAMES.DEPLOY),\n frameworkScriptsHome: join(runtimeHome, APP_RUNTIME_SUBDIR_NAMES.FRAMEWORK_SCRIPTS),\n runtimeSignalsHome: join(runtimeHome, APP_RUNTIME_SUBDIR_NAMES.RUNTIME_SIGNALS),\n companionHome: join(runtimeHome, APP_RUNTIME_SUBDIR_NAMES.COMPANION),\n preferencesOverlayPath: join(runtimeHome, AUTHORED_CONFIG_FILE_NAMES.APP_LOCAL_PREFERENCES),\n configLoaderArtifactsHome: join(\n distHome,\n APP_RUNTIME_SUBDIR_NAMES.CONFIG_LOADER,\n 'saas',\n ),\n };\n}\n"]}
|