@donotdev/cli 0.0.32 → 0.0.33

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.
Files changed (36) hide show
  1. package/dependencies-matrix.json +10 -11
  2. package/dist/bin/commands/agent-setup.js +2 -2
  3. package/dist/bin/commands/build.js +2 -2
  4. package/dist/bin/commands/bump.js +2 -2
  5. package/dist/bin/commands/cacheout.js +2 -2
  6. package/dist/bin/commands/coach.js +2 -2
  7. package/dist/bin/commands/create-app.js +2 -2
  8. package/dist/bin/commands/create-project.js +2 -2
  9. package/dist/bin/commands/db.js +3699 -3
  10. package/dist/bin/commands/deploy.js +2 -2
  11. package/dist/bin/commands/dev.js +2 -2
  12. package/dist/bin/commands/doctor.js +2 -2
  13. package/dist/bin/commands/emu.js +2 -2
  14. package/dist/bin/commands/format.js +2 -2
  15. package/dist/bin/commands/get-demo.js +2 -2
  16. package/dist/bin/commands/make-admin.js +92 -92
  17. package/dist/bin/commands/preview.js +2 -2
  18. package/dist/bin/commands/seed.js +3699 -3
  19. package/dist/bin/commands/setup-cicd.js +2 -2
  20. package/dist/bin/commands/setup.js +2 -2
  21. package/dist/bin/commands/staging.js +2 -2
  22. package/dist/bin/commands/sync-secrets.js +2 -2
  23. package/dist/bin/commands/type-check.js +2 -2
  24. package/dist/bin/commands/wai.js +2 -2
  25. package/dist/bin/dndev.js +1 -1
  26. package/dist/bin/donotdev.js +1 -1
  27. package/dist/index.js +2 -2
  28. package/package.json +1 -1
  29. package/templates/app-next/src/app/ClientLayout.tsx.example +1 -0
  30. package/templates/app-next/src/locales/home_en.json.example +6 -6
  31. package/templates/app-vite/src/locales/home_en.json.example +6 -6
  32. package/templates/root-consumer/.claude/settings.json.example +6 -0
  33. package/templates/root-consumer/.claude/statusline.py.example +79 -0
  34. package/templates/root-consumer/guides/dndev/advanced/COOKIE_REFERENCE.md.example +252 -252
  35. package/templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example +174 -174
  36. package/templates/root-consumer/.claude/skills/build/SKILL.md.example +0 -50
@@ -163,7 +163,7 @@ var require_picocolors = __commonJS({
163
163
  }
164
164
  });
165
165
 
166
- // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
166
+ // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
167
167
  import { stdin as j, stdout as M } from "node:process";
168
168
  import * as g from "node:readline";
169
169
  import O from "node:readline";
