@donotdev/cli 0.0.37 → 0.1.1

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 (119) hide show
  1. package/LICENSE.md +21 -48
  2. package/dependencies-matrix.json +108 -58
  3. package/dist/bin/commands/agent-setup.js +7196 -123
  4. package/dist/bin/commands/build.js +3341 -207
  5. package/dist/bin/commands/bump.js +268 -24
  6. package/dist/bin/commands/cacheout.js +262 -13
  7. package/dist/bin/commands/coach.js +365 -61
  8. package/dist/bin/commands/create-app.js +261 -14
  9. package/dist/bin/commands/create-project.js +270 -15
  10. package/dist/bin/commands/db.js +10743 -2346
  11. package/dist/bin/commands/deploy.js +4202 -776
  12. package/dist/bin/commands/dev.js +353 -38
  13. package/dist/bin/commands/doctor.js +412 -108
  14. package/dist/bin/commands/emu.js +392 -57
  15. package/dist/bin/commands/format.js +250 -15
  16. package/dist/bin/commands/get-demo.js +261 -14
  17. package/dist/bin/commands/make-admin.js +10022 -1552
  18. package/dist/bin/commands/preview.js +353 -38
  19. package/dist/bin/commands/seed.js +10743 -2346
  20. package/dist/bin/commands/setup-cicd.js +456 -133
  21. package/dist/bin/commands/setup.js +428 -125
  22. package/dist/bin/commands/staging.js +4202 -776
  23. package/dist/bin/commands/sync-secrets.js +250 -14
  24. package/dist/bin/commands/type-check.js +249 -13
  25. package/dist/bin/commands/wai.js +249 -13
  26. package/dist/bin/dndev.js +33 -4
  27. package/dist/bin/donotdev.js +33 -4
  28. package/dist/index.js +4278 -856
  29. package/{templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example → guidelines/VERSION_CONTROL.md} +7 -11
  30. package/package.json +3 -2
  31. package/templates/app-demo/src/themes.css.example +21 -0
  32. package/templates/app-dndev/index.html.example +0 -3
  33. package/templates/app-dndev/src/themes.css.example +21 -0
  34. package/templates/app-next/src/app/layout.tsx.example +13 -4
  35. package/templates/app-next/src/themes.css.example +21 -0
  36. package/templates/app-vite/csp.example.json +44 -0
  37. package/templates/app-vite/index.html.example +0 -3
  38. package/templates/app-vite/src/themes.css.example +21 -0
  39. package/templates/functions-supabase/supabase/functions/.env.example +12 -0
  40. package/templates/functions-supabase/supabase/functions/disconnect-oauth/index.ts.example +7 -0
  41. package/templates/functions-supabase/supabase/functions/exchange-token/index.ts.example +7 -0
  42. package/templates/functions-supabase/supabase/functions/get-connections/index.ts.example +7 -0
  43. package/templates/functions-supabase/supabase/functions/refresh-token/index.ts.example +7 -0
  44. package/templates/functions-supabase/supabase/migrations/20250101000000_idempotency.sql +3 -0
  45. package/templates/functions-supabase/supabase/migrations/20250101000001_rate_limits.sql +3 -0
  46. package/templates/functions-supabase/supabase/migrations/20250101000003_operation_metrics.sql +3 -0
  47. package/templates/preset-admin/src/pages/DashboardPage.tsx.example +189 -0
  48. package/templates/preset-admin/src/pages/EntityPage.tsx.example +84 -0
  49. package/templates/preset-admin/src/pages/ReportsPage.tsx.example +243 -0
  50. package/templates/preset-admin/src/pages/SettingsPage.tsx.example +283 -0
  51. package/templates/preset-admin/src/pages/UsersPage.tsx.example +128 -0
  52. package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +167 -0
  53. package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +187 -0
  54. package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +244 -0
  55. package/templates/preset-ecommerce/src/pages/HomePage.tsx.example +268 -0
  56. package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +228 -0
  57. package/templates/preset-landing/src/pages/AboutPage.tsx.example +237 -0
  58. package/templates/preset-landing/src/pages/ContactPage.tsx.example +192 -0
  59. package/templates/preset-landing/src/pages/HomePage.tsx.example +399 -0
  60. package/templates/preset-saas/src/pages/DashboardPage.tsx.example +195 -0
  61. package/templates/preset-saas/src/pages/HomePage.tsx.example +270 -0
  62. package/templates/preset-saas/src/pages/PricingPage.tsx.example +204 -0
  63. package/templates/preset-saas/src/pages/ProfilePage.tsx.example +191 -0
  64. package/templates/preset-saas/src/pages/SettingsPage.tsx.example +292 -0
  65. package/templates/root-consumer/.claude/hooks/framework-compliance.sh.example +56 -0
  66. package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +61 -0
  67. package/templates/root-consumer/.claude/hooks/guard-files.sh.example +46 -0
  68. package/templates/root-consumer/.claude/hooks/guard-mcp.sh.example +91 -0
  69. package/templates/root-consumer/.claude/hooks/guard-secrets.sh.example +67 -0
  70. package/templates/root-consumer/.claude/hooks/guard-write.sh.example +89 -0
  71. package/templates/root-consumer/.claude/hooks/session-start.sh.example +50 -0
  72. package/templates/root-consumer/.claude/hooks/track-mcp-lookup.sh.example +20 -0
  73. package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +18 -0
  74. package/templates/root-consumer/.claude/rules/consumer-ux.md.example +32 -0
  75. package/templates/root-consumer/.claude/rules/definition-of-done.md.example +32 -0
  76. package/templates/root-consumer/.claude/rules/framework.md.example +39 -0
  77. package/templates/root-consumer/.claude/rules/git.md.example +14 -0
  78. package/templates/root-consumer/.claude/rules/security.md.example +13 -0
  79. package/templates/root-consumer/.claude/settings.json.example +123 -1
  80. package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +16 -0
  81. package/templates/root-consumer/.claude/skills/build/SKILL.md.example +103 -25
  82. package/templates/root-consumer/.claude/skills/design/SKILL.md.example +17 -0
  83. package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +33 -16
  84. package/templates/root-consumer/.claude/skills/polish/SKILL.md.example +50 -37
  85. package/templates/root-consumer/AI.md.example +2 -2
  86. package/templates/root-consumer/CLAUDE.md.example +33 -1
  87. package/templates/root-consumer/guides/dndev/INDEX.md.example +23 -27
  88. package/templates/root-consumer/guides/dndev/SETUP_AUTH.md.example +3 -2
  89. package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +12 -6
  90. package/templates/root-consumer/guides/dndev/SETUP_SUPABASE.md.example +50 -3
  91. package/templates/root-consumer/guides/wai-way/blueprints/3_compose.md.example +13 -15
  92. package/templates/app-demo/public/manifest.json.example +0 -10
  93. package/templates/app-dndev/public/manifest.json.example +0 -10
  94. package/templates/root-consumer/.claude/commands/brainstorm.md.example +0 -147
  95. package/templates/root-consumer/.claude/commands/build.md.example +0 -131
  96. package/templates/root-consumer/.claude/commands/design.md.example +0 -153
  97. package/templates/root-consumer/.claude/commands/grill.md.example +0 -108
  98. package/templates/root-consumer/.claude/commands/polish.md.example +0 -146
  99. package/templates/root-consumer/.claude/commands/techdebt.md.example +0 -28
  100. package/templates/root-consumer/guides/dndev/COMPONENTS_ATOMIC.md.example +0 -180
  101. package/templates/root-consumer/guides/dndev/COMPONENTS_CRUD.md.example +0 -234
  102. package/templates/root-consumer/guides/dndev/COMPONENTS_UI.md.example +0 -136
  103. package/templates/root-consumer/guides/dndev/COMPONENT_API.md.example +0 -195
  104. package/templates/root-consumer/guides/dndev/ENV_SETUP.md.example +0 -219
  105. package/templates/root-consumer/guides/dndev/GOTCHAS.md.example +0 -197
  106. package/templates/root-consumer/guides/dndev/SETUP_APP_CONFIG.md.example +0 -132
  107. package/templates/root-consumer/guides/dndev/SETUP_BLOG.md.example +0 -280
  108. package/templates/root-consumer/guides/dndev/SETUP_CICD.md.example +0 -115
  109. package/templates/root-consumer/guides/dndev/SETUP_CRUD.md.example +0 -334
  110. package/templates/root-consumer/guides/dndev/SETUP_FUNCTIONS.md.example +0 -9
  111. package/templates/root-consumer/guides/dndev/SETUP_I18N.md.example +0 -233
  112. package/templates/root-consumer/guides/dndev/SETUP_LAYOUTS.md.example +0 -158
  113. package/templates/root-consumer/guides/dndev/SETUP_PAGES.md.example +0 -205
  114. package/templates/root-consumer/guides/dndev/SETUP_PWA.md.example +0 -213
  115. package/templates/root-consumer/guides/dndev/SETUP_TESTING.md.example +0 -184
  116. package/templates/root-consumer/guides/dndev/SETUP_THEMES.md.example +0 -111
  117. package/templates/root-consumer/guides/dndev/SETUP_VERCEL.md.example +0 -260
  118. package/templates/root-consumer/guides/dndev/USE_ROUTING.md.example +0 -499
  119. package/templates/root-consumer/guides/dndev/essences_reference.css.example +0 -288
