@cosmicdrift/kumiko-dev-server 0.392.2 → 0.394.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.
@@ -712,10 +712,12 @@ function renderBinKumiko() {
712
712
  "// Standalone kumiko CLI for the production bundle. The deploy migrate-step",
713
713
  "// runs `bun /app/kumiko.js schema apply`; ops runs `bun /app/kumiko.js",
714
714
  "// consumer status|restart <name>` to recover a dead event consumer without",
715
- "// ad-hoc SQL. kumiko-build bundles this file to dist-server/kumiko.js.",
715
+ "// ad-hoc SQL, and `events prune --aggregate-type <type> [--apply]` removes retired",
716
+ "// aggregate types from the event log. kumiko-build bundles this file to dist-server/kumiko.js.",
716
717
  "",
717
718
  'import { runConsumerCli } from "@cosmicdrift/kumiko-framework/consumer-cli";',
718
719
  'import { kmsSlotsOf } from "@cosmicdrift/kumiko-framework/env";',
720
+ 'import { runEventsCli } from "@cosmicdrift/kumiko-framework/events-cli";',
719
721
  'import { runSchemaCli } from "@cosmicdrift/kumiko-framework/schema-cli";',
720
722
  'import { FEATURES } from "../kumiko/schema";',
721
723
  'import appConfig from "../kumiko.config";',
@@ -739,8 +741,17 @@ function renderBinKumiko() {
739
741
  " process.exit(await runConsumerCli(rest, out));",
740
742
  "}",
741
743
  "",
744
+ 'if (cmd === "events") {',
745
+ " process.exit(",
746
+ " await runEventsCli(rest, out, {",
747
+ " features: FEATURES,",
748
+ " ...(appConfig.rowLevelSecurity && { rowLevelSecurity: appConfig.rowLevelSecurity }),",
749
+ " }),",
750
+ " );",
751
+ "}",
752
+ "",
742
753
  "console.error(",
743
- ` \`\\n Unknown: kumiko \${cmd ?? ""} — the standalone bundle only runs 'kumiko schema' and 'kumiko consumer'.\\n\`,`,
754
+ ` \`\\n Unknown: kumiko \${cmd ?? ""} — the standalone bundle only runs 'kumiko schema', 'kumiko consumer' and 'kumiko events'.\\n\`,`,
744
755
  ");",
745
756
  "process.exit(1);",
746
757
  "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-dev-server",
3
- "version": "0.392.2",
3
+ "version": "0.394.0",
4
4
  "description": "Dev-tooling for Kumiko apps: local dev-server bootstrap (runDevApp), scaffolding. 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": "MIT",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -77,15 +77,15 @@
77
77
  "kumiko-upgrade": "./bin/kumiko-upgrade.ts"
78
78
  },
79
79
  "dependencies": {
80
- "@cosmicdrift/kumiko-bundled-features": "0.392.2",
81
- "@cosmicdrift/kumiko-feature-ast": "0.392.2",
82
- "@cosmicdrift/kumiko-framework": "0.392.2",
83
- "@cosmicdrift/kumiko-renderer": "0.392.2",
84
- "@cosmicdrift/kumiko-renderer-mail-html": "0.392.2",
85
- "@cosmicdrift/kumiko-guards": "0.392.2",
86
- "@cosmicdrift/kumiko-server-runtime": "0.392.2",
87
- "@cosmicdrift/kumiko-testing": "0.392.2",
88
- "@cosmicdrift/kumiko-types": "0.392.2",
80
+ "@cosmicdrift/kumiko-bundled-features": "0.394.0",
81
+ "@cosmicdrift/kumiko-feature-ast": "0.394.0",
82
+ "@cosmicdrift/kumiko-framework": "0.394.0",
83
+ "@cosmicdrift/kumiko-renderer": "0.394.0",
84
+ "@cosmicdrift/kumiko-renderer-mail-html": "0.394.0",
85
+ "@cosmicdrift/kumiko-guards": "0.394.0",
86
+ "@cosmicdrift/kumiko-server-runtime": "0.394.0",
87
+ "@cosmicdrift/kumiko-testing": "0.394.0",
88
+ "@cosmicdrift/kumiko-types": "0.394.0",
89
89
  "ts-morph": "^28.0.0",
90
90
  "zod": "^4.6.7"
91
91
  },
package/src/changes.json CHANGED
@@ -1,4 +1,10 @@
1
1
  [
2
+ {
3
+ "version": "0.394.0",
4
+ "type": "improvement",
5
+ "title": "Scaffolded bin/kumiko.ts dispatches events",
6
+ "detail": "The generated standalone CLI now forwards `events` to `runEventsCli` with the app's features and row level security mode."
7
+ },
2
8
  {
3
9
  "version": "0.392.1",
4
10
  "type": "fix",