@codelitdev/platform-cli 0.8.1 → 0.9.0
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/preset.d.ts +4 -2
- package/dist/preset.js +17 -1
- package/dist/preset.json +9 -9
- package/package.json +1 -1
package/dist/preset.d.ts
CHANGED
|
@@ -5,8 +5,10 @@ export type PackagePin = {
|
|
|
5
5
|
};
|
|
6
6
|
/**
|
|
7
7
|
* Compatibility rules for products: recommended, supported, and minimum-secure
|
|
8
|
-
* versions of each @codelitdev package, plus
|
|
9
|
-
*
|
|
8
|
+
* versions of each @codelitdev package, plus pins for the external packages
|
|
9
|
+
* the template uses. An external pin is the exact version `create` writes and
|
|
10
|
+
* the floor `doctor` accepts: any later release on the same caret line passes
|
|
11
|
+
* (ADR 0017). `scripts/sync-preset.mjs` writes `recommended`
|
|
10
12
|
* and `external`; `supported` and `minimumSecure` are hand-maintained.
|
|
11
13
|
*/
|
|
12
14
|
export type PresetManifest = {
|
package/dist/preset.js
CHANGED
|
@@ -69,12 +69,28 @@ function satisfies(version, range) {
|
|
|
69
69
|
return result === 0;
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* `^pin`: at or above the pin without crossing the next breaking line
|
|
74
|
+
* (the major, or the minor while the major is 0). Lets products take patch
|
|
75
|
+
* and minor security fixes without a preset release.
|
|
76
|
+
*/
|
|
77
|
+
function satisfiesCaret(version, pin) {
|
|
78
|
+
const v = parseVersion(version);
|
|
79
|
+
const p = parseVersion(pin);
|
|
80
|
+
if (!v || !p)
|
|
81
|
+
return cmp(version, pin) === 0;
|
|
82
|
+
if (v.major !== p.major)
|
|
83
|
+
return false;
|
|
84
|
+
if (p.major === 0 && v.minor !== p.minor)
|
|
85
|
+
return false;
|
|
86
|
+
return cmp(version, pin) >= 0;
|
|
87
|
+
}
|
|
72
88
|
export function validateResolvedVersions(resolved, manifest = loadPresetManifest()) {
|
|
73
89
|
const issues = [];
|
|
74
90
|
for (const [name, version] of Object.entries(resolved)) {
|
|
75
91
|
const pin = manifest.packages[name];
|
|
76
92
|
if (!pin && name in manifest.external) {
|
|
77
|
-
if (
|
|
93
|
+
if (!satisfiesCaret(version, manifest.external[name])) {
|
|
78
94
|
issues.push({
|
|
79
95
|
packageName: name,
|
|
80
96
|
reason: "external_mismatch",
|
package/dist/preset.json
CHANGED
|
@@ -5,42 +5,42 @@
|
|
|
5
5
|
},
|
|
6
6
|
"packages": {
|
|
7
7
|
"@codelitdev/platform": {
|
|
8
|
-
"recommended": "0.
|
|
8
|
+
"recommended": "0.9.0",
|
|
9
9
|
"supported": ">=0.1.0-alpha.0 <2",
|
|
10
10
|
"minimumSecure": "0.1.0-alpha.0"
|
|
11
11
|
},
|
|
12
12
|
"@codelitdev/observability": {
|
|
13
|
-
"recommended": "0.
|
|
13
|
+
"recommended": "0.9.0",
|
|
14
14
|
"supported": ">=0.1.0-alpha.0 <2",
|
|
15
15
|
"minimumSecure": "0.1.0-alpha.0"
|
|
16
16
|
},
|
|
17
17
|
"@codelitdev/mcp-server-kit": {
|
|
18
|
-
"recommended": "0.
|
|
18
|
+
"recommended": "0.9.0",
|
|
19
19
|
"supported": ">=0.1.0-alpha.0 <2",
|
|
20
20
|
"minimumSecure": "0.1.0-alpha.0"
|
|
21
21
|
},
|
|
22
22
|
"@codelitdev/platform-conformance": {
|
|
23
|
-
"recommended": "0.
|
|
23
|
+
"recommended": "0.9.0",
|
|
24
24
|
"supported": ">=0.1.0-alpha.0 <2",
|
|
25
25
|
"minimumSecure": "0.1.0-alpha.0"
|
|
26
26
|
},
|
|
27
27
|
"@codelitdev/platform-cli": {
|
|
28
|
-
"recommended": "0.
|
|
28
|
+
"recommended": "0.9.0",
|
|
29
29
|
"supported": ">=0.1.0-alpha.0 <2",
|
|
30
30
|
"minimumSecure": "0.1.0-alpha.0"
|
|
31
31
|
},
|
|
32
32
|
"@codelitdev/billing": {
|
|
33
|
-
"recommended": "0.
|
|
33
|
+
"recommended": "0.9.0",
|
|
34
34
|
"supported": ">=0.1.0-alpha.4 <1",
|
|
35
35
|
"minimumSecure": "0.1.0-alpha.4"
|
|
36
36
|
},
|
|
37
37
|
"@codelitdev/oauth-server-kit": {
|
|
38
|
-
"recommended": "0.
|
|
38
|
+
"recommended": "0.9.0",
|
|
39
39
|
"supported": ">=0.1.0-alpha.2 <1",
|
|
40
40
|
"minimumSecure": "0.1.0-alpha.2"
|
|
41
41
|
},
|
|
42
42
|
"@codelitdev/design-system": {
|
|
43
|
-
"recommended": "0.
|
|
43
|
+
"recommended": "0.9.0",
|
|
44
44
|
"supported": ">=0.1.0-alpha.7 <1",
|
|
45
45
|
"minimumSecure": "0.1.0-alpha.7"
|
|
46
46
|
}
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"pino": "9.6.0",
|
|
62
62
|
"@types/bun": "1.4.4",
|
|
63
63
|
"@electric-sql/pglite": "0.5.8",
|
|
64
|
-
"@modelcontextprotocol/sdk": "1.
|
|
64
|
+
"@modelcontextprotocol/sdk": "1.32.1",
|
|
65
65
|
"dodopayments": "2.48.0",
|
|
66
66
|
"next": "16.4.3",
|
|
67
67
|
"react": "19.2.8",
|