@voltro/cli 0.8.0 → 0.10.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 +329 -7
- package/THIRD-PARTY-NOTICES.md +2 -2
- package/dist/apiBuild-BbR1nYcE.js +2 -0
- package/dist/{apiBuild-OrDkXGFX.js → apiBuild-DTLPSlt9.js} +8 -8
- package/dist/bin.js +2 -2
- package/dist/{commands-DT4PipBz.js → commands-B0QT8dUY.js} +2080 -1638
- package/dist/dev-BJvbwjSz.js +2 -0
- package/dist/{dev-Ga65K4jc.js → dev-CK9fbuAM.js} +1433 -1367
- package/dist/index.js +1 -1
- package/dist/{inspectMetrics-EK0CcHyu.js → inspectMetrics-BeMjgt8x.js} +1239 -957
- package/dist/inspectState.d.ts +6 -2
- package/dist/{serveCommand-CR5xnYZt.js → serveCommand-YR3mKjvf.js} +367 -384
- package/dist/serveEntry.js +3 -3
- package/dist/{start-DuyBQxW3.js → start-C_M4fGS2.js} +391 -340
- package/dist/startEntry.js +2 -2
- package/package.json +18 -17
- package/templates/agent-docs/cli.md +94 -18
- package/templates/agent-docs/data.md +109 -1
- package/templates/agent-docs/database/seedsdialects.md +20 -4
- package/templates/agent-docs/routing.md +77 -14
- 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-CmtI6Ygh.js +0 -2
- package/dist/dev-Ca1jdwnt.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-CK9fbuAM.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-B0QT8dUY.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);
|