@donotdev/cli 0.1.0 → 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 (93) hide show
  1. package/dependencies-matrix.json +100 -50
  2. package/dist/bin/commands/agent-setup.js +245 -12
  3. package/dist/bin/commands/build.js +3339 -208
  4. package/dist/bin/commands/bump.js +245 -12
  5. package/dist/bin/commands/cacheout.js +245 -12
  6. package/dist/bin/commands/coach.js +361 -60
  7. package/dist/bin/commands/create-app.js +245 -12
  8. package/dist/bin/commands/create-project.js +253 -12
  9. package/dist/bin/commands/db.js +9114 -2327
  10. package/dist/bin/commands/deploy.js +4074 -694
  11. package/dist/bin/commands/dev.js +347 -33
  12. package/dist/bin/commands/doctor.js +408 -107
  13. package/dist/bin/commands/emu.js +386 -52
  14. package/dist/bin/commands/format.js +245 -12
  15. package/dist/bin/commands/get-demo.js +245 -12
  16. package/dist/bin/commands/make-admin.js +8356 -1516
  17. package/dist/bin/commands/preview.js +347 -33
  18. package/dist/bin/commands/seed.js +9114 -2327
  19. package/dist/bin/commands/setup-cicd.js +452 -132
  20. package/dist/bin/commands/setup.js +407 -107
  21. package/dist/bin/commands/staging.js +4074 -694
  22. package/dist/bin/commands/sync-secrets.js +246 -13
  23. package/dist/bin/commands/type-check.js +245 -12
  24. package/dist/bin/commands/wai.js +245 -12
  25. package/dist/bin/dndev.js +13 -4
  26. package/dist/bin/donotdev.js +13 -4
  27. package/dist/index.js +4169 -812
  28. package/{templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example → guidelines/VERSION_CONTROL.md} +7 -11
  29. package/package.json +2 -1
  30. package/templates/app-demo/src/themes.css.example +21 -0
  31. package/templates/app-dndev/index.html.example +0 -3
  32. package/templates/app-dndev/src/themes.css.example +21 -0
  33. package/templates/app-next/src/app/layout.tsx.example +13 -4
  34. package/templates/app-next/src/themes.css.example +21 -0
  35. package/templates/app-vite/csp.example.json +44 -0
  36. package/templates/app-vite/index.html.example +0 -3
  37. package/templates/app-vite/src/themes.css.example +21 -0
  38. package/templates/functions-supabase/supabase/migrations/20250101000000_idempotency.sql +3 -0
  39. package/templates/functions-supabase/supabase/migrations/20250101000001_rate_limits.sql +3 -0
  40. package/templates/functions-supabase/supabase/migrations/20250101000003_operation_metrics.sql +3 -0
  41. package/templates/root-consumer/.claude/hooks/framework-compliance.sh.example +56 -0
  42. package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +61 -0
  43. package/templates/root-consumer/.claude/hooks/guard-files.sh.example +46 -0
  44. package/templates/root-consumer/.claude/hooks/guard-mcp.sh.example +91 -0
  45. package/templates/root-consumer/.claude/hooks/guard-secrets.sh.example +67 -0
  46. package/templates/root-consumer/.claude/hooks/guard-write.sh.example +89 -0
  47. package/templates/root-consumer/.claude/hooks/session-start.sh.example +50 -0
  48. package/templates/root-consumer/.claude/hooks/track-mcp-lookup.sh.example +20 -0
  49. package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +18 -0
  50. package/templates/root-consumer/.claude/rules/consumer-ux.md.example +32 -0
  51. package/templates/root-consumer/.claude/rules/definition-of-done.md.example +32 -0
  52. package/templates/root-consumer/.claude/rules/framework.md.example +39 -0
  53. package/templates/root-consumer/.claude/rules/git.md.example +14 -0
  54. package/templates/root-consumer/.claude/rules/security.md.example +13 -0
  55. package/templates/root-consumer/.claude/settings.json.example +123 -1
  56. package/templates/root-consumer/.claude/skills/build/SKILL.md.example +103 -25
  57. package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +26 -15
  58. package/templates/root-consumer/.claude/skills/polish/SKILL.md.example +50 -37
  59. package/templates/root-consumer/AI.md.example +2 -2
  60. package/templates/root-consumer/CLAUDE.md.example +33 -1
  61. package/templates/root-consumer/guides/dndev/INDEX.md.example +23 -27
  62. package/templates/root-consumer/guides/dndev/SETUP_AUTH.md.example +3 -2
  63. package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +10 -5
  64. package/templates/root-consumer/guides/dndev/SETUP_SUPABASE.md.example +50 -3
  65. package/templates/root-consumer/guides/wai-way/blueprints/3_compose.md.example +13 -15
  66. package/templates/app-demo/public/manifest.json.example +0 -10
  67. package/templates/app-dndev/public/manifest.json.example +0 -10
  68. package/templates/root-consumer/.claude/commands/brainstorm.md.example +0 -175
  69. package/templates/root-consumer/.claude/commands/build.md.example +0 -131
  70. package/templates/root-consumer/.claude/commands/design.md.example +0 -184
  71. package/templates/root-consumer/.claude/commands/grill.md.example +0 -135
  72. package/templates/root-consumer/.claude/commands/polish.md.example +0 -146
  73. package/templates/root-consumer/.claude/commands/techdebt.md.example +0 -28
  74. package/templates/root-consumer/guides/dndev/COMPONENTS_ATOMIC.md.example +0 -180
  75. package/templates/root-consumer/guides/dndev/COMPONENTS_CRUD.md.example +0 -234
  76. package/templates/root-consumer/guides/dndev/COMPONENTS_UI.md.example +0 -136
  77. package/templates/root-consumer/guides/dndev/COMPONENT_API.md.example +0 -195
  78. package/templates/root-consumer/guides/dndev/ENV_SETUP.md.example +0 -219
  79. package/templates/root-consumer/guides/dndev/GOTCHAS.md.example +0 -197
  80. package/templates/root-consumer/guides/dndev/SETUP_APP_CONFIG.md.example +0 -132
  81. package/templates/root-consumer/guides/dndev/SETUP_BLOG.md.example +0 -280
  82. package/templates/root-consumer/guides/dndev/SETUP_CICD.md.example +0 -115
  83. package/templates/root-consumer/guides/dndev/SETUP_CRUD.md.example +0 -334
  84. package/templates/root-consumer/guides/dndev/SETUP_FUNCTIONS.md.example +0 -9
  85. package/templates/root-consumer/guides/dndev/SETUP_I18N.md.example +0 -233
  86. package/templates/root-consumer/guides/dndev/SETUP_LAYOUTS.md.example +0 -158
  87. package/templates/root-consumer/guides/dndev/SETUP_PAGES.md.example +0 -205
  88. package/templates/root-consumer/guides/dndev/SETUP_PWA.md.example +0 -213
  89. package/templates/root-consumer/guides/dndev/SETUP_TESTING.md.example +0 -184
  90. package/templates/root-consumer/guides/dndev/SETUP_THEMES.md.example +0 -111
  91. package/templates/root-consumer/guides/dndev/SETUP_VERCEL.md.example +0 -260
  92. package/templates/root-consumer/guides/dndev/USE_ROUTING.md.example +0 -499
  93. package/templates/root-consumer/guides/dndev/essences_reference.css.example +0 -288
