@cosmicdrift/kumiko-cli 0.294.0 → 0.295.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.
Files changed (2) hide show
  1. package/package.json +7 -6
  2. package/src/index.ts +13 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-cli",
3
- "version": "0.294.0",
3
+ "version": "0.295.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.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -35,11 +35,12 @@
35
35
  }
36
36
  },
37
37
  "dependencies": {
38
- "@cosmicdrift/kumiko-bundled-features": "0.294.0",
39
- "@cosmicdrift/kumiko-dev-server": "0.294.0",
40
- "@cosmicdrift/kumiko-framework": "0.294.0",
41
- "@cosmicdrift/kumiko-guards": "0.294.0",
42
- "@cosmicdrift/kumiko-repo-manifest": "0.294.0",
38
+ "@cosmicdrift/kumiko-bundled-features": "0.295.0",
39
+ "@cosmicdrift/kumiko-dev-server": "0.295.0",
40
+ "@cosmicdrift/kumiko-framework": "0.295.0",
41
+ "@cosmicdrift/kumiko-guards": "0.295.0",
42
+ "@cosmicdrift/kumiko-repo-manifest": "0.295.0",
43
+ "@cosmicdrift/kumiko-testing": "0.295.0",
43
44
  "zod": "^4.4.3"
44
45
  },
45
46
  "publishConfig": {
package/src/index.ts CHANGED
@@ -9,7 +9,12 @@
9
9
  // `consumer`). Workspace-only maintainer commands (ci:guards, dev, build, …)
10
10
  // stay in the framework repo's bin/kumiko.ts.
11
11
 
12
- import { scaffoldApp, scaffoldAppFeature } from "@cosmicdrift/kumiko-dev-server";
12
+ import {
13
+ resolveFrameworkVersion,
14
+ scaffoldApp,
15
+ scaffoldAppFeature,
16
+ } from "@cosmicdrift/kumiko-dev-server";
17
+ import { renderTestSetup } from "@cosmicdrift/kumiko-testing/scaffold";
13
18
  import type { CliCommand } from "./commands";
14
19
  import { APP_COMMANDS, findAppCommand } from "./commands";
15
20
  import type { Output } from "./output";
@@ -73,7 +78,13 @@ async function runNew(args: readonly string[], out: Output, cwd: string): Promis
73
78
  return 1;
74
79
  }
75
80
  try {
76
- const result = await scaffoldApp({ name, destination: `${cwd}/${name}` });
81
+ const frameworkVersion = resolveFrameworkVersion();
82
+ const result = await scaffoldApp({
83
+ name,
84
+ destination: `${cwd}/${name}`,
85
+ testSetup: renderTestSetup,
86
+ ...(frameworkVersion !== undefined && { frameworkVersion }),
87
+ });
77
88
  out.log(`✓ Scaffolded ${result.appName} → ${result.destination}`);
78
89
  out.log("");
79
90
  for (const f of result.files) out.log(` ${f}`);