@@ -1864,14 +1864,15 @@ var require_braces = __commonJS({
1864
1864
  }
1865
1865
  });
1866
1866
 
1867
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
1867
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js
1868
1868
  var require_constants2 = __commonJS({
1869
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module) {
1869
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js"(exports, module) {
1870
1870
  "use strict";
1871
1871
  init_utils();
1872
1872
  var path = __require("path");
1873
1873
  var WIN_SLASH = "\\\\/";
1874
1874
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
1875
+ var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
1875
1876
  var DOT_LITERAL = "\\.";
1876
1877
  var PLUS_LITERAL = "\\+";
1877
1878
  var QMARK_LITERAL = "\\?";
@@ -1919,6 +1920,7 @@ var require_constants2 = __commonJS({
1919
1920
  END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
1920
1921
  };
1921
1922
  var POSIX_REGEX_SOURCE = {
1923
+ __proto__: null,
1922
1924
  alnum: "a-zA-Z0-9",
1923
1925
  alpha: "a-zA-Z",
1924
1926
  ascii: "\\x00-\\x7F",
@@ -1935,6 +1937,7 @@ var require_constants2 = __commonJS({
1935
1937
  xdigit: "A-Fa-f0-9"
1936
1938
  };
1937
1939
  module.exports = {
1940
+ DEFAULT_MAX_EXTGLOB_RECURSION,
1938
1941
  MAX_LENGTH: 1024 * 64,
1939
1942
  POSIX_REGEX_SOURCE,
1940
1943
  // regular expressions
@@ -1946,6 +1949,7 @@ var require_constants2 = __commonJS({
1946
1949
  REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
1947
1950
  // Replace globs with equivalent patterns to reduce parsing time.
1948
1951
  REPLACEMENTS: {
1952
+ __proto__: null,
1949
1953
  "***": "*",
1950
1954
  "**/**": "**",
1951
1955
  "**/**/**": "**"
@@ -2062,9 +2066,9 @@ var require_constants2 = __commonJS({
2062
2066
  }
2063
2067
  });
2064
2068
 
2065
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
2069
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js
2066
2070
  var require_utils2 = __commonJS({
2067
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
2071
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js"(exports) {
2068
2072
  "use strict";
2069
2073
  init_utils();
2070
2074
  var path = __require("path");
@@ -2124,9 +2128,9 @@ var require_utils2 = __commonJS({
2124
2128
  }
2125
2129
  });
2126
2130
 
2127
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/scan.js
2131
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js
2128
2132
  var require_scan = __commonJS({
2129
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(exports, module) {
2133
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js"(exports, module) {
2130
2134
  "use strict";
2131
2135
  init_utils();
2132
2136
  var utils = require_utils2();
@@ -2455,9 +2459,9 @@ var require_scan = __commonJS({
2455
2459
  }
2456
2460
  });
2457
2461
 
2458
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
2462
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js
2459
2463
  var require_parse2 = __commonJS({
2460
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports, module) {
2464
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js"(exports, module) {
2461
2465
  "use strict";
2462
2466
  init_utils();
2463
2467
  var constants2 = require_constants2();
@@ -2485,6 +2489,213 @@ var require_parse2 = __commonJS({
2485
2489
  var syntaxError = (type, char) => {
2486
2490
  return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
2487
2491
  };
2492
+ var splitTopLevel = (input) => {
2493
+ const parts = [];
2494
+ let bracket = 0;
2495
+ let paren = 0;
2496
+ let quote = 0;
2497
+ let value = "";
2498
+ let escaped = false;
2499
+ for (const ch of input) {
2500
+ if (escaped === true) {
2501
+ value += ch;
2502
+ escaped = false;
2503
+ continue;
2504
+ }
2505
+ if (ch === "\\") {
2506
+ value += ch;
2507
+ escaped = true;
2508
+ continue;
2509
+ }
2510
+ if (ch === '"') {
2511
+ quote = quote === 1 ? 0 : 1;
2512
+ value += ch;
2513
+ continue;
2514
+ }
2515
+ if (quote === 0) {
2516
+ if (ch === "[") {
2517
+ bracket++;
2518
+ } else if (ch === "]" && bracket > 0) {
2519
+ bracket--;
2520
+ } else if (bracket === 0) {
2521
+ if (ch === "(") {
2522
+ paren++;
2523
+ } else if (ch === ")" && paren > 0) {
2524
+ paren--;
2525
+ } else if (ch === "|" && paren === 0) {
2526
+ parts.push(value);
2527
+ value = "";
2528
+ continue;
2529
+ }
2530
+ }
2531
+ }
2532
+ value += ch;
2533
+ }
2534
+ parts.push(value);
2535
+ return parts;
2536
+ };
2537
+ var isPlainBranch = (branch) => {
2538
+ let escaped = false;
2539
+ for (const ch of branch) {
2540
+ if (escaped === true) {
2541
+ escaped = false;
2542
+ continue;
2543
+ }
2544
+ if (ch === "\\") {
2545
+ escaped = true;
2546
+ continue;
2547
+ }
2548
+ if (/[?*+@!()[\]{}]/.test(ch)) {
2549
+ return false;
2550
+ }
2551
+ }
2552
+ return true;
2553
+ };
2554
+ var normalizeSimpleBranch = (branch) => {
2555
+ let value = branch.trim();
2556
+ let changed = true;
2557
+ while (changed === true) {
2558
+ changed = false;
2559
+ if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
2560
+ value = value.slice(2, -1);
2561
+ changed = true;
2562
+ }
2563
+ }
2564
+ if (!isPlainBranch(value)) {
2565
+ return;
2566
+ }
2567
+ return value.replace(/\\(.)/g, "$1");
2568
+ };
2569
+ var hasRepeatedCharPrefixOverlap = (branches) => {
2570
+ const values = branches.map(normalizeSimpleBranch).filter(Boolean);
2571
+ for (let i = 0; i < values.length; i++) {
2572
+ for (let j2 = i + 1; j2 < values.length; j2++) {
2573
+ const a = values[i];
2574
+ const b2 = values[j2];
2575
+ const char = a[0];
2576
+ if (!char || a !== char.repeat(a.length) || b2 !== char.repeat(b2.length)) {
2577
+ continue;
2578
+ }
2579
+ if (a === b2 || a.startsWith(b2) || b2.startsWith(a)) {
2580
+ return true;
2581
+ }
2582
+ }
2583
+ }
2584
+ return false;
2585
+ };
2586
+ var parseRepeatedExtglob = (pattern, requireEnd = true) => {
2587
+ if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
2588
+ return;
2589
+ }
2590
+ let bracket = 0;
2591
+ let paren = 0;
2592
+ let quote = 0;
2593
+ let escaped = false;
2594
+ for (let i = 1; i < pattern.length; i++) {
2595
+ const ch = pattern[i];
2596
+ if (escaped === true) {
2597
+ escaped = false;
2598
+ continue;
2599
+ }
2600
+ if (ch === "\\") {
2601
+ escaped = true;
2602
+ continue;
2603
+ }
2604
+ if (ch === '"') {
2605
+ quote = quote === 1 ? 0 : 1;
2606
+ continue;
2607
+ }
2608
+ if (quote === 1) {
2609
+ continue;
2610
+ }
2611
+ if (ch === "[") {
2612
+ bracket++;
2613
+ continue;
2614
+ }
2615
+ if (ch === "]" && bracket > 0) {
2616
+ bracket--;
2617
+ continue;
2618
+ }
2619
+ if (bracket > 0) {
2620
+ continue;
2621
+ }
2622
+ if (ch === "(") {
2623
+ paren++;
2624
+ continue;
2625
+ }
2626
+ if (ch === ")") {
2627
+ paren--;
2628
+ if (paren === 0) {
2629
+ if (requireEnd === true && i !== pattern.length - 1) {
2630
+ return;
2631
+ }
2632
+ return {
2633
+ type: pattern[0],
2634
+ body: pattern.slice(2, i),
2635
+ end: i
2636
+ };
2637
+ }
2638
+ }
2639
+ }
2640
+ };
2641
+ var getStarExtglobSequenceOutput = (pattern) => {
2642
+ let index = 0;
2643
+ const chars = [];
2644
+ while (index < pattern.length) {
2645
+ const match = parseRepeatedExtglob(pattern.slice(index), false);
2646
+ if (!match || match.type !== "*") {
2647
+ return;
2648
+ }
2649
+ const branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
2650
+ if (branches.length !== 1) {
2651
+ return;
2652
+ }
2653
+ const branch = normalizeSimpleBranch(branches[0]);
2654
+ if (!branch || branch.length !== 1) {
2655
+ return;
2656
+ }
2657
+ chars.push(branch);
2658
+ index += match.end + 1;
2659
+ }
2660
+ if (chars.length < 1) {
2661
+ return;
2662
+ }
2663
+ const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
2664
+ return `${source}*`;
2665
+ };
2666
+ var repeatedExtglobRecursion = (pattern) => {
2667
+ let depth = 0;
2668
+ let value = pattern.trim();
2669
+ let match = parseRepeatedExtglob(value);
2670
+ while (match) {
2671
+ depth++;
2672
+ value = match.body.trim();
2673
+ match = parseRepeatedExtglob(value);
2674
+ }
2675
+ return depth;
2676
+ };
2677
+ var analyzeRepeatedExtglob = (body, options) => {
2678
+ if (options.maxExtglobRecursion === false) {
2679
+ return { risky: false };
2680
+ }
2681
+ const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants2.DEFAULT_MAX_EXTGLOB_RECURSION;
2682
+ const branches = splitTopLevel(body).map((branch) => branch.trim());
2683
+ if (branches.length > 1) {
2684
+ if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
2685
+ return { risky: true };
2686
+ }
2687
+ }
2688
+ for (const branch of branches) {
2689
+ const safeOutput = getStarExtglobSequenceOutput(branch);
2690
+ if (safeOutput) {
2691
+ return { risky: true, safeOutput };
2692
+ }
2693
+ if (repeatedExtglobRecursion(branch) > max) {
2694
+ return { risky: true };
2695
+ }
2696
+ }
2697
+ return { risky: false };
2698
+ };
2488
2699
  var parse2 = (input, options) => {
2489
2700
  if (typeof input !== "string") {
2490
2701
  throw new TypeError("Expected a string");
@@ -2616,6 +2827,8 @@ var require_parse2 = __commonJS({
2616
2827
  token.prev = prev;
2617
2828
  token.parens = state.parens;
2618
2829
  token.output = state.output;
2830
+ token.startIndex = state.index;
2831
+ token.tokensIndex = tokens.length;
2619
2832
  const output = (opts.capture ? "(" : "") + token.open;
2620
2833
  increment("parens");
2621
2834
  push({ type, value: value2, output: state.output ? "" : ONE_CHAR });
@@ -2623,6 +2836,26 @@ var require_parse2 = __commonJS({
2623
2836
  extglobs.push(token);
2624
2837
  };
2625
2838
  const extglobClose = (token) => {
2839
+ const literal = input.slice(token.startIndex, state.index + 1);
2840
+ const body = input.slice(token.startIndex + 2, state.index);
2841
+ const analysis = analyzeRepeatedExtglob(body, opts);
2842
+ if ((token.type === "plus" || token.type === "star") && analysis.risky) {
2843
+ const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
2844
+ const open = tokens[token.tokensIndex];
2845
+ open.type = "text";
2846
+ open.value = literal;
2847
+ open.output = safeOutput || utils.escapeRegex(literal);
2848
+ for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
2849
+ tokens[i].value = "";
2850
+ tokens[i].output = "";
2851
+ delete tokens[i].suffix;
2852
+ }
2853
+ state.output = token.output + open.output;
2854
+ state.backtrack = true;
2855
+ push({ type: "paren", extglob: true, value, output: "" });
2856
+ decrement("parens");
2857
+ return;
2858
+ }
2626
2859
  let output = token.close + (opts.capture ? ")" : "");
2627
2860
  let rest;
2628
2861
  if (token.type === "negate") {
@@ -3229,9 +3462,9 @@ var require_parse2 = __commonJS({
3229
3462
  }
3230
3463
  });
3231
3464
 
3232
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js
3465
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js
3233
3466
  var require_picomatch = __commonJS({
3234
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module) {
3467
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js"(exports, module) {
3235
3468
  "use strict";
3236
3469
  init_utils();
3237
3470
  var path = __require("path");
@@ -3371,9 +3604,9 @@ var require_picomatch = __commonJS({
3371
3604
  }
3372
3605
  });
3373
3606
 
3374
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/index.js
3607
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js
3375
3608
  var require_picomatch2 = __commonJS({
3376
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/index.js"(exports, module) {
3609
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js"(exports, module) {
3377
3610
  "use strict";
3378
3611
  init_utils();
3379
3612
  module.exports = require_picomatch();
@@ -7169,7 +7402,10 @@ var init_PathResolver = __esm({
7169
7402
  */
7170
7403
  getEmptyCjsModulePath() {
7171
7404
  const resolved = this.resolvePackage("@donotdev/core/empty");
7172
- if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
7405
+ if (!resolved)
7406
+ throw new Error(
7407
+ "Cannot resolve @donotdev/core/empty \u2014 package setup is broken"
7408
+ );
7173
7409
  return resolved;
7174
7410
  }
7175
7411
  // === PRIVATE METHODS ===
package/dist/bin/dndev.js CHANGED
@@ -458,8 +458,9 @@ var init_command_registry = __esm({
458
458
  category: "build",
459
459
  options: [
460
460
  {
461
- flags: "--install <path...>",
462
- description: "Install tarballs into consumer app(s). Repeatable: --install ../wai --install ../apc"
461
+ flags: "--install <path>",
462
+ description: "Install tarballs into consumer app (repeatable: --install ../wai --install ../apc)",
463
+ collect: true
463
464
  },
464
465
  { flags: "--skip-build", description: "Use existing dist/ (no rebuild)" }
465
466
  ],
@@ -535,6 +536,10 @@ var init_command_registry = __esm({
535
536
  {
536
537
  flags: "--staging",
537
538
  description: "Deploy to staging (uses .env.staging, service-account-key.staging.json, .firebaserc staging project)"
539
+ },
540
+ {
541
+ flags: "--scope <scope>",
542
+ description: "Deploy scope: functions, frontend, or both. Skips interactive menu (headless)"
538
543
  }
539
544
  ],
540
545
  loader: "../apps/deploy.ts",
@@ -553,7 +558,11 @@ var init_command_registry = __esm({
553
558
  description: "Firebase project ID (overrides .firebaserc)"
554
559
  },
555
560
  { flags: "--skip-build", description: "skip build step" },
556
- { flags: "--force", description: "Force deployment / cleanup policy" }
561
+ { flags: "--force", description: "Force deployment / cleanup policy" },
562
+ {
563
+ flags: "--scope <scope>",
564
+ description: "Deploy scope: functions, frontend, or both. Skips interactive menu (headless)"
565
+ }
557
566
  ],
558
567
  loader: "../apps/deploy.ts"
559
568
  },
@@ -817,6 +826,26 @@ var init_command_registry = __esm({
817
826
  loader: "../generators/sql-generator.ts"
818
827
  },
819
828
  // ---------------------------------------------------------------------------
829
+ // Quality Analysis
830
+ // ---------------------------------------------------------------------------
831
+ {
832
+ name: "retro",
833
+ description: "Engineering retrospective - velocity, patterns, trends from git history",
834
+ category: "development",
835
+ options: [
836
+ {
837
+ flags: "-w, --window <window>",
838
+ description: "Time window: 24h, 7d (default), 14d, 30d"
839
+ },
840
+ {
841
+ flags: "--json",
842
+ description: "Output raw JSON only (no decorative logging)"
843
+ }
844
+ ],
845
+ loader: "../quality/retro.ts",
846
+ exportName: "retro"
847
+ },
848
+ // ---------------------------------------------------------------------------
820
849
  // Other
821
850
  // ---------------------------------------------------------------------------
822
851
  {
@@ -950,7 +979,7 @@ function registerCommand(program2, def, action) {
950
979
  }
951
980
 
952
981
  // packages/cli/src/bin/dndev.mjs
953
- var CLI_VERSION = true ? "0.0.37" : "0.0.0";
982
+ var CLI_VERSION = true ? "0.1.1" : "0.0.0";
954
983
  var args = process.argv.slice(2);
955
984
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
956
985
  console.log(CLI_VERSION);
@@ -458,8 +458,9 @@ var init_command_registry = __esm({
458
458
  category: "build",
459
459
  options: [
460
460
  {
461
- flags: "--install <path...>",
462
- description: "Install tarballs into consumer app(s). Repeatable: --install ../wai --install ../apc"
461
+ flags: "--install <path>",
462
+ description: "Install tarballs into consumer app (repeatable: --install ../wai --install ../apc)",
463
+ collect: true
463
464
  },
464
465
  { flags: "--skip-build", description: "Use existing dist/ (no rebuild)" }
465
466
  ],
@@ -535,6 +536,10 @@ var init_command_registry = __esm({
535
536
  {
536
537
  flags: "--staging",
537
538
  description: "Deploy to staging (uses .env.staging, service-account-key.staging.json, .firebaserc staging project)"
539
+ },
540
+ {
541
+ flags: "--scope <scope>",
542
+ description: "Deploy scope: functions, frontend, or both. Skips interactive menu (headless)"
538
543
  }
539
544
  ],
540
545
  loader: "../apps/deploy.ts",
@@ -553,7 +558,11 @@ var init_command_registry = __esm({
553
558
  description: "Firebase project ID (overrides .firebaserc)"
554
559
  },
555
560
  { flags: "--skip-build", description: "skip build step" },
556
- { flags: "--force", description: "Force deployment / cleanup policy" }
561
+ { flags: "--force", description: "Force deployment / cleanup policy" },
562
+ {
563
+ flags: "--scope <scope>",
564
+ description: "Deploy scope: functions, frontend, or both. Skips interactive menu (headless)"
565
+ }
557
566
  ],
558
567
  loader: "../apps/deploy.ts"
559
568
  },
@@ -817,6 +826,26 @@ var init_command_registry = __esm({
817
826
  loader: "../generators/sql-generator.ts"
818
827
  },
819
828
  // ---------------------------------------------------------------------------
829
+ // Quality Analysis
830
+ // ---------------------------------------------------------------------------
831
+ {
832
+ name: "retro",
833
+ description: "Engineering retrospective - velocity, patterns, trends from git history",
834
+ category: "development",
835
+ options: [
836
+ {
837
+ flags: "-w, --window <window>",
838
+ description: "Time window: 24h, 7d (default), 14d, 30d"
839
+ },
840
+ {
841
+ flags: "--json",
842
+ description: "Output raw JSON only (no decorative logging)"
843
+ }
844
+ ],
845
+ loader: "../quality/retro.ts",
846
+ exportName: "retro"
847
+ },
848
+ // ---------------------------------------------------------------------------
820
849
  // Other
821
850
  // ---------------------------------------------------------------------------
822
851
  {
@@ -950,7 +979,7 @@ function registerCommand(program2, def, action) {
950
979
  }
951
980
 
952
981
  // packages/cli/src/bin/dndev.mjs
953
- var CLI_VERSION = true ? "0.0.37" : "0.0.0";
982
+ var CLI_VERSION = true ? "0.1.1" : "0.0.0";
954
983
  var args = process.argv.slice(2);
955
984
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
956
985
  console.log(CLI_VERSION);