@voltro/cli 0.48.0 → 0.49.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 +67 -0
- package/dist/{apiBuild-Dz8TJSxp.js → apiBuild-QmYHaCF4.js} +1 -1
- package/dist/apiBuild-dZbHdqMg.js +2 -0
- package/dist/bin.js +1 -1
- package/dist/{build-DLme2ppa.js → build-Bi4O_g7T.js} +6 -6
- package/dist/{checkCommand-Dals7g-I.js → checkCommand-D8vjQXQt.js} +3 -3
- package/dist/{checkCommand-BUBqPBlI.js → checkCommand-udbQpphy.js} +1 -1
- package/dist/{codegenCommand-L6vacVRW.js → codegenCommand-DApSH7hK.js} +39 -47
- package/dist/{codemodRunner-DSZjgyCL.js → codemodRunner-De1_316I.js} +562 -492
- package/dist/{commands-CAxFLqG4.js → commands-a5PxCaIg.js} +68 -60
- package/dist/{dashboardCommand-CJC8Kg-s.js → dashboardCommand-DaoUUqJS.js} +1 -1
- package/dist/dataCommand-CJv_OMoS.js +1156 -0
- package/dist/dataProfile-Du3ztYxv.js +51 -0
- package/dist/{dbCommand-ZGNItjoJ.js → dbCommand-Bf7Cy0mn.js} +2 -2
- package/dist/dbCommand-Bnl7MSGC.js +2 -0
- package/dist/{dev-lvnVq5RD.js → dev-C31Nvlbv.js} +1 -1
- package/dist/{dev-cGGsLNn6.js → dev-DFVuzOj7.js} +1 -1
- package/dist/{doctorCommand-BK0qu7eD.js → doctorCommand-B3uraeAe.js} +12 -12
- package/dist/doctorCommand-CPL6EhrW.js +2 -0
- package/dist/{dormancyCommand-CyIk-zq4.js → dormancyCommand-QUXQ9yoz.js} +1 -1
- package/dist/{embeddingsCommand-D7TLklps.js → embeddingsCommand-Zw1-rYSF.js} +1 -1
- package/dist/{envCommand-BHxKkGXq.js → envCommand-DtaJ4xEf.js} +1 -1
- package/dist/{evolveCommand-CQh6dw21.js → evolveCommand-JDD3hE1i.js} +2 -2
- package/dist/{frameworkTableAssembly-BNod_DKN.js → frameworkTableAssembly-BwJVEKLr.js} +3 -3
- package/dist/frameworkTableAssembly-CVDB2hCq.js +2 -0
- package/dist/index.js +1 -1
- package/dist/{infoCommand-CuNl9cbh.js → infoCommand-COsUC1DB.js} +1 -1
- package/dist/{migrate-CL5Ed01M.js → migrate-D3MK9BpK.js} +2 -2
- package/dist/{runtimeTrace-C0SlIoQY.js → runtimeTrace-Di6fcndp.js} +1 -1
- package/dist/{sdkgen-BXm7zx7F.js → sdkgen-CIi5gM17.js} +1 -1
- package/dist/serveCommand-CzSDngKm.js +2 -0
- package/dist/serveCommand-N3udT49p.js +2362 -0
- package/dist/serveEntry.js +5 -5
- package/dist/{subcommandNames-CKG5Dz3a.js → subcommandNames-DpYs3DXr.js} +12 -2
- package/dist/{updateCommand-BlyXavoG.js → updateCommand-2BfbeMvp.js} +1 -1
- package/dist/updateCommand-CtYm7aKH.js +2 -0
- package/dist/{webhooksCommand-QlAk_tED.js → webhooksCommand-CwX9IzvJ.js} +1 -1
- package/package.json +29 -17
- package/templates/AGENTS.md +1 -1
- package/templates/agent-docs/_index.md +1 -1
- package/templates/agent-docs/cli.md +71 -13
- package/templates/agent-docs/whats-new.md +34 -47
- package/templates/apps/api-ai/package.json +7 -7
- 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 +10 -10
- 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-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-versioning/package.json +8 -8
- package/templates/apps/api-webhooks/package.json +9 -9
- package/templates/apps/changelog/package.json +6 -6
- package/templates/apps/edge-functions/package.json +2 -2
- package/templates/apps/frontend-admin/package.json +8 -8
- package/templates/apps/frontend-app/package.json +9 -9
- package/templates/apps/frontend-auth/package.json +8 -8
- package/templates/apps/frontend-blank/package.json +7 -7
- package/templates/apps/frontend-cms/package.json +9 -9
- package/templates/apps/frontend-collab/package.json +10 -10
- package/templates/apps/frontend-contact/package.json +7 -7
- package/templates/apps/frontend-dashboard/package.json +7 -7
- package/templates/apps/frontend-docs/package.json +7 -7
- 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 +8 -8
- package/templates/apps/frontend-saas/package.json +8 -8
- package/templates/apps/frontend-spa/package.json +7 -7
- package/templates/apps/frontend-ssr/package.json +7 -7
- package/templates/apps/frontend-ssr-api/package.json +8 -8
- package/templates/apps/frontend-static-blog/package.json +6 -6
- package/templates/apps/frontend-status/package.json +8 -8
- package/templates/apps/mobile-app/package.json +4 -4
- package/dist/apiBuild-DOnvi2zm.js +0 -2
- package/dist/dataCommand-hIaq2iKY.js +0 -1052
- package/dist/dataProfile-Cm0YVKSy.js +0 -18
- package/dist/dbCommand-D1Q33ktl.js +0 -2
- package/dist/doctorCommand-CWgUPye-.js +0 -2
- package/dist/frameworkTableAssembly-Rft-DPUg.js +0 -2
- package/dist/serveCommand-CV3YO9L3.js +0 -2035
- package/dist/serveCommand-ZP_Cb-yz.js +0 -2
- package/dist/updateCommand-CT5AvVg7.js +0 -2
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { DATA_TRANSFERS_TABLE as e } from "@voltro/database";
|
|
2
|
+
//#region src/importRunStatus.ts
|
|
3
|
+
var t = async (t, n) => {
|
|
4
|
+
let r = (await t.query({
|
|
5
|
+
table: e,
|
|
6
|
+
predicate: {
|
|
7
|
+
column: "id",
|
|
8
|
+
op: "eq",
|
|
9
|
+
value: n
|
|
10
|
+
},
|
|
11
|
+
order: [],
|
|
12
|
+
take: 1,
|
|
13
|
+
skip: 0,
|
|
14
|
+
projection: void 0
|
|
15
|
+
}).catch(() => []))[0];
|
|
16
|
+
return r === void 0 ? null : {
|
|
17
|
+
...r,
|
|
18
|
+
startedAt: new Date(r.startedAt),
|
|
19
|
+
finishedAt: r.finishedAt === null || r.finishedAt === void 0 ? null : new Date(r.finishedAt)
|
|
20
|
+
};
|
|
21
|
+
}, n = (e) => {
|
|
22
|
+
if (e !== null) return e.failure !== null && e.failure !== void 0 && String(e.failure) !== "" ? "failed" : e.finishedAt === null ? void 0 : "ok";
|
|
23
|
+
}, r = (e) => {
|
|
24
|
+
let t = n(e);
|
|
25
|
+
return t === "ok" ? 0 : t === "failed" ? 1 : 2;
|
|
26
|
+
}, i = (e) => e === null ? " waiting — no record visible yet (the instance may still be opening the bundle)" : e.failure !== null && e.failure !== void 0 && String(e.failure) !== "" ? ` FAILED — ${String(e.failure)}` : e.finishedAt === null ? ` importing — ${e.rowsWritten} row(s) across ${e.tablesWritten} table(s)` + (e.staged === !0 ? " (staged; the target still holds its own rows)" : "") : ` done — ${e.rowsWritten} row(s) across ${e.tablesWritten} table(s)`, a = async (e) => {
|
|
27
|
+
let t = e.intervalMs ?? 1e3, r = Date.now() + (e.timeoutMs ?? 864e5), i = e.notFoundGraceMs ?? 3e4, a = e.sleep ?? ((e) => new Promise((t) => {
|
|
28
|
+
setTimeout(t, e);
|
|
29
|
+
})), o = Date.now(), s = !1, c = null;
|
|
30
|
+
for (;;) {
|
|
31
|
+
if (c = await e.read(), c !== null && (s = !0), e.onTick?.(c), n(c) !== void 0 || Date.now() >= r) return c;
|
|
32
|
+
if (!s && Date.now() - o >= i) return null;
|
|
33
|
+
await a(t);
|
|
34
|
+
}
|
|
35
|
+
}, o = /^[A-Za-z0-9_-]{1,64}$/, s = async (e, t = {}) => {
|
|
36
|
+
let { resolve: n, sep: r } = await import("node:path"), { existsSync: i } = await import("node:fs"), a = n(process.cwd(), "data-profiles"), s = t.allowPath === !0 ? [
|
|
37
|
+
e,
|
|
38
|
+
`${e}.profile.ts`,
|
|
39
|
+
`data-profiles/${e}.ts`,
|
|
40
|
+
`data-profiles/${e}.profile.ts`
|
|
41
|
+
].map((e) => n(process.cwd(), e)) : o.test(e) ? [n(a, `${e}.ts`), n(a, `${e}.profile.ts`)] : [];
|
|
42
|
+
if (t.allowPath !== !0 && s.length === 0) throw Error(`data profile '${e}' is not a valid profile name. A profile is named, not pathed: use letters, digits, \`_\` or \`-\` only, and put the file in \`data-profiles/\`.`);
|
|
43
|
+
let c = s.find((e) => i(e));
|
|
44
|
+
if (!c) throw Error(`data profile '${e}' not found (looked for: ${s.join(", ")})`);
|
|
45
|
+
if (t.allowPath !== !0 && !c.startsWith(a + r)) throw Error(`data profile '${e}' resolved outside data-profiles/ — refusing to load it`);
|
|
46
|
+
let l = await import(c), u = l.default ?? l.profile;
|
|
47
|
+
if (!u) throw Error(`data profile '${c}' has no default export`);
|
|
48
|
+
return u;
|
|
49
|
+
};
|
|
50
|
+
//#endregion
|
|
51
|
+
export { t as a, r as i, a as n, n as o, i as r, s as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as e } from "./subcommandNames-DpYs3DXr.js";
|
|
2
2
|
import { n as t, r as n } from "./nodeEnvironment-cGFAj1J8.js";
|
|
3
3
|
import { t as r } from "./cliError-BmdYnghb.js";
|
|
4
4
|
import { n as i } from "./appModuleLoader-C9r9mxZt.js";
|
|
@@ -6,7 +6,7 @@ import { a, i as o, n as s, t as c } from "./cliArgs-D4p8n7EE.js";
|
|
|
6
6
|
import { r as l } from "./dialectDriver-czCHYpeH.js";
|
|
7
7
|
import { a as u } from "./connectionConfig-Bk9IC7D0.js";
|
|
8
8
|
import { i as d, n as f, r as p, s as m, t as h } from "./seedRunner-Dgsiwk_e.js";
|
|
9
|
-
import { g, n as _, s as v } from "./frameworkTableAssembly-
|
|
9
|
+
import { g, n as _, s as v } from "./frameworkTableAssembly-BwJVEKLr.js";
|
|
10
10
|
import { b as y, x as b } from "./fileConventions-Cof68_BL.js";
|
|
11
11
|
import { r as x, t as S } from "./inspectGateHint-BjnFubmH.js";
|
|
12
12
|
import { basename as ee, join as C, relative as w, resolve as T } from "node:path";
|
|
@@ -10,7 +10,7 @@ import { n as ne, r as S } from "./dialectDriver-czCHYpeH.js";
|
|
|
10
10
|
import { a as C, i as re, n as ie, t as ae } from "./connectionConfig-Bk9IC7D0.js";
|
|
11
11
|
import { a as oe, c as se, i as ce, n as le, o as ue, r as de, t as fe } from "./seedRunner-Dgsiwk_e.js";
|
|
12
12
|
import { r as pe } from "./devActivity-Dx_3nnGv.js";
|
|
13
|
-
import { C as w, S as me, _ as he, b as ge, d as _e, f as ve, h as ye, l as be, m as xe, o as Se, p as Ce, r as we, u as T, v as Te, x as Ee, y as De } from "./frameworkTableAssembly-
|
|
13
|
+
import { C as w, S as me, _ as he, b as ge, d as _e, f as ve, h as ye, l as be, m as xe, o as Se, p as Ce, r as we, u as T, v as Te, x as Ee, y as De } from "./frameworkTableAssembly-BwJVEKLr.js";
|
|
14
14
|
import { n as Oe, r as ke } from "./declaredSchemaGates-BlcwObhb.js";
|
|
15
15
|
import { A as Ae, D as je, M as Me, P as Ne, S as Pe, _ as Fe, a as E, b as D, c as Ie, g as O, k as Le, n as Re, o as ze, p as Be, s as Ve, t as He, v as Ue, w as We, x as Ge, y as k } from "./fileConventions-Cof68_BL.js";
|
|
16
16
|
import { A as Ke, C as qe, D as A, E as j, N as Je, O as Ye, S as Xe, T as Ze, _ as Qe, a as $e, b as et, c as tt, d as nt, f as rt, g as it, h as at, i as ot, l as st, m as ct, o as lt, p as ut, r as dt, s as ft, t as pt, u as mt, v as ht, w as M, x as gt, y as _t } from "./inspect-B7U7Cl_Z.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { c as e, d as t, f as n, i as r, u as i } from "./dev-
|
|
1
|
+
import { c as e, d as t, f as n, i as r, u as i } from "./dev-C31Nvlbv.js";
|
|
2
2
|
import "./dialectDriver-czCHYpeH.js";
|
|
3
3
|
export { r as buildStore, e as loadApiConfig, i as loadDiscovered, t as runDev, n as walk };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Ht as e, Ut as t, Vt as n } from "./dev-
|
|
1
|
+
import { Ht as e, Ut as t, Vt as n } from "./dev-C31Nvlbv.js";
|
|
2
2
|
import { at as r, it as i, ot as a, s as o, st as s, t as c, w as l, y as u } from "./webDev-B4IEMB0n.js";
|
|
3
|
-
import { x as d } from "./frameworkTableAssembly-
|
|
3
|
+
import { x as d } from "./frameworkTableAssembly-BwJVEKLr.js";
|
|
4
4
|
import { n as f } from "./pageConvention-cEiRxdab.js";
|
|
5
|
-
import { r as p, u as m } from "./apiBuild-
|
|
5
|
+
import { r as p, u as m } from "./apiBuild-QmYHaCF4.js";
|
|
6
6
|
import { n as h, r as g, t as ee } from "./cliOutput-D1tSBoRM.js";
|
|
7
7
|
import { n as _, t as te } from "./tsconfigPaths-BWXBWgcl.js";
|
|
8
8
|
import { n as ne, r as re } from "./fileTaxonomy-CJfgOllU.js";
|
|
@@ -1350,7 +1350,7 @@ var le = /* @__PURE__ */ new Set([
|
|
|
1350
1350
|
let t = Wt.get(e);
|
|
1351
1351
|
if (t !== void 0) return t;
|
|
1352
1352
|
let n = (async () => {
|
|
1353
|
-
let { walk: t, loadDiscovered: n } = await import("./dev-
|
|
1353
|
+
let { walk: t, loadDiscovered: n } = await import("./dev-DFVuzOj7.js"), r = await t(e);
|
|
1354
1354
|
return {
|
|
1355
1355
|
files: r,
|
|
1356
1356
|
discovered: await n(r)
|
|
@@ -1459,7 +1459,7 @@ var le = /* @__PURE__ */ new Set([
|
|
|
1459
1459
|
}
|
|
1460
1460
|
}, J = async (r) => {
|
|
1461
1461
|
try {
|
|
1462
|
-
let { loadApiConfig: i } = await import("./dev-
|
|
1462
|
+
let { loadApiConfig: i } = await import("./dev-DFVuzOj7.js"), { discovered: a } = await U(r), o = e(await i(r)), s = {
|
|
1463
1463
|
queries: a.queries,
|
|
1464
1464
|
mutations: a.mutations,
|
|
1465
1465
|
actions: a.actions,
|
|
@@ -1543,7 +1543,7 @@ var le = /* @__PURE__ */ new Set([
|
|
|
1543
1543
|
}, nn = async (e) => nt({
|
|
1544
1544
|
hasWorkflows: async () => (await U(e)).discovered.workflows.length > 0,
|
|
1545
1545
|
openStore: async () => {
|
|
1546
|
-
let { loadApiConfig: t, buildStore: n } = await import("./dev-
|
|
1546
|
+
let { loadApiConfig: t, buildStore: n } = await import("./dev-DFVuzOj7.js"), r = await t(e);
|
|
1547
1547
|
if (r === null) throw Error("no app.config.ts in this directory");
|
|
1548
1548
|
let i = await n(r, void 0);
|
|
1549
1549
|
return {
|
|
@@ -1623,7 +1623,7 @@ var le = /* @__PURE__ */ new Set([
|
|
|
1623
1623
|
}
|
|
1624
1624
|
}, ln = async (e) => {
|
|
1625
1625
|
try {
|
|
1626
|
-
let { loadApiConfig: t } = await import("./dev-
|
|
1626
|
+
let { loadApiConfig: t } = await import("./dev-DFVuzOj7.js"), n = (await t(e))?.doctor?.scopeVocabulary;
|
|
1627
1627
|
if (typeof n != "string") return [];
|
|
1628
1628
|
let [r, i] = n.split("#");
|
|
1629
1629
|
if (r === void 0 || i === void 0) return [];
|
|
@@ -1640,10 +1640,10 @@ var le = /* @__PURE__ */ new Set([
|
|
|
1640
1640
|
findings: []
|
|
1641
1641
|
});
|
|
1642
1642
|
try {
|
|
1643
|
-
let { offlineManifest: n, toInput: r } = await import("./checkCommand-
|
|
1643
|
+
let { offlineManifest: n, toInput: r } = await import("./checkCommand-udbQpphy.js"), { buildAppGraph: i, checkAppGraph: a } = await import("./appGraph-zuMGKVYX.js"), o = await n(e), s = r(o.manifest, o.tables), c = await ln(e), l = [.../* @__PURE__ */ new Set([...s.scopes ?? [], ...c])];
|
|
1644
1644
|
if (l.length === 0) {
|
|
1645
1645
|
try {
|
|
1646
|
-
let { loadAppSchemaInputs: t } = await import("./frameworkTableAssembly-
|
|
1646
|
+
let { loadAppSchemaInputs: t } = await import("./frameworkTableAssembly-CVDB2hCq.js");
|
|
1647
1647
|
await t(e);
|
|
1648
1648
|
} catch {
|
|
1649
1649
|
return t("app-not-importable");
|
|
@@ -1694,7 +1694,7 @@ var le = /* @__PURE__ */ new Set([
|
|
|
1694
1694
|
if (n === void 0 || r.length === 0) return;
|
|
1695
1695
|
let i = [];
|
|
1696
1696
|
try {
|
|
1697
|
-
let { loadApiConfig: t } = await import("./dev-
|
|
1697
|
+
let { loadApiConfig: t } = await import("./dev-DFVuzOj7.js");
|
|
1698
1698
|
i = (await t(e))?.locales ?? [];
|
|
1699
1699
|
} catch {
|
|
1700
1700
|
return;
|
|
@@ -1725,7 +1725,7 @@ var le = /* @__PURE__ */ new Set([
|
|
|
1725
1725
|
}, pn = async (e) => {
|
|
1726
1726
|
let { discovered: t } = await U(e), n = [];
|
|
1727
1727
|
try {
|
|
1728
|
-
let { loadApiConfig: t } = await import("./dev-
|
|
1728
|
+
let { loadApiConfig: t } = await import("./dev-DFVuzOj7.js");
|
|
1729
1729
|
n = ((await t(e))?.plugins ?? []).map((e) => {
|
|
1730
1730
|
let t = (e.extendSchema?.tables ?? []).map((e) => {
|
|
1731
1731
|
let t = e;
|
|
@@ -1870,7 +1870,7 @@ var le = /* @__PURE__ */ new Set([
|
|
|
1870
1870
|
return n.unchecked.length > $ && console.log(` … and ${n.unchecked.length - $} more — \`voltro doctor --json\` prints every one (\`authz.unchecked\`).`), i === void 0 ? (console.log(`\nNo ${X} yet, so this run is advisory. To start the ratchet:`), console.log("\n voltro doctor --write-authz-allowlist\n"), console.log("That records today's unchecked handlers as DEBT and fails every run after on"), console.log("anything NEW. Fix a handler and its line stops mattering — the scan reports it as"), console.log("guarded whether or not the line is still there."), !1) : (console.log(`\n${n.unchecked.length} executor(s) with no access check are not in ${X}.`), console.log("Add a guard, or add the tag to that file if it is genuinely open."), console.log("\nBefore hand-rolling another check: `guards: [{ action, resourceType, resource }]`"), console.log("answers \"may this subject act on THIS row\" declaratively, and an app whose"), console.log("relationships live in its own tables registers its own tuple source rather than"), console.log("copying data into a framework table. See the authorization docs."), !0);
|
|
1871
1871
|
}, yn = async (e) => {
|
|
1872
1872
|
try {
|
|
1873
|
-
let { loadApiConfig: t } = await import("./dev-
|
|
1873
|
+
let { loadApiConfig: t } = await import("./dev-DFVuzOj7.js"), { decidedSchemaReport: n } = await import("./doctorDecidedSchema-BlbWgCD_.js"), r = await t(e);
|
|
1874
1874
|
return r == null ? null : n({
|
|
1875
1875
|
...r.schema ? { declared: r.schema } : {},
|
|
1876
1876
|
...r.store === void 0 ? {} : { store: r.store },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./cliOutput-D1tSBoRM.js";
|
|
2
|
-
import { t } from "./checkCommand-
|
|
3
|
-
import { i as n, n as r } from "./codemodRunner-
|
|
2
|
+
import { t } from "./checkCommand-D8vjQXQt.js";
|
|
3
|
+
import { i as n, n as r } from "./codemodRunner-De1_316I.js";
|
|
4
4
|
import { basename as i, join as a, resolve as o } from "node:path";
|
|
5
5
|
import { branchNamespaceName as s, planBranchProvision as c } from "@voltro/database";
|
|
6
6
|
import { readFile as l } from "node:fs/promises";
|
|
@@ -5,7 +5,7 @@ import { basename as s, join as c } from "node:path";
|
|
|
5
5
|
import { existsSync as l, promises as u } from "node:fs";
|
|
6
6
|
import { pathToFileURL as d } from "node:url";
|
|
7
7
|
import { defineAction as f, defineMutation as ee, defineQuery as te } from "@voltro/protocol";
|
|
8
|
-
import { _voltroApiKeysTable as ne, _voltroCdcOffsetsTable as re,
|
|
8
|
+
import { _voltroApiKeysTable as ne, _voltroCdcOffsetsTable as re, _voltroDataTransfersTable as ie, _voltroIdempotencyTable as ae, _voltroKvTable as oe, _voltroMigrationPlansTable as se, _voltroMigrationsTable as ce, _voltroMssqlCdcOffsetsTable as le, _voltroReplaceInProgressTable as ue, _voltroSeedsTable as de } from "@voltro/database";
|
|
9
9
|
import { Effect as p } from "effect";
|
|
10
10
|
import { SqlClient as m } from "@effect/sql";
|
|
11
11
|
import { _voltroApprovalsTable as fe, _voltroConnectionGrantsTable as pe, _voltroConnectionsTable as me, _voltroScheduleClaimsTable as he, _voltroScheduleRunsTable as h, _voltroTracesTable as g, _voltroUndoLogTable as _, _voltroWakeupsTable as v, _voltroWorkflowEventDeliveriesTable as y, _voltroWorkflowEventsTable as b, outboxAttemptsTable as x, outboxTable as S } from "@voltro/runtime";
|
|
@@ -32,7 +32,7 @@ var we = [
|
|
|
32
32
|
when: "always"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
table:
|
|
35
|
+
table: ie,
|
|
36
36
|
when: "always"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
@@ -144,7 +144,7 @@ var we = [
|
|
|
144
144
|
when: "always"
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
|
-
table:
|
|
147
|
+
table: ae,
|
|
148
148
|
when: "always"
|
|
149
149
|
},
|
|
150
150
|
{
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e, r as t, t as n } from "./cliOutput-D1tSBoRM.js";
|
|
2
|
-
import { o as r } from "./updateCommand-
|
|
2
|
+
import { o as r } from "./updateCommand-2BfbeMvp.js";
|
|
3
3
|
import { join as i, resolve as a } from "node:path";
|
|
4
4
|
import { readFileSync as o, readdirSync as s, statSync as c } from "node:fs";
|
|
5
5
|
//#region src/infoCommand.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./cliError-BmdYnghb.js";
|
|
2
2
|
import { r as t } from "./dialectDriver-czCHYpeH.js";
|
|
3
3
|
import { a as n, r } from "./connectionConfig-Bk9IC7D0.js";
|
|
4
|
-
import { g as i, n as a, s as o } from "./frameworkTableAssembly-
|
|
4
|
+
import { g as i, n as a, s as o } from "./frameworkTableAssembly-BwJVEKLr.js";
|
|
5
5
|
import { t as s } from "./cliRuntime-Dh7UDinH.js";
|
|
6
6
|
import { join as c, relative as l, resolve as u } from "node:path";
|
|
7
7
|
import { pathToFileURL as d } from "node:url";
|
|
@@ -79,7 +79,7 @@ var _ = /* @__PURE__ */ new Set([
|
|
|
79
79
|
let t = u(e.find((e) => !e.startsWith("-")) ?? process.cwd());
|
|
80
80
|
return s(S(t), { scope: "voltro:migrate" });
|
|
81
81
|
}
|
|
82
|
-
let { runDbCommand: t } = await import("./dbCommand-
|
|
82
|
+
let { runDbCommand: t } = await import("./dbCommand-Bnl7MSGC.js");
|
|
83
83
|
return t(["apply", ...e]);
|
|
84
84
|
};
|
|
85
85
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e } from "./apiBuild-
|
|
1
|
+
import { n as e } from "./apiBuild-QmYHaCF4.js";
|
|
2
2
|
import { join as t, resolve as n, sep as r } from "node:path";
|
|
3
3
|
import { existsSync as i, promises as a } from "node:fs";
|
|
4
4
|
import { createLogger as o } from "@voltro/logger";
|
|
@@ -422,7 +422,7 @@ let package = Package(
|
|
|
422
422
|
await l.mkdir(o(e), { recursive: !0 }), await l.writeFile(e, n.content, "utf8");
|
|
423
423
|
}
|
|
424
424
|
}, X = async (e) => {
|
|
425
|
-
let { offlineManifest: t } = await import("./checkCommand-
|
|
425
|
+
let { offlineManifest: t } = await import("./checkCommand-udbQpphy.js"), { manifest: n } = await t(e);
|
|
426
426
|
return n;
|
|
427
427
|
}, Z = async (e) => {
|
|
428
428
|
let t = J(await (e.manifestProvider ?? X)(e.root), {
|