@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
@@ -2407,14 +2407,15 @@ var require_braces = __commonJS({
2407
2407
  }
2408
2408
  });
2409
2409
 
2410
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
2410
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js
2411
2411
  var require_constants2 = __commonJS({
2412
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module) {
2412
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js"(exports, module) {
2413
2413
  "use strict";
2414
2414
  init_utils();
2415
2415
  var path = __require("path");
2416
2416
  var WIN_SLASH = "\\\\/";
2417
2417
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
2418
+ var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
2418
2419
  var DOT_LITERAL = "\\.";
2419
2420
  var PLUS_LITERAL = "\\+";
2420
2421
  var QMARK_LITERAL = "\\?";
@@ -2462,6 +2463,7 @@ var require_constants2 = __commonJS({
2462
2463
  END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
2463
2464
  };
2464
2465
  var POSIX_REGEX_SOURCE = {
2466
+ __proto__: null,
2465
2467
  alnum: "a-zA-Z0-9",
2466
2468
  alpha: "a-zA-Z",
2467
2469
  ascii: "\\x00-\\x7F",
@@ -2478,6 +2480,7 @@ var require_constants2 = __commonJS({
2478
2480
  xdigit: "A-Fa-f0-9"
2479
2481
  };
2480
2482
  module.exports = {
2483
+ DEFAULT_MAX_EXTGLOB_RECURSION,
2481
2484
  MAX_LENGTH: 1024 * 64,
2482
2485
  POSIX_REGEX_SOURCE,
2483
2486
  // regular expressions
@@ -2489,6 +2492,7 @@ var require_constants2 = __commonJS({
2489
2492
  REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
2490
2493
  // Replace globs with equivalent patterns to reduce parsing time.
2491
2494
  REPLACEMENTS: {
2495
+ __proto__: null,
2492
2496
  "***": "*",
2493
2497
  "**/**": "**",
2494
2498
  "**/**/**": "**"
@@ -2605,9 +2609,9 @@ var require_constants2 = __commonJS({
2605
2609
  }
2606
2610
  });
2607
2611
 
2608
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
2612
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js
2609
2613
  var require_utils2 = __commonJS({
2610
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
2614
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js"(exports) {
2611
2615
  "use strict";
2612
2616
  init_utils();
2613
2617
  var path = __require("path");
@@ -2667,9 +2671,9 @@ var require_utils2 = __commonJS({
2667
2671
  }
2668
2672
  });
2669
2673
 
2670
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/scan.js
2674
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js
2671
2675
  var require_scan = __commonJS({
2672
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(exports, module) {
2676
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js"(exports, module) {
2673
2677
  "use strict";
2674
2678
  init_utils();
2675
2679
  var utils = require_utils2();
@@ -2998,9 +3002,9 @@ var require_scan = __commonJS({
2998
3002
  }
2999
3003
  });
3000
3004
 
3001
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
3005
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js
3002
3006
  var require_parse2 = __commonJS({
3003
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports, module) {
3007
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js"(exports, module) {
3004
3008
  "use strict";
3005
3009
  init_utils();
3006
3010
  var constants2 = require_constants2();
@@ -3028,6 +3032,213 @@ var require_parse2 = __commonJS({
3028
3032
  var syntaxError = (type, char) => {
3029
3033
  return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
3030
3034
  };
3035
+ var splitTopLevel = (input) => {
3036
+ const parts = [];
3037
+ let bracket = 0;
3038
+ let paren = 0;
3039
+ let quote = 0;
3040
+ let value = "";
3041
+ let escaped = false;
3042
+ for (const ch of input) {
3043
+ if (escaped === true) {
3044
+ value += ch;
3045
+ escaped = false;
3046
+ continue;
3047
+ }
3048
+ if (ch === "\\") {
3049
+ value += ch;
3050
+ escaped = true;
3051
+ continue;
3052
+ }
3053
+ if (ch === '"') {
3054
+ quote = quote === 1 ? 0 : 1;
3055
+ value += ch;
3056
+ continue;
3057
+ }
3058
+ if (quote === 0) {
3059
+ if (ch === "[") {
3060
+ bracket++;
3061
+ } else if (ch === "]" && bracket > 0) {
3062
+ bracket--;
3063
+ } else if (bracket === 0) {
3064
+ if (ch === "(") {
3065
+ paren++;
3066
+ } else if (ch === ")" && paren > 0) {
3067
+ paren--;
3068
+ } else if (ch === "|" && paren === 0) {
3069
+ parts.push(value);
3070
+ value = "";
3071
+ continue;
3072
+ }
3073
+ }
3074
+ }
3075
+ value += ch;
3076
+ }
3077
+ parts.push(value);
3078
+ return parts;
3079
+ };
3080
+ var isPlainBranch = (branch) => {
3081
+ let escaped = false;
3082
+ for (const ch of branch) {
3083
+ if (escaped === true) {
3084
+ escaped = false;
3085
+ continue;
3086
+ }
3087
+ if (ch === "\\") {
3088
+ escaped = true;
3089
+ continue;
3090
+ }
3091
+ if (/[?*+@!()[\]{}]/.test(ch)) {
3092
+ return false;
3093
+ }
3094
+ }
3095
+ return true;
3096
+ };
3097
+ var normalizeSimpleBranch = (branch) => {
3098
+ let value = branch.trim();
3099
+ let changed = true;
3100
+ while (changed === true) {
3101
+ changed = false;
3102
+ if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
3103
+ value = value.slice(2, -1);
3104
+ changed = true;
3105
+ }
3106
+ }
3107
+ if (!isPlainBranch(value)) {
3108
+ return;
3109
+ }
3110
+ return value.replace(/\\(.)/g, "$1");
3111
+ };
3112
+ var hasRepeatedCharPrefixOverlap = (branches) => {
3113
+ const values = branches.map(normalizeSimpleBranch).filter(Boolean);
3114
+ for (let i = 0; i < values.length; i++) {
3115
+ for (let j2 = i + 1; j2 < values.length; j2++) {
3116
+ const a = values[i];
3117
+ const b3 = values[j2];
3118
+ const char = a[0];
3119
+ if (!char || a !== char.repeat(a.length) || b3 !== char.repeat(b3.length)) {
3120
+ continue;
3121
+ }
3122
+ if (a === b3 || a.startsWith(b3) || b3.startsWith(a)) {
3123
+ return true;
3124
+ }
3125
+ }
3126
+ }
3127
+ return false;
3128
+ };
3129
+ var parseRepeatedExtglob = (pattern, requireEnd = true) => {
3130
+ if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
3131
+ return;
3132
+ }
3133
+ let bracket = 0;
3134
+ let paren = 0;
3135
+ let quote = 0;
3136
+ let escaped = false;
3137
+ for (let i = 1; i < pattern.length; i++) {
3138
+ const ch = pattern[i];
3139
+ if (escaped === true) {
3140
+ escaped = false;
3141
+ continue;
3142
+ }
3143
+ if (ch === "\\") {
3144
+ escaped = true;
3145
+ continue;
3146
+ }
3147
+ if (ch === '"') {
3148
+ quote = quote === 1 ? 0 : 1;
3149
+ continue;
3150
+ }
3151
+ if (quote === 1) {
3152
+ continue;
3153
+ }
3154
+ if (ch === "[") {
3155
+ bracket++;
3156
+ continue;
3157
+ }
3158
+ if (ch === "]" && bracket > 0) {
3159
+ bracket--;
3160
+ continue;
3161
+ }
3162
+ if (bracket > 0) {
3163
+ continue;
3164
+ }
3165
+ if (ch === "(") {
3166
+ paren++;
3167
+ continue;
3168
+ }
3169
+ if (ch === ")") {
3170
+ paren--;
3171
+ if (paren === 0) {
3172
+ if (requireEnd === true && i !== pattern.length - 1) {
3173
+ return;
3174
+ }
3175
+ return {
3176
+ type: pattern[0],
3177
+ body: pattern.slice(2, i),
3178
+ end: i
3179
+ };
3180
+ }
3181
+ }
3182
+ }
3183
+ };
3184
+ var getStarExtglobSequenceOutput = (pattern) => {
3185
+ let index = 0;
3186
+ const chars = [];
3187
+ while (index < pattern.length) {
3188
+ const match = parseRepeatedExtglob(pattern.slice(index), false);
3189
+ if (!match || match.type !== "*") {
3190
+ return;
3191
+ }
3192
+ const branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
3193
+ if (branches.length !== 1) {
3194
+ return;
3195
+ }
3196
+ const branch = normalizeSimpleBranch(branches[0]);
3197
+ if (!branch || branch.length !== 1) {
3198
+ return;
3199
+ }
3200
+ chars.push(branch);
3201
+ index += match.end + 1;
3202
+ }
3203
+ if (chars.length < 1) {
3204
+ return;
3205
+ }
3206
+ const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
3207
+ return `${source}*`;
3208
+ };
3209
+ var repeatedExtglobRecursion = (pattern) => {
3210
+ let depth = 0;
3211
+ let value = pattern.trim();
3212
+ let match = parseRepeatedExtglob(value);
3213
+ while (match) {
3214
+ depth++;
3215
+ value = match.body.trim();
3216
+ match = parseRepeatedExtglob(value);
3217
+ }
3218
+ return depth;
3219
+ };
3220
+ var analyzeRepeatedExtglob = (body, options) => {
3221
+ if (options.maxExtglobRecursion === false) {
3222
+ return { risky: false };
3223
+ }
3224
+ const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants2.DEFAULT_MAX_EXTGLOB_RECURSION;
3225
+ const branches = splitTopLevel(body).map((branch) => branch.trim());
3226
+ if (branches.length > 1) {
3227
+ if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
3228
+ return { risky: true };
3229
+ }
3230
+ }
3231
+ for (const branch of branches) {
3232
+ const safeOutput = getStarExtglobSequenceOutput(branch);
3233
+ if (safeOutput) {
3234
+ return { risky: true, safeOutput };
3235
+ }
3236
+ if (repeatedExtglobRecursion(branch) > max) {
3237
+ return { risky: true };
3238
+ }
3239
+ }
3240
+ return { risky: false };
3241
+ };
3031
3242
  var parse2 = (input, options) => {
3032
3243
  if (typeof input !== "string") {
3033
3244
  throw new TypeError("Expected a string");
@@ -3159,6 +3370,8 @@ var require_parse2 = __commonJS({
3159
3370
  token.prev = prev;
3160
3371
  token.parens = state.parens;
3161
3372
  token.output = state.output;
3373
+ token.startIndex = state.index;
3374
+ token.tokensIndex = tokens.length;
3162
3375
  const output = (opts.capture ? "(" : "") + token.open;
3163
3376
  increment("parens");
3164
3377
  push({ type, value: value2, output: state.output ? "" : ONE_CHAR });
@@ -3166,6 +3379,26 @@ var require_parse2 = __commonJS({
3166
3379
  extglobs.push(token);
3167
3380
  };
3168
3381
  const extglobClose = (token) => {
3382
+ const literal = input.slice(token.startIndex, state.index + 1);
3383
+ const body = input.slice(token.startIndex + 2, state.index);
3384
+ const analysis = analyzeRepeatedExtglob(body, opts);
3385
+ if ((token.type === "plus" || token.type === "star") && analysis.risky) {
3386
+ const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
3387
+ const open = tokens[token.tokensIndex];
3388
+ open.type = "text";
3389
+ open.value = literal;
3390
+ open.output = safeOutput || utils.escapeRegex(literal);
3391
+ for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
3392
+ tokens[i].value = "";
3393
+ tokens[i].output = "";
3394
+ delete tokens[i].suffix;
3395
+ }
3396
+ state.output = token.output + open.output;
3397
+ state.backtrack = true;
3398
+ push({ type: "paren", extglob: true, value, output: "" });
3399
+ decrement("parens");
3400
+ return;
3401
+ }
3169
3402
  let output = token.close + (opts.capture ? ")" : "");
3170
3403
  let rest;
3171
3404
  if (token.type === "negate") {
@@ -3772,9 +4005,9 @@ var require_parse2 = __commonJS({
3772
4005
  }
3773
4006
  });
3774
4007
 
3775
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js
4008
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js
3776
4009
  var require_picomatch = __commonJS({
3777
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module) {
4010
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js"(exports, module) {
3778
4011
  "use strict";
3779
4012
  init_utils();
3780
4013
  var path = __require("path");
@@ -3914,9 +4147,9 @@ var require_picomatch = __commonJS({
3914
4147
  }
3915
4148
  });
3916
4149
 
3917
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/index.js
4150
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js
3918
4151
  var require_picomatch2 = __commonJS({
3919
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/index.js"(exports, module) {
4152
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js"(exports, module) {
3920
4153
  "use strict";
3921
4154
  init_utils();
3922
4155
  module.exports = require_picomatch();
@@ -7712,7 +7945,10 @@ var init_PathResolver = __esm({
7712
7945
  */
7713
7946
  getEmptyCjsModulePath() {
7714
7947
  const resolved = this.resolvePackage("@donotdev/core/empty");
7715
- if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
7948
+ if (!resolved)
7949
+ throw new Error(
7950
+ "Cannot resolve @donotdev/core/empty \u2014 package setup is broken"
7951
+ );
7716
7952
  return resolved;
7717
7953
  }
7718
7954
  // === PRIVATE METHODS ===
@@ -8448,7 +8684,18 @@ function loadMatrix(mode) {
8448
8684
  return cachedMatrix;
8449
8685
  }
8450
8686
  function resolveGroup(groupName, matrix) {
8451
- return matrix.groups[groupName]?.packages || {};
8687
+ const group = matrix.groups[groupName];
8688
+ if (!group) return {};
8689
+ const result = {};
8690
+ if (group.includes) {
8691
+ for (const included of group.includes) {
8692
+ Object.assign(result, resolveGroup(included, matrix));
8693
+ }
8694
+ }
8695
+ if (group.packages) {
8696
+ Object.assign(result, group.packages);
8697
+ }
8698
+ return result;
8452
8699
  }
8453
8700
  function resolveGroups(groupNames, matrix) {
8454
8701
  const result = {};