@voltro/cli 0.45.0 → 0.47.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 (117) hide show
  1. package/CHANGELOG.md +206 -0
  2. package/dist/apiBuild-BsooZpw2.js +2 -0
  3. package/dist/{apiBuild-CDQBNRDx.js → apiBuild-FpHCWiv6.js} +2 -2
  4. package/dist/bin.d.ts +8 -0
  5. package/dist/bin.js +1 -1
  6. package/dist/{build-yvsLG77U.js → build-zVygXxGB.js} +8 -8
  7. package/dist/{checkCommand-lrzwOzV1.js → checkCommand-B2Fw73lu.js} +1 -1
  8. package/dist/{checkCommand-Boxov8lr.js → checkCommand-D0dAKciE.js} +4 -4
  9. package/dist/{codegen-sbN1Y8PB.js → codegen-CrMXs4hb.js} +176 -162
  10. package/dist/codegen-DiMn2KkZ.js +2 -0
  11. package/dist/{codegenCommand-CQOLytL-.js → codegenCommand-BTtsnRus.js} +16 -16
  12. package/dist/{codemodRunner-5ZhDH3rB.js → codemodRunner-DSZjgyCL.js} +8 -0
  13. package/dist/{commands-CEkVoFM5.js → commands-BrFKxnYW.js} +24 -24
  14. package/dist/{dashboardCommand-0ahyp-zA.js → dashboardCommand-D9SjDc8E.js} +3 -3
  15. package/dist/{dataCommand-D4IlZcih.js → dataCommand-Dl11q14e.js} +271 -230
  16. package/dist/dbCommand-BUD4Fd8v.js +2 -0
  17. package/dist/{dbCommand-B237qI-j.js → dbCommand-jbrmzwW_.js} +110 -110
  18. package/dist/{dev-P4HyeY9W.js → dev-CaIfZnw5.js} +1 -1
  19. package/dist/{dev-DAM5CnAa.js → dev-RjB7eE_B.js} +2081 -2058
  20. package/dist/devActivity.d.ts +8 -0
  21. package/dist/doctorCommand-5zv6PN-G.js +2 -0
  22. package/dist/{doctorCommand-DW2cwAvC.js → doctorCommand-D7X29cw6.js} +16 -16
  23. package/dist/{doctorSourceRelations-CPjSwYuZ.js → doctorSourceRelations-Dd48LPvO.js} +15 -10
  24. package/dist/{dormancyCommand-BqQz7lbM.js → dormancyCommand-BGOP27fz.js} +1 -1
  25. package/dist/{embeddingsCommand-DJyArpU4.js → embeddingsCommand-D72E22bw.js} +1 -1
  26. package/dist/{envCommand-CviRZx1L.js → envCommand-BHSxz6wC.js} +2 -2
  27. package/dist/{evalCommand-6RUfPen4.js → evalCommand-Db01Kbng.js} +24 -24
  28. package/dist/{evolveCommand-qdlP-R9G.js → evolveCommand-C2ofGGlz.js} +2 -2
  29. package/dist/{frameworkTableAssembly-oMPBKqlE.js → frameworkTableAssembly-BvZ0Lil_.js} +97 -89
  30. package/dist/frameworkTableAssembly-DDKtwsy2.js +2 -0
  31. package/dist/index.d.ts +8 -0
  32. package/dist/index.js +1 -1
  33. package/dist/{infoCommand-CNWPSUcW.js → infoCommand-CuNl9cbh.js} +1 -1
  34. package/dist/inspectState.d.ts +8 -0
  35. package/dist/interruptedReplace-C1ZI84xi.js +27 -0
  36. package/dist/interruptedReplace-DNJ7MKph.js +2 -0
  37. package/dist/{migrate-DN47p2PG.js → migrate-odCPGHPq.js} +27 -27
  38. package/dist/{runtimeTrace-BDZSt9W_.js → runtimeTrace-C_OKr0jY.js} +1 -1
  39. package/dist/{sdkgen-sNaD3oZB.js → sdkgen-D9trW7sl.js} +1 -1
  40. package/dist/{seedRunner-IdHEprqf.js → seedRunner-Dgsiwk_e.js} +59 -59
  41. package/dist/serveCommand-BU0wfV6V.js +1931 -0
  42. package/dist/serveCommand-Bwrn_9Fn.js +2 -0
  43. package/dist/serveEntry.d.ts +8 -0
  44. package/dist/serveEntry.js +1 -1
  45. package/dist/{start-Ds3xyn8R.js → start-7HcSIKEp.js} +1 -1
  46. package/dist/{start-BAlGcjF5.js → start-DvlYDyAr.js} +1 -1
  47. package/dist/startEntry.d.ts +8 -0
  48. package/dist/startEntry.js +1 -1
  49. package/dist/startup.d.ts +8 -0
  50. package/dist/{test-CHb7UwvE.js → test-rXFq4S76.js} +1 -1
  51. package/dist/{updateCommand-rCnhaj84.js → updateCommand-BlyXavoG.js} +1 -1
  52. package/dist/updateCommand-CT5AvVg7.js +2 -0
  53. package/dist/{webDev-101csg6Q.js → webDev-B4IEMB0n.js} +6 -6
  54. package/dist/webDev-B79ji8M5.js +2 -0
  55. package/dist/{webhooksCommand-C0iZZfaI.js → webhooksCommand-BqcWcbuW.js} +1 -1
  56. package/package.json +23 -17
  57. package/templates/AGENTS.md +1 -1
  58. package/templates/agent-docs/_index.md +1 -1
  59. package/templates/agent-docs/cli.md +166 -2
  60. package/templates/agent-docs/data.md +70 -4
  61. package/templates/agent-docs/whats-new.md +14 -87
  62. package/templates/apps/api-ai/package.json +7 -7
  63. package/templates/apps/api-auth/package.json +8 -8
  64. package/templates/apps/api-backend/package.json +7 -7
  65. package/templates/apps/api-backend-deactivation/package.json +7 -7
  66. package/templates/apps/api-backend-mail/package.json +8 -8
  67. package/templates/apps/api-backend-mariadb/package.json +9 -9
  68. package/templates/apps/api-backend-sqlite/package.json +8 -8
  69. package/templates/apps/api-backend-storage/package.json +8 -8
  70. package/templates/apps/api-cms/package.json +10 -10
  71. package/templates/apps/api-collab/package.json +8 -8
  72. package/templates/apps/api-data-advanced/package.json +8 -8
  73. package/templates/apps/api-durable/package.json +8 -8
  74. package/templates/apps/api-feature-flags/package.json +9 -9
  75. package/templates/apps/api-governance/package.json +8 -8
  76. package/templates/apps/api-kv/package.json +8 -8
  77. package/templates/apps/api-moderation/package.json +8 -8
  78. package/templates/apps/api-observability/package.json +8 -8
  79. package/templates/apps/api-ratelimit/package.json +8 -8
  80. package/templates/apps/api-rbac/package.json +8 -8
  81. package/templates/apps/api-rest/package.json +7 -7
  82. package/templates/apps/api-saas/package.json +11 -11
  83. package/templates/apps/api-saas-starter/package.json +10 -10
  84. package/templates/apps/api-search/package.json +8 -8
  85. package/templates/apps/api-status/package.json +8 -8
  86. package/templates/apps/api-versioning/package.json +8 -8
  87. package/templates/apps/api-webhooks/package.json +9 -9
  88. package/templates/apps/changelog/package.json +6 -6
  89. package/templates/apps/edge-functions/package.json +2 -2
  90. package/templates/apps/frontend-admin/package.json +8 -8
  91. package/templates/apps/frontend-app/package.json +9 -9
  92. package/templates/apps/frontend-auth/package.json +8 -8
  93. package/templates/apps/frontend-blank/package.json +7 -7
  94. package/templates/apps/frontend-cms/package.json +9 -9
  95. package/templates/apps/frontend-collab/package.json +10 -10
  96. package/templates/apps/frontend-contact/package.json +7 -7
  97. package/templates/apps/frontend-dashboard/package.json +7 -7
  98. package/templates/apps/frontend-docs/package.json +7 -7
  99. package/templates/apps/frontend-i18n/package.json +6 -6
  100. package/templates/apps/frontend-landing/package.json +7 -7
  101. package/templates/apps/frontend-portal/package.json +8 -8
  102. package/templates/apps/frontend-saas/package.json +8 -8
  103. package/templates/apps/frontend-spa/package.json +7 -7
  104. package/templates/apps/frontend-ssr/package.json +7 -7
  105. package/templates/apps/frontend-ssr-api/package.json +8 -8
  106. package/templates/apps/frontend-static-blog/package.json +6 -6
  107. package/templates/apps/frontend-status/package.json +8 -8
  108. package/templates/apps/mobile-app/package.json +4 -4
  109. package/dist/apiBuild-yJCqJYQ8.js +0 -2
  110. package/dist/codegen-DcE2li1i.js +0 -2
  111. package/dist/dbCommand-BvQeKQOb.js +0 -2
  112. package/dist/doctorCommand-2K1dIzYk.js +0 -2
  113. package/dist/frameworkTableAssembly-DgylYh9_.js +0 -2
  114. package/dist/serveCommand-BBhT2U94.js +0 -1885
  115. package/dist/serveCommand-DY2jLy0o.js +0 -2
  116. package/dist/updateCommand-BH6EGuCc.js +0 -2
  117. package/dist/webDev-BLKBO34K.js +0 -2
