@donotdev/cli 0.0.22 → 0.0.24
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/dependencies-matrix.json +9 -24
- package/dist/bin/commands/deploy.js +8 -0
- package/dist/bin/commands/staging.js +8 -0
- package/dist/bin/dndev.js +1 -1
- package/dist/bin/donotdev.js +61 -1
- package/dist/index.js +8 -0
- package/package.json +1 -1
package/dependencies-matrix.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@donotdev/auth": {
|
|
18
18
|
"description": "Authentication package",
|
|
19
19
|
"packages": {
|
|
20
|
-
"@donotdev/auth": "^0.0.
|
|
20
|
+
"@donotdev/auth": "^0.0.15"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"@donotdev/billing": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@donotdev/core": {
|
|
36
36
|
"description": "Core framework package",
|
|
37
37
|
"packages": {
|
|
38
|
-
"@donotdev/core": "^0.0.
|
|
38
|
+
"@donotdev/core": "^0.0.32"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"@donotdev/crud": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@donotdev/firebase": {
|
|
48
48
|
"description": "Firebase provider package",
|
|
49
49
|
"packages": {
|
|
50
|
-
"@donotdev/firebase": "^0.0.
|
|
50
|
+
"@donotdev/firebase": "^0.0.17"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"@donotdev/functions": {
|
|
@@ -325,21 +325,6 @@
|
|
|
325
325
|
"vite": "^7.3.1"
|
|
326
326
|
}
|
|
327
327
|
},
|
|
328
|
-
"vite-deps": {
|
|
329
|
-
"packages": {
|
|
330
|
-
"react-refresh": "^0.18.0",
|
|
331
|
-
"@vitejs/plugin-basic-ssl": "^2.1.4",
|
|
332
|
-
"vite-tsconfig-paths": "^6.1.1",
|
|
333
|
-
"@rollup/plugin-strip": "^3.0.4",
|
|
334
|
-
"rollup-plugin-visualizer": "^6.0.5",
|
|
335
|
-
"vite-plugin-pwa": "1.2.0"
|
|
336
|
-
}
|
|
337
|
-
},
|
|
338
|
-
"vite-deps-minimal": {
|
|
339
|
-
"packages": {
|
|
340
|
-
"vite-tsconfig-paths": "^6.1.1"
|
|
341
|
-
}
|
|
342
|
-
},
|
|
343
328
|
"next": {
|
|
344
329
|
"packages": {
|
|
345
330
|
"next": "^16.1.6"
|
|
@@ -433,7 +418,7 @@
|
|
|
433
418
|
"@donotdev/cli": {
|
|
434
419
|
"description": "Cli package",
|
|
435
420
|
"packages": {
|
|
436
|
-
"@donotdev/cli": "^0.0.
|
|
421
|
+
"@donotdev/cli": "^0.0.24"
|
|
437
422
|
}
|
|
438
423
|
},
|
|
439
424
|
"@donotdev/mcp-server": {
|
|
@@ -768,7 +753,7 @@
|
|
|
768
753
|
"vite",
|
|
769
754
|
"typescript",
|
|
770
755
|
"types",
|
|
771
|
-
"vite-
|
|
756
|
+
"core-vite-config"
|
|
772
757
|
]
|
|
773
758
|
},
|
|
774
759
|
"@donotdev/expo": {
|
|
@@ -829,7 +814,7 @@
|
|
|
829
814
|
"types",
|
|
830
815
|
"i18n",
|
|
831
816
|
"react-query",
|
|
832
|
-
"vite-
|
|
817
|
+
"core-vite-config",
|
|
833
818
|
"postcss"
|
|
834
819
|
],
|
|
835
820
|
"conditional": {
|
|
@@ -919,7 +904,7 @@
|
|
|
919
904
|
"vite",
|
|
920
905
|
"typescript",
|
|
921
906
|
"types",
|
|
922
|
-
"vite-
|
|
907
|
+
"core-vite-config",
|
|
923
908
|
"postcss"
|
|
924
909
|
],
|
|
925
910
|
"conditional": {
|
|
@@ -1068,7 +1053,7 @@
|
|
|
1068
1053
|
"vite",
|
|
1069
1054
|
"typescript",
|
|
1070
1055
|
"types",
|
|
1071
|
-
"vite-
|
|
1056
|
+
"core-vite-config"
|
|
1072
1057
|
]
|
|
1073
1058
|
},
|
|
1074
1059
|
"dndev": {
|
|
@@ -1095,7 +1080,7 @@
|
|
|
1095
1080
|
"vite",
|
|
1096
1081
|
"typescript",
|
|
1097
1082
|
"types",
|
|
1098
|
-
"vite-
|
|
1083
|
+
"core-vite-config",
|
|
1099
1084
|
"ws-types"
|
|
1100
1085
|
]
|
|
1101
1086
|
}
|
|
@@ -16754,6 +16754,10 @@ async function uploadFiles(files, token, orgId) {
|
|
|
16754
16754
|
});
|
|
16755
16755
|
if (!res.ok) {
|
|
16756
16756
|
const body = await res.text();
|
|
16757
|
+
log.warn(`Upload failed: ${file.relativePath} (${res.status})`);
|
|
16758
|
+
log.warn(` URL: ${VERCEL_API}/v2/files${q2}`);
|
|
16759
|
+
log.warn(` SHA: ${file.sha}, Size: ${file.size}`);
|
|
16760
|
+
log.warn(` Response: ${body}`);
|
|
16757
16761
|
throw new Error(
|
|
16758
16762
|
`File upload failed for ${file.relativePath} (${res.status}): ${body}`
|
|
16759
16763
|
);
|
|
@@ -16765,6 +16769,7 @@ async function uploadFiles(files, token, orgId) {
|
|
|
16765
16769
|
async function createDeployment(files, token, orgId, projectId) {
|
|
16766
16770
|
const q2 = teamQuery(orgId);
|
|
16767
16771
|
const body = {
|
|
16772
|
+
name: projectId,
|
|
16768
16773
|
project: projectId,
|
|
16769
16774
|
target: "production",
|
|
16770
16775
|
files: files.map((f) => ({
|
|
@@ -16837,6 +16842,9 @@ async function deployVercelFrontend(appDir, _config) {
|
|
|
16837
16842
|
throw new Error(`dist/ not found at ${distDir}. Run build first.`);
|
|
16838
16843
|
}
|
|
16839
16844
|
log.debug("Using Vercel REST API (token-based, no CLI)");
|
|
16845
|
+
log.info(`Vercel org: ${orgId}`);
|
|
16846
|
+
log.info(`Vercel project: ${projectId}`);
|
|
16847
|
+
log.info(`Token: ${token.slice(0, 6)}...${token.slice(-4)} (${token.length} chars)`);
|
|
16840
16848
|
log.info("Collecting dist/ files...");
|
|
16841
16849
|
const files = await collectDistFiles(distDir);
|
|
16842
16850
|
if (files.length === 0) {
|
|
@@ -16754,6 +16754,10 @@ async function uploadFiles(files, token, orgId) {
|
|
|
16754
16754
|
});
|
|
16755
16755
|
if (!res.ok) {
|
|
16756
16756
|
const body = await res.text();
|
|
16757
|
+
log.warn(`Upload failed: ${file.relativePath} (${res.status})`);
|
|
16758
|
+
log.warn(` URL: ${VERCEL_API}/v2/files${q2}`);
|
|
16759
|
+
log.warn(` SHA: ${file.sha}, Size: ${file.size}`);
|
|
16760
|
+
log.warn(` Response: ${body}`);
|
|
16757
16761
|
throw new Error(
|
|
16758
16762
|
`File upload failed for ${file.relativePath} (${res.status}): ${body}`
|
|
16759
16763
|
);
|
|
@@ -16765,6 +16769,7 @@ async function uploadFiles(files, token, orgId) {
|
|
|
16765
16769
|
async function createDeployment(files, token, orgId, projectId) {
|
|
16766
16770
|
const q2 = teamQuery(orgId);
|
|
16767
16771
|
const body = {
|
|
16772
|
+
name: projectId,
|
|
16768
16773
|
project: projectId,
|
|
16769
16774
|
target: "production",
|
|
16770
16775
|
files: files.map((f) => ({
|
|
@@ -16837,6 +16842,9 @@ async function deployVercelFrontend(appDir, _config) {
|
|
|
16837
16842
|
throw new Error(`dist/ not found at ${distDir}. Run build first.`);
|
|
16838
16843
|
}
|
|
16839
16844
|
log.debug("Using Vercel REST API (token-based, no CLI)");
|
|
16845
|
+
log.info(`Vercel org: ${orgId}`);
|
|
16846
|
+
log.info(`Vercel project: ${projectId}`);
|
|
16847
|
+
log.info(`Token: ${token.slice(0, 6)}...${token.slice(-4)} (${token.length} chars)`);
|
|
16840
16848
|
log.info("Collecting dist/ files...");
|
|
16841
16849
|
const files = await collectDistFiles(distDir);
|
|
16842
16850
|
if (files.length === 0) {
|
package/dist/bin/dndev.js
CHANGED
|
@@ -858,7 +858,7 @@ function registerCommand(program2, def, action) {
|
|
|
858
858
|
}
|
|
859
859
|
|
|
860
860
|
// packages/cli/src/bin/dndev.mjs
|
|
861
|
-
var CLI_VERSION = true ? "0.0.
|
|
861
|
+
var CLI_VERSION = true ? "0.0.24" : "0.0.0";
|
|
862
862
|
var args = process.argv.slice(2);
|
|
863
863
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
|
|
864
864
|
console.log(CLI_VERSION);
|
package/dist/bin/donotdev.js
CHANGED
|
@@ -581,6 +581,54 @@ var init_command_registry = __esm({
|
|
|
581
581
|
exportName: "doctor"
|
|
582
582
|
},
|
|
583
583
|
// ---------------------------------------------------------------------------
|
|
584
|
+
// Database
|
|
585
|
+
// ---------------------------------------------------------------------------
|
|
586
|
+
{
|
|
587
|
+
name: "seed [app]",
|
|
588
|
+
description: "Generate and insert sample data into your database",
|
|
589
|
+
category: "deployment",
|
|
590
|
+
public: true,
|
|
591
|
+
appCommand: true,
|
|
592
|
+
options: [
|
|
593
|
+
{
|
|
594
|
+
flags: "-n, --count <number>",
|
|
595
|
+
description: "Rows per entity (default: 10)"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
flags: "--clean",
|
|
599
|
+
description: "Truncate tables before seeding"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
flags: "--only <entities>",
|
|
603
|
+
description: "Comma-separated entity names to seed"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
flags: "--seed <number>",
|
|
607
|
+
description: "Random seed for reproducible output (default: 42)"
|
|
608
|
+
}
|
|
609
|
+
],
|
|
610
|
+
loader: "../cli/seed/seed.ts",
|
|
611
|
+
exportName: "seed"
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
name: "db [script]",
|
|
615
|
+
description: "Run a custom database script with injected DbContext",
|
|
616
|
+
category: "deployment",
|
|
617
|
+
public: true,
|
|
618
|
+
options: [
|
|
619
|
+
{
|
|
620
|
+
flags: "-l, --list",
|
|
621
|
+
description: "List available scripts in .dndev/scripts/"
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
flags: "-a, --app <app>",
|
|
625
|
+
description: "App name (for multi-app monorepos)"
|
|
626
|
+
}
|
|
627
|
+
],
|
|
628
|
+
loader: "../cli/db/db.ts",
|
|
629
|
+
exportName: "db"
|
|
630
|
+
},
|
|
631
|
+
// ---------------------------------------------------------------------------
|
|
584
632
|
// Content
|
|
585
633
|
// ---------------------------------------------------------------------------
|
|
586
634
|
{
|
|
@@ -648,6 +696,14 @@ var init_command_registry = __esm({
|
|
|
648
696
|
],
|
|
649
697
|
loader: "../quality/grill-review.ts"
|
|
650
698
|
},
|
|
699
|
+
{
|
|
700
|
+
name: "sync-app-templates",
|
|
701
|
+
description: "Copy live apps/demo and apps/dndev to CLI templates (with .example suffix)",
|
|
702
|
+
alias: "sat",
|
|
703
|
+
category: "internal",
|
|
704
|
+
loader: "../internal/sync-app-templates.ts",
|
|
705
|
+
exportName: "syncAppTemplates"
|
|
706
|
+
},
|
|
651
707
|
{
|
|
652
708
|
name: "generate sql",
|
|
653
709
|
description: "Generate PostgreSQL CREATE TABLE + RLS + trigger from entity definitions",
|
|
@@ -802,7 +858,7 @@ function registerCommand(program2, def, action) {
|
|
|
802
858
|
}
|
|
803
859
|
|
|
804
860
|
// packages/cli/src/bin/dndev.mjs
|
|
805
|
-
var CLI_VERSION = true ? "0.0.
|
|
861
|
+
var CLI_VERSION = true ? "0.0.23" : "0.0.0";
|
|
806
862
|
var args = process.argv.slice(2);
|
|
807
863
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
|
|
808
864
|
console.log(CLI_VERSION);
|
|
@@ -913,6 +969,10 @@ var ACTION_OVERRIDES = {
|
|
|
913
969
|
"agent-setup": async (options) => {
|
|
914
970
|
const { main } = await import("./commands/agent-setup.js");
|
|
915
971
|
await main(options);
|
|
972
|
+
},
|
|
973
|
+
"init": async (options, name) => {
|
|
974
|
+
const { main } = await import("./commands/create-project.js");
|
|
975
|
+
await main({ ...options, projectName: name || options.projectName });
|
|
916
976
|
}
|
|
917
977
|
};
|
|
918
978
|
for (const def of getPublicCommands()) {
|
package/dist/index.js
CHANGED
|
@@ -18940,6 +18940,10 @@ async function uploadFiles(files, token, orgId) {
|
|
|
18940
18940
|
});
|
|
18941
18941
|
if (!res.ok) {
|
|
18942
18942
|
const body = await res.text();
|
|
18943
|
+
log.warn(`Upload failed: ${file.relativePath} (${res.status})`);
|
|
18944
|
+
log.warn(` URL: ${VERCEL_API}/v2/files${q2}`);
|
|
18945
|
+
log.warn(` SHA: ${file.sha}, Size: ${file.size}`);
|
|
18946
|
+
log.warn(` Response: ${body}`);
|
|
18943
18947
|
throw new Error(
|
|
18944
18948
|
`File upload failed for ${file.relativePath} (${res.status}): ${body}`
|
|
18945
18949
|
);
|
|
@@ -18951,6 +18955,7 @@ async function uploadFiles(files, token, orgId) {
|
|
|
18951
18955
|
async function createDeployment(files, token, orgId, projectId) {
|
|
18952
18956
|
const q2 = teamQuery(orgId);
|
|
18953
18957
|
const body = {
|
|
18958
|
+
name: projectId,
|
|
18954
18959
|
project: projectId,
|
|
18955
18960
|
target: "production",
|
|
18956
18961
|
files: files.map((f) => ({
|
|
@@ -19023,6 +19028,9 @@ async function deployVercelFrontend(appDir, _config) {
|
|
|
19023
19028
|
throw new Error(`dist/ not found at ${distDir}. Run build first.`);
|
|
19024
19029
|
}
|
|
19025
19030
|
log.debug("Using Vercel REST API (token-based, no CLI)");
|
|
19031
|
+
log.info(`Vercel org: ${orgId}`);
|
|
19032
|
+
log.info(`Vercel project: ${projectId}`);
|
|
19033
|
+
log.info(`Token: ${token.slice(0, 6)}...${token.slice(-4)} (${token.length} chars)`);
|
|
19026
19034
|
log.info("Collecting dist/ files...");
|
|
19027
19035
|
const files = await collectDistFiles(distDir);
|
|
19028
19036
|
if (files.length === 0) {
|