@donotdev/cli 0.0.35 → 0.0.37

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 (33) hide show
  1. package/dependencies-matrix.json +7 -7
  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 +12 -3
  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 +3 -3699
  10. package/dist/bin/commands/deploy.js +34 -5
  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 +3 -3699
  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 +34 -5
  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 +34 -5
  28. package/package.json +1 -1
  29. package/templates/app-next/src/locales/home_en.json.example +6 -6
  30. package/templates/app-vite/src/locales/home_en.json.example +6 -6
  31. package/templates/root-consumer/.claude/skills/build/SKILL.md.example +50 -0
  32. package/templates/root-consumer/guides/dndev/advanced/COOKIE_REFERENCE.md.example +252 -252
  33. package/templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example +174 -174
@@ -163,7 +163,7 @@ var require_picocolors = __commonJS({
163
163
  }
164
164
  });
165
165
 
166
- // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
166
+ // node_modules/.bun/@clack+core@0.5.0/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+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
282
+ "node_modules/.bun/@clack+core@0.5.0/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+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
170
+ // node_modules/.bun/@clack+core@0.5.0/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+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
286
+ "node_modules/.bun/@clack+core@0.5.0/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+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
170
+ // node_modules/.bun/@clack+core@0.5.0/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+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
286
+ "node_modules/.bun/@clack+core@0.5.0/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);
@@ -17623,9 +17623,38 @@ function loadVercelConfig(appDir) {
17623
17623
  const raw = readSync(configPath);
17624
17624
  const config = JSON.parse(raw);
17625
17625
  const result = {};
17626
- if (config.rewrites) result.rewrites = config.rewrites;
17627
- if (config.redirects) result.redirects = config.redirects;
17628
- if (config.headers) result.headers = config.headers;
17626
+ const routes = [];
17627
+ if (Array.isArray(config.headers)) {
17628
+ for (const h2 of config.headers) {
17629
+ const headersMap = {};
17630
+ for (const entry of h2.headers ?? []) {
17631
+ headersMap[entry.key] = entry.value;
17632
+ }
17633
+ routes.push({
17634
+ src: h2.source,
17635
+ headers: headersMap,
17636
+ continue: true
17637
+ });
17638
+ }
17639
+ }
17640
+ if (Array.isArray(config.redirects)) {
17641
+ for (const r2 of config.redirects) {
17642
+ routes.push({
17643
+ src: r2.source,
17644
+ dest: r2.destination,
17645
+ status: r2.statusCode ?? (r2.permanent ? 308 : 307)
17646
+ });
17647
+ }
17648
+ }
17649
+ if (Array.isArray(config.rewrites)) {
17650
+ for (const rw of config.rewrites) {
17651
+ routes.push({
17652
+ src: rw.source,
17653
+ dest: rw.destination
17654
+ });
17655
+ }
17656
+ }
17657
+ if (routes.length > 0) result.routes = routes;
17629
17658
  if (config.cleanUrls != null) result.cleanUrls = config.cleanUrls;
17630
17659
  if (config.trailingSlash != null) result.trailingSlash = config.trailingSlash;
17631
17660
  return result;
@@ -163,7 +163,7 @@ var require_picocolors = __commonJS({
163
163
  }
164
164
  });
165
165
 
