@donotdev/cli 0.1.0 → 0.1.42

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 (390) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +0 -0
  3. package/dependencies-matrix.json +175 -72
  4. package/dist/bin/commands/agent-setup.js +936 -428
  5. package/dist/bin/commands/build.js +4363 -883
  6. package/dist/bin/commands/bump.js +1296 -780
  7. package/dist/bin/commands/cacheout.js +494 -363
  8. package/dist/bin/commands/coach.js +632 -431
  9. package/dist/bin/commands/create-app.js +1316 -799
  10. package/dist/bin/commands/create-project.js +1355 -827
  11. package/dist/bin/commands/db.js +26158 -18868
  12. package/dist/bin/commands/deploy.js +5983 -1971
  13. package/dist/bin/commands/dev.js +1223 -657
  14. package/dist/bin/commands/doctor.js +1100 -528
  15. package/dist/bin/commands/emu.js +1380 -757
  16. package/dist/bin/commands/format.js +494 -363
  17. package/dist/bin/commands/get-demo.js +1210 -715
  18. package/dist/bin/commands/make-admin.js +16073 -8700
  19. package/dist/bin/commands/preview.js +1227 -658
  20. package/dist/bin/commands/seed.js +26171 -18881
  21. package/dist/bin/commands/setup-cicd.js +1475 -880
  22. package/dist/bin/commands/setup.js +1574 -956
  23. package/dist/bin/commands/staging.js +5984 -1972
  24. package/dist/bin/commands/sync-secrets.js +1423 -676
  25. package/dist/bin/commands/type-check.js +976 -469
  26. package/dist/bin/commands/wai.js +499 -368
  27. package/dist/bin/dndev.js +43 -19
  28. package/dist/bin/donotdev.js +43 -19
  29. package/dist/index.js +6166 -2133
  30. package/guidelines/DEPENDENCIES.md +155 -0
  31. package/{templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example → guidelines/VERSION_CONTROL.md} +7 -11
  32. package/package.json +2 -1
  33. package/templates/app-demo/.env.example +1 -1
  34. package/templates/app-demo/entities/Contact.ts.example +0 -0
  35. package/templates/app-demo/entities/ExampleEntity.ts.example +0 -0
  36. package/templates/app-demo/entities/demo.ts.example +0 -0
  37. package/templates/app-demo/index.html.example +0 -0
  38. package/templates/app-demo/public/apple-touch-icon.png.example +0 -0
  39. package/templates/app-demo/public/fonts/fonts.css.example +0 -0
  40. package/templates/app-demo/public/icon-192x192.png.example +0 -0
  41. package/templates/app-demo/public/icon-512x512.png.example +0 -0
  42. package/templates/app-demo/src/App.tsx.example +0 -0
  43. package/templates/app-demo/src/config/app.ts.example +0 -0
  44. package/templates/app-demo/src/entities/booking.ts.example +0 -0
  45. package/templates/app-demo/src/entities/onboarding.ts.example +0 -0
  46. package/templates/app-demo/src/entities/product.ts.example +0 -0
  47. package/templates/app-demo/src/entities/quote.ts.example +0 -0
  48. package/templates/app-demo/src/globals.css.example +0 -0
  49. package/templates/app-demo/src/main.tsx.example +0 -0
  50. package/templates/app-demo/src/pages/ChangelogPage.tsx.example +0 -0
  51. package/templates/app-demo/src/pages/ConditionalFormPage.tsx.example +0 -0
  52. package/templates/app-demo/src/pages/DashboardPage.tsx.example +0 -0
  53. package/templates/app-demo/src/pages/HomePage.tsx.example +0 -0
  54. package/templates/app-demo/src/pages/OnboardingPage.tsx.example +0 -0
  55. package/templates/app-demo/src/pages/PricingPage.tsx.example +0 -0
  56. package/templates/app-demo/src/pages/ProductsPage.tsx.example +0 -0
  57. package/templates/app-demo/src/pages/ProfilePage.tsx.example +0 -0
  58. package/templates/app-demo/src/pages/SettingsPage.tsx.example +0 -0
  59. package/templates/app-demo/src/pages/ShowcaseDetailPage.tsx.example +0 -0
  60. package/templates/app-demo/src/pages/ShowcasePage.tsx.example +0 -0
  61. package/templates/app-demo/src/pages/components/ComponentRenderer.tsx.example +0 -0
  62. package/templates/app-demo/src/pages/components/ComponentsData.tsx.example +0 -0
  63. package/templates/app-demo/src/pages/components/componentConfig.ts.example +0 -0
  64. package/templates/app-demo/src/pages/legal/LegalPage.tsx.example +0 -0
  65. package/templates/app-demo/src/pages/legal/PrivacyPage.tsx.example +0 -0
  66. package/templates/app-demo/src/pages/legal/TermsPage.tsx.example +0 -0
  67. package/templates/app-demo/src/themes.css.example +27 -0
  68. package/templates/app-demo/tsconfig.json.example +0 -0
  69. package/templates/app-demo/vite.config.ts.example +0 -0
  70. package/templates/app-dndev/index.html.example +0 -3
  71. package/templates/app-dndev/src/App.tsx.example +0 -0
  72. package/templates/app-dndev/src/components/CockpitLayout.css.example +0 -0
  73. package/templates/app-dndev/src/components/CockpitLayout.tsx.example +0 -0
  74. package/templates/app-dndev/src/components/Kanban.css.example +0 -0
  75. package/templates/app-dndev/src/components/ModeToggle.tsx.example +0 -0
  76. package/templates/app-dndev/src/components/OverlaySlot.tsx.example +0 -0
  77. package/templates/app-dndev/src/components/TerminalPanel.css.example +0 -0
  78. package/templates/app-dndev/src/components/TerminalPanel.tsx.example +0 -0
  79. package/templates/app-dndev/src/components/markdown-prose.css.example +0 -0
  80. package/templates/app-dndev/src/components/phases/CaptainLog.tsx.example +0 -0
  81. package/templates/app-dndev/src/components/phases/ContextTabs.tsx.example +0 -0
  82. package/templates/app-dndev/src/components/phases/PhaseCard.tsx.example +0 -0
  83. package/templates/app-dndev/src/components/phases/PhaseDetail.tsx.example +0 -0
  84. package/templates/app-dndev/src/components/phases/ReviewPanel.tsx.example +0 -0
  85. package/templates/app-dndev/src/components/phases/phaseData.ts.example +0 -0
  86. package/templates/app-dndev/src/config/app.ts.example +0 -0
  87. package/templates/app-dndev/src/config/commands.ts.example +0 -0
  88. package/templates/app-dndev/src/config/legal.ts.example +0 -0
  89. package/templates/app-dndev/src/config/providers.ts.example +1 -1
  90. package/templates/app-dndev/src/globals.css.example +0 -0
  91. package/templates/app-dndev/src/hooks/useDndevFile.ts.example +0 -0
  92. package/templates/app-dndev/src/main.tsx.example +0 -0
  93. package/templates/app-dndev/src/pages/BoardPage.tsx.example +0 -0
  94. package/templates/app-dndev/src/pages/GrillPage.tsx.example +0 -0
  95. package/templates/app-dndev/src/pages/HomePage.tsx.example +0 -0
  96. package/templates/app-dndev/src/pages/NotFoundPage.tsx.example +0 -0
  97. package/templates/app-dndev/src/pages/PhasesPage.tsx.example +0 -0
  98. package/templates/app-dndev/src/pages/SettingsPage.tsx.example +0 -0
  99. package/templates/app-dndev/src/pages/legal/LegalNoticePage.tsx.example +0 -0
  100. package/templates/app-dndev/src/pages/legal/PrivacyPage.tsx.example +0 -0
  101. package/templates/app-dndev/src/pages/legal/TermsPage.tsx.example +0 -0
  102. package/templates/app-dndev/src/stores/dndevStore.ts.example +0 -0
  103. package/templates/app-dndev/src/themes.css.example +26 -0
  104. package/templates/app-dndev/terminal-sidecar.cjs.example +0 -0
  105. package/templates/app-dndev/vite.config.ts.example +0 -0
  106. package/templates/app-expo/.env.example +0 -32
  107. package/templates/app-expo/.expo/README.md.example +0 -0
  108. package/templates/app-expo/.gitignore.example +0 -0
  109. package/templates/app-expo/README.md.example +1 -1
  110. package/templates/app-expo/app/.gitkeep +0 -0
  111. package/templates/app-expo/app/_layout.tsx.example +0 -0
  112. package/templates/app-expo/app/form.tsx.example +0 -0
  113. package/templates/app-expo/app/index.tsx.example +0 -0
  114. package/templates/app-expo/app/list.tsx.example +0 -0
  115. package/templates/app-expo/app/profile.tsx.example +0 -0
  116. package/templates/app-expo/app/signin.tsx.example +0 -0
  117. package/templates/app-expo/app.json.example +0 -0
  118. package/templates/app-expo/assets/adaptive-icon.png +0 -0
  119. package/templates/app-expo/assets/favicon.png +0 -0
  120. package/templates/app-expo/assets/icon.png +0 -0
  121. package/templates/app-expo/assets/splash.png +0 -0
  122. package/templates/app-expo/babel.config.js.example +0 -0
  123. package/templates/app-expo/eas.json.example +0 -0
  124. package/templates/app-expo/expo-env.d.ts.example +0 -0
  125. package/templates/app-expo/metro.config.js.example +0 -0
  126. package/templates/app-expo/service-account-key.json.example +1 -1
  127. package/templates/app-expo/src/config/app.ts.example +0 -0
  128. package/templates/app-expo/src/config/providers.ts.example +1 -1
  129. package/templates/app-expo/tsconfig.json.example +0 -0
  130. package/templates/app-next/.env.example +0 -33
  131. package/templates/app-next/next.config.ts.example +0 -2
  132. package/templates/app-next/postcss.config.js.example +0 -0
  133. package/templates/app-next/service-account-key.json.example +0 -0
  134. package/templates/app-next/src/app/ClientLayout.tsx.example +0 -0
  135. package/templates/app-next/src/app/layout.tsx.example +13 -4
  136. package/templates/app-next/src/app/not-found.tsx.example +0 -0
  137. package/templates/app-next/src/config/app.ts.example +0 -0
  138. package/templates/app-next/src/config/legal.ts.example +0 -0
  139. package/templates/app-next/src/config/providers.ts.example +1 -1
  140. package/templates/app-next/src/globals.css.example +0 -0
  141. package/templates/app-next/src/locales/dndev_en.json.example +0 -0
  142. package/templates/app-next/src/locales/home_en.json.example +6 -6
  143. package/templates/app-next/src/pages/HomePage.tsx.example +0 -0
  144. package/templates/app-next/src/pages/legal/LegalNoticePage.tsx.example +0 -0
  145. package/templates/app-next/src/pages/legal/PrivacyPage.tsx.example +0 -0
  146. package/templates/app-next/src/pages/legal/TermsPage.tsx.example +0 -0
  147. package/templates/app-next/src/pages/locales/example_en.json.example +0 -0
  148. package/templates/app-next/src/themes.css.example +28 -1
  149. package/templates/app-vite/.env.example +0 -33
  150. package/templates/app-vite/csp.example.json +44 -0
  151. package/templates/app-vite/index.html.example +0 -3
  152. package/templates/app-vite/service-account-key.json.example +0 -0
  153. package/templates/app-vite/src/App.tsx.example +0 -0
  154. package/templates/app-vite/src/config/app.ts.example +0 -0
  155. package/templates/app-vite/src/config/legal.ts.example +0 -0
  156. package/templates/app-vite/src/config/providers.ts.example +1 -1
  157. package/templates/app-vite/src/globals.css.example +0 -0
  158. package/templates/app-vite/src/locales/dndev_en.json.example +0 -0
  159. package/templates/app-vite/src/locales/home_en.json.example +6 -6
  160. package/templates/app-vite/src/main.tsx.example +0 -0
  161. package/templates/app-vite/src/pages/FormPageExample.tsx.example +0 -0
  162. package/templates/app-vite/src/pages/HomePage.tsx.example +1 -1
  163. package/templates/app-vite/src/pages/ListPageExample.tsx.example +0 -0
  164. package/templates/app-vite/src/pages/NotFoundPage.tsx.example +0 -0
  165. package/templates/app-vite/src/pages/legal/LegalNoticePage.tsx.example +0 -0
  166. package/templates/app-vite/src/pages/legal/PrivacyPage.tsx.example +0 -0
  167. package/templates/app-vite/src/pages/legal/TermsPage.tsx.example +0 -0
  168. package/templates/app-vite/src/pages/locales/example_en.json.example +0 -0
  169. package/templates/app-vite/src/themes.css.example +26 -0
  170. package/templates/deploy-config/.firebaserc.example +0 -0
  171. package/templates/deploy-config/firestore.indexes.json.example +0 -0
  172. package/templates/deploy-config/firestore.rules.example +0 -0
  173. package/templates/deploy-config/storage.rules.example +0 -0
  174. package/templates/deploy-config/tsconfig.functions.json.example +0 -0
  175. package/templates/deploy-config/vercel.json.example +2 -2
  176. package/templates/functions-firebase/.env.example +2 -2
  177. package/templates/functions-firebase/README.md.example +3 -3
  178. package/templates/functions-firebase/build.mjs.example +0 -0
  179. package/templates/functions-firebase/functions.config.js.example +0 -0
  180. package/templates/functions-firebase/functions.yaml.example +0 -0
  181. package/templates/functions-firebase/src/auth/getCustomClaims.ts.example +0 -0
  182. package/templates/functions-firebase/src/auth/getUserAuthStatus.ts.example +0 -0
  183. package/templates/functions-firebase/src/auth/index.ts.example +0 -0
  184. package/templates/functions-firebase/src/auth/removeCustomClaims.ts.example +0 -0
  185. package/templates/functions-firebase/src/auth/setCustomClaims.ts.example +0 -0
  186. package/templates/functions-firebase/src/billing/handleStripeWebhook.ts.example +0 -0
  187. package/templates/functions-firebase/src/billing/index.ts.example +0 -0
  188. package/templates/functions-firebase/src/billing/processPaymentSuccess.ts.example +0 -0
  189. package/templates/functions-firebase/src/billing/refreshSubscriptionStatus.ts.example +0 -0
  190. package/templates/functions-firebase/src/crud/createEntity.ts.example +0 -0
  191. package/templates/functions-firebase/src/crud/deleteEntity.ts.example +0 -0
  192. package/templates/functions-firebase/src/crud/getEntity.ts.example +0 -0
  193. package/templates/functions-firebase/src/crud/index.ts.example +0 -0
  194. package/templates/functions-firebase/src/crud/listEntities.ts.example +0 -0
  195. package/templates/functions-firebase/src/crud/updateEntity.ts.example +0 -0
  196. package/templates/functions-firebase/src/index.ts.example +0 -0
  197. package/templates/functions-firebase/src/oauth/checkGitHubAccess.ts.example +0 -0
  198. package/templates/functions-firebase/src/oauth/disconnect.ts.example +0 -0
  199. package/templates/functions-firebase/src/oauth/exchangeToken.ts.example +0 -0
  200. package/templates/functions-firebase/src/oauth/getConnections.ts.example +0 -0
  201. package/templates/functions-firebase/src/oauth/grantGitHubAccess.ts.example +0 -0
  202. package/templates/functions-firebase/src/oauth/index.ts.example +0 -0
  203. package/templates/functions-firebase/src/oauth/refreshToken.ts.example +0 -0
  204. package/templates/functions-firebase/src/oauth/revokeGitHubAccess.ts.example +0 -0
  205. package/templates/functions-firebase/tsconfig.json.example +0 -0
  206. package/templates/functions-supabase/supabase/config.toml.example +0 -0
  207. package/templates/functions-supabase/supabase/functions/.env.example +0 -0
  208. package/templates/functions-supabase/supabase/functions/cancel-subscription/index.ts.example +0 -0
  209. package/templates/functions-supabase/supabase/functions/change-plan/index.ts.example +0 -0
  210. package/templates/functions-supabase/supabase/functions/create-checkout-session/index.ts.example +0 -0
  211. package/templates/functions-supabase/supabase/functions/create-customer-portal/index.ts.example +0 -0
  212. package/templates/functions-supabase/supabase/functions/crud/index.ts.example +0 -0
  213. package/templates/functions-supabase/supabase/functions/delete-account/index.ts.example +0 -0
  214. package/templates/functions-supabase/supabase/functions/deno.json.example +0 -0
  215. package/templates/functions-supabase/supabase/functions/disconnect-oauth/index.ts.example +0 -0
  216. package/templates/functions-supabase/supabase/functions/exchange-token/index.ts.example +0 -0
  217. package/templates/functions-supabase/supabase/functions/get-connections/index.ts.example +0 -0
  218. package/templates/functions-supabase/supabase/functions/get-custom-claims/index.ts.example +0 -0
  219. package/templates/functions-supabase/supabase/functions/get-user-auth-status/index.ts.example +0 -0
  220. package/templates/functions-supabase/supabase/functions/refresh-subscription-status/index.ts.example +0 -0
  221. package/templates/functions-supabase/supabase/functions/refresh-token/index.ts.example +0 -0
  222. package/templates/functions-supabase/supabase/functions/remove-custom-claims/index.ts.example +0 -0
  223. package/templates/functions-supabase/supabase/functions/set-custom-claims/index.ts.example +0 -0
  224. package/templates/functions-supabase/supabase/migrations/20250101000000_idempotency.sql +3 -0
  225. package/templates/functions-supabase/supabase/migrations/20250101000001_rate_limits.sql +3 -0
  226. package/templates/functions-supabase/supabase/migrations/20250101000002_cleanup_jobs.sql +0 -0
  227. package/templates/functions-supabase/supabase/migrations/20250101000003_operation_metrics.sql +3 -0
  228. package/templates/functions-supabase/supabase/migrations/20250101000004_crud_bulk.sql +192 -0
  229. package/templates/functions-vercel/.env.example +3 -3
  230. package/templates/functions-vercel/README.md.example +2 -2
  231. package/templates/functions-vercel/build.mjs.example +0 -0
  232. package/templates/functions-vercel/src/api/auth/getCustomClaims.ts.example +0 -0
  233. package/templates/functions-vercel/src/api/auth/getUserAuthStatus.ts.example +0 -0
  234. package/templates/functions-vercel/src/api/auth/removeCustomClaims.ts.example +0 -0
  235. package/templates/functions-vercel/src/api/auth/setCustomClaims.ts.example +0 -0
  236. package/templates/functions-vercel/src/api/billing/handleStripeWebhook.ts.example +0 -0
  237. package/templates/functions-vercel/src/api/billing/processPaymentSuccess.ts.example +0 -0
  238. package/templates/functions-vercel/src/api/billing/refreshSubscriptionStatus.ts.example +0 -0
  239. package/templates/functions-vercel/src/api/crud/createEntity.ts.example +0 -0
  240. package/templates/functions-vercel/src/api/crud/deleteEntity.ts.example +0 -0
  241. package/templates/functions-vercel/src/api/crud/getEntity.ts.example +0 -0
  242. package/templates/functions-vercel/src/api/crud/listEntities.ts.example +0 -0
  243. package/templates/functions-vercel/src/api/crud/updateEntity.ts.example +0 -0
  244. package/templates/functions-vercel/src/api/oauth/checkGitHubAccess.ts.example +0 -0
  245. package/templates/functions-vercel/src/api/oauth/disconnect.ts.example +0 -0
  246. package/templates/functions-vercel/src/api/oauth/exchangeToken.ts.example +0 -0
  247. package/templates/functions-vercel/src/api/oauth/getConnections.ts.example +0 -0
  248. package/templates/functions-vercel/src/api/oauth/grantGitHubAccess.ts.example +0 -0
  249. package/templates/functions-vercel/src/api/oauth/refreshToken.ts.example +0 -0
  250. package/templates/functions-vercel/src/api/oauth/revokeGitHubAccess.ts.example +0 -0
  251. package/templates/functions-vercel/tsconfig.json.example +0 -0
  252. package/templates/functions-vercel/vercel.json.example +0 -0
  253. package/templates/github-consumer/.github/workflows/ci.yml.example +0 -0
  254. package/templates/overlay-firebase/env.fragment.example +0 -0
  255. package/templates/overlay-firebase/env.fragment.expo.example +0 -0
  256. package/templates/overlay-firebase/env.fragment.nextjs.example +0 -0
  257. package/templates/overlay-firebase/src/config/providers.expo.ts.example +0 -0
  258. package/templates/overlay-firebase/src/config/providers.ts.example +0 -0
  259. package/templates/overlay-supabase/env.fragment.example +0 -0
  260. package/templates/overlay-supabase/env.fragment.expo.example +0 -0
  261. package/templates/overlay-supabase/env.fragment.nextjs.example +0 -0
  262. package/templates/overlay-supabase/src/config/providers.expo.ts.example +1 -1
  263. package/templates/overlay-supabase/src/config/providers.ts.example +1 -1
  264. package/templates/overlay-vercel/env.fragment.example +0 -0
  265. package/templates/overlay-vercel/env.fragment.nextjs.example +0 -0
  266. package/templates/overlay-vercel/src/config/providers.ts.example +0 -0
  267. package/templates/preset-admin/src/pages/DashboardPage.tsx.example +0 -0
  268. package/templates/preset-admin/src/pages/EntityPage.tsx.example +0 -0
  269. package/templates/preset-admin/src/pages/ReportsPage.tsx.example +0 -0
  270. package/templates/preset-admin/src/pages/SettingsPage.tsx.example +0 -0
  271. package/templates/preset-admin/src/pages/UsersPage.tsx.example +0 -0
  272. package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +0 -0
  273. package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +0 -0
  274. package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +0 -0
  275. package/templates/preset-ecommerce/src/pages/HomePage.tsx.example +0 -0
  276. package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +0 -0
  277. package/templates/preset-landing/src/pages/AboutPage.tsx.example +0 -0
  278. package/templates/preset-landing/src/pages/ContactPage.tsx.example +0 -0
  279. package/templates/preset-landing/src/pages/HomePage.tsx.example +0 -0
  280. package/templates/preset-saas/src/pages/DashboardPage.tsx.example +0 -0
  281. package/templates/preset-saas/src/pages/HomePage.tsx.example +0 -0
  282. package/templates/preset-saas/src/pages/PricingPage.tsx.example +0 -0
  283. package/templates/preset-saas/src/pages/ProfilePage.tsx.example +0 -0
  284. package/templates/preset-saas/src/pages/SettingsPage.tsx.example +0 -0
  285. package/templates/root-consumer/.claude/agents/architect.md.example +0 -0
  286. package/templates/root-consumer/.claude/agents/builder.md.example +0 -0
  287. package/templates/root-consumer/.claude/agents/coder.md.example +0 -0
  288. package/templates/root-consumer/.claude/agents/extractor.md.example +0 -0
  289. package/templates/root-consumer/.claude/agents/polisher.md.example +0 -0
  290. package/templates/root-consumer/.claude/agents/prompt-engineer.md.example +0 -0
  291. package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +61 -0
  292. package/templates/root-consumer/.claude/hooks/guard-write.sh.example +56 -0
  293. package/templates/root-consumer/.claude/hooks/session-start.sh.example +50 -0
  294. package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +18 -0
  295. package/templates/root-consumer/.claude/rules/consumer-ux.md.example +32 -0
  296. package/templates/root-consumer/.claude/rules/definition-of-done.md.example +32 -0
  297. package/templates/root-consumer/.claude/rules/framework.md.example +39 -0
  298. package/templates/root-consumer/.claude/rules/git.md.example +14 -0
  299. package/templates/root-consumer/.claude/rules/security.md.example +13 -0
  300. package/templates/root-consumer/.claude/settings.json.example +100 -4
  301. package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +0 -0
  302. package/templates/root-consumer/.claude/skills/build/SKILL.md.example +22 -27
  303. package/templates/root-consumer/.claude/skills/design/SKILL.md.example +0 -0
  304. package/templates/root-consumer/.claude/skills/design/output-template.md +0 -0
  305. package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +26 -15
  306. package/templates/root-consumer/.claude/skills/polish/SKILL.md.example +50 -37
  307. package/templates/root-consumer/.claude/skills/techdebt/SKILL.md.example +0 -0
  308. package/templates/root-consumer/.cursor/mcp.json.example +0 -0
  309. package/templates/root-consumer/.cursor/rules/no-docs.mdc.example +5 -1
  310. package/templates/root-consumer/.dndev/args.json.example +0 -0
  311. package/templates/root-consumer/.dndev.secrets.example +0 -0
  312. package/templates/root-consumer/.env.example +0 -1
  313. package/templates/root-consumer/.gemini/settings.json.example +0 -0
  314. package/templates/root-consumer/.gitignore.example +1 -0
  315. package/templates/root-consumer/.mcp.json.example +0 -0
  316. package/templates/root-consumer/.prettierrc.cjs.example +0 -0
  317. package/templates/root-consumer/AGENTS.md.example +63 -0
  318. package/templates/root-consumer/CLAUDE.md.example +1 -1
  319. package/templates/root-consumer/README.md.example +11 -33
  320. package/templates/root-consumer/entities/index.ts.example +0 -0
  321. package/templates/root-consumer/eslint.config.js.example +0 -0
  322. package/templates/root-consumer/tsconfig.json.example +0 -0
  323. package/templates/app-demo/public/manifest.json.example +0 -10
  324. package/templates/app-dndev/public/manifest.json.example +0 -10
  325. package/templates/root-consumer/.claude/commands/brainstorm.md.example +0 -175
  326. package/templates/root-consumer/.claude/commands/build.md.example +0 -131
  327. package/templates/root-consumer/.claude/commands/design.md.example +0 -184
  328. package/templates/root-consumer/.claude/commands/grill.md.example +0 -135
  329. package/templates/root-consumer/.claude/commands/polish.md.example +0 -146
  330. package/templates/root-consumer/.claude/commands/techdebt.md.example +0 -28
  331. package/templates/root-consumer/.claude/statusline.py.example +0 -79
  332. package/templates/root-consumer/.clinerules.example +0 -1
  333. package/templates/root-consumer/.cursorrules.example +0 -1
  334. package/templates/root-consumer/.github/copilot-instructions.md.example +0 -1
  335. package/templates/root-consumer/.windsurfrules.example +0 -1
  336. package/templates/root-consumer/AI.md.example +0 -108
  337. package/templates/root-consumer/CONVENTIONS.md.example +0 -1
  338. package/templates/root-consumer/GEMINI.md.example +0 -1
  339. package/templates/root-consumer/guides/dndev/AGENT_START_HERE.md.example +0 -135
  340. package/templates/root-consumer/guides/dndev/COMPONENTS_ADV.md.example +0 -276
  341. package/templates/root-consumer/guides/dndev/COMPONENTS_ATOMIC.md.example +0 -180
  342. package/templates/root-consumer/guides/dndev/COMPONENTS_CRUD.md.example +0 -234
  343. package/templates/root-consumer/guides/dndev/COMPONENTS_UI.md.example +0 -136
  344. package/templates/root-consumer/guides/dndev/COMPONENT_API.md.example +0 -195
  345. package/templates/root-consumer/guides/dndev/ENV_SETUP.md.example +0 -219
  346. package/templates/root-consumer/guides/dndev/GOTCHAS.md.example +0 -197
  347. package/templates/root-consumer/guides/dndev/INDEX.md.example +0 -60
  348. package/templates/root-consumer/guides/dndev/SETUP_APP_CONFIG.md.example +0 -132
  349. package/templates/root-consumer/guides/dndev/SETUP_AUTH.md.example +0 -133
  350. package/templates/root-consumer/guides/dndev/SETUP_BILLING.md.example +0 -114
  351. package/templates/root-consumer/guides/dndev/SETUP_BLOG.md.example +0 -280
  352. package/templates/root-consumer/guides/dndev/SETUP_CICD.md.example +0 -115
  353. package/templates/root-consumer/guides/dndev/SETUP_CRUD.md.example +0 -334
  354. package/templates/root-consumer/guides/dndev/SETUP_FIREBASE.md.example +0 -231
  355. package/templates/root-consumer/guides/dndev/SETUP_FUNCTIONS.md.example +0 -9
  356. package/templates/root-consumer/guides/dndev/SETUP_I18N.md.example +0 -233
  357. package/templates/root-consumer/guides/dndev/SETUP_LAYOUTS.md.example +0 -158
  358. package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +0 -54
  359. package/templates/root-consumer/guides/dndev/SETUP_OAUTH_PROVIDERS.md.example +0 -60
  360. package/templates/root-consumer/guides/dndev/SETUP_PAGES.md.example +0 -205
  361. package/templates/root-consumer/guides/dndev/SETUP_PWA.md.example +0 -213
  362. package/templates/root-consumer/guides/dndev/SETUP_SOC2.md.example +0 -234
  363. package/templates/root-consumer/guides/dndev/SETUP_STRIPE.md.example +0 -62
  364. package/templates/root-consumer/guides/dndev/SETUP_SUPABASE.md.example +0 -215
  365. package/templates/root-consumer/guides/dndev/SETUP_TESTING.md.example +0 -184
  366. package/templates/root-consumer/guides/dndev/SETUP_THEMES.md.example +0 -111
  367. package/templates/root-consumer/guides/dndev/SETUP_VERCEL.md.example +0 -260
  368. package/templates/root-consumer/guides/dndev/USE_ROUTING.md.example +0 -499
  369. package/templates/root-consumer/guides/dndev/advanced/APP_CHECK.md.example +0 -111
  370. package/templates/root-consumer/guides/dndev/advanced/COOKIE_REFERENCE.md.example +0 -252
  371. package/templates/root-consumer/guides/dndev/advanced/EMULATORS.md.example +0 -48
  372. package/templates/root-consumer/guides/dndev/essences_reference.css.example +0 -288
  373. package/templates/root-consumer/guides/wai-way/WAI_WAY_CLI.md.example +0 -402
  374. package/templates/root-consumer/guides/wai-way/agents/architect.md.example +0 -78
  375. package/templates/root-consumer/guides/wai-way/agents/builder.md.example +0 -97
  376. package/templates/root-consumer/guides/wai-way/agents/extractor.md.example +0 -363
  377. package/templates/root-consumer/guides/wai-way/agents/polisher.md.example +0 -133
  378. package/templates/root-consumer/guides/wai-way/blueprints/0_brainstorm.md.example +0 -315
  379. package/templates/root-consumer/guides/wai-way/blueprints/1_scaffold.md.example +0 -133
  380. package/templates/root-consumer/guides/wai-way/blueprints/2_entities.md.example +0 -111
  381. package/templates/root-consumer/guides/wai-way/blueprints/3_compose.md.example +0 -150
  382. package/templates/root-consumer/guides/wai-way/blueprints/4_configure.md.example +0 -238
  383. package/templates/root-consumer/guides/wai-way/context_map.json.example +0 -127
  384. package/templates/root-consumer/guides/wai-way/entity_patterns.md.example +0 -839
  385. package/templates/root-consumer/guides/wai-way/hld_template.md.example +0 -138
  386. package/templates/root-consumer/guides/wai-way/lld_template.md.example +0 -103
  387. package/templates/root-consumer/guides/wai-way/page_patterns.md.example +0 -722
  388. package/templates/root-consumer/guides/wai-way/prd_template.md.example +0 -140
  389. package/templates/root-consumer/guides/wai-way/presets_guide.md.example +0 -217
  390. package/templates/root-consumer/guides/wai-way/spec_template.md.example +0 -313
