@voltro/cli 0.44.1 → 0.45.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 +104 -1
- package/dist/{apiBuild-DvWreIQP.js → apiBuild-CDQBNRDx.js} +1 -1
- package/dist/apiBuild-yJCqJYQ8.js +2 -0
- package/dist/bin.d.ts +16 -0
- package/dist/bin.js +46 -11
- package/dist/{build-Ckc-FA7d.js → build-yvsLG77U.js} +7 -7
- package/dist/{checkCommand-BNfEs4KG.js → checkCommand-Boxov8lr.js} +11 -11
- package/dist/{checkCommand-AlbawIal.js → checkCommand-lrzwOzV1.js} +1 -1
- package/dist/codegen-DcE2li1i.js +2 -0
- package/dist/{codegen-CbpGCWLG.js → codegen-sbN1Y8PB.js} +37 -37
- package/dist/codegenCommand-CQOLytL-.js +144 -0
- package/dist/{codemodRunner-BKTnaGOz.js → codemodRunner-5ZhDH3rB.js} +41 -0
- package/dist/{commands-CYkHTox2.js → commands-CEkVoFM5.js} +19 -19
- package/dist/{dashboardCommand-DHDmlo9A.js → dashboardCommand-0ahyp-zA.js} +1 -1
- package/dist/{dataCommand-WFn8CM11.js → dataCommand-D4IlZcih.js} +275 -211
- package/dist/{dev-D-JZ6CGQ.js → dev-DAM5CnAa.js} +1856 -1801
- package/dist/{dev-BZO5aLdr.js → dev-P4HyeY9W.js} +1 -1
- package/dist/devActivity.d.ts +16 -0
- package/dist/doctorCommand-2K1dIzYk.js +2 -0
- package/dist/{doctorCommand-BlUyESpD.js → doctorCommand-DW2cwAvC.js} +244 -223
- package/dist/doctorSourceRelations-CPjSwYuZ.js +83 -0
- package/dist/{dormancyCommand-lQxdrU8C.js → dormancyCommand-BqQz7lbM.js} +1 -1
- package/dist/{embeddingsCommand-ByBTju6X.js → embeddingsCommand-DJyArpU4.js} +1 -1
- package/dist/{envCommand-CpCbYAgR.js → envCommand-CviRZx1L.js} +1 -1
- package/dist/{evolveCommand-CBV3-TtK.js → evolveCommand-qdlP-R9G.js} +2 -2
- package/dist/index.d.ts +16 -0
- package/dist/index.js +1 -1
- package/dist/{infoCommand-DJoA9cKD.js → infoCommand-CNWPSUcW.js} +1 -1
- package/dist/inspectState.d.ts +16 -0
- package/dist/{runtimeTrace-DJ9tPhrc.js → runtimeTrace-BDZSt9W_.js} +1 -1
- package/dist/{sdkgen-7dr8-Onw.js → sdkgen-sNaD3oZB.js} +1 -1
- package/dist/{serveCommand-BlnAlNQg.js → serveCommand-BBhT2U94.js} +731 -737
- package/dist/serveCommand-DY2jLy0o.js +2 -0
- package/dist/serveEntry.d.ts +16 -0
- package/dist/serveEntry.js +1 -1
- package/dist/startEntry.d.ts +16 -0
- package/dist/startup.d.ts +16 -0
- package/dist/{test-CLYXrZ2F.js → test-CHb7UwvE.js} +1 -1
- package/dist/updateCommand-BH6EGuCc.js +2 -0
- package/dist/{updateCommand-BvRidHp6.js → updateCommand-rCnhaj84.js} +1 -1
- package/dist/{webhooksCommand-BfO_JF2b.js → webhooksCommand-C0iZZfaI.js} +1 -1
- package/package.json +23 -17
- package/templates/AGENTS.md +1 -1
- package/templates/agent-docs/_index.md +1 -1
- package/templates/agent-docs/cli.md +41 -1
- package/templates/agent-docs/data.md +33 -3
- package/templates/agent-docs/plugins/versioning.md +2 -0
- package/templates/agent-docs/whats-new.md +93 -6
- 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-XaW40W8x.js +0 -2
- package/dist/codegen-i8QGcHsi.js +0 -2
- package/dist/codegenCommand-iClXoRCW.js +0 -129
- package/dist/doctorCommand-BeLOwq7S.js +0 -2
- package/dist/serveCommand-Dg_E1ev4.js +0 -2
- package/dist/updateCommand-DcKVmLVN.js +0 -2
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { getRelations as e } from "@voltro/database";
|
|
2
|
+
//#region src/doctorSourceRelations.ts
|
|
3
|
+
var t = (e) => {
|
|
4
|
+
let t = /* @__PURE__ */ new Set();
|
|
5
|
+
for (let r = e.indexOf(".with("); r !== -1; r = e.indexOf(".with(", r + 1)) {
|
|
6
|
+
let i = n(e, r);
|
|
7
|
+
i !== void 0 && a(i, t);
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
}, n = (e, t) => {
|
|
11
|
+
let n = e.indexOf("{", t);
|
|
12
|
+
if (n === -1) return;
|
|
13
|
+
let r = 0;
|
|
14
|
+
for (let t = n; t < e.length; t++) {
|
|
15
|
+
let i = e[t];
|
|
16
|
+
if (i === "{") r++;
|
|
17
|
+
else if (i === "}" && --r === 0) return e.slice(n + 1, t);
|
|
18
|
+
}
|
|
19
|
+
}, r = (e) => {
|
|
20
|
+
let t = [], n = 0, r = 0;
|
|
21
|
+
for (let i = 0; i < e.length; i++) {
|
|
22
|
+
let a = e[i];
|
|
23
|
+
"{([".includes(a) ? n++ : "})]".includes(a) ? n-- : a === "," && n === 0 && (t.push(e.slice(r, i)), r = i + 1);
|
|
24
|
+
}
|
|
25
|
+
return t.push(e.slice(r)), t.filter((e) => e.trim() !== "");
|
|
26
|
+
}, i = /^(?:'([A-Za-z_$][\w$]*)'|"([A-Za-z_$][\w$]*)"|([A-Za-z_$][\w$]*))$/, a = (e, t) => {
|
|
27
|
+
for (let s of r(e)) {
|
|
28
|
+
let e = o(s), r = (e === -1 ? s : s.slice(0, e)).trim(), c = i.exec(r), l = c?.[1] ?? c?.[2] ?? c?.[3];
|
|
29
|
+
if (l === void 0 || (l !== "with" && t.add(l), e === -1)) continue;
|
|
30
|
+
let u = s.slice(e + 1), d = u.indexOf("with");
|
|
31
|
+
if (d === -1) continue;
|
|
32
|
+
let f = n(u, d);
|
|
33
|
+
f !== void 0 && a(f, t);
|
|
34
|
+
}
|
|
35
|
+
}, o = (e) => {
|
|
36
|
+
let t = 0;
|
|
37
|
+
for (let n = 0; n < e.length; n++) {
|
|
38
|
+
let r = e[n];
|
|
39
|
+
if ("{([".includes(r)) t++;
|
|
40
|
+
else if ("})]".includes(r)) t--;
|
|
41
|
+
else if (r === ":" && t === 0) return n;
|
|
42
|
+
}
|
|
43
|
+
return -1;
|
|
44
|
+
}, s = (n, r, i) => {
|
|
45
|
+
let a = t(i);
|
|
46
|
+
if (a.size === 0) return [];
|
|
47
|
+
let o = new Set(r), s = [], l = /* @__PURE__ */ new Set();
|
|
48
|
+
for (let t of r) {
|
|
49
|
+
let r = e(t);
|
|
50
|
+
if (r !== void 0) for (let e of a) {
|
|
51
|
+
let i = r[e];
|
|
52
|
+
if (i === void 0) continue;
|
|
53
|
+
let a = [{
|
|
54
|
+
table: c(i.target),
|
|
55
|
+
kind: "target"
|
|
56
|
+
}, {
|
|
57
|
+
table: c(i.through),
|
|
58
|
+
kind: "junction"
|
|
59
|
+
}];
|
|
60
|
+
for (let r of a) {
|
|
61
|
+
if (r.table === void 0 || o.has(r.table)) continue;
|
|
62
|
+
let i = `${e}:${r.table}`;
|
|
63
|
+
l.has(i) || (l.add(i), s.push({
|
|
64
|
+
procedure: n,
|
|
65
|
+
from: t,
|
|
66
|
+
relation: e,
|
|
67
|
+
missing: r.table,
|
|
68
|
+
kind: r.kind
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return s;
|
|
74
|
+
}, c = (e) => {
|
|
75
|
+
try {
|
|
76
|
+
let t = (typeof e == "function" ? e() : e)?.tableName;
|
|
77
|
+
return typeof t == "string" && t.length > 0 ? t : void 0;
|
|
78
|
+
} catch {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
}, l = (e) => `${e.procedure}: eager-loads \`${e.relation}\` from '${e.from}' but does not declare '${e.missing}' in \`source:\`` + (e.kind === "junction" ? " (the junction table — a link added or removed does not move the target row)" : "") + ` — the view will not update when '${e.missing}' changes.`;
|
|
82
|
+
//#endregion
|
|
83
|
+
export { l as describeMissingRelationSource, s as missingRelationSources };
|
|
@@ -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-Boxov8lr.js";
|
|
3
|
+
import { i as n, n as r } from "./codemodRunner-5ZhDH3rB.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";
|
package/dist/index.d.ts
CHANGED
|
@@ -120,3 +120,19 @@ declare interface TemplateManifest {
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
export { }
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
declare module '@voltro/protocol' {
|
|
126
|
+
interface VoltroTableNames {
|
|
127
|
+
'tasks': true;
|
|
128
|
+
'task_sub_tasks': true;
|
|
129
|
+
'_voltro_workflow_runs': true;
|
|
130
|
+
'_voltro_workflow_run_steps': true;
|
|
131
|
+
'_voltro_workflow_run_events': true;
|
|
132
|
+
'_voltro_workflow_events': true;
|
|
133
|
+
'_voltro_workflow_event_deliveries': true;
|
|
134
|
+
'_voltro_approvals': true;
|
|
135
|
+
'_voltro_connections': true;
|
|
136
|
+
'_voltro_undo_log': true;
|
|
137
|
+
}
|
|
138
|
+
}
|
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-rCnhaj84.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
|
package/dist/inspectState.d.ts
CHANGED
|
@@ -118,3 +118,19 @@ export declare interface SeedSnapshot {
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
export { }
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
declare module '@voltro/protocol' {
|
|
124
|
+
interface VoltroTableNames {
|
|
125
|
+
'tasks': true;
|
|
126
|
+
'task_sub_tasks': true;
|
|
127
|
+
'_voltro_workflow_runs': true;
|
|
128
|
+
'_voltro_workflow_run_steps': true;
|
|
129
|
+
'_voltro_workflow_run_events': true;
|
|
130
|
+
'_voltro_workflow_events': true;
|
|
131
|
+
'_voltro_workflow_event_deliveries': true;
|
|
132
|
+
'_voltro_approvals': true;
|
|
133
|
+
'_voltro_connections': true;
|
|
134
|
+
'_voltro_undo_log': true;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e } from "./apiBuild-
|
|
1
|
+
import { n as e } from "./apiBuild-CDQBNRDx.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-lrzwOzV1.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), {
|