@cosmicdrift/kumiko-cli 0.378.0 → 0.380.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-cli",
3
- "version": "0.378.0",
3
+ "version": "0.380.0",
4
4
  "description": "CLI for Kumiko apps. `bunx @cosmicdrift/kumiko-cli new app <name>` scaffolds a runnable workspace; `add feature <name>` mounts a feature; `check` runs boot validation plus the guard suites with the step list derived from kumiko.json; `agent lint`, `project` and `consumer` operate on an existing app; `handbuch build` renders the HTML handbuch.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -36,18 +36,18 @@
36
36
  }
37
37
  },
38
38
  "dependencies": {
39
- "@cosmicdrift/kumiko-dev-server": "0.378.0",
40
- "@cosmicdrift/kumiko-guards": "0.378.0",
41
- "@cosmicdrift/kumiko-server-runtime": "0.378.0",
42
- "@cosmicdrift/kumiko-testing": "0.378.0",
39
+ "@cosmicdrift/kumiko-dev-server": "0.380.0",
40
+ "@cosmicdrift/kumiko-guards": "0.380.0",
41
+ "@cosmicdrift/kumiko-server-runtime": "0.380.0",
42
+ "@cosmicdrift/kumiko-testing": "0.380.0",
43
43
  "marked": "^18.0.3",
44
44
  "zod": "^4.4.3"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "sharp": "^0.35.5",
48
- "@cosmicdrift/kumiko-bundled-features": ">=0.353.0 <1.0.0",
49
- "@cosmicdrift/kumiko-framework": ">=0.353.0 <1.0.0",
50
- "@cosmicdrift/kumiko-renderer": ">=0.353.0 <1.0.0"
48
+ "@cosmicdrift/kumiko-bundled-features": "0.380.0",
49
+ "@cosmicdrift/kumiko-framework": "0.380.0",
50
+ "@cosmicdrift/kumiko-renderer": "0.380.0"
51
51
  },
52
52
  "peerDependenciesMeta": {
53
53
  "sharp": {
@@ -64,9 +64,9 @@
64
64
  }
65
65
  },
66
66
  "devDependencies": {
67
- "@cosmicdrift/kumiko-bundled-features": "0.378.0",
68
- "@cosmicdrift/kumiko-framework": "0.378.0",
69
- "@cosmicdrift/kumiko-renderer": "0.378.0",
67
+ "@cosmicdrift/kumiko-bundled-features": "0.380.0",
68
+ "@cosmicdrift/kumiko-framework": "0.380.0",
69
+ "@cosmicdrift/kumiko-renderer": "0.380.0",
70
70
  "sharp": "^0.35.5"
71
71
  },
72
72
  "publishConfig": {
package/src/changes.json CHANGED
@@ -1,4 +1,10 @@
1
1
  [
2
+ {
3
+ "version": "0.379.0",
4
+ "type": "improvement",
5
+ "title": "Internal peer dependencies are published as exact versions",
6
+ "detail": "The peer dependencies between the Kumiko packages (cli, guards, bundled-features, testing) are workspace:* in the repo, so publish pins them to the release version instead of an open range."
7
+ },
2
8
  {
3
9
  "version": "0.377.0",
4
10
  "type": "improvement",
@@ -41,7 +41,7 @@ export async function runManagedCheckStep(
41
41
  const local = result.files.filter((report) => report.state === "local");
42
42
  const okCount = result.files.length - drift.length - local.length;
43
43
  out.log(` ${okCount}/${result.files.length} managed file(s) match the installed template`);
44
- for (const warning of result.warnings) out.log(` ! ${warning}`);
44
+ for (const error of result.errors) out.log(` ✗ ${error}`);
45
45
  for (const report of local) out.log(` ~ ${report.path}: ${describeReport(report)}`);
46
46
  for (const report of drift) {
47
47
  out.log(` ${result.adopted ? "✗" : "!"} ${report.path}: ${describeReport(report)}`);
@@ -49,11 +49,10 @@ export async function runManagedCheckStep(
49
49
  printIndented(out, report.diff);
50
50
  }
51
51
  }
52
- if (drift.length === 0) return 0;
53
- out.log(" Fix: kumiko sync-managed --write (files without a marker: add --adopt)");
54
- if (!result.adopted) {
55
- out.log(` ${NOT_ADOPTED_NOTE}`);
56
- return 0;
52
+ if (drift.length > 0) {
53
+ out.log(" Fix: kumiko sync-managed --write (files without a marker: add --adopt)");
54
+ if (!result.adopted) out.log(` ${NOT_ADOPTED_NOTE}`);
57
55
  }
58
- return 1;
56
+ const driftFails = result.adopted && drift.length > 0;
57
+ return driftFails || result.errors.length > 0 ? 1 : 0;
59
58
  }
@@ -26,7 +26,7 @@ export async function runSyncManaged(ctx: CliCommandContext): Promise<number> {
26
26
  appRoot: ctx.cwd,
27
27
  uiRoots: manifest.uiRoots ?? [],
28
28
  });
29
- for (const warning of managed.listManagedWarnings(facts)) ctx.out.err(` ! ${warning}`);
29
+ for (const error of managed.listManagedErrors(facts)) ctx.out.err(` ✗ ${error}`);
30
30
  const actions = managed.syncManagedFiles(facts, { write, adopt: ctx.argv.includes("--adopt") });
31
31
  ctx.out.log("");
32
32
  for (const entry of actions) {