@@ -4,11 +4,11 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __require = /* @__PURE__ */ ((x2) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x2, {
8
- get: (a, b3) => (typeof require !== "undefined" ? require : a)[b3]
9
- }) : x2)(function(x2) {
7
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
+ }) : x)(function(x) {
10
10
  if (typeof require !== "undefined") return require.apply(this, arguments);
11
- throw Error('Dynamic require of "' + x2 + '" is not supported');
11
+ throw Error('Dynamic require of "' + x + '" is not supported');
12
12
  });
13
13
  var __esm = (fn, res) => function __init() {
14
14
  return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
@@ -33,50 +33,456 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  mod
34
34
  ));
35
35
 
36
+ // node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/utils.js
37
+ var isAmbiguous, isFullWidth, isWide;
38
+ var init_utils = __esm({
39
+ "node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/utils.js"() {
40
+ init_utils2();
41
+ isAmbiguous = (x) => {
42
+ return x === 161 || x === 164 || x === 167 || x === 168 || x === 170 || x === 173 || x === 174 || x >= 176 && x <= 180 || x >= 182 && x <= 186 || x >= 188 && x <= 191 || x === 198 || x === 208 || x === 215 || x === 216 || x >= 222 && x <= 225 || x === 230 || x >= 232 && x <= 234 || x === 236 || x === 237 || x === 240 || x === 242 || x === 243 || x >= 247 && x <= 250 || x === 252 || x === 254 || x === 257 || x === 273 || x === 275 || x === 283 || x === 294 || x === 295 || x === 299 || x >= 305 && x <= 307 || x === 312 || x >= 319 && x <= 322 || x === 324 || x >= 328 && x <= 331 || x === 333 || x === 338 || x === 339 || x === 358 || x === 359 || x === 363 || x === 462 || x === 464 || x === 466 || x === 468 || x === 470 || x === 472 || x === 474 || x === 476 || x === 593 || x === 609 || x === 708 || x === 711 || x >= 713 && x <= 715 || x === 717 || x === 720 || x >= 728 && x <= 731 || x === 733 || x === 735 || x >= 768 && x <= 879 || x >= 913 && x <= 929 || x >= 931 && x <= 937 || x >= 945 && x <= 961 || x >= 963 && x <= 969 || x === 1025 || x >= 1040 && x <= 1103 || x === 1105 || x === 8208 || x >= 8211 && x <= 8214 || x === 8216 || x === 8217 || x === 8220 || x === 8221 || x >= 8224 && x <= 8226 || x >= 8228 && x <= 8231 || x === 8240 || x === 8242 || x === 8243 || x === 8245 || x === 8251 || x === 8254 || x === 8308 || x === 8319 || x >= 8321 && x <= 8324 || x === 8364 || x === 8451 || x === 8453 || x === 8457 || x === 8467 || x === 8470 || x === 8481 || x === 8482 || x === 8486 || x === 8491 || x === 8531 || x === 8532 || x >= 8539 && x <= 8542 || x >= 8544 && x <= 8555 || x >= 8560 && x <= 8569 || x === 8585 || x >= 8592 && x <= 8601 || x === 8632 || x === 8633 || x === 8658 || x === 8660 || x === 8679 || x === 8704 || x === 8706 || x === 8707 || x === 8711 || x === 8712 || x === 8715 || x === 8719 || x === 8721 || x === 8725 || x === 8730 || x >= 8733 && x <= 8736 || x === 8739 || x === 8741 || x >= 8743 && x <= 8748 || x === 8750 || x >= 8756 && x <= 8759 || x === 8764 || x === 8765 || x === 8776 || x === 8780 || x === 8786 || x === 8800 || x === 8801 || x >= 8804 && x <= 8807 || x === 8810 || x === 8811 || x === 8814 || x === 8815 || x === 8834 || x === 8835 || x === 8838 || x === 8839 || x === 8853 || x === 8857 || x === 8869 || x === 8895 || x === 8978 || x >= 9312 && x <= 9449 || x >= 9451 && x <= 9547 || x >= 9552 && x <= 9587 || x >= 9600 && x <= 9615 || x >= 9618 && x <= 9621 || x === 9632 || x === 9633 || x >= 9635 && x <= 9641 || x === 9650 || x === 9651 || x === 9654 || x === 9655 || x === 9660 || x === 9661 || x === 9664 || x === 9665 || x >= 9670 && x <= 9672 || x === 9675 || x >= 9678 && x <= 9681 || x >= 9698 && x <= 9701 || x === 9711 || x === 9733 || x === 9734 || x === 9737 || x === 9742 || x === 9743 || x === 9756 || x === 9758 || x === 9792 || x === 9794 || x === 9824 || x === 9825 || x >= 9827 && x <= 9829 || x >= 9831 && x <= 9834 || x === 9836 || x === 9837 || x === 9839 || x === 9886 || x === 9887 || x === 9919 || x >= 9926 && x <= 9933 || x >= 9935 && x <= 9939 || x >= 9941 && x <= 9953 || x === 9955 || x === 9960 || x === 9961 || x >= 9963 && x <= 9969 || x === 9972 || x >= 9974 && x <= 9977 || x === 9979 || x === 9980 || x === 9982 || x === 9983 || x === 10045 || x >= 10102 && x <= 10111 || x >= 11094 && x <= 11097 || x >= 12872 && x <= 12879 || x >= 57344 && x <= 63743 || x >= 65024 && x <= 65039 || x === 65533 || x >= 127232 && x <= 127242 || x >= 127248 && x <= 127277 || x >= 127280 && x <= 127337 || x >= 127344 && x <= 127373 || x === 127375 || x === 127376 || x >= 127387 && x <= 127404 || x >= 917760 && x <= 917999 || x >= 983040 && x <= 1048573 || x >= 1048576 && x <= 1114109;
43
+ };
44
+ isFullWidth = (x) => {
45
+ return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
46
+ };
47
+ isWide = (x) => {
48
+ return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9800 && x <= 9811 || x === 9855 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12771 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 19903 || x >= 19968 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101632 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129672 || x >= 129680 && x <= 129725 || x >= 129727 && x <= 129733 || x >= 129742 && x <= 129755 || x >= 129760 && x <= 129768 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
49
+ };
50
+ }
51
+ });
52
+
53
+ // node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/index.js
54
+ var ANSI_RE, CONTROL_RE, TAB_RE, EMOJI_RE, LATIN_RE, MODIFIER_RE, NO_TRUNCATION, getStringTruncatedWidth, dist_default;
55
+ var init_dist = __esm({
56
+ "node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/index.js"() {
57
+ init_utils2();
58
+ init_utils();
59
+ ANSI_RE = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y;
60
+ CONTROL_RE = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
61
+ TAB_RE = /\t{1,1000}/y;
62
+ EMOJI_RE = new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*", "yu");
63
+ LATIN_RE = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
64
+ MODIFIER_RE = new RegExp("\\p{M}+", "gu");
65
+ NO_TRUNCATION = { limit: Infinity, ellipsis: "" };
66
+ getStringTruncatedWidth = (input, truncationOptions = {}, widthOptions = {}) => {
67
+ const LIMIT = truncationOptions.limit ?? Infinity;
68
+ const ELLIPSIS = truncationOptions.ellipsis ?? "";
69
+ const ELLIPSIS_WIDTH = truncationOptions?.ellipsisWidth ?? (ELLIPSIS ? getStringTruncatedWidth(ELLIPSIS, NO_TRUNCATION, widthOptions).width : 0);
70
+ const ANSI_WIDTH = widthOptions.ansiWidth ?? 0;
71
+ const CONTROL_WIDTH = widthOptions.controlWidth ?? 0;
72
+ const TAB_WIDTH = widthOptions.tabWidth ?? 8;
73
+ const AMBIGUOUS_WIDTH = widthOptions.ambiguousWidth ?? 1;
74
+ const EMOJI_WIDTH = widthOptions.emojiWidth ?? 2;
75
+ const FULL_WIDTH_WIDTH = widthOptions.fullWidthWidth ?? 2;
76
+ const REGULAR_WIDTH = widthOptions.regularWidth ?? 1;
77
+ const WIDE_WIDTH = widthOptions.wideWidth ?? 2;
78
+ let indexPrev = 0;
79
+ let index = 0;
80
+ let length = input.length;
81
+ let lengthExtra = 0;
82
+ let truncationEnabled = false;
83
+ let truncationIndex = length;
84
+ let truncationLimit = Math.max(0, LIMIT - ELLIPSIS_WIDTH);
85
+ let unmatchedStart = 0;
86
+ let unmatchedEnd = 0;
87
+ let width = 0;
88
+ let widthExtra = 0;
89
+ outer: while (true) {
90
+ if (unmatchedEnd > unmatchedStart || index >= length && index > indexPrev) {
91
+ const unmatched = input.slice(unmatchedStart, unmatchedEnd) || input.slice(indexPrev, index);
92
+ lengthExtra = 0;
93
+ for (const char of unmatched.replaceAll(MODIFIER_RE, "")) {
94
+ const codePoint = char.codePointAt(0) || 0;
95
+ if (isFullWidth(codePoint)) {
96
+ widthExtra = FULL_WIDTH_WIDTH;
97
+ } else if (isWide(codePoint)) {
98
+ widthExtra = WIDE_WIDTH;
99
+ } else if (AMBIGUOUS_WIDTH !== REGULAR_WIDTH && isAmbiguous(codePoint)) {
100
+ widthExtra = AMBIGUOUS_WIDTH;
101
+ } else {
102
+ widthExtra = REGULAR_WIDTH;
103
+ }
104
+ if (width + widthExtra > truncationLimit) {
105
+ truncationIndex = Math.min(truncationIndex, Math.max(unmatchedStart, indexPrev) + lengthExtra);
106
+ }
107
+ if (width + widthExtra > LIMIT) {
108
+ truncationEnabled = true;
109
+ break outer;
110
+ }
111
+ lengthExtra += char.length;
112
+ width += widthExtra;
113
+ }
114
+ unmatchedStart = unmatchedEnd = 0;
115
+ }
116
+ if (index >= length)
117
+ break;
118
+ LATIN_RE.lastIndex = index;
119
+ if (LATIN_RE.test(input)) {
120
+ lengthExtra = LATIN_RE.lastIndex - index;
121
+ widthExtra = lengthExtra * REGULAR_WIDTH;
122
+ if (width + widthExtra > truncationLimit) {
123
+ truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / REGULAR_WIDTH));
124
+ }
125
+ if (width + widthExtra > LIMIT) {
126
+ truncationEnabled = true;
127
+ break;
128
+ }
129
+ width += widthExtra;
130
+ unmatchedStart = indexPrev;
131
+ unmatchedEnd = index;
132
+ index = indexPrev = LATIN_RE.lastIndex;
133
+ continue;
134
+ }
135
+ ANSI_RE.lastIndex = index;
136
+ if (ANSI_RE.test(input)) {
137
+ if (width + ANSI_WIDTH > truncationLimit) {
138
+ truncationIndex = Math.min(truncationIndex, index);
139
+ }
140
+ if (width + ANSI_WIDTH > LIMIT) {
141
+ truncationEnabled = true;
142
+ break;
143
+ }
144
+ width += ANSI_WIDTH;
145
+ unmatchedStart = indexPrev;
146
+ unmatchedEnd = index;
147
+ index = indexPrev = ANSI_RE.lastIndex;
148
+ continue;
149
+ }
150
+ CONTROL_RE.lastIndex = index;
151
+ if (CONTROL_RE.test(input)) {
152
+ lengthExtra = CONTROL_RE.lastIndex - index;
153
+ widthExtra = lengthExtra * CONTROL_WIDTH;
154
+ if (width + widthExtra > truncationLimit) {
155
+ truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / CONTROL_WIDTH));
156
+ }
157
+ if (width + widthExtra > LIMIT) {
158
+ truncationEnabled = true;
159
+ break;
160
+ }
161
+ width += widthExtra;
162
+ unmatchedStart = indexPrev;
163
+ unmatchedEnd = index;
164
+ index = indexPrev = CONTROL_RE.lastIndex;
165
+ continue;
166
+ }
167
+ TAB_RE.lastIndex = index;
168
+ if (TAB_RE.test(input)) {
169
+ lengthExtra = TAB_RE.lastIndex - index;
170
+ widthExtra = lengthExtra * TAB_WIDTH;
171
+ if (width + widthExtra > truncationLimit) {
172
+ truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / TAB_WIDTH));
173
+ }
174
+ if (width + widthExtra > LIMIT) {
175
+ truncationEnabled = true;
176
+ break;
177
+ }
178
+ width += widthExtra;
179
+ unmatchedStart = indexPrev;
180
+ unmatchedEnd = index;
181
+ index = indexPrev = TAB_RE.lastIndex;
182
+ continue;
183
+ }
184
+ EMOJI_RE.lastIndex = index;
185
+ if (EMOJI_RE.test(input)) {
186
+ if (width + EMOJI_WIDTH > truncationLimit) {
187
+ truncationIndex = Math.min(truncationIndex, index);
188
+ }
189
+ if (width + EMOJI_WIDTH > LIMIT) {
190
+ truncationEnabled = true;
191
+ break;
192
+ }
193
+ width += EMOJI_WIDTH;
194
+ unmatchedStart = indexPrev;
195
+ unmatchedEnd = index;
196
+ index = indexPrev = EMOJI_RE.lastIndex;
197
+ continue;
198
+ }
199
+ index += 1;
200
+ }
201
+ return {
202
+ width: truncationEnabled ? truncationLimit : width,
203
+ index: truncationEnabled ? truncationIndex : length,
204
+ truncated: truncationEnabled,
205
+ ellipsed: truncationEnabled && LIMIT >= ELLIPSIS_WIDTH
206
+ };
207
+ };
208
+ dist_default = getStringTruncatedWidth;
209
+ }
210
+ });
211
+
212
+ // node_modules/.bun/fast-string-width@1.1.0/node_modules/fast-string-width/dist/index.js
213
+ var NO_TRUNCATION2, fastStringWidth, dist_default2;
214
+ var init_dist2 = __esm({
215
+ "node_modules/.bun/fast-string-width@1.1.0/node_modules/fast-string-width/dist/index.js"() {
216
+ init_utils2();
217
+ init_dist();
218
+ NO_TRUNCATION2 = {
219
+ limit: Infinity,
220
+ ellipsis: "",
221
+ ellipsisWidth: 0
222
+ };
223
+ fastStringWidth = (input, options = {}) => {
224
+ return dist_default(input, NO_TRUNCATION2, options).width;
225
+ };
226
+ dist_default2 = fastStringWidth;
227
+ }
228
+ });
229
+
230
+ // node_modules/.bun/fast-wrap-ansi@0.1.6/node_modules/fast-wrap-ansi/lib/main.js
231
+ function wrapAnsi(string, columns, options) {
232
+ return String(string).normalize().split(CRLF_OR_LF).map((line) => exec(line, columns, options)).join("\n");
233
+ }
234
+ var ESC, CSI, END_CODE, ANSI_ESCAPE_BELL, ANSI_CSI, ANSI_OSC, ANSI_SGR_TERMINATOR, ANSI_ESCAPE_LINK, GROUP_REGEX, getClosingCode, wrapAnsiCode, wrapAnsiHyperlink, wrapWord, stringVisibleTrimSpacesRight, exec, CRLF_OR_LF;
235
+ var init_main = __esm({
236
+ "node_modules/.bun/fast-wrap-ansi@0.1.6/node_modules/fast-wrap-ansi/lib/main.js"() {
237
+ init_utils2();
238
+ init_dist2();
239
+ ESC = "\x1B";
240
+ CSI = "\x9B";
241
+ END_CODE = 39;
242
+ ANSI_ESCAPE_BELL = "\x07";
243
+ ANSI_CSI = "[";
244
+ ANSI_OSC = "]";
245
+ ANSI_SGR_TERMINATOR = "m";
246
+ ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
247
+ GROUP_REGEX = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`, "y");
248
+ getClosingCode = (openingCode) => {
249
+ if (openingCode >= 30 && openingCode <= 37)
250
+ return 39;
251
+ if (openingCode >= 90 && openingCode <= 97)
252
+ return 39;
253
+ if (openingCode >= 40 && openingCode <= 47)
254
+ return 49;
255
+ if (openingCode >= 100 && openingCode <= 107)
256
+ return 49;
257
+ if (openingCode === 1 || openingCode === 2)
258
+ return 22;
259
+ if (openingCode === 3)
260
+ return 23;
261
+ if (openingCode === 4)
262
+ return 24;
263
+ if (openingCode === 7)
264
+ return 27;
265
+ if (openingCode === 8)
266
+ return 28;
267
+ if (openingCode === 9)
268
+ return 29;
269
+ if (openingCode === 0)
270
+ return 0;
271
+ return void 0;
272
+ };
273
+ wrapAnsiCode = (code) => `${ESC}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
274
+ wrapAnsiHyperlink = (url) => `${ESC}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`;
275
+ wrapWord = (rows, word, columns) => {
276
+ const characters = word[Symbol.iterator]();
277
+ let isInsideEscape = false;
278
+ let isInsideLinkEscape = false;
279
+ let lastRow = rows.at(-1);
280
+ let visible = lastRow === void 0 ? 0 : dist_default2(lastRow);
281
+ let currentCharacter = characters.next();
282
+ let nextCharacter = characters.next();
283
+ let rawCharacterIndex = 0;
284
+ while (!currentCharacter.done) {
285
+ const character = currentCharacter.value;
286
+ const characterLength = dist_default2(character);
287
+ if (visible + characterLength <= columns) {
288
+ rows[rows.length - 1] += character;
289
+ } else {
290
+ rows.push(character);
291
+ visible = 0;
292
+ }
293
+ if (character === ESC || character === CSI) {
294
+ isInsideEscape = true;
295
+ isInsideLinkEscape = word.startsWith(ANSI_ESCAPE_LINK, rawCharacterIndex + 1);
296
+ }
297
+ if (isInsideEscape) {
298
+ if (isInsideLinkEscape) {
299
+ if (character === ANSI_ESCAPE_BELL) {
300
+ isInsideEscape = false;
301
+ isInsideLinkEscape = false;
302
+ }
303
+ } else if (character === ANSI_SGR_TERMINATOR) {
304
+ isInsideEscape = false;
305
+ }
306
+ } else {
307
+ visible += characterLength;
308
+ if (visible === columns && !nextCharacter.done) {
309
+ rows.push("");
310
+ visible = 0;
311
+ }
312
+ }
313
+ currentCharacter = nextCharacter;
314
+ nextCharacter = characters.next();
315
+ rawCharacterIndex += character.length;
316
+ }
317
+ lastRow = rows.at(-1);
318
+ if (!visible && lastRow !== void 0 && lastRow.length && rows.length > 1) {
319
+ rows[rows.length - 2] += rows.pop();
320
+ }
321
+ };
322
+ stringVisibleTrimSpacesRight = (string) => {
323
+ const words = string.split(" ");
324
+ let last = words.length;
325
+ while (last) {
326
+ if (dist_default2(words[last - 1])) {
327
+ break;
328
+ }
329
+ last--;
330
+ }
331
+ if (last === words.length) {
332
+ return string;
333
+ }
334
+ return words.slice(0, last).join(" ") + words.slice(last).join("");
335
+ };
336
+ exec = (string, columns, options = {}) => {
337
+ if (options.trim !== false && string.trim() === "") {
338
+ return "";
339
+ }
340
+ let returnValue = "";
341
+ let escapeCode;
342
+ let escapeUrl;
343
+ const words = string.split(" ");
344
+ let rows = [""];
345
+ let rowLength = 0;
346
+ for (let index = 0; index < words.length; index++) {
347
+ const word = words[index];
348
+ if (options.trim !== false) {
349
+ const row = rows.at(-1) ?? "";
350
+ const trimmed = row.trimStart();
351
+ if (row.length !== trimmed.length) {
352
+ rows[rows.length - 1] = trimmed;
353
+ rowLength = dist_default2(trimmed);
354
+ }
355
+ }
356
+ if (index !== 0) {
357
+ if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
358
+ rows.push("");
359
+ rowLength = 0;
360
+ }
361
+ if (rowLength || options.trim === false) {
362
+ rows[rows.length - 1] += " ";
363
+ rowLength++;
364
+ }
365
+ }
366
+ const wordLength = dist_default2(word);
367
+ if (options.hard && wordLength > columns) {
368
+ const remainingColumns = columns - rowLength;
369
+ const breaksStartingThisLine = 1 + Math.floor((wordLength - remainingColumns - 1) / columns);
370
+ const breaksStartingNextLine = Math.floor((wordLength - 1) / columns);
371
+ if (breaksStartingNextLine < breaksStartingThisLine) {
372
+ rows.push("");
373
+ }
374
+ wrapWord(rows, word, columns);
375
+ rowLength = dist_default2(rows.at(-1) ?? "");
376
+ continue;
377
+ }
378
+ if (rowLength + wordLength > columns && rowLength && wordLength) {
379
+ if (options.wordWrap === false && rowLength < columns) {
380
+ wrapWord(rows, word, columns);
381
+ rowLength = dist_default2(rows.at(-1) ?? "");
382
+ continue;
383
+ }
384
+ rows.push("");
385
+ rowLength = 0;
386
+ }
387
+ if (rowLength + wordLength > columns && options.wordWrap === false) {
388
+ wrapWord(rows, word, columns);
389
+ rowLength = dist_default2(rows.at(-1) ?? "");
390
+ continue;
391
+ }
392
+ rows[rows.length - 1] += word;
393
+ rowLength += wordLength;
394
+ }
395
+ if (options.trim !== false) {
396
+ rows = rows.map((row) => stringVisibleTrimSpacesRight(row));
397
+ }
398
+ const preString = rows.join("\n");
399
+ let inSurrogate = false;
400
+ for (let i = 0; i < preString.length; i++) {
401
+ const character = preString[i];
402
+ returnValue += character;
403
+ if (!inSurrogate) {
404
+ inSurrogate = character >= "\uD800" && character <= "\uDBFF";
405
+ } else {
406
+ continue;
407
+ }
408
+ if (character === ESC || character === CSI) {
409
+ GROUP_REGEX.lastIndex = i + 1;
410
+ const groupsResult = GROUP_REGEX.exec(preString);
411
+ const groups = groupsResult?.groups;
412
+ if (groups?.code !== void 0) {
413
+ const code = Number.parseFloat(groups.code);
414
+ escapeCode = code === END_CODE ? void 0 : code;
415
+ } else if (groups?.uri !== void 0) {
416
+ escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
417
+ }
418
+ }
419
+ if (preString[i + 1] === "\n") {
420
+ if (escapeUrl) {
421
+ returnValue += wrapAnsiHyperlink("");
422
+ }
423
+ const closingCode = escapeCode ? getClosingCode(escapeCode) : void 0;
424
+ if (escapeCode && closingCode) {
425
+ returnValue += wrapAnsiCode(closingCode);
426
+ }
427
+ } else if (character === "\n") {
428
+ if (escapeCode && getClosingCode(escapeCode)) {
429
+ returnValue += wrapAnsiCode(escapeCode);
430
+ }
431
+ if (escapeUrl) {
432
+ returnValue += wrapAnsiHyperlink(escapeUrl);
433
+ }
434
+ }
435
+ }
436
+ return returnValue;
437
+ };
438
+ CRLF_OR_LF = /\r?\n/;
439
+ }
440
+ });
441
+
36
442
  // node_modules/.bun/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
