@donotdev/cli 0.3.6 → 0.3.8
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 +41 -21
- package/dist/bin/commands/agent-setup.js +927 -132
- package/dist/bin/commands/build.js +30 -33
- package/dist/bin/commands/bump.js +450 -329
- package/dist/bin/commands/create-project.js +61 -15
- package/dist/bin/commands/db-check.js +443 -222
- package/dist/bin/commands/db.js +443 -222
- package/dist/bin/commands/deploy.js +8487 -8064
- package/dist/bin/commands/dev.js +230 -2
- package/dist/bin/commands/make-admin.js +30 -33
- package/dist/bin/commands/seed.js +454 -229
- package/dist/bin/commands/setup-cicd.js +43 -209
- package/dist/bin/commands/setup.js +6382 -2851
- package/dist/bin/commands/staging.js +8087 -7816
- package/dist/bin/commands/sync-secrets.js +117 -116
- package/dist/bin/commands/type-check.js +30 -33
- package/dist/bin/commands/uat.js +26340 -0
- package/dist/bin/dndev.js +48 -37
- package/dist/index.js +9630 -8218
- package/package.json +1 -1
- package/templates/app-vite/src/pages/HomePage.tsx.example +0 -12
- package/templates/root-consumer/.claude/agents/coder.md.example +1 -1
- package/templates/root-consumer/.claude/agents/prompt-engineer.md.example +1 -1
- package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +11 -2
- package/templates/root-consumer/.claude/hooks/session-start.sh.example +33 -42
- package/templates/root-consumer/.claude/settings.json.example +11 -0
- package/templates/root-consumer/README.md.example +1 -3
|
@@ -9046,7 +9046,11 @@ var init_command_registry = __esm({
|
|
|
9046
9046
|
appCommand: true,
|
|
9047
9047
|
actionPattern: "app",
|
|
9048
9048
|
options: [
|
|
9049
|
-
{ flags: "-c, --concurrency <n>", description: "set concurrency" }
|
|
9049
|
+
{ flags: "-c, --concurrency <n>", description: "set concurrency" },
|
|
9050
|
+
{
|
|
9051
|
+
flags: "--uat",
|
|
9052
|
+
description: "Run locally against the UAT backend (apps/<app>/.env.uat; refuses production values)"
|
|
9053
|
+
}
|
|
9050
9054
|
],
|
|
9051
9055
|
loader: "../apps/dev.ts",
|
|
9052
9056
|
exportName: "dev"
|
|
@@ -9348,7 +9352,7 @@ var init_command_registry = __esm({
|
|
|
9348
9352
|
options: [
|
|
9349
9353
|
{
|
|
9350
9354
|
flags: "-y, --yes",
|
|
9351
|
-
description: "Accept every default answer: packages and
|
|
9355
|
+
description: "Accept every default answer: packages, docs, AI harness and the demo/dndev apps already present, no major updates, then bun install"
|
|
9352
9356
|
}
|
|
9353
9357
|
],
|
|
9354
9358
|
loader: "../maintenance/bump.ts",
|
|
@@ -9366,7 +9370,7 @@ var init_command_registry = __esm({
|
|
|
9366
9370
|
// ---------------------------------------------------------------------------
|
|
9367
9371
|
{
|
|
9368
9372
|
name: "deploy [app]",
|
|
9369
|
-
description: "Deploy app",
|
|
9373
|
+
description: "Deploy app to production (UAT: uat <app>)",
|
|
9370
9374
|
category: "deployment",
|
|
9371
9375
|
public: true,
|
|
9372
9376
|
appCommand: true,
|
|
@@ -9384,10 +9388,6 @@ var init_command_registry = __esm({
|
|
|
9384
9388
|
flags: "--force",
|
|
9385
9389
|
description: "Delete deployed Firebase functions missing from the local source (default: off; the deploy aborts and names them)"
|
|
9386
9390
|
},
|
|
9387
|
-
{
|
|
9388
|
-
flags: "--staging",
|
|
9389
|
-
description: "Deploy to staging (uses .env.staging and staging credentials)"
|
|
9390
|
-
},
|
|
9391
9391
|
{
|
|
9392
9392
|
flags: "--scope <scope>",
|
|
9393
9393
|
description: "What to deploy: frontend, functions, rules, both or all. Implies --yes"
|
|
@@ -9405,43 +9405,31 @@ var init_command_registry = __esm({
|
|
|
9405
9405
|
exportName: "deploy"
|
|
9406
9406
|
},
|
|
9407
9407
|
{
|
|
9408
|
-
name: "
|
|
9409
|
-
description: "
|
|
9410
|
-
alias: "uat",
|
|
9408
|
+
name: "uat [app]",
|
|
9409
|
+
description: "Ship the code on this machine to UAT (Supabase + Vercel apps): apps/<app>/.env.uat, .dndev.uat.secrets; never production values; history-aware migrations, noindex",
|
|
9411
9410
|
category: "deployment",
|
|
9412
9411
|
public: true,
|
|
9413
9412
|
appCommand: true,
|
|
9414
9413
|
options: [
|
|
9415
|
-
{
|
|
9416
|
-
flags: "-p, --project <project>",
|
|
9417
|
-
description: "Project ID (overrides default)"
|
|
9418
|
-
},
|
|
9419
9414
|
{
|
|
9420
9415
|
flags: "--skip-build",
|
|
9421
9416
|
description: "Reuse existing builds (dist/, out/, .vercel/output, functions, edge .build/). Default: build"
|
|
9422
9417
|
},
|
|
9423
|
-
{
|
|
9424
|
-
flags: "--from-git",
|
|
9425
|
-
description: "Next.js on Vercel: let Vercel build from linked Git (default: local vercel build + upload)"
|
|
9426
|
-
},
|
|
9427
|
-
{
|
|
9428
|
-
flags: "--force",
|
|
9429
|
-
description: "Delete deployed Firebase functions missing from the local source (default: off; the deploy aborts and names them)"
|
|
9430
|
-
},
|
|
9431
9418
|
{
|
|
9432
9419
|
flags: "--scope <scope>",
|
|
9433
|
-
description: "What to deploy: frontend, functions,
|
|
9420
|
+
description: "What to deploy: frontend, functions, both or all. Implies --yes"
|
|
9434
9421
|
},
|
|
9435
9422
|
{
|
|
9436
9423
|
flags: "-y, --yes",
|
|
9437
9424
|
description: "Non-interactive: never prompt; a missing required value fails, naming its flag (also when stdin is not a TTY)"
|
|
9438
9425
|
},
|
|
9439
9426
|
{
|
|
9440
|
-
flags: "--
|
|
9441
|
-
description: "
|
|
9427
|
+
flags: "--refresh-data",
|
|
9428
|
+
description: "Copy production data into UAT (anonymized; storage incremental), then deploy; overwrites UAT data; asks for confirmation unless --yes"
|
|
9442
9429
|
}
|
|
9443
9430
|
],
|
|
9444
|
-
loader: "../apps/
|
|
9431
|
+
loader: "../apps/uat.ts",
|
|
9432
|
+
exportName: "uat"
|
|
9445
9433
|
},
|
|
9446
9434
|
{
|
|
9447
9435
|
name: "sync-secrets",
|
|
@@ -9511,10 +9499,15 @@ var init_command_registry = __esm({
|
|
|
9511
9499
|
},
|
|
9512
9500
|
{
|
|
9513
9501
|
name: "setup [provider]",
|
|
9514
|
-
description: "Set up infrastructure providers (firebase, supabase, vercel)",
|
|
9502
|
+
description: "Set up infrastructure providers (firebase, supabase, vercel) or the UAT environment (uat)",
|
|
9515
9503
|
category: "deployment",
|
|
9516
9504
|
public: true,
|
|
9517
|
-
options: [
|
|
9505
|
+
options: [
|
|
9506
|
+
{
|
|
9507
|
+
flags: "-y, --yes",
|
|
9508
|
+
description: "dn setup uat: create missing UAT resources without prompting"
|
|
9509
|
+
}
|
|
9510
|
+
],
|
|
9518
9511
|
loader: "../cli/setup/setup.ts",
|
|
9519
9512
|
exportName: "setup"
|
|
9520
9513
|
},
|
|
@@ -9528,10 +9521,6 @@ var init_command_registry = __esm({
|
|
|
9528
9521
|
{
|
|
9529
9522
|
flags: "--app <app>",
|
|
9530
9523
|
description: "App name (auto-detected if single app)"
|
|
9531
|
-
},
|
|
9532
|
-
{
|
|
9533
|
-
flags: "--staging",
|
|
9534
|
-
description: "Include staging workflow generation"
|
|
9535
9524
|
}
|
|
9536
9525
|
],
|
|
9537
9526
|
loader: "../scaffolding/setup-cicd.ts",
|
|
@@ -9703,11 +9692,19 @@ var init_command_registry = __esm({
|
|
|
9703
9692
|
},
|
|
9704
9693
|
{
|
|
9705
9694
|
flags: "--output-dir <dir>",
|
|
9706
|
-
description: "output directory for migrations (default: supabase/migrations)"
|
|
9695
|
+
description: "output directory for migrations (default: supabase/migrations of the app the command runs for: the nearest folder up with supabase/config.toml, or the only app with one under apps/; fails when none)"
|
|
9707
9696
|
},
|
|
9708
9697
|
{
|
|
9709
9698
|
flags: "--no-single-file",
|
|
9710
9699
|
description: "emit one migration file per entity"
|
|
9700
|
+
},
|
|
9701
|
+
{
|
|
9702
|
+
flags: "--only <collections...>",
|
|
9703
|
+
description: "emit only these collections into ONE new migration <version>_<first>[_and_more].sql (version: now, or the latest existing + 1 so it sorts last); never touches *_entity_tables.sql (for a live app adding a feature's entities; feature-owned collections accepted)"
|
|
9704
|
+
},
|
|
9705
|
+
{
|
|
9706
|
+
flags: "--app-dir <dir>",
|
|
9707
|
+
description: "app folder whose src/config/app.ts turns framework features on (their entities are included when installed; default: the app of the output dir)"
|
|
9711
9708
|
}
|
|
9712
9709
|
],
|
|
9713
9710
|
loader: "../generators/sql-generator.ts"
|