@voltro/cli 0.52.0 → 0.53.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 +229 -0
- package/THIRD-PARTY-NOTICES.md +8311 -3318
- package/dist/{apiBuild-CSFI8QGq.js → apiBuild-CaPfoWku.js} +11 -5
- package/dist/apiBuild-DHtLXYx9.js +2 -0
- package/dist/bin.js +1 -1
- package/dist/build-D-OnvNMf.js +843 -0
- package/dist/{checkCommand-COmqc2cB.js → checkCommand-C5elt0tW.js} +6 -6
- package/dist/{checkCommand-2SbqzukH.js → checkCommand-D2ZduVlh.js} +1 -1
- package/dist/codegen-BWpt3VgF.js +2 -0
- package/dist/{codegen-VF479Cnb.js → codegen-FEk8AZHb.js} +2 -2
- package/dist/{codegenCommand-DCdG2JN-.js → codegenCommand-BOiWQ5hz.js} +4 -4
- package/dist/{codemodRunner-r7J9lIa7.js → codemodRunner-BjtB2lq6.js} +109 -11
- package/dist/{commands-Cc_nV8WI.js → commands-DyxAmhP0.js} +30 -30
- package/dist/{dashboardCommand-C-gKvwqh.js → dashboardCommand-BdKTyT13.js} +5 -5
- package/dist/{dataCommand-BgpBHnlB.js → dataCommand-Bab9X7s8.js} +2 -2
- package/dist/{dbCommand-sHedr-NJ.js → dbCommand-06O2finM.js} +277 -236
- package/dist/dbCommand-B1EXBC6f.js +2 -0
- package/dist/{dev-CRHoCEiy.js → dev-C6LGF4iY.js} +3006 -2426
- package/dist/{dev--A3nsxA3.js → dev-GjJWAYo2.js} +1 -1
- package/dist/doctorCommand-B0hX0tdz.js +2 -0
- package/dist/{doctorCommand-DtfJ3FA6.js → doctorCommand-etMkflRc.js} +101 -69
- package/dist/{dormancyCommand-Drn7o0No.js → dormancyCommand-UwZ1AZzB.js} +1 -1
- package/dist/{embeddingsCommand-Z-jO1fWN.js → embeddingsCommand-C70zWHwo.js} +1 -1
- package/dist/{envCommand-D4gCrrTZ.js → envCommand-dSyKvRkM.js} +18 -18
- package/dist/{evolveCommand-CMROeKeA.js → evolveCommand-CG0_ebO5.js} +2 -2
- package/dist/fileConventions-DASGEmj-.js +35 -0
- package/dist/{fileTaxonomy-DvDUV9wq.js → fileTaxonomy-B7uxipWS.js} +55 -55
- package/dist/fontPipeline-LxIHa1vo.js +2 -0
- package/dist/fontPipeline-Tsh8kZfA.js +152 -0
- package/dist/frameworkTableAssembly-C_7Z-rMs.js +2 -0
- package/dist/{frameworkTableAssembly-w-XnLa3q.js → frameworkTableAssembly-DKx3ba3S.js} +5 -5
- package/dist/imagePipeline-B_GVJgm6.js +2 -0
- package/dist/imagePipeline-CBZmjT4i.js +127 -0
- package/dist/index.js +1 -1
- package/dist/{infoCommand-DXM868o_.js → infoCommand-_53iOc_j.js} +1 -1
- package/dist/{inspect-CtL_xTbu.js → inspect-Bd8-9wsi.js} +1 -1
- package/dist/inspect-CuoDInfZ.js +2 -0
- package/dist/{inspectGateHint-BjnFubmH.js → inspectGateHint-4LxkNtrz.js} +1 -1
- package/dist/manifestBuild-C4-J1-m_.js +2 -0
- package/dist/{manifestBuild-CuU1VrSm.js → manifestBuild-Cqgsx2bM.js} +1 -1
- package/dist/{metaCommands-C6RFmF1r.js → metaCommands-Cn2oboG4.js} +8 -2
- package/dist/{migrate-D0F-eTlK.js → migrate-Cko9rswM.js} +2 -2
- package/dist/{pageConvention-CzUiSbtU.js → pageConvention-C938S8oC.js} +1 -1
- package/dist/{privacyCommand-DGdopOI6.js → privacyCommand-DWTQMC6R.js} +2 -2
- package/dist/{probeCommand-C9gazU0H.js → probeCommand-DkGGLknv.js} +83 -24
- package/dist/{renderModeScan-CcH2X1_D.js → renderModeScan-CUbOeOAg.js} +3 -1
- package/dist/{renderProfile-Ck32Fzxr.js → renderProfile-CskIgAfn.js} +2 -2
- package/dist/{runtimeTrace-BPQyCmC5.js → runtimeTrace-c0APJz7E.js} +1 -1
- package/dist/{sdkgen-Se88ifTd.js → sdkgen-BiQCgIEr.js} +1 -1
- package/dist/{serveCommand-DkP3OT0W.js → serveCommand-CueKQgzl.js} +869 -805
- package/dist/serveCommand-DsnrVN3U.js +2 -0
- package/dist/serveEntry.js +1 -1
- package/dist/start-BJzZLbt8.js +3 -0
- package/dist/start-ekPan8BT.js +1510 -0
- package/dist/startEntry.js +1 -1
- package/dist/{staticCommand-BwNEDlSU.js → staticCommand-xlSL-IWk.js} +1 -1
- package/dist/{test-f3amja6a.js → test-BWPQcRoB.js} +1 -1
- package/dist/updateCommand-Bqql_rsQ.js +2 -0
- package/dist/{updateCommand-BMk2e4ky.js → updateCommand-C_8I8Rzo.js} +139 -115
- package/dist/webDev-C7jWJ5dX.js +2 -0
- package/dist/{webDev-BgWL9gKV.js → webDev-oczpugbx.js} +1455 -922
- package/dist/{webhooksCommand-CoIO3jbj.js → webhooksCommand-4SVPDjKg.js} +1 -1
- package/package.json +60 -19
- package/templates/AGENTS.md +5 -3
- package/templates/agent-docs/_index.md +5 -3
- package/templates/agent-docs/_manifest.json +20 -4
- package/templates/agent-docs/ai.md +2 -2
- package/templates/agent-docs/authentication.md +1 -1
- package/templates/agent-docs/cli.md +2 -2
- package/templates/agent-docs/configuration.md +17 -0
- package/templates/agent-docs/data.md +470 -26
- package/templates/agent-docs/database/advancedqueries.md +7 -7
- package/templates/agent-docs/database/columntypes.md +2 -2
- package/templates/agent-docs/database/querying.md +1 -1
- package/templates/agent-docs/database/schema.md +1 -1
- package/templates/agent-docs/database/seedsdialects.md +1 -1
- package/templates/agent-docs/database/transactions.md +3 -3
- package/templates/agent-docs/deployment.md +8 -0
- package/templates/agent-docs/internationalization.md +2 -2
- package/templates/agent-docs/introduction.md +7 -1
- package/templates/agent-docs/local-first-mobile.md +102 -4
- package/templates/agent-docs/observability.md +2 -0
- package/templates/agent-docs/plugins/auth.md +1 -1
- package/templates/agent-docs/plugins/comments.md +142 -0
- package/templates/agent-docs/plugins/notifications.md +47 -4
- package/templates/agent-docs/plugins/presence.md +16 -3
- package/templates/agent-docs/plugins/prometheus.md +1 -1
- package/templates/agent-docs/plugins/queue.md +129 -0
- package/templates/agent-docs/plugins.md +11 -7
- package/templates/agent-docs/reference.md +16 -4
- package/templates/agent-docs/routing.md +527 -3
- package/templates/agent-docs/schema-driven-ui.md +214 -3
- package/templates/agent-docs/security.md +3 -3
- package/templates/agent-docs/whats-new.md +160 -66
- 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 +10 -10
- 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/app.config.ts +26 -2
- package/templates/apps/changelog/content/releases/{0.1.0.mdx → v0-1-0.mdx} +0 -1
- package/templates/apps/changelog/content/releases/{0.2.0.mdx → v0-2-0.mdx} +0 -1
- package/templates/apps/changelog/package.json +8 -8
- package/templates/apps/changelog/src/collections/releases.collection.ts +48 -0
- package/templates/apps/changelog/src/globals.d.ts +1 -1
- package/templates/apps/changelog/src/locales/de.ts +1 -1
- package/templates/apps/changelog/src/locales/en.ts +1 -1
- package/templates/apps/changelog/src/pages/[locale]/[slug]/page.tsx +7 -4
- package/templates/apps/changelog/src/pages/[locale]/mirrors.test.tsx +13 -41
- package/templates/apps/changelog/src/pages/[slug]/page.test.tsx +26 -51
- package/templates/apps/changelog/src/pages/[slug]/page.tsx +21 -19
- package/templates/apps/changelog/src/pages/page.test.tsx +14 -37
- package/templates/apps/changelog/src/pages/page.tsx +18 -12
- 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/content/docs/de/guides/first-page.md +4 -0
- package/templates/apps/frontend-docs/content/docs/de/intro/getting-started.md +4 -0
- package/templates/apps/frontend-docs/content/docs/en/guides/first-page.md +4 -0
- package/templates/apps/frontend-docs/content/docs/en/intro/getting-started.md +4 -0
- package/templates/apps/frontend-docs/package.json +8 -6
- package/templates/apps/frontend-docs/src/collections/docs.collection.ts +21 -0
- package/templates/apps/frontend-docs/src/locales/de.ts +0 -5
- package/templates/apps/frontend-docs/src/locales/en.ts +0 -5
- package/templates/apps/frontend-docs/src/pages/[locale]/docs/[...slug]/page.tsx +17 -9
- package/templates/apps/frontend-docs/src/pages/[locale]/mirrors.test.tsx +10 -5
- package/templates/apps/frontend-docs/src/pages/[locale]/page.tsx +8 -0
- package/templates/apps/frontend-docs/src/pages/docs/[...slug]/page.test.tsx +53 -15
- package/templates/apps/frontend-docs/src/pages/docs/[...slug]/page.tsx +27 -33
- package/templates/apps/frontend-docs/src/pages/page.test.tsx +17 -3
- package/templates/apps/frontend-docs/src/pages/page.tsx +16 -12
- package/templates/apps/frontend-i18n/package.json +6 -6
- package/templates/apps/frontend-landing/package.json +6 -6
- 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/content/posts/cms-to-ssg.md +12 -0
- package/templates/apps/frontend-static-blog/content/posts/hello-static.md +12 -0
- package/templates/apps/frontend-static-blog/content/posts/islands-not-hydration.md +14 -0
- package/templates/apps/frontend-static-blog/package.json +8 -6
- package/templates/apps/frontend-static-blog/src/collections/posts.collection.ts +27 -0
- package/templates/apps/frontend-static-blog/src/pages/[locale]/blog/[slug]/page.tsx +7 -4
- package/templates/apps/frontend-static-blog/src/pages/[locale]/mirrors.test.tsx +7 -1
- package/templates/apps/frontend-static-blog/src/pages/blog/[slug]/page.test.tsx +19 -9
- package/templates/apps/frontend-static-blog/src/pages/blog/[slug]/page.tsx +19 -21
- package/templates/apps/frontend-static-blog/src/pages/page.test.tsx +18 -5
- package/templates/apps/frontend-static-blog/src/pages/page.tsx +21 -14
- package/templates/apps/frontend-status/package.json +8 -8
- package/templates/apps/mobile-app/package.json +4 -4
- package/dist/apiBuild-BYBpL7Pz.js +0 -2
- package/dist/build-CPgcMQug.js +0 -793
- package/dist/codegen-CctkDO-1.js +0 -2
- package/dist/dbCommand-DNb6yeOG.js +0 -2
- package/dist/doctorCommand-CqoWA2p5.js +0 -2
- package/dist/fileConventions-DOqD3lPS.js +0 -34
- package/dist/frameworkTableAssembly-C6ETawPR.js +0 -2
- package/dist/inspect-CuGDYES0.js +0 -2
- package/dist/manifestBuild-CPjhvM62.js +0 -2
- package/dist/serveCommand-DLc-BznW.js +0 -2
- package/dist/start-DfL3fOiN.js +0 -3
- package/dist/start-jw89Xbqy.js +0 -1339
- package/dist/updateCommand-5gFVfK5q.js +0 -2
- package/dist/webDev-CZbTsDcH.js +0 -2
- package/templates/apps/changelog/scripts/generate-rss.mjs +0 -38
- package/templates/apps/changelog/src/lib/releases.ts +0 -21
- package/templates/apps/frontend-static-blog/src/content/posts.ts +0 -64
|
@@ -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-DKx3ba3S.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-B1EXBC6f.js");
|
|
83
83
|
return t(["apply", ...e]);
|
|
84
84
|
};
|
|
85
85
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./cliError-BmdYnghb.js";
|
|
2
2
|
import { i as t, n, t as r } from "./cliArgs-D4p8n7EE.js";
|
|
3
|
-
import { b as i,
|
|
3
|
+
import { b as i, x as a } from "./fileConventions-DASGEmj-.js";
|
|
4
4
|
import { n as o } from "./cliOutput-D1tSBoRM.js";
|
|
5
5
|
import { join as s, resolve as c } from "node:path";
|
|
6
6
|
import { promises as l } from "node:fs";
|
|
@@ -38,7 +38,7 @@ var _ = d({ scope: "voltro:privacy" }), v = /* @__PURE__ */ new Set([
|
|
|
38
38
|
return await r(e), n;
|
|
39
39
|
}, x = (e) => typeof e == "object" && !!e && "tableName" in e && "fields" in e && typeof e.tableName == "string", S = async (e) => {
|
|
40
40
|
f();
|
|
41
|
-
let t = 0, n = 0, r = [...await b(e,
|
|
41
|
+
let t = 0, n = 0, r = [...await b(e, a), ...await b(e, i)];
|
|
42
42
|
for (let e of r) {
|
|
43
43
|
let r;
|
|
44
44
|
try {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e, t } from "./inspectGateHint-
|
|
1
|
+
import { r as e, t } from "./inspectGateHint-4LxkNtrz.js";
|
|
2
2
|
import { n } from "./cliOutput-D1tSBoRM.js";
|
|
3
3
|
import { n as r, o as i, r as a, t as o } from "./inspectFetch-EMuhTG_9.js";
|
|
4
4
|
import { ansi as s } from "@voltro/logger";
|
|
@@ -57,25 +57,84 @@ server and in this shell.`);
|
|
|
57
57
|
verdict: "refused",
|
|
58
58
|
detail: `refused (${a})`
|
|
59
59
|
};
|
|
60
|
-
}, d = 0, f = (e) => ({
|
|
60
|
+
}, d = 0, f = (e, t) => ({
|
|
61
61
|
_tag: "Request",
|
|
62
62
|
id: String(++d),
|
|
63
63
|
tag: e,
|
|
64
|
-
payload:
|
|
64
|
+
payload: t,
|
|
65
65
|
headers: []
|
|
66
|
-
}), p =
|
|
67
|
-
|
|
66
|
+
}), p = (e, t = 0) => {
|
|
67
|
+
if (t > 6 || typeof e != "object" || !e) return;
|
|
68
|
+
let n = e;
|
|
69
|
+
switch (n._tag) {
|
|
70
|
+
case "StringKeyword": return "probe";
|
|
71
|
+
case "NumberKeyword": return 0;
|
|
72
|
+
case "BooleanKeyword": return !1;
|
|
73
|
+
case "BigIntKeyword": return "0";
|
|
74
|
+
case "UnknownKeyword":
|
|
75
|
+
case "AnyKeyword":
|
|
76
|
+
case "ObjectKeyword": return {};
|
|
77
|
+
case "VoidKeyword":
|
|
78
|
+
case "UndefinedKeyword": return;
|
|
79
|
+
case "Literal": return n.literal;
|
|
80
|
+
case "Enums": return n.enums?.[0]?.[1];
|
|
81
|
+
case "TypeLiteral": {
|
|
82
|
+
let e = {};
|
|
83
|
+
for (let r of n.propertySignatures ?? []) {
|
|
84
|
+
if (r.isOptional === !0) continue;
|
|
85
|
+
let n = p(r.type, t + 1);
|
|
86
|
+
if (n === void 0) return;
|
|
87
|
+
e[String(r.name)] = n;
|
|
88
|
+
}
|
|
89
|
+
return e;
|
|
90
|
+
}
|
|
91
|
+
case "TupleType": {
|
|
92
|
+
if ((n.elements ?? []).length === 0) return [];
|
|
93
|
+
let e = (n.elements ?? []).map((e) => p(e.type ?? e, t + 1));
|
|
94
|
+
return e.some((e) => e === void 0) ? void 0 : e;
|
|
95
|
+
}
|
|
96
|
+
case "Union":
|
|
97
|
+
for (let e of n.types ?? []) {
|
|
98
|
+
let n = p(e, t + 1);
|
|
99
|
+
if (n !== void 0) return n;
|
|
100
|
+
}
|
|
101
|
+
(n.types ?? []).some((e) => e._tag === "UndefinedKeyword");
|
|
102
|
+
return;
|
|
103
|
+
case "Refinement":
|
|
104
|
+
case "Transformation": return p(n.from, t + 1);
|
|
105
|
+
case "Suspend": return;
|
|
106
|
+
default: return;
|
|
107
|
+
}
|
|
108
|
+
}, m = async (e) => {
|
|
109
|
+
let t = /* @__PURE__ */ new Map();
|
|
110
|
+
try {
|
|
111
|
+
let { walk: n, loadDiscovered: r } = await import("./dev-GjJWAYo2.js"), i = await r(await n(e)), a = [
|
|
112
|
+
...i.queries,
|
|
113
|
+
...i.mutations,
|
|
114
|
+
...i.actions,
|
|
115
|
+
...i.streams
|
|
116
|
+
];
|
|
117
|
+
for (let e of a) {
|
|
118
|
+
let n = e.descriptor.input;
|
|
119
|
+
if (n?.ast === void 0) continue;
|
|
120
|
+
let r = p(n.ast);
|
|
121
|
+
r !== void 0 && t.set(e.descriptor.name, r);
|
|
122
|
+
}
|
|
123
|
+
} catch {}
|
|
124
|
+
return t;
|
|
125
|
+
}, h = async (e, t, n) => {
|
|
126
|
+
let { verdict: r, detail: i } = u(await o(e, "/rpc", {
|
|
68
127
|
method: "POST",
|
|
69
|
-
body: f(t.tag),
|
|
128
|
+
body: f(t.tag, n),
|
|
70
129
|
anonymous: !0
|
|
71
130
|
}));
|
|
72
131
|
return {
|
|
73
132
|
tag: t.tag,
|
|
74
133
|
kind: t.kind,
|
|
75
|
-
verdict:
|
|
76
|
-
detail:
|
|
134
|
+
verdict: r,
|
|
135
|
+
detail: i
|
|
77
136
|
};
|
|
78
|
-
},
|
|
137
|
+
}, g = (e, t, r, i) => {
|
|
79
138
|
let a = t.filter((e) => e.verdict === "admitted"), o = t.filter((e) => e.verdict === "inconclusive"), c = t.filter((e) => e.verdict === "refused");
|
|
80
139
|
if (r === "json") n({
|
|
81
140
|
app: e,
|
|
@@ -107,28 +166,28 @@ server and in this shell.`);
|
|
|
107
166
|
There an anonymous request carries \`tenantId: null\`, which is the case a guard
|
|
108
167
|
has to refuse — and the case a tenant-keyed role map most easily gets wrong.`), 1) : i && o.length > 0 ? (r !== "json" && console.error(`\n${s.yellow("--strict:")} ${o.length} procedure(s) could not be judged.\n Their calls failed before the guard was reached (usually payload validation).
|
|
109
168
|
That is not evidence of enforcement, so under --strict it is not a pass.`), 1) : 0;
|
|
110
|
-
},
|
|
169
|
+
}, _ = async (n) => {
|
|
111
170
|
let c = r(n);
|
|
112
171
|
if ("error" in c) return console.error(`voltro probe access: ${c.error}`), 1;
|
|
113
|
-
let { format: u } = c, { process: d, target: f, rest:
|
|
114
|
-
if (
|
|
115
|
-
let
|
|
116
|
-
if (
|
|
117
|
-
let
|
|
118
|
-
for (let n of
|
|
172
|
+
let { format: u } = c, { process: d, target: f, rest: p, error: _ } = a(c.rest);
|
|
173
|
+
if (_ !== void 0) return console.error(`voltro probe access: ${_}`), 1;
|
|
174
|
+
let v = p.includes("--strict"), y = await i(d, f);
|
|
175
|
+
if (y.length === 0) return console.error("voltro probe access: no live api found.\n This command asks a RUNNING app what it does — there is nothing to ask a source tree.\n Start one (`voltro dev` / `voltro serve`), or address it directly with --url."), 1;
|
|
176
|
+
let b = 0;
|
|
177
|
+
for (let n of y) {
|
|
119
178
|
let r = await o(n, "/_voltro/inspect/manifest");
|
|
120
179
|
if (r.kind === "err" || r.status < 200 || r.status >= 300) {
|
|
121
|
-
console.error(`${s.red("✗")} ${n.name}: could not read the manifest — ${r.kind === "err" ? r.error : `HTTP ${r.status}`}`), r.kind === "ok" && e(r.status) && console.error(` ${t(r.status)}`),
|
|
180
|
+
console.error(`${s.red("✗")} ${n.name}: could not read the manifest — ${r.kind === "err" ? r.error : `HTTP ${r.status}`}`), r.kind === "ok" && e(r.status) && console.error(` ${t(r.status)}`), b = 1;
|
|
122
181
|
continue;
|
|
123
182
|
}
|
|
124
|
-
let i = l(r.data?.procedures ?? []), a = [];
|
|
125
|
-
for (let e of i)
|
|
126
|
-
|
|
183
|
+
let i = l(r.data?.procedures ?? []), a = await m(process.cwd()), c = [];
|
|
184
|
+
for (let e of i) c.push(await h(n, e, a.get(e.tag) ?? {}));
|
|
185
|
+
b = Math.max(b, g(n.name, c, u, v));
|
|
127
186
|
}
|
|
128
|
-
return
|
|
129
|
-
},
|
|
187
|
+
return b;
|
|
188
|
+
}, v = async (e) => {
|
|
130
189
|
let [t, ...n] = e;
|
|
131
|
-
return t === void 0 || t === "--help" || t === "-h" ? (c(), +(t === void 0)) : t === "access" ?
|
|
190
|
+
return t === void 0 || t === "--help" || t === "-h" ? (c(), +(t === void 0)) : t === "access" ? _(n) : (console.error(`voltro probe: unknown subcommand "${t}" (expected: access)`), 1);
|
|
132
191
|
};
|
|
133
192
|
//#endregion
|
|
134
|
-
export {
|
|
193
|
+
export { v as runProbeCommand };
|
|
@@ -73,7 +73,9 @@ var n = () => {
|
|
|
73
73
|
interactive: e.interactive ?? "full",
|
|
74
74
|
hasLoader: typeof e.loader == "function",
|
|
75
75
|
hasMeta: e.meta != null,
|
|
76
|
-
hasGetStaticPaths: typeof e.getStaticPaths == "function"
|
|
76
|
+
hasGetStaticPaths: typeof e.getStaticPaths == "function",
|
|
77
|
+
hasOgImage: typeof e.ogImage == "function",
|
|
78
|
+
ppr: e.ppr === !0
|
|
77
79
|
}), m = /export\s+const\s+renderMode\s*(?::[^=]+)?=\s*['"]([^'"]*)['"]/, h = (e) => m.exec(e)?.[1] ?? null, g = /export\s*\{([^}]*)\}\s*from\s*['"]([^'"]+)['"]/g, _ = (e) => {
|
|
78
80
|
g.lastIndex = 0;
|
|
79
81
|
let t;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as t, n, o as r, r as i, s as a } from "./renderModeScan-
|
|
1
|
+
import { h as e } from "./fileConventions-DASGEmj-.js";
|
|
2
|
+
import { i as t, n, o as r, r as i, s as a } from "./renderModeScan-CUbOeOAg.js";
|
|
3
3
|
import { dirname as o, join as s, relative as c, resolve as l } from "node:path";
|
|
4
4
|
import { Effect as u } from "effect";
|
|
5
5
|
import { readFile as d, readdir as f } from "node:fs/promises";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e } from "./apiBuild-
|
|
1
|
+
import { n as e } from "./apiBuild-CaPfoWku.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-D2ZduVlh.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), {
|