166
- // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
166
+ // node_modules/.bun/@clack+core@0.5.0/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+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
260
+ "node_modules/.bun/@clack+core@0.5.0/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+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
166
+ // node_modules/.bun/@clack+core@0.5.0/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+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
234
+ "node_modules/.bun/@clack+core@0.5.0/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+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
166
+ // node_modules/.bun/@clack+core@0.5.0/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+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
207
+ "node_modules/.bun/@clack+core@0.5.0/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.35" : "0.0.0";
953
+ var CLI_VERSION = true ? "0.0.37" : "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.35" : "0.0.0";
953
+ var CLI_VERSION = true ? "0.0.37" : "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+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
170
+ // node_modules/.bun/@clack+core@0.5.0/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+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
286
+ "node_modules/.bun/@clack+core@0.5.0/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);
@@ -19817,9 +19817,38 @@ function loadVercelConfig(appDir) {
19817
19817
  const raw = readSync(configPath);
19818
19818
  const config = JSON.parse(raw);
19819
19819
  const result = {};
19820
- if (config.rewrites) result.rewrites = config.rewrites;
19821
- if (config.redirects) result.redirects = config.redirects;
19822
- if (config.headers) result.headers = config.headers;
19820
+ const routes = [];
19821
+ if (Array.isArray(config.headers)) {
19822
+ for (const h2 of config.headers) {
19823
+ const headersMap = {};
19824
+ for (const entry of h2.headers ?? []) {
19825
+ headersMap[entry.key] = entry.value;
19826
+ }
19827
+ routes.push({
19828
+ src: h2.source,
19829
+ headers: headersMap,
19830
+ continue: true
19831
+ });
19832
+ }
19833
+ }
19834
+ if (Array.isArray(config.redirects)) {
19835
+ for (const r2 of config.redirects) {
19836
+ routes.push({
19837
+ src: r2.source,
19838
+ dest: r2.destination,
19839
+ status: r2.statusCode ?? (r2.permanent ? 308 : 307)
19840
+ });
19841
+ }
19842
+ }
19843
+ if (Array.isArray(config.rewrites)) {
19844
+ for (const rw of config.rewrites) {
19845
+ routes.push({
19846
+ src: rw.source,
19847
+ dest: rw.destination
19848
+ });
19849
+ }
19850
+ }
19851
+ if (routes.length > 0) result.routes = routes;
19823
19852
  if (config.cleanUrls != null) result.cleanUrls = config.cleanUrls;
19824
19853
  if (config.trailingSlash != null) result.trailingSlash = config.trailingSlash;
19825
19854
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donotdev/cli",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "description": "Command-line interface for DoNotDev Framework",
5
5
  "type": "module",
6
6
  "private": false,
@@ -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,50 @@
1
+ ---
2
+ name: build
3
+ description: Implement features using framework defaults. Use AFTER /design. Activates WAI-WAY Phase 3 COMPOSE.
4
+ argument-hint: [requirement or LLD reference]
5
+ disable-model-invocation: true
6
+ ---
7
+
8
+ # Build — Compose the App
9
+
10
+ **WORKFLOW:** `/brainstorm` → `/design` → `/build` → `/polish`
11
+
12
+ ## Step 0 — Start Phase (MANDATORY)
13
+
14
+ ```
15
+ start_phase(3)
16
+ ```
17
+ Do NOT write code without this call.
18
+
19
+ ## Step 1 — Prepare
20
+
21
+ **Input:** $ARGUMENTS (LLD from `/design` or direct requirement)
22
+
23
+ 1. Read LLD if it exists
24
+ 2. **STOP before every `@donotdev` import** → call `lookup_symbol({ symbol: "Name" })`. No exceptions. Do NOT guess props, hooks, or APIs.
25
+ 3. Import convention: always `@donotdev/<package>` — never sub-paths. Only exceptions: `@donotdev/core/server`, `@donotdev/core/vite`, `@donotdev/core/next`, `@donotdev/core/functions`.
26
+
27
+ ## Step 2 — Build in phases
28
+
29
+ 1. **Entities** — create entity files
30
+ 2. **Routes** — create route config
31
+ 3. **Auth** — if needed
32
+ 4. **Pages** — using framework defaults only (no styling, no customization)
33
+ 5. **Custom components** — if any
34
+ 6. **Integration** — wire everything together
35
+
36
+ Rules:
37
+ - Framework defaults ONLY — styling deferred to `/polish`
38
+ - Hardcode all strings — i18n deferred to `/polish`
39
+ - Run `dndev tc` after every file change — fix errors immediately
40
+ - Validate each phase before proceeding
41
+
42
+ ## Step 3 — Complete Phase
43
+
44
+ When all pages built and `dndev tc` passes:
45
+
46
+ ```
47
+ complete_phase({ files: ["src/pages/...all files..."], summary: "N pages composed, all type-checking" })
48
+ ```
49
+
50
+ Wait for user `approve_phase()` → then proceed to `/polish`.