@voltro/cli 0.57.0 → 0.59.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.
- package/CHANGELOG.md +256 -0
- package/dist/apiBuild-B9OvhITV.js +2 -0
- package/dist/{apiBuild-DDr2aNFd.js → apiBuild-BU5cd-Fn.js} +52 -50
- package/dist/bin.js +1 -1
- package/dist/build-uRMZrT8z.js +1066 -0
- package/dist/{checkCommand-BISqx1OJ.js → checkCommand-C1CQc8lD.js} +1 -1
- package/dist/{checkCommand-DUtMWjcR.js → checkCommand-DC7k1_hP.js} +3 -3
- package/dist/{codegenCommand-DnVuDxwT.js → codegenCommand-kS3Twuc9.js} +7 -7
- package/dist/{codemodRunner-BlQPfjzA.js → codemodRunner-kNnh1I7_.js} +1227 -911
- package/dist/{commands-CRbxgxv0.js → commands-cu34ENUT.js} +21 -21
- package/dist/{dashboardCommand-Bf_-Ne3P.js → dashboardCommand-gG1y4PFG.js} +5 -5
- package/dist/{dataCommand-BoBJJ-Gb.js → dataCommand-hNOGKz4K.js} +6 -6
- package/dist/{dev-DOEJXicj.js → dev-Ce2gEziv.js} +2422 -2419
- package/dist/dev-Dff_pdik.js +3 -0
- package/dist/{doctorCommand-BrWu67JZ.js → doctorCommand-CGjefPmk.js} +505 -284
- package/dist/doctorCommand-DXnNpKQT.js +2 -0
- package/dist/{dormancyCommand-xn2y-pJm.js → dormancyCommand-DYgI0Kf-.js} +3 -3
- package/dist/{embeddingsCommand-Cn5MbRDM.js → embeddingsCommand-yJivQSrI.js} +2 -2
- package/dist/{envCommand-UJmJIbs9.js → envCommand-ORJUf8r_.js} +8 -8
- package/dist/{evolveCommand-Db30twUy.js → evolveCommand-8CuFBlbQ.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{infoCommand-BjVXpMlP.js → infoCommand-D02A4WI2.js} +1 -1
- package/dist/inspect-CZvsmp8t.js +2 -0
- package/dist/{inspect-DZnan87F.js → inspect-PcC5J-Dl.js} +6 -7
- package/dist/manifestBuild-AUh31bFU.js +2 -0
- package/dist/{manifestBuild-DnbFKF6w.js → manifestBuild-BwiS4iYm.js} +1 -1
- package/dist/{probeCommand-C5fuN6Z2.js → probeCommand-BUYzc0CT.js} +1 -1
- package/dist/{runtimeTrace-BQL_lfz6.js → runtimeTrace-DDuKJgVi.js} +1 -1
- package/dist/{sdkgen-CMUPrDjH.js → sdkgen-vq1fF9D_.js} +1 -1
- package/dist/serveCommand-1R52mo6F.js +2 -0
- package/dist/{serveCommand-B_w-Mpb_.js → serveCommand-Dr4KXmTS.js} +726 -725
- package/dist/serveEntry.js +1 -1
- package/dist/{start-s25GAIgn.js → start-C75w6ftA.js} +1 -1
- package/dist/{start-YaUehtDV.js → start-DNtIlBcn.js} +641 -609
- package/dist/startEntry.js +1 -1
- package/dist/{updateCommand-C9n_Z_oG.js → updateCommand-Bw3mCUDT.js} +1 -1
- package/dist/updateCommand-inInBIAh.js +2 -0
- package/dist/webDev-Bzb8ZFus.js +2 -0
- package/dist/{webDev-BgdkyjP6.js → webDev-CBN9KkyQ.js} +154 -146
- package/dist/{webhooksCommand-CYXTNvXq.js → webhooksCommand-BPJQOGTe.js} +1 -1
- package/package.json +73 -19
- package/templates/AGENTS.md +1 -1
- package/templates/agent-docs/_index.md +1 -1
- package/templates/agent-docs/_manifest.json +1 -1
- package/templates/agent-docs/ai.md +223 -0
- package/templates/agent-docs/authentication.md +34 -0
- package/templates/agent-docs/cli.md +7 -6
- package/templates/agent-docs/data.md +30 -0
- package/templates/agent-docs/database/transactions.md +48 -0
- package/templates/agent-docs/observability.md +13 -2
- package/templates/agent-docs/plugins/auth-supabase.md +21 -0
- package/templates/agent-docs/plugins/sentry.md +131 -9
- package/templates/agent-docs/schema-driven-ui.md +29 -0
- package/templates/agent-docs/whats-new.md +26 -165
- package/templates/apps/api-ai/package.json +6 -6
- package/templates/apps/api-auth/package.json +8 -8
- package/templates/apps/api-backend/package.json +7 -7
- package/templates/apps/api-backend-deactivation/package.json +7 -7
- package/templates/apps/api-backend-mail/package.json +8 -8
- package/templates/apps/api-backend-mariadb/package.json +9 -9
- package/templates/apps/api-backend-sqlite/package.json +8 -8
- package/templates/apps/api-backend-storage/package.json +8 -8
- package/templates/apps/api-cms/package.json +9 -9
- package/templates/apps/api-collab/package.json +8 -8
- package/templates/apps/api-data-advanced/package.json +8 -8
- package/templates/apps/api-durable/package.json +8 -8
- package/templates/apps/api-feature-flags/package.json +9 -9
- package/templates/apps/api-governance/package.json +8 -8
- package/templates/apps/api-kv/package.json +8 -8
- package/templates/apps/api-moderation/package.json +8 -8
- package/templates/apps/api-observability/package.json +8 -8
- package/templates/apps/api-ratelimit/package.json +8 -8
- package/templates/apps/api-rbac/package.json +8 -8
- package/templates/apps/api-rest/package.json +7 -7
- package/templates/apps/api-row-history/package.json +8 -8
- package/templates/apps/api-saas/package.json +11 -11
- package/templates/apps/api-saas-starter/package.json +10 -10
- package/templates/apps/api-search/package.json +8 -8
- package/templates/apps/api-status/package.json +8 -8
- package/templates/apps/api-webhooks/package.json +9 -9
- package/templates/apps/changelog/package.json +7 -7
- package/templates/apps/edge-functions/package.json +2 -2
- package/templates/apps/frontend-admin/package.json +7 -7
- package/templates/apps/frontend-app/package.json +8 -8
- package/templates/apps/frontend-auth/package.json +7 -7
- package/templates/apps/frontend-blank/package.json +6 -6
- package/templates/apps/frontend-cms/package.json +8 -8
- package/templates/apps/frontend-collab/package.json +9 -9
- package/templates/apps/frontend-contact/package.json +7 -7
- package/templates/apps/frontend-dashboard/package.json +6 -6
- package/templates/apps/frontend-docs/package.json +8 -8
- package/templates/apps/frontend-i18n/package.json +6 -6
- package/templates/apps/frontend-landing/package.json +7 -7
- package/templates/apps/frontend-portal/package.json +7 -7
- package/templates/apps/frontend-saas/package.json +7 -7
- package/templates/apps/frontend-spa/package.json +6 -6
- package/templates/apps/frontend-ssr/package.json +6 -6
- package/templates/apps/frontend-ssr-api/package.json +7 -7
- package/templates/apps/frontend-static-blog/package.json +8 -8
- package/templates/apps/frontend-status/package.json +7 -7
- package/templates/apps/mobile-app/package.json +4 -4
- package/dist/apiBuild-B83Cb2Rv.js +0 -2
- package/dist/build-QKP6Bm0J.js +0 -872
- package/dist/dev-Bl9HqtV7.js +0 -3
- package/dist/doctorCommand-DrQv9SL3.js +0 -2
- package/dist/inspect-B0hL41s0.js +0 -2
- package/dist/manifestBuild-UXrnUcXP.js +0 -2
- package/dist/serveCommand-Dtb48ffg.js +0 -2
- package/dist/updateCommand-DsXEAHbd.js +0 -2
- package/dist/webDev-B6ZMX42w.js +0 -2
|
@@ -91,7 +91,7 @@ var u = () => {
|
|
|
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-
|
|
94
|
+
run: (e) => import("./dev-Dff_pdik.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 u = () => {
|
|
|
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-
|
|
112
|
+
run: (e) => import("./dashboardCommand-gG1y4PFG.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 u = () => {
|
|
|
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-
|
|
124
|
+
run: (e) => import("./checkCommand-C1CQc8lD.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 u = () => {
|
|
|
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-
|
|
158
|
+
run: (e) => import("./webhooksCommand-BPJQOGTe.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 u = () => {
|
|
|
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-
|
|
174
|
+
run: (e) => import("./evolveCommand-8CuFBlbQ.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 u = () => {
|
|
|
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-
|
|
191
|
+
run: (e) => import("./codegenCommand-kS3Twuc9.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"]],
|
|
@@ -281,7 +281,7 @@ var u = () => {
|
|
|
281
281
|
name: "info",
|
|
282
282
|
summary: "Report versions (CLI, node, every installed @voltro/* — flags lockstep skew), package manager, and dialect. --json for CI. Exits 1 on version skew.",
|
|
283
283
|
status: "wired",
|
|
284
|
-
run: (e) => import("./infoCommand-
|
|
284
|
+
run: (e) => import("./infoCommand-D02A4WI2.js").then((t) => t.runInfoCommand(e)),
|
|
285
285
|
help: {
|
|
286
286
|
usage: "[--json]",
|
|
287
287
|
flags: [["--json", "machine-readable report"]],
|
|
@@ -302,7 +302,7 @@ var u = () => {
|
|
|
302
302
|
name: "env",
|
|
303
303
|
summary: "Inspect/sync the typed-env manifest. Subcommands: check (default), sync (.env.example), types (env.generated.d.ts for CI tsc), turbo.",
|
|
304
304
|
status: "wired",
|
|
305
|
-
run: (e) => import("./envCommand-
|
|
305
|
+
run: (e) => import("./envCommand-ORJUf8r_.js").then((t) => t.runEnvCommand(e)),
|
|
306
306
|
help: {
|
|
307
307
|
usage: "[check|sync|types|turbo] [--force]",
|
|
308
308
|
flags: [["--force", "overwrite the generated file instead of refusing on a conflict"]],
|
|
@@ -331,12 +331,12 @@ var u = () => {
|
|
|
331
331
|
run: async (e) => {
|
|
332
332
|
let t = e.find((e) => !e.startsWith("-")) ?? process.cwd();
|
|
333
333
|
if (e.includes("--preflight")) {
|
|
334
|
-
let { runServePreflight: e } = await import("./doctorCommand-
|
|
334
|
+
let { runServePreflight: e } = await import("./doctorCommand-DXnNpKQT.js");
|
|
335
335
|
return e(s(t), !0);
|
|
336
336
|
}
|
|
337
|
-
let { tryRunWebServe: n } = await import("./webDev-
|
|
337
|
+
let { tryRunWebServe: n } = await import("./webDev-Bzb8ZFus.js"), r = await n(s(t));
|
|
338
338
|
if (!r.ran) {
|
|
339
|
-
let { runServeDispatch: t } = await import("./serveCommand-
|
|
339
|
+
let { runServeDispatch: t } = await import("./serveCommand-1R52mo6F.js");
|
|
340
340
|
return t(e);
|
|
341
341
|
}
|
|
342
342
|
return r.exitCode;
|
|
@@ -364,13 +364,13 @@ var u = () => {
|
|
|
364
364
|
handlesHelp: !0,
|
|
365
365
|
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.",
|
|
366
366
|
status: "wired",
|
|
367
|
-
run: (e) => import("./doctorCommand-
|
|
367
|
+
run: (e) => import("./doctorCommand-DXnNpKQT.js").then((t) => t.runDoctorCommand(e))
|
|
368
368
|
},
|
|
369
369
|
{
|
|
370
370
|
name: "build",
|
|
371
371
|
summary: "Production build for a web app (vite build + per-page SSG pre-render).",
|
|
372
372
|
status: "wired",
|
|
373
|
-
run: (e) => import("./build-
|
|
373
|
+
run: (e) => import("./build-uRMZrT8z.js").then((t) => t.runBuildCommand(e)),
|
|
374
374
|
help: {
|
|
375
375
|
usage: "[app] [--target <t>]",
|
|
376
376
|
flags: [["--target <t>", "build target"], ["--report", "print what a visitor downloads: first load, chunks, server artefacts"]],
|
|
@@ -386,7 +386,7 @@ var u = () => {
|
|
|
386
386
|
name: "prune-runtime",
|
|
387
387
|
summary: "Trim a deployed web tree’s node_modules to the reachable runtime set (standalone image slimming).",
|
|
388
388
|
status: "wired",
|
|
389
|
-
run: (e) => import("./runtimeTrace-
|
|
389
|
+
run: (e) => import("./runtimeTrace-DDuKJgVi.js").then((t) => t.runPruneRuntimeCommand(e)),
|
|
390
390
|
hidden: !0
|
|
391
391
|
},
|
|
392
392
|
{
|
|
@@ -404,7 +404,7 @@ var u = () => {
|
|
|
404
404
|
name: "dormancy",
|
|
405
405
|
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.",
|
|
406
406
|
status: "wired",
|
|
407
|
-
run: (e) => import("./dormancyCommand-
|
|
407
|
+
run: (e) => import("./dormancyCommand-DYgI0Kf-.js").then((t) => t.runDormancyCommand(e)),
|
|
408
408
|
help: {
|
|
409
409
|
usage: "[app] [--port <n>] [--app-port <n>] [--idle-grace-ms <n>] [--tick-ms <n>]",
|
|
410
410
|
flags: [
|
|
@@ -421,7 +421,7 @@ var u = () => {
|
|
|
421
421
|
name: "start",
|
|
422
422
|
summary: "Production runtime: serves dist + SSR-on-demand for ssr/isr pages.",
|
|
423
423
|
status: "wired",
|
|
424
|
-
run: (e) => import("./start-
|
|
424
|
+
run: (e) => import("./start-C75w6ftA.js").then((t) => t.runStartCommand(e)),
|
|
425
425
|
help: {
|
|
426
426
|
usage: "[app]",
|
|
427
427
|
examples: [["voltro start", "serve a built web app (dist + SSR-on-demand)"]],
|
|
@@ -491,7 +491,7 @@ var u = () => {
|
|
|
491
491
|
name: "data",
|
|
492
492
|
summary: "Export/import + backup/restore of app data. Logical (rows + optional assets): export <dir> [--tenant <id>|--tables a,b|--exclude a,b] [--assets] [--compression zstd|gzip|none] [--consistency live|snapshot]; import <dir> [--assets] [--no-verify]; transfers — the history in all four directions, including a run in flight; inspect <file|dir>; unpack <file> <dir>. Native (vendor dump, no resume): backup <dir> [--assets] / restore <dir> [--assets] (pg_dump/mariadb-dump/…) — a restore marks the database in-progress until it finishes. Recovery: clear-replace-marker, clear-staging. Resumable + typed-NDJSON on the logical path; content-addressed assets on both.",
|
|
493
493
|
status: "wired",
|
|
494
|
-
run: (e) => import("./dataCommand-
|
|
494
|
+
run: (e) => import("./dataCommand-hNOGKz4K.js").then((t) => t.runDataCommand(e)),
|
|
495
495
|
help: {
|
|
496
496
|
usage: e(i),
|
|
497
497
|
flags: [
|
|
@@ -555,20 +555,20 @@ var u = () => {
|
|
|
555
555
|
handlesHelp: !0,
|
|
556
556
|
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`.",
|
|
557
557
|
status: "wired",
|
|
558
|
-
run: (e) => import("./updateCommand-
|
|
558
|
+
run: (e) => import("./updateCommand-inInBIAh.js").then((t) => t.runUpdateCommand(e))
|
|
559
559
|
},
|
|
560
560
|
{
|
|
561
561
|
name: "_apply-codemods",
|
|
562
562
|
summary: "Internal: apply shipped codemods for a framework version jump (re-exec target of `voltro update`).",
|
|
563
563
|
status: "wired",
|
|
564
564
|
hidden: !0,
|
|
565
|
-
run: (e) => import("./updateCommand-
|
|
565
|
+
run: (e) => import("./updateCommand-inInBIAh.js").then((t) => t.runApplyCodemods(e))
|
|
566
566
|
},
|
|
567
567
|
{
|
|
568
568
|
name: "embeddings",
|
|
569
569
|
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.",
|
|
570
570
|
status: "wired",
|
|
571
|
-
run: (e) => import("./embeddingsCommand-
|
|
571
|
+
run: (e) => import("./embeddingsCommand-yJivQSrI.js").then((t) => t.runEmbeddingsCommand(e)),
|
|
572
572
|
help: {
|
|
573
573
|
usage: "backfill <table> --text <field> --vector <field> [--model <m>] [--batch <n>] [--dry-run]",
|
|
574
574
|
flags: [
|
|
@@ -614,7 +614,7 @@ var u = () => {
|
|
|
614
614
|
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).",
|
|
615
615
|
status: "wired",
|
|
616
616
|
handlesHelp: !0,
|
|
617
|
-
run: (e) => import("./probeCommand-
|
|
617
|
+
run: (e) => import("./probeCommand-BUYzc0CT.js").then((t) => t.runProbeCommand(e))
|
|
618
618
|
},
|
|
619
619
|
{
|
|
620
620
|
name: "schedule",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { it as t,
|
|
3
|
-
import { t as r } from "./start-
|
|
1
|
+
import { p as e } from "./dev-Ce2gEziv.js";
|
|
2
|
+
import { it as t, st as n } from "./webDev-CBN9KkyQ.js";
|
|
3
|
+
import { t as r } from "./start-DNtIlBcn.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";
|
|
@@ -9,10 +9,10 @@ var s = o({ scope: "voltro:dashboard" }), c = (e, t) => {
|
|
|
9
9
|
let n = e.indexOf(t);
|
|
10
10
|
return n >= 0 ? e[n + 1] : void 0;
|
|
11
11
|
}, l = async (o) => {
|
|
12
|
-
process.env[
|
|
12
|
+
process.env[t] = "1";
|
|
13
13
|
let l = c(o, "--port") ?? process.env.VOLTRO_DASHBOARD_PORT ?? "5179";
|
|
14
14
|
process.env.VOLTRO_DASHBOARD_PORT = l;
|
|
15
|
-
let u =
|
|
15
|
+
let u = n(process.cwd());
|
|
16
16
|
if (!u) return s.error("dashboard app not found. Install it with `pnpm add @voltro/dashboard`, or set VOLTRO_DASHBOARD_PATH to a dashboard app directory."), 1;
|
|
17
17
|
let d = a(i(u, ".framework", "dist", "index.html"));
|
|
18
18
|
return s.info(`serving the Voltro dashboard on :${l}`, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, t } from "./subcommandNames-CDzfEtKV.js";
|
|
2
2
|
import { t as n } from "./cliError-BmdYnghb.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as r, l as i, q as a, s as o } from "./dev-Ce2gEziv.js";
|
|
4
4
|
import { n as s, t as c } from "./cliArgs-D4p8n7EE.js";
|
|
5
5
|
import { r as l } from "./dialectDriver-czCHYpeH.js";
|
|
6
6
|
import { i as u, n as d, r as f, t as p } from "./dataProfile-Du3ztYxv.js";
|
|
@@ -430,9 +430,9 @@ var Pe = /* @__PURE__ */ new Set([
|
|
|
430
430
|
}, q = async () => {
|
|
431
431
|
let e = process.cwd(), t = await i(e);
|
|
432
432
|
if (!t) throw new n("voltro data: no app.config.ts found in the current directory.");
|
|
433
|
-
let
|
|
433
|
+
let a = await r(t, void 0), o = G();
|
|
434
434
|
return {
|
|
435
|
-
store:
|
|
435
|
+
store: a,
|
|
436
436
|
snapshot: await K(o),
|
|
437
437
|
dialect: o
|
|
438
438
|
};
|
|
@@ -605,8 +605,8 @@ var Pe = /* @__PURE__ */ new Set([
|
|
|
605
605
|
};
|
|
606
606
|
}, vt = (e) => `--mode replace with --no-atomic against a ${e ? "RUNNING instance" : "live database"}: the target is empty between the delete and the load, and anything the application writes in that window can collide with a row from the bundle — or survive the import as a row the bundle never carried. Drop --no-atomic to run the whole load in one transaction (concurrent writers then wait instead of racing), or stop the traffic for the duration.`, Q = (e, t) => e.includes("--no-atomic") ? !1 : e.includes("--atomic") || t === "replace", yt = (e, t, n) => {
|
|
607
607
|
if (t !== "replace" || e.includes("--no-rollback")) return;
|
|
608
|
-
let
|
|
609
|
-
return
|
|
608
|
+
let r = U(e, "--rollback-dir");
|
|
609
|
+
return r === void 0 ? a(n) : _(r);
|
|
610
610
|
}, bt = (e, t, n) => {
|
|
611
611
|
let r = yt(e, t, n);
|
|
612
612
|
return {
|
|
@@ -1100,7 +1100,7 @@ var Pe = /* @__PURE__ */ new Set([
|
|
|
1100
1100
|
}
|
|
1101
1101
|
if (!e) return { unavailable: "no-app-config" };
|
|
1102
1102
|
try {
|
|
1103
|
-
return { store: await
|
|
1103
|
+
return { store: await r(e, void 0) };
|
|
1104
1104
|
} catch (e) {
|
|
1105
1105
|
return {
|
|
1106
1106
|
unavailable: "store-unopenable",
|