@voltro/cli 0.16.0 → 0.17.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 +29 -0
- package/dist/{apiBuild-BJtiqoOu.js → apiBuild-ChdlLqGv.js} +2 -2
- package/dist/apiBuild-D5WB119b.js +2 -0
- package/dist/bin.js +3 -3
- package/dist/{commands-8A5RU3MW.js → commands-DYQbv-DG.js} +2328 -2292
- package/dist/dbCommand-C3R5LrBZ.js +2 -0
- package/dist/{dbCommand-OPMtO0sX.js → dbCommand-DJSxnjPt.js} +2 -2
- package/dist/{dev-HdG7JdSk.js → dev-BCmoJfBm.js} +1 -1
- package/dist/{dev-DGjEvvkV.js → dev-DB7pbLob.js} +89 -89
- package/dist/{fileConventions-Cu0tM-Bl.js → fileConventions-CBNPZVOV.js} +1 -1
- package/dist/frameworkTableAssembly-DRJrAVr1.js +2 -0
- package/dist/{frameworkTableAssembly-BA2bAmYN.js → frameworkTableAssembly-sg41s14F.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{inspectMetrics-CYDSO3za.js → inspectMetrics-DWh56Qas.js} +205 -205
- package/dist/{serveCommand-C3lq3mFd.js → serveCommand-DO6qr5Ok.js} +5 -5
- package/dist/serveEntry.js +2 -2
- package/dist/{start-BtgatJN3.js → start-ksY0wMZG.js} +379 -379
- package/dist/startEntry.js +2 -2
- package/package.json +17 -17
- package/templates/AGENTS.core.md +24 -9
- package/templates/AGENTS.md +25 -10
- package/templates/agent-docs/_index.md +1 -1
- package/templates/agent-docs/cli.md +2 -2
- package/templates/agent-docs/database/migrations.md +3 -3
- package/templates/agent-docs/internationalization.md +3 -3
- package/templates/agent-docs/introduction.md +2 -2
- package/templates/agent-docs/reference.md +4 -4
- package/templates/agent-docs/routing.md +40 -40
- package/templates/agent-docs/templates/appshells.md +24 -24
- package/templates/agent-docs/whats-new.md +31 -95
- 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-storage/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-search/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/changelog/src/pages/[locale]/{[slug].page.tsx → [slug]/page.tsx} +4 -4
- package/templates/apps/changelog/src/pages/[locale]/mirrors.test.tsx +2 -2
- package/templates/apps/changelog/src/pages/[locale]/{index.page.tsx → page.tsx} +2 -2
- package/templates/apps/changelog/src/pages/{[slug].page.test.tsx → [slug]/page.test.tsx} +1 -1
- package/templates/apps/changelog/src/pages/{[slug].page.tsx → [slug]/page.tsx} +2 -2
- package/templates/apps/changelog/src/pages/{index.page.test.tsx → page.test.tsx} +1 -1
- package/templates/apps/edge-functions/package.json +2 -2
- package/templates/apps/frontend-admin/package.json +8 -8
- package/templates/apps/frontend-admin/src/pages/(marketing)/{login.page.test.tsx → login/page.test.tsx} +2 -2
- package/templates/apps/frontend-admin/src/pages/(marketing)/{login.page.tsx → login/page.tsx} +2 -2
- package/templates/apps/frontend-admin/src/pages/(marketing)/{index.page.test.tsx → page.test.tsx} +1 -1
- package/templates/apps/frontend-admin/src/pages/admin/{[entity].page.tsx → [entity]/page.tsx} +1 -1
- package/templates/apps/frontend-admin/src/pages/admin/entity.test.tsx +1 -1
- package/templates/apps/frontend-admin/src/pages/admin/{index.page.test.tsx → page.test.tsx} +1 -1
- package/templates/apps/frontend-app/package.json +8 -8
- package/templates/apps/frontend-app/src/pages/{index.page.test.tsx → page.test.tsx} +1 -1
- package/templates/apps/frontend-app/src/pages/{schema-ui.page.test.tsx → schema-ui/page.test.tsx} +2 -2
- package/templates/apps/frontend-app/src/pages/{schema-ui.page.tsx → schema-ui/page.tsx} +1 -1
- package/templates/apps/frontend-blank/package.json +7 -7
- package/templates/apps/frontend-blank/src/pages/{index.page.test.tsx → page.test.tsx} +1 -1
- package/templates/apps/frontend-contact/package.json +7 -7
- package/templates/apps/frontend-contact/src/pages/[locale]/{index.page.tsx → page.tsx} +2 -2
- package/templates/apps/frontend-contact/src/pages/{index.page.test.tsx → page.test.tsx} +1 -1
- package/templates/apps/frontend-dashboard/package.json +7 -7
- package/templates/apps/frontend-dashboard/src/pages/(marketing)/{login.page.test.tsx → login/page.test.tsx} +2 -2
- package/templates/apps/frontend-dashboard/src/pages/(marketing)/{login.page.tsx → login/page.tsx} +2 -2
- package/templates/apps/frontend-dashboard/src/pages/(marketing)/{index.page.test.tsx → page.test.tsx} +1 -1
- package/templates/apps/frontend-dashboard/src/pages/dashboard/{index.page.test.tsx → page.test.tsx} +1 -1
- package/templates/apps/frontend-dashboard/src/pages/dashboard/{settings.page.test.tsx → settings/page.test.tsx} +2 -2
- package/templates/apps/frontend-dashboard/src/pages/dashboard/{settings.page.tsx → settings/page.tsx} +2 -2
- package/templates/apps/frontend-docs/package.json +7 -7
- package/templates/apps/frontend-docs/src/pages/[locale]/docs/{[...slug].page.tsx → [...slug]/page.tsx} +4 -4
- package/templates/apps/frontend-docs/src/pages/[locale]/mirrors.test.tsx +2 -2
- package/templates/apps/frontend-docs/src/pages/[locale]/{index.page.tsx → page.tsx} +2 -2
- package/templates/apps/frontend-docs/src/pages/docs/{[...slug].page.test.tsx → [...slug]/page.test.tsx} +3 -3
- package/templates/apps/frontend-docs/src/pages/docs/{[...slug].page.tsx → [...slug]/page.tsx} +1 -1
- package/templates/apps/frontend-docs/src/pages/{index.page.test.tsx → page.test.tsx} +1 -1
- package/templates/apps/frontend-i18n/package.json +6 -6
- package/templates/apps/frontend-i18n/src/pages/[locale]/{about.page.tsx → about/page.tsx} +3 -3
- package/templates/apps/frontend-i18n/src/pages/[locale]/mirrors.test.tsx +2 -2
- package/templates/apps/frontend-i18n/src/pages/[locale]/{index.page.tsx → page.tsx} +2 -2
- package/templates/apps/frontend-i18n/src/pages/{about.page.test.tsx → about/page.test.tsx} +3 -3
- package/templates/apps/frontend-i18n/src/pages/{about.page.tsx → about/page.tsx} +1 -1
- package/templates/apps/frontend-i18n/src/pages/{index.page.test.tsx → page.test.tsx} +1 -1
- package/templates/apps/frontend-landing/package.json +7 -7
- package/templates/apps/frontend-landing/src/pages/[locale]/mirrors.test.tsx +1 -1
- package/templates/apps/frontend-landing/src/pages/[locale]/{index.page.tsx → page.tsx} +2 -2
- package/templates/apps/frontend-landing/src/pages/{index.page.test.tsx → page.test.tsx} +1 -1
- package/templates/apps/frontend-spa/package.json +7 -7
- package/templates/apps/frontend-spa/src/pages/{index.page.test.tsx → page.test.tsx} +1 -1
- package/templates/apps/frontend-ssr/package.json +7 -7
- package/templates/apps/frontend-ssr/src/pages/{feed.page.test.tsx → feed/page.test.tsx} +2 -2
- package/templates/apps/frontend-ssr/src/pages/{feed.page.tsx → feed/page.tsx} +1 -1
- package/templates/apps/frontend-ssr/src/pages/{feed-swr.page.test.tsx → feed-swr/page.test.tsx} +2 -2
- package/templates/apps/frontend-ssr/src/pages/{feed-swr.page.tsx → feed-swr/page.tsx} +1 -1
- package/templates/apps/frontend-ssr/src/pages/{index.page.test.tsx → page.test.tsx} +1 -1
- package/templates/apps/frontend-ssr-api/package.json +8 -8
- package/templates/apps/frontend-ssr-api/src/pages/{index.page.test.tsx → page.test.tsx} +1 -1
- package/templates/apps/frontend-static-blog/package.json +6 -6
- package/templates/apps/frontend-static-blog/src/pages/[locale]/blog/{[slug].page.tsx → [slug]/page.tsx} +4 -4
- package/templates/apps/frontend-static-blog/src/pages/[locale]/mirrors.test.tsx +2 -2
- package/templates/apps/frontend-static-blog/src/pages/[locale]/{index.page.tsx → page.tsx} +2 -2
- package/templates/apps/frontend-static-blog/src/pages/blog/{[slug].page.test.tsx → [slug]/page.test.tsx} +3 -3
- package/templates/apps/frontend-static-blog/src/pages/blog/{[slug].page.tsx → [slug]/page.tsx} +3 -3
- package/templates/apps/frontend-static-blog/src/pages/{index.page.test.tsx → page.test.tsx} +1 -1
- package/dist/apiBuild-BOczx9-m.js +0 -2
- package/dist/dbCommand-DNQ6l-su.js +0 -2
- package/dist/frameworkTableAssembly-D1zJSgOU.js +0 -2
- /package/templates/apps/changelog/src/pages/{index.page.tsx → page.tsx} +0 -0
- /package/templates/apps/frontend-admin/src/pages/(marketing)/{index.page.tsx → page.tsx} +0 -0
- /package/templates/apps/frontend-admin/src/pages/admin/{index.page.tsx → page.tsx} +0 -0
- /package/templates/apps/frontend-app/src/pages/{index.page.tsx → page.tsx} +0 -0
- /package/templates/apps/frontend-blank/src/pages/{index.page.tsx → page.tsx} +0 -0
- /package/templates/apps/frontend-contact/src/pages/{index.page.tsx → page.tsx} +0 -0
- /package/templates/apps/frontend-dashboard/src/pages/(marketing)/{index.page.tsx → page.tsx} +0 -0
- /package/templates/apps/frontend-dashboard/src/pages/dashboard/{index.page.tsx → page.tsx} +0 -0
- /package/templates/apps/frontend-docs/src/pages/{index.page.tsx → page.tsx} +0 -0
- /package/templates/apps/frontend-i18n/src/pages/{index.page.tsx → page.tsx} +0 -0
- /package/templates/apps/frontend-landing/src/pages/{index.page.tsx → page.tsx} +0 -0
- /package/templates/apps/frontend-spa/src/pages/{index.page.tsx → page.tsx} +0 -0
- /package/templates/apps/frontend-ssr/src/pages/{index.page.tsx → page.tsx} +0 -0
- /package/templates/apps/frontend-ssr-api/src/pages/{index.page.tsx → page.tsx} +0 -0
- /package/templates/apps/frontend-static-blog/src/pages/{index.page.tsx → page.tsx} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as e, n as t, r as n, s as r, t as i } from "./seedRunner-D6eu-u5U.js";
|
|
2
|
-
import { t as a } from "./frameworkTableAssembly-
|
|
3
|
-
import { g as o } from "./fileConventions-
|
|
2
|
+
import { t as a } from "./frameworkTableAssembly-sg41s14F.js";
|
|
3
|
+
import { g as o } from "./fileConventions-CBNPZVOV.js";
|
|
4
4
|
import { a as s, n as c, t as l } from "./cliArgs-qdZSElM3.js";
|
|
5
5
|
import { basename as u, join as d, relative as f, resolve as p } from "node:path";
|
|
6
6
|
import { pathToFileURL as m } from "node:url";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, E as i, G as a, H as o, K as s, O as c, U as l, W as u, Z as d, at as f, ft as p, ht as m, it as h, j as g, l as _, q as ee, st as te, t as ne, w as re } from "./inspectMetrics-DWh56Qas.js";
|
|
2
2
|
import { i as ie, n as ae, o as v, r as oe, s as y } from "./seedRunner-D6eu-u5U.js";
|
|
3
3
|
import { n as b } from "./appModuleLoader-C9r9mxZt.js";
|
|
4
4
|
import { r as se } from "./devActivity-BhIu6ncs.js";
|
|
5
|
-
import { _ as ce, a as le, b as x, c as ue, d as S, f as de, g as fe, h as pe, i as me, l as he, m as ge, n as _e, o as ve, p as ye, r as be, s as xe, u as Se, v as Ce, y as we } from "./frameworkTableAssembly-
|
|
6
|
-
import { A as Te, C as Ee, E as C, O as De, T as Oe, _ as ke, b as Ae, f as je, g as Me, h as Ne, i as Pe, l as Fe, m as Ie, p as Le, t as Re, v as ze } from "./fileConventions-
|
|
5
|
+
import { _ as ce, a as le, b as x, c as ue, d as S, f as de, g as fe, h as pe, i as me, l as he, m as ge, n as _e, o as ve, p as ye, r as be, s as xe, u as Se, v as Ce, y as we } from "./frameworkTableAssembly-sg41s14F.js";
|
|
6
|
+
import { A as Te, C as Ee, E as C, O as De, T as Oe, _ as ke, b as Ae, f as je, g as Me, h as Ne, i as Pe, l as Fe, m as Ie, p as Le, t as Re, v as ze } from "./fileConventions-CBNPZVOV.js";
|
|
7
7
|
import { C as Be, E as Ve, S as He, _ as Ue, a as We, b as Ge, c as Ke, d as qe, f as Je, g as Ye, h as Xe, l as Ze, m as Qe, o as $e, p as et, r as tt, s as nt, t as w, u as rt, v as it, w as T, x as at, y as ot } from "./inspect-Dwx0_tUj.js";
|
|
8
8
|
import { t as st } from "./manifestBuild-P9yuCY2d.js";
|
|
9
9
|
import { n as ct, t as lt } from "./startupRunner-DPGFchOa.js";
|
|
@@ -3760,11 +3760,11 @@ ${a.join("\n\n")}\n`);
|
|
|
3760
3760
|
default: return null;
|
|
3761
3761
|
}
|
|
3762
3762
|
}, iu = async (e) => {
|
|
3763
|
-
let t = A(e.find((e) => !e.startsWith("-")) ?? process.cwd()), n = await
|
|
3763
|
+
let t = A(e.find((e) => !e.startsWith("-")) ?? process.cwd()), n = await _(t);
|
|
3764
3764
|
return n.ran ? n.exitCode : process.env.FRAMEWORK_DEV_INNER !== "1" && process.env.WATCH !== "0" ? (m(lo({ root: t }), { scope: "voltro:dev" }), new Promise(() => {})) : au(t);
|
|
3765
3765
|
}, au = async (m) => {
|
|
3766
|
-
let
|
|
3767
|
-
await
|
|
3766
|
+
let _ = Date.now(), v = await Wl(m), b = Number(process.env.PORT ?? v?.port ?? 4e3), le = v?.name ?? E(m), x = c("api", le, b), ue = i(le);
|
|
3767
|
+
await g({
|
|
3768
3768
|
id: x,
|
|
3769
3769
|
name: le,
|
|
3770
3770
|
kind: "api",
|
|
@@ -3773,8 +3773,8 @@ ${a.join("\n\n")}\n`);
|
|
|
3773
3773
|
status: "booting",
|
|
3774
3774
|
logFile: ue.path
|
|
3775
3775
|
}).catch(() => {});
|
|
3776
|
-
let S =
|
|
3777
|
-
|
|
3776
|
+
let S = s();
|
|
3777
|
+
l(S), $.info("booting voltro dev", {
|
|
3778
3778
|
root: m,
|
|
3779
3779
|
version: pl,
|
|
3780
3780
|
logFile: ue.path
|
|
@@ -3793,7 +3793,7 @@ ${a.join("\n\n")}\n`);
|
|
|
3793
3793
|
info: (e, t) => $.debug(e, t),
|
|
3794
3794
|
warn: (e, t) => $.warn(e, t)
|
|
3795
3795
|
}
|
|
3796
|
-
})),
|
|
3796
|
+
})), p(m).then((e) => {
|
|
3797
3797
|
for (let t of e.files) if (t.action === "created") {
|
|
3798
3798
|
let e = t.path.split("/").slice(-2).join("/");
|
|
3799
3799
|
$.info(`${e} seeded`, { path: t.path });
|
|
@@ -3820,7 +3820,7 @@ ${a.join("\n\n")}\n`);
|
|
|
3820
3820
|
I.minted.length > 0 && I.file !== void 0 && ($.warn(`minted ${I.minted.length} project secret(s) into ${k(m, I.file)} — unique to this project, gitignored. Your DEPLOYMENT needs its own values (\`voltro secret generate\`).`, {
|
|
3821
3821
|
keys: I.minted,
|
|
3822
3822
|
file: k(m, I.file)
|
|
3823
|
-
}),
|
|
3823
|
+
}), e.includes(I.file) || e.unshift(I.file)), I.ownershipWarning !== void 0 && $.warn(I.ownershipWarning), await te({
|
|
3824
3824
|
rawEnv: F?.env,
|
|
3825
3825
|
appType: "api",
|
|
3826
3826
|
root: m,
|
|
@@ -4574,10 +4574,10 @@ ${a.join("\n\n")}\n`);
|
|
|
4574
4574
|
}, Eo = (e) => JSON.stringify(e, (e, t) => typeof t == "object" && t && !Array.isArray(t) ? Object.fromEntries(Object.entries(t).sort(([e], [t]) => e.localeCompare(t))) : t), Do = (e, t) => {
|
|
4575
4575
|
let n = e.cache;
|
|
4576
4576
|
if (n === void 0) return;
|
|
4577
|
-
let r =
|
|
4577
|
+
let r = h(n.ttl);
|
|
4578
4578
|
if (r !== null) return {
|
|
4579
4579
|
ttlMs: r,
|
|
4580
|
-
swrMs: n.swr === void 0 ? void 0 :
|
|
4580
|
+
swrMs: n.swr === void 0 ? void 0 : h(n.swr) ?? void 0,
|
|
4581
4581
|
scope: n.scope,
|
|
4582
4582
|
baseKey: `q:${e.name}:${Eo(t)}`
|
|
4583
4583
|
};
|
|
@@ -5113,7 +5113,7 @@ ${a.join("\n\n")}\n`);
|
|
|
5113
5113
|
plugins: It.snapshot(),
|
|
5114
5114
|
capturedAt: Date.now()
|
|
5115
5115
|
}),
|
|
5116
|
-
env: () =>
|
|
5116
|
+
env: () => f(F?.name ?? E(m), {
|
|
5117
5117
|
contract: Ui(F?.env) ? F.env : void 0,
|
|
5118
5118
|
plugins: F?.plugins ?? []
|
|
5119
5119
|
}),
|
|
@@ -5827,8 +5827,8 @@ ${a.join("\n\n")}\n`);
|
|
|
5827
5827
|
...ws ? { pluginHttpInterceptor: ws } : {},
|
|
5828
5828
|
...Ps.length > 0 ? { httpRoutes: Ps } : {},
|
|
5829
5829
|
getStore: () => L.current,
|
|
5830
|
-
inspectRoute: { handle: async (e, t,
|
|
5831
|
-
if (
|
|
5830
|
+
inspectRoute: { handle: async (e, t, r, i) => {
|
|
5831
|
+
if (r === "GET" && e === "/_voltro/inspect/plugins/dashboard-mounts") return {
|
|
5832
5832
|
status: 200,
|
|
5833
5833
|
contentType: "application/json; charset=utf-8",
|
|
5834
5834
|
body: JSON.stringify({
|
|
@@ -5837,93 +5837,93 @@ ${a.join("\n\n")}\n`);
|
|
|
5837
5837
|
}),
|
|
5838
5838
|
headers: T(t.origin)
|
|
5839
5839
|
};
|
|
5840
|
-
if (
|
|
5841
|
-
if (
|
|
5840
|
+
if (r === "POST" && (e === "/_voltro/inspect/invoke" || e.startsWith("/_voltro/inspect/invoke?"))) return qe(Q, t, i ?? "", { method: r });
|
|
5841
|
+
if (r === "POST" && e.startsWith("/_voltro/inspect/webhooks/")) return Xe(e, Q, t, i ?? "", { method: r }).then((e) => e ?? {
|
|
5842
5842
|
status: 404,
|
|
5843
5843
|
contentType: "application/json; charset=utf-8",
|
|
5844
5844
|
body: JSON.stringify({ error: "unknown webhook URL" })
|
|
5845
5845
|
});
|
|
5846
|
-
if (
|
|
5847
|
-
let
|
|
5848
|
-
if (e === "/_voltro/inspect/seeds/run" || e === "/_voltro/inspect/migrations/rollback") return
|
|
5846
|
+
if (r === "POST" && e.startsWith("/_voltro/inspect/")) {
|
|
5847
|
+
let n = rt(e, Q, t, i ?? "", { method: r });
|
|
5848
|
+
if (e === "/_voltro/inspect/seeds/run" || e === "/_voltro/inspect/migrations/rollback") return n;
|
|
5849
5849
|
}
|
|
5850
|
-
if (
|
|
5851
|
-
...
|
|
5850
|
+
if (r === "POST" && e === "/_voltro/inspect/clientLog") return {
|
|
5851
|
+
...o(i ?? "", S),
|
|
5852
5852
|
headers: T(t.origin)
|
|
5853
5853
|
};
|
|
5854
|
-
if (
|
|
5855
|
-
...
|
|
5854
|
+
if (r === "GET" && (e === "/_voltro/inspect/logs" || e.startsWith("/_voltro/inspect/logs?"))) return {
|
|
5855
|
+
...n(e, u(), t),
|
|
5856
5856
|
headers: T(t.origin)
|
|
5857
5857
|
};
|
|
5858
|
-
if (
|
|
5858
|
+
if (r === "GET" && (e === "/_voltro/inspect/traces" || e.startsWith("/_voltro/inspect/traces?"))) {
|
|
5859
5859
|
let n = ve();
|
|
5860
5860
|
return {
|
|
5861
5861
|
...ul(e, rs === "postgres" && me() ? await Hl(e, n, B) : n),
|
|
5862
5862
|
headers: T(t.origin)
|
|
5863
5863
|
};
|
|
5864
5864
|
}
|
|
5865
|
-
if (
|
|
5866
|
-
let
|
|
5867
|
-
if (
|
|
5865
|
+
if (r === "GET" && (e === "/_voltro/inspect/data/rows" || e.startsWith("/_voltro/inspect/data/rows?"))) {
|
|
5866
|
+
let n = await Ke(e, Q, t, { method: r });
|
|
5867
|
+
if (n) return n;
|
|
5868
5868
|
}
|
|
5869
|
-
if (
|
|
5870
|
-
let
|
|
5871
|
-
if (
|
|
5869
|
+
if (r === "GET" && e.startsWith("/_voltro/inspect/provenance")) {
|
|
5870
|
+
let n = await Je(e, Q, t, { method: r });
|
|
5871
|
+
if (n) return n;
|
|
5872
5872
|
}
|
|
5873
|
-
if ((
|
|
5874
|
-
let
|
|
5875
|
-
if (
|
|
5873
|
+
if ((r === "POST" || r === "PATCH" || r === "DELETE") && e.startsWith("/_voltro/inspect/data/rows")) {
|
|
5874
|
+
let n = await Ze(e, Q, t, i ?? "", { method: r });
|
|
5875
|
+
if (n) return n;
|
|
5876
5876
|
}
|
|
5877
|
-
if (
|
|
5878
|
-
let
|
|
5879
|
-
if (
|
|
5877
|
+
if (r === "POST" && e.startsWith("/_voltro/inspect/data/import")) {
|
|
5878
|
+
let n = await nt(e, Q, t, i ?? "", { method: r });
|
|
5879
|
+
if (n) return n;
|
|
5880
5880
|
}
|
|
5881
|
-
if (
|
|
5882
|
-
let
|
|
5883
|
-
if (
|
|
5881
|
+
if (r === "GET" && (e === "/_voltro/inspect/workflows/runs" || e.startsWith("/_voltro/inspect/workflows/runs?"))) {
|
|
5882
|
+
let n = await He(e, Q, t, { method: r });
|
|
5883
|
+
if (n) return n;
|
|
5884
5884
|
}
|
|
5885
|
-
if (
|
|
5886
|
-
let
|
|
5887
|
-
if (
|
|
5885
|
+
if (r === "POST" && e.startsWith("/_voltro/inspect/workflows/start/")) {
|
|
5886
|
+
let n = await Be(e, Q, t, i ?? "", { method: r });
|
|
5887
|
+
if (n) return n;
|
|
5888
5888
|
}
|
|
5889
|
-
if (
|
|
5890
|
-
let
|
|
5891
|
-
if (
|
|
5889
|
+
if (r === "GET" && e.startsWith("/_voltro/inspect/workflows/runs/") && e.endsWith("/steps")) {
|
|
5890
|
+
let n = await at(e, Q, t, { method: r });
|
|
5891
|
+
if (n) return n;
|
|
5892
5892
|
}
|
|
5893
|
-
if (
|
|
5894
|
-
let
|
|
5895
|
-
if (
|
|
5893
|
+
if (r === "GET" && e.startsWith("/_voltro/inspect/workflows/runs/") && e.endsWith("/events")) {
|
|
5894
|
+
let n = await Ge(e, Q, t, { method: r });
|
|
5895
|
+
if (n) return n;
|
|
5896
5896
|
}
|
|
5897
|
-
if (
|
|
5898
|
-
let
|
|
5899
|
-
if (
|
|
5897
|
+
if (r === "GET" && (e === "/_voltro/inspect/workflows/events" || e.startsWith("/_voltro/inspect/workflows/events?"))) {
|
|
5898
|
+
let n = await it(Q, e, t, { method: r });
|
|
5899
|
+
if (n) return n;
|
|
5900
5900
|
}
|
|
5901
|
-
if (
|
|
5902
|
-
let
|
|
5903
|
-
if (
|
|
5901
|
+
if (r === "GET" && e.startsWith("/_voltro/inspect/workflows/events/") && e.endsWith("/deliveries")) {
|
|
5902
|
+
let n = await ot(Q, e, t, { method: r });
|
|
5903
|
+
if (n) return n;
|
|
5904
5904
|
}
|
|
5905
|
-
if (
|
|
5906
|
-
let
|
|
5907
|
-
if (
|
|
5905
|
+
if (r === "GET" && (e === "/_voltro/inspect/workflows/children" || e.startsWith("/_voltro/inspect/workflows/children?"))) {
|
|
5906
|
+
let n = await Ue(e, Q, t, { method: r });
|
|
5907
|
+
if (n) return n;
|
|
5908
5908
|
}
|
|
5909
|
-
if (
|
|
5910
|
-
let
|
|
5911
|
-
if (
|
|
5909
|
+
if (r === "POST" && e.startsWith("/_voltro/inspect/workflows/runs/") && (e.endsWith("/cancel") || e.endsWith("/retry") || e.endsWith("/suspend") || e.endsWith("/resume") || e.endsWith("/signal"))) {
|
|
5910
|
+
let n = await Ye(e, Q, t, i ?? "", { method: r });
|
|
5911
|
+
if (n) return n;
|
|
5912
5912
|
}
|
|
5913
5913
|
if (e.startsWith("/_voltro/inspect/schedules")) {
|
|
5914
|
-
let
|
|
5915
|
-
if (
|
|
5914
|
+
let n = await Qe(e, Q, t, { method: r });
|
|
5915
|
+
if (n) return n;
|
|
5916
5916
|
}
|
|
5917
5917
|
if (e === "/_voltro/inspect/cluster" || e.startsWith("/_voltro/inspect/cluster?")) {
|
|
5918
|
-
let
|
|
5919
|
-
if (
|
|
5918
|
+
let n = await $e(e, Q, t, { method: r });
|
|
5919
|
+
if (n) return n;
|
|
5920
5920
|
}
|
|
5921
5921
|
if (e.startsWith("/_voltro/inspect/aggregates")) {
|
|
5922
|
-
let
|
|
5923
|
-
if (
|
|
5922
|
+
let n = await Us(e, r, aa.registry, T(t.origin));
|
|
5923
|
+
if (n) return n;
|
|
5924
5924
|
}
|
|
5925
5925
|
if (e.startsWith("/_voltro/inspect/timeline")) {
|
|
5926
|
-
let
|
|
5926
|
+
let n = await $s(e, r, {
|
|
5927
5927
|
recorder: ln(),
|
|
5928
5928
|
readCurrentRows: async (e) => Q.inspectRows === void 0 ? [] : (await Q.inspectRows({
|
|
5929
5929
|
table: e,
|
|
@@ -5932,16 +5932,16 @@ ${a.join("\n\n")}\n`);
|
|
|
5932
5932
|
count: "none"
|
|
5933
5933
|
})).rows
|
|
5934
5934
|
}, T(t.origin));
|
|
5935
|
-
if (
|
|
5935
|
+
if (n) return n;
|
|
5936
5936
|
}
|
|
5937
5937
|
if (e.startsWith("/_voltro/inspect/analytics")) {
|
|
5938
|
-
let
|
|
5938
|
+
let n = qs(e, r, {
|
|
5939
5939
|
sink: ni,
|
|
5940
5940
|
metricsCollector: Oo
|
|
5941
5941
|
}, T(t.origin));
|
|
5942
|
-
if (
|
|
5942
|
+
if (n) return n;
|
|
5943
5943
|
}
|
|
5944
|
-
if (
|
|
5944
|
+
if (r === "GET" && (e === "/_voltro/inspect/webhooks" || e.startsWith("/_voltro/inspect/webhooks?"))) return Q.webhooks === void 0 ? {
|
|
5945
5945
|
status: 200,
|
|
5946
5946
|
contentType: "application/json; charset=utf-8",
|
|
5947
5947
|
body: JSON.stringify({
|
|
@@ -5958,10 +5958,10 @@ ${a.join("\n\n")}\n`);
|
|
|
5958
5958
|
headers: T(t.origin)
|
|
5959
5959
|
}));
|
|
5960
5960
|
if (e.startsWith("/_voltro/inspect/plugins/")) {
|
|
5961
|
-
let
|
|
5962
|
-
if (
|
|
5961
|
+
let n = await Rt.dispatch(e, r, t, i ?? "");
|
|
5962
|
+
if (n) return n;
|
|
5963
5963
|
}
|
|
5964
|
-
return et(e, Q, t, { method:
|
|
5964
|
+
return et(e, Q, t, { method: r });
|
|
5965
5965
|
} },
|
|
5966
5966
|
inspectStream: {
|
|
5967
5967
|
authorize: (e) => We(e),
|
|
@@ -5969,7 +5969,7 @@ ${a.join("\n\n")}\n`);
|
|
|
5969
5969
|
replay: () => S.buffered().map(a),
|
|
5970
5970
|
subscribe: (e) => S.subscribe((t) => e(a(t))),
|
|
5971
5971
|
corsHeaders: (e) => T(e),
|
|
5972
|
-
keepAlive: () =>
|
|
5972
|
+
keepAlive: () => ee()
|
|
5973
5973
|
},
|
|
5974
5974
|
webhookRoutes: new Map(Array.from(Ma.entries()).map(([e, t]) => [e, { handle: t }])),
|
|
5975
5975
|
...Zn ? { tracerLayer: Zn } : {}
|
|
@@ -5985,7 +5985,7 @@ ${a.join("\n\n")}\n`);
|
|
|
5985
5985
|
store: rs
|
|
5986
5986
|
}), Ee?.set({ phase: "ready" }), rs === "postgres" && $.info("postgres change-data-capture", { enabled: (process.env.CDC ?? "1") !== "0" }), await mo();
|
|
5987
5987
|
try {
|
|
5988
|
-
await
|
|
5988
|
+
await g({
|
|
5989
5989
|
id: x,
|
|
5990
5990
|
name: le,
|
|
5991
5991
|
kind: "api",
|
|
@@ -5994,13 +5994,13 @@ ${a.join("\n\n")}\n`);
|
|
|
5994
5994
|
status: "live",
|
|
5995
5995
|
logFile: ue.path
|
|
5996
5996
|
});
|
|
5997
|
-
let
|
|
5998
|
-
if (
|
|
5999
|
-
let
|
|
6000
|
-
|
|
5997
|
+
let e = re(m);
|
|
5998
|
+
if (e) {
|
|
5999
|
+
let t = await r({ dashboardAppPath: e });
|
|
6000
|
+
t.status === "launched" ? $.info(`dashboard launched at http://localhost:${t.port}`, { port: t.port }) : t.status === "already-running" && $.debug(`dashboard already running on :${t.port}`, { port: t.port });
|
|
6001
6001
|
}
|
|
6002
6002
|
setInterval(() => {
|
|
6003
|
-
|
|
6003
|
+
g({
|
|
6004
6004
|
id: x,
|
|
6005
6005
|
name: le,
|
|
6006
6006
|
kind: "api",
|
|
@@ -6010,27 +6010,27 @@ ${a.join("\n\n")}\n`);
|
|
|
6010
6010
|
logFile: ue.path
|
|
6011
6011
|
}).catch(() => {});
|
|
6012
6012
|
}, 1e4).unref();
|
|
6013
|
-
let
|
|
6013
|
+
let n = async () => {
|
|
6014
6014
|
It.deactivate();
|
|
6015
6015
|
for (let e of ur) e.stop();
|
|
6016
|
-
ar?.dispose(),
|
|
6016
|
+
ar?.dispose(), t(x), ue.dispose(), Er(), pr?.close(), await ai();
|
|
6017
6017
|
};
|
|
6018
6018
|
process.on("SIGINT", () => {
|
|
6019
|
-
|
|
6019
|
+
n();
|
|
6020
6020
|
}), process.on("SIGTERM", () => {
|
|
6021
|
-
|
|
6021
|
+
n();
|
|
6022
6022
|
});
|
|
6023
6023
|
let i = process.ppid;
|
|
6024
6024
|
if (i > 1) {
|
|
6025
6025
|
let e = setInterval(() => {
|
|
6026
|
-
(process.ppid !== i || process.ppid === 1) && (clearInterval(e),
|
|
6026
|
+
(process.ppid !== i || process.ppid === 1) && (clearInterval(e), n().finally(() => process.exit(0)));
|
|
6027
6027
|
}, 2e3);
|
|
6028
6028
|
e.unref();
|
|
6029
6029
|
}
|
|
6030
6030
|
} catch (e) {
|
|
6031
6031
|
$.warn("runtime-registry write failed", {}, e);
|
|
6032
6032
|
}
|
|
6033
|
-
return
|
|
6033
|
+
return d(e, $, {
|
|
6034
6034
|
root: m,
|
|
6035
6035
|
onBeforeRestart: () => {
|
|
6036
6036
|
try {
|
|
@@ -6046,7 +6046,7 @@ ${a.join("\n\n")}\n`);
|
|
|
6046
6046
|
label: "WS",
|
|
6047
6047
|
url: `ws://localhost:${b}/ws`
|
|
6048
6048
|
}],
|
|
6049
|
-
bootMs: Date.now() -
|
|
6049
|
+
bootMs: Date.now() - _
|
|
6050
6050
|
}), new Promise(() => {});
|
|
6051
6051
|
};
|
|
6052
6052
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/fileConventions.ts
|
|
2
|
-
var e = /\.(query|mutation|action|stream)\.ts$/, t = /\.(query|mutation|action|stream)\.server\.ts$/, n = /\.workflow\.tsx$/, r = /\.workflow\.server\.tsx$/, i = /\.workflow\.tsx?$/, a = /\.trigger\.tsx?$/, o = /\.cron\.tsx?$/, s = /\.webhook\.tsx?$/, c = /\.outbox\.tsx?$/, l = /\.subscribe\.tsx?$/, u = /\.reaction\.tsx?$/, d = /\.aggregate\.tsx?$/, f = /\.startup\.tsx?$/, p = /\.seed\.ts$/, m = /\.relations\.ts$/, h = /\.entity\.ts$|\.schema\.ts$|^schema\.ts$/, g = (e) => i.test(e) && !n.test(e) && !r.test(e), _ =
|
|
2
|
+
var e = /\.(query|mutation|action|stream)\.ts$/, t = /\.(query|mutation|action|stream)\.server\.ts$/, n = /\.workflow\.tsx$/, r = /\.workflow\.server\.tsx$/, i = /\.workflow\.tsx?$/, a = /\.trigger\.tsx?$/, o = /\.cron\.tsx?$/, s = /\.webhook\.tsx?$/, c = /\.outbox\.tsx?$/, l = /\.subscribe\.tsx?$/, u = /\.reaction\.tsx?$/, d = /\.aggregate\.tsx?$/, f = /\.startup\.tsx?$/, p = /\.seed\.ts$/, m = /\.relations\.ts$/, h = /\.entity\.ts$|\.schema\.ts$|^schema\.ts$/, g = (e) => i.test(e) && !n.test(e) && !r.test(e), _ = /(?:^|\/)page\.tsx$/, v = /\.island\.tsx?$/, y = /\.component\.tsx$/, b = /\.component\.ui\.tsx$/, x = /\.hook\.tsx?$/, S = /\.internal\.tsx?$/, C = /\.types\.tsx?$/, w = /\.fixture\.tsx?$/, T = /\.tracking\.tsx?$/, E = /\.store\.tsx?$/, D = /\.client\.tsx?$/, O = /\.(test|spec)\.tsx?$/, k = [
|
|
3
3
|
e,
|
|
4
4
|
t,
|
|
5
5
|
i,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e } from "./appModuleLoader-C9r9mxZt.js";
|
|
2
|
-
import { C as t, D as n, T as r, i, l as a } from "./fileConventions-
|
|
2
|
+
import { C as t, D as n, T as r, i, l as a } from "./fileConventions-CBNPZVOV.js";
|
|
3
3
|
import { basename as o, join as s } from "node:path";
|
|
4
4
|
import { pathToFileURL as c } from "node:url";
|
|
5
5
|
import { Effect as l } from "effect";
|
package/dist/index.js
CHANGED