@@ -1,7 +1,7 @@
1
- import { bn as e, l as t, u as n, xn as r, z as i } from "./dev-DAM5CnAa.js";
2
- import { dt as a } from "./webDev-101csg6Q.js";
3
- import { r as o, u as s } from "./frameworkTableAssembly-oMPBKqlE.js";
4
- import { i as c, r as l } from "./codegen-sbN1Y8PB.js";
1
+ import { B as e, Sn as t, l as n, u as r, xn as i } from "./dev-RjB7eE_B.js";
2
+ import { dt as a } from "./webDev-B4IEMB0n.js";
3
+ import { r as o, u as s } from "./frameworkTableAssembly-BvZ0Lil_.js";
4
+ import { i as c, r as l } from "./codegen-CrMXs4hb.js";
5
5
  import { basename as u, join as d, relative as f, resolve as p } from "node:path";
6
6
  import { promises as m } from "node:fs";
7
7
  import { pathToFileURL as h } from "node:url";
@@ -100,21 +100,21 @@ var g = "voltro.mobile.ts", _ = d(".framework", "mobileApis.generated.ts"), v =
100
100
  file: i,
101
101
  apis: r.map(([e]) => e)
102
102
  };
103
- }, S = (e, t) => t.kind === "wrote" ? `voltro codegen: wrote ${f(e, t.file)} (apis ${t.apis.join(", ")})` : t.kind === "refused" ? `voltro codegen: ${t.reason} — refusing to write.` : `voltro codegen: no ${g} here — not a mobile app.`, C = async (e) => {
104
- let { config: n, present: a, error: o } = await t(e);
105
- if (a && n === null) return {
103
+ }, S = (e, t) => t.kind === "wrote" ? `voltro codegen: wrote ${f(e, t.file)} (apis ${t.apis.join(", ")})` : t.kind === "refused" ? `voltro codegen: ${t.reason} — refusing to write.` : `voltro codegen: no ${g} here — not a mobile app.`, C = async (r) => {
104
+ let { config: i, present: a, error: o } = await n(r);
105
+ if (a && i === null) return {
106
106
  kind: "refused",
107
107
  reason: "app.config.ts exists but could not be loaded" + (o === void 0 ? "" : ` — ${o instanceof Error ? o.message : String(o)}`)
108
108
  };
109
- let s = n?.plugins ?? [], { pluginContributions: c, pluginErrorImports: d, pluginRpcImports: f } = await i(s, n?.name ?? u(e), e), p = await l({
110
- root: e,
109
+ let s = i?.plugins ?? [], { pluginContributions: c, pluginErrorImports: d, pluginRpcImports: f } = await e(s, i?.name ?? u(r), r), p = await l({
110
+ root: r,
111
111
  ...c.length > 0 ? { pluginContributions: c } : {},
112
112
  ...d.length > 0 ? { pluginErrorImports: d } : {},
113
113
  ...f.length > 0 ? { pluginRpcImports: f } : {},
114
- ...n?.name === void 0 ? {} : { apiName: n.name }
114
+ ...i?.name === void 0 ? {} : { apiName: i.name }
115
115
  });
116
116
  if (!p) return { kind: "nothing-to-write" };
117
- let m = await w(e, n), h = await r(p, m);
117
+ let m = await w(r, i), h = await t(p, m);
118
118
  return {
119
119
  kind: "wrote",
120
120
  file: p,
@@ -124,16 +124,16 @@ var g = "voltro.mobile.ts", _ = d(".framework", "mobileApis.generated.ts"), v =
124
124
  tables: m.size,
125
125
  dts: h
126
126
  };
127
- }, w = async (t, r) => {
128
- let i = await c(t), { tables: a, featureMix: l } = await n(i), u = s({
127
+ }, w = async (e, t) => {
128
+ let n = await c(e), { tables: a, featureMix: l } = await r(n), u = s({
129
129
  nodeEnv: process.env.NODE_ENV,
130
- declared: r?.schema
130
+ declared: t?.schema
131
131
  }), d = o({
132
132
  mix: l,
133
- plugins: r?.plugins ?? [],
133
+ plugins: t?.plugins ?? [],
134
134
  gates: u
135
135
  });
136
- return e(a, d, r?.analytics?.tables ?? []);
136
+ return i(a, d, t?.analytics?.tables ?? []);
137
137
  }, T = async (e) => {
138
138
  let t = p(e.find((e) => !e.startsWith("-")) ?? process.cwd()), n = await x(t);
139
139
  if (n.kind !== "not-a-mobile-app") return console.log(S(t, n)), n.kind === "wrote" ? 0 : 1;
@@ -5681,6 +5681,14 @@ var b = (e, t, n) => {
5681
5681
  "To opt out entirely, delete `voltro-tables.generated.d.ts` and exclude it",
5682
5682
  "from your tsconfig; `source:` widens back to `string`."
5683
5683
  ].join("\n")
5684
+ }),
5685
+ S({
5686
+ version: "0.46.0",
5687
+ id: "0.46.0/01_typed-aggregate-source",
5688
+ title: "an aggregate’s `incremental.source` is typechecked against the app’s tables",
5689
+ kind: "manual",
5690
+ appliesTo: ({ project: e }) => e.getSourceFiles().some((e) => /\bincremental\s*:/.test(e.getFullText())),
5691
+ note: (/* @__PURE__ */ "An aggregate that opts into incremental maintenance names the table whose(CDC deltas drive it:(( incremental: { source: 'tasks', op: 'count' }((That name is now checked against your app’s tables, the same way a query’s(`source:` has been since 0.45.0.((WHY IT MATTERS MORE HERE((A name matching no table does not error. The runner subscribes to something(nothing writes, no delta ever arrives, and the aggregate quietly stops(tracking its input — while every read of it still succeeds and still returns(a number. There is no failing request to notice.((WHEN IT STARTS APPLYING((At your next `voltro dev` or `voltro codegen`, not at this upgrade — those(write `voltro-tables.generated.d.ts`, and that file is what narrows the type.(Until it exists the field is `string`, exactly as it is today.((WHAT TO DO((Boot once and read what `tsc` flags. A flagged name is either misspelled or(renamed away — a real defect, and that aggregate has not been maintaining —(or it is computed at runtime, in which case annotate it `string`.((The boot also warns now: an aggregate whose CDC source resolves to no table(is named in the same stale-`source:` warning queries and streams appear in.".split("(")).join("\n")
5684
5692
  })
5685
5693
  ], Y = /* @__PURE__ */ new Set([
5686
5694
  "node_modules",
@@ -91,7 +91,7 @@ var c = () => {
91
91
  name: "dev",
92
92
  summary: "Start the local development server (auto-discovers routes / mutations).",
93
93
  status: "wired",
94
- run: (e) => import("./dev-P4HyeY9W.js").then((t) => t.runDev(e)),
94
+ run: (e) => import("./dev-CaIfZnw5.js").then((t) => t.runDev(e)),
95
95
  help: {
96
96
  usage: "[app]",
97
97
  examples: [["voltro dev", "boot the app in the current directory"], ["voltro dev apps/acme/api", "boot a specific app"]],
@@ -109,7 +109,7 @@ var c = () => {
109
109
  name: "dashboard",
110
110
  summary: "Serve the DevTools dashboard standalone (from @voltro/dashboard). Targets via VOLTRO_DASHBOARD_APPS; --port to override.",
111
111
  status: "wired",
112
- run: (e) => import("./dashboardCommand-0ahyp-zA.js").then((t) => t.runDashboardCommand(e)),
112
+ run: (e) => import("./dashboardCommand-D9SjDc8E.js").then((t) => t.runDashboardCommand(e)),
113
113
  help: {
114
114
  usage: "[--port <n>]",
115
115
  flags: [["--port <n>", "port to serve the dashboard on"]],
@@ -121,7 +121,7 @@ var c = () => {
121
121
  name: "check",
122
122
  summary: "Verify the app graph (blast-radius checks) against a running api; LLM-shaped --json diagnostics. Flags: --json, --process <p>, --diff removeTable:<name>.",
123
123
  status: "wired",
124
- run: (e) => import("./checkCommand-lrzwOzV1.js").then((t) => t.runCheckCommand(e)),
124
+ run: (e) => import("./checkCommand-B2Fw73lu.js").then((t) => t.runCheckCommand(e)),
125
125
  help: {
126
126
  usage: "[--json] [--offline] [--process <name>] [--diff removeTable:<name>]",
127
127
  flags: [
@@ -139,7 +139,7 @@ var c = () => {
139
139
  name: "eval",
140
140
  summary: "Replay recorded agent/AI runs (*.eval.ts) against the current model, judge with assertions + an optional LLM judge, and gate the deploy (exit 1 on regression). Flags: --json, --branch [--pr <n>], --threshold <0..1>.",
141
141
  status: "wired",
142
- run: (e) => import("./evalCommand-6RUfPen4.js").then((t) => t.runEvalCommand(e)),
142
+ run: (e) => import("./evalCommand-Db01Kbng.js").then((t) => t.runEvalCommand(e)),
143
143
  help: {
144
144
  usage: "[--json] [--branch [--pr <n>]] [--threshold <0..1>]",
145
145
  flags: [
@@ -155,7 +155,7 @@ var c = () => {
155
155
  name: "webhooks",
156
156
  summary: "Outbound-webhook artefacts. `consumer` generates the ZERO-DEPENDENCY Standard-Webhooks verification package a subscriber installs, from this app's own declared events; `events` lists the events a subscriber can register for. Usage: voltro webhooks <consumer|events> [path] [--out <dir>] [--name <pkg>] [--json].",
157
157
  status: "wired",
158
- run: (e) => import("./webhooksCommand-C0iZZfaI.js").then((t) => t.runWebhooksCommand(e)),
158
+ run: (e) => import("./webhooksCommand-BqcWcbuW.js").then((t) => t.runWebhooksCommand(e)),
159
159
  help: {
160
160
  usage: "<consumer|events> [path] [--out <dir>] [--name <pkg>] [--json]",
161
161
  flags: [
@@ -171,7 +171,7 @@ var c = () => {
171
171
  name: "evolve",
172
172
  summary: "Schema-evolution copilot: propose an observed-graph-driven codemod + a branch-verified backfill for a schema change (rename/retype/split/drop a column, rename a table). Dry-run by default; --write applies. Usage: voltro evolve rename-column <table>.<col> --to <newName> [--write] [--json].",
173
173
  status: "wired",
174
- run: (e) => import("./evolveCommand-qdlP-R9G.js").then((t) => t.runEvolveCommand(e)),
174
+ run: (e) => import("./evolveCommand-C2ofGGlz.js").then((t) => t.runEvolveCommand(e)),
175
175
  help: {
176
176
  usage: "<rename-column|rename-table|retype-column|split-column|drop-column> <target> [--to <new>] [--write]",
177
177
  flags: [
@@ -188,7 +188,7 @@ var c = () => {
188
188
  name: "codegen",
189
189
  summary: "Emit rpcGroup.generated.ts from discovered route / mutation descriptors.",
190
190
  status: "wired",
191
- run: (e) => import("./codegenCommand-CQOLytL-.js").then((t) => t.runCodegenCommand(e)),
191
+ run: (e) => import("./codegenCommand-BTtsnRus.js").then((t) => t.runCodegenCommand(e)),
192
192
  help: {
193
193
  usage: "[app]",
194
194
  examples: [["voltro codegen", "regenerate rpcGroup.generated.ts for the app in the cwd"]],
@@ -199,7 +199,7 @@ var c = () => {
199
199
  name: "migrate",
200
200
  summary: "Apply the declared schema to the database (alias of `db apply` — diffs declared vs live and emits the ALTERs). `--create-only` for the bootstrap-only CREATE TABLE IF NOT EXISTS path.",
201
201
  status: "wired",
202
- run: (e) => import("./migrate-DN47p2PG.js").then((t) => t.runMigrateCommand(e)),
202
+ run: (e) => import("./migrate-odCPGHPq.js").then((t) => t.runMigrateCommand(e)),
203
203
  help: {
204
204
  usage: "[app] [--create-only]",
205
205
  flags: [["--create-only", "only CREATE TABLE IF NOT EXISTS — never ALTER (bootstrap)"]],
@@ -211,7 +211,7 @@ var c = () => {
211
211
  name: "test",
212
212
  summary: "Run vitest against the app at the cwd (auto-discovers *.test.ts/tsx).",
213
213
  status: "wired",
214
- run: (e) => import("./test-CHb7UwvE.js").then((t) => t.runTestCommand(e)),
214
+ run: (e) => import("./test-rXFq4S76.js").then((t) => t.runTestCommand(e)),
215
215
  help: {
216
216
  usage: "[dir] [filter…] [--watch] [-t <pattern>]",
217
217
  flags: [
@@ -259,7 +259,7 @@ var c = () => {
259
259
  name: "info",
260
260
  summary: "Report versions (CLI, node, every installed @voltro/* — flags lockstep skew), package manager, and dialect. --json for CI. Exits 1 on version skew.",
261
261
  status: "wired",
262
- run: (e) => import("./infoCommand-CNWPSUcW.js").then((t) => t.runInfoCommand(e)),
262
+ run: (e) => import("./infoCommand-CuNl9cbh.js").then((t) => t.runInfoCommand(e)),
263
263
  help: {
264
264
  usage: "[--json]",
265
265
  flags: [["--json", "machine-readable report"]],
@@ -280,7 +280,7 @@ var c = () => {
280
280
  name: "env",
281
281
  summary: "Inspect/sync the typed-env manifest. Subcommands: check (default), sync (.env.example), types (env.generated.d.ts for CI tsc), turbo.",
282
282
  status: "wired",
283
- run: (e) => import("./envCommand-CviRZx1L.js").then((t) => t.runEnvCommand(e)),
283
+ run: (e) => import("./envCommand-BHSxz6wC.js").then((t) => t.runEnvCommand(e)),
284
284
  help: {
285
285
  usage: "[check|sync|types|turbo] [--force]",
286
286
  flags: [["--force", "overwrite the generated file instead of refusing on a conflict"]],
@@ -309,12 +309,12 @@ var c = () => {
309
309
  run: async (e) => {
310
310
  let t = e.find((e) => !e.startsWith("-")) ?? process.cwd();
311
311
  if (e.includes("--preflight")) {
312
- let { runServePreflight: e } = await import("./doctorCommand-2K1dIzYk.js");
312
+ let { runServePreflight: e } = await import("./doctorCommand-5zv6PN-G.js");
313
313
  return e(a(t), !0);
314
314
  }
315
- let { tryRunWebServe: n } = await import("./webDev-BLKBO34K.js"), r = await n(a(t));
315
+ let { tryRunWebServe: n } = await import("./webDev-B79ji8M5.js"), r = await n(a(t));
316
316
  if (!r.ran) {
317
- let { runServeDispatch: t } = await import("./serveCommand-DY2jLy0o.js");
317
+ let { runServeDispatch: t } = await import("./serveCommand-Bwrn_9Fn.js");
318
318
  return t(e);
319
319
  }
320
320
  return r.exitCode;
@@ -342,13 +342,13 @@ var c = () => {
342
342
  handlesHelp: !0,
343
343
  summary: "Preflight an app for production: the precompiled serve bundle, hand-rolled primitives (naming the shipped one), @voltro/* version skew, executors with no access check, `.serverOnly()` leaks, and junction-FK gaps.",
344
344
  status: "wired",
345
- run: (e) => import("./doctorCommand-2K1dIzYk.js").then((t) => t.runDoctorCommand(e))
345
+ run: (e) => import("./doctorCommand-5zv6PN-G.js").then((t) => t.runDoctorCommand(e))
346
346
  },
347
347
  {
348
348
  name: "build",
349
349
  summary: "Production build for a web app (vite build + per-page SSG pre-render).",
350
350
  status: "wired",
351
- run: (e) => import("./build-yvsLG77U.js").then((t) => t.runBuildCommand(e)),
351
+ run: (e) => import("./build-zVygXxGB.js").then((t) => t.runBuildCommand(e)),
352
352
  help: {
353
353
  usage: "[app] [--target <t>]",
354
354
  flags: [["--target <t>", "build target"]],
@@ -364,7 +364,7 @@ var c = () => {
364
364
  name: "prune-runtime",
365
365
  summary: "Trim a deployed web tree’s node_modules to the reachable runtime set (standalone image slimming).",
366
366
  status: "wired",
367
- run: (e) => import("./runtimeTrace-BDZSt9W_.js").then((t) => t.runPruneRuntimeCommand(e)),
367
+ run: (e) => import("./runtimeTrace-C_OKr0jY.js").then((t) => t.runPruneRuntimeCommand(e)),
368
368
  hidden: !0
369
369
  },
370
370
  {
@@ -382,7 +382,7 @@ var c = () => {
382
382
  name: "dormancy",
383
383
  summary: "Single-node scale-to-zero: front the API with a wake-orchestrator that stops the app when idle and brings it back on a request or a due wakeup (cron/workflow). Needs a SQL store. Flags: --port, --app-port, --idle-grace-ms, --tick-ms.",
384
384
  status: "wired",
385
- run: (e) => import("./dormancyCommand-BqQz7lbM.js").then((t) => t.runDormancyCommand(e)),
385
+ run: (e) => import("./dormancyCommand-BGOP27fz.js").then((t) => t.runDormancyCommand(e)),
386
386
  help: {
387
387
  usage: "[app] [--port <n>] [--app-port <n>] [--idle-grace-ms <n>] [--tick-ms <n>]",
388
388
  flags: [
@@ -399,7 +399,7 @@ var c = () => {
399
399
  name: "start",
400
400
  summary: "Production runtime: serves dist + SSR-on-demand for ssr/isr pages.",
401
401
  status: "wired",
402
- run: (e) => import("./start-BAlGcjF5.js").then((t) => t.runStartCommand(e)),
402
+ run: (e) => import("./start-DvlYDyAr.js").then((t) => t.runStartCommand(e)),
403
403
  help: {
404
404
  usage: "[app]",
405
405
  examples: [["voltro start", "serve a built web app (dist + SSR-on-demand)"]],
@@ -453,7 +453,7 @@ var c = () => {
453
453
  name: "db",
454
454
  summary: "Database subcommands. Declarative flow: plan, apply, branch, plans, drift [--accept], squash, restore-snapshot. File migrations: generate [name], migrate, rollback, status, files, rollback-file. Data + housekeeping: seed, gc-snapshots, adopt. Credentials at rest: scan-credentials (find plaintext), encrypt-column (migrate a populated column onto .encrypted()).",
455
455
  status: "wired",
456
- run: (e) => import("./dbCommand-BvQeKQOb.js").then((t) => t.runDbCommand(e)),
456
+ run: (e) => import("./dbCommand-BUD4Fd8v.js").then((t) => t.runDbCommand(e)),
457
457
  help: {
458
458
  usage: t(n),
459
459
  examples: [
@@ -469,7 +469,7 @@ var c = () => {
469
469
  name: "data",
470
470
  summary: "Export/import + backup/restore of app data. Logical (rows + optional assets): export <dir> [--tenant <id>|--tables a,b] [--assets] [--compression zstd|gzip|none] [--consistency live|snapshot]; import <dir> [--assets] [--no-verify]. Native (rows ONLY — no blobs): backup <dir> / restore <dir> (pg_dump/mariadb-dump/…). Resumable; typed-NDJSON; content-addressed assets on the logical path.",
471
471
  status: "wired",
472
- run: (e) => import("./dataCommand-D4IlZcih.js").then((t) => t.runDataCommand(e)),
472
+ run: (e) => import("./dataCommand-Dl11q14e.js").then((t) => t.runDataCommand(e)),
473
473
  help: {
474
474
  usage: "<export|import|backup|restore> <dir> [options]",
475
475
  flags: [
@@ -524,20 +524,20 @@ var c = () => {
524
524
  handlesHelp: !0,
525
525
  summary: "Upgrade the app to the latest framework: bump every @voltro/* dependency (across ALL workspace members, install once at the workspace root), then run the codemods shipped with the target version. Flags: --to <version>, --from <version>, --codemods-only, --dry-run, --force, --exact, --help. After: run `voltro db apply`.",
526
526
  status: "wired",
527
- run: (e) => import("./updateCommand-BH6EGuCc.js").then((t) => t.runUpdateCommand(e))
527
+ run: (e) => import("./updateCommand-CT5AvVg7.js").then((t) => t.runUpdateCommand(e))
528
528
  },
529
529
  {
530
530
  name: "_apply-codemods",
531
531
  summary: "Internal: apply shipped codemods for a framework version jump (re-exec target of `voltro update`).",
532
532
  status: "wired",
533
533
  hidden: !0,
534
- run: (e) => import("./updateCommand-BH6EGuCc.js").then((t) => t.runApplyCodemods(e))
534
+ run: (e) => import("./updateCommand-CT5AvVg7.js").then((t) => t.runApplyCodemods(e))
535
535
  },
536
536
  {
537
537
  name: "embeddings",
538
538
  summary: "Embeddings tooling. Subcommand: backfill <table> --text <field> --vector <field> [--model <m>] [--model-field <f>] [--batch <n>] [--dry-run] — (re)embed rows the vectorEmbedding() mixin missed.",
539
539
  status: "wired",
540
- run: (e) => import("./embeddingsCommand-DJyArpU4.js").then((t) => t.runEmbeddingsCommand(e)),
540
+ run: (e) => import("./embeddingsCommand-D72E22bw.js").then((t) => t.runEmbeddingsCommand(e)),
541
541
  help: {
542
542
  usage: "backfill <table> --text <field> --vector <field> [--model <m>] [--batch <n>] [--dry-run]",
543
543
  flags: [
@@ -1,6 +1,6 @@
1
- import { d as e } from "./dev-DAM5CnAa.js";
2
- import { H as t, z as n } from "./webDev-101csg6Q.js";
3
- import { t as r } from "./start-Ds3xyn8R.js";
1
+ import { d as e } from "./dev-RjB7eE_B.js";
2
+ import { H as t, z as n } from "./webDev-B4IEMB0n.js";
3
+ import { t as r } from "./start-7HcSIKEp.js";
4
4
  import { join as i } from "node:path";
5
5
  import { existsSync as a } from "node:fs";
6
6
  import { createLogger as o } from "@voltro/logger";