@codelitdev/platform-cli 0.7.0 → 0.8.1

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/README.md CHANGED
@@ -48,7 +48,9 @@ bunx @codelitdev/platform-cli@0.2.0 sync
48
48
  replaces a file only when its hash still matches the manifest, and creates a
49
49
  newly managed file only when it is absent or already identical. Any other
50
50
  difference is a conflict: nothing is written, and you reconcile the file by
51
- hand. Writes require a clean Git worktree; `--dry-run` works in a dirty one. If
51
+ hand. To reconcile, make the file match this release's template, for example
52
+ by moving a product change into a product-owned file; the next `sync` records
53
+ it. Writes require a clean Git worktree; `--dry-run` works in a dirty one. If
52
54
  writing fails, the CLI restores the files it changed.
53
55
 
54
56
  When a release requires changes to product-owned files, its release notes say
package/dist/create.js CHANGED
@@ -67,7 +67,7 @@ function validateGeneratedMetadata(root) {
67
67
  throw new Error("create_tokens_unresolved");
68
68
  }
69
69
  const packageJson = JSON.parse(readFileSync(path.join(root, "package.json"), "utf8"));
70
- if (packageJson.packageManager !== "bun@1.4.1") {
70
+ if (packageJson.packageManager !== "bun@1.4.4") {
71
71
  throw new Error("create_metadata_invalid");
72
72
  }
73
73
  }
package/dist/preset.json CHANGED
@@ -1,46 +1,46 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "runtime": {
4
- "bun": "1.4.1"
4
+ "bun": "1.4.4"
5
5
  },
6
6
  "packages": {
7
7
  "@codelitdev/platform": {
8
- "recommended": "0.7.0",
8
+ "recommended": "0.8.1",
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.7.0",
13
+ "recommended": "0.8.1",
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.7.0",
18
+ "recommended": "0.8.1",
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.7.0",
23
+ "recommended": "0.8.1",
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.7.0",
28
+ "recommended": "0.8.1",
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.7.0",
33
+ "recommended": "0.8.1",
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.7.0",
38
+ "recommended": "0.8.1",
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.7.0",
43
+ "recommended": "0.8.1",
44
44
  "supported": ">=0.1.0-alpha.7 <1",
45
45
  "minimumSecure": "0.1.0-alpha.7"
46
46
  }
@@ -59,11 +59,11 @@
59
59
  "drizzle-orm": "0.45.2",
60
60
  "drizzle-kit": "0.31.10",
61
61
  "pino": "9.6.0",
62
- "@types/bun": "1.4.1",
62
+ "@types/bun": "1.4.4",
63
63
  "@electric-sql/pglite": "0.5.8",
64
64
  "@modelcontextprotocol/sdk": "1.30.0",
65
65
  "dodopayments": "2.48.0",
66
- "next": "16.3.6",
66
+ "next": "16.4.3",
67
67
  "react": "19.2.8",
68
68
  "react-dom": "19.2.8"
69
69
  }
package/dist/sync.js CHANGED
@@ -20,16 +20,19 @@ export function syncProduct(input) {
20
20
  const plannedWrites = new Map();
21
21
  const managedFiles = {};
22
22
  // Compute and validate the complete plan before touching any file. A
23
- // managed hash mismatch is a conflict, not a best-effort warning. A new
24
- // managed file may be adopted only when it is absent or already identical.
23
+ // managed hash mismatch is a conflict, not a best-effort warning. A file
24
+ // that already matches the template is never a conflict: that is how a
25
+ // product reconciles a conflict by hand, and how a new managed file is
26
+ // adopted when it exists.
25
27
  for (const rel of MANAGED_FILES) {
26
28
  const file = path.join(root, rel);
27
29
  const desired = renderTemplateFile(rel, manifest.product);
28
30
  const recorded = manifest.managedFiles[rel];
29
31
  const current = existsSync(file) ? readFileSync(file, "utf8") : undefined;
30
- const drifted = recorded === undefined
31
- ? current !== undefined && current !== desired
32
- : current === undefined || sha256File(file) !== recorded;
32
+ const drifted = current !== desired &&
33
+ (recorded === undefined
34
+ ? current !== undefined
35
+ : current === undefined || sha256File(file) !== recorded);
33
36
  if (drifted) {
34
37
  conflicts.push(rel);
35
38
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codelitdev/platform-cli",
3
- "version": "0.7.0",
3
+ "version": "0.8.1",
4
4
  "description": "Create, check, and sync CodeLit Platform products",
5
5
  "author": "CodeLit",
6
6
  "type": "module",
@@ -18,7 +18,7 @@ jobs:
18
18
  - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
19
19
  - uses: oven-sh/setup-bun@v2
20
20
  with:
21
- bun-version: 1.4.1
21
+ bun-version: 1.4.4
22
22
  # `platform-cli create` intentionally does not resolve dependencies.
23
23
  # Bootstrap the product lockfile on its first run; all subsequent CI
24
24
  # installs are immutable and use the frozen lockfile below.
@@ -15,7 +15,7 @@ jobs:
15
15
  - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
16
16
  - uses: oven-sh/setup-bun@v2
17
17
  with:
18
- bun-version: 1.4.1
18
+ bun-version: 1.4.4
19
19
  # `platform-cli create` intentionally does not resolve dependencies.
20
20
  # Bootstrap the product lockfile on its first run; all subsequent CI
21
21
  # installs are immutable and use the frozen lockfile below.
@@ -51,6 +51,6 @@
51
51
  "@types/swagger-ui-express": "^4.1.8",
52
52
  "drizzle-kit": "0.31.10",
53
53
  "typescript": "5.9.3",
54
- "@types/bun": "1.4.1"
54
+ "@types/bun": "1.4.4"
55
55
  }
56
56
  }
@@ -12,7 +12,7 @@
12
12
  "dependencies": {
13
13
  "@codelitdev/design-system": "workspace:*",
14
14
  "@codelitdev/observability": "workspace:*",
15
- "next": "16.3.6",
15
+ "next": "16.4.3",
16
16
  "posthog-js": "^1.427.2",
17
17
  "react": "19.2.8",
18
18
  "react-dom": "19.2.8"
@@ -3,9 +3,9 @@
3
3
  "private": true,
4
4
  "version": "0.0.0",
5
5
  "type": "module",
6
- "packageManager": "bun@1.4.1",
6
+ "packageManager": "bun@1.4.4",
7
7
  "engines": {
8
- "bun": ">=1.4.1"
8
+ "bun": ">=1.4.4"
9
9
  },
10
10
  "workspaces": [
11
11
  "apps/*",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "devDependencies": {
27
27
  "@biomejs/biome": "2.5.12",
28
- "@types/bun": "1.4.1"
28
+ "@types/bun": "1.4.4"
29
29
  },
30
30
  "scripts": {
31
31
  "lint": "bun run --workspaces --if-present lint",