@cosmicdrift/kumiko-dev-server 0.341.0 → 0.342.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.
@@ -37,6 +37,8 @@ export async function scaffoldApp(options) {
37
37
  files.push("package.json");
38
38
  write(join(destination, "tsconfig.json"), renderTsconfig());
39
39
  files.push("tsconfig.json");
40
+ write(join(destination, "kumiko.json"), renderKumikoManifest());
41
+ files.push("kumiko.json");
40
42
  write(join(destination, "biome.json"), renderBiomeJson());
41
43
  files.push("biome.json");
42
44
  if (testSetup === undefined) {
@@ -752,6 +754,16 @@ function renderKumikoSchema() {
752
754
  "",
753
755
  ].join("\n");
754
756
  }
757
+ // `kumiko check` fails a kind "app" without uiRoots, so a fresh app must declare them.
758
+ function renderKumikoManifest() {
759
+ return `${JSON.stringify({
760
+ kind: "app",
761
+ sourceRoots: ["src", "bin"],
762
+ testGlobs: ["src/**/*.{test,integration}.{ts,tsx}"],
763
+ uiRoots: ["src/features/*/web"],
764
+ excludes: ["**/node_modules/**", "**/dist/**"],
765
+ }, null, 2)}\n`;
766
+ }
755
767
  function renderBinKumiko() {
756
768
  return [
757
769
  "#!/usr/bin/env bun",
@@ -761,8 +773,10 @@ function renderBinKumiko() {
761
773
  "// consumer status|restart <name>` to recover a dead event consumer without",
762
774
  "// ad-hoc SQL. kumiko-build bundles this file to dist-server/kumiko.js.",
763
775
  "",
776
+ 'import { frameworkCoreEnvSchema } from "@cosmicdrift/kumiko-dev-server/env-schema";',
764
777
  'import { composeFeatures } from "@cosmicdrift/kumiko-server-runtime/compose-features";',
765
778
  'import { runConsumerCli } from "@cosmicdrift/kumiko-framework/consumer-cli";',
779
+ 'import { composeEnvSchema, kmsSlotsOf } from "@cosmicdrift/kumiko-framework/env";',
766
780
  'import { runSchemaCli } from "@cosmicdrift/kumiko-framework/schema-cli";',
767
781
  'import { APP_FEATURES, HAS_AUTH } from "../src/run-config";',
768
782
  "",
@@ -772,7 +786,8 @@ function renderBinKumiko() {
772
786
  "",
773
787
  'if (cmd === "schema") {',
774
788
  " const features = composeFeatures([...APP_FEATURES], { includeBundled: HAS_AUTH });",
775
- " process.exit(await runSchemaCli(rest, process.env.INIT_CWD ?? process.cwd(), out, { features }));",
789
+ " const kmsSlots = kmsSlotsOf(composeEnvSchema({ core: frameworkCoreEnvSchema, features }).schema);",
790
+ " process.exit(await runSchemaCli(rest, process.env.INIT_CWD ?? process.cwd(), out, { features, kmsSlots }));",
776
791
  "}",
777
792
  "",
778
793
  'if (cmd === "consumer") {',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-dev-server",
3
- "version": "0.341.0",
3
+ "version": "0.342.0",
4
4
  "description": "Dev-tooling for Kumiko apps: local dev-server bootstrap (runDevApp), scaffolding, codegen. Its compose-stacks/env-schema subpaths are consumed at prod boot too — see @cosmicdrift/kumiko-server-runtime for the prod runner itself.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -64,11 +64,11 @@
64
64
  "kumiko-upgrade": "./bin/kumiko-upgrade.ts"
65
65
  },
66
66
  "dependencies": {
67
- "@cosmicdrift/kumiko-bundled-features": "0.341.0",
68
- "@cosmicdrift/kumiko-framework": "0.341.0",
69
- "@cosmicdrift/kumiko-headless": "0.341.0",
70
- "@cosmicdrift/kumiko-renderer-web": "0.341.0",
71
- "@cosmicdrift/kumiko-server-runtime": "0.341.0",
67
+ "@cosmicdrift/kumiko-bundled-features": "0.342.0",
68
+ "@cosmicdrift/kumiko-framework": "0.342.0",
69
+ "@cosmicdrift/kumiko-headless": "0.342.0",
70
+ "@cosmicdrift/kumiko-renderer-web": "0.342.0",
71
+ "@cosmicdrift/kumiko-server-runtime": "0.342.0",
72
72
  "bun-types": "^1.3.13",
73
73
  "ts-morph": "^28.0.0",
74
74
  "zod": "^4.4.3"