@voltro/cli 0.45.0 → 0.46.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 +176 -0
- package/dist/{apiBuild-CDQBNRDx.js → apiBuild-BKdd0I1Z.js} +2 -2
- package/dist/apiBuild-P2gewrfQ.js +2 -0
- package/dist/bin.d.ts +8 -0
- package/dist/bin.js +1 -1
- package/dist/{build-yvsLG77U.js → build-co6yadYz.js} +7 -7
- package/dist/{checkCommand-Boxov8lr.js → checkCommand-B-eiW-G_.js} +3 -3
- package/dist/{checkCommand-lrzwOzV1.js → checkCommand-CXAXTjZL.js} +1 -1
- package/dist/{codegenCommand-CQOLytL-.js → codegenCommand-CB6_3sX0.js} +15 -15
- package/dist/{codemodRunner-5ZhDH3rB.js → codemodRunner-DSZjgyCL.js} +8 -0
- package/dist/{commands-CEkVoFM5.js → commands-C-hxgAGr.js} +23 -23
- package/dist/{dashboardCommand-0ahyp-zA.js → dashboardCommand-CEVO0GWF.js} +3 -3
- package/dist/{dataCommand-D4IlZcih.js → dataCommand-k0ezbQWa.js} +271 -230
- package/dist/{dbCommand-B237qI-j.js → dbCommand-BwkyNxn-.js} +110 -110
- package/dist/dbCommand-C2XK63Dd.js +2 -0
- package/dist/{dev-DAM5CnAa.js → dev-8hTEnN6s.js} +2080 -2057
- package/dist/{dev-P4HyeY9W.js → dev-DyoYst4j.js} +1 -1
- package/dist/devActivity.d.ts +8 -0
- package/dist/{doctorCommand-DW2cwAvC.js → doctorCommand-B6D7HH1-.js} +14 -14
- package/dist/doctorCommand-Btl2Jz1a.js +2 -0
- package/dist/{dormancyCommand-BqQz7lbM.js → dormancyCommand-CrPAwOgo.js} +1 -1
- package/dist/{embeddingsCommand-DJyArpU4.js → embeddingsCommand-DsSxsn_b.js} +1 -1
- package/dist/{envCommand-CviRZx1L.js → envCommand-B_NPVGUf.js} +2 -2
- package/dist/{evalCommand-6RUfPen4.js → evalCommand-Db01Kbng.js} +24 -24
- package/dist/{evolveCommand-qdlP-R9G.js → evolveCommand-DUuaCIyn.js} +2 -2
- package/dist/{frameworkTableAssembly-oMPBKqlE.js → frameworkTableAssembly-BPlPfU07.js} +82 -78
- package/dist/frameworkTableAssembly-Bob3vj9R.js +2 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1 -1
- package/dist/{infoCommand-CNWPSUcW.js → infoCommand-CuNl9cbh.js} +1 -1
- package/dist/inspectState.d.ts +8 -0
- package/dist/interruptedReplace-C1ZI84xi.js +27 -0
- package/dist/interruptedReplace-DNJ7MKph.js +2 -0
- package/dist/{migrate-DN47p2PG.js → migrate-CM1qwalu.js} +27 -27
- package/dist/{runtimeTrace-BDZSt9W_.js → runtimeTrace-BRNM06vK.js} +1 -1
- package/dist/{sdkgen-sNaD3oZB.js → sdkgen-CRCw_XcR.js} +1 -1
- package/dist/{seedRunner-IdHEprqf.js → seedRunner-Dgsiwk_e.js} +59 -59
- package/dist/serveCommand-BNHMVXyp.js +2 -0
- package/dist/serveCommand-CHOr74WM.js +1928 -0
- package/dist/serveEntry.d.ts +8 -0
- package/dist/serveEntry.js +1 -1
- package/dist/{start-Ds3xyn8R.js → start-7HcSIKEp.js} +1 -1
- package/dist/{start-BAlGcjF5.js → start-DvlYDyAr.js} +1 -1
- package/dist/startEntry.d.ts +8 -0
- package/dist/startEntry.js +1 -1
- package/dist/startup.d.ts +8 -0
- package/dist/{updateCommand-rCnhaj84.js → updateCommand-BlyXavoG.js} +1 -1
- package/dist/updateCommand-CT5AvVg7.js +2 -0
- package/dist/{webDev-101csg6Q.js → webDev-B4IEMB0n.js} +6 -6
- package/dist/webDev-B79ji8M5.js +2 -0
- package/dist/{webhooksCommand-C0iZZfaI.js → webhooksCommand-BRrG_sGf.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 +138 -2
- package/templates/agent-docs/data.md +70 -4
- package/templates/agent-docs/whats-new.md +127 -54
- 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-yJCqJYQ8.js +0 -2
- package/dist/dbCommand-BvQeKQOb.js +0 -2
- package/dist/doctorCommand-2K1dIzYk.js +0 -2
- package/dist/frameworkTableAssembly-DgylYh9_.js +0 -2
- package/dist/serveCommand-BBhT2U94.js +0 -1885
- package/dist/serveCommand-DY2jLy0o.js +0 -2
- package/dist/updateCommand-BH6EGuCc.js +0 -2
- package/dist/webDev-BLKBO34K.js +0 -2
|
@@ -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-8hTEnN6s.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 };
|
package/dist/devActivity.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
3
|
-
import { w as d } from "./frameworkTableAssembly-
|
|
1
|
+
import { Ht as e, Ut as t, Vt as n } from "./dev-8hTEnN6s.js";
|
|
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 { w as d } from "./frameworkTableAssembly-BPlPfU07.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-BKdd0I1Z.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-DyoYst4j.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-DyoYst4j.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,
|
|
@@ -1470,7 +1470,7 @@ var le = /* @__PURE__ */ new Set([
|
|
|
1470
1470
|
checked: !0,
|
|
1471
1471
|
defaultDeny: o,
|
|
1472
1472
|
undecided: t(s),
|
|
1473
|
-
openAccess:
|
|
1473
|
+
openAccess: n(s)
|
|
1474
1474
|
};
|
|
1475
1475
|
} catch (e) {
|
|
1476
1476
|
return {
|
|
@@ -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-DyoYst4j.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-DyoYst4j.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-CXAXTjZL.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-Bob3vj9R.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-DyoYst4j.js");
|
|
1698
1698
|
i = (await t(e))?.locales ?? [];
|
|
1699
1699
|
} catch {
|
|
1700
1700
|
return;
|
|
@@ -1712,7 +1712,7 @@ var le = /* @__PURE__ */ new Set([
|
|
|
1712
1712
|
if (!S(t)) return !1;
|
|
1713
1713
|
let n = [];
|
|
1714
1714
|
try {
|
|
1715
|
-
let { walkPagesTree: e } = await import("./webDev-
|
|
1715
|
+
let { walkPagesTree: e } = await import("./webDev-B79ji8M5.js");
|
|
1716
1716
|
n = (await e(t)).pages.map((e) => e.pattern);
|
|
1717
1717
|
} catch {
|
|
1718
1718
|
return !1;
|
|
@@ -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-DyoYst4j.js");
|
|
1729
1729
|
n = ((await t(e))?.plugins ?? []).map((e) => {
|
|
1730
1730
|
let t = (e.extendSchema?.tables ?? []).map((e) => {
|
|
1731
1731
|
let t = e;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as e } from "./dev-
|
|
2
|
-
import { _t as t, gt as n, mt as r, pt as i } from "./webDev-
|
|
1
|
+
import { c as e } from "./dev-8hTEnN6s.js";
|
|
2
|
+
import { _t as t, gt as n, mt as r, pt as i } from "./webDev-B4IEMB0n.js";
|
|
3
3
|
import { join as a } from "node:path";
|
|
4
4
|
import { promises as o } from "node:fs";
|
|
5
5
|
import { createLogger as s } from "@voltro/logger";
|
|
@@ -2,9 +2,9 @@ import { n as e } from "./appModuleLoader-C9r9mxZt.js";
|
|
|
2
2
|
import { n as t } from "./cliOutput-D1tSBoRM.js";
|
|
3
3
|
import { basename as n, join as r, resolve as i } from "node:path";
|
|
4
4
|
import { readdirSync as a, statSync as o } from "node:fs";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { branchNamespaceName as s } from "@voltro/database";
|
|
6
|
+
import { Effect as c } from "effect";
|
|
7
|
+
import { generateText as l, isEvalDefinition as u, llmJudge as d, runEval as f } from "@voltro/ai";
|
|
8
8
|
//#region src/evalCommand.ts
|
|
9
9
|
var p = /* @__PURE__ */ new Set([
|
|
10
10
|
"node_modules",
|
|
@@ -43,11 +43,11 @@ var p = /* @__PURE__ */ new Set([
|
|
|
43
43
|
r(`eval: failed to import ${e}: ${t.message}`), a.push(e);
|
|
44
44
|
continue;
|
|
45
45
|
}
|
|
46
|
-
if (!
|
|
46
|
+
if (!u(o)) {
|
|
47
47
|
a.push(e);
|
|
48
48
|
continue;
|
|
49
49
|
}
|
|
50
|
-
let s = await
|
|
50
|
+
let s = await f(o, {
|
|
51
51
|
replay: t.replay,
|
|
52
52
|
...t.judge === void 0 ? {} : { judge: t.judge },
|
|
53
53
|
...t.branchId === void 0 ? {} : { branchId: t.branchId }
|
|
@@ -61,16 +61,16 @@ var p = /* @__PURE__ */ new Set([
|
|
|
61
61
|
};
|
|
62
62
|
}, _ = async ({ case: e }) => {
|
|
63
63
|
let t = Date.now();
|
|
64
|
-
return await
|
|
64
|
+
return await c.runPromise(l({
|
|
65
65
|
prompt: e.input.prompt,
|
|
66
66
|
...e.input.system === void 0 ? {} : { system: e.input.system }
|
|
67
|
-
}).pipe(
|
|
67
|
+
}).pipe(c.map((e) => ({
|
|
68
68
|
text: e.text,
|
|
69
69
|
latencyMs: Date.now() - t
|
|
70
|
-
})),
|
|
70
|
+
})), c.catchAll((n) => c.succeed({
|
|
71
71
|
text: "",
|
|
72
72
|
latencyMs: Date.now() - t
|
|
73
|
-
}).pipe(
|
|
73
|
+
}).pipe(c.tap(() => c.sync(() => console.error(` replay error (${e.id}): ${n.message}`)))))));
|
|
74
74
|
}, v = (e) => [`${e.ok ? "✓" : "✗"} ${e.name}: ${e.passed}/${e.cases.length} passed${e.branch ? ` (branch ${e.branch.id})` : ""}`, ...e.cases.filter((e) => !e.pass).map((e) => {
|
|
75
75
|
let t = e.assertionFailures.map((e) => ` - ${e.detail}`), n = e.judge !== void 0 && e.judge.score < .7 ? [` - judge: ${e.judge.score.toFixed(2)} — ${e.judge.reason}`] : [];
|
|
76
76
|
return [
|
|
@@ -91,28 +91,28 @@ var p = /* @__PURE__ */ new Set([
|
|
|
91
91
|
}, x = async (e) => {
|
|
92
92
|
let r = e.includes("--json"), a = e.includes("--branch"), o = y(e);
|
|
93
93
|
if (o !== void 0 && (o < 0 || o > 1)) return console.error("voltro eval: --threshold must be within 0..1"), 1;
|
|
94
|
-
let
|
|
95
|
-
if (
|
|
96
|
-
let
|
|
97
|
-
|
|
98
|
-
let
|
|
99
|
-
root:
|
|
100
|
-
files:
|
|
94
|
+
let c = i(e.find((e) => !e.startsWith("-") && Number.isNaN(Number(e))) ?? process.cwd()), l = h(c);
|
|
95
|
+
if (l.length === 0) return console.error(`voltro eval: no *.eval.ts found under ${c}`), console.error(" Author an eval with `export default defineEval({ name, cases, judge? })`."), 1;
|
|
96
|
+
let u = a ? s(n(c), b(e)) : void 0;
|
|
97
|
+
u !== void 0 && !r && console.log(`replays target data branch: ${u} (provision via voltro's BranchExecutor)`);
|
|
98
|
+
let f = await g({
|
|
99
|
+
root: c,
|
|
100
|
+
files: l,
|
|
101
101
|
replay: _,
|
|
102
|
-
judge:
|
|
103
|
-
...
|
|
102
|
+
judge: d,
|
|
103
|
+
...u === void 0 ? {} : { branchId: u },
|
|
104
104
|
log: (e) => console.error(e)
|
|
105
105
|
});
|
|
106
106
|
if (r) t({
|
|
107
|
-
ok:
|
|
108
|
-
reports:
|
|
109
|
-
skipped:
|
|
107
|
+
ok: f.ok,
|
|
108
|
+
reports: f.reports,
|
|
109
|
+
skipped: f.skipped
|
|
110
110
|
});
|
|
111
111
|
else {
|
|
112
|
-
for (let e of
|
|
113
|
-
|
|
112
|
+
for (let e of f.reports) console.log(v(e));
|
|
113
|
+
f.reports.length === 0 && console.log("voltro eval: no runnable eval suites (files found but none exported a defineEval)"), console.log(f.ok ? "\nvoltro eval: OK" : "\nvoltro eval: FAILED (regressions above)");
|
|
114
114
|
}
|
|
115
|
-
return +!
|
|
115
|
+
return +!f.ok;
|
|
116
116
|
};
|
|
117
117
|
//#endregion
|
|
118
118
|
export { x as runEvalCommand };
|
|
@@ -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-B-eiW-G_.js";
|
|
3
|
+
import { i as n, n as r } from "./codemodRunner-DSZjgyCL.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";
|