@voltro/cli 0.9.0 → 0.11.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 +394 -7
- package/dist/apiBuild-BCv3bekE.js +2 -0
- package/dist/{apiBuild-eInHm_bJ.js → apiBuild-BUbgGz73.js} +8 -8
- package/dist/bin.js +2 -2
- package/dist/{commands-Cxs97AFp.js → commands-C1qBfIBI.js} +1977 -1599
- package/dist/dev-DKASElZP.js +2 -0
- package/dist/{dev-63Ehpw2p.js → dev-ITlO-epO.js} +1600 -1512
- package/dist/index.js +1 -1
- package/dist/{inspectMetrics-DVCKKSPk.js → inspectMetrics-BeMjgt8x.js} +1018 -827
- package/dist/inspectState.d.ts +6 -2
- package/dist/{serveCommand-Cq7BhtpB.js → serveCommand-mpsE3vLY.js} +407 -420
- package/dist/serveEntry.js +3 -3
- package/dist/{start-CYe-7ueh.js → start-C_M4fGS2.js} +331 -309
- package/dist/startEntry.js +2 -2
- package/package.json +17 -17
- package/templates/agent-docs/cli.md +45 -17
- package/templates/agent-docs/data.md +145 -1
- package/templates/agent-docs/database/seedsdialects.md +40 -4
- package/templates/agent-docs/routing.md +52 -13
- package/templates/agent-docs/scheduling.md +32 -0
- 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-durable/schedules/nightlyReport.cron.tsx +5 -0
- package/templates/apps/api-durable/subscribers/orderChanges.subscribe.ts +8 -2
- 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 +8 -8
- 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 +8 -8
- package/templates/apps/frontend-blank/package.json +7 -7
- 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-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/dist/apiBuild-Ba4njm9m.js +0 -2
- package/dist/dev-CXsR8Zgo.js +0 -2
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Mt as e } from "./inspectMetrics-BeMjgt8x.js";
|
|
2
|
+
import { ct as t, d as n } from "./dev-ITlO-epO.js";
|
|
3
3
|
import { isAbsolute as r, join as i, relative as a, resolve as o } from "node:path";
|
|
4
4
|
import { createLogger as s } from "@voltro/logger";
|
|
5
5
|
import { existsSync as c, promises as l } from "node:fs";
|
|
6
6
|
import { createRequire as u } from "node:module";
|
|
7
7
|
//#region src/apiBuild.ts
|
|
8
8
|
var d = s({ scope: "voltro:build" }), f = async (e) => {
|
|
9
|
-
let
|
|
10
|
-
if (!c(
|
|
9
|
+
let n = i(e, "package.json");
|
|
10
|
+
if (!c(n)) return [];
|
|
11
11
|
let r = {};
|
|
12
12
|
try {
|
|
13
|
-
let e = JSON.parse(await l.readFile(
|
|
13
|
+
let e = JSON.parse(await l.readFile(n, "utf8"));
|
|
14
14
|
r = {
|
|
15
15
|
...e.dependencies,
|
|
16
16
|
...e.devDependencies,
|
|
@@ -19,8 +19,8 @@ var d = s({ scope: "voltro:build" }), f = async (e) => {
|
|
|
19
19
|
} catch {
|
|
20
20
|
return [];
|
|
21
21
|
}
|
|
22
|
-
let a = u(
|
|
23
|
-
return
|
|
22
|
+
let a = u(n);
|
|
23
|
+
return t.filter((e) => {
|
|
24
24
|
if (r[e] === void 0) return !1;
|
|
25
25
|
try {
|
|
26
26
|
return a.resolve(e), !0;
|
|
@@ -28,7 +28,7 @@ var d = s({ scope: "voltro:build" }), f = async (e) => {
|
|
|
28
28
|
return !1;
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
}, p = /(?:\.(?:query|mutation|action|stream)(?:\.server)?\.ts|\.workflow(?:\.server)?\.tsx|\.(?:subscribe|reaction|aggregate|agent|tool|webhook|cron|trigger)(?:\.server)?\.tsx?|\.(?:startup|seed)\.tsx?|\.(?:entity|schema|relations)\.ts|(?:^|\/)schema\.ts)$/, m = (e) => /\.(ts|tsx)$/.test(e) && !/\.(test|spec)\.[tj]sx?$/.test(e), h = async (e) => (await
|
|
31
|
+
}, p = /(?:\.(?:query|mutation|action|stream)(?:\.server)?\.ts|\.workflow(?:\.server)?\.tsx|\.(?:subscribe|reaction|aggregate|agent|tool|webhook|cron|trigger)(?:\.server)?\.tsx?|\.(?:startup|seed)\.tsx?|\.(?:entity|schema|relations)\.ts|(?:^|\/)schema\.ts)$/, m = (e) => /\.(ts|tsx)$/.test(e) && !/\.(test|spec)\.[tj]sx?$/.test(e), h = async (e) => (await n(e)).filter((t) => p.test(t) && m(t) && !t.includes(`${e}/.framework/`)), g = {
|
|
32
32
|
name: "externalize-bare",
|
|
33
33
|
setup(e) {
|
|
34
34
|
e.onResolve({ filter: /.*/ }, (e) => {
|
package/dist/bin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import { n as t } from "./commands-
|
|
2
|
+
import { N as e } from "./inspectMetrics-BeMjgt8x.js";
|
|
3
|
+
import { n as t } from "./commands-C1qBfIBI.js";
|
|
4
4
|
import { createLogger as n } from "@voltro/logger";
|
|
5
5
|
//#region src/bin.ts
|
|
6
6
|
var r = n({ scope: "voltro:cli" }), i = process.argv.slice(2);
|