@cosmicdrift/kumiko-framework 0.391.0 → 0.391.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.
@@ -42,17 +42,17 @@ async function assertAllTenantTablesProtected(db, knownTables, scope) {
42
42
  const sections = [
43
43
  ...(frameworkTables.length > 0
44
44
  ? [
45
- `framework tables without it: ${listingOf(frameworkTables)}. Run \`kumiko schema apply\`: it adds the missing policies to the framework tables (\`kumiko schema generate\` reports no changes for them).`,
45
+ `framework tables without it: ${listingOf(frameworkTables)}. Run \`bun kumiko-schema apply\`: it adds the missing policies to the framework tables (\`bun kumiko-schema generate\` reports no changes for them).`,
46
46
  ]
47
47
  : []),
48
48
  ...(known.length > 0
49
49
  ? [
50
- `tables of this app without it: ${listingOf(known)}. Run \`kumiko schema generate\` and apply the migration.`,
50
+ `tables of this app without it: ${listingOf(known)}. Run \`bun kumiko-schema generate\` and apply the migration.`,
51
51
  ]
52
52
  : []),
53
53
  ...(orphaned.length > 0
54
54
  ? [
55
- `tables no feature declares anymore: ${listingOf(orphaned)}. No feature declares them: add a migration with DROP TABLE (enable the commented \`-- DESTRUCTIVE\` DROP that \`kumiko schema generate\` emitted; see \`kumiko schema status\`).`,
55
+ `tables no feature declares anymore: ${listingOf(orphaned)}. No feature declares them: add a migration with DROP TABLE (enable the commented \`-- DESTRUCTIVE\` DROP that \`bun kumiko-schema generate\` emitted; see \`bun kumiko-schema status\`).`,
56
56
  ]
57
57
  : []),
58
58
  ];
@@ -66,7 +66,7 @@ async function assertNoLiveRowLevelSecurity(db, knownTables, scope) {
66
66
  if (tables.length === 0)
67
67
  return;
68
68
  throw new InternalError({
69
- message: `rowLevelSecurity is "off" but row-level security is still enabled on: ${tables.join(", ")}. Without a tenant scope every statement would see zero rows. Run \`kumiko schema generate\` with rowLevelSecurity off to produce the DISABLE ROW LEVEL SECURITY migration and apply it.`,
69
+ message: `rowLevelSecurity is "off" but row-level security is still enabled on: ${tables.join(", ")}. Without a tenant scope every statement would see zero rows. Run \`bun kumiko-schema generate\` with rowLevelSecurity off to produce the DISABLE ROW LEVEL SECURITY migration and apply it.`,
70
70
  });
71
71
  }
72
72
  // Table state only, no role check: the role is a runtime property of the boot connection, so tools
@@ -125,11 +125,11 @@ export function formatKumikoDriftReport(report) {
125
125
  // restored by apply.
126
126
  lines.push("");
127
127
  if (report.pending.length > 0) {
128
- lines.push("Run 'kumiko schema apply' to apply the pending migration(s).");
128
+ lines.push("Run 'bun kumiko-schema apply' to apply the pending migration(s).");
129
129
  }
130
130
  if (report.checksumMismatches.length > 0) {
131
131
  lines.push("Revert the edited migration file(s) to their applied content, or hand-correct");
132
- lines.push("the checksum in _kumiko_migrations — 'kumiko schema apply' cannot resolve a");
132
+ lines.push("the checksum in _kumiko_migrations — 'bun kumiko-schema apply' cannot resolve a");
133
133
  lines.push("checksum mismatch.");
134
134
  }
135
135
  if (report.missingTables.length > 0 && report.pending.length === 0) {
@@ -138,8 +138,8 @@ export function formatKumikoDriftReport(report) {
138
138
  }
139
139
  if (report.missingColumns.length > 0) {
140
140
  lines.push("Missing column(s) — the live table predates a richer snapshot (e.g. a");
141
- lines.push("ride-along column the generator now emits). Run 'kumiko schema generate' to");
142
- lines.push("produce an ALTER-TABLE migration for the new column(s), then 'kumiko schema apply'.");
141
+ lines.push("ride-along column the generator now emits). Run 'bun kumiko-schema generate' to");
142
+ lines.push("produce an ALTER-TABLE migration for the new column(s), then 'bun kumiko-schema apply'.");
143
143
  }
144
144
  return lines.join("\n");
145
145
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-framework",
3
- "version": "0.391.0",
3
+ "version": "0.391.1",
4
4
  "description": "Framework core — engine, pipeline, API, DB, and every other bit that makes Kumiko go.",
5
5
  "license": "MIT",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -199,7 +199,7 @@
199
199
  "./package.json": "./package.json"
200
200
  },
201
201
  "dependencies": {
202
- "@cosmicdrift/kumiko-types": "0.391.0",
202
+ "@cosmicdrift/kumiko-types": "0.391.1",
203
203
  "bullmq": "^5.76.7",
204
204
  "hono": "^4.13.1",
205
205
  "i18next": "^26.1.0",
@@ -221,7 +221,7 @@
221
221
  }
222
222
  },
223
223
  "devDependencies": {
224
- "@cosmicdrift/kumiko-testing": "0.391.0",
224
+ "@cosmicdrift/kumiko-testing": "0.391.1",
225
225
  "bun-types": "^1.4.4",
226
226
  "fflate": "^0.8.2",
227
227
  "meilisearch": "^0.58.0",
package/src/changes.json CHANGED
@@ -1,4 +1,10 @@
1
1
  [
2
+ {
3
+ "version": "0.391.1",
4
+ "type": "fix",
5
+ "title": "Boot errors name the real schema command",
6
+ "detail": "The drift report and the row-level-security boot check recommended `kumiko schema apply` and `kumiko schema generate`. Apps run the CLI as `bun kumiko-schema <subcommand>`, so the hints now say that."
7
+ },
2
8
  {
3
9
  "version": "0.391.0",
4
10
  "type": "fix",