@@ -2,7 +2,7 @@
2
2
  "$schema": "./dependencies-matrix.schema.json",
3
3
  "version": "0.0.6",
4
4
  "description": "Centralized dependency versions for DoNotDev framework. Single source of truth for all external dependencies. Third-party optional deps are auto-detected from peerDependenciesMeta via scanInstalledPackageOptionals() — no manual constants update needed.",
5
- "lastUpdated": "2026-03-13",
5
+ "lastUpdated": "2026-03-26",
6
6
  "migrationGuides": {
7
7
  "0.0→0.1": {
8
8
  "path": "docs/migration/v0.0-to-v0.1.md",
@@ -14,76 +14,82 @@
14
14
  }
15
15
  },
16
16
  "groups": {
17
+ "@donotdev/ai": {
18
+ "description": "AI package - provider-agnostic LLM plumbing",
19
+ "packages": {
20
+ "@donotdev/ai": "^0.1.1"
21
+ }
22
+ },
17
23
  "@donotdev/auth": {
18
24
  "description": "Authentication package",
19
25
  "packages": {
20
- "@donotdev/auth": "^0.1.0"
26
+ "@donotdev/auth": "^0.1.1"
21
27
  }
22
28
  },
23
29
  "@donotdev/billing": {
24
30
  "description": "Billing package",
25
31
  "packages": {
26
- "@donotdev/billing": "^0.1.0"
32
+ "@donotdev/billing": "^0.1.1"
27
33
  }
28
34
  },
29
35
  "@donotdev/components": {
30
36
  "description": "UI components package",
31
37
  "packages": {
32
- "@donotdev/components": "^0.1.0"
38
+ "@donotdev/components": "^0.1.1"
33
39
  }
34
40
  },
35
41
  "@donotdev/core": {
36
42
  "description": "Core framework package",
37
43
  "packages": {
38
- "@donotdev/core": "^0.1.0"
44
+ "@donotdev/core": "^0.1.1"
39
45
  }
40
46
  },
41
47
  "@donotdev/crud": {
42
48
  "description": "CRUD operations package",
43
49
  "packages": {
44
- "@donotdev/crud": "^0.1.0"
50
+ "@donotdev/crud": "^0.1.1"
45
51
  }
46
52
  },
47
53
  "@donotdev/firebase": {
48
54
  "description": "Firebase provider package",
49
55
  "packages": {
50
- "@donotdev/firebase": "^0.1.0"
56
+ "@donotdev/firebase": "^0.1.1"
51
57
  }
52
58
  },
53
59
  "@donotdev/functions": {
54
60
  "description": "Firebase Functions package",
55
61
  "packages": {
56
- "@donotdev/functions": "^0.1.0"
62
+ "@donotdev/functions": "^0.1.1"
57
63
  }
58
64
  },
59
65
  "@donotdev/oauth": {
60
66
  "description": "OAuth package",
61
67
  "packages": {
62
- "@donotdev/oauth": "^0.1.0"
68
+ "@donotdev/oauth": "^0.1.1"
63
69
  }
64
70
  },
65
71
  "@donotdev/templates": {
66
72
  "description": "Page templates package",
67
73
  "packages": {
68
- "@donotdev/templates": "^0.1.0"
74
+ "@donotdev/templates": "^0.1.1"
69
75
  }
70
76
  },
71
77
  "@donotdev/ui": {
72
78
  "description": "UI and routing package",
73
79
  "packages": {
74
- "@donotdev/ui": "^0.1.0"
80
+ "@donotdev/ui": "^0.1.1"
75
81
  }
76
82
  },
77
83
  "@donotdev/expo": {
78
84
  "description": "Expo/React Native components package",
79
85
  "packages": {
80
- "@donotdev/expo": "^0.1.0"
86
+ "@donotdev/expo": "^0.1.1"
81
87
  }
82
88
  },
83
89
  "@donotdev/supabase": {
84
90
  "description": "Supabase provider package",
85
91
  "packages": {
86
- "@donotdev/supabase": "^0.1.0"
92
+ "@donotdev/supabase": "^0.1.1"
87
93
  }
88
94
  },
89
95
  "supabase-js": {
@@ -128,7 +134,7 @@
128
134
  "i18n": {
129
135
  "description": "i18n libraries - auto-installed as transitive deps",
130
136
  "packages": {
131
- "i18next": "^25.8.13",
137
+ "i18next": "^25.10.5",
132
138
  "i18next-browser-languagedetector": "^8.2.1",
133
139
  "i18next-http-backend": "^3.0.2",
134
140
  "react-i18next": "^16.5.4"
@@ -167,33 +173,33 @@
167
173
  "radix": {
168
174
  "description": "UI primitives - auto-installed as transitive dep",
169
175
  "packages": {
170
- "@radix-ui/react-accordion": "^1.2.2",
171
- "@radix-ui/react-alert-dialog": "^1.1.2",
172
- "@radix-ui/react-avatar": "^1.1.1",
173
- "@radix-ui/react-checkbox": "^1.1.2",
174
- "@radix-ui/react-collapsible": "^1.1.1",
175
- "@radix-ui/react-context-menu": "^2.2.2",
176
- "@radix-ui/react-dialog": "^1.1.2",
177
- "@radix-ui/react-dropdown-menu": "^2.1.2",
178
- "@radix-ui/react-hover-card": "^1.1.2",
179
- "@radix-ui/react-label": "^2.1.0",
180
- "@radix-ui/react-navigation-menu": "^1.2.1",
181
- "@radix-ui/react-popover": "^1.1.2",
182
- "@radix-ui/react-portal": "^1.1.2",
183
- "@radix-ui/react-progress": "^1.1.0",
184
- "@radix-ui/react-radio-group": "^1.2.1",
185
- "@radix-ui/react-scroll-area": "^1.2.0",
186
- "@radix-ui/react-select": "^2.1.2",
187
- "@radix-ui/react-separator": "^1.1.0",
188
- "@radix-ui/react-slider": "^1.2.1",
189
- "@radix-ui/react-slot": "^1.1.0",
190
- "@radix-ui/react-switch": "^1.1.1",
191
- "@radix-ui/react-tabs": "^1.1.1",
192
- "@radix-ui/react-toast": "^1.2.2",
193
- "@radix-ui/react-toggle": "^1.1.0",
194
- "@radix-ui/react-toggle-group": "^1.1.0",
195
- "@radix-ui/react-tooltip": "^1.1.3",
196
- "@radix-ui/react-visually-hidden": "^1.2.3"
176
+ "@radix-ui/react-accordion": "^1.2.12",
177
+ "@radix-ui/react-alert-dialog": "^1.1.15",
178
+ "@radix-ui/react-avatar": "^1.1.11",
179
+ "@radix-ui/react-checkbox": "^1.3.3",
180
+ "@radix-ui/react-collapsible": "^1.1.12",
181
+ "@radix-ui/react-context-menu": "^2.2.16",
182
+ "@radix-ui/react-dialog": "^1.1.15",
183
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
184
+ "@radix-ui/react-hover-card": "^1.1.15",
185
+ "@radix-ui/react-label": "^2.1.8",
186
+ "@radix-ui/react-navigation-menu": "^1.2.14",
187
+ "@radix-ui/react-popover": "^1.1.15",
188
+ "@radix-ui/react-portal": "^1.1.10",
189
+ "@radix-ui/react-progress": "^1.1.8",
190
+ "@radix-ui/react-radio-group": "^1.3.8",
191
+ "@radix-ui/react-scroll-area": "^1.2.10",
192
+ "@radix-ui/react-select": "^2.2.6",
193
+ "@radix-ui/react-separator": "^1.1.8",
194
+ "@radix-ui/react-slider": "^1.3.6",
195
+ "@radix-ui/react-slot": "^1.2.4",
196
+ "@radix-ui/react-switch": "^1.2.6",
197
+ "@radix-ui/react-tabs": "^1.1.13",
198
+ "@radix-ui/react-toast": "^1.2.15",
199
+ "@radix-ui/react-toggle": "^1.1.10",
200
+ "@radix-ui/react-toggle-group": "^1.1.11",
201
+ "@radix-ui/react-tooltip": "^1.2.8",
202
+ "@radix-ui/react-visually-hidden": "^1.2.4"
197
203
  }
198
204
  },
199
205
  "styling": {
@@ -300,7 +306,7 @@
300
306
  "rollup": {
301
307
  "packages": {
302
308
  "rollup": "^4.57.1",
303
- "rollup-plugin-dts": "^6.3.0"
309
+ "rollup-plugin-dts": "6.3.0"
304
310
  }
305
311
  },
306
312
  "yaml": {
@@ -371,6 +377,12 @@
371
377
  "@sentry/node": "^10.39.0"
372
378
  }
373
379
  },
380
+ "puppeteer": {
381
+ "description": "Headless Chrome for build-time prerendering (SEO). Required by @donotdev/core vite config.",
382
+ "packages": {
383
+ "puppeteer": "^24.39.1"
384
+ }
385
+ },
374
386
  "postcss": {
375
387
  "packages": {
376
388
  "postcss": "^8.5.6",
@@ -423,13 +435,13 @@
423
435
  "@donotdev/cli": {
424
436
  "description": "Cli package",
425
437
  "packages": {
426
- "@donotdev/cli": "^0.1.0"
438
+ "@donotdev/cli": "^0.1.1"
427
439
  }
428
440
  },
429
441
  "@donotdev/mcp-server": {
430
442
  "description": "MCP server for component type lookups",
431
443
  "packages": {
432
- "@donotdev/mcp-server": "^0.1.0"
444
+ "@donotdev/mcp-server": "^0.1.1"
433
445
  }
434
446
  },
435
447
  "mcp-sdk": {
@@ -455,7 +467,7 @@
455
467
  "@donotdev/security": {
456
468
  "description": "Security package",
457
469
  "packages": {
458
- "@donotdev/security": "^0.1.0"
470
+ "@donotdev/security": "^0.1.1"
459
471
  }
460
472
  },
461
473
  "xterm": {
@@ -504,6 +516,15 @@
504
516
  "react-native": "^0.84.0"
505
517
  },
506
518
  "packageMapping": {
519
+ "@donotdev/ai": {
520
+ "peerDependencies": [
521
+ "react",
522
+ "@donotdev/auth",
523
+ "@donotdev/components",
524
+ "@donotdev/core",
525
+ "lucide-react"
526
+ ]
527
+ },
507
528
  "@donotdev/core": {
508
529
  "peerDependencies": [
509
530
  "react",
@@ -721,7 +742,24 @@
721
742
  "validation",
722
743
  "monitoring-node",
723
744
  "next"
724
- ]
745
+ ],
746
+ "peerDependenciesMeta": {
747
+ "firebase-functions": {
748
+ "optional": true
749
+ },
750
+ "firebase-admin": {
751
+ "optional": true
752
+ },
753
+ "stripe": {
754
+ "optional": true
755
+ },
756
+ "monitoring-node": {
757
+ "optional": true
758
+ },
759
+ "next": {
760
+ "optional": true
761
+ }
762
+ }
725
763
  },
726
764
  "@donotdev/templates": {
727
765
  "dependencies": [
@@ -834,7 +872,8 @@
834
872
  "i18n",
835
873
  "react-query",
836
874
  "core-vite-config",
837
- "postcss"
875
+ "postcss",
876
+ "puppeteer"
838
877
  ],
839
878
  "conditional": {
840
879
  "provider-firebase": "platform===firebase",
@@ -924,7 +963,8 @@
924
963
  "typescript",
925
964
  "types",
926
965
  "core-vite-config",
927
- "postcss"
966
+ "postcss",
967
+ "puppeteer"
928
968
  ],
929
969
  "conditional": {
930
970
  "provider-firebase": "platform===firebase",
@@ -1037,6 +1077,14 @@
1037
1077
  "vercel"
1038
1078
  ]
1039
1079
  },
1080
+ "functions-supabase": {
1081
+ "description": "Supabase Edge Functions app",
1082
+ "dependencies": [
1083
+ "@donotdev/functions",
1084
+ "@donotdev/supabase",
1085
+ "validation"
1086
+ ]
1087
+ },
1040
1088
  "entities": {
1041
1089
  "description": "Entities workspace package",
1042
1090
  "dependencies": [
@@ -1072,7 +1120,8 @@
1072
1120
  "vite",
1073
1121
  "typescript",
1074
1122
  "types",
1075
- "core-vite-config"
1123
+ "core-vite-config",
1124
+ "puppeteer"
1076
1125
  ]
1077
1126
  },
1078
1127
  "dndev": {
@@ -1100,7 +1149,8 @@
1100
1149
  "typescript",
1101
1150
  "types",
1102
1151
  "core-vite-config",
1103
- "ws-types"
1152
+ "ws-types",
1153
+ "puppeteer"
1104
1154
  ]
1105
1155
  }
1106
1156
  },
@@ -1889,14 +1889,15 @@ var require_braces = __commonJS({
1889
1889
  }
1890
1890
  });
1891
1891
 
1892
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
1892
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js
1893
1893
  var require_constants2 = __commonJS({
1894
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module) {
1894
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js"(exports, module) {
1895
1895
  "use strict";
1896
1896
  init_utils();
1897
1897
  var path = __require("path");
1898
1898
  var WIN_SLASH = "\\\\/";
1899
1899
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
1900
+ var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
1900
1901
  var DOT_LITERAL = "\\.";
1901
1902
  var PLUS_LITERAL = "\\+";
1902
1903
  var QMARK_LITERAL = "\\?";
@@ -1944,6 +1945,7 @@ var require_constants2 = __commonJS({
1944
1945
  END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
1945
1946
  };
1946
1947
  var POSIX_REGEX_SOURCE = {
1948
+ __proto__: null,
1947
1949
  alnum: "a-zA-Z0-9",
1948
1950
  alpha: "a-zA-Z",
1949
1951
  ascii: "\\x00-\\x7F",
@@ -1960,6 +1962,7 @@ var require_constants2 = __commonJS({
1960
1962
  xdigit: "A-Fa-f0-9"
1961
1963
  };
1962
1964
  module.exports = {
1965
+ DEFAULT_MAX_EXTGLOB_RECURSION,
1963
1966
  MAX_LENGTH: 1024 * 64,
1964
1967
  POSIX_REGEX_SOURCE,
1965
1968
  // regular expressions
@@ -1971,6 +1974,7 @@ var require_constants2 = __commonJS({
1971
1974
  REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
1972
1975
  // Replace globs with equivalent patterns to reduce parsing time.
1973
1976
  REPLACEMENTS: {
1977
+ __proto__: null,
1974
1978
  "***": "*",
1975
1979
  "**/**": "**",
1976
1980
  "**/**/**": "**"
@@ -2087,9 +2091,9 @@ var require_constants2 = __commonJS({
2087
2091
  }
2088
2092
  });
2089
2093
 
2090
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
2094
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js
2091
2095
  var require_utils2 = __commonJS({
2092
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
2096
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js"(exports) {
2093
2097
  "use strict";
2094
2098
  init_utils();
2095
2099
  var path = __require("path");
@@ -2149,9 +2153,9 @@ var require_utils2 = __commonJS({
2149
2153
  }
2150
2154
  });
2151
2155
 
2152
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/scan.js
2156
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js
2153
2157
  var require_scan = __commonJS({
2154
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(exports, module) {
2158
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js"(exports, module) {
2155
2159
  "use strict";
2156
2160
  init_utils();
2157
2161
  var utils = require_utils2();
@@ -2480,9 +2484,9 @@ var require_scan = __commonJS({
2480
2484
  }
2481
2485
  });
2482
2486
 
2483
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
2487
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js
2484
2488
  var require_parse2 = __commonJS({
2485
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports, module) {
2489
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js"(exports, module) {
2486
2490
  "use strict";
2487
2491
  init_utils();
2488
2492
  var constants2 = require_constants2();
@@ -2510,6 +2514,213 @@ var require_parse2 = __commonJS({
2510
2514
  var syntaxError = (type, char) => {
2511
2515
  return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
2512
2516
  };
2517
+ var splitTopLevel = (input) => {
2518
+ const parts = [];
2519
+ let bracket = 0;
2520
+ let paren = 0;
2521
+ let quote = 0;
2522
+ let value = "";
2523
+ let escaped = false;
2524
+ for (const ch of input) {
2525
+ if (escaped === true) {
2526
+ value += ch;
2527
+ escaped = false;
2528
+ continue;
2529
+ }
2530
+ if (ch === "\\") {
2531
+ value += ch;
2532
+ escaped = true;
2533
+ continue;
2534
+ }
2535
+ if (ch === '"') {
2536
+ quote = quote === 1 ? 0 : 1;
2537
+ value += ch;
2538
+ continue;
2539
+ }
2540
+ if (quote === 0) {
2541
+ if (ch === "[") {
2542
+ bracket++;
2543
+ } else if (ch === "]" && bracket > 0) {
2544
+ bracket--;
2545
+ } else if (bracket === 0) {
2546
+ if (ch === "(") {
2547
+ paren++;
2548
+ } else if (ch === ")" && paren > 0) {
2549
+ paren--;
2550
+ } else if (ch === "|" && paren === 0) {
2551
+ parts.push(value);
2552
+ value = "";
2553
+ continue;
2554
+ }
2555
+ }
2556
+ }
2557
+ value += ch;
2558
+ }
2559
+ parts.push(value);
2560
+ return parts;
2561
+ };
2562
+ var isPlainBranch = (branch) => {
2563
+ let escaped = false;
2564
+ for (const ch of branch) {
2565
+ if (escaped === true) {
2566
+ escaped = false;
2567
+ continue;
2568
+ }
2569
+ if (ch === "\\") {
2570
+ escaped = true;
2571
+ continue;
2572
+ }
2573
+ if (/[?*+@!()[\]{}]/.test(ch)) {
2574
+ return false;
2575
+ }
2576
+ }
2577
+ return true;
2578
+ };
2579
+ var normalizeSimpleBranch = (branch) => {
2580
+ let value = branch.trim();
2581
+ let changed = true;
2582
+ while (changed === true) {
2583
+ changed = false;
2584
+ if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
2585
+ value = value.slice(2, -1);
2586
+ changed = true;
2587
+ }
2588
+ }
2589
+ if (!isPlainBranch(value)) {
2590
+ return;
2591
+ }
2592
+ return value.replace(/\\(.)/g, "$1");
2593
+ };
2594
+ var hasRepeatedCharPrefixOverlap = (branches) => {
2595
+ const values = branches.map(normalizeSimpleBranch).filter(Boolean);
2596
+ for (let i = 0; i < values.length; i++) {
2597
+ for (let j2 = i + 1; j2 < values.length; j2++) {
2598
+ const a = values[i];
2599
+ const b2 = values[j2];
2600
+ const char = a[0];
2601
+ if (!char || a !== char.repeat(a.length) || b2 !== char.repeat(b2.length)) {
2602
+ continue;
2603
+ }
2604
+ if (a === b2 || a.startsWith(b2) || b2.startsWith(a)) {
2605
+ return true;
2606
+ }
2607
+ }
2608
+ }
2609
+ return false;
2610
+ };
2611
+ var parseRepeatedExtglob = (pattern, requireEnd = true) => {
2612
+ if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
2613
+ return;
2614
+ }
2615
+ let bracket = 0;
2616
+ let paren = 0;
2617
+ let quote = 0;
2618
+ let escaped = false;
2619
+ for (let i = 1; i < pattern.length; i++) {
2620
+ const ch = pattern[i];
2621
+ if (escaped === true) {
2622
+ escaped = false;
2623
+ continue;
2624
+ }
2625
+ if (ch === "\\") {
2626
+ escaped = true;
2627
+ continue;
2628
+ }
2629
+ if (ch === '"') {
2630
+ quote = quote === 1 ? 0 : 1;
2631
+ continue;
2632
+ }
2633
+ if (quote === 1) {
2634
+ continue;
2635
+ }
2636
+ if (ch === "[") {
2637
+ bracket++;
2638
+ continue;
2639
+ }
2640
+ if (ch === "]" && bracket > 0) {
2641
+ bracket--;
2642
+ continue;
2643
+ }
2644
+ if (bracket > 0) {
2645
+ continue;
2646
+ }
2647
+ if (ch === "(") {
2648
+ paren++;
2649
+ continue;
2650
+ }
2651
+ if (ch === ")") {
2652
+ paren--;
2653
+ if (paren === 0) {
2654
+ if (requireEnd === true && i !== pattern.length - 1) {
2655
+ return;
2656
+ }
2657
+ return {
2658
+ type: pattern[0],
2659
+ body: pattern.slice(2, i),
2660
+ end: i
2661
+ };
2662
+ }
2663
+ }
2664
+ }
2665
+ };
2666
+ var getStarExtglobSequenceOutput = (pattern) => {
2667
+ let index = 0;
2668
+ const chars = [];
2669
+ while (index < pattern.length) {
2670
+ const match = parseRepeatedExtglob(pattern.slice(index), false);
2671
+ if (!match || match.type !== "*") {
2672
+ return;
2673
+ }
2674
+ const branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
2675
+ if (branches.length !== 1) {
2676
+ return;
2677
+ }
2678
+ const branch = normalizeSimpleBranch(branches[0]);
2679
+ if (!branch || branch.length !== 1) {
2680
+ return;
2681
+ }
2682
+ chars.push(branch);
2683
+ index += match.end + 1;
2684
+ }
2685
+ if (chars.length < 1) {
2686
+ return;
2687
+ }
2688
+ const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
2689
+ return `${source}*`;
2690
+ };
2691
+ var repeatedExtglobRecursion = (pattern) => {
2692
+ let depth = 0;
2693
+ let value = pattern.trim();
2694
+ let match = parseRepeatedExtglob(value);
2695
+ while (match) {
2696
+ depth++;
2697
+ value = match.body.trim();
2698
+ match = parseRepeatedExtglob(value);
2699
+ }
2700
+ return depth;
2701
+ };
2702
+ var analyzeRepeatedExtglob = (body, options) => {
2703
+ if (options.maxExtglobRecursion === false) {
2704
+ return { risky: false };
2705
+ }
2706
+ const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants2.DEFAULT_MAX_EXTGLOB_RECURSION;
2707
+ const branches = splitTopLevel(body).map((branch) => branch.trim());
2708
+ if (branches.length > 1) {
2709
+ if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
2710
+ return { risky: true };
2711
+ }
2712
+ }
2713
+ for (const branch of branches) {
2714
+ const safeOutput = getStarExtglobSequenceOutput(branch);
2715
+ if (safeOutput) {
2716
+ return { risky: true, safeOutput };
2717
+ }
2718
+ if (repeatedExtglobRecursion(branch) > max) {
2719
+ return { risky: true };
2720
+ }
2721
+ }
2722
+ return { risky: false };
2723
+ };
2513
2724
  var parse2 = (input, options) => {
2514
2725
  if (typeof input !== "string") {
2515
2726
  throw new TypeError("Expected a string");
@@ -2641,6 +2852,8 @@ var require_parse2 = __commonJS({
2641
2852
  token.prev = prev;
2642
2853
  token.parens = state.parens;
2643
2854
  token.output = state.output;
2855
+ token.startIndex = state.index;
2856
+ token.tokensIndex = tokens.length;
2644
2857
  const output = (opts.capture ? "(" : "") + token.open;
2645
2858
  increment("parens");
2646
2859
  push({ type, value: value2, output: state.output ? "" : ONE_CHAR });
@@ -2648,6 +2861,26 @@ var require_parse2 = __commonJS({
2648
2861
  extglobs.push(token);
2649
2862
  };
2650
2863
  const extglobClose = (token) => {
2864
+ const literal = input.slice(token.startIndex, state.index + 1);
2865
+ const body = input.slice(token.startIndex + 2, state.index);
2866
+ const analysis = analyzeRepeatedExtglob(body, opts);
2867
+ if ((token.type === "plus" || token.type === "star") && analysis.risky) {
2868
+ const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
2869
+ const open = tokens[token.tokensIndex];
2870
+ open.type = "text";
2871
+ open.value = literal;
2872
+ open.output = safeOutput || utils.escapeRegex(literal);
2873
+ for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
2874
+ tokens[i].value = "";
2875
+ tokens[i].output = "";
2876
+ delete tokens[i].suffix;
2877
+ }
2878
+ state.output = token.output + open.output;
2879
+ state.backtrack = true;
2880
+ push({ type: "paren", extglob: true, value, output: "" });
2881
+ decrement("parens");
2882
+ return;
2883
+ }
2651
2884
  let output = token.close + (opts.capture ? ")" : "");
2652
2885
  let rest;
2653
2886
  if (token.type === "negate") {
@@ -3254,9 +3487,9 @@ var require_parse2 = __commonJS({
3254
3487
  }
3255
3488
  });
3256
3489
 
3257
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js
3490
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js
3258
3491
  var require_picomatch = __commonJS({
3259
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module) {
3492
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js"(exports, module) {
3260
3493
  "use strict";
3261
3494
  init_utils();
3262
3495
  var path = __require("path");
@@ -3396,9 +3629,9 @@ var require_picomatch = __commonJS({
3396
3629
  }
3397
3630
  });
3398
3631
 
3399
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/index.js
3632
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js
3400
3633
  var require_picomatch2 = __commonJS({
3401
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/index.js"(exports, module) {
3634
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js"(exports, module) {
3402
3635
  "use strict";
3403
3636
  init_utils();
3404
3637
  module.exports = require_picomatch();