37
443
  var require_src = __commonJS({
38
444
  "node_modules/.bun/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports, module) {
39
445
  "use strict";
40
- init_utils();
41
- var ESC = "\x1B";
42
- var CSI = `${ESC}[`;
446
+ init_utils2();
447
+ var ESC2 = "\x1B";
448
+ var CSI2 = `${ESC2}[`;
43
449
  var beep = "\x07";
44
450
  var cursor = {
45
- to(x2, y3) {
46
- if (!y3) return `${CSI}${x2 + 1}G`;
47
- return `${CSI}${y3 + 1};${x2 + 1}H`;
451
+ to(x, y2) {
452
+ if (!y2) return `${CSI2}${x + 1}G`;
453
+ return `${CSI2}${y2 + 1};${x + 1}H`;
48
454
  },
49
- move(x2, y3) {
455
+ move(x, y2) {
50
456
  let ret = "";
51
- if (x2 < 0) ret += `${CSI}${-x2}D`;
52
- else if (x2 > 0) ret += `${CSI}${x2}C`;
53
- if (y3 < 0) ret += `${CSI}${-y3}A`;
54
- else if (y3 > 0) ret += `${CSI}${y3}B`;
457
+ if (x < 0) ret += `${CSI2}${-x}D`;
458
+ else if (x > 0) ret += `${CSI2}${x}C`;
459
+ if (y2 < 0) ret += `${CSI2}${-y2}A`;
460
+ else if (y2 > 0) ret += `${CSI2}${y2}B`;
55
461
  return ret;
56
462
  },
57
- up: (count = 1) => `${CSI}${count}A`,
58
- down: (count = 1) => `${CSI}${count}B`,
59
- forward: (count = 1) => `${CSI}${count}C`,
60
- backward: (count = 1) => `${CSI}${count}D`,
61
- nextLine: (count = 1) => `${CSI}E`.repeat(count),
62
- prevLine: (count = 1) => `${CSI}F`.repeat(count),
63
- left: `${CSI}G`,
64
- hide: `${CSI}?25l`,
65
- show: `${CSI}?25h`,
66
- save: `${ESC}7`,
67
- restore: `${ESC}8`
463
+ up: (count = 1) => `${CSI2}${count}A`,
464
+ down: (count = 1) => `${CSI2}${count}B`,
465
+ forward: (count = 1) => `${CSI2}${count}C`,
466
+ backward: (count = 1) => `${CSI2}${count}D`,
467
+ nextLine: (count = 1) => `${CSI2}E`.repeat(count),
468
+ prevLine: (count = 1) => `${CSI2}F`.repeat(count),
469
+ left: `${CSI2}G`,
470
+ hide: `${CSI2}?25l`,
471
+ show: `${CSI2}?25h`,
472
+ save: `${ESC2}7`,
473
+ restore: `${ESC2}8`
68
474
  };
69
475
  var scroll = {
70
- up: (count = 1) => `${CSI}S`.repeat(count),
71
- down: (count = 1) => `${CSI}T`.repeat(count)
476
+ up: (count = 1) => `${CSI2}S`.repeat(count),
477
+ down: (count = 1) => `${CSI2}T`.repeat(count)
72
478
  };
73
479
  var erase = {
74
- screen: `${CSI}2J`,
75
- up: (count = 1) => `${CSI}1J`.repeat(count),
76
- down: (count = 1) => `${CSI}J`.repeat(count),
77
- line: `${CSI}2K`,
78
- lineEnd: `${CSI}K`,
79
- lineStart: `${CSI}1K`,
480
+ screen: `${CSI2}2J`,
481
+ up: (count = 1) => `${CSI2}1J`.repeat(count),
482
+ down: (count = 1) => `${CSI2}J`.repeat(count),
483
+ line: `${CSI2}2K`,
484
+ lineEnd: `${CSI2}K`,
485
+ lineStart: `${CSI2}1K`,
80
486
  lines(count) {
81
487
  let clear = "";
82
488
  for (let i = 0; i < count; i++)
@@ -90,671 +496,539 @@ var require_src = __commonJS({
90
496
  }
91
497
  });
92
498
 
93
- // node_modules/.bun/picocolors@1.1.1/node_modules/picocolors/picocolors.js
94
- var require_picocolors = __commonJS({
95
- "node_modules/.bun/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(exports, module) {
96
- init_utils();
97
- var p2 = process || {};
98
- var argv = p2.argv || [];
99
- var env = p2.env || {};
100
- var isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p2.platform === "win32" || (p2.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
101
- var formatter = (open, close, replace = open) => (input) => {
102
- let string = "" + input, index = string.indexOf(close, open.length);
103
- return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
104
- };
105
- var replaceClose = (string, close, replace, index) => {
106
- let result = "", cursor = 0;
107
- do {
108
- result += string.substring(cursor, index) + replace;
109
- cursor = index + close.length;
110
- index = string.indexOf(close, cursor);
111
- } while (~index);
112
- return result + string.substring(cursor);
113
- };
114
- var createColors = (enabled = isColorSupported) => {
115
- let f = enabled ? formatter : () => String;
116
- return {
117
- isColorSupported: enabled,
118
- reset: f("\x1B[0m", "\x1B[0m"),
119
- bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
120
- dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
121
- italic: f("\x1B[3m", "\x1B[23m"),
122
- underline: f("\x1B[4m", "\x1B[24m"),
123
- inverse: f("\x1B[7m", "\x1B[27m"),
124
- hidden: f("\x1B[8m", "\x1B[28m"),
125
- strikethrough: f("\x1B[9m", "\x1B[29m"),
126
- black: f("\x1B[30m", "\x1B[39m"),
127
- red: f("\x1B[31m", "\x1B[39m"),
128
- green: f("\x1B[32m", "\x1B[39m"),
129
- yellow: f("\x1B[33m", "\x1B[39m"),
130
- blue: f("\x1B[34m", "\x1B[39m"),
131
- magenta: f("\x1B[35m", "\x1B[39m"),
132
- cyan: f("\x1B[36m", "\x1B[39m"),
133
- white: f("\x1B[37m", "\x1B[39m"),
134
- gray: f("\x1B[90m", "\x1B[39m"),
135
- bgBlack: f("\x1B[40m", "\x1B[49m"),
136
- bgRed: f("\x1B[41m", "\x1B[49m"),
137
- bgGreen: f("\x1B[42m", "\x1B[49m"),
138
- bgYellow: f("\x1B[43m", "\x1B[49m"),
139
- bgBlue: f("\x1B[44m", "\x1B[49m"),
140
- bgMagenta: f("\x1B[45m", "\x1B[49m"),
141
- bgCyan: f("\x1B[46m", "\x1B[49m"),
142
- bgWhite: f("\x1B[47m", "\x1B[49m"),
143
- blackBright: f("\x1B[90m", "\x1B[39m"),
144
- redBright: f("\x1B[91m", "\x1B[39m"),
145
- greenBright: f("\x1B[92m", "\x1B[39m"),
146
- yellowBright: f("\x1B[93m", "\x1B[39m"),
147
- blueBright: f("\x1B[94m", "\x1B[39m"),
148
- magentaBright: f("\x1B[95m", "\x1B[39m"),
149
- cyanBright: f("\x1B[96m", "\x1B[39m"),
150
- whiteBright: f("\x1B[97m", "\x1B[39m"),
151
- bgBlackBright: f("\x1B[100m", "\x1B[49m"),
152
- bgRedBright: f("\x1B[101m", "\x1B[49m"),
153
- bgGreenBright: f("\x1B[102m", "\x1B[49m"),
154
- bgYellowBright: f("\x1B[103m", "\x1B[49m"),
155
- bgBlueBright: f("\x1B[104m", "\x1B[49m"),
156
- bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
157
- bgCyanBright: f("\x1B[106m", "\x1B[49m"),
158
- bgWhiteBright: f("\x1B[107m", "\x1B[49m")
159
- };
160
- };
161
- module.exports = createColors();
162
- module.exports.createColors = createColors;
163
- }
164
- });
165
-
166
- // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
167
- import { stdin as j, stdout as M } from "node:process";
168
- import * as g from "node:readline";
169
- import O from "node:readline";
170
- import { Writable as X } from "node:stream";
171
- function DD({ onlyFirst: e2 = false } = {}) {
172
- const t = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
173
- return new RegExp(t, e2 ? void 0 : "g");
174
- }
175
- function P(e2) {
176
- if (typeof e2 != "string") throw new TypeError(`Expected a \`string\`, got \`${typeof e2}\``);
177
- return e2.replace(uD, "");
178
- }
179
- function L(e2) {
180
- return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
181
- }
182
- function p(e2, u2 = {}) {
183
- if (typeof e2 != "string" || e2.length === 0 || (u2 = { ambiguousIsNarrow: true, ...u2 }, e2 = P(e2), e2.length === 0)) return 0;
184
- e2 = e2.replace(sD(), " ");
185
- const t = u2.ambiguousIsNarrow ? 1 : 2;
186
- let F2 = 0;
187
- for (const s of e2) {
188
- const i = s.codePointAt(0);
189
- if (i <= 31 || i >= 127 && i <= 159 || i >= 768 && i <= 879) continue;
190
- switch (eD.eastAsianWidth(s)) {
191
- case "F":
192
- case "W":
193
- F2 += 2;
194
- break;
195
- case "A":
196
- F2 += t;
197
- break;
198
- default:
199
- F2 += 1;
200
- }
201
- }
202
- return F2;
203
- }
204
- function rD() {
205
- const e2 = /* @__PURE__ */ new Map();
206
- for (const [u2, t] of Object.entries(r)) {
207
- for (const [F2, s] of Object.entries(t)) r[F2] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` }, t[F2] = r[F2], e2.set(s[0], s[1]);
208
- Object.defineProperty(r, u2, { value: t, enumerable: false });
209
- }
210
- return Object.defineProperty(r, "codes", { value: e2, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = N(), r.color.ansi256 = I(), r.color.ansi16m = R(), r.bgColor.ansi = N(w), r.bgColor.ansi256 = I(w), r.bgColor.ansi16m = R(w), Object.defineProperties(r, { rgbToAnsi256: { value: (u2, t, F2) => u2 === t && t === F2 ? u2 < 8 ? 16 : u2 > 248 ? 231 : Math.round((u2 - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u2 / 255 * 5) + 6 * Math.round(t / 255 * 5) + Math.round(F2 / 255 * 5), enumerable: false }, hexToRgb: { value: (u2) => {
211
- const t = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u2.toString(16));
212
- if (!t) return [0, 0, 0];
213
- let [F2] = t;
214
- F2.length === 3 && (F2 = [...F2].map((i) => i + i).join(""));
215
- const s = Number.parseInt(F2, 16);
216
- return [s >> 16 & 255, s >> 8 & 255, s & 255];
217
- }, enumerable: false }, hexToAnsi256: { value: (u2) => r.rgbToAnsi256(...r.hexToRgb(u2)), enumerable: false }, ansi256ToAnsi: { value: (u2) => {
218
- if (u2 < 8) return 30 + u2;
219
- if (u2 < 16) return 90 + (u2 - 8);
220
- let t, F2, s;
221
- if (u2 >= 232) t = ((u2 - 232) * 10 + 8) / 255, F2 = t, s = t;
222
- else {
223
- u2 -= 16;
224
- const C2 = u2 % 36;
225
- t = Math.floor(u2 / 36) / 5, F2 = Math.floor(C2 / 6) / 5, s = C2 % 6 / 5;
226
- }
227
- const i = Math.max(t, F2, s) * 2;
228
- if (i === 0) return 30;
229
- let D2 = 30 + (Math.round(s) << 2 | Math.round(F2) << 1 | Math.round(t));
230
- return i === 2 && (D2 += 60), D2;
231
- }, enumerable: false }, rgbToAnsi: { value: (u2, t, F2) => r.ansi256ToAnsi(r.rgbToAnsi256(u2, t, F2)), enumerable: false }, hexToAnsi: { value: (u2) => r.ansi256ToAnsi(r.hexToAnsi256(u2)), enumerable: false } }), r;
499
+ // node_modules/.bun/@clack+core@1.2.0/node_modules/@clack/core/dist/index.mjs
500
+ import { styleText as y } from "node:util";
501
+ import { stdout as S, stdin as $ } from "node:process";
502
+ import * as _ from "node:readline";
503
+ import P from "node:readline";
504
+ import { ReadStream as D } from "node:tty";
505
+ function d(r, t2, e) {
506
+ if (!e.some((o) => !o.disabled)) return r;
507
+ const s = r + t2, i = Math.max(e.length - 1, 0), n = s < 0 ? i : s > i ? 0 : s;
508
+ return e[n].disabled ? d(n, t2 < 0 ? -1 : 1, e) : n;
232
509
  }
233
- function Y(e2, u2, t) {
234
- return String(e2).normalize().replace(/\r\n/g, `
235
- `).split(`
236
- `).map((F2) => lD(F2, u2, t)).join(`
237
- `);
238
- }
239
- function $(e2, u2) {
240
- if (typeof e2 == "string") return B.aliases.get(e2) === u2;
241
- for (const t of e2) if (t !== void 0 && $(t, u2)) return true;
510
+ function V(r, t2) {
511
+ if (typeof r == "string") return u.aliases.get(r) === t2;
512
+ for (const e of r) if (e !== void 0 && V(e, t2)) return true;
242
513
  return false;
243
514
  }
244
- function BD(e2, u2) {
245
- if (e2 === u2) return;
246
- const t = e2.split(`
247
- `), F2 = u2.split(`
248
- `), s = [];
249
- for (let i = 0; i < Math.max(t.length, F2.length); i++) t[i] !== F2[i] && s.push(i);
250
- return s;
515
+ function j(r, t2) {
516
+ if (r === t2) return;
517
+ const e = r.split(`
518
+ `), s = t2.split(`
519
+ `), i = Math.max(e.length, s.length), n = [];
520
+ for (let o = 0; o < i; o++) e[o] !== s[o] && n.push(o);
521
+ return { lines: n, numLinesBefore: e.length, numLinesAfter: s.length, numLines: i };
251
522
  }
252
- function pD(e2) {
253
- return e2 === S;
523
+ function q(r) {
524
+ return r === C;
254
525
  }
255
- function m(e2, u2) {
256
- const t = e2;
257
- t.isTTY && t.setRawMode(u2);
526
+ function w(r, t2) {
527
+ const e = r;
528
+ e.isTTY && e.setRawMode(t2);
258
529
  }
259
- function fD({ input: e2 = j, output: u2 = M, overwrite: t = true, hideCursor: F2 = true } = {}) {
260
- const s = g.createInterface({ input: e2, output: u2, prompt: "", tabSize: 1 });
261
- g.emitKeypressEvents(e2, s), e2.isTTY && e2.setRawMode(true);
262
- const i = (D2, { name: C2, sequence: n }) => {
263
- const E = String(D2);
264
- if ($([E, C2, n], "cancel")) {
265
- F2 && u2.write(import_sisteransi.cursor.show), process.exit(0);
530
+ function z({ input: r = $, output: t2 = S, overwrite: e = true, hideCursor: s = true } = {}) {
531
+ const i = _.createInterface({ input: r, output: t2, prompt: "", tabSize: 1 });
532
+ _.emitKeypressEvents(r, i), r instanceof D && r.isTTY && r.setRawMode(true);
533
+ const n = (o, { name: a, sequence: h }) => {
534
+ const l = String(o);
535
+ if (V([l, a, h], "cancel")) {
536
+ s && t2.write(import_sisteransi.cursor.show), process.exit(0);
266
537
  return;
267
538
  }
268
- if (!t) return;
269
- const a = C2 === "return" ? 0 : -1, o2 = C2 === "return" ? -1 : 0;
270
- g.moveCursor(u2, a, o2, () => {
271
- g.clearLine(u2, 1, () => {
272
- e2.once("keypress", i);
539
+ if (!e) return;
540
+ const f = a === "return" ? 0 : -1, v = a === "return" ? -1 : 0;
541
+ _.moveCursor(t2, f, v, () => {
542
+ _.clearLine(t2, 1, () => {
543
+ r.once("keypress", n);
273
544
  });
274
545
  });
275
546
  };
276
- return F2 && u2.write(import_sisteransi.cursor.hide), e2.once("keypress", i), () => {
277
- e2.off("keypress", i), F2 && u2.write(import_sisteransi.cursor.show), e2.isTTY && !AD && e2.setRawMode(false), s.terminal = false, s.close();
547
+ return s && t2.write(import_sisteransi.cursor.hide), r.once("keypress", n), () => {
548
+ r.off("keypress", n), s && t2.write(import_sisteransi.cursor.show), r instanceof D && r.isTTY && !Y && r.setRawMode(false), i.terminal = false, i.close();
278
549
  };
279
550
  }
280
- var import_sisteransi, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, d, oD, y, V, nD, G, _, z, K, aD, k, hD, lD, xD, B, AD, S, gD, vD, h, x, dD, A, OD, PD, J, LD;
281
- var init_dist = __esm({
282
- "node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
283
- init_utils();
551
+ function R(r, t2, e, s = e) {
552
+ const i = O(r ?? S);
553
+ return wrapAnsi(t2, i - e.length, { hard: true, trim: false }).split(`
554
+ `).map((n, o) => `${o === 0 ? s : e}${n}`).join(`
555
+ `);
556
+ }
557
+ var import_sisteransi, E, G, u, Y, C, O, A, p, Q, nt;
558
+ var init_dist3 = __esm({
559
+ "node_modules/.bun/@clack+core@1.2.0/node_modules/@clack/core/dist/index.mjs"() {
560
+ init_utils2();
561
+ init_main();
284
562
  import_sisteransi = __toESM(require_src(), 1);
285
- uD = DD();
286
- W = { exports: {} };
287
- (function(e2) {
288
- var u2 = {};
289
- e2.exports = u2, u2.eastAsianWidth = function(F2) {
290
- var s = F2.charCodeAt(0), i = F2.length == 2 ? F2.charCodeAt(1) : 0, D2 = s;
291
- return 55296 <= s && s <= 56319 && 56320 <= i && i <= 57343 && (s &= 1023, i &= 1023, D2 = s << 10 | i, D2 += 65536), D2 == 12288 || 65281 <= D2 && D2 <= 65376 || 65504 <= D2 && D2 <= 65510 ? "F" : D2 == 8361 || 65377 <= D2 && D2 <= 65470 || 65474 <= D2 && D2 <= 65479 || 65482 <= D2 && D2 <= 65487 || 65490 <= D2 && D2 <= 65495 || 65498 <= D2 && D2 <= 65500 || 65512 <= D2 && D2 <= 65518 ? "H" : 4352 <= D2 && D2 <= 4447 || 4515 <= D2 && D2 <= 4519 || 4602 <= D2 && D2 <= 4607 || 9001 <= D2 && D2 <= 9002 || 11904 <= D2 && D2 <= 11929 || 11931 <= D2 && D2 <= 12019 || 12032 <= D2 && D2 <= 12245 || 12272 <= D2 && D2 <= 12283 || 12289 <= D2 && D2 <= 12350 || 12353 <= D2 && D2 <= 12438 || 12441 <= D2 && D2 <= 12543 || 12549 <= D2 && D2 <= 12589 || 12593 <= D2 && D2 <= 12686 || 12688 <= D2 && D2 <= 12730 || 12736 <= D2 && D2 <= 12771 || 12784 <= D2 && D2 <= 12830 || 12832 <= D2 && D2 <= 12871 || 12880 <= D2 && D2 <= 13054 || 13056 <= D2 && D2 <= 19903 || 19968 <= D2 && D2 <= 42124 || 42128 <= D2 && D2 <= 42182 || 43360 <= D2 && D2 <= 43388 || 44032 <= D2 && D2 <= 55203 || 55216 <= D2 && D2 <= 55238 || 55243 <= D2 && D2 <= 55291 || 63744 <= D2 && D2 <= 64255 || 65040 <= D2 && D2 <= 65049 || 65072 <= D2 && D2 <= 65106 || 65108 <= D2 && D2 <= 65126 || 65128 <= D2 && D2 <= 65131 || 110592 <= D2 && D2 <= 110593 || 127488 <= D2 && D2 <= 127490 || 127504 <= D2 && D2 <= 127546 || 127552 <= D2 && D2 <= 127560 || 127568 <= D2 && D2 <= 127569 || 131072 <= D2 && D2 <= 194367 || 177984 <= D2 && D2 <= 196605 || 196608 <= D2 && D2 <= 262141 ? "W" : 32 <= D2 && D2 <= 126 || 162 <= D2 && D2 <= 163 || 165 <= D2 && D2 <= 166 || D2 == 172 || D2 == 175 || 10214 <= D2 && D2 <= 10221 || 10629 <= D2 && D2 <= 10630 ? "Na" : D2 == 161 || D2 == 164 || 167 <= D2 && D2 <= 168 || D2 == 170 || 173 <= D2 && D2 <= 174 || 176 <= D2 && D2 <= 180 || 182 <= D2 && D2 <= 186 || 188 <= D2 && D2 <= 191 || D2 == 198 || D2 == 208 || 215 <= D2 && D2 <= 216 || 222 <= D2 && D2 <= 225 || D2 == 230 || 232 <= D2 && D2 <= 234 || 236 <= D2 && D2 <= 237 || D2 == 240 || 242 <= D2 && D2 <= 243 || 247 <= D2 && D2 <= 250 || D2 == 252 || D2 == 254 || D2 == 257 || D2 == 273 || D2 == 275 || D2 == 283 || 294 <= D2 && D2 <= 295 || D2 == 299 || 305 <= D2 && D2 <= 307 || D2 == 312 || 319 <= D2 && D2 <= 322 || D2 == 324 || 328 <= D2 && D2 <= 331 || D2 == 333 || 338 <= D2 && D2 <= 339 || 358 <= D2 && D2 <= 359 || D2 == 363 || D2 == 462 || D2 == 464 || D2 == 466 || D2 == 468 || D2 == 470 || D2 == 472 || D2 == 474 || D2 == 476 || D2 == 593 || D2 == 609 || D2 == 708 || D2 == 711 || 713 <= D2 && D2 <= 715 || D2 == 717 || D2 == 720 || 728 <= D2 && D2 <= 731 || D2 == 733 || D2 == 735 || 768 <= D2 && D2 <= 879 || 913 <= D2 && D2 <= 929 || 931 <= D2 && D2 <= 937 || 945 <= D2 && D2 <= 961 || 963 <= D2 && D2 <= 969 || D2 == 1025 || 1040 <= D2 && D2 <= 1103 || D2 == 1105 || D2 == 8208 || 8211 <= D2 && D2 <= 8214 || 8216 <= D2 && D2 <= 8217 || 8220 <= D2 && D2 <= 8221 || 8224 <= D2 && D2 <= 8226 || 8228 <= D2 && D2 <= 8231 || D2 == 8240 || 8242 <= D2 && D2 <= 8243 || D2 == 8245 || D2 == 8251 || D2 == 8254 || D2 == 8308 || D2 == 8319 || 8321 <= D2 && D2 <= 8324 || D2 == 8364 || D2 == 8451 || D2 == 8453 || D2 == 8457 || D2 == 8467 || D2 == 8470 || 8481 <= D2 && D2 <= 8482 || D2 == 8486 || D2 == 8491 || 8531 <= D2 && D2 <= 8532 || 8539 <= D2 && D2 <= 8542 || 8544 <= D2 && D2 <= 8555 || 8560 <= D2 && D2 <= 8569 || D2 == 8585 || 8592 <= D2 && D2 <= 8601 || 8632 <= D2 && D2 <= 8633 || D2 == 8658 || D2 == 8660 || D2 == 8679 || D2 == 8704 || 8706 <= D2 && D2 <= 8707 || 8711 <= D2 && D2 <= 8712 || D2 == 8715 || D2 == 8719 || D2 == 8721 || D2 == 8725 || D2 == 8730 || 8733 <= D2 && D2 <= 8736 || D2 == 8739 || D2 == 8741 || 8743 <= D2 && D2 <= 8748 || D2 == 8750 || 8756 <= D2 && D2 <= 8759 || 8764 <= D2 && D2 <= 8765 || D2 == 8776 || D2 == 8780 || D2 == 8786 || 8800 <= D2 && D2 <= 8801 || 8804 <= D2 && D2 <= 8807 || 8810 <= D2 && D2 <= 8811 || 8814 <= D2 && D2 <= 8815 || 8834 <= D2 && D2 <= 8835 || 8838 <= D2 && D2 <= 8839 || D2 == 8853 || D2 == 8857 || D2 == 8869 || D2 == 8895 || D2 == 8978 || 9312 <= D2 && D2 <= 9449 || 9451 <= D2 && D2 <= 9547 || 9552 <= D2 && D2 <= 9587 || 9600 <= D2 && D2 <= 9615 || 9618 <= D2 && D2 <= 9621 || 9632 <= D2 && D2 <= 9633 || 9635 <= D2 && D2 <= 9641 || 9650 <= D2 && D2 <= 9651 || 9654 <= D2 && D2 <= 9655 || 9660 <= D2 && D2 <= 9661 || 9664 <= D2 && D2 <= 9665 || 9670 <= D2 && D2 <= 9672 || D2 == 9675 || 9678 <= D2 && D2 <= 9681 || 9698 <= D2 && D2 <= 9701 || D2 == 9711 || 9733 <= D2 && D2 <= 9734 || D2 == 9737 || 9742 <= D2 && D2 <= 9743 || 9748 <= D2 && D2 <= 9749 || D2 == 9756 || D2 == 9758 || D2 == 9792 || D2 == 9794 || 9824 <= D2 && D2 <= 9825 || 9827 <= D2 && D2 <= 9829 || 9831 <= D2 && D2 <= 9834 || 9836 <= D2 && D2 <= 9837 || D2 == 9839 || 9886 <= D2 && D2 <= 9887 || 9918 <= D2 && D2 <= 9919 || 9924 <= D2 && D2 <= 9933 || 9935 <= D2 && D2 <= 9953 || D2 == 9955 || 9960 <= D2 && D2 <= 9983 || D2 == 10045 || D2 == 10071 || 10102 <= D2 && D2 <= 10111 || 11093 <= D2 && D2 <= 11097 || 12872 <= D2 && D2 <= 12879 || 57344 <= D2 && D2 <= 63743 || 65024 <= D2 && D2 <= 65039 || D2 == 65533 || 127232 <= D2 && D2 <= 127242 || 127248 <= D2 && D2 <= 127277 || 127280 <= D2 && D2 <= 127337 || 127344 <= D2 && D2 <= 127386 || 917760 <= D2 && D2 <= 917999 || 983040 <= D2 && D2 <= 1048573 || 1048576 <= D2 && D2 <= 1114109 ? "A" : "N";
292
- }, u2.characterLength = function(F2) {
293
- var s = this.eastAsianWidth(F2);
294
- return s == "F" || s == "W" || s == "A" ? 2 : 1;
295
- };
296
- function t(F2) {
297
- return F2.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
298
- }
299
- u2.length = function(F2) {
300
- for (var s = t(F2), i = 0, D2 = 0; D2 < s.length; D2++) i = i + this.characterLength(s[D2]);
301
- return i;
302
- }, u2.slice = function(F2, s, i) {
303
- textLen = u2.length(F2), s = s || 0, i = i || 1, s < 0 && (s = textLen + s), i < 0 && (i = textLen + i);
304
- for (var D2 = "", C2 = 0, n = t(F2), E = 0; E < n.length; E++) {
305
- var a = n[E], o2 = u2.length(a);
306
- if (C2 >= s - (o2 == 2 ? 1 : 0)) if (C2 + o2 <= i) D2 += a;
307
- else break;
308
- C2 += o2;
309
- }
310
- return D2;
311
- };
312
- })(W);
313
- tD = W.exports;
314
- eD = L(tD);
315
- FD = function() {
316
- return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
317
- };
318
- sD = L(FD);
319
- w = 10;
320
- N = (e2 = 0) => (u2) => `\x1B[${u2 + e2}m`;
321
- I = (e2 = 0) => (u2) => `\x1B[${38 + e2};5;${u2}m`;
322
- R = (e2 = 0) => (u2, t, F2) => `\x1B[${38 + e2};2;${u2};${t};${F2}m`;
323
- r = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], overline: [53, 55], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], blackBright: [90, 39], gray: [90, 39], grey: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgGray: [100, 49], bgGrey: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] } };
324
- Object.keys(r.modifier);
325
- iD = Object.keys(r.color);
326
- CD = Object.keys(r.bgColor);
327
- [...iD, ...CD];
328
- ED = rD();
329
- d = /* @__PURE__ */ new Set(["\x1B", "\x9B"]);
330
- oD = 39;
331
- y = "\x07";
332
- V = "[";
333
- nD = "]";
334
- G = "m";
335
- _ = `${nD}8;;`;
336
- z = (e2) => `${d.values().next().value}${V}${e2}${G}`;
337
- K = (e2) => `${d.values().next().value}${_}${e2}${y}`;
338
- aD = (e2) => e2.split(" ").map((u2) => p(u2));
339
- k = (e2, u2, t) => {
340
- const F2 = [...u2];
341
- let s = false, i = false, D2 = p(P(e2[e2.length - 1]));
342
- for (const [C2, n] of F2.entries()) {
343
- const E = p(n);
344
- if (D2 + E <= t ? e2[e2.length - 1] += n : (e2.push(n), D2 = 0), d.has(n) && (s = true, i = F2.slice(C2 + 1).join("").startsWith(_)), s) {
345
- i ? n === y && (s = false, i = false) : n === G && (s = false);
346
- continue;
347
- }
348
- D2 += E, D2 === t && C2 < F2.length - 1 && (e2.push(""), D2 = 0);
349
- }
350
- !D2 && e2[e2.length - 1].length > 0 && e2.length > 1 && (e2[e2.length - 2] += e2.pop());
351
- };
352
- hD = (e2) => {
353
- const u2 = e2.split(" ");
354
- let t = u2.length;
355
- for (; t > 0 && !(p(u2[t - 1]) > 0); ) t--;
356
- return t === u2.length ? e2 : u2.slice(0, t).join(" ") + u2.slice(t).join("");
357
- };
358
- lD = (e2, u2, t = {}) => {
359
- if (t.trim !== false && e2.trim() === "") return "";
360
- let F2 = "", s, i;
361
- const D2 = aD(e2);
362
- let C2 = [""];
363
- for (const [E, a] of e2.split(" ").entries()) {
364
- t.trim !== false && (C2[C2.length - 1] = C2[C2.length - 1].trimStart());
365
- let o2 = p(C2[C2.length - 1]);
366
- if (E !== 0 && (o2 >= u2 && (t.wordWrap === false || t.trim === false) && (C2.push(""), o2 = 0), (o2 > 0 || t.trim === false) && (C2[C2.length - 1] += " ", o2++)), t.hard && D2[E] > u2) {
367
- const c = u2 - o2, f = 1 + Math.floor((D2[E] - c - 1) / u2);
368
- Math.floor((D2[E] - 1) / u2) < f && C2.push(""), k(C2, a, u2);
369
- continue;
370
- }
371
- if (o2 + D2[E] > u2 && o2 > 0 && D2[E] > 0) {
372
- if (t.wordWrap === false && o2 < u2) {
373
- k(C2, a, u2);
374
- continue;
375
- }
376
- C2.push("");
377
- }
378
- if (o2 + D2[E] > u2 && t.wordWrap === false) {
379
- k(C2, a, u2);
380
- continue;
381
- }
382
- C2[C2.length - 1] += a;
383
- }
384
- t.trim !== false && (C2 = C2.map((E) => hD(E)));
385
- const n = [...C2.join(`
386
- `)];
387
- for (const [E, a] of n.entries()) {
388
- if (F2 += a, d.has(a)) {
389
- const { groups: c } = new RegExp(`(?:\\${V}(?<code>\\d+)m|\\${_}(?<uri>.*)${y})`).exec(n.slice(E).join("")) || { groups: {} };
390
- if (c.code !== void 0) {
391
- const f = Number.parseFloat(c.code);
392
- s = f === oD ? void 0 : f;
393
- } else c.uri !== void 0 && (i = c.uri.length === 0 ? void 0 : c.uri);
394
- }
395
- const o2 = ED.codes.get(Number(s));
396
- n[E + 1] === `
397
- ` ? (i && (F2 += K("")), s && o2 && (F2 += z(o2))) : a === `
398
- ` && (s && o2 && (F2 += z(s)), i && (F2 += K(i)));
399
- }
400
- return F2;
401
- };
402
- xD = ["up", "down", "left", "right", "space", "enter", "cancel"];
403
- B = { actions: new Set(xD), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]) };
404
- AD = globalThis.process.platform.startsWith("win");
405
- S = /* @__PURE__ */ Symbol("clack:cancel");
406
- gD = Object.defineProperty;
407
- vD = (e2, u2, t) => u2 in e2 ? gD(e2, u2, { enumerable: true, configurable: true, writable: true, value: t }) : e2[u2] = t;
408
- h = (e2, u2, t) => (vD(e2, typeof u2 != "symbol" ? u2 + "" : u2, t), t);
409
- x = class {
410
- constructor(u2, t = true) {
411
- h(this, "input"), h(this, "output"), h(this, "_abortSignal"), h(this, "rl"), h(this, "opts"), h(this, "_render"), h(this, "_track", false), h(this, "_prevFrame", ""), h(this, "_subscribers", /* @__PURE__ */ new Map()), h(this, "_cursor", 0), h(this, "state", "initial"), h(this, "error", ""), h(this, "value");
412
- const { input: F2 = j, output: s = M, render: i, signal: D2, ...C2 } = u2;
413
- this.opts = C2, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = i.bind(this), this._track = t, this._abortSignal = D2, this.input = F2, this.output = s;
563
+ E = ["up", "down", "left", "right", "space", "enter", "cancel"];
564
+ G = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
565
+ u = { actions: new Set(E), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]), messages: { cancel: "Canceled", error: "Something went wrong" }, withGuide: true, date: { monthNames: [...G], messages: { required: "Please enter a valid date", invalidMonth: "There are only 12 months in a year", invalidDay: (r, t2) => `There are only ${r} days in ${t2}`, afterMin: (r) => `Date must be on or after ${r.toISOString().slice(0, 10)}`, beforeMax: (r) => `Date must be on or before ${r.toISOString().slice(0, 10)}` } } };
566
+ Y = globalThis.process.platform.startsWith("win");
567
+ C = /* @__PURE__ */ Symbol("clack:cancel");
568
+ O = (r) => "columns" in r && typeof r.columns == "number" ? r.columns : 80;
569
+ A = (r) => "rows" in r && typeof r.rows == "number" ? r.rows : 20;
570
+ p = class {
571
+ input;
572
+ output;
573
+ _abortSignal;
574
+ rl;
575
+ opts;
576
+ _render;
577
+ _track = false;
578
+ _prevFrame = "";
579
+ _subscribers = /* @__PURE__ */ new Map();
580
+ _cursor = 0;
581
+ state = "initial";
582
+ error = "";
583
+ value;
584
+ userInput = "";
585
+ constructor(t2, e = true) {
586
+ const { input: s = $, output: i = S, render: n, signal: o, ...a } = t2;
587
+ this.opts = a, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = n.bind(this), this._track = e, this._abortSignal = o, this.input = s, this.output = i;
414
588
  }
415
589
  unsubscribe() {
416
590
  this._subscribers.clear();
417
591
  }
418
- setSubscriber(u2, t) {
419
- const F2 = this._subscribers.get(u2) ?? [];
420
- F2.push(t), this._subscribers.set(u2, F2);
592
+ setSubscriber(t2, e) {
593
+ const s = this._subscribers.get(t2) ?? [];
594
+ s.push(e), this._subscribers.set(t2, s);
421
595
  }
422
- on(u2, t) {
423
- this.setSubscriber(u2, { cb: t });
596
+ on(t2, e) {
597
+ this.setSubscriber(t2, { cb: e });
424
598
  }
425
- once(u2, t) {
426
- this.setSubscriber(u2, { cb: t, once: true });
599
+ once(t2, e) {
600
+ this.setSubscriber(t2, { cb: e, once: true });
427
601
  }
428
- emit(u2, ...t) {
429
- const F2 = this._subscribers.get(u2) ?? [], s = [];
430
- for (const i of F2) i.cb(...t), i.once && s.push(() => F2.splice(F2.indexOf(i), 1));
431
- for (const i of s) i();
602
+ emit(t2, ...e) {
603
+ const s = this._subscribers.get(t2) ?? [], i = [];
604
+ for (const n of s) n.cb(...e), n.once && i.push(() => s.splice(s.indexOf(n), 1));
605
+ for (const n of i) n();
432
606
  }
433
607
  prompt() {
434
- return new Promise((u2, t) => {
608
+ return new Promise((t2) => {
435
609
  if (this._abortSignal) {
436
- if (this._abortSignal.aborted) return this.state = "cancel", this.close(), u2(S);
610
+ if (this._abortSignal.aborted) return this.state = "cancel", this.close(), t2(C);
437
611
  this._abortSignal.addEventListener("abort", () => {
438
612
  this.state = "cancel", this.close();
439
613
  }, { once: true });
440
614
  }
441
- const F2 = new X();
442
- F2._write = (s, i, D2) => {
443
- this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D2();
444
- }, this.input.pipe(F2), this.rl = O.createInterface({ input: this.input, output: F2, tabSize: 2, prompt: "", escapeCodeTimeout: 50, terminal: true }), O.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), m(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
445
- this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), m(this.input, false), u2(this.value);
615
+ this.rl = P.createInterface({ input: this.input, tabSize: 2, prompt: "", escapeCodeTimeout: 50, terminal: true }), this.rl.prompt(), this.opts.initialUserInput !== void 0 && this._setUserInput(this.opts.initialUserInput, true), this.input.on("keypress", this.onKeypress), w(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
616
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), w(this.input, false), t2(this.value);
446
617
  }), this.once("cancel", () => {
447
- this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), m(this.input, false), u2(S);
618
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), w(this.input, false), t2(C);
448
619
  });
449
620
  });
450
621
  }
451
- onKeypress(u2, t) {
452
- if (this.state === "error" && (this.state = "active"), t?.name && (!this._track && B.aliases.has(t.name) && this.emit("cursor", B.aliases.get(t.name)), B.actions.has(t.name) && this.emit("cursor", t.name)), u2 && (u2.toLowerCase() === "y" || u2.toLowerCase() === "n") && this.emit("confirm", u2.toLowerCase() === "y"), u2 === " " && this.opts.placeholder && (this.value || (this.rl?.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u2 && this.emit("key", u2.toLowerCase()), t?.name === "return") {
622
+ _isActionKey(t2, e) {
623
+ return t2 === " ";
624
+ }
625
+ _setValue(t2) {
626
+ this.value = t2, this.emit("value", this.value);
627
+ }
628
+ _setUserInput(t2, e) {
629
+ this.userInput = t2 ?? "", this.emit("userInput", this.userInput), e && this._track && this.rl && (this.rl.write(this.userInput), this._cursor = this.rl.cursor);
630
+ }
631
+ _clearUserInput() {
632
+ this.rl?.write(null, { ctrl: true, name: "u" }), this._setUserInput("");
633
+ }
634
+ onKeypress(t2, e) {
635
+ if (this._track && e.name !== "return" && (e.name && this._isActionKey(t2, e) && this.rl?.write(null, { ctrl: true, name: "h" }), this._cursor = this.rl?.cursor ?? 0, this._setUserInput(this.rl?.line)), this.state === "error" && (this.state = "active"), e?.name && (!this._track && u.aliases.has(e.name) && this.emit("cursor", u.aliases.get(e.name)), u.actions.has(e.name) && this.emit("cursor", e.name)), t2 && (t2.toLowerCase() === "y" || t2.toLowerCase() === "n") && this.emit("confirm", t2.toLowerCase() === "y"), this.emit("key", t2?.toLowerCase(), e), e?.name === "return") {
453
636
  if (this.opts.validate) {
454
- const F2 = this.opts.validate(this.value);
455
- F2 && (this.error = F2 instanceof Error ? F2.message : F2, this.state = "error", this.rl?.write(this.value));
637
+ const s = this.opts.validate(this.value);
638
+ s && (this.error = s instanceof Error ? s.message : s, this.state = "error", this.rl?.write(this.userInput));
456
639
  }
457
640
  this.state !== "error" && (this.state = "submit");
458
641
  }
459
- $([u2, t?.name, t?.sequence], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
642
+ V([t2, e?.name, e?.sequence], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
460
643
  }
461
644
  close() {
462
645
  this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
463
- `), m(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
646
+ `), w(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
464
647
  }
465
648
  restoreCursor() {
466
- const u2 = Y(this._prevFrame, process.stdout.columns, { hard: true }).split(`
649
+ const t2 = wrapAnsi(this._prevFrame, process.stdout.columns, { hard: true, trim: false }).split(`
467
650
  `).length - 1;
468
- this.output.write(import_sisteransi.cursor.move(-999, u2 * -1));
651
+ this.output.write(import_sisteransi.cursor.move(-999, t2 * -1));
469
652
  }
470
653
  render() {
471
- const u2 = Y(this._render(this) ?? "", process.stdout.columns, { hard: true });
472
- if (u2 !== this._prevFrame) {
654
+ const t2 = wrapAnsi(this._render(this) ?? "", process.stdout.columns, { hard: true, trim: false });
655
+ if (t2 !== this._prevFrame) {
473
656
  if (this.state === "initial") this.output.write(import_sisteransi.cursor.hide);
474
657
  else {
475
- const t = BD(this._prevFrame, u2);
476
- if (this.restoreCursor(), t && t?.length === 1) {
477
- const F2 = t[0];
478
- this.output.write(import_sisteransi.cursor.move(0, F2)), this.output.write(import_sisteransi.erase.lines(1));
479
- const s = u2.split(`
658
+ const e = j(this._prevFrame, t2), s = A(this.output);
659
+ if (this.restoreCursor(), e) {
660
+ const i = Math.max(0, e.numLinesAfter - s), n = Math.max(0, e.numLinesBefore - s);
661
+ let o = e.lines.find((a) => a >= i);
662
+ if (o === void 0) {
663
+ this._prevFrame = t2;
664
+ return;
665
+ }
666
+ if (e.lines.length === 1) {
667
+ this.output.write(import_sisteransi.cursor.move(0, o - n)), this.output.write(import_sisteransi.erase.lines(1));
668
+ const a = t2.split(`
480
669
  `);
481
- this.output.write(s[F2]), this._prevFrame = u2, this.output.write(import_sisteransi.cursor.move(0, s.length - F2 - 1));
482
- return;
483
- }
484
- if (t && t?.length > 1) {
485
- const F2 = t[0];
486
- this.output.write(import_sisteransi.cursor.move(0, F2)), this.output.write(import_sisteransi.erase.down());
487
- const s = u2.split(`
488
- `).slice(F2);
489
- this.output.write(s.join(`
490
- `)), this._prevFrame = u2;
491
- return;
670
+ this.output.write(a[o]), this._prevFrame = t2, this.output.write(import_sisteransi.cursor.move(0, a.length - o - 1));
671
+ return;
672
+ } else if (e.lines.length > 1) {
673
+ if (i < n) o = i;
674
+ else {
675
+ const h = o - n;
676
+ h > 0 && this.output.write(import_sisteransi.cursor.move(0, h));
677
+ }
678
+ this.output.write(import_sisteransi.erase.down());
679
+ const a = t2.split(`
680
+ `).slice(o);
681
+ this.output.write(a.join(`
682
+ `)), this._prevFrame = t2;
683
+ return;
684
+ }
492
685
  }
493
686
  this.output.write(import_sisteransi.erase.down());
494
687
  }
495
- this.output.write(u2), this.state === "initial" && (this.state = "active"), this._prevFrame = u2;
688
+ this.output.write(t2), this.state === "initial" && (this.state = "active"), this._prevFrame = t2;
496
689
  }
497
690
  }
498
691
  };
499
- dD = class extends x {
692
+ Q = class extends p {
500
693
  get cursor() {
501
694
  return this.value ? 0 : 1;
502
695
  }
503
696
  get _value() {
504
697
  return this.cursor === 0;
505
698
  }
506
- constructor(u2) {
507
- super(u2, false), this.value = !!u2.initialValue, this.on("value", () => {
699
+ constructor(t2) {
700
+ super(t2, false), this.value = !!t2.initialValue, this.on("userInput", () => {
508
701
  this.value = this._value;
509
- }), this.on("confirm", (t) => {
510
- this.output.write(import_sisteransi.cursor.move(0, -1)), this.value = t, this.state = "submit", this.close();
702
+ }), this.on("confirm", (e) => {
703
+ this.output.write(import_sisteransi.cursor.move(0, -1)), this.value = e, this.state = "submit", this.close();
511
704
  }), this.on("cursor", () => {
512
705
  this.value = !this.value;
513
706
  });
514
707
  }
515
708
  };
516
- A = /* @__PURE__ */ new WeakMap();
517
- OD = Object.defineProperty;
518
- PD = (e2, u2, t) => u2 in e2 ? OD(e2, u2, { enumerable: true, configurable: true, writable: true, value: t }) : e2[u2] = t;
519
- J = (e2, u2, t) => (PD(e2, typeof u2 != "symbol" ? u2 + "" : u2, t), t);
520
- LD = class extends x {
521
- constructor(u2) {
522
- super(u2, false), J(this, "options"), J(this, "cursor", 0), this.options = u2.options, this.cursor = this.options.findIndex(({ value: t }) => t === u2.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (t) => {
523
- switch (t) {
709
+ nt = class extends p {
710
+ options;
711
+ cursor = 0;
712
+ get _selectedValue() {
713
+ return this.options[this.cursor];
714
+ }
715
+ changeValue() {
716
+ this.value = this._selectedValue.value;
717
+ }
718
+ constructor(t2) {
719
+ super(t2, false), this.options = t2.options;
720
+ const e = this.options.findIndex(({ value: i }) => i === t2.initialValue), s = e === -1 ? 0 : e;
721
+ this.cursor = this.options[s].disabled ? d(s, 1, this.options) : s, this.changeValue(), this.on("cursor", (i) => {
722
+ switch (i) {
524
723
  case "left":
525
724
  case "up":
526
- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
725
+ this.cursor = d(this.cursor, -1, this.options);
527
726
  break;
528
727
  case "down":
529
728
  case "right":
530
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
729
+ this.cursor = d(this.cursor, 1, this.options);
531
730
  break;
532
731
  }
533
732
  this.changeValue();
534
733
  });
535
734
  }
536
- get _value() {
537
- return this.options[this.cursor];
538
- }
539
- changeValue() {
540
- this.value = this._value.value;
541
- }
542
735
  };
543
736
  }
544
737
  });
545
738
 
546
- // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/dist/index.mjs
547
- import { stripVTControlCharacters as S2 } from "node:util";
548
- import y2 from "node:process";
549
- function ce() {
550
- return y2.platform !== "win32" ? y2.env.TERM !== "linux" : !!y2.env.CI || !!y2.env.WT_SESSION || !!y2.env.TERMINUS_SUBLIME || y2.env.ConEmuTask === "{cmd::Cmder}" || y2.env.TERM_PROGRAM === "Terminus-Sublime" || y2.env.TERM_PROGRAM === "vscode" || y2.env.TERM === "xterm-256color" || y2.env.TERM === "alacritty" || y2.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
739
+ // node_modules/.bun/@clack+prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs
740
+ import { styleText as t, stripVTControlCharacters as ne } from "node:util";
741
+ import P2 from "node:process";
742
+ import { existsSync as Xe, lstatSync as we, readdirSync as ze } from "node:fs";
743
+ import { dirname as be, join as Qe } from "node:path";
744
+ function Ze() {
745
+ return P2.platform !== "win32" ? P2.env.TERM !== "linux" : !!P2.env.CI || !!P2.env.WT_SESSION || !!P2.env.TERMINUS_SUBLIME || P2.env.ConEmuTask === "{cmd::Cmder}" || P2.env.TERM_PROGRAM === "Terminus-Sublime" || P2.env.TERM_PROGRAM === "vscode" || P2.env.TERM === "xterm-256color" || P2.env.TERM === "alacritty" || P2.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
551
746
  }
552
- var import_picocolors, import_sisteransi2, V2, u, le, L2, W2, C, ue, o, d2, k2, P2, A2, T, F, $e, _2, me, de, pe, q, D, U, K2, b2, G2, ye, ve, Me, xe, Ie, Se, M2, J2, Y2;
553
- var init_dist2 = __esm({
554
- "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/dist/index.mjs"() {
555
- init_utils();
556
- init_dist();
557
- init_dist();
558
- import_picocolors = __toESM(require_picocolors(), 1);
747
+ var import_sisteransi2, ee, ae, w2, _e, oe, ue, F, le, d2, E2, Ie, Ee, z2, H2, te, U, J, xe, se, ce, Ge, $e, de, Oe, he, pe, me, ge, V2, ye, et2, Y2, ot2, O2, pt, mt, gt, ft, vt, wt, Ct, fe, Ve, re, _t, je;
748
+ var init_dist4 = __esm({
749
+ "node_modules/.bun/@clack+prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs"() {
750
+ init_utils2();
751
+ init_dist3();
752
+ init_dist3();
753
+ init_main();
754
+ init_dist2();
559
755
  import_sisteransi2 = __toESM(require_src(), 1);
560
- V2 = ce();
561
- u = (t, n) => V2 ? t : n;
562
- le = u("\u25C6", "*");
563
- L2 = u("\u25A0", "x");
564
- W2 = u("\u25B2", "x");
565
- C = u("\u25C7", "o");
566
- ue = u("\u250C", "T");
567
- o = u("\u2502", "|");
568
- d2 = u("\u2514", "\u2014");
569
- k2 = u("\u25CF", ">");
570
- P2 = u("\u25CB", " ");
571
- A2 = u("\u25FB", "[\u2022]");
572
- T = u("\u25FC", "[+]");
573
- F = u("\u25FB", "[ ]");
574
- $e = u("\u25AA", "\u2022");
575
- _2 = u("\u2500", "-");
576
- me = u("\u256E", "+");
577
- de = u("\u251C", "+");
578
- pe = u("\u256F", "+");
579
- q = u("\u25CF", "\u2022");
580
- D = u("\u25C6", "*");
581
- U = u("\u25B2", "!");
582
- K2 = u("\u25A0", "x");
583
- b2 = (t) => {
584
- switch (t) {
756
+ ee = Ze();
757
+ ae = () => process.env.CI === "true";
758
+ w2 = (e, i) => ee ? e : i;
759
+ _e = w2("\u25C6", "*");
760
+ oe = w2("\u25A0", "x");
761
+ ue = w2("\u25B2", "x");
762
+ F = w2("\u25C7", "o");
763
+ le = w2("\u250C", "T");
764
+ d2 = w2("\u2502", "|");
765
+ E2 = w2("\u2514", "\u2014");
766
+ Ie = w2("\u2510", "T");
767
+ Ee = w2("\u2518", "\u2014");
768
+ z2 = w2("\u25CF", ">");
769
+ H2 = w2("\u25CB", " ");
770
+ te = w2("\u25FB", "[\u2022]");
771
+ U = w2("\u25FC", "[+]");
772
+ J = w2("\u25FB", "[ ]");
773
+ xe = w2("\u25AA", "\u2022");
774
+ se = w2("\u2500", "-");
775
+ ce = w2("\u256E", "+");
776
+ Ge = w2("\u251C", "+");
777
+ $e = w2("\u256F", "+");
778
+ de = w2("\u2570", "+");
779
+ Oe = w2("\u256D", "+");
780
+ he = w2("\u25CF", "\u2022");
781
+ pe = w2("\u25C6", "*");
782
+ me = w2("\u25B2", "!");
783
+ ge = w2("\u25A0", "x");
784
+ V2 = (e) => {
785
+ switch (e) {
585
786
  case "initial":
586
787
  case "active":
587
- return import_picocolors.default.cyan(le);
788
+ return t("cyan", _e);
588
789
  case "cancel":
589
- return import_picocolors.default.red(L2);
790
+ return t("red", oe);
590
791
  case "error":
591
- return import_picocolors.default.yellow(W2);
792
+ return t("yellow", ue);
592
793
  case "submit":
593
- return import_picocolors.default.green(C);
794
+ return t("green", F);
594
795
  }
595
796
  };
596
- G2 = (t) => {
597
- const { cursor: n, options: r2, style: i } = t, s = t.maxItems ?? Number.POSITIVE_INFINITY, c = Math.max(process.stdout.rows - 4, 0), a = Math.min(c, Math.max(s, 5));
598
- let l2 = 0;
599
- n >= l2 + a - 3 ? l2 = Math.max(Math.min(n - a + 3, r2.length - a), 0) : n < l2 + 2 && (l2 = Math.max(n - 2, 0));
600
- const $2 = a < r2.length && l2 > 0, g2 = a < r2.length && l2 + a < r2.length;
601
- return r2.slice(l2, l2 + a).map((p2, v, f) => {
602
- const j2 = v === 0 && $2, E = v === f.length - 1 && g2;
603
- return j2 || E ? import_picocolors.default.dim("...") : i(p2, v + l2 === n);
604
- });
605
- };
606
- ye = (t) => {
607
- const n = t.active ?? "Yes", r2 = t.inactive ?? "No";
608
- return new dD({ active: n, inactive: r2, initialValue: t.initialValue ?? true, render() {
609
- const i = `${import_picocolors.default.gray(o)}
610
- ${b2(this.state)} ${t.message}
611
- `, s = this.value ? n : r2;
612
- switch (this.state) {
613
- case "submit":
614
- return `${i}${import_picocolors.default.gray(o)} ${import_picocolors.default.dim(s)}`;
615
- case "cancel":
616
- return `${i}${import_picocolors.default.gray(o)} ${import_picocolors.default.strikethrough(import_picocolors.default.dim(s))}
617
- ${import_picocolors.default.gray(o)}`;
618
- default:
619
- return `${i}${import_picocolors.default.cyan(o)} ${this.value ? `${import_picocolors.default.green(k2)} ${n}` : `${import_picocolors.default.dim(P2)} ${import_picocolors.default.dim(n)}`} ${import_picocolors.default.dim("/")} ${this.value ? `${import_picocolors.default.dim(P2)} ${import_picocolors.default.dim(r2)}` : `${import_picocolors.default.green(k2)} ${r2}`}
620
- ${import_picocolors.default.cyan(d2)}
621
- `;
622
- }
623
- } }).prompt();
624
- };
625
- ve = (t) => {
626
- const n = (r2, i) => {
627
- const s = r2.label ?? String(r2.value);
628
- switch (i) {
629
- case "selected":
630
- return `${import_picocolors.default.dim(s)}`;
631
- case "active":
632
- return `${import_picocolors.default.green(k2)} ${s} ${r2.hint ? import_picocolors.default.dim(`(${r2.hint})`) : ""}`;
633
- case "cancelled":
634
- return `${import_picocolors.default.strikethrough(import_picocolors.default.dim(s))}`;
635
- default:
636
- return `${import_picocolors.default.dim(P2)} ${import_picocolors.default.dim(s)}`;
637
- }
638
- };
639
- return new LD({ options: t.options, initialValue: t.initialValue, render() {
640
- const r2 = `${import_picocolors.default.gray(o)}
641
- ${b2(this.state)} ${t.message}
642
- `;
797
+ ye = (e) => {
798
+ switch (e) {
799
+ case "initial":
800
+ case "active":
801
+ return t("cyan", d2);
802
+ case "cancel":
803
+ return t("red", d2);
804
+ case "error":
805
+ return t("yellow", d2);
806
+ case "submit":
807
+ return t("green", d2);
808
+ }
809
+ };
810
+ et2 = (e, i, s, r, u2) => {
811
+ let n = i, o = 0;
812
+ for (let c2 = s; c2 < r; c2++) {
813
+ const a = e[c2];
814
+ if (n = n - a.length, o++, n <= u2) break;
815
+ }
816
+ return { lineCount: n, removals: o };
817
+ };
818
+ Y2 = ({ cursor: e, options: i, style: s, output: r = process.stdout, maxItems: u2 = Number.POSITIVE_INFINITY, columnPadding: n = 0, rowPadding: o = 4 }) => {
819
+ const c2 = O(r) - n, a = A(r), l = t("dim", "..."), $2 = Math.max(a - o, 0), y2 = Math.max(Math.min(u2, $2), 5);
820
+ let p2 = 0;
821
+ e >= y2 - 3 && (p2 = Math.max(Math.min(e - y2 + 3, i.length - y2), 0));
822
+ let m = y2 < i.length && p2 > 0, g = y2 < i.length && p2 + y2 < i.length;
823
+ const S2 = Math.min(p2 + y2, i.length), h = [];
824
+ let f = 0;
825
+ m && f++, g && f++;
826
+ const v = p2 + (m ? 1 : 0), T = S2 - (g ? 1 : 0);
827
+ for (let b = v; b < T; b++) {
828
+ const x = wrapAnsi(s(i[b], b === e), c2, { hard: true, trim: false }).split(`
829
+ `);
830
+ h.push(x), f += x.length;
831
+ }
832
+ if (f > $2) {
833
+ let b = 0, x = 0, G2 = f;
834
+ const M2 = e - v, R2 = (j2, D2) => et2(h, G2, j2, D2, $2);
835
+ m ? ({ lineCount: G2, removals: b } = R2(0, M2), G2 > $2 && ({ lineCount: G2, removals: x } = R2(M2 + 1, h.length))) : ({ lineCount: G2, removals: x } = R2(M2 + 1, h.length), G2 > $2 && ({ lineCount: G2, removals: b } = R2(0, M2))), b > 0 && (m = true, h.splice(0, b)), x > 0 && (g = true, h.splice(h.length - x, x));
836
+ }
837
+ const C2 = [];
838
+ m && C2.push(l);
839
+ for (const b of h) for (const x of b) C2.push(x);
840
+ return g && C2.push(l), C2;
841
+ };
842
+ ot2 = (e) => {
843
+ const i = e.active ?? "Yes", s = e.inactive ?? "No";
844
+ return new Q({ active: i, inactive: s, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue ?? true, render() {
845
+ const r = e.withGuide ?? u.withGuide, u2 = `${V2(this.state)} `, n = r ? `${t("gray", d2)} ` : "", o = R(e.output, e.message, n, u2), c2 = `${r ? `${t("gray", d2)}
846
+ ` : ""}${o}
847
+ `, a = this.value ? i : s;
643
848
  switch (this.state) {
644
- case "submit":
645
- return `${r2}${import_picocolors.default.gray(o)} ${n(this.options[this.cursor], "selected")}`;
646
- case "cancel":
647
- return `${r2}${import_picocolors.default.gray(o)} ${n(this.options[this.cursor], "cancelled")}
648
- ${import_picocolors.default.gray(o)}`;
649
- default:
650
- return `${r2}${import_picocolors.default.cyan(o)} ${G2({ cursor: this.cursor, options: this.options, maxItems: t.maxItems, style: (i, s) => n(i, s ? "active" : "inactive") }).join(`
651
- ${import_picocolors.default.cyan(o)} `)}
652
- ${import_picocolors.default.cyan(d2)}
849
+ case "submit": {
850
+ const l = r ? `${t("gray", d2)} ` : "";
851
+ return `${c2}${l}${t("dim", a)}`;
852
+ }
853
+ case "cancel": {
854
+ const l = r ? `${t("gray", d2)} ` : "";
855
+ return `${c2}${l}${t(["strikethrough", "dim"], a)}${r ? `
856
+ ${t("gray", d2)}` : ""}`;
857
+ }
858
+ default: {
859
+ const l = r ? `${t("cyan", d2)} ` : "", $2 = r ? t("cyan", E2) : "";
860
+ return `${c2}${l}${this.value ? `${t("green", z2)} ${i}` : `${t("dim", H2)} ${t("dim", i)}`}${e.vertical ? r ? `
861
+ ${t("cyan", d2)} ` : `
862
+ ` : ` ${t("dim", "/")} `}${this.value ? `${t("dim", H2)} ${t("dim", s)}` : `${t("green", z2)} ${s}`}
863
+ ${$2}
653
864
  `;
865
+ }
654
866
  }
655
867
  } }).prompt();
656
868
  };
657
- Me = (t = "", n = "") => {
658
- const r2 = `
659
- ${t}
660
- `.split(`
661
- `), i = S2(n).length, s = Math.max(r2.reduce((a, l2) => {
662
- const $2 = S2(l2);
663
- return $2.length > a ? $2.length : a;
664
- }, 0), i) + 2, c = r2.map((a) => `${import_picocolors.default.gray(o)} ${import_picocolors.default.dim(a)}${" ".repeat(s - S2(a).length)}${import_picocolors.default.gray(o)}`).join(`
869
+ O2 = { message: (e = [], { symbol: i = t("gray", d2), secondarySymbol: s = t("gray", d2), output: r = process.stdout, spacing: u2 = 1, withGuide: n } = {}) => {
870
+ const o = [], c2 = n ?? u.withGuide, a = c2 ? s : "", l = c2 ? `${i} ` : "", $2 = c2 ? `${s} ` : "";
871
+ for (let p2 = 0; p2 < u2; p2++) o.push(a);
872
+ const y2 = Array.isArray(e) ? e : e.split(`
665
873
  `);
666
- process.stdout.write(`${import_picocolors.default.gray(o)}
667
- ${import_picocolors.default.green(C)} ${import_picocolors.default.reset(n)} ${import_picocolors.default.gray(_2.repeat(Math.max(s - i - 1, 1)) + me)}
668
- ${c}
669
- ${import_picocolors.default.gray(de + _2.repeat(s + 2) + pe)}
874
+ if (y2.length > 0) {
875
+ const [p2, ...m] = y2;
876
+ p2.length > 0 ? o.push(`${l}${p2}`) : o.push(c2 ? i : "");
877
+ for (const g of m) g.length > 0 ? o.push(`${$2}${g}`) : o.push(c2 ? s : "");
878
+ }
879
+ r.write(`${o.join(`
880
+ `)}
670
881
  `);
671
- };
672
- xe = (t = "") => {
673
- process.stdout.write(`${import_picocolors.default.gray(d2)} ${import_picocolors.default.red(t)}
882
+ }, info: (e, i) => {
883
+ O2.message(e, { ...i, symbol: t("blue", he) });
884
+ }, success: (e, i) => {
885
+ O2.message(e, { ...i, symbol: t("green", pe) });
886
+ }, step: (e, i) => {
887
+ O2.message(e, { ...i, symbol: t("green", F) });
888
+ }, warn: (e, i) => {
889
+ O2.message(e, { ...i, symbol: t("yellow", me) });
890
+ }, warning: (e, i) => {
891
+ O2.warn(e, i);
892
+ }, error: (e, i) => {
893
+ O2.message(e, { ...i, symbol: t("red", ge) });
894
+ } };
895
+ pt = (e = "", i) => {
896
+ const s = i?.output ?? process.stdout, r = i?.withGuide ?? u.withGuide ? `${t("gray", E2)} ` : "";
897
+ s.write(`${r}${t("red", e)}
674
898
 
675
899
  `);
676
900
  };
677
- Ie = (t = "") => {
678
- process.stdout.write(`${import_picocolors.default.gray(ue)} ${t}
901
+ mt = (e = "", i) => {
902
+ const s = i?.output ?? process.stdout, r = i?.withGuide ?? u.withGuide ? `${t("gray", le)} ` : "";
903
+ s.write(`${r}${e}
679
904
  `);
680
905
  };
681
- Se = (t = "") => {
682
- process.stdout.write(`${import_picocolors.default.gray(o)}
683
- ${import_picocolors.default.gray(d2)} ${t}
906
+ gt = (e = "", i) => {
907
+ const s = i?.output ?? process.stdout, r = i?.withGuide ?? u.withGuide ? `${t("gray", d2)}
908
+ ${t("gray", E2)} ` : "";
909
+ s.write(`${r}${e}
684
910
 
685
911
  `);
686
912
  };
687
- M2 = { message: (t = "", { symbol: n = import_picocolors.default.gray(o) } = {}) => {
688
- const r2 = [`${import_picocolors.default.gray(o)}`];
689
- if (t) {
690
- const [i, ...s] = t.split(`
913
+ ft = (e) => t("dim", e);
914
+ vt = (e, i, s) => {
915
+ const r = { hard: true, trim: false }, u2 = wrapAnsi(e, i, r).split(`
916
+ `), n = u2.reduce((a, l) => Math.max(dist_default2(l), a), 0), o = u2.map(s).reduce((a, l) => Math.max(dist_default2(l), a), 0), c2 = i - (o - n);
917
+ return wrapAnsi(e, c2, r);
918
+ };
919
+ wt = (e = "", i = "", s) => {
920
+ const r = s?.output ?? P2.stdout, u2 = s?.withGuide ?? u.withGuide, n = s?.format ?? ft, o = ["", ...vt(e, O(r) - 6, n).split(`
921
+ `).map(n), ""], c2 = dist_default2(i), a = Math.max(o.reduce((p2, m) => {
922
+ const g = dist_default2(m);
923
+ return g > p2 ? g : p2;
924
+ }, 0), c2) + 2, l = o.map((p2) => `${t("gray", d2)} ${p2}${" ".repeat(a - dist_default2(p2))}${t("gray", d2)}`).join(`
925
+ `), $2 = u2 ? `${t("gray", d2)}
926
+ ` : "", y2 = u2 ? Ge : de;
927
+ r.write(`${$2}${t("green", F)} ${t("reset", i)} ${t("gray", se.repeat(Math.max(a - c2 - 1, 1)) + ce)}
928
+ ${l}
929
+ ${t("gray", y2 + se.repeat(a + 2) + $e)}
691
930
  `);
692
- r2.push(`${n} ${i}`, ...s.map((c) => `${import_picocolors.default.gray(o)} ${c}`));
693
- }
694
- process.stdout.write(`${r2.join(`
695
- `)}
696
- `);
697
- }, info: (t) => {
698
- M2.message(t, { symbol: import_picocolors.default.blue(q) });
699
- }, success: (t) => {
700
- M2.message(t, { symbol: import_picocolors.default.green(D) });
701
- }, step: (t) => {
702
- M2.message(t, { symbol: import_picocolors.default.green(C) });
703
- }, warn: (t) => {
704
- M2.message(t, { symbol: import_picocolors.default.yellow(U) });
705
- }, warning: (t) => {
706
- M2.warn(t);
707
- }, error: (t) => {
708
- M2.message(t, { symbol: import_picocolors.default.red(K2) });
709
- } };
710
- J2 = `${import_picocolors.default.gray(o)} `;
711
- Y2 = ({ indicator: t = "dots" } = {}) => {
712
- const n = V2 ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], r2 = V2 ? 80 : 120, i = process.env.CI === "true";
713
- let s, c, a = false, l2 = "", $2, g2 = performance.now();
714
- const p2 = (m2) => {
715
- const h2 = m2 > 1 ? "Something went wrong" : "Canceled";
716
- a && N2(h2, m2);
717
- }, v = () => p2(2), f = () => p2(1), j2 = () => {
718
- process.on("uncaughtExceptionMonitor", v), process.on("unhandledRejection", v), process.on("SIGINT", f), process.on("SIGTERM", f), process.on("exit", p2);
719
- }, E = () => {
720
- process.removeListener("uncaughtExceptionMonitor", v), process.removeListener("unhandledRejection", v), process.removeListener("SIGINT", f), process.removeListener("SIGTERM", f), process.removeListener("exit", p2);
721
- }, B2 = () => {
722
- if ($2 === void 0) return;
723
- i && process.stdout.write(`
931
+ };
932
+ Ct = (e) => t("magenta", e);
933
+ fe = ({ indicator: e = "dots", onCancel: i, output: s = process.stdout, cancelMessage: r, errorMessage: u2, frames: n = ee ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], delay: o = ee ? 80 : 120, signal: c2, ...a } = {}) => {
934
+ const l = ae();
935
+ let $2, y2, p2 = false, m = false, g = "", S2, h = performance.now();
936
+ const f = O(s), v = a?.styleFrame ?? Ct, T = (_2) => {
937
+ const A2 = _2 > 1 ? u2 ?? u.messages.error : r ?? u.messages.cancel;
938
+ m = _2 === 1, p2 && (W(A2, _2), m && typeof i == "function" && i());
939
+ }, C2 = () => T(2), b = () => T(1), x = () => {
940
+ process.on("uncaughtExceptionMonitor", C2), process.on("unhandledRejection", C2), process.on("SIGINT", b), process.on("SIGTERM", b), process.on("exit", T), c2 && c2.addEventListener("abort", b);
941
+ }, G2 = () => {
942
+ process.removeListener("uncaughtExceptionMonitor", C2), process.removeListener("unhandledRejection", C2), process.removeListener("SIGINT", b), process.removeListener("SIGTERM", b), process.removeListener("exit", T), c2 && c2.removeEventListener("abort", b);
943
+ }, M2 = () => {
944
+ if (S2 === void 0) return;
945
+ l && s.write(`
724
946
  `);
725
- const m2 = $2.split(`
947
+ const _2 = wrapAnsi(S2, f, { hard: true, trim: false }).split(`
726
948
  `);
727
- process.stdout.write(import_sisteransi2.cursor.move(-999, m2.length - 1)), process.stdout.write(import_sisteransi2.erase.down(m2.length));
728
- }, R2 = (m2) => m2.replace(/\.+$/, ""), O2 = (m2) => {
729
- const h2 = (performance.now() - m2) / 1e3, w2 = Math.floor(h2 / 60), I2 = Math.floor(h2 % 60);
730
- return w2 > 0 ? `[${w2}m ${I2}s]` : `[${I2}s]`;
731
- }, H = (m2 = "") => {
732
- a = true, s = fD(), l2 = R2(m2), g2 = performance.now(), process.stdout.write(`${import_picocolors.default.gray(o)}
949
+ _2.length > 1 && s.write(import_sisteransi2.cursor.up(_2.length - 1)), s.write(import_sisteransi2.cursor.to(0)), s.write(import_sisteransi2.erase.down());
950
+ }, R2 = (_2) => _2.replace(/\.+$/, ""), j2 = (_2) => {
951
+ const A2 = (performance.now() - _2) / 1e3, k = Math.floor(A2 / 60), L = Math.floor(A2 % 60);
952
+ return k > 0 ? `[${k}m ${L}s]` : `[${L}s]`;
953
+ }, D2 = a.withGuide ?? u.withGuide, ie = (_2 = "") => {
954
+ p2 = true, $2 = z({ output: s }), g = R2(_2), h = performance.now(), D2 && s.write(`${t("gray", d2)}
733
955
  `);
734
- let h2 = 0, w2 = 0;
735
- j2(), c = setInterval(() => {
736
- if (i && l2 === $2) return;
737
- B2(), $2 = l2;
738
- const I2 = import_picocolors.default.magenta(n[h2]);
739
- if (i) process.stdout.write(`${I2} ${l2}...`);
740
- else if (t === "timer") process.stdout.write(`${I2} ${l2} ${O2(g2)}`);
956
+ let A2 = 0, k = 0;
957
+ x(), y2 = setInterval(() => {
958
+ if (l && g === S2) return;
959
+ M2(), S2 = g;
960
+ const L = v(n[A2]);
961
+ let Z;
962
+ if (l) Z = `${L} ${g}...`;
963
+ else if (e === "timer") Z = `${L} ${g} ${j2(h)}`;
741
964
  else {
742
- const z2 = ".".repeat(Math.floor(w2)).slice(0, 3);
743
- process.stdout.write(`${I2} ${l2}${z2}`);
744
- }
745
- h2 = h2 + 1 < n.length ? h2 + 1 : 0, w2 = w2 < n.length ? w2 + 0.125 : 0;
746
- }, r2);
747
- }, N2 = (m2 = "", h2 = 0) => {
748
- a = false, clearInterval(c), B2();
749
- const w2 = h2 === 0 ? import_picocolors.default.green(C) : h2 === 1 ? import_picocolors.default.red(L2) : import_picocolors.default.red(W2);
750
- l2 = R2(m2 ?? l2), t === "timer" ? process.stdout.write(`${w2} ${l2} ${O2(g2)}
751
- `) : process.stdout.write(`${w2} ${l2}
752
- `), E(), s();
965
+ const Be = ".".repeat(Math.floor(k)).slice(0, 3);
966
+ Z = `${L} ${g}${Be}`;
967
+ }
968
+ const Ne = wrapAnsi(Z, f, { hard: true, trim: false });
969
+ s.write(Ne), A2 = A2 + 1 < n.length ? A2 + 1 : 0, k = k < 4 ? k + 0.125 : 0;
970
+ }, o);
971
+ }, W = (_2 = "", A2 = 0, k = false) => {
972
+ if (!p2) return;
973
+ p2 = false, clearInterval(y2), M2();
974
+ const L = A2 === 0 ? t("green", F) : A2 === 1 ? t("red", oe) : t("red", ue);
975
+ g = _2 ?? g, k || (e === "timer" ? s.write(`${L} ${g} ${j2(h)}
976
+ `) : s.write(`${L} ${g}
977
+ `)), G2(), $2();
753
978
  };
754
- return { start: H, stop: N2, message: (m2 = "") => {
755
- l2 = R2(m2 ?? l2);
979
+ return { start: ie, stop: (_2 = "") => W(_2, 0), message: (_2 = "") => {
980
+ g = R2(_2 ?? g);
981
+ }, cancel: (_2 = "") => W(_2, 1), error: (_2 = "") => W(_2, 2), clear: () => W("", 0, true), get isCancelled() {
982
+ return m;
756
983
  } };
757
984
  };
985
+ Ve = { light: w2("\u2500", "-"), heavy: w2("\u2501", "="), block: w2("\u2588", "#") };
986
+ re = (e, i) => e.includes(`
987
+ `) ? e.split(`
988
+ `).map((s) => i(s)).join(`
989
+ `) : i(e);
990
+ _t = (e) => {
991
+ const i = (s, r) => {
992
+ const u2 = s.label ?? String(s.value);
993
+ switch (r) {
994
+ case "disabled":
995
+ return `${t("gray", H2)} ${re(u2, (n) => t("gray", n))}${s.hint ? ` ${t("dim", `(${s.hint ?? "disabled"})`)}` : ""}`;
996
+ case "selected":
997
+ return `${re(u2, (n) => t("dim", n))}`;
998
+ case "active":
999
+ return `${t("green", z2)} ${u2}${s.hint ? ` ${t("dim", `(${s.hint})`)}` : ""}`;
1000
+ case "cancelled":
1001
+ return `${re(u2, (n) => t(["strikethrough", "dim"], n))}`;
1002
+ default:
1003
+ return `${t("dim", H2)} ${re(u2, (n) => t("dim", n))}`;
1004
+ }
1005
+ };
1006
+ return new nt({ options: e.options, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue, render() {
1007
+ const s = e.withGuide ?? u.withGuide, r = `${V2(this.state)} `, u2 = `${ye(this.state)} `, n = R(e.output, e.message, u2, r), o = `${s ? `${t("gray", d2)}
1008
+ ` : ""}${n}
1009
+ `;
1010
+ switch (this.state) {
1011
+ case "submit": {
1012
+ const c2 = s ? `${t("gray", d2)} ` : "", a = R(e.output, i(this.options[this.cursor], "selected"), c2);
1013
+ return `${o}${a}`;
1014
+ }
1015
+ case "cancel": {
1016
+ const c2 = s ? `${t("gray", d2)} ` : "", a = R(e.output, i(this.options[this.cursor], "cancelled"), c2);
1017
+ return `${o}${a}${s ? `
1018
+ ${t("gray", d2)}` : ""}`;
1019
+ }
1020
+ default: {
1021
+ const c2 = s ? `${t("cyan", d2)} ` : "", a = s ? t("cyan", E2) : "", l = o.split(`
1022
+ `).length, $2 = s ? 2 : 1;
1023
+ return `${o}${c2}${Y2({ output: e.output, cursor: this.cursor, options: this.options, maxItems: e.maxItems, columnPadding: c2.length, rowPadding: l + $2, style: (y2, p2) => i(y2, y2.disabled ? "disabled" : p2 ? "active" : "inactive") }).join(`
1024
+ ${c2}`)}
1025
+ ${a}
1026
+ `;
1027
+ }
1028
+ }
1029
+ } }).prompt();
1030
+ };
1031
+ je = `${t("gray", d2)} `;
758
1032
  }
759
1033
  });
760
1034
 
@@ -803,9 +1077,9 @@ var colors, currentLogLevel, log, error, warn, info, success;
803
1077
  var init_cli_output = __esm({
804
1078
  "packages/tooling/src/utils/cli-output.ts"() {
805
1079
  "use strict";
806
- init_utils();
807
- init_dist2();
808
- init_dist2();
1080
+ init_utils2();
1081
+ init_dist4();
1082
+ init_dist4();
809
1083
  colors = {
810
1084
  reset: "\x1B[0m",
811
1085
  // Success (green)
@@ -840,7 +1114,7 @@ var init_cli_output = __esm({
840
1114
  error(...args) {
841
1115
  if (currentLogLevel < 0 /* Quiet */) return;
842
1116
  const message = formatMessage(...args);
843
- M2.error(colorize(message, colors.brightRed));
1117
+ O2.error(colorize(message, colors.brightRed));
844
1118
  },
845
1119
  /**
846
1120
  * Logs a warning message (shows at Normal level and above)
@@ -849,7 +1123,7 @@ var init_cli_output = __esm({
849
1123
  warn(...args) {
850
1124
  if (currentLogLevel < 1 /* Normal */) return;
851
1125
  const message = formatMessage(...args);
852
- M2.warn(colorize(message, colors.brightYellow));
1126
+ O2.warn(colorize(message, colors.brightYellow));
853
1127
  },
854
1128
  /**
855
1129
  * Logs an info message (shows at Normal level and above)
@@ -858,7 +1132,7 @@ var init_cli_output = __esm({
858
1132
  info(...args) {
859
1133
  if (currentLogLevel < 1 /* Normal */) return;
860
1134
  const message = formatMessage(...args);
861
- M2.info(colorize(message, colors.brightCyan));
1135
+ O2.info(colorize(message, colors.brightCyan));
862
1136
  },
863
1137
  /**
864
1138
  * Logs a success message (shows at Normal level and above)
@@ -867,7 +1141,7 @@ var init_cli_output = __esm({
867
1141
  success(...args) {
868
1142
  if (currentLogLevel < 1 /* Normal */) return;
869
1143
  const message = formatMessage(...args);
870
- M2.success(colorize(message, colors.brightGreen));
1144
+ O2.success(colorize(message, colors.brightGreen));
871
1145
  },
872
1146
  /**
873
1147
  * Logs a debug message (only shows at Verbose level and above)
@@ -876,7 +1150,7 @@ var init_cli_output = __esm({
876
1150
  debug(...args) {
877
1151
  if (currentLogLevel < 2 /* Verbose */) return;
878
1152
  const timeStamp = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
879
- M2.message(
1153
+ O2.message(
880
1154
  colorize(
881
1155
  `[${timeStamp}] \u{1F50D} DEBUG: ${formatMessage(...args)}`,
882
1156
  colors.gray
@@ -890,7 +1164,7 @@ var init_cli_output = __esm({
890
1164
  trace(...args) {
891
1165
  if (currentLogLevel < 3 /* Debug */) return;
892
1166
  const timeStamp = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
893
- M2.message(
1167
+ O2.message(
894
1168
  colorize(
895
1169
  `[${timeStamp}] \u{1F52C} TRACE: ${formatMessage(...args)}`,
896
1170
  colors.gray
@@ -910,7 +1184,7 @@ var DO_NOT_DEV_ERROR_CODES, DoNotDevError;
910
1184
  var init_errors = __esm({
911
1185
  "packages/tooling/src/utils/errors.ts"() {
912
1186
  "use strict";
913
- init_utils();
1187
+ init_utils2();
914
1188
  DO_NOT_DEV_ERROR_CODES = {
915
1189
  CONFIGURATION_ERROR: "configuration-error",
916
1190
  CONFIG_NOT_FOUND: "config-not-found",
@@ -1051,7 +1325,7 @@ var init_errors = __esm({
1051
1325
  var require_array = __commonJS({
1052
1326
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
1053
1327
  "use strict";
1054
- init_utils();
1328
+ init_utils2();
1055
1329
  Object.defineProperty(exports, "__esModule", { value: true });
1056
1330
  exports.splitWhen = exports.flatten = void 0;
1057
1331
  function flatten(items) {
@@ -1079,7 +1353,7 @@ var require_array = __commonJS({
1079
1353
  var require_errno = __commonJS({
1080
1354
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js"(exports) {
1081
1355
  "use strict";
1082
- init_utils();
1356
+ init_utils2();
1083
1357
  Object.defineProperty(exports, "__esModule", { value: true });
1084
1358
  exports.isEnoentCodeError = void 0;
1085
1359
  function isEnoentCodeError(error2) {
@@ -1093,7 +1367,7 @@ var require_errno = __commonJS({
1093
1367
  var require_fs = __commonJS({
1094
1368
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js"(exports) {
1095
1369
  "use strict";
1096
- init_utils();
1370
+ init_utils2();
1097
1371
  Object.defineProperty(exports, "__esModule", { value: true });
1098
1372
  exports.createDirentFromStats = void 0;
1099
1373
  var DirentFromStats = class {
@@ -1119,7 +1393,7 @@ var require_fs = __commonJS({
1119
1393
  var require_path = __commonJS({
1120
1394
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js"(exports) {
1121
1395
  "use strict";
1122
- init_utils();
1396
+ init_utils2();
1123
1397
  Object.defineProperty(exports, "__esModule", { value: true });
1124
1398
  exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
1125
1399
  var os = __require("os");
@@ -1172,7 +1446,7 @@ var require_path = __commonJS({
1172
1446
  // node_modules/.bun/is-extglob@2.1.1/node_modules/is-extglob/index.js
1173
1447
  var require_is_extglob = __commonJS({
1174
1448
  "node_modules/.bun/is-extglob@2.1.1/node_modules/is-extglob/index.js"(exports, module) {
1175
- init_utils();
1449
+ init_utils2();
1176
1450
  module.exports = function isExtglob(str) {
1177
1451
  if (typeof str !== "string" || str === "") {
1178
1452
  return false;
@@ -1190,7 +1464,7 @@ var require_is_extglob = __commonJS({
1190
1464
  // node_modules/.bun/is-glob@4.0.3/node_modules/is-glob/index.js
1191
1465
  var require_is_glob = __commonJS({
1192
1466
  "node_modules/.bun/is-glob@4.0.3/node_modules/is-glob/index.js"(exports, module) {
1193
- init_utils();
1467
+ init_utils2();
1194
1468
  var isExtglob = require_is_extglob();
1195
1469
  var chars = { "{": "}", "(": ")", "[": "]" };
1196
1470
  var strictCheck = function(str) {
@@ -1323,7 +1597,7 @@ var require_is_glob = __commonJS({
1323
1597
  var require_glob_parent = __commonJS({
1324
1598
  "node_modules/.bun/glob-parent@5.1.2/node_modules/glob-parent/index.js"(exports, module) {
1325
1599
  "use strict";
1326
- init_utils();
1600
+ init_utils2();
1327
1601
  var isGlob = require_is_glob();
1328
1602
  var pathPosixDirname = __require("path").posix.dirname;
1329
1603
  var isWin32 = __require("os").platform() === "win32";
@@ -1353,7 +1627,7 @@ var require_glob_parent = __commonJS({
1353
1627
  var require_utils = __commonJS({
1354
1628
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/utils.js"(exports) {
1355
1629
  "use strict";
1356
- init_utils();
1630
+ init_utils2();
1357
1631
  exports.isInteger = (num) => {
1358
1632
  if (typeof num === "number") {
1359
1633
  return Number.isInteger(num);
@@ -1436,7 +1710,7 @@ var require_utils = __commonJS({
1436
1710
  var require_stringify = __commonJS({
1437
1711
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/stringify.js"(exports, module) {
1438
1712
  "use strict";
1439
- init_utils();
1713
+ init_utils2();
1440
1714
  var utils = require_utils();
1441
1715
  module.exports = (ast, options = {}) => {
1442
1716
  const stringify2 = (node, parent = {}) => {
@@ -1468,7 +1742,7 @@ var require_stringify = __commonJS({
1468
1742
  var require_is_number = __commonJS({
1469
1743
  "node_modules/.bun/is-number@7.0.0/node_modules/is-number/index.js"(exports, module) {
1470
1744
  "use strict";
1471
- init_utils();
1745
+ init_utils2();
1472
1746
  module.exports = function(num) {
1473
1747
  if (typeof num === "number") {
1474
1748
  return num - num === 0;
@@ -1485,7 +1759,7 @@ var require_is_number = __commonJS({
1485
1759
  var require_to_regex_range = __commonJS({
1486
1760
  "node_modules/.bun/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(exports, module) {
1487
1761
  "use strict";
1488
- init_utils();
1762
+ init_utils2();
1489
1763
  var isNumber = require_is_number();
1490
1764
  var toRegexRange = (min, max, options) => {
1491
1765
  if (isNumber(min) === false) {
@@ -1510,8 +1784,8 @@ var require_to_regex_range = __commonJS({
1510
1784
  return toRegexRange.cache[cacheKey].result;
1511
1785
  }
1512
1786
  let a = Math.min(min, max);
1513
- let b3 = Math.max(min, max);
1514
- if (Math.abs(a - b3) === 1) {
1787
+ let b = Math.max(min, max);
1788
+ if (Math.abs(a - b) === 1) {
1515
1789
  let result = min + "|" + max;
1516
1790
  if (opts.capture) {
1517
1791
  return `(${result})`;
@@ -1522,7 +1796,7 @@ var require_to_regex_range = __commonJS({
1522
1796
  return `(?:${result})`;
1523
1797
  }
1524
1798
  let isPadded = hasPadding(min) || hasPadding(max);
1525
- let state = { min, max, a, b: b3 };
1799
+ let state = { min, max, a, b };
1526
1800
  let positives = [];
1527
1801
  let negatives = [];
1528
1802
  if (isPadded) {
@@ -1530,12 +1804,12 @@ var require_to_regex_range = __commonJS({
1530
1804
  state.maxLen = String(state.max).length;
1531
1805
  }
1532
1806
  if (a < 0) {
1533
- let newMin = b3 < 0 ? Math.abs(b3) : 1;
1807
+ let newMin = b < 0 ? Math.abs(b) : 1;
1534
1808
  negatives = splitToPatterns(newMin, Math.abs(a), state, opts);
1535
1809
  a = state.a = 0;
1536
1810
  }
1537
- if (b3 >= 0) {
1538
- positives = splitToPatterns(a, b3, state, opts);
1811
+ if (b >= 0) {
1812
+ positives = splitToPatterns(a, b, state, opts);
1539
1813
  }
1540
1814
  state.negatives = negatives;
1541
1815
  state.positives = positives;
@@ -1639,13 +1913,13 @@ var require_to_regex_range = __commonJS({
1639
1913
  }
1640
1914
  return result;
1641
1915
  }
1642
- function zip(a, b3) {
1916
+ function zip(a, b) {
1643
1917
  let arr = [];
1644
- for (let i = 0; i < a.length; i++) arr.push([a[i], b3[i]]);
1918
+ for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]);
1645
1919
  return arr;
1646
1920
  }
1647
- function compare(a, b3) {
1648
- return a > b3 ? 1 : b3 > a ? -1 : 0;
1921
+ function compare(a, b) {
1922
+ return a > b ? 1 : b > a ? -1 : 0;
1649
1923
  }
1650
1924
  function contains(arr, key, val) {
1651
1925
  return arr.some((ele) => ele[key] === val);
@@ -1663,8 +1937,8 @@ var require_to_regex_range = __commonJS({
1663
1937
  }
1664
1938
  return "";
1665
1939
  }
1666
- function toCharacterClass(a, b3, options) {
1667
- return `[${a}${b3 - a === 1 ? "" : "-"}${b3}]`;
1940
+ function toCharacterClass(a, b, options) {
1941
+ return `[${a}${b - a === 1 ? "" : "-"}${b}]`;
1668
1942
  }
1669
1943
  function hasPadding(str) {
1670
1944
  return /^-?(0+)\d/.test(str);
@@ -1697,7 +1971,7 @@ var require_to_regex_range = __commonJS({
1697
1971
  var require_fill_range = __commonJS({
1698
1972
  "node_modules/.bun/fill-range@7.1.1/node_modules/fill-range/index.js"(exports, module) {
1699
1973
  "use strict";
1700
- init_utils();
1974
+ init_utils2();
1701
1975
  var util = __require("util");
1702
1976
  var toRegexRange = require_to_regex_range();
1703
1977
  var isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
@@ -1743,8 +2017,8 @@ var require_fill_range = __commonJS({
1743
2017
  return negative ? "-" + input : input;
1744
2018
  };
1745
2019
  var toSequence = (parts, options, maxLen) => {
1746
- parts.negatives.sort((a, b3) => a < b3 ? -1 : a > b3 ? 1 : 0);
1747
- parts.positives.sort((a, b3) => a < b3 ? -1 : a > b3 ? 1 : 0);
2020
+ parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
2021
+ parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
1748
2022
  let prefix = options.capture ? "" : "?:";
1749
2023
  let positives = "";
1750
2024
  let negatives = "";
@@ -1765,13 +2039,13 @@ var require_fill_range = __commonJS({
1765
2039
  }
1766
2040
  return result;
1767
2041
  };
1768
- var toRange = (a, b3, isNumbers, options) => {
2042
+ var toRange = (a, b, isNumbers, options) => {
1769
2043
  if (isNumbers) {
1770
- return toRegexRange(a, b3, { wrap: false, ...options });
2044
+ return toRegexRange(a, b, { wrap: false, ...options });
1771
2045
  }
1772
2046
  let start = String.fromCharCode(a);
1773
- if (a === b3) return start;
1774
- let stop = String.fromCharCode(b3);
2047
+ if (a === b) return start;
2048
+ let stop = String.fromCharCode(b);
1775
2049
  return `[${start}-${stop}]`;
1776
2050
  };
1777
2051
  var toRegex = (start, end, options) => {
@@ -1797,14 +2071,14 @@ var require_fill_range = __commonJS({
1797
2071
  };
1798
2072
  var fillNumbers = (start, end, step = 1, options = {}) => {
1799
2073
  let a = Number(start);
1800
- let b3 = Number(end);
1801
- if (!Number.isInteger(a) || !Number.isInteger(b3)) {
2074
+ let b = Number(end);
2075
+ if (!Number.isInteger(a) || !Number.isInteger(b)) {
1802
2076
  if (options.strictRanges === true) throw rangeError([start, end]);
1803
2077
  return [];
1804
2078
  }
1805
2079
  if (a === 0) a = 0;
1806
- if (b3 === 0) b3 = 0;
1807
- let descending = a > b3;
2080
+ if (b === 0) b = 0;
2081
+ let descending = a > b;
1808
2082
  let startString = String(start);
1809
2083
  let endString = String(end);
1810
2084
  let stepString = String(step);
@@ -1820,7 +2094,7 @@ var require_fill_range = __commonJS({
1820
2094
  let push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num));
1821
2095
  let range = [];
1822
2096
  let index = 0;
1823
- while (descending ? a >= b3 : a <= b3) {
2097
+ while (descending ? a >= b : a <= b) {
1824
2098
  if (options.toRegex === true && step > 1) {
1825
2099
  push(a);
1826
2100
  } else {
@@ -1840,16 +2114,16 @@ var require_fill_range = __commonJS({
1840
2114
  }
1841
2115
  let format = options.transform || ((val) => String.fromCharCode(val));
1842
2116
  let a = `${start}`.charCodeAt(0);
1843
- let b3 = `${end}`.charCodeAt(0);
1844
- let descending = a > b3;
1845
- let min = Math.min(a, b3);
1846
- let max = Math.max(a, b3);
2117
+ let b = `${end}`.charCodeAt(0);
2118
+ let descending = a > b;
2119
+ let min = Math.min(a, b);
2120
+ let max = Math.max(a, b);
1847
2121
  if (options.toRegex && step === 1) {
1848
2122
  return toRange(min, max, false, options);
1849
2123
  }
1850
2124
  let range = [];
1851
2125
  let index = 0;
1852
- while (descending ? a >= b3 : a <= b3) {
2126
+ while (descending ? a >= b : a <= b) {
1853
2127
  range.push(format(a, index));
1854
2128
  a = descending ? a - step : a + step;
1855
2129
  index++;
@@ -1892,7 +2166,7 @@ var require_fill_range = __commonJS({
1892
2166
  var require_compile = __commonJS({
1893
2167
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/compile.js"(exports, module) {
1894
2168
  "use strict";
1895
- init_utils();
2169
+ init_utils2();
1896
2170
  var fill = require_fill_range();
1897
2171
  var utils = require_utils();
1898
2172
  var compile = (ast, options = {}) => {
@@ -1944,7 +2218,7 @@ var require_compile = __commonJS({
1944
2218
  var require_expand = __commonJS({
1945
2219
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/expand.js"(exports, module) {
1946
2220
  "use strict";
1947
- init_utils();
2221
+ init_utils2();
1948
2222
  var fill = require_fill_range();
1949
2223
  var stringify2 = require_stringify();
1950
2224
  var utils = require_utils();
@@ -2039,7 +2313,7 @@ var require_expand = __commonJS({
2039
2313
  var require_constants = __commonJS({
2040
2314
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/constants.js"(exports, module) {
2041
2315
  "use strict";
2042
- init_utils();
2316
+ init_utils2();
2043
2317
  module.exports = {
2044
2318
  MAX_LENGTH: 1e4,
2045
2319
  // Digits
@@ -2141,7 +2415,7 @@ var require_constants = __commonJS({
2141
2415
  var require_parse = __commonJS({
2142
2416
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/parse.js"(exports, module) {
2143
2417
  "use strict";
2144
- init_utils();
2418
+ init_utils2();
2145
2419
  var stringify2 = require_stringify();
2146
2420
  var {
2147
2421
  MAX_LENGTH,
@@ -2380,7 +2654,7 @@ var require_parse = __commonJS({
2380
2654
  var require_braces = __commonJS({
2381
2655
  "node_modules/.bun/braces@3.0.3/node_modules/braces/index.js"(exports, module) {
2382
2656
  "use strict";
2383
- init_utils();
2657
+ init_utils2();
2384
2658
  var stringify2 = require_stringify();
2385
2659
  var compile = require_compile();
2386
2660
  var expand = require_expand();
@@ -2440,14 +2714,15 @@ var require_braces = __commonJS({
2440
2714
  }
2441
2715
  });
2442
2716
 
2443
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
2717
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js
2444
2718
  var require_constants2 = __commonJS({
2445
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module) {
2719
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js"(exports, module) {
2446
2720
  "use strict";
2447
- init_utils();
2721
+ init_utils2();
2448
2722
  var path = __require("path");
2449
2723
  var WIN_SLASH = "\\\\/";
2450
2724
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
2725
+ var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
2451
2726
  var DOT_LITERAL = "\\.";
2452
2727
  var PLUS_LITERAL = "\\+";
2453
2728
  var QMARK_LITERAL = "\\?";
@@ -2495,6 +2770,7 @@ var require_constants2 = __commonJS({
2495
2770
  END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
2496
2771
  };
2497
2772
  var POSIX_REGEX_SOURCE = {
2773
+ __proto__: null,
2498
2774
  alnum: "a-zA-Z0-9",
2499
2775
  alpha: "a-zA-Z",
2500
2776
  ascii: "\\x00-\\x7F",
@@ -2511,6 +2787,7 @@ var require_constants2 = __commonJS({
2511
2787
  xdigit: "A-Fa-f0-9"
2512
2788
  };
2513
2789
  module.exports = {
2790
+ DEFAULT_MAX_EXTGLOB_RECURSION,
2514
2791
  MAX_LENGTH: 1024 * 64,
2515
2792
  POSIX_REGEX_SOURCE,
2516
2793
  // regular expressions
@@ -2522,6 +2799,7 @@ var require_constants2 = __commonJS({
2522
2799
  REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
2523
2800
  // Replace globs with equivalent patterns to reduce parsing time.
2524
2801
  REPLACEMENTS: {
2802
+ __proto__: null,
2525
2803
  "***": "*",
2526
2804
  "**/**": "**",
2527
2805
  "**/**/**": "**"
@@ -2638,11 +2916,11 @@ var require_constants2 = __commonJS({
2638
2916
  }
2639
2917
  });
2640
2918
 
2641
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
2919
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js
2642
2920
  var require_utils2 = __commonJS({
2643
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
2921
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js"(exports) {
2644
2922
  "use strict";
2645
- init_utils();
2923
+ init_utils2();
2646
2924
  var path = __require("path");
2647
2925
  var win32 = process.platform === "win32";
2648
2926
  var {
@@ -2700,11 +2978,11 @@ var require_utils2 = __commonJS({
2700
2978
  }
2701
2979
  });
2702
2980
 
2703
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/scan.js
2981
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js
2704
2982
  var require_scan = __commonJS({
2705
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(exports, module) {
2983
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js"(exports, module) {
2706
2984
  "use strict";
2707
- init_utils();
2985
+ init_utils2();
2708
2986
  var utils = require_utils2();
2709
2987
  var {
2710
2988
  CHAR_ASTERISK,
@@ -3031,11 +3309,11 @@ var require_scan = __commonJS({
3031
3309
  }
3032
3310
  });
3033
3311
 
3034
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
3312
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js
3035
3313
  var require_parse2 = __commonJS({
3036
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports, module) {
3314
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js"(exports, module) {
3037
3315
  "use strict";
3038
- init_utils();
3316
+ init_utils2();
3039
3317
  var constants2 = require_constants2();
3040
3318
  var utils = require_utils2();
3041
3319
  var {
@@ -3056,10 +3334,217 @@ var require_parse2 = __commonJS({
3056
3334
  } catch (ex) {
3057
3335
  return args.map((v) => utils.escapeRegex(v)).join("..");
3058
3336
  }
3059
- return value;
3337
+ return value;
3338
+ };
3339
+ var syntaxError = (type, char) => {
3340
+ return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
3341
+ };
3342
+ var splitTopLevel = (input) => {
3343
+ const parts = [];
3344
+ let bracket = 0;
3345
+ let paren = 0;
3346
+ let quote = 0;
3347
+ let value = "";
3348
+ let escaped = false;
3349
+ for (const ch of input) {
3350
+ if (escaped === true) {
3351
+ value += ch;
3352
+ escaped = false;
3353
+ continue;
3354
+ }
3355
+ if (ch === "\\") {
3356
+ value += ch;
3357
+ escaped = true;
3358
+ continue;
3359
+ }
3360
+ if (ch === '"') {
3361
+ quote = quote === 1 ? 0 : 1;
3362
+ value += ch;
3363
+ continue;
3364
+ }
3365
+ if (quote === 0) {
3366
+ if (ch === "[") {
3367
+ bracket++;
3368
+ } else if (ch === "]" && bracket > 0) {
3369
+ bracket--;
3370
+ } else if (bracket === 0) {
3371
+ if (ch === "(") {
3372
+ paren++;
3373
+ } else if (ch === ")" && paren > 0) {
3374
+ paren--;
3375
+ } else if (ch === "|" && paren === 0) {
3376
+ parts.push(value);
3377
+ value = "";
3378
+ continue;
3379
+ }
3380
+ }
3381
+ }
3382
+ value += ch;
3383
+ }
3384
+ parts.push(value);
3385
+ return parts;
3386
+ };
3387
+ var isPlainBranch = (branch) => {
3388
+ let escaped = false;
3389
+ for (const ch of branch) {
3390
+ if (escaped === true) {
3391
+ escaped = false;
3392
+ continue;
3393
+ }
3394
+ if (ch === "\\") {
3395
+ escaped = true;
3396
+ continue;
3397
+ }
3398
+ if (/[?*+@!()[\]{}]/.test(ch)) {
3399
+ return false;
3400
+ }
3401
+ }
3402
+ return true;
3403
+ };
3404
+ var normalizeSimpleBranch = (branch) => {
3405
+ let value = branch.trim();
3406
+ let changed = true;
3407
+ while (changed === true) {
3408
+ changed = false;
3409
+ if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
3410
+ value = value.slice(2, -1);
3411
+ changed = true;
3412
+ }
3413
+ }
3414
+ if (!isPlainBranch(value)) {
3415
+ return;
3416
+ }
3417
+ return value.replace(/\\(.)/g, "$1");
3418
+ };
3419
+ var hasRepeatedCharPrefixOverlap = (branches) => {
3420
+ const values = branches.map(normalizeSimpleBranch).filter(Boolean);
3421
+ for (let i = 0; i < values.length; i++) {
3422
+ for (let j2 = i + 1; j2 < values.length; j2++) {
3423
+ const a = values[i];
3424
+ const b = values[j2];
3425
+ const char = a[0];
3426
+ if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) {
3427
+ continue;
3428
+ }
3429
+ if (a === b || a.startsWith(b) || b.startsWith(a)) {
3430
+ return true;
3431
+ }
3432
+ }
3433
+ }
3434
+ return false;
3435
+ };
3436
+ var parseRepeatedExtglob = (pattern, requireEnd = true) => {
3437
+ if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
3438
+ return;
3439
+ }
3440
+ let bracket = 0;
3441
+ let paren = 0;
3442
+ let quote = 0;
3443
+ let escaped = false;
3444
+ for (let i = 1; i < pattern.length; i++) {
3445
+ const ch = pattern[i];
3446
+ if (escaped === true) {
3447
+ escaped = false;
3448
+ continue;
3449
+ }
3450
+ if (ch === "\\") {
3451
+ escaped = true;
3452
+ continue;
3453
+ }
3454
+ if (ch === '"') {
3455
+ quote = quote === 1 ? 0 : 1;
3456
+ continue;
3457
+ }
3458
+ if (quote === 1) {
3459
+ continue;
3460
+ }
3461
+ if (ch === "[") {
3462
+ bracket++;
3463
+ continue;
3464
+ }
3465
+ if (ch === "]" && bracket > 0) {
3466
+ bracket--;
3467
+ continue;
3468
+ }
3469
+ if (bracket > 0) {
3470
+ continue;
3471
+ }
3472
+ if (ch === "(") {
3473
+ paren++;
3474
+ continue;
3475
+ }
3476
+ if (ch === ")") {
3477
+ paren--;
3478
+ if (paren === 0) {
3479
+ if (requireEnd === true && i !== pattern.length - 1) {
3480
+ return;
3481
+ }
3482
+ return {
3483
+ type: pattern[0],
3484
+ body: pattern.slice(2, i),
3485
+ end: i
3486
+ };
3487
+ }
3488
+ }
3489
+ }
3490
+ };
3491
+ var getStarExtglobSequenceOutput = (pattern) => {
3492
+ let index = 0;
3493
+ const chars = [];
3494
+ while (index < pattern.length) {
3495
+ const match = parseRepeatedExtglob(pattern.slice(index), false);
3496
+ if (!match || match.type !== "*") {
3497
+ return;
3498
+ }
3499
+ const branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
3500
+ if (branches.length !== 1) {
3501
+ return;
3502
+ }
3503
+ const branch = normalizeSimpleBranch(branches[0]);
3504
+ if (!branch || branch.length !== 1) {
3505
+ return;
3506
+ }
3507
+ chars.push(branch);
3508
+ index += match.end + 1;
3509
+ }
3510
+ if (chars.length < 1) {
3511
+ return;
3512
+ }
3513
+ const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
3514
+ return `${source}*`;
3060
3515
  };
3061
- var syntaxError = (type, char) => {
3062
- return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
3516
+ var repeatedExtglobRecursion = (pattern) => {
3517
+ let depth = 0;
3518
+ let value = pattern.trim();
3519
+ let match = parseRepeatedExtglob(value);
3520
+ while (match) {
3521
+ depth++;
3522
+ value = match.body.trim();
3523
+ match = parseRepeatedExtglob(value);
3524
+ }
3525
+ return depth;
3526
+ };
3527
+ var analyzeRepeatedExtglob = (body, options) => {
3528
+ if (options.maxExtglobRecursion === false) {
3529
+ return { risky: false };
3530
+ }
3531
+ const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants2.DEFAULT_MAX_EXTGLOB_RECURSION;
3532
+ const branches = splitTopLevel(body).map((branch) => branch.trim());
3533
+ if (branches.length > 1) {
3534
+ if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
3535
+ return { risky: true };
3536
+ }
3537
+ }
3538
+ for (const branch of branches) {
3539
+ const safeOutput = getStarExtglobSequenceOutput(branch);
3540
+ if (safeOutput) {
3541
+ return { risky: true, safeOutput };
3542
+ }
3543
+ if (repeatedExtglobRecursion(branch) > max) {
3544
+ return { risky: true };
3545
+ }
3546
+ }
3547
+ return { risky: false };
3063
3548
  };
3064
3549
  var parse2 = (input, options) => {
3065
3550
  if (typeof input !== "string") {
@@ -3192,6 +3677,8 @@ var require_parse2 = __commonJS({
3192
3677
  token.prev = prev;
3193
3678
  token.parens = state.parens;
3194
3679
  token.output = state.output;
3680
+ token.startIndex = state.index;
3681
+ token.tokensIndex = tokens.length;
3195
3682
  const output = (opts.capture ? "(" : "") + token.open;
3196
3683
  increment("parens");
3197
3684
  push({ type, value: value2, output: state.output ? "" : ONE_CHAR });
@@ -3199,6 +3686,26 @@ var require_parse2 = __commonJS({
3199
3686
  extglobs.push(token);
3200
3687
  };
3201
3688
  const extglobClose = (token) => {
3689
+ const literal = input.slice(token.startIndex, state.index + 1);
3690
+ const body = input.slice(token.startIndex + 2, state.index);
3691
+ const analysis = analyzeRepeatedExtglob(body, opts);
3692
+ if ((token.type === "plus" || token.type === "star") && analysis.risky) {
3693
+ const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
3694
+ const open = tokens[token.tokensIndex];
3695
+ open.type = "text";
3696
+ open.value = literal;
3697
+ open.output = safeOutput || utils.escapeRegex(literal);
3698
+ for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
3699
+ tokens[i].value = "";
3700
+ tokens[i].output = "";
3701
+ delete tokens[i].suffix;
3702
+ }
3703
+ state.output = token.output + open.output;
3704
+ state.backtrack = true;
3705
+ push({ type: "paren", extglob: true, value, output: "" });
3706
+ decrement("parens");
3707
+ return;
3708
+ }
3202
3709
  let output = token.close + (opts.capture ? ")" : "");
3203
3710
  let rest;
3204
3711
  if (token.type === "negate") {
@@ -3222,10 +3729,10 @@ var require_parse2 = __commonJS({
3222
3729
  };
3223
3730
  if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) {
3224
3731
  let backslashes = false;
3225
- let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m2, esc, chars, first, rest, index) => {
3732
+ let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => {
3226
3733
  if (first === "\\") {
3227
3734
  backslashes = true;
3228
- return m2;
3735
+ return m;
3229
3736
  }
3230
3737
  if (first === "?") {
3231
3738
  if (esc) {
@@ -3245,14 +3752,14 @@ var require_parse2 = __commonJS({
3245
3752
  }
3246
3753
  return star;
3247
3754
  }
3248
- return esc ? m2 : `\\${m2}`;
3755
+ return esc ? m : `\\${m}`;
3249
3756
  });
3250
3757
  if (backslashes === true) {
3251
3758
  if (opts.unescape === true) {
3252
3759
  output = output.replace(/\\/g, "");
3253
3760
  } else {
3254
- output = output.replace(/\\+/g, (m2) => {
3255
- return m2.length % 2 === 0 ? "\\\\" : m2 ? "\\" : "";
3761
+ output = output.replace(/\\+/g, (m) => {
3762
+ return m.length % 2 === 0 ? "\\\\" : m ? "\\" : "";
3256
3763
  });
3257
3764
  }
3258
3765
  }
@@ -3452,8 +3959,8 @@ var require_parse2 = __commonJS({
3452
3959
  brace.value = brace.output = "\\{";
3453
3960
  value = output = "\\}";
3454
3961
  state.output = out;
3455
- for (const t of toks) {
3456
- state.output += t.output || t.value;
3962
+ for (const t2 of toks) {
3963
+ state.output += t2.output || t2.value;
3457
3964
  }
3458
3965
  }
3459
3966
  push({ type: "brace", value, output });
@@ -3805,11 +4312,11 @@ var require_parse2 = __commonJS({
3805
4312
  }
3806
4313
  });
3807
4314
 
3808
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js
4315
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js
3809
4316
  var require_picomatch = __commonJS({
3810
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module) {
4317
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js"(exports, module) {
3811
4318
  "use strict";
3812
- init_utils();
4319
+ init_utils2();
3813
4320
  var path = __require("path");
3814
4321
  var scan = require_scan();
3815
4322
  var parse2 = require_parse2();
@@ -3947,11 +4454,11 @@ var require_picomatch = __commonJS({
3947
4454
  }
3948
4455
  });
3949
4456
 
3950
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/index.js
4457
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js
3951
4458
  var require_picomatch2 = __commonJS({
3952
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/index.js"(exports, module) {
4459
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js"(exports, module) {
3953
4460
  "use strict";
3954
- init_utils();
4461
+ init_utils2();
3955
4462
  module.exports = require_picomatch();
3956
4463
  }
3957
4464
  });
@@ -3960,7 +4467,7 @@ var require_picomatch2 = __commonJS({
3960
4467
  var require_micromatch = __commonJS({
3961
4468
  "node_modules/.bun/micromatch@4.0.8/node_modules/micromatch/index.js"(exports, module) {
3962
4469
  "use strict";
3963
- init_utils();
4470
+ init_utils2();
3964
4471
  var util = __require("util");
3965
4472
  var braces = require_braces();
3966
4473
  var picomatch = require_picomatch2();
@@ -4122,7 +4629,7 @@ var require_micromatch = __commonJS({
4122
4629
  var require_pattern = __commonJS({
4123
4630
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js"(exports) {
4124
4631
  "use strict";
4125
- init_utils();
4632
+ init_utils2();
4126
4633
  Object.defineProperty(exports, "__esModule", { value: true });
4127
4634
  exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
4128
4635
  var path = __require("path");
@@ -4232,7 +4739,7 @@ var require_pattern = __commonJS({
4232
4739
  exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
4233
4740
  function expandBraceExpansion(pattern) {
4234
4741
  const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true });
4235
- patterns.sort((a, b3) => a.length - b3.length);
4742
+ patterns.sort((a, b) => a.length - b.length);
4236
4743
  return patterns.filter((pattern2) => pattern2 !== "");
4237
4744
  }
4238
4745
  exports.expandBraceExpansion = expandBraceExpansion;
@@ -4288,7 +4795,7 @@ var require_pattern = __commonJS({
4288
4795
  var require_merge2 = __commonJS({
4289
4796
  "node_modules/.bun/merge2@1.4.1/node_modules/merge2/index.js"(exports, module) {
4290
4797
  "use strict";
4291
- init_utils();
4798
+ init_utils2();
4292
4799
  var Stream = __require("stream");
4293
4800
  var PassThrough = Stream.PassThrough;
4294
4801
  var slice = Array.prototype.slice;
@@ -4408,7 +4915,7 @@ var require_merge2 = __commonJS({
4408
4915
  var require_stream = __commonJS({
4409
4916
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js"(exports) {
4410
4917
  "use strict";
4411
- init_utils();
4918
+ init_utils2();
4412
4919
  Object.defineProperty(exports, "__esModule", { value: true });
4413
4920
  exports.merge = void 0;
4414
4921
  var merge2 = require_merge2();
@@ -4432,7 +4939,7 @@ var require_stream = __commonJS({
4432
4939
  var require_string = __commonJS({
4433
4940
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js"(exports) {
4434
4941
  "use strict";
4435
- init_utils();
4942
+ init_utils2();
4436
4943
  Object.defineProperty(exports, "__esModule", { value: true });
4437
4944
  exports.isEmpty = exports.isString = void 0;
4438
4945
  function isString(input) {
@@ -4450,7 +4957,7 @@ var require_string = __commonJS({
4450
4957
  var require_utils3 = __commonJS({
4451
4958
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js"(exports) {
4452
4959
  "use strict";
4453
- init_utils();
4960
+ init_utils2();
4454
4961
  Object.defineProperty(exports, "__esModule", { value: true });
4455
4962
  exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
4456
4963
  var array = require_array();
@@ -4474,7 +4981,7 @@ var require_utils3 = __commonJS({
4474
4981
  var require_tasks = __commonJS({
4475
4982
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js"(exports) {
4476
4983
  "use strict";
4477
- init_utils();
4984
+ init_utils2();
4478
4985
  Object.defineProperty(exports, "__esModule", { value: true });
4479
4986
  exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
4480
4987
  var utils = require_utils3();
@@ -4571,7 +5078,7 @@ var require_tasks = __commonJS({
4571
5078
  var require_async = __commonJS({
4572
5079
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) {
4573
5080
  "use strict";
4574
- init_utils();
5081
+ init_utils2();
4575
5082
  Object.defineProperty(exports, "__esModule", { value: true });
4576
5083
  exports.read = void 0;
4577
5084
  function read(path, settings, callback) {
@@ -4614,7 +5121,7 @@ var require_async = __commonJS({
4614
5121
  var require_sync = __commonJS({
4615
5122
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) {
4616
5123
  "use strict";
4617
- init_utils();
5124
+ init_utils2();
4618
5125
  Object.defineProperty(exports, "__esModule", { value: true });
4619
5126
  exports.read = void 0;
4620
5127
  function read(path, settings) {
@@ -4643,7 +5150,7 @@ var require_sync = __commonJS({
4643
5150
  var require_fs2 = __commonJS({
4644
5151
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) {
4645
5152
  "use strict";
4646
- init_utils();
5153
+ init_utils2();
4647
5154
  Object.defineProperty(exports, "__esModule", { value: true });
4648
5155
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
4649
5156
  var fs2 = __require("fs");
@@ -4667,7 +5174,7 @@ var require_fs2 = __commonJS({
4667
5174
  var require_settings = __commonJS({
4668
5175
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js"(exports) {
4669
5176
  "use strict";
4670
- init_utils();
5177
+ init_utils2();
4671
5178
  Object.defineProperty(exports, "__esModule", { value: true });
4672
5179
  var fs2 = require_fs2();
4673
5180
  var Settings = class {
@@ -4690,7 +5197,7 @@ var require_settings = __commonJS({
4690
5197
  var require_out = __commonJS({
4691
5198
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js"(exports) {
4692
5199
  "use strict";
4693
- init_utils();
5200
+ init_utils2();
4694
5201
  Object.defineProperty(exports, "__esModule", { value: true });
4695
5202
  exports.statSync = exports.stat = exports.Settings = void 0;
4696
5203
  var async = require_async();
@@ -4722,7 +5229,7 @@ var require_out = __commonJS({
4722
5229
  // node_modules/.bun/queue-microtask@1.2.3/node_modules/queue-microtask/index.js
4723
5230
  var require_queue_microtask = __commonJS({
4724
5231
  "node_modules/.bun/queue-microtask@1.2.3/node_modules/queue-microtask/index.js"(exports, module) {
4725
- init_utils();
5232
+ init_utils2();
4726
5233
  var promise;
4727
5234
  module.exports = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : global) : (cb) => (promise || (promise = Promise.resolve())).then(cb).catch((err) => setTimeout(() => {
4728
5235
  throw err;
@@ -4733,7 +5240,7 @@ var require_queue_microtask = __commonJS({
4733
5240
  // node_modules/.bun/run-parallel@1.2.0/node_modules/run-parallel/index.js
4734
5241
  var require_run_parallel = __commonJS({
4735
5242
  "node_modules/.bun/run-parallel@1.2.0/node_modules/run-parallel/index.js"(exports, module) {
4736
- init_utils();
5243
+ init_utils2();
4737
5244
  module.exports = runParallel;
4738
5245
  var queueMicrotask2 = require_queue_microtask();
4739
5246
  function runParallel(tasks, cb) {
@@ -4785,7 +5292,7 @@ var require_run_parallel = __commonJS({
4785
5292
  var require_constants3 = __commonJS({
4786
5293
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js"(exports) {
4787
5294
  "use strict";
4788
- init_utils();
5295
+ init_utils2();
4789
5296
  Object.defineProperty(exports, "__esModule", { value: true });
4790
5297
  exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
4791
5298
  var NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
@@ -4806,7 +5313,7 @@ var require_constants3 = __commonJS({
4806
5313
  var require_fs3 = __commonJS({
4807
5314
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js"(exports) {
4808
5315
  "use strict";
4809
- init_utils();
5316
+ init_utils2();
4810
5317
  Object.defineProperty(exports, "__esModule", { value: true });
4811
5318
  exports.createDirentFromStats = void 0;
4812
5319
  var DirentFromStats = class {
@@ -4832,7 +5339,7 @@ var require_fs3 = __commonJS({
4832
5339
  var require_utils4 = __commonJS({
4833
5340
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
4834
5341
  "use strict";
4835
- init_utils();
5342
+ init_utils2();
4836
5343
  Object.defineProperty(exports, "__esModule", { value: true });
4837
5344
  exports.fs = void 0;
4838
5345
  var fs2 = require_fs3();
@@ -4844,14 +5351,14 @@ var require_utils4 = __commonJS({
4844
5351
  var require_common = __commonJS({
4845
5352
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js"(exports) {
4846
5353
  "use strict";
4847
- init_utils();
5354
+ init_utils2();
4848
5355
  Object.defineProperty(exports, "__esModule", { value: true });
4849
5356
  exports.joinPathSegments = void 0;
4850
- function joinPathSegments(a, b3, separator) {
5357
+ function joinPathSegments(a, b, separator) {
4851
5358
  if (a.endsWith(separator)) {
4852
- return a + b3;
5359
+ return a + b;
4853
5360
  }
4854
- return a + separator + b3;
5361
+ return a + separator + b;
4855
5362
  }
4856
5363
  exports.joinPathSegments = joinPathSegments;
4857
5364
  }
@@ -4861,7 +5368,7 @@ var require_common = __commonJS({
4861
5368
  var require_async2 = __commonJS({
4862
5369
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js"(exports) {
4863
5370
  "use strict";
4864
- init_utils();
5371
+ init_utils2();
4865
5372
  Object.defineProperty(exports, "__esModule", { value: true });
4866
5373
  exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
4867
5374
  var fsStat = require_out();
@@ -4972,7 +5479,7 @@ var require_async2 = __commonJS({
4972
5479
  var require_sync2 = __commonJS({
4973
5480
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js"(exports) {
4974
5481
  "use strict";
4975
- init_utils();
5482
+ init_utils2();
4976
5483
  Object.defineProperty(exports, "__esModule", { value: true });
4977
5484
  exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
4978
5485
  var fsStat = require_out();
@@ -5032,7 +5539,7 @@ var require_sync2 = __commonJS({
5032
5539
  var require_fs4 = __commonJS({
5033
5540
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) {
5034
5541
  "use strict";
5035
- init_utils();
5542
+ init_utils2();
5036
5543
  Object.defineProperty(exports, "__esModule", { value: true });
5037
5544
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
5038
5545
  var fs2 = __require("fs");
@@ -5058,7 +5565,7 @@ var require_fs4 = __commonJS({
5058
5565
  var require_settings2 = __commonJS({
5059
5566
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
5060
5567
  "use strict";
5061
- init_utils();
5568
+ init_utils2();
5062
5569
  Object.defineProperty(exports, "__esModule", { value: true });
5063
5570
  var path = __require("path");
5064
5571
  var fsStat = require_out();
@@ -5089,7 +5596,7 @@ var require_settings2 = __commonJS({
5089
5596
  var require_out2 = __commonJS({
5090
5597
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js"(exports) {
5091
5598
  "use strict";
5092
- init_utils();
5599
+ init_utils2();
5093
5600
  Object.defineProperty(exports, "__esModule", { value: true });
5094
5601
  exports.Settings = exports.scandirSync = exports.scandir = void 0;
5095
5602
  var async = require_async2();
@@ -5122,7 +5629,7 @@ var require_out2 = __commonJS({
5122
5629
  var require_reusify = __commonJS({
5123
5630
  "node_modules/.bun/reusify@1.1.0/node_modules/reusify/reusify.js"(exports, module) {
5124
5631
  "use strict";
5125
- init_utils();
5632
+ init_utils2();
5126
5633
  function reusify(Constructor) {
5127
5634
  var head = new Constructor();
5128
5635
  var tail = head;
@@ -5154,7 +5661,7 @@ var require_reusify = __commonJS({
5154
5661
  var require_queue = __commonJS({
5155
5662
  "node_modules/.bun/fastq@1.20.1/node_modules/fastq/queue.js"(exports, module) {
5156
5663
  "use strict";
5157
- init_utils();
5664
+ init_utils2();
5158
5665
  var reusify = require_reusify();
5159
5666
  function fastqueue(context, worker, _concurrency) {
5160
5667
  if (typeof context === "function") {
@@ -5439,7 +5946,7 @@ var require_queue = __commonJS({
5439
5946
  var require_common2 = __commonJS({
5440
5947
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js"(exports) {
5441
5948
  "use strict";
5442
- init_utils();
5949
+ init_utils2();
5443
5950
  Object.defineProperty(exports, "__esModule", { value: true });
5444
5951
  exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
5445
5952
  function isFatalError(settings, error2) {
@@ -5457,14 +5964,14 @@ var require_common2 = __commonJS({
5457
5964
  return filepath.split(/[/\\]/).join(separator);
5458
5965
  }
5459
5966
  exports.replacePathSegmentSeparator = replacePathSegmentSeparator;
5460
- function joinPathSegments(a, b3, separator) {
5967
+ function joinPathSegments(a, b, separator) {
5461
5968
  if (a === "") {
5462
- return b3;
5969
+ return b;
5463
5970
  }
5464
5971
  if (a.endsWith(separator)) {
5465
- return a + b3;
5972
+ return a + b;
5466
5973
  }
5467
- return a + separator + b3;
5974
+ return a + separator + b;
5468
5975
  }
5469
5976
  exports.joinPathSegments = joinPathSegments;
5470
5977
  }
@@ -5474,7 +5981,7 @@ var require_common2 = __commonJS({
5474
5981
  var require_reader = __commonJS({
5475
5982
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.js"(exports) {
5476
5983
  "use strict";
5477
- init_utils();
5984
+ init_utils2();
5478
5985
  Object.defineProperty(exports, "__esModule", { value: true });
5479
5986
  var common = require_common2();
5480
5987
  var Reader = class {
@@ -5492,7 +5999,7 @@ var require_reader = __commonJS({
5492
5999
  var require_async3 = __commonJS({
5493
6000
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.js"(exports) {
5494
6001
  "use strict";
5495
- init_utils();
6002
+ init_utils2();
5496
6003
  Object.defineProperty(exports, "__esModule", { value: true });
5497
6004
  var events_1 = __require("events");
5498
6005
  var fsScandir = require_out2();
@@ -5596,7 +6103,7 @@ var require_async3 = __commonJS({
5596
6103
  var require_async4 = __commonJS({
5597
6104
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.js"(exports) {
5598
6105
  "use strict";
5599
- init_utils();
6106
+ init_utils2();
5600
6107
  Object.defineProperty(exports, "__esModule", { value: true });
5601
6108
  var async_1 = require_async3();
5602
6109
  var AsyncProvider = class {
@@ -5633,7 +6140,7 @@ var require_async4 = __commonJS({
5633
6140
  var require_stream2 = __commonJS({
5634
6141
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.js"(exports) {
5635
6142
  "use strict";
5636
- init_utils();
6143
+ init_utils2();
5637
6144
  Object.defineProperty(exports, "__esModule", { value: true });
5638
6145
  var stream_1 = __require("stream");
5639
6146
  var async_1 = require_async3();
@@ -5675,7 +6182,7 @@ var require_stream2 = __commonJS({
5675
6182
  var require_sync3 = __commonJS({
5676
6183
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.js"(exports) {
5677
6184
  "use strict";
5678
- init_utils();
6185
+ init_utils2();
5679
6186
  Object.defineProperty(exports, "__esModule", { value: true });
5680
6187
  var fsScandir = require_out2();
5681
6188
  var common = require_common2();
@@ -5740,7 +6247,7 @@ var require_sync3 = __commonJS({
5740
6247
  var require_sync4 = __commonJS({
5741
6248
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.js"(exports) {
5742
6249
  "use strict";
5743
- init_utils();
6250
+ init_utils2();
5744
6251
  Object.defineProperty(exports, "__esModule", { value: true });
5745
6252
  var sync_1 = require_sync3();
5746
6253
  var SyncProvider = class {
@@ -5761,7 +6268,7 @@ var require_sync4 = __commonJS({
5761
6268
  var require_settings3 = __commonJS({
5762
6269
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
5763
6270
  "use strict";
5764
- init_utils();
6271
+ init_utils2();
5765
6272
  Object.defineProperty(exports, "__esModule", { value: true });
5766
6273
  var path = __require("path");
5767
6274
  var fsScandir = require_out2();
@@ -5794,7 +6301,7 @@ var require_settings3 = __commonJS({
5794
6301
  var require_out3 = __commonJS({
5795
6302
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js"(exports) {
5796
6303
  "use strict";
5797
- init_utils();
6304
+ init_utils2();
5798
6305
  Object.defineProperty(exports, "__esModule", { value: true });
5799
6306
  exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
5800
6307
  var async_1 = require_async4();
@@ -5835,7 +6342,7 @@ var require_out3 = __commonJS({
5835
6342
  var require_reader2 = __commonJS({
5836
6343
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js"(exports) {
5837
6344
  "use strict";
5838
- init_utils();
6345
+ init_utils2();
5839
6346
  Object.defineProperty(exports, "__esModule", { value: true });
5840
6347
  var path = __require("path");
5841
6348
  var fsStat = require_out();
@@ -5875,7 +6382,7 @@ var require_reader2 = __commonJS({
5875
6382
  var require_stream3 = __commonJS({
5876
6383
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js"(exports) {
5877
6384
  "use strict";
5878
- init_utils();
6385
+ init_utils2();
5879
6386
  Object.defineProperty(exports, "__esModule", { value: true });
5880
6387
  var stream_1 = __require("stream");
5881
6388
  var fsStat = require_out();
@@ -5933,7 +6440,7 @@ var require_stream3 = __commonJS({
5933
6440
  var require_async5 = __commonJS({
5934
6441
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js"(exports) {
5935
6442
  "use strict";
5936
- init_utils();
6443
+ init_utils2();
5937
6444
  Object.defineProperty(exports, "__esModule", { value: true });
5938
6445
  var fsWalk = require_out3();
5939
6446
  var reader_1 = require_reader2();
@@ -5973,7 +6480,7 @@ var require_async5 = __commonJS({
5973
6480
  var require_matcher = __commonJS({
5974
6481
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) {
5975
6482
  "use strict";
5976
- init_utils();
6483
+ init_utils2();
5977
6484
  Object.defineProperty(exports, "__esModule", { value: true });
5978
6485
  var utils = require_utils3();
5979
6486
  var Matcher = class {
@@ -6025,7 +6532,7 @@ var require_matcher = __commonJS({
6025
6532
  var require_partial = __commonJS({
6026
6533
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js"(exports) {
6027
6534
  "use strict";
6028
- init_utils();
6535
+ init_utils2();
6029
6536
  Object.defineProperty(exports, "__esModule", { value: true });
6030
6537
  var matcher_1 = require_matcher();
6031
6538
  var PartialMatcher = class extends matcher_1.default {
@@ -6063,7 +6570,7 @@ var require_partial = __commonJS({
6063
6570
  var require_deep = __commonJS({
6064
6571
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js"(exports) {
6065
6572
  "use strict";
6066
- init_utils();
6573
+ init_utils2();
6067
6574
  Object.defineProperty(exports, "__esModule", { value: true });
6068
6575
  var utils = require_utils3();
6069
6576
  var partial_1 = require_partial();
@@ -6129,7 +6636,7 @@ var require_deep = __commonJS({
6129
6636
  var require_entry = __commonJS({
6130
6637
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js"(exports) {
6131
6638
  "use strict";
6132
- init_utils();
6639
+ init_utils2();
6133
6640
  Object.defineProperty(exports, "__esModule", { value: true });
6134
6641
  var utils = require_utils3();
6135
6642
  var EntryFilter = class {
@@ -6218,7 +6725,7 @@ var require_entry = __commonJS({
6218
6725
  var require_error = __commonJS({
6219
6726
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js"(exports) {
6220
6727
  "use strict";
6221
- init_utils();
6728
+ init_utils2();
6222
6729
  Object.defineProperty(exports, "__esModule", { value: true });
6223
6730
  var utils = require_utils3();
6224
6731
  var ErrorFilter = class {
@@ -6240,7 +6747,7 @@ var require_error = __commonJS({
6240
6747
  var require_entry2 = __commonJS({
6241
6748
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js"(exports) {
6242
6749
  "use strict";
6243
- init_utils();
6750
+ init_utils2();
6244
6751
  Object.defineProperty(exports, "__esModule", { value: true });
6245
6752
  var utils = require_utils3();
6246
6753
  var EntryTransformer = class {
@@ -6273,7 +6780,7 @@ var require_entry2 = __commonJS({
6273
6780
  var require_provider = __commonJS({
6274
6781
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js"(exports) {
6275
6782
  "use strict";
6276
- init_utils();
6783
+ init_utils2();
6277
6784
  Object.defineProperty(exports, "__esModule", { value: true });
6278
6785
  var path = __require("path");
6279
6786
  var deep_1 = require_deep();
@@ -6328,7 +6835,7 @@ var require_provider = __commonJS({
6328
6835
  var require_async6 = __commonJS({
6329
6836
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js"(exports) {
6330
6837
  "use strict";
6331
- init_utils();
6838
+ init_utils2();
6332
6839
  Object.defineProperty(exports, "__esModule", { value: true });
6333
6840
  var async_1 = require_async5();
6334
6841
  var provider_1 = require_provider();
@@ -6358,7 +6865,7 @@ var require_async6 = __commonJS({
6358
6865
  var require_stream4 = __commonJS({
6359
6866
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js"(exports) {
6360
6867
  "use strict";
6361
- init_utils();
6868
+ init_utils2();
6362
6869
  Object.defineProperty(exports, "__esModule", { value: true });
6363
6870
  var stream_1 = __require("stream");
6364
6871
  var stream_2 = require_stream3();
@@ -6393,7 +6900,7 @@ var require_stream4 = __commonJS({
6393
6900
  var require_sync5 = __commonJS({
6394
6901
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js"(exports) {
6395
6902
  "use strict";
6396
- init_utils();
6903
+ init_utils2();
6397
6904
  Object.defineProperty(exports, "__esModule", { value: true });
6398
6905
  var fsStat = require_out();
6399
6906
  var fsWalk = require_out3();
@@ -6442,7 +6949,7 @@ var require_sync5 = __commonJS({
6442
6949
  var require_sync6 = __commonJS({
6443
6950
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js"(exports) {
6444
6951
  "use strict";
6445
- init_utils();
6952
+ init_utils2();
6446
6953
  Object.defineProperty(exports, "__esModule", { value: true });
6447
6954
  var sync_1 = require_sync5();
6448
6955
  var provider_1 = require_provider();
@@ -6472,7 +6979,7 @@ var require_sync6 = __commonJS({
6472
6979
  var require_settings4 = __commonJS({
6473
6980
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js"(exports) {
6474
6981
  "use strict";
6475
- init_utils();
6982
+ init_utils2();
6476
6983
  Object.defineProperty(exports, "__esModule", { value: true });
6477
6984
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
6478
6985
  var fs2 = __require("fs");
@@ -6533,7 +7040,7 @@ var require_settings4 = __commonJS({
6533
7040
  var require_out4 = __commonJS({
6534
7041
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/index.js"(exports, module) {
6535
7042
  "use strict";
6536
- init_utils();
7043
+ init_utils2();
6537
7044
  var taskManager = require_tasks();
6538
7045
  var async_1 = require_async6();
6539
7046
  var stream_1 = require_stream4();
@@ -6652,7 +7159,7 @@ var I18N_PATHS, SCAN_PATTERNS, GLOB_OPTIONS;
6652
7159
  var init_constants = __esm({
6653
7160
  "packages/core/config/constants.js"() {
6654
7161
  "use strict";
6655
- init_utils();
7162
+ init_utils2();
6656
7163
  I18N_PATHS = {
6657
7164
  // Monorepo source structure (locales at root, not in src/)
6658
7165
  SOURCE_ROOT: "packages/core/i18n",
@@ -6814,7 +7321,7 @@ var import_fast_glob, constants, log2, PACKAGE_PATHS, PathResolver;
6814
7321
  var init_PathResolver = __esm({
6815
7322
  "packages/core/config/utils/PathResolver.ts"() {
6816
7323
  "use strict";
6817
- init_utils();
7324
+ init_utils2();
6818
7325
  import_fast_glob = __toESM(require_out4(), 1);
6819
7326
  init_constants();
6820
7327
  constants = {
@@ -7814,13 +8321,14 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
7814
8321
  function readdirSync2(dirPath, options) {
7815
8322
  return pathResolverInstance.readdirSync(dirPath, options);
7816
8323
  }
7817
- var pathResolverInstance, getAppRoot, normalizePath, pathExists, readSync, write, statSync2, ensureDir, joinPath;
8324
+ var pathResolverInstance, getRepoRoot, getAppRoot, normalizePath, pathExists, readSync, write, statSync2, ensureDir, joinPath;
7818
8325
  var init_pathResolver = __esm({
7819
8326
  "packages/tooling/src/utils/pathResolver.ts"() {
7820
8327
  "use strict";
7821
- init_utils();
8328
+ init_utils2();
7822
8329
  init_PathResolver();
7823
8330
  pathResolverInstance = PathResolver.getInstance({ debug: false });
8331
+ getRepoRoot = () => pathResolverInstance.getRepoRoot();
7824
8332
  getAppRoot = () => pathResolverInstance.getAppRoot();
7825
8333
  normalizePath = (...pathSegments) => {
7826
8334
  return pathResolverInstance.normalizePath(join2(...pathSegments));
@@ -7851,10 +8359,28 @@ function readFirebaserc(filePath) {
7851
8359
  }
7852
8360
  return content;
7853
8361
  }
8362
+ function readPackageJson(filePath) {
8363
+ if (!pathExists(filePath)) {
8364
+ throw new DoNotDevError(
8365
+ `package.json not found: ${filePath}`,
8366
+ DO_NOT_DEV_ERROR_CODES.FILE_NOT_FOUND,
8367
+ { context: { filePath } }
8368
+ );
8369
+ }
8370
+ const content = readSync(filePath, { format: "json" });
8371
+ if (!content || typeof content !== "object" || !("name" in content)) {
8372
+ throw new DoNotDevError(
8373
+ `Invalid package.json: ${filePath}`,
8374
+ DO_NOT_DEV_ERROR_CODES.CONFIG_INVALID,
8375
+ { context: { filePath } }
8376
+ );
8377
+ }
8378
+ return content;
8379
+ }
7854
8380
  var init_typed_file_operations = __esm({
7855
8381
  "packages/tooling/src/utils/typed-file-operations.ts"() {
7856
8382
  "use strict";
7857
- init_utils();
8383
+ init_utils2();
7858
8384
  init_errors();
7859
8385
  init_pathResolver();
7860
8386
  }
@@ -7868,7 +8394,7 @@ import { dirname as dirname3, resolve as resolve3 } from "node:path";
7868
8394
  import process from "node:process";
7869
8395
  import { fileURLToPath as fileURLToPath3 } from "node:url";
7870
8396
  var require2, __filename, __dirname;
7871
- var init_utils = __esm({
8397
+ var init_utils2 = __esm({
7872
8398
  "packages/tooling/src/bundler/utils.ts"() {
7873
8399
  "use strict";
7874
8400
  require2 = createRequire3(import.meta.url);
@@ -7887,14 +8413,180 @@ var init_utils = __esm({
7887
8413
  }
7888
8414
  });
7889
8415
 
8416
+ // packages/tooling/src/utils/app-detection.ts
8417
+ function usesFirebase(app) {
8418
+ return app.provider === "firebase" || app.provider === "both";
8419
+ }
8420
+ function usesSupabase(app) {
8421
+ return app.provider === "supabase" || app.provider === "both";
8422
+ }
8423
+ function usesVercel(app) {
8424
+ return app.hosting === "vercel" || app.functions === "vercel";
8425
+ }
8426
+ function analyzeApp(appPath, appName) {
8427
+ const packageJsonPath = joinPath(appPath, "package.json");
8428
+ if (!pathExists(packageJsonPath)) {
8429
+ return null;
8430
+ }
8431
+ let packageJson = null;
8432
+ try {
8433
+ packageJson = readPackageJson(packageJsonPath);
8434
+ if (!packageJson.name) {
8435
+ return null;
8436
+ }
8437
+ } catch {
8438
+ return null;
8439
+ }
8440
+ let framework = "unknown";
8441
+ if (pathExists(joinPath(appPath, "next.config.js")) || pathExists(joinPath(appPath, "next.config.ts")) || pathExists(joinPath(appPath, "next.config.mjs")) || packageJson.dependencies?.next || packageJson.devDependencies?.next) {
8442
+ framework = "nextjs";
8443
+ } else if (pathExists(joinPath(appPath, "vite.config.ts")) || pathExists(joinPath(appPath, "vite.config.js")) || pathExists(joinPath(appPath, "vite.config.mjs")) || packageJson.dependencies?.vite || packageJson.devDependencies?.vite) {
8444
+ framework = "vite";
8445
+ }
8446
+ const firebaseJsonPath = joinPath(appPath, "firebase.json");
8447
+ const hasFirebase = pathExists(firebaseJsonPath);
8448
+ const supabaseDir = joinPath(appPath, "supabase");
8449
+ const supabaseConfigPath = joinPath(supabaseDir, "config.toml");
8450
+ const hasSupabaseDep = !!(packageJson.dependencies?.["@donotdev/supabase"] || packageJson.dependencies?.["@supabase/supabase-js"]);
8451
+ let hasSupabase = pathExists(supabaseDir) || pathExists(supabaseConfigPath) || hasSupabaseDep;
8452
+ if (!hasSupabase) {
8453
+ try {
8454
+ const envPath = joinPath(appPath, ".env");
8455
+ if (pathExists(envPath)) {
8456
+ const envContent = readSync(envPath);
8457
+ if (envContent.match(/VITE_SUPABASE_URL=.+/)) {
8458
+ hasSupabase = true;
8459
+ }
8460
+ }
8461
+ } catch {
8462
+ }
8463
+ }
8464
+ let provider = "unknown";
8465
+ if (hasFirebase && hasSupabase) {
8466
+ provider = "both";
8467
+ } else if (hasFirebase) {
8468
+ provider = "firebase";
8469
+ } else if (hasSupabase) {
8470
+ provider = "supabase";
8471
+ }
8472
+ let firebaseConfig;
8473
+ if (hasFirebase) {
8474
+ try {
8475
+ const config = readSync(firebaseJsonPath, { format: "json" });
8476
+ if (config && typeof config === "object") {
8477
+ const fb = config;
8478
+ firebaseConfig = {
8479
+ projectId: fb.projectId,
8480
+ hasHosting: !!fb.hosting,
8481
+ hasFunctions: !!fb.functions,
8482
+ hasFirestoreRules: !!fb.firestore?.rules,
8483
+ hasStorageRules: !!fb.storage?.rules
8484
+ };
8485
+ }
8486
+ } catch {
8487
+ firebaseConfig = {
8488
+ hasHosting: false,
8489
+ hasFunctions: false,
8490
+ hasFirestoreRules: false,
8491
+ hasStorageRules: false
8492
+ };
8493
+ }
8494
+ }
8495
+ const supabaseFunctionsDir = joinPath(supabaseDir, "functions");
8496
+ const supabaseMigrationsDir = joinPath(supabaseDir, "migrations");
8497
+ let supabaseConfig;
8498
+ if (hasSupabase) {
8499
+ let url;
8500
+ try {
8501
+ const envPath = joinPath(appPath, ".env");
8502
+ if (pathExists(envPath)) {
8503
+ const envContent = readSync(envPath);
8504
+ const urlMatch = envContent.match(/VITE_SUPABASE_URL=(.+)/);
8505
+ if (urlMatch && urlMatch[1]) {
8506
+ url = urlMatch[1].trim();
8507
+ }
8508
+ }
8509
+ } catch {
8510
+ }
8511
+ supabaseConfig = {
8512
+ url,
8513
+ hasFunctions: pathExists(supabaseFunctionsDir),
8514
+ hasMigrations: pathExists(supabaseMigrationsDir)
8515
+ };
8516
+ }
8517
+ let functions;
8518
+ if (hasFirebase && firebaseConfig?.hasFunctions) {
8519
+ const firebaseFunctionsDir = joinPath(appPath, "functions");
8520
+ const firebaseFunctionsStat = statSync2(firebaseFunctionsDir);
8521
+ if (pathExists(firebaseFunctionsDir) && (firebaseFunctionsStat?.isDirectory() ?? false)) {
8522
+ functions = "firebase";
8523
+ }
8524
+ }
8525
+ if (!functions && hasSupabase) {
8526
+ const sbFunctionsStat = statSync2(supabaseFunctionsDir);
8527
+ if (pathExists(supabaseFunctionsDir) && (sbFunctionsStat?.isDirectory() ?? false)) {
8528
+ functions = "supabase";
8529
+ }
8530
+ }
8531
+ if (!functions) {
8532
+ const vercelJsonPath = joinPath(appPath, "vercel.json");
8533
+ const apiDir = joinPath(appPath, "api");
8534
+ const apiDirStat = statSync2(apiDir);
8535
+ if (pathExists(vercelJsonPath) && pathExists(apiDir) && (apiDirStat?.isDirectory() ?? false)) {
8536
+ functions = "vercel";
8537
+ }
8538
+ }
8539
+ let hosting;
8540
+ if (hasFirebase && firebaseConfig?.hasHosting) {
8541
+ hosting = "firebase";
8542
+ }
8543
+ if (!hosting) {
8544
+ if (pathExists(joinPath(appPath, "vercel.json")) || pathExists(joinPath(appPath, ".vercel"))) {
8545
+ hosting = "vercel";
8546
+ }
8547
+ }
8548
+ return {
8549
+ name: appName,
8550
+ packageName: packageJson.name || appName,
8551
+ path: appPath,
8552
+ framework,
8553
+ provider,
8554
+ functions,
8555
+ hosting,
8556
+ firebaseConfig,
8557
+ supabaseConfig
8558
+ };
8559
+ }
8560
+ function detectProvider(appDir) {
8561
+ const pathParts = appDir.split(/[/\\]/);
8562
+ const appName = pathParts[pathParts.length - 1] || "app";
8563
+ const result = analyzeApp(appDir, appName);
8564
+ if (result) return result;
8565
+ return {
8566
+ name: appName,
8567
+ packageName: appName,
8568
+ path: appDir,
8569
+ framework: "unknown",
8570
+ provider: "unknown"
8571
+ };
8572
+ }
8573
+ var init_app_detection = __esm({
8574
+ "packages/tooling/src/utils/app-detection.ts"() {
8575
+ "use strict";
8576
+ init_utils2();
8577
+ init_pathResolver();
8578
+ init_typed_file_operations();
8579
+ }
8580
+ });
8581
+
7890
8582
  // packages/tooling/src/utils/cli-input.ts
7891
8583
  async function askForConfirmation(message, defaultValue = false) {
7892
- const result = await ye({
8584
+ const result = await ot2({
7893
8585
  message,
7894
8586
  initialValue: defaultValue
7895
8587
  });
7896
- if (pD(result)) {
7897
- xe("Operation cancelled.");
8588
+ if (q(result)) {
8589
+ pt("Operation cancelled.");
7898
8590
  process.exit(0);
7899
8591
  }
7900
8592
  return result;
@@ -7905,13 +8597,13 @@ async function askForSelection(message, choices, defaultValue = 0) {
7905
8597
  label: choice.title,
7906
8598
  hint: choice.hint
7907
8599
  }));
7908
- const result = await ve({
8600
+ const result = await _t({
7909
8601
  message,
7910
8602
  options,
7911
8603
  initialValue: choices[defaultValue]?.value
7912
8604
  });
7913
- if (pD(result)) {
7914
- xe("Operation cancelled.");
8605
+ if (q(result)) {
8606
+ pt("Operation cancelled.");
7915
8607
  process.exit(0);
7916
8608
  }
7917
8609
  return result;
@@ -7919,8 +8611,8 @@ async function askForSelection(message, choices, defaultValue = 0) {
7919
8611
  var init_cli_input = __esm({
7920
8612
  "packages/tooling/src/utils/cli-input.ts"() {
7921
8613
  "use strict";
7922
- init_utils();
7923
- init_dist2();
8614
+ init_utils2();
8615
+ init_dist4();
7924
8616
  }
7925
8617
  });
7926
8618
 
@@ -8022,7 +8714,7 @@ var LEGACY_PATHS, warnedLegacy, cachedSecretsPath, cachedSecrets;
8022
8714
  var init_secrets_resolver = __esm({
8023
8715
  "packages/tooling/src/utils/secrets-resolver.ts"() {
8024
8716
  "use strict";
8025
- init_utils();
8717
+ init_utils2();
8026
8718
  init_cli_output();
8027
8719
  init_pathResolver();
8028
8720
  LEGACY_PATHS = {
@@ -8049,7 +8741,7 @@ function resolvePerAppVar(appDir, varName) {
8049
8741
  return null;
8050
8742
  }
8051
8743
  function resolveVercelCredentials(appDir, projectRoot) {
8052
- const root = projectRoot ?? process.cwd();
8744
+ const root = projectRoot ?? getRepoRoot();
8053
8745
  const token = resolveSecret("VERCEL_TOKEN", root, { appDir })?.value ?? null;
8054
8746
  const orgId = resolvePerAppVar(appDir, "VERCEL_ORG_ID");
8055
8747
  const projectId = resolvePerAppVar(appDir, "VERCEL_PROJECT_ID");
@@ -8068,7 +8760,7 @@ function resolveVercelCredentials(appDir, projectRoot) {
8068
8760
  var init_vercel_token = __esm({
8069
8761
  "packages/tooling/src/cli/setup/vercel-token.ts"() {
8070
8762
  "use strict";
8071
- init_utils();
8763
+ init_utils2();
8072
8764
  init_pathResolver();
8073
8765
  init_secrets_resolver();
8074
8766
  }
@@ -8164,7 +8856,7 @@ function uploadServiceAccountToGitHub(appDir, repo, dryRun = false, staging = fa
8164
8856
  var init_sync_secrets = __esm({
8165
8857
  "packages/tooling/src/apps/sync-secrets.ts"() {
8166
8858
  "use strict";
8167
- init_utils();
8859
+ init_utils2();
8168
8860
  init_cli_output();
8169
8861
  init_errors();
8170
8862
  init_pathResolver();
@@ -8172,16 +8864,16 @@ var init_sync_secrets = __esm({
8172
8864
  });
8173
8865
 
8174
8866
  // packages/cli/src/bin/commands/setup-cicd.ts
8175
- init_utils();
8867
+ init_utils2();
8176
8868
 
8177
8869
  // packages/tooling/src/index.ts
8178
- init_utils();
8870
+ init_utils2();
8179
8871
 
8180
8872
  // packages/tooling/src/cli/index.ts
8181
- init_utils();
8873
+ init_utils2();
8182
8874
 
8183
8875
  // packages/tooling/src/apps/deploy-utils.ts
8184
- init_utils();
8876
+ init_utils2();
8185
8877
  import { spawnSync } from "node:child_process";
8186
8878
  init_pathResolver();
8187
8879
  init_typed_file_operations();
@@ -8223,95 +8915,13 @@ function readStagingProject(startDir) {
8223
8915
  return null;
8224
8916
  }
8225
8917
 
8226
- // packages/tooling/src/utils/provider-detection.ts
8227
- init_utils();
8228
- init_pathResolver();
8229
- function detectProvider(appDir) {
8230
- const firebaseJsonPath = joinPath(appDir, "firebase.json");
8231
- const supabaseDir = joinPath(appDir, "supabase");
8232
- const supabaseConfigPath = joinPath(supabaseDir, "config.toml");
8233
- const supabaseFunctionsDir = joinPath(supabaseDir, "functions");
8234
- const supabaseMigrationsDir = joinPath(supabaseDir, "migrations");
8235
- const hasFirebase = pathExists(firebaseJsonPath);
8236
- let hasSupabase = pathExists(supabaseDir) || pathExists(supabaseConfigPath);
8237
- if (!hasSupabase) {
8238
- try {
8239
- const envPath = joinPath(appDir, ".env");
8240
- if (pathExists(envPath)) {
8241
- const envContent = readSync(envPath);
8242
- if (envContent.match(/VITE_SUPABASE_URL=.+/)) {
8243
- hasSupabase = true;
8244
- }
8245
- }
8246
- } catch {
8247
- }
8248
- }
8249
- let provider = "unknown";
8250
- if (hasFirebase && hasSupabase) {
8251
- provider = "both";
8252
- } else if (hasFirebase) {
8253
- provider = "firebase";
8254
- } else if (hasSupabase) {
8255
- provider = "supabase";
8256
- }
8257
- let firebaseConfig;
8258
- if (hasFirebase) {
8259
- try {
8260
- const config = readSync(firebaseJsonPath, { format: "json" });
8261
- if (config && typeof config === "object") {
8262
- const firebaseConfigObj = config;
8263
- firebaseConfig = {
8264
- projectId: firebaseConfigObj.projectId,
8265
- hasHosting: !!firebaseConfigObj.hosting,
8266
- hasFunctions: !!firebaseConfigObj.functions,
8267
- hasFirestoreRules: !!firebaseConfigObj.firestore?.rules,
8268
- hasStorageRules: !!firebaseConfigObj.storage?.rules
8269
- };
8270
- }
8271
- } catch {
8272
- firebaseConfig = {
8273
- hasHosting: false,
8274
- hasFunctions: false,
8275
- hasFirestoreRules: false,
8276
- hasStorageRules: false
8277
- };
8278
- }
8279
- }
8280
- let supabaseConfig;
8281
- if (hasSupabase) {
8282
- let url;
8283
- try {
8284
- const envPath = joinPath(appDir, ".env");
8285
- if (pathExists(envPath)) {
8286
- const envContent = readSync(envPath);
8287
- const urlMatch = envContent.match(/VITE_SUPABASE_URL=(.+)/);
8288
- if (urlMatch && urlMatch[1]) {
8289
- url = urlMatch[1].trim();
8290
- }
8291
- }
8292
- } catch {
8293
- }
8294
- supabaseConfig = {
8295
- url,
8296
- hasFunctions: pathExists(supabaseFunctionsDir),
8297
- hasMigrations: pathExists(supabaseMigrationsDir)
8298
- };
8299
- }
8300
- return {
8301
- provider,
8302
- hasFirebase,
8303
- hasSupabase,
8304
- firebaseConfig,
8305
- supabaseConfig
8306
- };
8307
- }
8308
-
8309
8918
  // packages/tooling/src/scaffolding/setup-cicd.ts
8310
- init_utils();
8919
+ init_utils2();
8311
8920
  import { execSync } from "node:child_process";
8312
8921
  init_sync_secrets();
8313
8922
  init_vercel_token();
8314
8923
  init_pathResolver();
8924
+ init_app_detection();
8315
8925
  init_secrets_resolver();
8316
8926
  function isGhCliAvailable() {
8317
8927
  try {
@@ -8341,9 +8951,9 @@ function detectStagingSupport(appDir) {
8341
8951
  }
8342
8952
  function collectSecrets(config) {
8343
8953
  const secrets = [];
8344
- const { appDir, projectRoot, providers, hasVercel, hasStaging } = config;
8954
+ const { appDir, projectRoot, providers, hasStaging } = config;
8345
8955
  const saPath = joinPath(appDir, "service-account-key.json");
8346
- if (providers.hasFirebase && pathExists(saPath)) {
8956
+ if (usesFirebase(providers) && pathExists(saPath)) {
8347
8957
  secrets.push({
8348
8958
  name: "FIREBASE_SERVICE_ACCOUNT",
8349
8959
  value: "__SERVICE_ACCOUNT__",
@@ -8359,7 +8969,7 @@ function collectSecrets(config) {
8359
8969
  source: "service-account-key.staging.json (base64)"
8360
8970
  });
8361
8971
  }
8362
- if (hasVercel) {
8972
+ if (usesVercel(providers)) {
8363
8973
  const vercelResult = resolveVercelCredentials(appDir, projectRoot);
8364
8974
  if (vercelResult.credentials) {
8365
8975
  secrets.push({
@@ -8389,7 +8999,7 @@ function collectSecrets(config) {
8389
8999
  }
8390
9000
  }
8391
9001
  }
8392
- if (providers.hasSupabase) {
9002
+ if (usesSupabase(providers)) {
8393
9003
  const accessToken = resolveSecret("SUPABASE_ACCESS_TOKEN", projectRoot, {
8394
9004
  appDir,
8395
9005
  silent: true
@@ -8477,7 +9087,8 @@ jobs:
8477
9087
  run: bun test
8478
9088
  `;
8479
9089
  }
8480
- function generateDeployWorkflow(providers, appName, envSecretNames) {
9090
+ function generateDeployWorkflow(providers, envSecretNames) {
9091
+ const appName = providers.name;
8481
9092
  const envBlock = envSecretNames.filter((n) => n.startsWith("VITE_") || n.startsWith("NEXT_PUBLIC_")).map((n) => ` ${n}: \${{ secrets.${n} }}`).join("\n");
8482
9093
  let steps = ` - name: Checkout repository
8483
9094
  uses: actions/checkout@v4
@@ -8504,7 +9115,7 @@ function generateDeployWorkflow(providers, appName, envSecretNames) {
8504
9115
 
8505
9116
  - name: Build
8506
9117
  run: bun run build${envBlock ? "\n env:\n" + envBlock : ""}`;
8507
- if (providers.hasFirebase) {
9118
+ if (usesFirebase(providers)) {
8508
9119
  const fbConfig = providers.firebaseConfig;
8509
9120
  if (fbConfig?.hasFunctions) {
8510
9121
  steps += `
@@ -8527,7 +9138,7 @@ function generateDeployWorkflow(providers, appName, envSecretNames) {
8527
9138
  GOOGLE_APPLICATION_CREDENTIALS_JSON: \${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
8528
9139
  working-directory: apps/${appName}`;
8529
9140
  }
8530
- if (fbConfig?.hasHosting && !providers.hasVercel) {
9141
+ if (fbConfig?.hasHosting && !usesVercel(providers)) {
8531
9142
  steps += `
8532
9143
 
8533
9144
  - name: Deploy to Firebase Hosting
@@ -8539,7 +9150,7 @@ function generateDeployWorkflow(providers, appName, envSecretNames) {
8539
9150
  entryPoint: apps/${appName}`;
8540
9151
  }
8541
9152
  }
8542
- if (providers.hasVercel) {
9153
+ if (usesVercel(providers)) {
8543
9154
  steps += `
8544
9155
 
8545
9156
  - name: Deploy to Vercel
@@ -8550,7 +9161,7 @@ function generateDeployWorkflow(providers, appName, envSecretNames) {
8550
9161
  VERCEL_PROJECT_ID: \${{ secrets.VERCEL_PROJECT_ID }}
8551
9162
  working-directory: apps/${appName}`;
8552
9163
  }
8553
- if (providers.hasSupabase && providers.supabaseConfig?.hasFunctions) {
9164
+ if (usesSupabase(providers) && providers.supabaseConfig?.hasFunctions) {
8554
9165
  steps += `
8555
9166
 
8556
9167
  - name: Setup Supabase CLI
@@ -8578,7 +9189,8 @@ jobs:
8578
9189
  ${steps}
8579
9190
  `;
8580
9191
  }
8581
- function generateStagingWorkflow(providers, appName, envSecretNames) {
9192
+ function generateStagingWorkflow(providers, envSecretNames) {
9193
+ const appName = providers.name;
8582
9194
  const envBlock = envSecretNames.filter((n) => n.startsWith("VITE_") || n.startsWith("NEXT_PUBLIC_")).map((n) => ` ${n}: \${{ secrets.${n} }}`).join("\n");
8583
9195
  let steps = ` - name: Checkout repository
8584
9196
  uses: actions/checkout@v4
@@ -8605,7 +9217,7 @@ function generateStagingWorkflow(providers, appName, envSecretNames) {
8605
9217
 
8606
9218
  - name: Build (staging)
8607
9219
  run: bun run build -- --mode staging${envBlock ? "\n env:\n" + envBlock : ""}`;
8608
- if (providers.hasFirebase) {
9220
+ if (usesFirebase(providers)) {
8609
9221
  const fbConfig = providers.firebaseConfig;
8610
9222
  if (fbConfig?.hasFunctions) {
8611
9223
  steps += `
@@ -8628,7 +9240,7 @@ function generateStagingWorkflow(providers, appName, envSecretNames) {
8628
9240
  GOOGLE_APPLICATION_CREDENTIALS_JSON: \${{ secrets.FIREBASE_SERVICE_ACCOUNT_STAGING }}
8629
9241
  working-directory: apps/${appName}`;
8630
9242
  }
8631
- if (fbConfig?.hasHosting && !providers.hasVercel) {
9243
+ if (fbConfig?.hasHosting && !usesVercel(providers)) {
8632
9244
  steps += `
8633
9245
 
8634
9246
  - name: Deploy to Firebase Hosting (staging)
@@ -8640,7 +9252,7 @@ function generateStagingWorkflow(providers, appName, envSecretNames) {
8640
9252
  entryPoint: apps/${appName}`;
8641
9253
  }
8642
9254
  }
8643
- if (providers.hasVercel) {
9255
+ if (usesVercel(providers)) {
8644
9256
  steps += `
8645
9257
 
8646
9258
  - name: Deploy to Vercel (staging)
@@ -8666,7 +9278,7 @@ ${steps}
8666
9278
  }
8667
9279
  async function main(options = {}) {
8668
9280
  const dryRun = options.dryRun ?? false;
8669
- Ie("CI/CD Setup");
9281
+ mt("CI/CD Setup");
8670
9282
  if (!isGhCliAvailable()) {
8671
9283
  log.error(
8672
9284
  "GitHub CLI (gh) is required.\nInstall: https://cli.github.com/\nThen: gh auth login"
@@ -8699,7 +9311,7 @@ async function main(options = {}) {
8699
9311
  }
8700
9312
  if (availableApps.length === 1) {
8701
9313
  appName = availableApps[0];
8702
- Me(`Using app: ${appName}`, "Auto-detected");
9314
+ wt(`Using app: ${appName}`, "Auto-detected");
8703
9315
  } else {
8704
9316
  appName = await askForSelection(
8705
9317
  "Which app to set up CI/CD for?",
@@ -8713,14 +9325,12 @@ async function main(options = {}) {
8713
9325
  return 1;
8714
9326
  }
8715
9327
  const providers = detectProvider(appDir);
8716
- const hasVercel = pathExists(joinPath(appDir, "vercel.json")) || pathExists(joinPath(appDir, ".vercel"));
8717
9328
  const staging = detectStagingSupport(appDir);
8718
9329
  const config = {
8719
9330
  appName,
8720
9331
  appDir,
8721
9332
  projectRoot,
8722
9333
  providers,
8723
- hasVercel,
8724
9334
  hasStaging: staging.hasStaging,
8725
9335
  stagingProjectId: staging.stagingProjectId
8726
9336
  };
@@ -8734,9 +9344,9 @@ async function main(options = {}) {
8734
9344
  workflows.push("deploy-staging.yml (staging)");
8735
9345
  }
8736
9346
  const providerLabels = [];
8737
- if (providers.hasFirebase) providerLabels.push("Firebase");
8738
- if (hasVercel) providerLabels.push("Vercel");
8739
- if (providers.hasSupabase) providerLabels.push("Supabase");
9347
+ if (usesFirebase(providers)) providerLabels.push("Firebase");
9348
+ if (usesVercel(providers)) providerLabels.push("Vercel");
9349
+ if (usesSupabase(providers)) providerLabels.push("Supabase");
8740
9350
  const planLines = [
8741
9351
  `App: ${appName}`,
8742
9352
  `Repo: ${repo}`,
@@ -8744,14 +9354,14 @@ async function main(options = {}) {
8744
9354
  `Staging: ${config.hasStaging ? "yes" : "no"}`,
8745
9355
  "",
8746
9356
  `Workflows to generate:`,
8747
- ...workflows.map((w2) => ` - ${w2}`),
9357
+ ...workflows.map((w3) => ` - ${w3}`),
8748
9358
  "",
8749
9359
  `Secrets to upload (${secrets.length}):`,
8750
9360
  ...secrets.map(
8751
9361
  (s2) => ` ${s2.source === "MISSING" ? "(!) " : ""}${s2.name} \u2014 ${s2.source}`
8752
9362
  )
8753
9363
  ];
8754
- Me(planLines.join("\n"), "CI/CD Plan");
9364
+ wt(planLines.join("\n"), "CI/CD Plan");
8755
9365
  if (missingSecrets.length > 0) {
8756
9366
  log.warn(
8757
9367
  `Missing secrets: ${missingSecrets.map((s2) => s2.name).join(", ")}
@@ -8761,15 +9371,15 @@ These will be skipped. Add them to .dndev.secrets or .env and re-run.`
8761
9371
  if (!dryRun) {
8762
9372
  const confirmed = await askForConfirmation("Proceed with CI/CD setup?");
8763
9373
  if (!confirmed) {
8764
- Se("Setup cancelled");
9374
+ gt("Setup cancelled");
8765
9375
  return 0;
8766
9376
  }
8767
9377
  }
8768
- const s = Y2();
9378
+ const s = fe();
8769
9379
  const uploadableSecrets = secrets.filter(
8770
9380
  (sec) => sec.value !== "" && sec.source !== "MISSING" && !sec.value.startsWith("__SERVICE_ACCOUNT")
8771
9381
  );
8772
- if (uploadableSecrets.length > 0 || providers.hasFirebase) {
9382
+ if (uploadableSecrets.length > 0 || usesFirebase(providers)) {
8773
9383
  s.start("Uploading secrets to GitHub...");
8774
9384
  let successCount = 0;
8775
9385
  let failCount = 0;
@@ -8784,7 +9394,7 @@ These will be skipped. Add them to .dndev.secrets or .env and re-run.`
8784
9394
  );
8785
9395
  }
8786
9396
  }
8787
- if (providers.hasFirebase) {
9397
+ if (usesFirebase(providers)) {
8788
9398
  try {
8789
9399
  uploadServiceAccountToGitHub(appDir, repo, dryRun, false);
8790
9400
  successCount++;
@@ -8806,26 +9416,11 @@ These will be skipped. Add them to .dndev.secrets or .env and re-run.`
8806
9416
  }
8807
9417
  const workflowDir = joinPath(projectRoot, ".github", "workflows");
8808
9418
  const secretNames = secrets.map((s2) => s2.name);
8809
- const workflowProviders = {
8810
- hasFirebase: providers.hasFirebase,
8811
- hasVercel,
8812
- hasSupabase: providers.hasSupabase,
8813
- firebaseConfig: providers.firebaseConfig,
8814
- supabaseConfig: providers.supabaseConfig
8815
- };
8816
9419
  const ciYaml = generateCIWorkflow(appName);
8817
- const deployYaml = generateDeployWorkflow(
8818
- workflowProviders,
8819
- appName,
8820
- secretNames
8821
- );
9420
+ const deployYaml = generateDeployWorkflow(providers, secretNames);
8822
9421
  let stagingYaml;
8823
9422
  if (config.hasStaging) {
8824
- stagingYaml = generateStagingWorkflow(
8825
- workflowProviders,
8826
- appName,
8827
- secretNames
8828
- );
9423
+ stagingYaml = generateStagingWorkflow(providers, secretNames);
8829
9424
  }
8830
9425
  if (dryRun) {
8831
9426
  log.info("\n--- ci.yml ---");
@@ -8861,8 +9456,8 @@ These will be skipped. Add them to .dndev.secrets or .env and re-run.`
8861
9456
  "Add GH_PAT to .dndev.secrets (needed for private dndev checkout in CI)"
8862
9457
  );
8863
9458
  }
8864
- Me(nextSteps.map((s2, i) => `${i + 1}. ${s2}`).join("\n"), "Next Steps");
8865
- Se(dryRun ? "CI/CD setup preview complete!" : "CI/CD setup complete!");
9459
+ wt(nextSteps.map((s2, i) => `${i + 1}. ${s2}`).join("\n"), "Next Steps");
9460
+ gt(dryRun ? "CI/CD setup preview complete!" : "CI/CD setup complete!");
8866
9461
  return 0;
8867
9462
  }
8868
9463
  export {