@donotdev/cli 0.0.32 → 0.0.34
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 +10 -11
- package/dist/bin/commands/agent-setup.js +2 -2
- package/dist/bin/commands/build.js +2 -2
- package/dist/bin/commands/bump.js +2 -2
- package/dist/bin/commands/cacheout.js +12 -9
- package/dist/bin/commands/coach.js +2 -2
- package/dist/bin/commands/create-app.js +2 -2
- package/dist/bin/commands/create-project.js +2 -2
- package/dist/bin/commands/db.js +3699 -3
- package/dist/bin/commands/deploy.js +2 -2
- package/dist/bin/commands/dev.js +2 -2
- package/dist/bin/commands/doctor.js +2 -2
- package/dist/bin/commands/emu.js +2 -2
- package/dist/bin/commands/format.js +2 -2
- package/dist/bin/commands/get-demo.js +2 -2
- package/dist/bin/commands/make-admin.js +92 -92
- package/dist/bin/commands/preview.js +2 -2
- package/dist/bin/commands/seed.js +3699 -3
- package/dist/bin/commands/setup-cicd.js +2 -2
- package/dist/bin/commands/setup.js +2 -2
- package/dist/bin/commands/staging.js +2 -2
- package/dist/bin/commands/sync-secrets.js +2 -2
- package/dist/bin/commands/type-check.js +2 -2
- package/dist/bin/commands/wai.js +2 -2
- package/dist/bin/dndev.js +1 -1
- package/dist/bin/donotdev.js +1 -1
- package/dist/index.js +12 -9
- package/package.json +1 -1
- package/templates/app-next/src/app/ClientLayout.tsx.example +1 -0
- package/templates/app-next/src/locales/home_en.json.example +6 -6
- package/templates/app-vite/src/locales/home_en.json.example +6 -6
- package/templates/root-consumer/.claude/settings.json.example +6 -0
- package/templates/root-consumer/.claude/statusline.py.example +79 -0
- package/templates/root-consumer/.gitignore.example +6 -1
- package/templates/root-consumer/guides/dndev/advanced/COOKIE_REFERENCE.md.example +252 -252
- package/templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example +174 -174
- 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+
|
|
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+
|
|
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+
|
|
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+
|
|
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+
|
|
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+
|
|
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+
|
|
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+
|
|
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+
|
|
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+
|
|
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();
|
package/dist/bin/commands/wai.js
CHANGED
|
@@ -163,7 +163,7 @@ var require_picocolors = __commonJS({
|
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
165
|
|
|
166
|
-
// node_modules/.bun/@clack+
|
|
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+
|
|
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.
|
|
953
|
+
var CLI_VERSION = true ? "0.0.34" : "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/bin/donotdev.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.
|
|
953
|
+
var CLI_VERSION = true ? "0.0.34" : "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+
|
|
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+
|
|
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);
|
|
@@ -22222,13 +22222,16 @@ async function findCacheItems(targetDir, verbose) {
|
|
|
22222
22222
|
check(joinPath(targetDir, "node_modules", ".vite"));
|
|
22223
22223
|
check(joinPath(targetDir, "tsconfig.tsbuildinfo"));
|
|
22224
22224
|
check(joinPath(targetDir, "tsconfig.build.tsbuildinfo"));
|
|
22225
|
-
const
|
|
22226
|
-
|
|
22227
|
-
|
|
22228
|
-
|
|
22229
|
-
|
|
22230
|
-
|
|
22231
|
-
|
|
22225
|
+
const generatedFiles = await glob(
|
|
22226
|
+
["**/*.generated.log", "**/*.generated.ts"],
|
|
22227
|
+
{
|
|
22228
|
+
cwd: targetDir,
|
|
22229
|
+
absolute: true,
|
|
22230
|
+
onlyFiles: true,
|
|
22231
|
+
ignore: ["**/.git/**", "**/node_modules/**"]
|
|
22232
|
+
}
|
|
22233
|
+
);
|
|
22234
|
+
for (const file of generatedFiles) {
|
|
22232
22235
|
if (!matches.has(file)) {
|
|
22233
22236
|
matches.add(file);
|
|
22234
22237
|
if (verbose) {
|
package/package.json
CHANGED
|
@@ -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,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))
|
|
@@ -58,6 +58,10 @@ Desktop.ini
|
|
|
58
58
|
*.txt
|
|
59
59
|
*.ps1
|
|
60
60
|
|
|
61
|
+
# DnDev discovery outputs (regenerated at build time)
|
|
62
|
+
*.generated.ts
|
|
63
|
+
*.generated.log
|
|
64
|
+
|
|
61
65
|
# Cache
|
|
62
66
|
.cache/
|
|
63
67
|
.firebase/
|
|
@@ -70,11 +74,12 @@ service-account-key.staging.json
|
|
|
70
74
|
**/service-account-key.json
|
|
71
75
|
**/service-account-key.staging.json
|
|
72
76
|
|
|
73
|
-
# Lock files
|
|
77
|
+
# Lock files
|
|
74
78
|
package-lock.json
|
|
75
79
|
yarn.lock
|
|
76
80
|
pnpm-lock.yaml
|
|
77
81
|
bun.lockb
|
|
82
|
+
bun.lock
|
|
78
83
|
|
|
79
84
|
# Temporary files
|
|
80
85
|
.temp
|