@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
@@ -2247,14 +2247,15 @@ var require_braces = __commonJS({
2247
2247
  }
2248
2248
  });
2249
2249
 
2250
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
2250
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js
2251
2251
  var require_constants2 = __commonJS({
2252
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module) {
2252
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js"(exports, module) {
2253
2253
  "use strict";
2254
2254
  init_utils();
2255
2255
  var path = __require("path");
2256
2256
  var WIN_SLASH = "\\\\/";
2257
2257
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
2258
+ var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
2258
2259
  var DOT_LITERAL = "\\.";
2259
2260
  var PLUS_LITERAL = "\\+";
2260
2261
  var QMARK_LITERAL = "\\?";
@@ -2302,6 +2303,7 @@ var require_constants2 = __commonJS({
2302
2303
  END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
2303
2304
  };
2304
2305
  var POSIX_REGEX_SOURCE = {
2306
+ __proto__: null,
2305
2307
  alnum: "a-zA-Z0-9",
2306
2308
  alpha: "a-zA-Z",
2307
2309
  ascii: "\\x00-\\x7F",
@@ -2318,6 +2320,7 @@ var require_constants2 = __commonJS({
2318
2320
  xdigit: "A-Fa-f0-9"
2319
2321
  };
2320
2322
  module.exports = {
2323
+ DEFAULT_MAX_EXTGLOB_RECURSION,
2321
2324
  MAX_LENGTH: 1024 * 64,
2322
2325
  POSIX_REGEX_SOURCE,
2323
2326
  // regular expressions
@@ -2329,6 +2332,7 @@ var require_constants2 = __commonJS({
2329
2332
  REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
2330
2333
  // Replace globs with equivalent patterns to reduce parsing time.
2331
2334
  REPLACEMENTS: {
2335
+ __proto__: null,
2332
2336
  "***": "*",
2333
2337
  "**/**": "**",
2334
2338
  "**/**/**": "**"
@@ -2445,9 +2449,9 @@ var require_constants2 = __commonJS({
2445
2449
  }
2446
2450
  });
2447
2451
 
2448
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
2452
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js
2449
2453
  var require_utils2 = __commonJS({
2450
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
2454
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js"(exports) {
2451
2455
  "use strict";
2452
2456
  init_utils();
2453
2457
  var path = __require("path");
@@ -2507,9 +2511,9 @@ var require_utils2 = __commonJS({
2507
2511
  }
2508
2512
  });
2509
2513
 
2510
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/scan.js
2514
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js
2511
2515
  var require_scan = __commonJS({
2512
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(exports, module) {
2516
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js"(exports, module) {
2513
2517
  "use strict";
2514
2518
  init_utils();
2515
2519
  var utils = require_utils2();
@@ -2838,9 +2842,9 @@ var require_scan = __commonJS({
2838
2842
  }
2839
2843
  });
2840
2844
 
2841
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
2845
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js
2842
2846
  var require_parse2 = __commonJS({
2843
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports, module) {
2847
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js"(exports, module) {
2844
2848
  "use strict";
2845
2849
  init_utils();
2846
2850
  var constants2 = require_constants2();
@@ -2868,6 +2872,213 @@ var require_parse2 = __commonJS({
2868
2872
  var syntaxError = (type, char) => {
2869
2873
  return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
2870
2874
  };
2875
+ var splitTopLevel = (input) => {
2876
+ const parts = [];
2877
+ let bracket = 0;
2878
+ let paren = 0;
2879
+ let quote = 0;
2880
+ let value = "";
2881
+ let escaped = false;
2882
+ for (const ch of input) {
2883
+ if (escaped === true) {
2884
+ value += ch;
2885
+ escaped = false;
2886
+ continue;
2887
+ }
2888
+ if (ch === "\\") {
2889
+ value += ch;
2890
+ escaped = true;
2891
+ continue;
2892
+ }
2893
+ if (ch === '"') {
2894
+ quote = quote === 1 ? 0 : 1;
2895
+ value += ch;
2896
+ continue;
2897
+ }
2898
+ if (quote === 0) {
2899
+ if (ch === "[") {
2900
+ bracket++;
2901
+ } else if (ch === "]" && bracket > 0) {
2902
+ bracket--;
2903
+ } else if (bracket === 0) {
2904
+ if (ch === "(") {
2905
+ paren++;
2906
+ } else if (ch === ")" && paren > 0) {
2907
+ paren--;
2908
+ } else if (ch === "|" && paren === 0) {
2909
+ parts.push(value);
2910
+ value = "";
2911
+ continue;
2912
+ }
2913
+ }
2914
+ }
2915
+ value += ch;
2916
+ }
2917
+ parts.push(value);
2918
+ return parts;
2919
+ };
2920
+ var isPlainBranch = (branch) => {
2921
+ let escaped = false;
2922
+ for (const ch of branch) {
2923
+ if (escaped === true) {
2924
+ escaped = false;
2925
+ continue;
2926
+ }
2927
+ if (ch === "\\") {
2928
+ escaped = true;
2929
+ continue;
2930
+ }
2931
+ if (/[?*+@!()[\]{}]/.test(ch)) {
2932
+ return false;
2933
+ }
2934
+ }
2935
+ return true;
2936
+ };
2937
+ var normalizeSimpleBranch = (branch) => {
2938
+ let value = branch.trim();
2939
+ let changed = true;
2940
+ while (changed === true) {
2941
+ changed = false;
2942
+ if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
2943
+ value = value.slice(2, -1);
2944
+ changed = true;
2945
+ }
2946
+ }
2947
+ if (!isPlainBranch(value)) {
2948
+ return;
2949
+ }
2950
+ return value.replace(/\\(.)/g, "$1");
2951
+ };
2952
+ var hasRepeatedCharPrefixOverlap = (branches) => {
2953
+ const values = branches.map(normalizeSimpleBranch).filter(Boolean);
2954
+ for (let i = 0; i < values.length; i++) {
2955
+ for (let j2 = i + 1; j2 < values.length; j2++) {
2956
+ const a = values[i];
2957
+ const b3 = values[j2];
2958
+ const char = a[0];
2959
+ if (!char || a !== char.repeat(a.length) || b3 !== char.repeat(b3.length)) {
2960
+ continue;
2961
+ }
2962
+ if (a === b3 || a.startsWith(b3) || b3.startsWith(a)) {
2963
+ return true;
2964
+ }
2965
+ }
2966
+ }
2967
+ return false;
2968
+ };
2969
+ var parseRepeatedExtglob = (pattern, requireEnd = true) => {
2970
+ if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
2971
+ return;
2972
+ }
2973
+ let bracket = 0;
2974
+ let paren = 0;
2975
+ let quote = 0;
2976
+ let escaped = false;
2977
+ for (let i = 1; i < pattern.length; i++) {
2978
+ const ch = pattern[i];
2979
+ if (escaped === true) {
2980
+ escaped = false;
2981
+ continue;
2982
+ }
2983
+ if (ch === "\\") {
2984
+ escaped = true;
2985
+ continue;
2986
+ }
2987
+ if (ch === '"') {
2988
+ quote = quote === 1 ? 0 : 1;
2989
+ continue;
2990
+ }
2991
+ if (quote === 1) {
2992
+ continue;
2993
+ }
2994
+ if (ch === "[") {
2995
+ bracket++;
2996
+ continue;
2997
+ }
2998
+ if (ch === "]" && bracket > 0) {
2999
+ bracket--;
3000
+ continue;
3001
+ }
3002
+ if (bracket > 0) {
3003
+ continue;
3004
+ }
3005
+ if (ch === "(") {
3006
+ paren++;
3007
+ continue;
3008
+ }
3009
+ if (ch === ")") {
3010
+ paren--;
3011
+ if (paren === 0) {
3012
+ if (requireEnd === true && i !== pattern.length - 1) {
3013
+ return;
3014
+ }
3015
+ return {
3016
+ type: pattern[0],
3017
+ body: pattern.slice(2, i),
3018
+ end: i
3019
+ };
3020
+ }
3021
+ }
3022
+ }
3023
+ };
3024
+ var getStarExtglobSequenceOutput = (pattern) => {
3025
+ let index = 0;
3026
+ const chars = [];
3027
+ while (index < pattern.length) {
3028
+ const match = parseRepeatedExtglob(pattern.slice(index), false);
3029
+ if (!match || match.type !== "*") {
3030
+ return;
3031
+ }
3032
+ const branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
3033
+ if (branches.length !== 1) {
3034
+ return;
3035
+ }
3036
+ const branch = normalizeSimpleBranch(branches[0]);
3037
+ if (!branch || branch.length !== 1) {
3038
+ return;
3039
+ }
3040
+ chars.push(branch);
3041
+ index += match.end + 1;
3042
+ }
3043
+ if (chars.length < 1) {
3044
+ return;
3045
+ }
3046
+ const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
3047
+ return `${source}*`;
3048
+ };
3049
+ var repeatedExtglobRecursion = (pattern) => {
3050
+ let depth = 0;
3051
+ let value = pattern.trim();
3052
+ let match = parseRepeatedExtglob(value);
3053
+ while (match) {
3054
+ depth++;
3055
+ value = match.body.trim();
3056
+ match = parseRepeatedExtglob(value);
3057
+ }
3058
+ return depth;
3059
+ };
3060
+ var analyzeRepeatedExtglob = (body, options) => {
3061
+ if (options.maxExtglobRecursion === false) {
3062
+ return { risky: false };
3063
+ }
3064
+ const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants2.DEFAULT_MAX_EXTGLOB_RECURSION;
3065
+ const branches = splitTopLevel(body).map((branch) => branch.trim());
3066
+ if (branches.length > 1) {
3067
+ if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
3068
+ return { risky: true };
3069
+ }
3070
+ }
3071
+ for (const branch of branches) {
3072
+ const safeOutput = getStarExtglobSequenceOutput(branch);
3073
+ if (safeOutput) {
3074
+ return { risky: true, safeOutput };
3075
+ }
3076
+ if (repeatedExtglobRecursion(branch) > max) {
3077
+ return { risky: true };
3078
+ }
3079
+ }
3080
+ return { risky: false };
3081
+ };
2871
3082
  var parse2 = (input, options) => {
2872
3083
  if (typeof input !== "string") {
2873
3084
  throw new TypeError("Expected a string");
@@ -2999,6 +3210,8 @@ var require_parse2 = __commonJS({
2999
3210
  token.prev = prev;
3000
3211
  token.parens = state.parens;
3001
3212
  token.output = state.output;
3213
+ token.startIndex = state.index;
3214
+ token.tokensIndex = tokens.length;
3002
3215
  const output = (opts.capture ? "(" : "") + token.open;
3003
3216
  increment("parens");
3004
3217
  push({ type, value: value2, output: state.output ? "" : ONE_CHAR });
@@ -3006,6 +3219,26 @@ var require_parse2 = __commonJS({
3006
3219
  extglobs.push(token);
3007
3220
  };
3008
3221
  const extglobClose = (token) => {
3222
+ const literal = input.slice(token.startIndex, state.index + 1);
3223
+ const body = input.slice(token.startIndex + 2, state.index);
3224
+ const analysis = analyzeRepeatedExtglob(body, opts);
3225
+ if ((token.type === "plus" || token.type === "star") && analysis.risky) {
3226
+ const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
3227
+ const open = tokens[token.tokensIndex];
3228
+ open.type = "text";
3229
+ open.value = literal;
3230
+ open.output = safeOutput || utils.escapeRegex(literal);
3231
+ for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
3232
+ tokens[i].value = "";
3233
+ tokens[i].output = "";
3234
+ delete tokens[i].suffix;
3235
+ }
3236
+ state.output = token.output + open.output;
3237
+ state.backtrack = true;
3238
+ push({ type: "paren", extglob: true, value, output: "" });
3239
+ decrement("parens");
3240
+ return;
3241
+ }
3009
3242
  let output = token.close + (opts.capture ? ")" : "");
3010
3243
  let rest;
3011
3244
  if (token.type === "negate") {
@@ -3612,9 +3845,9 @@ var require_parse2 = __commonJS({
3612
3845
  }
3613
3846
  });
3614
3847
 
3615
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js
3848
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js
3616
3849
  var require_picomatch = __commonJS({
3617
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module) {
3850
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js"(exports, module) {
3618
3851
  "use strict";
3619
3852
  init_utils();
3620
3853
  var path = __require("path");
@@ -3754,9 +3987,9 @@ var require_picomatch = __commonJS({
3754
3987
  }
3755
3988
  });
3756
3989
 
3757
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/index.js
3990
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js
3758
3991
  var require_picomatch2 = __commonJS({
3759
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/index.js"(exports, module) {
3992
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js"(exports, module) {
3760
3993
  "use strict";
3761
3994
  init_utils();
3762
3995
  module.exports = require_picomatch();
@@ -7552,7 +7785,10 @@ var init_PathResolver = __esm({
7552
7785
  */
7553
7786
  getEmptyCjsModulePath() {
7554
7787
  const resolved = this.resolvePackage("@donotdev/core/empty");
7555
- if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
7788
+ if (!resolved)
7789
+ throw new Error(
7790
+ "Cannot resolve @donotdev/core/empty \u2014 package setup is broken"
7791
+ );
7556
7792
  return resolved;
7557
7793
  }
7558
7794
  // === PRIVATE METHODS ===
@@ -8024,7 +8260,18 @@ function loadMatrix(mode) {
8024
8260
  return cachedMatrix;
8025
8261
  }
8026
8262
  function resolveGroup(groupName, matrix) {
8027
- return matrix.groups[groupName]?.packages || {};
8263
+ const group = matrix.groups[groupName];
8264
+ if (!group) return {};
8265
+ const result = {};
8266
+ if (group.includes) {
8267
+ for (const included of group.includes) {
8268
+ Object.assign(result, resolveGroup(included, matrix));
8269
+ }
8270
+ }
8271
+ if (group.packages) {
8272
+ Object.assign(result, group.packages);
8273
+ }
8274
+ return result;
8028
8275
  }
8029
8276
  function resolveGroups(groupNames, matrix) {
8030
8277
  const result = {};