@voltro/cli 0.38.0 → 0.39.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.
Files changed (173) hide show
  1. package/CHANGELOG.md +276 -0
  2. package/THIRD-PARTY-NOTICES.md +80 -45
  3. package/dist/{addCommand-BNeoeSxe.js → addCommand-C05L9tZh.js} +2 -2
  4. package/dist/addCommand-C3MdJG-a.js +2 -0
  5. package/dist/{agentsMd-mhQMF1bx.js → agentsMd-7zI2h5l9.js} +3 -3
  6. package/dist/agentsMd-BFCXh2gl.js +2 -0
  7. package/dist/apiBuild-BmR_bIxN.js +2 -0
  8. package/dist/{apiBuild-CvacV4zA.js → apiBuild-D9FB13_2.js} +3 -3
  9. package/dist/baselineCommand-CXv680Dc.js +2 -0
  10. package/dist/{baselineCommand-C6NMt-oa.js → baselineCommand-Ck2Xm8M7.js} +18 -18
  11. package/dist/bin.js +1 -1
  12. package/dist/{build-_LoTC1s0.js → build-DORV5mLM.js} +107 -100
  13. package/dist/{capabilitiesCommand-nq_pz5xd.js → capabilitiesCommand-D5gucwYa.js} +8 -8
  14. package/dist/{checkCommand-Pjk5sBl2.js → checkCommand-Bf6oMao4.js} +35 -35
  15. package/dist/{checkCommand-wibtQx-N.js → checkCommand-D9qK_gtA.js} +1 -1
  16. package/dist/{cloudCmd-NQSwe_Qk.js → cloudCmd-C42gaO8s.js} +16 -16
  17. package/dist/{clusterCmd-D5wsCmA_.js → clusterCmd-DrVFCzSj.js} +8 -4
  18. package/dist/{codegen-GYYcdpCg.js → codegen-CbpGCWLG.js} +1 -1
  19. package/dist/codegen-i8QGcHsi.js +2 -0
  20. package/dist/codegenCommand-CxOyKmc1.js +129 -0
  21. package/dist/{codemodRunner-CXgQ-ecJ.js → codemodRunner-D-jTyvWo.js} +622 -551
  22. package/dist/{commands-DaZVi9wi.js → commands-D6aW_6AR.js} +48 -48
  23. package/dist/{connectionConfig-UFlIEiys.js → connectionConfig-Bk9IC7D0.js} +1 -1
  24. package/dist/{dashboardCommand-Dxy_kmoW.js → dashboardCommand-CwTZh-XZ.js} +3 -3
  25. package/dist/{dataCommand-D6-Ha2lf.js → dataCommand-Cc9RiLQZ.js} +14 -11
  26. package/dist/{dbCommand-C4UW8cVN.js → dbCommand-DSwGv9wS.js} +50 -49
  27. package/dist/dbCommand-DcqEyxju.js +2 -0
  28. package/dist/{dev-E7Eo5GHc.js → dev-3mgc8c-H.js} +2260 -2184
  29. package/dist/dev-CjJAasDs.js +3 -0
  30. package/dist/{dialectDriver-CgXnDfec.js → dialectDriver-czCHYpeH.js} +2 -1
  31. package/dist/doctorCommand-Cghssndo.js +2 -0
  32. package/dist/{doctorCommand-gmDyALFL.js → doctorCommand-oLuzc-aC.js} +261 -244
  33. package/dist/{dormancyCommand-CE6wG8lj.js → dormancyCommand-Bxe4WtHU.js} +1 -1
  34. package/dist/{e2eCmd-BRabZww-.js → e2eCmd-uFHig1hV.js} +8 -2
  35. package/dist/{embeddingsCommand-C3uAuf6N.js → embeddingsCommand-CyNQkFIc.js} +6 -6
  36. package/dist/{envCommand-DzuWh8ya.js → envCommand-CAkSgBbh.js} +19 -19
  37. package/dist/{evolveCommand-DPLqcYb2.js → evolveCommand-CWhBoe_P.js} +6 -8
  38. package/dist/frameworkTableAssembly-DgylYh9_.js +2 -0
  39. package/dist/{generateCommand-DbgcUpGw.js → generateCommand-CcyvH2ve.js} +1 -1
  40. package/dist/index.js +1 -1
  41. package/dist/{infoCommand-CmczGj_l.js → infoCommand-CTo8Jnhq.js} +7 -7
  42. package/dist/inspect-B7U7Cl_Z.js +1192 -0
  43. package/dist/inspect-DUze25t0.js +2 -0
  44. package/dist/{inspectCmd-EHFZ9yYu.js → inspectCmd-niF97fAq.js} +5 -5
  45. package/dist/inspectGateHint-BjnFubmH.js +7 -0
  46. package/dist/{logFileSink-C_D2wRN1.js → logFileSink-B4uP8pvf.js} +1 -1
  47. package/dist/{logsCmd-D36xK7Zu.js → logsCmd-B6oNsfaZ.js} +10 -7
  48. package/dist/{manifestBuild-hpPLaGxV.js → manifestBuild-BK42hu0k.js} +1 -1
  49. package/dist/manifestBuild-j0n109tt.js +2 -0
  50. package/dist/{metaCommands-CIoQNlaQ.js → metaCommands-DUYR--Ts.js} +1 -1
  51. package/dist/{migrate-RwgUWXfc.js → migrate-BnPw2zC8.js} +7 -4
  52. package/dist/{packageCommand-Cug_3Ogl.js → packageCommand-9SVyvsSo.js} +3 -2
  53. package/dist/{probeCommand-BPEpwT32.js → probeCommand-C9gazU0H.js} +35 -24
  54. package/dist/{projectScaffold-CxgtJvlb.js → projectScaffold-BEhhHjPr.js} +1 -1
  55. package/dist/{projectScaffold-DDgWbNLe.js → projectScaffold-BvhLOrLq.js} +17 -15
  56. package/dist/{runtimeTrace-6jfznSzr.js → runtimeTrace-gNXeLf6H.js} +1 -1
  57. package/dist/{scheduleManifestCmd-D2x0CTTY.js → scheduleManifestCmd-kmWzrO_w.js} +6 -9
  58. package/dist/{sdkgen-CEJZZQUA.js → sdkgen-C8zz10-X.js} +4 -4
  59. package/dist/{seedRunner-ZmLSqNe2.js → seedRunner-IdHEprqf.js} +1 -4
  60. package/dist/serveCommand-BpK8-m1N.js +1770 -0
  61. package/dist/serveCommand-CW-goXvh.js +2 -0
  62. package/dist/serveEntry.js +2 -2
  63. package/dist/{serverlessCommand-CfJZy6dS.js → serverlessCommand-DbJ7Plg9.js} +3 -3
  64. package/dist/{start-CidwCcjl.js → start-BNuTWdRd.js} +1 -1
  65. package/dist/{start-RCh6qKFe.js → start-ft_KzFTd.js} +257 -254
  66. package/dist/startEntry.js +1 -1
  67. package/dist/{test-DIQ0jlkQ.js → test-CLYXrZ2F.js} +1 -1
  68. package/dist/{tracesCmd-DStmCJPi.js → tracesCmd-DgtgOUdi.js} +7 -4
  69. package/dist/{typecheckCommand-BlsWiCNq.js → typecheckCommand-BuCtT92o.js} +7 -7
  70. package/dist/updateCommand-6FMU2klq.js +2 -0
  71. package/dist/{updateCommand-CmksX7m_.js → updateCommand-CHBmCB17.js} +5 -3
  72. package/dist/{webDev-BKdD7c_a.js → webDev-CTpSY-e_.js} +813 -775
  73. package/dist/webDev-id3I5PvG.js +2 -0
  74. package/dist/{webhookDiscovery-D7VaeMlz.js → webhookDiscovery-CphsQe59.js} +4 -6
  75. package/dist/{webhookDiscovery-CrGAfhIG.js → webhookDiscovery-il9ti-HE.js} +1 -1
  76. package/dist/{webhooksCommand-BHeaF1ZJ.js → webhooksCommand-EccPZQZ4.js} +1 -1
  77. package/package.json +27 -21
  78. package/templates/AGENTS.md +2 -2
  79. package/templates/agent-docs/_index.md +2 -2
  80. package/templates/agent-docs/_manifest.json +2 -2
  81. package/templates/agent-docs/authentication.md +43 -4
  82. package/templates/agent-docs/cli.md +17 -13
  83. package/templates/agent-docs/data.md +44 -1
  84. package/templates/agent-docs/database/migrations.md +2 -2
  85. package/templates/agent-docs/database/seedsdialects.md +2 -2
  86. package/templates/agent-docs/deployment.md +21 -7
  87. package/templates/agent-docs/internationalization.md +10 -3
  88. package/templates/agent-docs/local-first-mobile.md +141 -20
  89. package/templates/agent-docs/plugins/mail.md +1 -1
  90. package/templates/agent-docs/plugins/ratelimit.md +1 -1
  91. package/templates/agent-docs/plugins.md +3 -1
  92. package/templates/agent-docs/releases.md +130 -1
  93. package/templates/agent-docs/routing.md +34 -2
  94. package/templates/agent-docs/templates/apibackends.md +1 -1
  95. package/templates/agent-docs/templates/mobile.md +1 -1
  96. package/templates/agent-docs/whats-new.md +26 -66
  97. package/templates/apps/api-ai/package.json +7 -7
  98. package/templates/apps/api-auth/package.json +8 -8
  99. package/templates/apps/api-backend/package.json +7 -7
  100. package/templates/apps/api-backend-deactivation/package.json +7 -7
  101. package/templates/apps/api-backend-mail/package.json +8 -8
  102. package/templates/apps/api-backend-mariadb/package.json +9 -9
  103. package/templates/apps/api-backend-sqlite/package.json +8 -8
  104. package/templates/apps/api-backend-storage/package.json +8 -8
  105. package/templates/apps/api-cms/package.json +10 -10
  106. package/templates/apps/api-collab/package.json +8 -8
  107. package/templates/apps/api-data-advanced/package.json +8 -8
  108. package/templates/apps/api-durable/package.json +8 -8
  109. package/templates/apps/api-durable/startup/warm.startup.tsx +16 -2
  110. package/templates/apps/api-feature-flags/package.json +9 -9
  111. package/templates/apps/api-governance/package.json +8 -8
  112. package/templates/apps/api-kv/package.json +8 -8
  113. package/templates/apps/api-moderation/package.json +8 -8
  114. package/templates/apps/api-observability/package.json +8 -8
  115. package/templates/apps/api-ratelimit/package.json +8 -8
  116. package/templates/apps/api-rbac/authz.ts +16 -1
  117. package/templates/apps/api-rbac/package.json +8 -8
  118. package/templates/apps/api-rest/package.json +7 -7
  119. package/templates/apps/api-saas/package.json +11 -11
  120. package/templates/apps/api-saas-starter/package.json +10 -10
  121. package/templates/apps/api-search/package.json +8 -8
  122. package/templates/apps/api-status/package.json +8 -8
  123. package/templates/apps/api-versioning/package.json +8 -8
  124. package/templates/apps/api-webhooks/package.json +9 -9
  125. package/templates/apps/changelog/package.json +6 -6
  126. package/templates/apps/edge-functions/package.json +2 -2
  127. package/templates/apps/frontend-admin/package.json +8 -8
  128. package/templates/apps/frontend-app/package.json +9 -9
  129. package/templates/apps/frontend-auth/package.json +8 -8
  130. package/templates/apps/frontend-blank/package.json +7 -7
  131. package/templates/apps/frontend-cms/package.json +9 -9
  132. package/templates/apps/frontend-collab/package.json +10 -10
  133. package/templates/apps/frontend-contact/package.json +7 -7
  134. package/templates/apps/frontend-dashboard/package.json +7 -7
  135. package/templates/apps/frontend-docs/package.json +7 -7
  136. package/templates/apps/frontend-i18n/package.json +6 -6
  137. package/templates/apps/frontend-landing/package.json +7 -7
  138. package/templates/apps/frontend-portal/package.json +8 -8
  139. package/templates/apps/frontend-saas/package.json +8 -8
  140. package/templates/apps/frontend-spa/package.json +7 -7
  141. package/templates/apps/frontend-ssr/package.json +7 -7
  142. package/templates/apps/frontend-ssr-api/package.json +8 -8
  143. package/templates/apps/frontend-static-blog/package.json +6 -6
  144. package/templates/apps/frontend-status/package.json +8 -8
  145. package/templates/apps/mobile-app/README.md +41 -17
  146. package/templates/apps/mobile-app/app.config.ts +1 -1
  147. package/templates/apps/mobile-app/package.json +15 -11
  148. package/templates/apps/mobile-app/src/app/_layout.tsx +44 -13
  149. package/templates/apps/mobile-app/src/app/index.tsx +1 -1
  150. package/templates/apps/mobile-app/src/app/settings.tsx +4 -1
  151. package/templates/apps/mobile-app/src/client.ts +74 -57
  152. package/templates/apps/mobile-app/src/lib/api.ts +4 -4
  153. package/templates/apps/mobile-app/src/lib/deeplinks.ts +6 -6
  154. package/templates/apps/mobile-app/src/persistence.ts +24 -3
  155. package/templates/apps/mobile-app/tsconfig.json +17 -3
  156. package/dist/addCommand-aXSQveak.js +0 -2
  157. package/dist/agentsMd-BTchIZku.js +0 -2
  158. package/dist/apiBuild-ttSDDOGp.js +0 -2
  159. package/dist/baselineCommand-Cfw2Afwm.js +0 -2
  160. package/dist/codegen-uYrrDzQv.js +0 -2
  161. package/dist/codegenCommand-C60m_LCp.js +0 -30
  162. package/dist/dbCommand-CC-qNzpz.js +0 -2
  163. package/dist/dev-CAOoXOkc.js +0 -3
  164. package/dist/doctorCommand-Cjl8Yii8.js +0 -2
  165. package/dist/frameworkTableAssembly-YyVe32Cb.js +0 -2
  166. package/dist/inspect-CjTYzAs_.js +0 -1190
  167. package/dist/inspect-P4pxoMaV.js +0 -2
  168. package/dist/inspectGateHint-BF6608UT.js +0 -4
  169. package/dist/manifestBuild-COkJoyAr.js +0 -2
  170. package/dist/serveCommand-DNRF2nDI.js +0 -2
  171. package/dist/serveCommand-DnY4VS3D.js +0 -1767
  172. package/dist/updateCommand-B0J_T9Vs.js +0 -2
  173. package/dist/webDev-CcJfdSjl2.js +0 -2