@@ -279,7 +279,7 @@ function fD({ input: e2 = j, output: u2 = M, overwrite: t = true, hideCursor: F2
279
279
  }
280
280
  var import_sisteransi, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, d, oD, y, V, nD, G, _, z, K, aD, k, hD, lD, xD, B, AD, S, gD, vD, h, x, dD, A, OD, PD, J, LD;
281
281
  var init_dist = __esm({
282
- "node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
282
+ "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
283
283
  init_utils();
284
284
  import_sisteransi = __toESM(require_src(), 1);
285
285
  uD = DD();
@@ -167,7 +167,7 @@ var require_picocolors = __commonJS({
167
167
  }
168
168
  });
169
169
 
170
- // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
170
+ // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
171
171
  import { stdin as j, stdout as M } from "node:process";
172
172
  import * as g from "node:readline";
173
173
  import O from "node:readline";
@@ -283,7 +283,7 @@ function fD({ input: e2 = j, output: u2 = M, overwrite: t = true, hideCursor: F2
283
283
  }
284
284
  var import_sisteransi, import_picocolors, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, d, oD, y, V, nD, G, _, z, K, aD, k, hD, lD, xD, B, AD, S, gD, vD, h, x, dD, A, OD, PD, J, LD, RD;
285
285
  var init_dist = __esm({
286
- "node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
286
+ "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
287
287
  init_utils();
288
288
  import_sisteransi = __toESM(require_src(), 1);
289
289
  import_picocolors = __toESM(require_picocolors(), 1);
@@ -167,7 +167,7 @@ var require_picocolors = __commonJS({
167
167
  }
168
168
  });
169
169
 
170
- // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
170
+ // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
171
171
  import { stdin as j, stdout as M } from "node:process";
172
172
  import * as g from "node:readline";
173
173
  import O from "node:readline";
@@ -283,7 +283,7 @@ function fD({ input: e2 = j, output: u2 = M, overwrite: t = true, hideCursor: F2
283
283
  }
284
284
  var import_sisteransi, import_picocolors, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, d, oD, y, V, nD, G, _, z, K, aD, k, hD, lD, xD, B, AD, S, gD, vD, h, x, dD, A, OD, PD, J, LD, RD;
285
285
  var init_dist = __esm({
286
- "node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
286
+ "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
287
287
  init_utils();
288
288
  import_sisteransi = __toESM(require_src(), 1);
289
289
  import_picocolors = __toESM(require_picocolors(), 1);
@@ -163,7 +163,7 @@ var require_picocolors = __commonJS({
163
163
  }
164
164
  });
165
165
 
166
- // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
166
+ // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
167
167
  import { stdin as j, stdout as M } from "node:process";
168
168
  import O from "node:readline";
169
169
  import { Writable as X } from "node:stream";
@@ -257,7 +257,7 @@ function m(e2, u2) {
257
257
  }
258
258
  var import_sisteransi, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, d, oD, y, V, nD, G, _, z, K, aD, k, hD, lD, xD, B, AD, S, gD, vD, h, x, A, OD, PD, J, LD;
259
259
  var init_dist = __esm({
260
- "node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
260
+ "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
261
261
  init_utils();
262
262
  import_sisteransi = __toESM(require_src(), 1);
263
263
  uD = DD();
@@ -163,7 +163,7 @@ var require_picocolors = __commonJS({
163
163
  }
164
164
  });
165
165
 
166
- // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
166
+ // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
167
167
  import { stdin as j, stdout as M } from "node:process";
168
168
  import * as g from "node:readline";
169
169
  import { Writable as X } from "node:stream";
@@ -231,7 +231,7 @@ function fD({ input: e2 = j, output: u2 = M, overwrite: t = true, hideCursor: F2
231
231
  }
232
232
  var import_sisteransi, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, nD, _, xD, B, AD, A;
233
233
  var init_dist = __esm({
234
- "node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
234
+ "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
235
235
  init_utils();
236
236
  import_sisteransi = __toESM(require_src(), 1);
237
237
  uD = DD();
@@ -163,7 +163,7 @@ var require_picocolors = __commonJS({
163
163
  }
164
164
  });
165
165
 
166
- // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
166
+ // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
167
167
  import { stdin as j, stdout as M } from "node:process";
168
168
  import { Writable as X } from "node:stream";
169
169
  function DD({ onlyFirst: e2 = false } = {}) {
@@ -204,7 +204,7 @@ function rD() {
204
204
  }
205
205
  var import_sisteransi, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, nD, _, xD, B, AD, A;
206
206
  var init_dist = __esm({
207
- "node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
207
+ "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
208
208
  init_utils();
209
209
  import_sisteransi = __toESM(require_src(), 1);
210
210
  uD = DD();
package/dist/bin/dndev.js CHANGED
@@ -950,7 +950,7 @@ function registerCommand(program2, def, action) {
950
950
  }
951
951
 
952
952
  // packages/cli/src/bin/dndev.mjs
953
- var CLI_VERSION = true ? "0.0.32" : "0.0.0";
953
+ var CLI_VERSION = true ? "0.0.33" : "0.0.0";
954
954
  var args = process.argv.slice(2);
955
955
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
956
956
  console.log(CLI_VERSION);
@@ -950,7 +950,7 @@ function registerCommand(program2, def, action) {
950
950
  }
951
951
 
952
952
  // packages/cli/src/bin/dndev.mjs
953
- var CLI_VERSION = true ? "0.0.32" : "0.0.0";
953
+ var CLI_VERSION = true ? "0.0.28" : "0.0.0";
954
954
  var args = process.argv.slice(2);
955
955
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
956
956
  console.log(CLI_VERSION);
package/dist/index.js CHANGED
@@ -167,7 +167,7 @@ var require_picocolors = __commonJS({
167
167
  }
168
168
  });
169
169
 
170
- // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
170
+ // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
171
171
  import { stdin as j, stdout as M } from "node:process";
172
172
  import * as g from "node:readline";
173
173
  import O from "node:readline";
@@ -283,7 +283,7 @@ function fD({ input: e2 = j, output: u2 = M, overwrite: t = true, hideCursor: F2
283
283
  }
284
284
  var import_sisteransi, import_picocolors, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, d, oD, y, V, nD, G, _, z, K, aD, k, hD, lD, xD, B, AD, S, gD, vD, h, x, dD, A, kD, $D, H, SD, OD, PD, J, LD, RD;
285
285
  var init_dist = __esm({
286
- "node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
286
+ "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
287
287
  init_utils();
288
288
  import_sisteransi = __toESM(require_src(), 1);
289
289
  import_picocolors = __toESM(require_picocolors(), 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donotdev/cli",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "description": "Command-line interface for DoNotDev Framework",
5
5
  "type": "module",
6
6
  "private": false,
@@ -9,6 +9,7 @@ import '../config/dndev-config-i18n.js';
9
9
  import '../config/dndev-config-pwa.js';
10
10
  import '../config/dndev-config-asset.js';
11
11
  import '../config/dndev-config-seo.js';
12
+ import '../config/dndev-config-env.js';
12
13
 
13
14
  import { NextJsAppProviders } from '@donotdev/ui/next';
14
15
 
@@ -1,6 +1,6 @@
1
- {
2
- "hero": {
3
- "title": "Welcome to DnDev",
4
- "subtitle": "Your app is ready. Explore the framework patterns below."
5
- }
6
- }
1
+ {
2
+ "hero": {
3
+ "title": "Welcome to DnDev",
4
+ "subtitle": "Your app is ready. Explore the framework patterns below."
5
+ }
6
+ }
@@ -1,6 +1,6 @@
1
- {
2
- "hero": {
3
- "title": "Welcome to DnDev",
4
- "subtitle": "Your app is ready. Explore the framework patterns below."
5
- }
6
- }
1
+ {
2
+ "hero": {
3
+ "title": "Welcome to DnDev",
4
+ "subtitle": "Your app is ready. Explore the framework patterns below."
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "statusLine": {
3
+ "type": "command",
4
+ "command": "python3 .claude/statusline.py"
5
+ }
6
+ }
@@ -0,0 +1,79 @@
1
+ #!/usr/bin/env python3
2
+ """Claude Code status line — zero dependencies."""
3
+ import json, sys, os
4
+
5
+ data = json.load(sys.stdin)
6
+
7
+ # --- Parse ---
8
+ model = data.get("model", {}).get("display_name", "?")
9
+ cwd = data.get("workspace", {}).get("current_dir") or data.get("cwd", "?")
10
+ pct = data.get("context_window", {}).get("used_percentage")
11
+ usage = data.get("context_window", {}).get("current_usage", {})
12
+ in_tok = usage.get("input_tokens")
13
+ out_tok = usage.get("output_tokens")
14
+ cache_tok = usage.get("cache_read_input_tokens", 0)
15
+
16
+ # --- Colors ---
17
+ R = "\033[0m"
18
+ BOLD = "\033[1m"
19
+ DIM = "\033[2m"
20
+ C_MODEL = "\033[38;5;75m"
21
+ C_GREEN = "\033[38;5;71m"
22
+ C_ORANGE = "\033[38;5;214m"
23
+ C_RED = "\033[38;5;196m"
24
+ C_EMPTY = "\033[38;5;238m"
25
+ C_TOK = "\033[38;5;180m"
26
+ C_BRANCH = "\033[38;5;183m"
27
+ C_CWD = "\033[38;5;251m"
28
+ C_SEP = "\033[38;5;240m"
29
+ SEP = f"{C_SEP} | {R}"
30
+
31
+ def fmt(n):
32
+ if n is None: return "0"
33
+ return f"{n/1000:.1f}k" if n >= 1000 else str(n)
34
+
35
+ # --- Model ---
36
+ parts = [f"{C_MODEL}{BOLD}{model}{R}"]
37
+
38
+ # --- Context bar ---
39
+ if pct is not None:
40
+ W = 20
41
+ filled = int(pct * W / 100)
42
+ empty = W - filled
43
+ c = C_RED if pct >= 90 else C_ORANGE if pct >= 70 else C_GREEN
44
+ bar = f"{c}[{'█' * filled}{C_EMPTY}{'░' * empty}{c}]{R} {c}{pct:.0f}%{R}"
45
+ parts.append(bar)
46
+
47
+ # --- Tokens ---
48
+ if in_tok is not None:
49
+ parts.append(f"{C_TOK}in:{fmt(in_tok)} out:{fmt(out_tok)} cache:{fmt(cache_tok)}{R}")
50
+ else:
51
+ parts.append(f"{DIM}{C_TOK}no msgs{R}")
52
+
53
+ # --- Git branch ---
54
+ try:
55
+ import subprocess
56
+ branch = subprocess.run(
57
+ ["git", "-C", cwd, "symbolic-ref", "--short", "HEAD"],
58
+ capture_output=True, text=True, timeout=2,
59
+ env={**os.environ, "GIT_OPTIONAL_LOCKS": "0"}
60
+ )
61
+ b = branch.stdout.strip()
62
+ if not b:
63
+ branch = subprocess.run(
64
+ ["git", "-C", cwd, "rev-parse", "--short", "HEAD"],
65
+ capture_output=True, text=True, timeout=2,
66
+ env={**os.environ, "GIT_OPTIONAL_LOCKS": "0"}
67
+ )
68
+ b = branch.stdout.strip()
69
+ if b:
70
+ parts.append(f"{C_BRANCH} {b}{R}")
71
+ except Exception:
72
+ pass
73
+
74
+ # --- CWD ---
75
+ home = os.path.expanduser("~")
76
+ display = cwd.replace(home, "~", 1) if cwd.startswith(home) else cwd
77
+ parts.append(f"{C_CWD}{display}{R}")
78
+
79
+ print(SEP.join(parts))