@@ -15,7 +15,7 @@ var c = () => {
15
15
  name: "list-templates",
16
16
  summary: "List available app templates (kind, summary, tags).",
17
17
  status: "wired",
18
- run: (e) => import("./projectScaffold-CxgtJvlb.js").then((t) => t.runListTemplates(e)),
18
+ run: (e) => import("./projectScaffold-BEhhHjPr.js").then((t) => t.runListTemplates(e)),
19
19
  help: {
20
20
  usage: "",
21
21
  examples: [["voltro list-templates", "every template `create-project` / `add-app` can scaffold"]]
@@ -25,7 +25,7 @@ var c = () => {
25
25
  name: "create-project",
26
26
  summary: "Scaffold a new project under apps/<name>/ from one or more templates (creates the workspace root when there is none).",
27
27
  status: "wired",
28
- run: (e) => import("./projectScaffold-CxgtJvlb.js").then((t) => t.runCreateProject(e)),
28
+ run: (e) => import("./projectScaffold-BEhhHjPr.js").then((t) => t.runCreateProject(e)),
29
29
  help: {
30
30
  usage: "<name> [--api <templateId>] [--web <templateId>] [--mobile[=<templateId>]] [--no-register]",
31
31
  flags: [
@@ -48,13 +48,13 @@ var c = () => {
48
48
  handlesHelp: !0,
49
49
  summary: "Scaffold/convert workspace packages. Subcommands: create <name> [--publishable], publishable <name>, private <name>, status.",
50
50
  status: "wired",
51
- run: (e) => import("./packageCommand-Cug_3Ogl.js").then((t) => t.runPackageCommand(e))
51
+ run: (e) => import("./packageCommand-9SVyvsSo.js").then((t) => t.runPackageCommand(e))
52
52
  },
53
53
  {
54
54
  name: "create-package",
55
55
  summary: "Scaffold a new workspace package (alias of `package create`). Use --publishable for npm-ready setup.",
56
56
  status: "wired",
57
- run: (e) => import("./packageCommand-Cug_3Ogl.js").then((t) => t.runCreatePackage(e)),
57
+ run: (e) => import("./packageCommand-9SVyvsSo.js").then((t) => t.runCreatePackage(e)),
58
58
  help: {
59
59
  usage: "<name> [--publishable]",
60
60
  flags: [["--publishable", "npm-ready setup (build + exports + publishConfig) instead of a private package"]],
@@ -65,7 +65,7 @@ var c = () => {
65
65
  name: "add-app",
66
66
  summary: "Add a new app to an existing project from a template. Usage: voltro add-app <appName> --template <id> [--to <projectName>].",
67
67
  status: "wired",
68
- run: (e) => import("./projectScaffold-CxgtJvlb.js").then((t) => t.runAddApp(e)),
68
+ run: (e) => import("./projectScaffold-BEhhHjPr.js").then((t) => t.runAddApp(e)),
69
69
  help: {
70
70
  usage: "<appName> --template <templateId> [--to <projectName>] [--no-register]",
71
71
  flags: [
@@ -80,7 +80,7 @@ var c = () => {
80
80
  name: "init",
81
81
  summary: "Initialise the current directory as a Voltro workspace root (pnpm-workspace.yaml, root scripts, .gitignore, git init). Idempotent; takes no arguments.",
82
82
  status: "wired",
83
- run: (e) => import("./metaCommands-CIoQNlaQ.js").then((t) => t.runInit(e)),
83
+ run: (e) => import("./metaCommands-DUYR--Ts.js").then((t) => t.runInit(e)),
84
84
  help: {
85
85
  usage: "",
86
86
  examples: [["voltro init", "make the current directory a workspace root, then `voltro create-project <name>`"]],
@@ -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-CAOoXOkc.js").then((t) => t.runDev(e)),
94
+ run: (e) => import("./dev-CjJAasDs.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-Dxy_kmoW.js").then((t) => t.runDashboardCommand(e)),
112
+ run: (e) => import("./dashboardCommand-CwTZh-XZ.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-wibtQx-N.js").then((t) => t.runCheckCommand(e)),
124
+ run: (e) => import("./checkCommand-D9qK_gtA.js").then((t) => t.runCheckCommand(e)),
125
125
  help: {
126
126
  usage: "[--json] [--offline] [--process <name>] [--diff removeTable:<name>]",
127
127
  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-BHeaF1ZJ.js").then((t) => t.runWebhooksCommand(e)),
158
+ run: (e) => import("./webhooksCommand-EccPZQZ4.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-DPLqcYb2.js").then((t) => t.runEvolveCommand(e)),
174
+ run: (e) => import("./evolveCommand-CWhBoe_P.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-C60m_LCp.js").then((t) => t.runCodegenCommand(e)),
191
+ run: (e) => import("./codegenCommand-CxOyKmc1.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-RwgUWXfc.js").then((t) => t.runMigrateCommand(e)),
202
+ run: (e) => import("./migrate-BnPw2zC8.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-DIQ0jlkQ.js").then((t) => t.runTestCommand(e)),
214
+ run: (e) => import("./test-CLYXrZ2F.js").then((t) => t.runTestCommand(e)),
215
215
  help: {
216
216
  usage: "[dir] [filter…] [--watch] [-t <pattern>]",
217
217
  flags: [
@@ -236,7 +236,7 @@ var c = () => {
236
236
  name: "typecheck",
237
237
  summary: "Type-check the app with tsc --noEmit, using the TypeScript it pins. Optional [app] path and --project <tsconfig>; any other flags pass straight through to tsc.",
238
238
  status: "wired",
239
- run: (e) => import("./typecheckCommand-BlsWiCNq.js").then((t) => t.runTypecheckCommand(e)),
239
+ run: (e) => import("./typecheckCommand-BuCtT92o.js").then((t) => t.runTypecheckCommand(e)),
240
240
  help: {
241
241
  usage: "[app] [--project <tsconfig>] [… tsc flags]",
242
242
  flags: [["--project <tsconfig>", "the tsconfig to use (alias: -p)"]],
@@ -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-CmczGj_l.js").then((t) => t.runInfoCommand(e)),
262
+ run: (e) => import("./infoCommand-CTo8Jnhq.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-DzuWh8ya.js").then((t) => t.runEnvCommand(e)),
283
+ run: (e) => import("./envCommand-CAkSgBbh.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"]],
@@ -295,7 +295,7 @@ var c = () => {
295
295
  name: "e2e",
296
296
  summary: "For a web app: boot the api + web siblings, run each e2e/**/*.spec.ts as a plain tsx script (WEB_URL/API_URL in env), tear down.",
297
297
  status: "wired",
298
- run: (e) => import("./e2eCmd-BRabZww-.js").then((t) => t.runE2eCommand(e)),
298
+ run: (e) => import("./e2eCmd-uFHig1hV.js").then((t) => t.runE2eCommand(e)),
299
299
  help: {
300
300
  usage: "[app]",
301
301
  examples: [["voltro e2e", "boot api + web, run every e2e/**/*.spec.ts, tear down"]],
@@ -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-Cjl8Yii8.js");
312
+ let { runServePreflight: e } = await import("./doctorCommand-Cghssndo.js");
313
313
  return e(a(t), !0);
314
314
  }
315
- let { tryRunWebServe: n } = await import("./webDev-CcJfdSjl2.js"), r = await n(a(t));
315
+ let { tryRunWebServe: n } = await import("./webDev-id3I5PvG.js"), r = await n(a(t));
316
316
  if (!r.ran) {
317
- let { runServeDispatch: t } = await import("./serveCommand-DNRF2nDI.js");
317
+ let { runServeDispatch: t } = await import("./serveCommand-CW-goXvh.js");
318
318
  return t(e);
319
319
  }
320
320
  return r.exitCode;
@@ -330,7 +330,7 @@ var c = () => {
330
330
  name: "capabilities",
331
331
  summary: "The framework's export surface, read from the installed @voltro packages (--json for the machine-readable form).",
332
332
  status: "wired",
333
- run: (e) => import("./capabilitiesCommand-nq_pz5xd.js").then((t) => t.runCapabilitiesCommand(e)),
333
+ run: (e) => import("./capabilitiesCommand-D5gucwYa.js").then((t) => t.runCapabilitiesCommand(e)),
334
334
  help: {
335
335
  usage: "[--json]",
336
336
  flags: [["--json", "machine-readable export surface"]],
@@ -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-Cjl8Yii8.js").then((t) => t.runDoctorCommand(e))
345
+ run: (e) => import("./doctorCommand-Cghssndo.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-_LoTC1s0.js").then((t) => t.runBuildCommand(e)),
351
+ run: (e) => import("./build-DORV5mLM.js").then((t) => t.runBuildCommand(e)),
352
352
  help: {
353
353
  usage: "[app] [--target <t>]",
354
354
  flags: [["--target <t>", "build target"]],
@@ -364,14 +364,14 @@ 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-6jfznSzr.js").then((t) => t.runPruneRuntimeCommand(e)),
367
+ run: (e) => import("./runtimeTrace-gNXeLf6H.js").then((t) => t.runPruneRuntimeCommand(e)),
368
368
  hidden: !0
369
369
  },
370
370
  {
371
371
  name: "generate",
372
372
  summary: "AI app-builder (round-2/06): generate app graph + files from a prompt, gated by `voltro check`. Dry-run by default; --write applies. Usage: voltro generate \"<prompt>\" [--write].",
373
373
  status: "wired",
374
- run: (e) => import("./generateCommand-DbgcUpGw.js").then((t) => t.runGenerateCommand(e)),
374
+ run: (e) => import("./generateCommand-CcyvH2ve.js").then((t) => t.runGenerateCommand(e)),
375
375
  help: {
376
376
  usage: "\"<prompt>\" [--write]",
377
377
  flags: [["--write", "write the generated files (dry-run is the default)"]],
@@ -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-CE6wG8lj.js").then((t) => t.runDormancyCommand(e)),
385
+ run: (e) => import("./dormancyCommand-Bxe4WtHU.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-CidwCcjl.js").then((t) => t.runStartCommand(e)),
402
+ run: (e) => import("./start-BNuTWdRd.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)"]],
@@ -410,7 +410,7 @@ var c = () => {
410
410
  name: "deploy",
411
411
  summary: "Show deploy options + `voltro deploy plan` auto-detects the target tier (static-cdn / container / functions) per app + function.",
412
412
  status: "wired",
413
- run: (e) => import("./metaCommands-CIoQNlaQ.js").then((t) => t.runDeploy(e)),
413
+ run: (e) => import("./metaCommands-DUYR--Ts.js").then((t) => t.runDeploy(e)),
414
414
  help: {
415
415
  usage: "[plan]",
416
416
  examples: [["voltro deploy plan", "the auto-detected target tier per app + function"]]
@@ -421,7 +421,7 @@ var c = () => {
421
421
  handlesHelp: !0,
422
422
  summary: "Standalone *.serverless.ts functions. Subcommands: list, dev, serve, build, deploy [--target node|cloudflare|scaleway (default node)] [--dry-run].",
423
423
  status: "wired",
424
- run: (e) => import("./serverlessCommand-CfJZy6dS.js").then((t) => t.runServerlessCommand(e))
424
+ run: (e) => import("./serverlessCommand-DbJ7Plg9.js").then((t) => t.runServerlessCommand(e))
425
425
  },
426
426
  {
427
427
  name: "static",
@@ -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-CC-qNzpz.js").then((t) => t.runDbCommand(e)),
456
+ run: (e) => import("./dbCommand-DcqEyxju.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-D6-Ha2lf.js").then((t) => t.runDataCommand(e)),
472
+ run: (e) => import("./dataCommand-Cc9RiLQZ.js").then((t) => t.runDataCommand(e)),
473
473
  help: {
474
474
  usage: "<export|import|backup|restore> <dir> [options]",
475
475
  flags: [
@@ -500,13 +500,13 @@ var c = () => {
500
500
  handlesHelp: !0,
501
501
  summary: "Manage the project deploy baseline (bare / compose / helm). Subcommands: list, status, set.",
502
502
  status: "wired",
503
- run: (e) => import("./baselineCommand-Cfw2Afwm.js").then((t) => t.runBaselineCommand(e))
503
+ run: (e) => import("./baselineCommand-CXv680Dc.js").then((t) => t.runBaselineCommand(e))
504
504
  },
505
505
  {
506
506
  name: "add",
507
507
  summary: "Add an infra-backed integration to the project. Subcommands: redis (Redis cache backend + compose/helm/.env wiring); mssql (SQL Server store + the @effect/cluster mssql patch so durable cluster workflows work).",
508
508
  status: "wired",
509
- run: (e) => import("./addCommand-aXSQveak.js").then((t) => t.runAddCommand(e)),
509
+ run: (e) => import("./addCommand-C3MdJG-a.js").then((t) => t.runAddCommand(e)),
510
510
  help: {
511
511
  usage: "<redis|mssql>",
512
512
  examples: [["voltro add redis", "Redis cache backend + compose/helm/.env wiring"], ["voltro add mssql", "SQL Server store + the @effect/cluster patch durable workflows need"]]
@@ -517,27 +517,27 @@ var c = () => {
517
517
  handlesHelp: !0,
518
518
  summary: "Generate strong secrets. `generate [purpose]` (data-transfer, session, bundle-key, field-encryption, …) emits the right var+format; `generate` alone prints a generic secret; `list` shows all. Encrypted per-env storage is in Voltro Cloud.",
519
519
  status: "wired",
520
- run: (e) => import("./metaCommands-CIoQNlaQ.js").then((t) => t.runSecret(e))
520
+ run: (e) => import("./metaCommands-DUYR--Ts.js").then((t) => t.runSecret(e))
521
521
  },
522
522
  {
523
523
  name: "update",
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-B0J_T9Vs.js").then((t) => t.runUpdateCommand(e))
527
+ run: (e) => import("./updateCommand-6FMU2klq.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-B0J_T9Vs.js").then((t) => t.runApplyCodemods(e))
534
+ run: (e) => import("./updateCommand-6FMU2klq.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-C3uAuf6N.js").then((t) => t.runEmbeddingsCommand(e)),
540
+ run: (e) => import("./embeddingsCommand-CyNQkFIc.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: [
@@ -555,7 +555,7 @@ var c = () => {
555
555
  name: "telemetry",
556
556
  summary: "Report telemetry status — Voltro collects none (no phone-home, nothing to opt out of).",
557
557
  status: "wired",
558
- run: (e) => import("./metaCommands-CIoQNlaQ.js").then((t) => t.runTelemetry(e)),
558
+ run: (e) => import("./metaCommands-DUYR--Ts.js").then((t) => t.runTelemetry(e)),
559
559
  help: {
560
560
  usage: "",
561
561
  examples: [["voltro telemetry", "confirm what is collected: nothing"]],
@@ -570,7 +570,7 @@ var c = () => {
570
570
  name: "agents-md",
571
571
  summary: "Write the framework-tailored AGENTS.md into the project root (use --force to overwrite).",
572
572
  status: "wired",
573
- run: (e) => import("./agentsMd-BTchIZku.js").then((t) => t.runAgentsMd(e)),
573
+ run: (e) => import("./agentsMd-BFCXh2gl.js").then((t) => t.runAgentsMd(e)),
574
574
  help: {
575
575
  usage: "[--force]",
576
576
  flags: [["--force", "overwrite existing files (both AGENTS.md and CLAUDE.md)"]],
@@ -583,7 +583,7 @@ var c = () => {
583
583
  summary: "Ask a RUNNING app whether its declared access is enforced. `access` calls every guarded procedure with NO credentials and reports any that answer (--process, --url, --strict, --format).",
584
584
  status: "wired",
585
585
  handlesHelp: !0,
586
- run: (e) => import("./probeCommand-BPEpwT32.js").then((t) => t.runProbeCommand(e))
586
+ run: (e) => import("./probeCommand-C9gazU0H.js").then((t) => t.runProbeCommand(e))
587
587
  },
588
588
  {
589
589
  name: "schedule",
@@ -596,7 +596,7 @@ var c = () => {
596
596
  name: "schedule-manifest",
597
597
  summary: "Emit external-scheduler config for trigger:'external' schedules. --provider kubernetes|aws|gcp|azure|generic --base-url <url>.",
598
598
  status: "wired",
599
- run: (e) => import("./scheduleManifestCmd-D2x0CTTY.js").then((t) => t.runScheduleManifest(e)),
599
+ run: (e) => import("./scheduleManifestCmd-kmWzrO_w.js").then((t) => t.runScheduleManifest(e)),
600
600
  help: {
601
601
  usage: "--provider <kubernetes|aws|gcp|azure|generic> --base-url <url> [--token-env <VAR>]",
602
602
  flags: [
@@ -612,21 +612,21 @@ var c = () => {
612
612
  handlesHelp: !0,
613
613
  summary: "Tail recent log records from every running voltro process. --tail N --since 30s --level error --filter PAT --format json|pretty|text.",
614
614
  status: "wired",
615
- run: (e) => import("./logsCmd-D36xK7Zu.js").then((t) => t.runLogsCommand(e))
615
+ run: (e) => import("./logsCmd-B6oNsfaZ.js").then((t) => t.runLogsCommand(e))
616
616
  },
617
617
  {
618
618
  name: "traces",
619
619
  handlesHelp: !0,
620
620
  summary: "Distributed traces from every running api. --tail N --errors --since 30s --process NAME --format json|pretty. Use --id <traceId> for the waterfall of one trace.",
621
621
  status: "wired",
622
- run: (e) => import("./tracesCmd-DStmCJPi.js").then((t) => t.runTracesCommand(e))
622
+ run: (e) => import("./tracesCmd-DgtgOUdi.js").then((t) => t.runTracesCommand(e))
623
623
  },
624
624
  {
625
625
  name: "inspect",
626
626
  handlesHelp: !0,
627
627
  summary: "Query the live /_voltro/inspect/* surface. Subcommands: app, routes, rpc, metrics, cache, schedules, aggregates, invoke. --process NAME --format json|pretty. `schedules --failing` reports only broken crons and exits 1 if any (usable as a post-deploy gate).",
628
628
  status: "wired",
629
- run: (e) => import("./inspectCmd-EHFZ9yYu.js").then((t) => t.runInspectCommand(e))
629
+ run: (e) => import("./inspectCmd-niF97fAq.js").then((t) => t.runInspectCommand(e))
630
630
  },
631
631
  {
632
632
  name: "workflows",
@@ -640,13 +640,13 @@ var c = () => {
640
640
  handlesHelp: !0,
641
641
  summary: "Clustering snapshot of every running api. Subcommand: status — per-instance replicaId, runner address, dialect, CDC flavor, coordination, server_id, + a flag for SQL runners stuck on localhost. --process NAME --format json|pretty.",
642
642
  status: "wired",
643
- run: (e) => import("./clusterCmd-D5wsCmA_.js").then((t) => t.runClusterCommand(e))
643
+ run: (e) => import("./clusterCmd-DrVFCzSj.js").then((t) => t.runClusterCommand(e))
644
644
  },
645
645
  {
646
646
  name: "login",
647
647
  summary: "Log in to Voltro Cloud — opens a browser (WorkOS) and returns to the CLI after success. Alias for `voltro cloud login`. `--token <t>` (or VOLTRO_CLOUD_TOKEN) for headless.",
648
648
  status: "wired",
649
- run: (e) => import("./cloudCmd-NQSwe_Qk.js").then((t) => t.runCloudCommand(["login", ...e])),
649
+ run: (e) => import("./cloudCmd-C42gaO8s.js").then((t) => t.runCloudCommand(["login", ...e])),
650
650
  help: {
651
651
  usage: "[--token <t>]",
652
652
  flags: [["--token <t>", "headless login with an existing token (or set VOLTRO_CLOUD_TOKEN)"]],
@@ -658,7 +658,7 @@ var c = () => {
658
658
  handlesHelp: !0,
659
659
  summary: "Control-plane client. Subcommands: login (browser/WorkOS), whoami, projects, project create, env list|set|pull, import, deploy, scan, rollback, register. Base url via VOLTRO_CLOUD_URL.",
660
660
  status: "wired",
661
- run: (e) => import("./cloudCmd-NQSwe_Qk.js").then((t) => t.runCloudCommand(e))
661
+ run: (e) => import("./cloudCmd-C42gaO8s.js").then((t) => t.runCloudCommand(e))
662
662
  },
663
663
  {
664
664
  name: "help",
@@ -16,7 +16,7 @@ var e = () => {
16
16
  return Number.isInteger(t) && t > 0 ? t : void 0;
17
17
  }, r = () => {
18
18
  let e = process.env.PG_SSL;
19
- if (!(e === void 0 || e === "")) {
19
+ if (e !== void 0 && e !== "") {
20
20
  if (e === "require") return !0;
21
21
  if (e === "disable") return !1;
22
22
  throw Error(`PG_SSL '${e}' is not supported — use 'require' (TLS without certificate verification) or 'disable' (plaintext).`);
@@ -1,6 +1,6 @@
1
- import { d as e } from "./dev-E7Eo5GHc.js";
2
- import { P as t, j as n } from "./webDev-BKdD7c_a.js";
3
- import { t as r } from "./start-RCh6qKFe.js";
1
+ import { d as e } from "./dev-3mgc8c-H.js";
2
+ import { P as t, j as n } from "./webDev-CTpSY-e_.js";
3
+ import { t as r } from "./start-ft_KzFTd.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";
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "./cliError-BmdYnghb.js";
2
- import { c as t, i as n, o as r } from "./dev-E7Eo5GHc.js";
2
+ import { c as t, i as n, o as r } from "./dev-3mgc8c-H.js";
3
3
  import { n as i, t as a } from "./cliArgs-D4p8n7EE.js";
4
- import { r as o } from "./dialectDriver-CgXnDfec.js";
4
+ import { r as o } from "./dialectDriver-czCHYpeH.js";
5
5
  import { t as s } from "./dataProfile-dW-PsfLB.js";
6
6
  import { o as c, t as l } from "./inspectFetch-EMuhTG_9.js";
7
- import { r as u } from "./dbCommand-C4UW8cVN.js";
7
+ import { r as u } from "./dbCommand-DSwGv9wS.js";
8
8
  import { createLogger as d } from "@voltro/logger";
9
9
  import { Effect as f, Stream as p } from "effect";
10
10
  import { SqlClient as m } from "@effect/sql";
@@ -137,7 +137,7 @@ var P = "voltro-backup-stamp.json", le = (e) => ({
137
137
  sameTarget: b(i, n?.databaseId),
138
138
  ...a === void 0 ? {} : { targetLabel: `${a.host}:${a.port}/${a.database}` }
139
139
  });
140
- return o ? (L.error(s ?? "refusing: live instance detected"), !1) : !0;
140
+ return !o || (L.error(s ?? "refusing: live instance detected"), !1);
141
141
  }, H = i, me = [
142
142
  "--api-url",
143
143
  "--bundle-key",
@@ -163,13 +163,13 @@ var P = "voltro-backup-stamp.json", le = (e) => ({
163
163
  let e = r(), t = [];
164
164
  return e.url && t.push(I(e.url)), (e.host || e.database) && t.push(`${(e.host ?? "localhost").toLowerCase()}:${e.port ?? "(default)"}/${e.database ?? ""}`), t;
165
165
  }, q = async () => {
166
- let r = await t(process.cwd());
167
- if (!r) throw new e("voltro data: no app.config.ts found in the current directory.");
168
- let i = await n(r, void 0), a = W();
166
+ let r = process.cwd(), i = await t(r);
167
+ if (!i) throw new e("voltro data: no app.config.ts found in the current directory.");
168
+ let a = await n(i, void 0), o = W();
169
169
  return {
170
- store: i,
171
- snapshot: await K(a),
172
- dialect: a
170
+ store: a,
171
+ snapshot: await K(o),
172
+ dialect: o
173
173
  };
174
174
  }, J = (e) => x(e, {
175
175
  table: S,
@@ -195,7 +195,10 @@ var P = "voltro-backup-stamp.json", le = (e) => ({
195
195
  kind: "tables",
196
196
  tables: n.split(",").map((e) => e.trim()).filter(Boolean)
197
197
  } : { kind: "all" };
198
- }, ye = async () => ne(h(await u(process.cwd()))), be = "voltro/tenant", xe = async () => {
198
+ }, ye = async () => {
199
+ let e = await u(process.cwd());
200
+ return ne(h(e));
201
+ }, be = "voltro/tenant", xe = async () => {
199
202
  let e = (await u(process.cwd())).filter((e) => (e.appliedMixins ?? []).some((e) => e.id === be)).map((e) => e.tableName);
200
203
  return e.length > 0 ? e : void 0;
201
204
  }, Q = (e) => {