@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.
- package/LICENSE.md +1 -1
- package/README.md +0 -0
- package/dependencies-matrix.json +175 -72
- package/dist/bin/commands/agent-setup.js +936 -428
- package/dist/bin/commands/build.js +4363 -883
- package/dist/bin/commands/bump.js +1296 -780
- package/dist/bin/commands/cacheout.js +494 -363
- package/dist/bin/commands/coach.js +632 -431
- package/dist/bin/commands/create-app.js +1316 -799
- package/dist/bin/commands/create-project.js +1355 -827
- package/dist/bin/commands/db.js +26158 -18868
- package/dist/bin/commands/deploy.js +5983 -1971
- package/dist/bin/commands/dev.js +1223 -657
- package/dist/bin/commands/doctor.js +1100 -528
- package/dist/bin/commands/emu.js +1380 -757
- package/dist/bin/commands/format.js +494 -363
- package/dist/bin/commands/get-demo.js +1210 -715
- package/dist/bin/commands/make-admin.js +16073 -8700
- package/dist/bin/commands/preview.js +1227 -658
- package/dist/bin/commands/seed.js +26171 -18881
- package/dist/bin/commands/setup-cicd.js +1475 -880
- package/dist/bin/commands/setup.js +1574 -956
- package/dist/bin/commands/staging.js +5984 -1972
- package/dist/bin/commands/sync-secrets.js +1423 -676
- package/dist/bin/commands/type-check.js +976 -469
- package/dist/bin/commands/wai.js +499 -368
- package/dist/bin/dndev.js +43 -19
- package/dist/bin/donotdev.js +43 -19
- package/dist/index.js +6166 -2133
- package/guidelines/DEPENDENCIES.md +155 -0
- package/{templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example → guidelines/VERSION_CONTROL.md} +7 -11
- package/package.json +2 -1
- package/templates/app-demo/.env.example +1 -1
- package/templates/app-demo/entities/Contact.ts.example +0 -0
- package/templates/app-demo/entities/ExampleEntity.ts.example +0 -0
- package/templates/app-demo/entities/demo.ts.example +0 -0
- package/templates/app-demo/index.html.example +0 -0
- package/templates/app-demo/public/apple-touch-icon.png.example +0 -0
- package/templates/app-demo/public/fonts/fonts.css.example +0 -0
- package/templates/app-demo/public/icon-192x192.png.example +0 -0
- package/templates/app-demo/public/icon-512x512.png.example +0 -0
- package/templates/app-demo/src/App.tsx.example +0 -0
- package/templates/app-demo/src/config/app.ts.example +0 -0
- package/templates/app-demo/src/entities/booking.ts.example +0 -0
- package/templates/app-demo/src/entities/onboarding.ts.example +0 -0
- package/templates/app-demo/src/entities/product.ts.example +0 -0
- package/templates/app-demo/src/entities/quote.ts.example +0 -0
- package/templates/app-demo/src/globals.css.example +0 -0
- package/templates/app-demo/src/main.tsx.example +0 -0
- package/templates/app-demo/src/pages/ChangelogPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ConditionalFormPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/DashboardPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/HomePage.tsx.example +0 -0
- package/templates/app-demo/src/pages/OnboardingPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/PricingPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ProductsPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ProfilePage.tsx.example +0 -0
- package/templates/app-demo/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ShowcaseDetailPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ShowcasePage.tsx.example +0 -0
- package/templates/app-demo/src/pages/components/ComponentRenderer.tsx.example +0 -0
- package/templates/app-demo/src/pages/components/ComponentsData.tsx.example +0 -0
- package/templates/app-demo/src/pages/components/componentConfig.ts.example +0 -0
- package/templates/app-demo/src/pages/legal/LegalPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-demo/src/themes.css.example +27 -0
- package/templates/app-demo/tsconfig.json.example +0 -0
- package/templates/app-demo/vite.config.ts.example +0 -0
- package/templates/app-dndev/index.html.example +0 -3
- package/templates/app-dndev/src/App.tsx.example +0 -0
- package/templates/app-dndev/src/components/CockpitLayout.css.example +0 -0
- package/templates/app-dndev/src/components/CockpitLayout.tsx.example +0 -0
- package/templates/app-dndev/src/components/Kanban.css.example +0 -0
- package/templates/app-dndev/src/components/ModeToggle.tsx.example +0 -0
- package/templates/app-dndev/src/components/OverlaySlot.tsx.example +0 -0
- package/templates/app-dndev/src/components/TerminalPanel.css.example +0 -0
- package/templates/app-dndev/src/components/TerminalPanel.tsx.example +0 -0
- package/templates/app-dndev/src/components/markdown-prose.css.example +0 -0
- package/templates/app-dndev/src/components/phases/CaptainLog.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/ContextTabs.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/PhaseCard.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/PhaseDetail.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/ReviewPanel.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/phaseData.ts.example +0 -0
- package/templates/app-dndev/src/config/app.ts.example +0 -0
- package/templates/app-dndev/src/config/commands.ts.example +0 -0
- package/templates/app-dndev/src/config/legal.ts.example +0 -0
- package/templates/app-dndev/src/config/providers.ts.example +1 -1
- package/templates/app-dndev/src/globals.css.example +0 -0
- package/templates/app-dndev/src/hooks/useDndevFile.ts.example +0 -0
- package/templates/app-dndev/src/main.tsx.example +0 -0
- package/templates/app-dndev/src/pages/BoardPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/GrillPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/HomePage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/NotFoundPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/PhasesPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/legal/LegalNoticePage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-dndev/src/stores/dndevStore.ts.example +0 -0
- package/templates/app-dndev/src/themes.css.example +26 -0
- package/templates/app-dndev/terminal-sidecar.cjs.example +0 -0
- package/templates/app-dndev/vite.config.ts.example +0 -0
- package/templates/app-expo/.env.example +0 -32
- package/templates/app-expo/.expo/README.md.example +0 -0
- package/templates/app-expo/.gitignore.example +0 -0
- package/templates/app-expo/README.md.example +1 -1
- package/templates/app-expo/app/.gitkeep +0 -0
- package/templates/app-expo/app/_layout.tsx.example +0 -0
- package/templates/app-expo/app/form.tsx.example +0 -0
- package/templates/app-expo/app/index.tsx.example +0 -0
- package/templates/app-expo/app/list.tsx.example +0 -0
- package/templates/app-expo/app/profile.tsx.example +0 -0
- package/templates/app-expo/app/signin.tsx.example +0 -0
- package/templates/app-expo/app.json.example +0 -0
- package/templates/app-expo/assets/adaptive-icon.png +0 -0
- package/templates/app-expo/assets/favicon.png +0 -0
- package/templates/app-expo/assets/icon.png +0 -0
- package/templates/app-expo/assets/splash.png +0 -0
- package/templates/app-expo/babel.config.js.example +0 -0
- package/templates/app-expo/eas.json.example +0 -0
- package/templates/app-expo/expo-env.d.ts.example +0 -0
- package/templates/app-expo/metro.config.js.example +0 -0
- package/templates/app-expo/service-account-key.json.example +1 -1
- package/templates/app-expo/src/config/app.ts.example +0 -0
- package/templates/app-expo/src/config/providers.ts.example +1 -1
- package/templates/app-expo/tsconfig.json.example +0 -0
- package/templates/app-next/.env.example +0 -33
- package/templates/app-next/next.config.ts.example +0 -2
- package/templates/app-next/postcss.config.js.example +0 -0
- package/templates/app-next/service-account-key.json.example +0 -0
- package/templates/app-next/src/app/ClientLayout.tsx.example +0 -0
- package/templates/app-next/src/app/layout.tsx.example +13 -4
- package/templates/app-next/src/app/not-found.tsx.example +0 -0
- package/templates/app-next/src/config/app.ts.example +0 -0
- package/templates/app-next/src/config/legal.ts.example +0 -0
- package/templates/app-next/src/config/providers.ts.example +1 -1
- package/templates/app-next/src/globals.css.example +0 -0
- package/templates/app-next/src/locales/dndev_en.json.example +0 -0
- package/templates/app-next/src/locales/home_en.json.example +6 -6
- package/templates/app-next/src/pages/HomePage.tsx.example +0 -0
- package/templates/app-next/src/pages/legal/LegalNoticePage.tsx.example +0 -0
- package/templates/app-next/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-next/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-next/src/pages/locales/example_en.json.example +0 -0
- package/templates/app-next/src/themes.css.example +28 -1
- package/templates/app-vite/.env.example +0 -33
- package/templates/app-vite/csp.example.json +44 -0
- package/templates/app-vite/index.html.example +0 -3
- package/templates/app-vite/service-account-key.json.example +0 -0
- package/templates/app-vite/src/App.tsx.example +0 -0
- package/templates/app-vite/src/config/app.ts.example +0 -0
- package/templates/app-vite/src/config/legal.ts.example +0 -0
- package/templates/app-vite/src/config/providers.ts.example +1 -1
- package/templates/app-vite/src/globals.css.example +0 -0
- package/templates/app-vite/src/locales/dndev_en.json.example +0 -0
- package/templates/app-vite/src/locales/home_en.json.example +6 -6
- package/templates/app-vite/src/main.tsx.example +0 -0
- package/templates/app-vite/src/pages/FormPageExample.tsx.example +0 -0
- package/templates/app-vite/src/pages/HomePage.tsx.example +1 -1
- package/templates/app-vite/src/pages/ListPageExample.tsx.example +0 -0
- package/templates/app-vite/src/pages/NotFoundPage.tsx.example +0 -0
- package/templates/app-vite/src/pages/legal/LegalNoticePage.tsx.example +0 -0
- package/templates/app-vite/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-vite/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-vite/src/pages/locales/example_en.json.example +0 -0
- package/templates/app-vite/src/themes.css.example +26 -0
- package/templates/deploy-config/.firebaserc.example +0 -0
- package/templates/deploy-config/firestore.indexes.json.example +0 -0
- package/templates/deploy-config/firestore.rules.example +0 -0
- package/templates/deploy-config/storage.rules.example +0 -0
- package/templates/deploy-config/tsconfig.functions.json.example +0 -0
- package/templates/deploy-config/vercel.json.example +2 -2
- package/templates/functions-firebase/.env.example +2 -2
- package/templates/functions-firebase/README.md.example +3 -3
- package/templates/functions-firebase/build.mjs.example +0 -0
- package/templates/functions-firebase/functions.config.js.example +0 -0
- package/templates/functions-firebase/functions.yaml.example +0 -0
- package/templates/functions-firebase/src/auth/getCustomClaims.ts.example +0 -0
- package/templates/functions-firebase/src/auth/getUserAuthStatus.ts.example +0 -0
- package/templates/functions-firebase/src/auth/index.ts.example +0 -0
- package/templates/functions-firebase/src/auth/removeCustomClaims.ts.example +0 -0
- package/templates/functions-firebase/src/auth/setCustomClaims.ts.example +0 -0
- package/templates/functions-firebase/src/billing/handleStripeWebhook.ts.example +0 -0
- package/templates/functions-firebase/src/billing/index.ts.example +0 -0
- package/templates/functions-firebase/src/billing/processPaymentSuccess.ts.example +0 -0
- package/templates/functions-firebase/src/billing/refreshSubscriptionStatus.ts.example +0 -0
- package/templates/functions-firebase/src/crud/createEntity.ts.example +0 -0
- package/templates/functions-firebase/src/crud/deleteEntity.ts.example +0 -0
- package/templates/functions-firebase/src/crud/getEntity.ts.example +0 -0
- package/templates/functions-firebase/src/crud/index.ts.example +0 -0
- package/templates/functions-firebase/src/crud/listEntities.ts.example +0 -0
- package/templates/functions-firebase/src/crud/updateEntity.ts.example +0 -0
- package/templates/functions-firebase/src/index.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/checkGitHubAccess.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/disconnect.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/exchangeToken.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/getConnections.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/grantGitHubAccess.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/index.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/refreshToken.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/revokeGitHubAccess.ts.example +0 -0
- package/templates/functions-firebase/tsconfig.json.example +0 -0
- package/templates/functions-supabase/supabase/config.toml.example +0 -0
- package/templates/functions-supabase/supabase/functions/.env.example +0 -0
- package/templates/functions-supabase/supabase/functions/cancel-subscription/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/change-plan/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/create-checkout-session/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/create-customer-portal/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/crud/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/delete-account/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/deno.json.example +0 -0
- package/templates/functions-supabase/supabase/functions/disconnect-oauth/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/exchange-token/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/get-connections/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/get-custom-claims/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/get-user-auth-status/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/refresh-subscription-status/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/refresh-token/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/remove-custom-claims/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/set-custom-claims/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/migrations/20250101000000_idempotency.sql +3 -0
- package/templates/functions-supabase/supabase/migrations/20250101000001_rate_limits.sql +3 -0
- package/templates/functions-supabase/supabase/migrations/20250101000002_cleanup_jobs.sql +0 -0
- package/templates/functions-supabase/supabase/migrations/20250101000003_operation_metrics.sql +3 -0
- package/templates/functions-supabase/supabase/migrations/20250101000004_crud_bulk.sql +192 -0
- package/templates/functions-vercel/.env.example +3 -3
- package/templates/functions-vercel/README.md.example +2 -2
- package/templates/functions-vercel/build.mjs.example +0 -0
- package/templates/functions-vercel/src/api/auth/getCustomClaims.ts.example +0 -0
- package/templates/functions-vercel/src/api/auth/getUserAuthStatus.ts.example +0 -0
- package/templates/functions-vercel/src/api/auth/removeCustomClaims.ts.example +0 -0
- package/templates/functions-vercel/src/api/auth/setCustomClaims.ts.example +0 -0
- package/templates/functions-vercel/src/api/billing/handleStripeWebhook.ts.example +0 -0
- package/templates/functions-vercel/src/api/billing/processPaymentSuccess.ts.example +0 -0
- package/templates/functions-vercel/src/api/billing/refreshSubscriptionStatus.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/createEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/deleteEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/getEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/listEntities.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/updateEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/checkGitHubAccess.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/disconnect.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/exchangeToken.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/getConnections.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/grantGitHubAccess.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/refreshToken.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/revokeGitHubAccess.ts.example +0 -0
- package/templates/functions-vercel/tsconfig.json.example +0 -0
- package/templates/functions-vercel/vercel.json.example +0 -0
- package/templates/github-consumer/.github/workflows/ci.yml.example +0 -0
- package/templates/overlay-firebase/env.fragment.example +0 -0
- package/templates/overlay-firebase/env.fragment.expo.example +0 -0
- package/templates/overlay-firebase/env.fragment.nextjs.example +0 -0
- package/templates/overlay-firebase/src/config/providers.expo.ts.example +0 -0
- package/templates/overlay-firebase/src/config/providers.ts.example +0 -0
- package/templates/overlay-supabase/env.fragment.example +0 -0
- package/templates/overlay-supabase/env.fragment.expo.example +0 -0
- package/templates/overlay-supabase/env.fragment.nextjs.example +0 -0
- package/templates/overlay-supabase/src/config/providers.expo.ts.example +1 -1
- package/templates/overlay-supabase/src/config/providers.ts.example +1 -1
- package/templates/overlay-vercel/env.fragment.example +0 -0
- package/templates/overlay-vercel/env.fragment.nextjs.example +0 -0
- package/templates/overlay-vercel/src/config/providers.ts.example +0 -0
- package/templates/preset-admin/src/pages/DashboardPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/EntityPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/ReportsPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/UsersPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/HomePage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +0 -0
- package/templates/preset-landing/src/pages/AboutPage.tsx.example +0 -0
- package/templates/preset-landing/src/pages/ContactPage.tsx.example +0 -0
- package/templates/preset-landing/src/pages/HomePage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/DashboardPage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/HomePage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/PricingPage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/ProfilePage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/root-consumer/.claude/agents/architect.md.example +0 -0
- package/templates/root-consumer/.claude/agents/builder.md.example +0 -0
- package/templates/root-consumer/.claude/agents/coder.md.example +0 -0
- package/templates/root-consumer/.claude/agents/extractor.md.example +0 -0
- package/templates/root-consumer/.claude/agents/polisher.md.example +0 -0
- package/templates/root-consumer/.claude/agents/prompt-engineer.md.example +0 -0
- package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +61 -0
- package/templates/root-consumer/.claude/hooks/guard-write.sh.example +56 -0
- package/templates/root-consumer/.claude/hooks/session-start.sh.example +50 -0
- package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +18 -0
- package/templates/root-consumer/.claude/rules/consumer-ux.md.example +32 -0
- package/templates/root-consumer/.claude/rules/definition-of-done.md.example +32 -0
- package/templates/root-consumer/.claude/rules/framework.md.example +39 -0
- package/templates/root-consumer/.claude/rules/git.md.example +14 -0
- package/templates/root-consumer/.claude/rules/security.md.example +13 -0
- package/templates/root-consumer/.claude/settings.json.example +100 -4
- package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +0 -0
- package/templates/root-consumer/.claude/skills/build/SKILL.md.example +22 -27
- package/templates/root-consumer/.claude/skills/design/SKILL.md.example +0 -0
- package/templates/root-consumer/.claude/skills/design/output-template.md +0 -0
- package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +26 -15
- package/templates/root-consumer/.claude/skills/polish/SKILL.md.example +50 -37
- package/templates/root-consumer/.claude/skills/techdebt/SKILL.md.example +0 -0
- package/templates/root-consumer/.cursor/mcp.json.example +0 -0
- package/templates/root-consumer/.cursor/rules/no-docs.mdc.example +5 -1
- package/templates/root-consumer/.dndev/args.json.example +0 -0
- package/templates/root-consumer/.dndev.secrets.example +0 -0
- package/templates/root-consumer/.env.example +0 -1
- package/templates/root-consumer/.gemini/settings.json.example +0 -0
- package/templates/root-consumer/.gitignore.example +1 -0
- package/templates/root-consumer/.mcp.json.example +0 -0
- package/templates/root-consumer/.prettierrc.cjs.example +0 -0
- package/templates/root-consumer/AGENTS.md.example +63 -0
- package/templates/root-consumer/CLAUDE.md.example +1 -1
- package/templates/root-consumer/README.md.example +11 -33
- package/templates/root-consumer/entities/index.ts.example +0 -0
- package/templates/root-consumer/eslint.config.js.example +0 -0
- package/templates/root-consumer/tsconfig.json.example +0 -0
- package/templates/app-demo/public/manifest.json.example +0 -10
- package/templates/app-dndev/public/manifest.json.example +0 -10
- package/templates/root-consumer/.claude/commands/brainstorm.md.example +0 -175
- package/templates/root-consumer/.claude/commands/build.md.example +0 -131
- package/templates/root-consumer/.claude/commands/design.md.example +0 -184
- package/templates/root-consumer/.claude/commands/grill.md.example +0 -135
- package/templates/root-consumer/.claude/commands/polish.md.example +0 -146
- package/templates/root-consumer/.claude/commands/techdebt.md.example +0 -28
- package/templates/root-consumer/.claude/statusline.py.example +0 -79
- package/templates/root-consumer/.clinerules.example +0 -1
- package/templates/root-consumer/.cursorrules.example +0 -1
- package/templates/root-consumer/.github/copilot-instructions.md.example +0 -1
- package/templates/root-consumer/.windsurfrules.example +0 -1
- package/templates/root-consumer/AI.md.example +0 -108
- package/templates/root-consumer/CONVENTIONS.md.example +0 -1
- package/templates/root-consumer/GEMINI.md.example +0 -1
- package/templates/root-consumer/guides/dndev/AGENT_START_HERE.md.example +0 -135
- package/templates/root-consumer/guides/dndev/COMPONENTS_ADV.md.example +0 -276
- package/templates/root-consumer/guides/dndev/COMPONENTS_ATOMIC.md.example +0 -180
- package/templates/root-consumer/guides/dndev/COMPONENTS_CRUD.md.example +0 -234
- package/templates/root-consumer/guides/dndev/COMPONENTS_UI.md.example +0 -136
- package/templates/root-consumer/guides/dndev/COMPONENT_API.md.example +0 -195
- package/templates/root-consumer/guides/dndev/ENV_SETUP.md.example +0 -219
- package/templates/root-consumer/guides/dndev/GOTCHAS.md.example +0 -197
- package/templates/root-consumer/guides/dndev/INDEX.md.example +0 -60
- package/templates/root-consumer/guides/dndev/SETUP_APP_CONFIG.md.example +0 -132
- package/templates/root-consumer/guides/dndev/SETUP_AUTH.md.example +0 -133
- package/templates/root-consumer/guides/dndev/SETUP_BILLING.md.example +0 -114
- package/templates/root-consumer/guides/dndev/SETUP_BLOG.md.example +0 -280
- package/templates/root-consumer/guides/dndev/SETUP_CICD.md.example +0 -115
- package/templates/root-consumer/guides/dndev/SETUP_CRUD.md.example +0 -334
- package/templates/root-consumer/guides/dndev/SETUP_FIREBASE.md.example +0 -231
- package/templates/root-consumer/guides/dndev/SETUP_FUNCTIONS.md.example +0 -9
- package/templates/root-consumer/guides/dndev/SETUP_I18N.md.example +0 -233
- package/templates/root-consumer/guides/dndev/SETUP_LAYOUTS.md.example +0 -158
- package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +0 -54
- package/templates/root-consumer/guides/dndev/SETUP_OAUTH_PROVIDERS.md.example +0 -60
- package/templates/root-consumer/guides/dndev/SETUP_PAGES.md.example +0 -205
- package/templates/root-consumer/guides/dndev/SETUP_PWA.md.example +0 -213
- package/templates/root-consumer/guides/dndev/SETUP_SOC2.md.example +0 -234
- package/templates/root-consumer/guides/dndev/SETUP_STRIPE.md.example +0 -62
- package/templates/root-consumer/guides/dndev/SETUP_SUPABASE.md.example +0 -215
- package/templates/root-consumer/guides/dndev/SETUP_TESTING.md.example +0 -184
- package/templates/root-consumer/guides/dndev/SETUP_THEMES.md.example +0 -111
- package/templates/root-consumer/guides/dndev/SETUP_VERCEL.md.example +0 -260
- package/templates/root-consumer/guides/dndev/USE_ROUTING.md.example +0 -499
- package/templates/root-consumer/guides/dndev/advanced/APP_CHECK.md.example +0 -111
- package/templates/root-consumer/guides/dndev/advanced/COOKIE_REFERENCE.md.example +0 -252
- package/templates/root-consumer/guides/dndev/advanced/EMULATORS.md.example +0 -48
- package/templates/root-consumer/guides/dndev/essences_reference.css.example +0 -288
- package/templates/root-consumer/guides/wai-way/WAI_WAY_CLI.md.example +0 -402
- package/templates/root-consumer/guides/wai-way/agents/architect.md.example +0 -78
- package/templates/root-consumer/guides/wai-way/agents/builder.md.example +0 -97
- package/templates/root-consumer/guides/wai-way/agents/extractor.md.example +0 -363
- package/templates/root-consumer/guides/wai-way/agents/polisher.md.example +0 -133
- package/templates/root-consumer/guides/wai-way/blueprints/0_brainstorm.md.example +0 -315
- package/templates/root-consumer/guides/wai-way/blueprints/1_scaffold.md.example +0 -133
- package/templates/root-consumer/guides/wai-way/blueprints/2_entities.md.example +0 -111
- package/templates/root-consumer/guides/wai-way/blueprints/3_compose.md.example +0 -150
- package/templates/root-consumer/guides/wai-way/blueprints/4_configure.md.example +0 -238
- package/templates/root-consumer/guides/wai-way/context_map.json.example +0 -127
- package/templates/root-consumer/guides/wai-way/entity_patterns.md.example +0 -839
- package/templates/root-consumer/guides/wai-way/hld_template.md.example +0 -138
- package/templates/root-consumer/guides/wai-way/lld_template.md.example +0 -103
- package/templates/root-consumer/guides/wai-way/page_patterns.md.example +0 -722
- package/templates/root-consumer/guides/wai-way/prd_template.md.example +0 -140
- package/templates/root-consumer/guides/wai-way/presets_guide.md.example +0 -217
- 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__ */ ((
|
|
8
|
-
get: (a,
|
|
9
|
-
}) :
|
|
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 "' +
|
|
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
|
-
|
|
41
|
-
var
|
|
42
|
-
var
|
|
446
|
+
init_utils2();
|
|
447
|
+
var ESC2 = "\x1B";
|
|
448
|
+
var CSI2 = `${ESC2}[`;
|
|
43
449
|
var beep = "\x07";
|
|
44
450
|
var cursor = {
|
|
45
|
-
to(
|
|
46
|
-
if (!
|
|
47
|
-
return `${
|
|
451
|
+
to(x, y2) {
|
|
452
|
+
if (!y2) return `${CSI2}${x + 1}G`;
|
|
453
|
+
return `${CSI2}${y2 + 1};${x + 1}H`;
|
|
48
454
|
},
|
|
49
|
-
move(
|
|
455
|
+
move(x, y2) {
|
|
50
456
|
let ret = "";
|
|
51
|
-
if (
|
|
52
|
-
else if (
|
|
53
|
-
if (
|
|
54
|
-
else if (
|
|
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) => `${
|
|
58
|
-
down: (count = 1) => `${
|
|
59
|
-
forward: (count = 1) => `${
|
|
60
|
-
backward: (count = 1) => `${
|
|
61
|
-
nextLine: (count = 1) => `${
|
|
62
|
-
prevLine: (count = 1) => `${
|
|
63
|
-
left: `${
|
|
64
|
-
hide: `${
|
|
65
|
-
show: `${
|
|
66
|
-
save: `${
|
|
67
|
-
restore: `${
|
|
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) => `${
|
|
71
|
-
down: (count = 1) => `${
|
|
476
|
+
up: (count = 1) => `${CSI2}S`.repeat(count),
|
|
477
|
+
down: (count = 1) => `${CSI2}T`.repeat(count)
|
|
72
478
|
};
|
|
73
479
|
var erase = {
|
|
74
|
-
screen: `${
|
|
75
|
-
up: (count = 1) => `${
|
|
76
|
-
down: (count = 1) => `${
|
|
77
|
-
line: `${
|
|
78
|
-
lineEnd: `${
|
|
79
|
-
lineStart: `${
|
|
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,446 +496,254 @@ var require_src = __commonJS({
|
|
|
90
496
|
}
|
|
91
497
|
});
|
|
92
498
|
|
|
93
|
-
// node_modules/.bun
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
|
234
|
-
|
|
235
|
-
|
|
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
|
|
245
|
-
if (
|
|
246
|
-
const
|
|
247
|
-
`),
|
|
248
|
-
`), s = [];
|
|
249
|
-
for (let
|
|
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
|
|
253
|
-
return
|
|
523
|
+
function q(r) {
|
|
524
|
+
return r === C;
|
|
254
525
|
}
|
|
255
|
-
function
|
|
256
|
-
const
|
|
257
|
-
|
|
526
|
+
function w(r, t2) {
|
|
527
|
+
const e = r;
|
|
528
|
+
e.isTTY && e.setRawMode(t2);
|
|
258
529
|
}
|
|
259
|
-
function
|
|
260
|
-
const
|
|
261
|
-
|
|
262
|
-
const
|
|
263
|
-
const
|
|
264
|
-
if (
|
|
265
|
-
|
|
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 (!
|
|
269
|
-
const
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
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
|
|
277
|
-
|
|
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
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
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, it;
|
|
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
|
-
|
|
286
|
-
|
|
287
|
-
(
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
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(
|
|
419
|
-
const
|
|
420
|
-
|
|
592
|
+
setSubscriber(t2, e) {
|
|
593
|
+
const s = this._subscribers.get(t2) ?? [];
|
|
594
|
+
s.push(e), this._subscribers.set(t2, s);
|
|
421
595
|
}
|
|
422
|
-
on(
|
|
423
|
-
this.setSubscriber(
|
|
596
|
+
on(t2, e) {
|
|
597
|
+
this.setSubscriber(t2, { cb: e });
|
|
424
598
|
}
|
|
425
|
-
once(
|
|
426
|
-
this.setSubscriber(
|
|
599
|
+
once(t2, e) {
|
|
600
|
+
this.setSubscriber(t2, { cb: e, once: true });
|
|
427
601
|
}
|
|
428
|
-
emit(
|
|
429
|
-
const
|
|
430
|
-
for (const
|
|
431
|
-
for (const
|
|
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((
|
|
608
|
+
return new Promise((t2) => {
|
|
435
609
|
if (this._abortSignal) {
|
|
436
|
-
if (this._abortSignal.aborted) return this.state = "cancel", this.close(),
|
|
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
|
-
|
|
442
|
-
|
|
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),
|
|
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
|
-
|
|
452
|
-
|
|
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
|
|
455
|
-
|
|
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
|
-
|
|
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
|
-
`),
|
|
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
|
|
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,
|
|
651
|
+
this.output.write(import_sisteransi.cursor.move(-999, t2 * -1));
|
|
469
652
|
}
|
|
470
653
|
render() {
|
|
471
|
-
const
|
|
472
|
-
if (
|
|
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
|
|
476
|
-
if (this.restoreCursor(),
|
|
477
|
-
const
|
|
478
|
-
|
|
479
|
-
|
|
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
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
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(
|
|
688
|
+
this.output.write(t2), this.state === "initial" && (this.state = "active"), this._prevFrame = t2;
|
|
496
689
|
}
|
|
497
690
|
}
|
|
498
691
|
};
|
|
499
|
-
|
|
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(
|
|
507
|
-
super(
|
|
699
|
+
constructor(t2) {
|
|
700
|
+
super(t2, false), this.value = !!t2.initialValue, this.on("userInput", () => {
|
|
508
701
|
this.value = this._value;
|
|
509
|
-
}), this.on("confirm", (
|
|
510
|
-
this.output.write(import_sisteransi.cursor.move(0, -1)), this.value =
|
|
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
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
709
|
+
it = class extends p {
|
|
710
|
+
options;
|
|
711
|
+
cursor = 0;
|
|
712
|
+
get _value() {
|
|
713
|
+
return this.options[this.cursor].value;
|
|
714
|
+
}
|
|
715
|
+
get _enabledOptions() {
|
|
716
|
+
return this.options.filter((t2) => t2.disabled !== true);
|
|
717
|
+
}
|
|
718
|
+
toggleAll() {
|
|
719
|
+
const t2 = this._enabledOptions, e = this.value !== void 0 && this.value.length === t2.length;
|
|
720
|
+
this.value = e ? [] : t2.map((s) => s.value);
|
|
721
|
+
}
|
|
722
|
+
toggleInvert() {
|
|
723
|
+
const t2 = this.value;
|
|
724
|
+
if (!t2) return;
|
|
725
|
+
const e = this._enabledOptions.filter((s) => !t2.includes(s.value));
|
|
726
|
+
this.value = e.map((s) => s.value);
|
|
727
|
+
}
|
|
728
|
+
toggleValue() {
|
|
729
|
+
this.value === void 0 && (this.value = []);
|
|
730
|
+
const t2 = this.value.includes(this._value);
|
|
731
|
+
this.value = t2 ? this.value.filter((e) => e !== this._value) : [...this.value, this._value];
|
|
732
|
+
}
|
|
733
|
+
constructor(t2) {
|
|
734
|
+
super(t2, false), this.options = t2.options, this.value = [...t2.initialValues ?? []];
|
|
735
|
+
const e = Math.max(this.options.findIndex(({ value: s }) => s === t2.cursorAt), 0);
|
|
736
|
+
this.cursor = this.options[e].disabled ? d(e, 1, this.options) : e, this.on("key", (s) => {
|
|
737
|
+
s === "a" && this.toggleAll(), s === "i" && this.toggleInvert();
|
|
738
|
+
}), this.on("cursor", (s) => {
|
|
739
|
+
switch (s) {
|
|
526
740
|
case "left":
|
|
527
741
|
case "up":
|
|
528
|
-
this.cursor = this.cursor
|
|
742
|
+
this.cursor = d(this.cursor, -1, this.options);
|
|
529
743
|
break;
|
|
530
744
|
case "down":
|
|
531
745
|
case "right":
|
|
532
|
-
this.cursor = this.cursor
|
|
746
|
+
this.cursor = d(this.cursor, 1, this.options);
|
|
533
747
|
break;
|
|
534
748
|
case "space":
|
|
535
749
|
this.toggleValue();
|
|
@@ -537,241 +751,311 @@ var init_dist = __esm({
|
|
|
537
751
|
}
|
|
538
752
|
});
|
|
539
753
|
}
|
|
540
|
-
get _value() {
|
|
541
|
-
return this.options[this.cursor].value;
|
|
542
|
-
}
|
|
543
|
-
toggleAll() {
|
|
544
|
-
const u2 = this.value.length === this.options.length;
|
|
545
|
-
this.value = u2 ? [] : this.options.map((t) => t.value);
|
|
546
|
-
}
|
|
547
|
-
toggleValue() {
|
|
548
|
-
const u2 = this.value.includes(this._value);
|
|
549
|
-
this.value = u2 ? this.value.filter((t) => t !== this._value) : [...this.value, this._value];
|
|
550
|
-
}
|
|
551
754
|
};
|
|
552
755
|
}
|
|
553
756
|
});
|
|
554
757
|
|
|
555
|
-
// node_modules/.bun/@clack+prompts@
|
|
556
|
-
import { stripVTControlCharacters as
|
|
557
|
-
import
|
|
558
|
-
|
|
559
|
-
|
|
758
|
+
// node_modules/.bun/@clack+prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs
|
|
759
|
+
import { styleText as t, stripVTControlCharacters as ne } from "node:util";
|
|
760
|
+
import P2 from "node:process";
|
|
761
|
+
import { existsSync as Xe, lstatSync as we, readdirSync as ze } from "node:fs";
|
|
762
|
+
import { dirname as be, join as Qe } from "node:path";
|
|
763
|
+
function Ze() {
|
|
764
|
+
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";
|
|
560
765
|
}
|
|
561
|
-
var
|
|
562
|
-
var
|
|
563
|
-
"node_modules/.bun/@clack+prompts@
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
766
|
+
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, Q2, yt, ft, vt, wt, Ct, fe, Ve, je;
|
|
767
|
+
var init_dist4 = __esm({
|
|
768
|
+
"node_modules/.bun/@clack+prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs"() {
|
|
769
|
+
init_utils2();
|
|
770
|
+
init_dist3();
|
|
771
|
+
init_dist3();
|
|
772
|
+
init_main();
|
|
773
|
+
init_dist2();
|
|
568
774
|
import_sisteransi2 = __toESM(require_src(), 1);
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
d2 =
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
775
|
+
ee = Ze();
|
|
776
|
+
ae = () => process.env.CI === "true";
|
|
777
|
+
w2 = (e, i) => ee ? e : i;
|
|
778
|
+
_e = w2("\u25C6", "*");
|
|
779
|
+
oe = w2("\u25A0", "x");
|
|
780
|
+
ue = w2("\u25B2", "x");
|
|
781
|
+
F = w2("\u25C7", "o");
|
|
782
|
+
le = w2("\u250C", "T");
|
|
783
|
+
d2 = w2("\u2502", "|");
|
|
784
|
+
E2 = w2("\u2514", "\u2014");
|
|
785
|
+
Ie = w2("\u2510", "T");
|
|
786
|
+
Ee = w2("\u2518", "\u2014");
|
|
787
|
+
z2 = w2("\u25CF", ">");
|
|
788
|
+
H2 = w2("\u25CB", " ");
|
|
789
|
+
te = w2("\u25FB", "[\u2022]");
|
|
790
|
+
U = w2("\u25FC", "[+]");
|
|
791
|
+
J = w2("\u25FB", "[ ]");
|
|
792
|
+
xe = w2("\u25AA", "\u2022");
|
|
793
|
+
se = w2("\u2500", "-");
|
|
794
|
+
ce = w2("\u256E", "+");
|
|
795
|
+
Ge = w2("\u251C", "+");
|
|
796
|
+
$e = w2("\u256F", "+");
|
|
797
|
+
de = w2("\u2570", "+");
|
|
798
|
+
Oe = w2("\u256D", "+");
|
|
799
|
+
he = w2("\u25CF", "\u2022");
|
|
800
|
+
pe = w2("\u25C6", "*");
|
|
801
|
+
me = w2("\u25B2", "!");
|
|
802
|
+
ge = w2("\u25A0", "x");
|
|
803
|
+
V2 = (e) => {
|
|
804
|
+
switch (e) {
|
|
594
805
|
case "initial":
|
|
595
806
|
case "active":
|
|
596
|
-
return
|
|
807
|
+
return t("cyan", _e);
|
|
597
808
|
case "cancel":
|
|
598
|
-
return
|
|
809
|
+
return t("red", oe);
|
|
599
810
|
case "error":
|
|
600
|
-
return
|
|
811
|
+
return t("yellow", ue);
|
|
601
812
|
case "submit":
|
|
602
|
-
return
|
|
813
|
+
return t("green", F);
|
|
603
814
|
}
|
|
604
815
|
};
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
const
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
816
|
+
ye = (e) => {
|
|
817
|
+
switch (e) {
|
|
818
|
+
case "initial":
|
|
819
|
+
case "active":
|
|
820
|
+
return t("cyan", d2);
|
|
821
|
+
case "cancel":
|
|
822
|
+
return t("red", d2);
|
|
823
|
+
case "error":
|
|
824
|
+
return t("yellow", d2);
|
|
825
|
+
case "submit":
|
|
826
|
+
return t("green", d2);
|
|
827
|
+
}
|
|
828
|
+
};
|
|
829
|
+
et2 = (e, i, s, r, u2) => {
|
|
830
|
+
let n = i, o = 0;
|
|
831
|
+
for (let c2 = s; c2 < r; c2++) {
|
|
832
|
+
const a = e[c2];
|
|
833
|
+
if (n = n - a.length, o++, n <= u2) break;
|
|
834
|
+
}
|
|
835
|
+
return { lineCount: n, removals: o };
|
|
836
|
+
};
|
|
837
|
+
Y2 = ({ cursor: e, options: i, style: s, output: r = process.stdout, maxItems: u2 = Number.POSITIVE_INFINITY, columnPadding: n = 0, rowPadding: o = 4 }) => {
|
|
838
|
+
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);
|
|
839
|
+
let p2 = 0;
|
|
840
|
+
e >= y2 - 3 && (p2 = Math.max(Math.min(e - y2 + 3, i.length - y2), 0));
|
|
841
|
+
let m = y2 < i.length && p2 > 0, g = y2 < i.length && p2 + y2 < i.length;
|
|
842
|
+
const S2 = Math.min(p2 + y2, i.length), h = [];
|
|
843
|
+
let f = 0;
|
|
844
|
+
m && f++, g && f++;
|
|
845
|
+
const v = p2 + (m ? 1 : 0), T = S2 - (g ? 1 : 0);
|
|
846
|
+
for (let b = v; b < T; b++) {
|
|
847
|
+
const x = wrapAnsi(s(i[b], b === e), c2, { hard: true, trim: false }).split(`
|
|
848
|
+
`);
|
|
849
|
+
h.push(x), f += x.length;
|
|
850
|
+
}
|
|
851
|
+
if (f > $2) {
|
|
852
|
+
let b = 0, x = 0, G2 = f;
|
|
853
|
+
const M2 = e - v, R2 = (j2, D2) => et2(h, G2, j2, D2, $2);
|
|
854
|
+
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));
|
|
855
|
+
}
|
|
856
|
+
const C2 = [];
|
|
857
|
+
m && C2.push(l);
|
|
858
|
+
for (const b of h) for (const x of b) C2.push(x);
|
|
859
|
+
return g && C2.push(l), C2;
|
|
860
|
+
};
|
|
861
|
+
ot2 = (e) => {
|
|
862
|
+
const i = e.active ?? "Yes", s = e.inactive ?? "No";
|
|
863
|
+
return new Q({ active: i, inactive: s, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue ?? true, render() {
|
|
864
|
+
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)}
|
|
865
|
+
` : ""}${o}
|
|
866
|
+
`, a = this.value ? i : s;
|
|
649
867
|
switch (this.state) {
|
|
650
|
-
case "submit":
|
|
651
|
-
|
|
868
|
+
case "submit": {
|
|
869
|
+
const l = r ? `${t("gray", d2)} ` : "";
|
|
870
|
+
return `${c2}${l}${t("dim", a)}`;
|
|
871
|
+
}
|
|
652
872
|
case "cancel": {
|
|
653
|
-
const
|
|
654
|
-
return `${
|
|
655
|
-
${
|
|
873
|
+
const l = r ? `${t("gray", d2)} ` : "";
|
|
874
|
+
return `${c2}${l}${t(["strikethrough", "dim"], a)}${r ? `
|
|
875
|
+
${t("gray", d2)}` : ""}`;
|
|
656
876
|
}
|
|
657
|
-
|
|
658
|
-
const
|
|
659
|
-
|
|
660
|
-
`
|
|
661
|
-
|
|
662
|
-
${
|
|
663
|
-
${s}
|
|
877
|
+
default: {
|
|
878
|
+
const l = r ? `${t("cyan", d2)} ` : "", $2 = r ? t("cyan", E2) : "";
|
|
879
|
+
return `${c2}${l}${this.value ? `${t("green", z2)} ${i}` : `${t("dim", H2)} ${t("dim", i)}`}${e.vertical ? r ? `
|
|
880
|
+
${t("cyan", d2)} ` : `
|
|
881
|
+
` : ` ${t("dim", "/")} `}${this.value ? `${t("dim", H2)} ${t("dim", s)}` : `${t("green", z2)} ${s}`}
|
|
882
|
+
${$2}
|
|
664
883
|
`;
|
|
665
884
|
}
|
|
666
|
-
default:
|
|
667
|
-
return `${r2}${import_picocolors.default.cyan(o)} ${G2({ options: this.options, cursor: this.cursor, maxItems: t.maxItems, style: i }).join(`
|
|
668
|
-
${import_picocolors.default.cyan(o)} `)}
|
|
669
|
-
${import_picocolors.default.cyan(d2)}
|
|
670
|
-
`;
|
|
671
885
|
}
|
|
672
886
|
} }).prompt();
|
|
673
887
|
};
|
|
674
|
-
|
|
675
|
-
const
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
`), i = S2(n).length, s = Math.max(r2.reduce((a, l2) => {
|
|
679
|
-
const $2 = S2(l2);
|
|
680
|
-
return $2.length > a ? $2.length : a;
|
|
681
|
-
}, 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(`
|
|
888
|
+
O2 = { message: (e = [], { symbol: i = t("gray", d2), secondarySymbol: s = t("gray", d2), output: r = process.stdout, spacing: u2 = 1, withGuide: n } = {}) => {
|
|
889
|
+
const o = [], c2 = n ?? u.withGuide, a = c2 ? s : "", l = c2 ? `${i} ` : "", $2 = c2 ? `${s} ` : "";
|
|
890
|
+
for (let p2 = 0; p2 < u2; p2++) o.push(a);
|
|
891
|
+
const y2 = Array.isArray(e) ? e : e.split(`
|
|
682
892
|
`);
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
${
|
|
686
|
-
|
|
893
|
+
if (y2.length > 0) {
|
|
894
|
+
const [p2, ...m] = y2;
|
|
895
|
+
p2.length > 0 ? o.push(`${l}${p2}`) : o.push(c2 ? i : "");
|
|
896
|
+
for (const g of m) g.length > 0 ? o.push(`${$2}${g}`) : o.push(c2 ? s : "");
|
|
897
|
+
}
|
|
898
|
+
r.write(`${o.join(`
|
|
899
|
+
`)}
|
|
687
900
|
`);
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
|
|
901
|
+
}, info: (e, i) => {
|
|
902
|
+
O2.message(e, { ...i, symbol: t("blue", he) });
|
|
903
|
+
}, success: (e, i) => {
|
|
904
|
+
O2.message(e, { ...i, symbol: t("green", pe) });
|
|
905
|
+
}, step: (e, i) => {
|
|
906
|
+
O2.message(e, { ...i, symbol: t("green", F) });
|
|
907
|
+
}, warn: (e, i) => {
|
|
908
|
+
O2.message(e, { ...i, symbol: t("yellow", me) });
|
|
909
|
+
}, warning: (e, i) => {
|
|
910
|
+
O2.warn(e, i);
|
|
911
|
+
}, error: (e, i) => {
|
|
912
|
+
O2.message(e, { ...i, symbol: t("red", ge) });
|
|
913
|
+
} };
|
|
914
|
+
pt = (e = "", i) => {
|
|
915
|
+
const s = i?.output ?? process.stdout, r = i?.withGuide ?? u.withGuide ? `${t("gray", E2)} ` : "";
|
|
916
|
+
s.write(`${r}${t("red", e)}
|
|
691
917
|
|
|
692
918
|
`);
|
|
693
919
|
};
|
|
694
|
-
|
|
695
|
-
process.stdout.
|
|
920
|
+
mt = (e = "", i) => {
|
|
921
|
+
const s = i?.output ?? process.stdout, r = i?.withGuide ?? u.withGuide ? `${t("gray", le)} ` : "";
|
|
922
|
+
s.write(`${r}${e}
|
|
696
923
|
`);
|
|
697
924
|
};
|
|
698
|
-
|
|
699
|
-
process.stdout.
|
|
700
|
-
${
|
|
925
|
+
gt = (e = "", i) => {
|
|
926
|
+
const s = i?.output ?? process.stdout, r = i?.withGuide ?? u.withGuide ? `${t("gray", d2)}
|
|
927
|
+
${t("gray", E2)} ` : "";
|
|
928
|
+
s.write(`${r}${e}
|
|
701
929
|
|
|
702
930
|
`);
|
|
703
931
|
};
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
if (t) {
|
|
707
|
-
const [i, ...s] = t.split(`
|
|
932
|
+
Q2 = (e, i) => e.split(`
|
|
933
|
+
`).map((s) => i(s)).join(`
|
|
708
934
|
`);
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
`)}
|
|
935
|
+
yt = (e) => {
|
|
936
|
+
const i = (r, u2) => {
|
|
937
|
+
const n = r.label ?? String(r.value);
|
|
938
|
+
return u2 === "disabled" ? `${t("gray", J)} ${Q2(n, (o) => t(["strikethrough", "gray"], o))}${r.hint ? ` ${t("dim", `(${r.hint ?? "disabled"})`)}` : ""}` : u2 === "active" ? `${t("cyan", te)} ${n}${r.hint ? ` ${t("dim", `(${r.hint})`)}` : ""}` : u2 === "selected" ? `${t("green", U)} ${Q2(n, (o) => t("dim", o))}${r.hint ? ` ${t("dim", `(${r.hint})`)}` : ""}` : u2 === "cancelled" ? `${Q2(n, (o) => t(["strikethrough", "dim"], o))}` : u2 === "active-selected" ? `${t("green", U)} ${n}${r.hint ? ` ${t("dim", `(${r.hint})`)}` : ""}` : u2 === "submitted" ? `${Q2(n, (o) => t("dim", o))}` : `${t("dim", J)} ${Q2(n, (o) => t("dim", o))}`;
|
|
939
|
+
}, s = e.required ?? true;
|
|
940
|
+
return new it({ options: e.options, signal: e.signal, input: e.input, output: e.output, initialValues: e.initialValues, required: s, cursorAt: e.cursorAt, validate(r) {
|
|
941
|
+
if (s && (r === void 0 || r.length === 0)) return `Please select at least one option.
|
|
942
|
+
${t("reset", t("dim", `Press ${t(["gray", "bgWhite", "inverse"], " space ")} to select, ${t("gray", t("bgWhite", t("inverse", " enter ")))} to submit`))}`;
|
|
943
|
+
}, render() {
|
|
944
|
+
const r = e.withGuide ?? u.withGuide, u2 = R(e.output, e.message, r ? `${ye(this.state)} ` : "", `${V2(this.state)} `), n = `${r ? `${t("gray", d2)}
|
|
945
|
+
` : ""}${u2}
|
|
946
|
+
`, o = this.value ?? [], c2 = (a, l) => {
|
|
947
|
+
if (a.disabled) return i(a, "disabled");
|
|
948
|
+
const $2 = o.includes(a.value);
|
|
949
|
+
return l && $2 ? i(a, "active-selected") : $2 ? i(a, "selected") : i(a, l ? "active" : "inactive");
|
|
950
|
+
};
|
|
951
|
+
switch (this.state) {
|
|
952
|
+
case "submit": {
|
|
953
|
+
const a = this.options.filter(({ value: $2 }) => o.includes($2)).map(($2) => i($2, "submitted")).join(t("dim", ", ")) || t("dim", "none"), l = R(e.output, a, r ? `${t("gray", d2)} ` : "");
|
|
954
|
+
return `${n}${l}`;
|
|
955
|
+
}
|
|
956
|
+
case "cancel": {
|
|
957
|
+
const a = this.options.filter(({ value: $2 }) => o.includes($2)).map(($2) => i($2, "cancelled")).join(t("dim", ", "));
|
|
958
|
+
if (a.trim() === "") return `${n}${t("gray", d2)}`;
|
|
959
|
+
const l = R(e.output, a, r ? `${t("gray", d2)} ` : "");
|
|
960
|
+
return `${n}${l}${r ? `
|
|
961
|
+
${t("gray", d2)}` : ""}`;
|
|
962
|
+
}
|
|
963
|
+
case "error": {
|
|
964
|
+
const a = r ? `${t("yellow", d2)} ` : "", l = this.error.split(`
|
|
965
|
+
`).map((p2, m) => m === 0 ? `${r ? `${t("yellow", E2)} ` : ""}${t("yellow", p2)}` : ` ${p2}`).join(`
|
|
966
|
+
`), $2 = n.split(`
|
|
967
|
+
`).length, y2 = l.split(`
|
|
968
|
+
`).length + 1;
|
|
969
|
+
return `${n}${a}${Y2({ output: e.output, options: this.options, cursor: this.cursor, maxItems: e.maxItems, columnPadding: a.length, rowPadding: $2 + y2, style: c2 }).join(`
|
|
970
|
+
${a}`)}
|
|
971
|
+
${l}
|
|
972
|
+
`;
|
|
973
|
+
}
|
|
974
|
+
default: {
|
|
975
|
+
const a = r ? `${t("cyan", d2)} ` : "", l = n.split(`
|
|
976
|
+
`).length, $2 = r ? 2 : 1;
|
|
977
|
+
return `${n}${a}${Y2({ output: e.output, options: this.options, cursor: this.cursor, maxItems: e.maxItems, columnPadding: a.length, rowPadding: l + $2, style: c2 }).join(`
|
|
978
|
+
${a}`)}
|
|
979
|
+
${r ? t("cyan", E2) : ""}
|
|
980
|
+
`;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
} }).prompt();
|
|
984
|
+
};
|
|
985
|
+
ft = (e) => t("dim", e);
|
|
986
|
+
vt = (e, i, s) => {
|
|
987
|
+
const r = { hard: true, trim: false }, u2 = wrapAnsi(e, i, r).split(`
|
|
988
|
+
`), 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);
|
|
989
|
+
return wrapAnsi(e, c2, r);
|
|
990
|
+
};
|
|
991
|
+
wt = (e = "", i = "", s) => {
|
|
992
|
+
const r = s?.output ?? P2.stdout, u2 = s?.withGuide ?? u.withGuide, n = s?.format ?? ft, o = ["", ...vt(e, O(r) - 6, n).split(`
|
|
993
|
+
`).map(n), ""], c2 = dist_default2(i), a = Math.max(o.reduce((p2, m) => {
|
|
994
|
+
const g = dist_default2(m);
|
|
995
|
+
return g > p2 ? g : p2;
|
|
996
|
+
}, 0), c2) + 2, l = o.map((p2) => `${t("gray", d2)} ${p2}${" ".repeat(a - dist_default2(p2))}${t("gray", d2)}`).join(`
|
|
997
|
+
`), $2 = u2 ? `${t("gray", d2)}
|
|
998
|
+
` : "", y2 = u2 ? Ge : de;
|
|
999
|
+
r.write(`${$2}${t("green", F)} ${t("reset", i)} ${t("gray", se.repeat(Math.max(a - c2 - 1, 1)) + ce)}
|
|
1000
|
+
${l}
|
|
1001
|
+
${t("gray", y2 + se.repeat(a + 2) + $e)}
|
|
713
1002
|
`);
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
const n = V2 ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], r2 = V2 ? 80 : 120, i = process.env.CI === "true";
|
|
730
|
-
let s, c, a = false, l2 = "", $2, g2 = performance.now();
|
|
731
|
-
const p2 = (m2) => {
|
|
732
|
-
const h2 = m2 > 1 ? "Something went wrong" : "Canceled";
|
|
733
|
-
a && N2(h2, m2);
|
|
734
|
-
}, v = () => p2(2), f = () => p2(1), j2 = () => {
|
|
735
|
-
process.on("uncaughtExceptionMonitor", v), process.on("unhandledRejection", v), process.on("SIGINT", f), process.on("SIGTERM", f), process.on("exit", p2);
|
|
736
|
-
}, E = () => {
|
|
737
|
-
process.removeListener("uncaughtExceptionMonitor", v), process.removeListener("unhandledRejection", v), process.removeListener("SIGINT", f), process.removeListener("SIGTERM", f), process.removeListener("exit", p2);
|
|
738
|
-
}, B2 = () => {
|
|
739
|
-
if ($2 === void 0) return;
|
|
740
|
-
i && process.stdout.write(`
|
|
1003
|
+
};
|
|
1004
|
+
Ct = (e) => t("magenta", e);
|
|
1005
|
+
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 } = {}) => {
|
|
1006
|
+
const l = ae();
|
|
1007
|
+
let $2, y2, p2 = false, m = false, g = "", S2, h = performance.now();
|
|
1008
|
+
const f = O(s), v = a?.styleFrame ?? Ct, T = (_2) => {
|
|
1009
|
+
const A2 = _2 > 1 ? u2 ?? u.messages.error : r ?? u.messages.cancel;
|
|
1010
|
+
m = _2 === 1, p2 && (W(A2, _2), m && typeof i == "function" && i());
|
|
1011
|
+
}, C2 = () => T(2), b = () => T(1), x = () => {
|
|
1012
|
+
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);
|
|
1013
|
+
}, G2 = () => {
|
|
1014
|
+
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);
|
|
1015
|
+
}, M2 = () => {
|
|
1016
|
+
if (S2 === void 0) return;
|
|
1017
|
+
l && s.write(`
|
|
741
1018
|
`);
|
|
742
|
-
const
|
|
1019
|
+
const _2 = wrapAnsi(S2, f, { hard: true, trim: false }).split(`
|
|
743
1020
|
`);
|
|
744
|
-
|
|
745
|
-
}, R2 = (
|
|
746
|
-
const
|
|
747
|
-
return
|
|
748
|
-
},
|
|
749
|
-
|
|
1021
|
+
_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());
|
|
1022
|
+
}, R2 = (_2) => _2.replace(/\.+$/, ""), j2 = (_2) => {
|
|
1023
|
+
const A2 = (performance.now() - _2) / 1e3, k = Math.floor(A2 / 60), L = Math.floor(A2 % 60);
|
|
1024
|
+
return k > 0 ? `[${k}m ${L}s]` : `[${L}s]`;
|
|
1025
|
+
}, D2 = a.withGuide ?? u.withGuide, ie = (_2 = "") => {
|
|
1026
|
+
p2 = true, $2 = z({ output: s }), g = R2(_2), h = performance.now(), D2 && s.write(`${t("gray", d2)}
|
|
750
1027
|
`);
|
|
751
|
-
let
|
|
752
|
-
|
|
753
|
-
if (
|
|
754
|
-
|
|
755
|
-
const
|
|
756
|
-
|
|
757
|
-
|
|
1028
|
+
let A2 = 0, k = 0;
|
|
1029
|
+
x(), y2 = setInterval(() => {
|
|
1030
|
+
if (l && g === S2) return;
|
|
1031
|
+
M2(), S2 = g;
|
|
1032
|
+
const L = v(n[A2]);
|
|
1033
|
+
let Z;
|
|
1034
|
+
if (l) Z = `${L} ${g}...`;
|
|
1035
|
+
else if (e === "timer") Z = `${L} ${g} ${j2(h)}`;
|
|
758
1036
|
else {
|
|
759
|
-
const
|
|
760
|
-
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
1037
|
+
const Be = ".".repeat(Math.floor(k)).slice(0, 3);
|
|
1038
|
+
Z = `${L} ${g}${Be}`;
|
|
1039
|
+
}
|
|
1040
|
+
const Ne = wrapAnsi(Z, f, { hard: true, trim: false });
|
|
1041
|
+
s.write(Ne), A2 = A2 + 1 < n.length ? A2 + 1 : 0, k = k < 4 ? k + 0.125 : 0;
|
|
1042
|
+
}, o);
|
|
1043
|
+
}, W = (_2 = "", A2 = 0, k = false) => {
|
|
1044
|
+
if (!p2) return;
|
|
1045
|
+
p2 = false, clearInterval(y2), M2();
|
|
1046
|
+
const L = A2 === 0 ? t("green", F) : A2 === 1 ? t("red", oe) : t("red", ue);
|
|
1047
|
+
g = _2 ?? g, k || (e === "timer" ? s.write(`${L} ${g} ${j2(h)}
|
|
1048
|
+
`) : s.write(`${L} ${g}
|
|
1049
|
+
`)), G2(), $2();
|
|
770
1050
|
};
|
|
771
|
-
return { start:
|
|
772
|
-
|
|
1051
|
+
return { start: ie, stop: (_2 = "") => W(_2, 0), message: (_2 = "") => {
|
|
1052
|
+
g = R2(_2 ?? g);
|
|
1053
|
+
}, cancel: (_2 = "") => W(_2, 1), error: (_2 = "") => W(_2, 2), clear: () => W("", 0, true), get isCancelled() {
|
|
1054
|
+
return m;
|
|
773
1055
|
} };
|
|
774
1056
|
};
|
|
1057
|
+
Ve = { light: w2("\u2500", "-"), heavy: w2("\u2501", "="), block: w2("\u2588", "#") };
|
|
1058
|
+
je = `${t("gray", d2)} `;
|
|
775
1059
|
}
|
|
776
1060
|
});
|
|
777
1061
|
|
|
@@ -820,9 +1104,9 @@ var colors, currentLogLevel, log, error, warn, info, success;
|
|
|
820
1104
|
var init_cli_output = __esm({
|
|
821
1105
|
"packages/tooling/src/utils/cli-output.ts"() {
|
|
822
1106
|
"use strict";
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
1107
|
+
init_utils2();
|
|
1108
|
+
init_dist4();
|
|
1109
|
+
init_dist4();
|
|
826
1110
|
colors = {
|
|
827
1111
|
reset: "\x1B[0m",
|
|
828
1112
|
// Success (green)
|
|
@@ -857,7 +1141,7 @@ var init_cli_output = __esm({
|
|
|
857
1141
|
error(...args) {
|
|
858
1142
|
if (currentLogLevel < 0 /* Quiet */) return;
|
|
859
1143
|
const message = formatMessage(...args);
|
|
860
|
-
|
|
1144
|
+
O2.error(colorize(message, colors.brightRed));
|
|
861
1145
|
},
|
|
862
1146
|
/**
|
|
863
1147
|
* Logs a warning message (shows at Normal level and above)
|
|
@@ -866,7 +1150,7 @@ var init_cli_output = __esm({
|
|
|
866
1150
|
warn(...args) {
|
|
867
1151
|
if (currentLogLevel < 1 /* Normal */) return;
|
|
868
1152
|
const message = formatMessage(...args);
|
|
869
|
-
|
|
1153
|
+
O2.warn(colorize(message, colors.brightYellow));
|
|
870
1154
|
},
|
|
871
1155
|
/**
|
|
872
1156
|
* Logs an info message (shows at Normal level and above)
|
|
@@ -875,7 +1159,7 @@ var init_cli_output = __esm({
|
|
|
875
1159
|
info(...args) {
|
|
876
1160
|
if (currentLogLevel < 1 /* Normal */) return;
|
|
877
1161
|
const message = formatMessage(...args);
|
|
878
|
-
|
|
1162
|
+
O2.info(colorize(message, colors.brightCyan));
|
|
879
1163
|
},
|
|
880
1164
|
/**
|
|
881
1165
|
* Logs a success message (shows at Normal level and above)
|
|
@@ -884,7 +1168,7 @@ var init_cli_output = __esm({
|
|
|
884
1168
|
success(...args) {
|
|
885
1169
|
if (currentLogLevel < 1 /* Normal */) return;
|
|
886
1170
|
const message = formatMessage(...args);
|
|
887
|
-
|
|
1171
|
+
O2.success(colorize(message, colors.brightGreen));
|
|
888
1172
|
},
|
|
889
1173
|
/**
|
|
890
1174
|
* Logs a debug message (only shows at Verbose level and above)
|
|
@@ -893,7 +1177,7 @@ var init_cli_output = __esm({
|
|
|
893
1177
|
debug(...args) {
|
|
894
1178
|
if (currentLogLevel < 2 /* Verbose */) return;
|
|
895
1179
|
const timeStamp = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
|
|
896
|
-
|
|
1180
|
+
O2.message(
|
|
897
1181
|
colorize(
|
|
898
1182
|
`[${timeStamp}] \u{1F50D} DEBUG: ${formatMessage(...args)}`,
|
|
899
1183
|
colors.gray
|
|
@@ -907,7 +1191,7 @@ var init_cli_output = __esm({
|
|
|
907
1191
|
trace(...args) {
|
|
908
1192
|
if (currentLogLevel < 3 /* Debug */) return;
|
|
909
1193
|
const timeStamp = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
|
|
910
|
-
|
|
1194
|
+
O2.message(
|
|
911
1195
|
colorize(
|
|
912
1196
|
`[${timeStamp}] \u{1F52C} TRACE: ${formatMessage(...args)}`,
|
|
913
1197
|
colors.gray
|
|
@@ -927,7 +1211,7 @@ var DO_NOT_DEV_ERROR_CODES, DoNotDevError;
|
|
|
927
1211
|
var init_errors = __esm({
|
|
928
1212
|
"packages/tooling/src/utils/errors.ts"() {
|
|
929
1213
|
"use strict";
|
|
930
|
-
|
|
1214
|
+
init_utils2();
|
|
931
1215
|
DO_NOT_DEV_ERROR_CODES = {
|
|
932
1216
|
CONFIGURATION_ERROR: "configuration-error",
|
|
933
1217
|
CONFIG_NOT_FOUND: "config-not-found",
|
|
@@ -1068,7 +1352,7 @@ var init_errors = __esm({
|
|
|
1068
1352
|
var require_array = __commonJS({
|
|
1069
1353
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
|
|
1070
1354
|
"use strict";
|
|
1071
|
-
|
|
1355
|
+
init_utils2();
|
|
1072
1356
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1073
1357
|
exports.splitWhen = exports.flatten = void 0;
|
|
1074
1358
|
function flatten(items) {
|
|
@@ -1096,7 +1380,7 @@ var require_array = __commonJS({
|
|
|
1096
1380
|
var require_errno = __commonJS({
|
|
1097
1381
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js"(exports) {
|
|
1098
1382
|
"use strict";
|
|
1099
|
-
|
|
1383
|
+
init_utils2();
|
|
1100
1384
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1101
1385
|
exports.isEnoentCodeError = void 0;
|
|
1102
1386
|
function isEnoentCodeError(error2) {
|
|
@@ -1110,7 +1394,7 @@ var require_errno = __commonJS({
|
|
|
1110
1394
|
var require_fs = __commonJS({
|
|
1111
1395
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js"(exports) {
|
|
1112
1396
|
"use strict";
|
|
1113
|
-
|
|
1397
|
+
init_utils2();
|
|
1114
1398
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1115
1399
|
exports.createDirentFromStats = void 0;
|
|
1116
1400
|
var DirentFromStats = class {
|
|
@@ -1136,7 +1420,7 @@ var require_fs = __commonJS({
|
|
|
1136
1420
|
var require_path = __commonJS({
|
|
1137
1421
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js"(exports) {
|
|
1138
1422
|
"use strict";
|
|
1139
|
-
|
|
1423
|
+
init_utils2();
|
|
1140
1424
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1141
1425
|
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
1142
1426
|
var os = __require("os");
|
|
@@ -1189,7 +1473,7 @@ var require_path = __commonJS({
|
|
|
1189
1473
|
// node_modules/.bun/is-extglob@2.1.1/node_modules/is-extglob/index.js
|
|
1190
1474
|
var require_is_extglob = __commonJS({
|
|
1191
1475
|
"node_modules/.bun/is-extglob@2.1.1/node_modules/is-extglob/index.js"(exports, module) {
|
|
1192
|
-
|
|
1476
|
+
init_utils2();
|
|
1193
1477
|
module.exports = function isExtglob(str) {
|
|
1194
1478
|
if (typeof str !== "string" || str === "") {
|
|
1195
1479
|
return false;
|
|
@@ -1207,7 +1491,7 @@ var require_is_extglob = __commonJS({
|
|
|
1207
1491
|
// node_modules/.bun/is-glob@4.0.3/node_modules/is-glob/index.js
|
|
1208
1492
|
var require_is_glob = __commonJS({
|
|
1209
1493
|
"node_modules/.bun/is-glob@4.0.3/node_modules/is-glob/index.js"(exports, module) {
|
|
1210
|
-
|
|
1494
|
+
init_utils2();
|
|
1211
1495
|
var isExtglob = require_is_extglob();
|
|
1212
1496
|
var chars = { "{": "}", "(": ")", "[": "]" };
|
|
1213
1497
|
var strictCheck = function(str) {
|
|
@@ -1340,7 +1624,7 @@ var require_is_glob = __commonJS({
|
|
|
1340
1624
|
var require_glob_parent = __commonJS({
|
|
1341
1625
|
"node_modules/.bun/glob-parent@5.1.2/node_modules/glob-parent/index.js"(exports, module) {
|
|
1342
1626
|
"use strict";
|
|
1343
|
-
|
|
1627
|
+
init_utils2();
|
|
1344
1628
|
var isGlob = require_is_glob();
|
|
1345
1629
|
var pathPosixDirname = __require("path").posix.dirname;
|
|
1346
1630
|
var isWin32 = __require("os").platform() === "win32";
|
|
@@ -1370,7 +1654,7 @@ var require_glob_parent = __commonJS({
|
|
|
1370
1654
|
var require_utils = __commonJS({
|
|
1371
1655
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/utils.js"(exports) {
|
|
1372
1656
|
"use strict";
|
|
1373
|
-
|
|
1657
|
+
init_utils2();
|
|
1374
1658
|
exports.isInteger = (num) => {
|
|
1375
1659
|
if (typeof num === "number") {
|
|
1376
1660
|
return Number.isInteger(num);
|
|
@@ -1453,7 +1737,7 @@ var require_utils = __commonJS({
|
|
|
1453
1737
|
var require_stringify = __commonJS({
|
|
1454
1738
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/stringify.js"(exports, module) {
|
|
1455
1739
|
"use strict";
|
|
1456
|
-
|
|
1740
|
+
init_utils2();
|
|
1457
1741
|
var utils = require_utils();
|
|
1458
1742
|
module.exports = (ast, options = {}) => {
|
|
1459
1743
|
const stringify2 = (node, parent = {}) => {
|
|
@@ -1485,7 +1769,7 @@ var require_stringify = __commonJS({
|
|
|
1485
1769
|
var require_is_number = __commonJS({
|
|
1486
1770
|
"node_modules/.bun/is-number@7.0.0/node_modules/is-number/index.js"(exports, module) {
|
|
1487
1771
|
"use strict";
|
|
1488
|
-
|
|
1772
|
+
init_utils2();
|
|
1489
1773
|
module.exports = function(num) {
|
|
1490
1774
|
if (typeof num === "number") {
|
|
1491
1775
|
return num - num === 0;
|
|
@@ -1502,7 +1786,7 @@ var require_is_number = __commonJS({
|
|
|
1502
1786
|
var require_to_regex_range = __commonJS({
|
|
1503
1787
|
"node_modules/.bun/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(exports, module) {
|
|
1504
1788
|
"use strict";
|
|
1505
|
-
|
|
1789
|
+
init_utils2();
|
|
1506
1790
|
var isNumber = require_is_number();
|
|
1507
1791
|
var toRegexRange = (min, max, options) => {
|
|
1508
1792
|
if (isNumber(min) === false) {
|
|
@@ -1527,8 +1811,8 @@ var require_to_regex_range = __commonJS({
|
|
|
1527
1811
|
return toRegexRange.cache[cacheKey].result;
|
|
1528
1812
|
}
|
|
1529
1813
|
let a = Math.min(min, max);
|
|
1530
|
-
let
|
|
1531
|
-
if (Math.abs(a -
|
|
1814
|
+
let b = Math.max(min, max);
|
|
1815
|
+
if (Math.abs(a - b) === 1) {
|
|
1532
1816
|
let result = min + "|" + max;
|
|
1533
1817
|
if (opts.capture) {
|
|
1534
1818
|
return `(${result})`;
|
|
@@ -1539,7 +1823,7 @@ var require_to_regex_range = __commonJS({
|
|
|
1539
1823
|
return `(?:${result})`;
|
|
1540
1824
|
}
|
|
1541
1825
|
let isPadded = hasPadding(min) || hasPadding(max);
|
|
1542
|
-
let state = { min, max, a, b
|
|
1826
|
+
let state = { min, max, a, b };
|
|
1543
1827
|
let positives = [];
|
|
1544
1828
|
let negatives = [];
|
|
1545
1829
|
if (isPadded) {
|
|
@@ -1547,12 +1831,12 @@ var require_to_regex_range = __commonJS({
|
|
|
1547
1831
|
state.maxLen = String(state.max).length;
|
|
1548
1832
|
}
|
|
1549
1833
|
if (a < 0) {
|
|
1550
|
-
let newMin =
|
|
1834
|
+
let newMin = b < 0 ? Math.abs(b) : 1;
|
|
1551
1835
|
negatives = splitToPatterns(newMin, Math.abs(a), state, opts);
|
|
1552
1836
|
a = state.a = 0;
|
|
1553
1837
|
}
|
|
1554
|
-
if (
|
|
1555
|
-
positives = splitToPatterns(a,
|
|
1838
|
+
if (b >= 0) {
|
|
1839
|
+
positives = splitToPatterns(a, b, state, opts);
|
|
1556
1840
|
}
|
|
1557
1841
|
state.negatives = negatives;
|
|
1558
1842
|
state.positives = positives;
|
|
@@ -1656,13 +1940,13 @@ var require_to_regex_range = __commonJS({
|
|
|
1656
1940
|
}
|
|
1657
1941
|
return result;
|
|
1658
1942
|
}
|
|
1659
|
-
function zip(a,
|
|
1943
|
+
function zip(a, b) {
|
|
1660
1944
|
let arr = [];
|
|
1661
|
-
for (let i = 0; i < a.length; i++) arr.push([a[i],
|
|
1945
|
+
for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]);
|
|
1662
1946
|
return arr;
|
|
1663
1947
|
}
|
|
1664
|
-
function compare(a,
|
|
1665
|
-
return a >
|
|
1948
|
+
function compare(a, b) {
|
|
1949
|
+
return a > b ? 1 : b > a ? -1 : 0;
|
|
1666
1950
|
}
|
|
1667
1951
|
function contains(arr, key, val) {
|
|
1668
1952
|
return arr.some((ele) => ele[key] === val);
|
|
@@ -1680,8 +1964,8 @@ var require_to_regex_range = __commonJS({
|
|
|
1680
1964
|
}
|
|
1681
1965
|
return "";
|
|
1682
1966
|
}
|
|
1683
|
-
function toCharacterClass(a,
|
|
1684
|
-
return `[${a}${
|
|
1967
|
+
function toCharacterClass(a, b, options) {
|
|
1968
|
+
return `[${a}${b - a === 1 ? "" : "-"}${b}]`;
|
|
1685
1969
|
}
|
|
1686
1970
|
function hasPadding(str) {
|
|
1687
1971
|
return /^-?(0+)\d/.test(str);
|
|
@@ -1714,7 +1998,7 @@ var require_to_regex_range = __commonJS({
|
|
|
1714
1998
|
var require_fill_range = __commonJS({
|
|
1715
1999
|
"node_modules/.bun/fill-range@7.1.1/node_modules/fill-range/index.js"(exports, module) {
|
|
1716
2000
|
"use strict";
|
|
1717
|
-
|
|
2001
|
+
init_utils2();
|
|
1718
2002
|
var util = __require("util");
|
|
1719
2003
|
var toRegexRange = require_to_regex_range();
|
|
1720
2004
|
var isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
@@ -1760,8 +2044,8 @@ var require_fill_range = __commonJS({
|
|
|
1760
2044
|
return negative ? "-" + input : input;
|
|
1761
2045
|
};
|
|
1762
2046
|
var toSequence = (parts, options, maxLen) => {
|
|
1763
|
-
parts.negatives.sort((a,
|
|
1764
|
-
parts.positives.sort((a,
|
|
2047
|
+
parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
2048
|
+
parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
1765
2049
|
let prefix = options.capture ? "" : "?:";
|
|
1766
2050
|
let positives = "";
|
|
1767
2051
|
let negatives = "";
|
|
@@ -1782,13 +2066,13 @@ var require_fill_range = __commonJS({
|
|
|
1782
2066
|
}
|
|
1783
2067
|
return result;
|
|
1784
2068
|
};
|
|
1785
|
-
var toRange = (a,
|
|
2069
|
+
var toRange = (a, b, isNumbers, options) => {
|
|
1786
2070
|
if (isNumbers) {
|
|
1787
|
-
return toRegexRange(a,
|
|
2071
|
+
return toRegexRange(a, b, { wrap: false, ...options });
|
|
1788
2072
|
}
|
|
1789
2073
|
let start = String.fromCharCode(a);
|
|
1790
|
-
if (a ===
|
|
1791
|
-
let stop = String.fromCharCode(
|
|
2074
|
+
if (a === b) return start;
|
|
2075
|
+
let stop = String.fromCharCode(b);
|
|
1792
2076
|
return `[${start}-${stop}]`;
|
|
1793
2077
|
};
|
|
1794
2078
|
var toRegex = (start, end, options) => {
|
|
@@ -1814,14 +2098,14 @@ var require_fill_range = __commonJS({
|
|
|
1814
2098
|
};
|
|
1815
2099
|
var fillNumbers = (start, end, step = 1, options = {}) => {
|
|
1816
2100
|
let a = Number(start);
|
|
1817
|
-
let
|
|
1818
|
-
if (!Number.isInteger(a) || !Number.isInteger(
|
|
2101
|
+
let b = Number(end);
|
|
2102
|
+
if (!Number.isInteger(a) || !Number.isInteger(b)) {
|
|
1819
2103
|
if (options.strictRanges === true) throw rangeError([start, end]);
|
|
1820
2104
|
return [];
|
|
1821
2105
|
}
|
|
1822
2106
|
if (a === 0) a = 0;
|
|
1823
|
-
if (
|
|
1824
|
-
let descending = a >
|
|
2107
|
+
if (b === 0) b = 0;
|
|
2108
|
+
let descending = a > b;
|
|
1825
2109
|
let startString = String(start);
|
|
1826
2110
|
let endString = String(end);
|
|
1827
2111
|
let stepString = String(step);
|
|
@@ -1837,7 +2121,7 @@ var require_fill_range = __commonJS({
|
|
|
1837
2121
|
let push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num));
|
|
1838
2122
|
let range = [];
|
|
1839
2123
|
let index = 0;
|
|
1840
|
-
while (descending ? a >=
|
|
2124
|
+
while (descending ? a >= b : a <= b) {
|
|
1841
2125
|
if (options.toRegex === true && step > 1) {
|
|
1842
2126
|
push(a);
|
|
1843
2127
|
} else {
|
|
@@ -1857,16 +2141,16 @@ var require_fill_range = __commonJS({
|
|
|
1857
2141
|
}
|
|
1858
2142
|
let format = options.transform || ((val) => String.fromCharCode(val));
|
|
1859
2143
|
let a = `${start}`.charCodeAt(0);
|
|
1860
|
-
let
|
|
1861
|
-
let descending = a >
|
|
1862
|
-
let min = Math.min(a,
|
|
1863
|
-
let max = Math.max(a,
|
|
2144
|
+
let b = `${end}`.charCodeAt(0);
|
|
2145
|
+
let descending = a > b;
|
|
2146
|
+
let min = Math.min(a, b);
|
|
2147
|
+
let max = Math.max(a, b);
|
|
1864
2148
|
if (options.toRegex && step === 1) {
|
|
1865
2149
|
return toRange(min, max, false, options);
|
|
1866
2150
|
}
|
|
1867
2151
|
let range = [];
|
|
1868
2152
|
let index = 0;
|
|
1869
|
-
while (descending ? a >=
|
|
2153
|
+
while (descending ? a >= b : a <= b) {
|
|
1870
2154
|
range.push(format(a, index));
|
|
1871
2155
|
a = descending ? a - step : a + step;
|
|
1872
2156
|
index++;
|
|
@@ -1909,7 +2193,7 @@ var require_fill_range = __commonJS({
|
|
|
1909
2193
|
var require_compile = __commonJS({
|
|
1910
2194
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/compile.js"(exports, module) {
|
|
1911
2195
|
"use strict";
|
|
1912
|
-
|
|
2196
|
+
init_utils2();
|
|
1913
2197
|
var fill = require_fill_range();
|
|
1914
2198
|
var utils = require_utils();
|
|
1915
2199
|
var compile = (ast, options = {}) => {
|
|
@@ -1961,7 +2245,7 @@ var require_compile = __commonJS({
|
|
|
1961
2245
|
var require_expand = __commonJS({
|
|
1962
2246
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/expand.js"(exports, module) {
|
|
1963
2247
|
"use strict";
|
|
1964
|
-
|
|
2248
|
+
init_utils2();
|
|
1965
2249
|
var fill = require_fill_range();
|
|
1966
2250
|
var stringify2 = require_stringify();
|
|
1967
2251
|
var utils = require_utils();
|
|
@@ -2056,7 +2340,7 @@ var require_expand = __commonJS({
|
|
|
2056
2340
|
var require_constants = __commonJS({
|
|
2057
2341
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/constants.js"(exports, module) {
|
|
2058
2342
|
"use strict";
|
|
2059
|
-
|
|
2343
|
+
init_utils2();
|
|
2060
2344
|
module.exports = {
|
|
2061
2345
|
MAX_LENGTH: 1e4,
|
|
2062
2346
|
// Digits
|
|
@@ -2158,7 +2442,7 @@ var require_constants = __commonJS({
|
|
|
2158
2442
|
var require_parse = __commonJS({
|
|
2159
2443
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/parse.js"(exports, module) {
|
|
2160
2444
|
"use strict";
|
|
2161
|
-
|
|
2445
|
+
init_utils2();
|
|
2162
2446
|
var stringify2 = require_stringify();
|
|
2163
2447
|
var {
|
|
2164
2448
|
MAX_LENGTH,
|
|
@@ -2397,7 +2681,7 @@ var require_parse = __commonJS({
|
|
|
2397
2681
|
var require_braces = __commonJS({
|
|
2398
2682
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/index.js"(exports, module) {
|
|
2399
2683
|
"use strict";
|
|
2400
|
-
|
|
2684
|
+
init_utils2();
|
|
2401
2685
|
var stringify2 = require_stringify();
|
|
2402
2686
|
var compile = require_compile();
|
|
2403
2687
|
var expand = require_expand();
|
|
@@ -2457,14 +2741,15 @@ var require_braces = __commonJS({
|
|
|
2457
2741
|
}
|
|
2458
2742
|
});
|
|
2459
2743
|
|
|
2460
|
-
// node_modules/.bun/picomatch@2.3.
|
|
2744
|
+
// node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js
|
|
2461
2745
|
var require_constants2 = __commonJS({
|
|
2462
|
-
"node_modules/.bun/picomatch@2.3.
|
|
2746
|
+
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js"(exports, module) {
|
|
2463
2747
|
"use strict";
|
|
2464
|
-
|
|
2748
|
+
init_utils2();
|
|
2465
2749
|
var path = __require("path");
|
|
2466
2750
|
var WIN_SLASH = "\\\\/";
|
|
2467
2751
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
2752
|
+
var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
|
|
2468
2753
|
var DOT_LITERAL = "\\.";
|
|
2469
2754
|
var PLUS_LITERAL = "\\+";
|
|
2470
2755
|
var QMARK_LITERAL = "\\?";
|
|
@@ -2512,6 +2797,7 @@ var require_constants2 = __commonJS({
|
|
|
2512
2797
|
END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
|
|
2513
2798
|
};
|
|
2514
2799
|
var POSIX_REGEX_SOURCE = {
|
|
2800
|
+
__proto__: null,
|
|
2515
2801
|
alnum: "a-zA-Z0-9",
|
|
2516
2802
|
alpha: "a-zA-Z",
|
|
2517
2803
|
ascii: "\\x00-\\x7F",
|
|
@@ -2528,6 +2814,7 @@ var require_constants2 = __commonJS({
|
|
|
2528
2814
|
xdigit: "A-Fa-f0-9"
|
|
2529
2815
|
};
|
|
2530
2816
|
module.exports = {
|
|
2817
|
+
DEFAULT_MAX_EXTGLOB_RECURSION,
|
|
2531
2818
|
MAX_LENGTH: 1024 * 64,
|
|
2532
2819
|
POSIX_REGEX_SOURCE,
|
|
2533
2820
|
// regular expressions
|
|
@@ -2539,6 +2826,7 @@ var require_constants2 = __commonJS({
|
|
|
2539
2826
|
REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
|
|
2540
2827
|
// Replace globs with equivalent patterns to reduce parsing time.
|
|
2541
2828
|
REPLACEMENTS: {
|
|
2829
|
+
__proto__: null,
|
|
2542
2830
|
"***": "*",
|
|
2543
2831
|
"**/**": "**",
|
|
2544
2832
|
"**/**/**": "**"
|
|
@@ -2655,11 +2943,11 @@ var require_constants2 = __commonJS({
|
|
|
2655
2943
|
}
|
|
2656
2944
|
});
|
|
2657
2945
|
|
|
2658
|
-
// node_modules/.bun/picomatch@2.3.
|
|
2946
|
+
// node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js
|
|
2659
2947
|
var require_utils2 = __commonJS({
|
|
2660
|
-
"node_modules/.bun/picomatch@2.3.
|
|
2948
|
+
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js"(exports) {
|
|
2661
2949
|
"use strict";
|
|
2662
|
-
|
|
2950
|
+
init_utils2();
|
|
2663
2951
|
var path = __require("path");
|
|
2664
2952
|
var win32 = process.platform === "win32";
|
|
2665
2953
|
var {
|
|
@@ -2717,11 +3005,11 @@ var require_utils2 = __commonJS({
|
|
|
2717
3005
|
}
|
|
2718
3006
|
});
|
|
2719
3007
|
|
|
2720
|
-
// node_modules/.bun/picomatch@2.3.
|
|
3008
|
+
// node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js
|
|
2721
3009
|
var require_scan = __commonJS({
|
|
2722
|
-
"node_modules/.bun/picomatch@2.3.
|
|
3010
|
+
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js"(exports, module) {
|
|
2723
3011
|
"use strict";
|
|
2724
|
-
|
|
3012
|
+
init_utils2();
|
|
2725
3013
|
var utils = require_utils2();
|
|
2726
3014
|
var {
|
|
2727
3015
|
CHAR_ASTERISK,
|
|
@@ -3048,11 +3336,11 @@ var require_scan = __commonJS({
|
|
|
3048
3336
|
}
|
|
3049
3337
|
});
|
|
3050
3338
|
|
|
3051
|
-
// node_modules/.bun/picomatch@2.3.
|
|
3339
|
+
// node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js
|
|
3052
3340
|
var require_parse2 = __commonJS({
|
|
3053
|
-
"node_modules/.bun/picomatch@2.3.
|
|
3341
|
+
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js"(exports, module) {
|
|
3054
3342
|
"use strict";
|
|
3055
|
-
|
|
3343
|
+
init_utils2();
|
|
3056
3344
|
var constants2 = require_constants2();
|
|
3057
3345
|
var utils = require_utils2();
|
|
3058
3346
|
var {
|
|
@@ -3078,6 +3366,213 @@ var require_parse2 = __commonJS({
|
|
|
3078
3366
|
var syntaxError = (type, char) => {
|
|
3079
3367
|
return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
|
|
3080
3368
|
};
|
|
3369
|
+
var splitTopLevel = (input) => {
|
|
3370
|
+
const parts = [];
|
|
3371
|
+
let bracket = 0;
|
|
3372
|
+
let paren = 0;
|
|
3373
|
+
let quote = 0;
|
|
3374
|
+
let value = "";
|
|
3375
|
+
let escaped = false;
|
|
3376
|
+
for (const ch of input) {
|
|
3377
|
+
if (escaped === true) {
|
|
3378
|
+
value += ch;
|
|
3379
|
+
escaped = false;
|
|
3380
|
+
continue;
|
|
3381
|
+
}
|
|
3382
|
+
if (ch === "\\") {
|
|
3383
|
+
value += ch;
|
|
3384
|
+
escaped = true;
|
|
3385
|
+
continue;
|
|
3386
|
+
}
|
|
3387
|
+
if (ch === '"') {
|
|
3388
|
+
quote = quote === 1 ? 0 : 1;
|
|
3389
|
+
value += ch;
|
|
3390
|
+
continue;
|
|
3391
|
+
}
|
|
3392
|
+
if (quote === 0) {
|
|
3393
|
+
if (ch === "[") {
|
|
3394
|
+
bracket++;
|
|
3395
|
+
} else if (ch === "]" && bracket > 0) {
|
|
3396
|
+
bracket--;
|
|
3397
|
+
} else if (bracket === 0) {
|
|
3398
|
+
if (ch === "(") {
|
|
3399
|
+
paren++;
|
|
3400
|
+
} else if (ch === ")" && paren > 0) {
|
|
3401
|
+
paren--;
|
|
3402
|
+
} else if (ch === "|" && paren === 0) {
|
|
3403
|
+
parts.push(value);
|
|
3404
|
+
value = "";
|
|
3405
|
+
continue;
|
|
3406
|
+
}
|
|
3407
|
+
}
|
|
3408
|
+
}
|
|
3409
|
+
value += ch;
|
|
3410
|
+
}
|
|
3411
|
+
parts.push(value);
|
|
3412
|
+
return parts;
|
|
3413
|
+
};
|
|
3414
|
+
var isPlainBranch = (branch) => {
|
|
3415
|
+
let escaped = false;
|
|
3416
|
+
for (const ch of branch) {
|
|
3417
|
+
if (escaped === true) {
|
|
3418
|
+
escaped = false;
|
|
3419
|
+
continue;
|
|
3420
|
+
}
|
|
3421
|
+
if (ch === "\\") {
|
|
3422
|
+
escaped = true;
|
|
3423
|
+
continue;
|
|
3424
|
+
}
|
|
3425
|
+
if (/[?*+@!()[\]{}]/.test(ch)) {
|
|
3426
|
+
return false;
|
|
3427
|
+
}
|
|
3428
|
+
}
|
|
3429
|
+
return true;
|
|
3430
|
+
};
|
|
3431
|
+
var normalizeSimpleBranch = (branch) => {
|
|
3432
|
+
let value = branch.trim();
|
|
3433
|
+
let changed = true;
|
|
3434
|
+
while (changed === true) {
|
|
3435
|
+
changed = false;
|
|
3436
|
+
if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
|
|
3437
|
+
value = value.slice(2, -1);
|
|
3438
|
+
changed = true;
|
|
3439
|
+
}
|
|
3440
|
+
}
|
|
3441
|
+
if (!isPlainBranch(value)) {
|
|
3442
|
+
return;
|
|
3443
|
+
}
|
|
3444
|
+
return value.replace(/\\(.)/g, "$1");
|
|
3445
|
+
};
|
|
3446
|
+
var hasRepeatedCharPrefixOverlap = (branches) => {
|
|
3447
|
+
const values = branches.map(normalizeSimpleBranch).filter(Boolean);
|
|
3448
|
+
for (let i = 0; i < values.length; i++) {
|
|
3449
|
+
for (let j2 = i + 1; j2 < values.length; j2++) {
|
|
3450
|
+
const a = values[i];
|
|
3451
|
+
const b = values[j2];
|
|
3452
|
+
const char = a[0];
|
|
3453
|
+
if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) {
|
|
3454
|
+
continue;
|
|
3455
|
+
}
|
|
3456
|
+
if (a === b || a.startsWith(b) || b.startsWith(a)) {
|
|
3457
|
+
return true;
|
|
3458
|
+
}
|
|
3459
|
+
}
|
|
3460
|
+
}
|
|
3461
|
+
return false;
|
|
3462
|
+
};
|
|
3463
|
+
var parseRepeatedExtglob = (pattern, requireEnd = true) => {
|
|
3464
|
+
if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
|
|
3465
|
+
return;
|
|
3466
|
+
}
|
|
3467
|
+
let bracket = 0;
|
|
3468
|
+
let paren = 0;
|
|
3469
|
+
let quote = 0;
|
|
3470
|
+
let escaped = false;
|
|
3471
|
+
for (let i = 1; i < pattern.length; i++) {
|
|
3472
|
+
const ch = pattern[i];
|
|
3473
|
+
if (escaped === true) {
|
|
3474
|
+
escaped = false;
|
|
3475
|
+
continue;
|
|
3476
|
+
}
|
|
3477
|
+
if (ch === "\\") {
|
|
3478
|
+
escaped = true;
|
|
3479
|
+
continue;
|
|
3480
|
+
}
|
|
3481
|
+
if (ch === '"') {
|
|
3482
|
+
quote = quote === 1 ? 0 : 1;
|
|
3483
|
+
continue;
|
|
3484
|
+
}
|
|
3485
|
+
if (quote === 1) {
|
|
3486
|
+
continue;
|
|
3487
|
+
}
|
|
3488
|
+
if (ch === "[") {
|
|
3489
|
+
bracket++;
|
|
3490
|
+
continue;
|
|
3491
|
+
}
|
|
3492
|
+
if (ch === "]" && bracket > 0) {
|
|
3493
|
+
bracket--;
|
|
3494
|
+
continue;
|
|
3495
|
+
}
|
|
3496
|
+
if (bracket > 0) {
|
|
3497
|
+
continue;
|
|
3498
|
+
}
|
|
3499
|
+
if (ch === "(") {
|
|
3500
|
+
paren++;
|
|
3501
|
+
continue;
|
|
3502
|
+
}
|
|
3503
|
+
if (ch === ")") {
|
|
3504
|
+
paren--;
|
|
3505
|
+
if (paren === 0) {
|
|
3506
|
+
if (requireEnd === true && i !== pattern.length - 1) {
|
|
3507
|
+
return;
|
|
3508
|
+
}
|
|
3509
|
+
return {
|
|
3510
|
+
type: pattern[0],
|
|
3511
|
+
body: pattern.slice(2, i),
|
|
3512
|
+
end: i
|
|
3513
|
+
};
|
|
3514
|
+
}
|
|
3515
|
+
}
|
|
3516
|
+
}
|
|
3517
|
+
};
|
|
3518
|
+
var getStarExtglobSequenceOutput = (pattern) => {
|
|
3519
|
+
let index = 0;
|
|
3520
|
+
const chars = [];
|
|
3521
|
+
while (index < pattern.length) {
|
|
3522
|
+
const match = parseRepeatedExtglob(pattern.slice(index), false);
|
|
3523
|
+
if (!match || match.type !== "*") {
|
|
3524
|
+
return;
|
|
3525
|
+
}
|
|
3526
|
+
const branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
|
|
3527
|
+
if (branches.length !== 1) {
|
|
3528
|
+
return;
|
|
3529
|
+
}
|
|
3530
|
+
const branch = normalizeSimpleBranch(branches[0]);
|
|
3531
|
+
if (!branch || branch.length !== 1) {
|
|
3532
|
+
return;
|
|
3533
|
+
}
|
|
3534
|
+
chars.push(branch);
|
|
3535
|
+
index += match.end + 1;
|
|
3536
|
+
}
|
|
3537
|
+
if (chars.length < 1) {
|
|
3538
|
+
return;
|
|
3539
|
+
}
|
|
3540
|
+
const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
|
|
3541
|
+
return `${source}*`;
|
|
3542
|
+
};
|
|
3543
|
+
var repeatedExtglobRecursion = (pattern) => {
|
|
3544
|
+
let depth = 0;
|
|
3545
|
+
let value = pattern.trim();
|
|
3546
|
+
let match = parseRepeatedExtglob(value);
|
|
3547
|
+
while (match) {
|
|
3548
|
+
depth++;
|
|
3549
|
+
value = match.body.trim();
|
|
3550
|
+
match = parseRepeatedExtglob(value);
|
|
3551
|
+
}
|
|
3552
|
+
return depth;
|
|
3553
|
+
};
|
|
3554
|
+
var analyzeRepeatedExtglob = (body, options) => {
|
|
3555
|
+
if (options.maxExtglobRecursion === false) {
|
|
3556
|
+
return { risky: false };
|
|
3557
|
+
}
|
|
3558
|
+
const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants2.DEFAULT_MAX_EXTGLOB_RECURSION;
|
|
3559
|
+
const branches = splitTopLevel(body).map((branch) => branch.trim());
|
|
3560
|
+
if (branches.length > 1) {
|
|
3561
|
+
if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
|
|
3562
|
+
return { risky: true };
|
|
3563
|
+
}
|
|
3564
|
+
}
|
|
3565
|
+
for (const branch of branches) {
|
|
3566
|
+
const safeOutput = getStarExtglobSequenceOutput(branch);
|
|
3567
|
+
if (safeOutput) {
|
|
3568
|
+
return { risky: true, safeOutput };
|
|
3569
|
+
}
|
|
3570
|
+
if (repeatedExtglobRecursion(branch) > max) {
|
|
3571
|
+
return { risky: true };
|
|
3572
|
+
}
|
|
3573
|
+
}
|
|
3574
|
+
return { risky: false };
|
|
3575
|
+
};
|
|
3081
3576
|
var parse2 = (input, options) => {
|
|
3082
3577
|
if (typeof input !== "string") {
|
|
3083
3578
|
throw new TypeError("Expected a string");
|
|
@@ -3209,6 +3704,8 @@ var require_parse2 = __commonJS({
|
|
|
3209
3704
|
token.prev = prev;
|
|
3210
3705
|
token.parens = state.parens;
|
|
3211
3706
|
token.output = state.output;
|
|
3707
|
+
token.startIndex = state.index;
|
|
3708
|
+
token.tokensIndex = tokens.length;
|
|
3212
3709
|
const output = (opts.capture ? "(" : "") + token.open;
|
|
3213
3710
|
increment("parens");
|
|
3214
3711
|
push({ type, value: value2, output: state.output ? "" : ONE_CHAR });
|
|
@@ -3216,6 +3713,26 @@ var require_parse2 = __commonJS({
|
|
|
3216
3713
|
extglobs.push(token);
|
|
3217
3714
|
};
|
|
3218
3715
|
const extglobClose = (token) => {
|
|
3716
|
+
const literal = input.slice(token.startIndex, state.index + 1);
|
|
3717
|
+
const body = input.slice(token.startIndex + 2, state.index);
|
|
3718
|
+
const analysis = analyzeRepeatedExtglob(body, opts);
|
|
3719
|
+
if ((token.type === "plus" || token.type === "star") && analysis.risky) {
|
|
3720
|
+
const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
|
|
3721
|
+
const open = tokens[token.tokensIndex];
|
|
3722
|
+
open.type = "text";
|
|
3723
|
+
open.value = literal;
|
|
3724
|
+
open.output = safeOutput || utils.escapeRegex(literal);
|
|
3725
|
+
for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
|
|
3726
|
+
tokens[i].value = "";
|
|
3727
|
+
tokens[i].output = "";
|
|
3728
|
+
delete tokens[i].suffix;
|
|
3729
|
+
}
|
|
3730
|
+
state.output = token.output + open.output;
|
|
3731
|
+
state.backtrack = true;
|
|
3732
|
+
push({ type: "paren", extglob: true, value, output: "" });
|
|
3733
|
+
decrement("parens");
|
|
3734
|
+
return;
|
|
3735
|
+
}
|
|
3219
3736
|
let output = token.close + (opts.capture ? ")" : "");
|
|
3220
3737
|
let rest;
|
|
3221
3738
|
if (token.type === "negate") {
|
|
@@ -3239,10 +3756,10 @@ var require_parse2 = __commonJS({
|
|
|
3239
3756
|
};
|
|
3240
3757
|
if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) {
|
|
3241
3758
|
let backslashes = false;
|
|
3242
|
-
let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (
|
|
3759
|
+
let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => {
|
|
3243
3760
|
if (first === "\\") {
|
|
3244
3761
|
backslashes = true;
|
|
3245
|
-
return
|
|
3762
|
+
return m;
|
|
3246
3763
|
}
|
|
3247
3764
|
if (first === "?") {
|
|
3248
3765
|
if (esc) {
|
|
@@ -3262,14 +3779,14 @@ var require_parse2 = __commonJS({
|
|
|
3262
3779
|
}
|
|
3263
3780
|
return star;
|
|
3264
3781
|
}
|
|
3265
|
-
return esc ?
|
|
3782
|
+
return esc ? m : `\\${m}`;
|
|
3266
3783
|
});
|
|
3267
3784
|
if (backslashes === true) {
|
|
3268
3785
|
if (opts.unescape === true) {
|
|
3269
3786
|
output = output.replace(/\\/g, "");
|
|
3270
3787
|
} else {
|
|
3271
|
-
output = output.replace(/\\+/g, (
|
|
3272
|
-
return
|
|
3788
|
+
output = output.replace(/\\+/g, (m) => {
|
|
3789
|
+
return m.length % 2 === 0 ? "\\\\" : m ? "\\" : "";
|
|
3273
3790
|
});
|
|
3274
3791
|
}
|
|
3275
3792
|
}
|
|
@@ -3469,8 +3986,8 @@ var require_parse2 = __commonJS({
|
|
|
3469
3986
|
brace.value = brace.output = "\\{";
|
|
3470
3987
|
value = output = "\\}";
|
|
3471
3988
|
state.output = out;
|
|
3472
|
-
for (const
|
|
3473
|
-
state.output +=
|
|
3989
|
+
for (const t2 of toks) {
|
|
3990
|
+
state.output += t2.output || t2.value;
|
|
3474
3991
|
}
|
|
3475
3992
|
}
|
|
3476
3993
|
push({ type: "brace", value, output });
|
|
@@ -3822,11 +4339,11 @@ var require_parse2 = __commonJS({
|
|
|
3822
4339
|
}
|
|
3823
4340
|
});
|
|
3824
4341
|
|
|
3825
|
-
// node_modules/.bun/picomatch@2.3.
|
|
4342
|
+
// node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js
|
|
3826
4343
|
var require_picomatch = __commonJS({
|
|
3827
|
-
"node_modules/.bun/picomatch@2.3.
|
|
4344
|
+
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js"(exports, module) {
|
|
3828
4345
|
"use strict";
|
|
3829
|
-
|
|
4346
|
+
init_utils2();
|
|
3830
4347
|
var path = __require("path");
|
|
3831
4348
|
var scan = require_scan();
|
|
3832
4349
|
var parse2 = require_parse2();
|
|
@@ -3964,11 +4481,11 @@ var require_picomatch = __commonJS({
|
|
|
3964
4481
|
}
|
|
3965
4482
|
});
|
|
3966
4483
|
|
|
3967
|
-
// node_modules/.bun/picomatch@2.3.
|
|
4484
|
+
// node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js
|
|
3968
4485
|
var require_picomatch2 = __commonJS({
|
|
3969
|
-
"node_modules/.bun/picomatch@2.3.
|
|
4486
|
+
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js"(exports, module) {
|
|
3970
4487
|
"use strict";
|
|
3971
|
-
|
|
4488
|
+
init_utils2();
|
|
3972
4489
|
module.exports = require_picomatch();
|
|
3973
4490
|
}
|
|
3974
4491
|
});
|
|
@@ -3977,7 +4494,7 @@ var require_picomatch2 = __commonJS({
|
|
|
3977
4494
|
var require_micromatch = __commonJS({
|
|
3978
4495
|
"node_modules/.bun/micromatch@4.0.8/node_modules/micromatch/index.js"(exports, module) {
|
|
3979
4496
|
"use strict";
|
|
3980
|
-
|
|
4497
|
+
init_utils2();
|
|
3981
4498
|
var util = __require("util");
|
|
3982
4499
|
var braces = require_braces();
|
|
3983
4500
|
var picomatch = require_picomatch2();
|
|
@@ -4139,7 +4656,7 @@ var require_micromatch = __commonJS({
|
|
|
4139
4656
|
var require_pattern = __commonJS({
|
|
4140
4657
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js"(exports) {
|
|
4141
4658
|
"use strict";
|
|
4142
|
-
|
|
4659
|
+
init_utils2();
|
|
4143
4660
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4144
4661
|
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;
|
|
4145
4662
|
var path = __require("path");
|
|
@@ -4249,7 +4766,7 @@ var require_pattern = __commonJS({
|
|
|
4249
4766
|
exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
|
|
4250
4767
|
function expandBraceExpansion(pattern) {
|
|
4251
4768
|
const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true });
|
|
4252
|
-
patterns.sort((a,
|
|
4769
|
+
patterns.sort((a, b) => a.length - b.length);
|
|
4253
4770
|
return patterns.filter((pattern2) => pattern2 !== "");
|
|
4254
4771
|
}
|
|
4255
4772
|
exports.expandBraceExpansion = expandBraceExpansion;
|
|
@@ -4305,7 +4822,7 @@ var require_pattern = __commonJS({
|
|
|
4305
4822
|
var require_merge2 = __commonJS({
|
|
4306
4823
|
"node_modules/.bun/merge2@1.4.1/node_modules/merge2/index.js"(exports, module) {
|
|
4307
4824
|
"use strict";
|
|
4308
|
-
|
|
4825
|
+
init_utils2();
|
|
4309
4826
|
var Stream = __require("stream");
|
|
4310
4827
|
var PassThrough = Stream.PassThrough;
|
|
4311
4828
|
var slice = Array.prototype.slice;
|
|
@@ -4425,7 +4942,7 @@ var require_merge2 = __commonJS({
|
|
|
4425
4942
|
var require_stream = __commonJS({
|
|
4426
4943
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js"(exports) {
|
|
4427
4944
|
"use strict";
|
|
4428
|
-
|
|
4945
|
+
init_utils2();
|
|
4429
4946
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4430
4947
|
exports.merge = void 0;
|
|
4431
4948
|
var merge2 = require_merge2();
|
|
@@ -4449,7 +4966,7 @@ var require_stream = __commonJS({
|
|
|
4449
4966
|
var require_string = __commonJS({
|
|
4450
4967
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js"(exports) {
|
|
4451
4968
|
"use strict";
|
|
4452
|
-
|
|
4969
|
+
init_utils2();
|
|
4453
4970
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4454
4971
|
exports.isEmpty = exports.isString = void 0;
|
|
4455
4972
|
function isString(input) {
|
|
@@ -4467,7 +4984,7 @@ var require_string = __commonJS({
|
|
|
4467
4984
|
var require_utils3 = __commonJS({
|
|
4468
4985
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js"(exports) {
|
|
4469
4986
|
"use strict";
|
|
4470
|
-
|
|
4987
|
+
init_utils2();
|
|
4471
4988
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4472
4989
|
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
|
|
4473
4990
|
var array = require_array();
|
|
@@ -4491,7 +5008,7 @@ var require_utils3 = __commonJS({
|
|
|
4491
5008
|
var require_tasks = __commonJS({
|
|
4492
5009
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js"(exports) {
|
|
4493
5010
|
"use strict";
|
|
4494
|
-
|
|
5011
|
+
init_utils2();
|
|
4495
5012
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4496
5013
|
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
|
|
4497
5014
|
var utils = require_utils3();
|
|
@@ -4588,7 +5105,7 @@ var require_tasks = __commonJS({
|
|
|
4588
5105
|
var require_async = __commonJS({
|
|
4589
5106
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) {
|
|
4590
5107
|
"use strict";
|
|
4591
|
-
|
|
5108
|
+
init_utils2();
|
|
4592
5109
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4593
5110
|
exports.read = void 0;
|
|
4594
5111
|
function read2(path, settings, callback) {
|
|
@@ -4631,7 +5148,7 @@ var require_async = __commonJS({
|
|
|
4631
5148
|
var require_sync = __commonJS({
|
|
4632
5149
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) {
|
|
4633
5150
|
"use strict";
|
|
4634
|
-
|
|
5151
|
+
init_utils2();
|
|
4635
5152
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4636
5153
|
exports.read = void 0;
|
|
4637
5154
|
function read2(path, settings) {
|
|
@@ -4660,7 +5177,7 @@ var require_sync = __commonJS({
|
|
|
4660
5177
|
var require_fs2 = __commonJS({
|
|
4661
5178
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) {
|
|
4662
5179
|
"use strict";
|
|
4663
|
-
|
|
5180
|
+
init_utils2();
|
|
4664
5181
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4665
5182
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
4666
5183
|
var fs2 = __require("fs");
|
|
@@ -4684,7 +5201,7 @@ var require_fs2 = __commonJS({
|
|
|
4684
5201
|
var require_settings = __commonJS({
|
|
4685
5202
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js"(exports) {
|
|
4686
5203
|
"use strict";
|
|
4687
|
-
|
|
5204
|
+
init_utils2();
|
|
4688
5205
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4689
5206
|
var fs2 = require_fs2();
|
|
4690
5207
|
var Settings = class {
|
|
@@ -4707,7 +5224,7 @@ var require_settings = __commonJS({
|
|
|
4707
5224
|
var require_out = __commonJS({
|
|
4708
5225
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js"(exports) {
|
|
4709
5226
|
"use strict";
|
|
4710
|
-
|
|
5227
|
+
init_utils2();
|
|
4711
5228
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4712
5229
|
exports.statSync = exports.stat = exports.Settings = void 0;
|
|
4713
5230
|
var async = require_async();
|
|
@@ -4739,7 +5256,7 @@ var require_out = __commonJS({
|
|
|
4739
5256
|
// node_modules/.bun/queue-microtask@1.2.3/node_modules/queue-microtask/index.js
|
|
4740
5257
|
var require_queue_microtask = __commonJS({
|
|
4741
5258
|
"node_modules/.bun/queue-microtask@1.2.3/node_modules/queue-microtask/index.js"(exports, module) {
|
|
4742
|
-
|
|
5259
|
+
init_utils2();
|
|
4743
5260
|
var promise;
|
|
4744
5261
|
module.exports = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : global) : (cb) => (promise || (promise = Promise.resolve())).then(cb).catch((err) => setTimeout(() => {
|
|
4745
5262
|
throw err;
|
|
@@ -4750,7 +5267,7 @@ var require_queue_microtask = __commonJS({
|
|
|
4750
5267
|
// node_modules/.bun/run-parallel@1.2.0/node_modules/run-parallel/index.js
|
|
4751
5268
|
var require_run_parallel = __commonJS({
|
|
4752
5269
|
"node_modules/.bun/run-parallel@1.2.0/node_modules/run-parallel/index.js"(exports, module) {
|
|
4753
|
-
|
|
5270
|
+
init_utils2();
|
|
4754
5271
|
module.exports = runParallel;
|
|
4755
5272
|
var queueMicrotask2 = require_queue_microtask();
|
|
4756
5273
|
function runParallel(tasks, cb) {
|
|
@@ -4802,7 +5319,7 @@ var require_run_parallel = __commonJS({
|
|
|
4802
5319
|
var require_constants3 = __commonJS({
|
|
4803
5320
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js"(exports) {
|
|
4804
5321
|
"use strict";
|
|
4805
|
-
|
|
5322
|
+
init_utils2();
|
|
4806
5323
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4807
5324
|
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
|
|
4808
5325
|
var NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
|
|
@@ -4823,7 +5340,7 @@ var require_constants3 = __commonJS({
|
|
|
4823
5340
|
var require_fs3 = __commonJS({
|
|
4824
5341
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js"(exports) {
|
|
4825
5342
|
"use strict";
|
|
4826
|
-
|
|
5343
|
+
init_utils2();
|
|
4827
5344
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4828
5345
|
exports.createDirentFromStats = void 0;
|
|
4829
5346
|
var DirentFromStats = class {
|
|
@@ -4849,7 +5366,7 @@ var require_fs3 = __commonJS({
|
|
|
4849
5366
|
var require_utils4 = __commonJS({
|
|
4850
5367
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
|
|
4851
5368
|
"use strict";
|
|
4852
|
-
|
|
5369
|
+
init_utils2();
|
|
4853
5370
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4854
5371
|
exports.fs = void 0;
|
|
4855
5372
|
var fs2 = require_fs3();
|
|
@@ -4861,14 +5378,14 @@ var require_utils4 = __commonJS({
|
|
|
4861
5378
|
var require_common = __commonJS({
|
|
4862
5379
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js"(exports) {
|
|
4863
5380
|
"use strict";
|
|
4864
|
-
|
|
5381
|
+
init_utils2();
|
|
4865
5382
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4866
5383
|
exports.joinPathSegments = void 0;
|
|
4867
|
-
function joinPathSegments(a,
|
|
5384
|
+
function joinPathSegments(a, b, separator) {
|
|
4868
5385
|
if (a.endsWith(separator)) {
|
|
4869
|
-
return a +
|
|
5386
|
+
return a + b;
|
|
4870
5387
|
}
|
|
4871
|
-
return a + separator +
|
|
5388
|
+
return a + separator + b;
|
|
4872
5389
|
}
|
|
4873
5390
|
exports.joinPathSegments = joinPathSegments;
|
|
4874
5391
|
}
|
|
@@ -4878,7 +5395,7 @@ var require_common = __commonJS({
|
|
|
4878
5395
|
var require_async2 = __commonJS({
|
|
4879
5396
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js"(exports) {
|
|
4880
5397
|
"use strict";
|
|
4881
|
-
|
|
5398
|
+
init_utils2();
|
|
4882
5399
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4883
5400
|
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
4884
5401
|
var fsStat = require_out();
|
|
@@ -4989,7 +5506,7 @@ var require_async2 = __commonJS({
|
|
|
4989
5506
|
var require_sync2 = __commonJS({
|
|
4990
5507
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js"(exports) {
|
|
4991
5508
|
"use strict";
|
|
4992
|
-
|
|
5509
|
+
init_utils2();
|
|
4993
5510
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4994
5511
|
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
4995
5512
|
var fsStat = require_out();
|
|
@@ -5049,7 +5566,7 @@ var require_sync2 = __commonJS({
|
|
|
5049
5566
|
var require_fs4 = __commonJS({
|
|
5050
5567
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) {
|
|
5051
5568
|
"use strict";
|
|
5052
|
-
|
|
5569
|
+
init_utils2();
|
|
5053
5570
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5054
5571
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
5055
5572
|
var fs2 = __require("fs");
|
|
@@ -5075,7 +5592,7 @@ var require_fs4 = __commonJS({
|
|
|
5075
5592
|
var require_settings2 = __commonJS({
|
|
5076
5593
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
|
|
5077
5594
|
"use strict";
|
|
5078
|
-
|
|
5595
|
+
init_utils2();
|
|
5079
5596
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5080
5597
|
var path = __require("path");
|
|
5081
5598
|
var fsStat = require_out();
|
|
@@ -5106,7 +5623,7 @@ var require_settings2 = __commonJS({
|
|
|
5106
5623
|
var require_out2 = __commonJS({
|
|
5107
5624
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js"(exports) {
|
|
5108
5625
|
"use strict";
|
|
5109
|
-
|
|
5626
|
+
init_utils2();
|
|
5110
5627
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5111
5628
|
exports.Settings = exports.scandirSync = exports.scandir = void 0;
|
|
5112
5629
|
var async = require_async2();
|
|
@@ -5139,7 +5656,7 @@ var require_out2 = __commonJS({
|
|
|
5139
5656
|
var require_reusify = __commonJS({
|
|
5140
5657
|
"node_modules/.bun/reusify@1.1.0/node_modules/reusify/reusify.js"(exports, module) {
|
|
5141
5658
|
"use strict";
|
|
5142
|
-
|
|
5659
|
+
init_utils2();
|
|
5143
5660
|
function reusify(Constructor) {
|
|
5144
5661
|
var head = new Constructor();
|
|
5145
5662
|
var tail = head;
|
|
@@ -5171,7 +5688,7 @@ var require_reusify = __commonJS({
|
|
|
5171
5688
|
var require_queue = __commonJS({
|
|
5172
5689
|
"node_modules/.bun/fastq@1.20.1/node_modules/fastq/queue.js"(exports, module) {
|
|
5173
5690
|
"use strict";
|
|
5174
|
-
|
|
5691
|
+
init_utils2();
|
|
5175
5692
|
var reusify = require_reusify();
|
|
5176
5693
|
function fastqueue(context, worker, _concurrency) {
|
|
5177
5694
|
if (typeof context === "function") {
|
|
@@ -5456,7 +5973,7 @@ var require_queue = __commonJS({
|
|
|
5456
5973
|
var require_common2 = __commonJS({
|
|
5457
5974
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js"(exports) {
|
|
5458
5975
|
"use strict";
|
|
5459
|
-
|
|
5976
|
+
init_utils2();
|
|
5460
5977
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5461
5978
|
exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
|
|
5462
5979
|
function isFatalError(settings, error2) {
|
|
@@ -5474,14 +5991,14 @@ var require_common2 = __commonJS({
|
|
|
5474
5991
|
return filepath.split(/[/\\]/).join(separator);
|
|
5475
5992
|
}
|
|
5476
5993
|
exports.replacePathSegmentSeparator = replacePathSegmentSeparator;
|
|
5477
|
-
function joinPathSegments(a,
|
|
5994
|
+
function joinPathSegments(a, b, separator) {
|
|
5478
5995
|
if (a === "") {
|
|
5479
|
-
return
|
|
5996
|
+
return b;
|
|
5480
5997
|
}
|
|
5481
5998
|
if (a.endsWith(separator)) {
|
|
5482
|
-
return a +
|
|
5999
|
+
return a + b;
|
|
5483
6000
|
}
|
|
5484
|
-
return a + separator +
|
|
6001
|
+
return a + separator + b;
|
|
5485
6002
|
}
|
|
5486
6003
|
exports.joinPathSegments = joinPathSegments;
|
|
5487
6004
|
}
|
|
@@ -5491,7 +6008,7 @@ var require_common2 = __commonJS({
|
|
|
5491
6008
|
var require_reader = __commonJS({
|
|
5492
6009
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.js"(exports) {
|
|
5493
6010
|
"use strict";
|
|
5494
|
-
|
|
6011
|
+
init_utils2();
|
|
5495
6012
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5496
6013
|
var common = require_common2();
|
|
5497
6014
|
var Reader = class {
|
|
@@ -5509,7 +6026,7 @@ var require_reader = __commonJS({
|
|
|
5509
6026
|
var require_async3 = __commonJS({
|
|
5510
6027
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.js"(exports) {
|
|
5511
6028
|
"use strict";
|
|
5512
|
-
|
|
6029
|
+
init_utils2();
|
|
5513
6030
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5514
6031
|
var events_1 = __require("events");
|
|
5515
6032
|
var fsScandir = require_out2();
|
|
@@ -5613,7 +6130,7 @@ var require_async3 = __commonJS({
|
|
|
5613
6130
|
var require_async4 = __commonJS({
|
|
5614
6131
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.js"(exports) {
|
|
5615
6132
|
"use strict";
|
|
5616
|
-
|
|
6133
|
+
init_utils2();
|
|
5617
6134
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5618
6135
|
var async_1 = require_async3();
|
|
5619
6136
|
var AsyncProvider = class {
|
|
@@ -5650,7 +6167,7 @@ var require_async4 = __commonJS({
|
|
|
5650
6167
|
var require_stream2 = __commonJS({
|
|
5651
6168
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.js"(exports) {
|
|
5652
6169
|
"use strict";
|
|
5653
|
-
|
|
6170
|
+
init_utils2();
|
|
5654
6171
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5655
6172
|
var stream_1 = __require("stream");
|
|
5656
6173
|
var async_1 = require_async3();
|
|
@@ -5692,7 +6209,7 @@ var require_stream2 = __commonJS({
|
|
|
5692
6209
|
var require_sync3 = __commonJS({
|
|
5693
6210
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.js"(exports) {
|
|
5694
6211
|
"use strict";
|
|
5695
|
-
|
|
6212
|
+
init_utils2();
|
|
5696
6213
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5697
6214
|
var fsScandir = require_out2();
|
|
5698
6215
|
var common = require_common2();
|
|
@@ -5757,7 +6274,7 @@ var require_sync3 = __commonJS({
|
|
|
5757
6274
|
var require_sync4 = __commonJS({
|
|
5758
6275
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.js"(exports) {
|
|
5759
6276
|
"use strict";
|
|
5760
|
-
|
|
6277
|
+
init_utils2();
|
|
5761
6278
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5762
6279
|
var sync_1 = require_sync3();
|
|
5763
6280
|
var SyncProvider = class {
|
|
@@ -5778,7 +6295,7 @@ var require_sync4 = __commonJS({
|
|
|
5778
6295
|
var require_settings3 = __commonJS({
|
|
5779
6296
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
|
|
5780
6297
|
"use strict";
|
|
5781
|
-
|
|
6298
|
+
init_utils2();
|
|
5782
6299
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5783
6300
|
var path = __require("path");
|
|
5784
6301
|
var fsScandir = require_out2();
|
|
@@ -5811,7 +6328,7 @@ var require_settings3 = __commonJS({
|
|
|
5811
6328
|
var require_out3 = __commonJS({
|
|
5812
6329
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js"(exports) {
|
|
5813
6330
|
"use strict";
|
|
5814
|
-
|
|
6331
|
+
init_utils2();
|
|
5815
6332
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5816
6333
|
exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
|
|
5817
6334
|
var async_1 = require_async4();
|
|
@@ -5852,7 +6369,7 @@ var require_out3 = __commonJS({
|
|
|
5852
6369
|
var require_reader2 = __commonJS({
|
|
5853
6370
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js"(exports) {
|
|
5854
6371
|
"use strict";
|
|
5855
|
-
|
|
6372
|
+
init_utils2();
|
|
5856
6373
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5857
6374
|
var path = __require("path");
|
|
5858
6375
|
var fsStat = require_out();
|
|
@@ -5892,7 +6409,7 @@ var require_reader2 = __commonJS({
|
|
|
5892
6409
|
var require_stream3 = __commonJS({
|
|
5893
6410
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js"(exports) {
|
|
5894
6411
|
"use strict";
|
|
5895
|
-
|
|
6412
|
+
init_utils2();
|
|
5896
6413
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5897
6414
|
var stream_1 = __require("stream");
|
|
5898
6415
|
var fsStat = require_out();
|
|
@@ -5950,7 +6467,7 @@ var require_stream3 = __commonJS({
|
|
|
5950
6467
|
var require_async5 = __commonJS({
|
|
5951
6468
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js"(exports) {
|
|
5952
6469
|
"use strict";
|
|
5953
|
-
|
|
6470
|
+
init_utils2();
|
|
5954
6471
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5955
6472
|
var fsWalk = require_out3();
|
|
5956
6473
|
var reader_1 = require_reader2();
|
|
@@ -5990,7 +6507,7 @@ var require_async5 = __commonJS({
|
|
|
5990
6507
|
var require_matcher = __commonJS({
|
|
5991
6508
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) {
|
|
5992
6509
|
"use strict";
|
|
5993
|
-
|
|
6510
|
+
init_utils2();
|
|
5994
6511
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5995
6512
|
var utils = require_utils3();
|
|
5996
6513
|
var Matcher = class {
|
|
@@ -6042,7 +6559,7 @@ var require_matcher = __commonJS({
|
|
|
6042
6559
|
var require_partial = __commonJS({
|
|
6043
6560
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js"(exports) {
|
|
6044
6561
|
"use strict";
|
|
6045
|
-
|
|
6562
|
+
init_utils2();
|
|
6046
6563
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6047
6564
|
var matcher_1 = require_matcher();
|
|
6048
6565
|
var PartialMatcher = class extends matcher_1.default {
|
|
@@ -6080,7 +6597,7 @@ var require_partial = __commonJS({
|
|
|
6080
6597
|
var require_deep = __commonJS({
|
|
6081
6598
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js"(exports) {
|
|
6082
6599
|
"use strict";
|
|
6083
|
-
|
|
6600
|
+
init_utils2();
|
|
6084
6601
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6085
6602
|
var utils = require_utils3();
|
|
6086
6603
|
var partial_1 = require_partial();
|
|
@@ -6146,7 +6663,7 @@ var require_deep = __commonJS({
|
|
|
6146
6663
|
var require_entry = __commonJS({
|
|
6147
6664
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js"(exports) {
|
|
6148
6665
|
"use strict";
|
|
6149
|
-
|
|
6666
|
+
init_utils2();
|
|
6150
6667
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6151
6668
|
var utils = require_utils3();
|
|
6152
6669
|
var EntryFilter = class {
|
|
@@ -6235,7 +6752,7 @@ var require_entry = __commonJS({
|
|
|
6235
6752
|
var require_error = __commonJS({
|
|
6236
6753
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js"(exports) {
|
|
6237
6754
|
"use strict";
|
|
6238
|
-
|
|
6755
|
+
init_utils2();
|
|
6239
6756
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6240
6757
|
var utils = require_utils3();
|
|
6241
6758
|
var ErrorFilter = class {
|
|
@@ -6257,7 +6774,7 @@ var require_error = __commonJS({
|
|
|
6257
6774
|
var require_entry2 = __commonJS({
|
|
6258
6775
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js"(exports) {
|
|
6259
6776
|
"use strict";
|
|
6260
|
-
|
|
6777
|
+
init_utils2();
|
|
6261
6778
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6262
6779
|
var utils = require_utils3();
|
|
6263
6780
|
var EntryTransformer = class {
|
|
@@ -6290,7 +6807,7 @@ var require_entry2 = __commonJS({
|
|
|
6290
6807
|
var require_provider = __commonJS({
|
|
6291
6808
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js"(exports) {
|
|
6292
6809
|
"use strict";
|
|
6293
|
-
|
|
6810
|
+
init_utils2();
|
|
6294
6811
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6295
6812
|
var path = __require("path");
|
|
6296
6813
|
var deep_1 = require_deep();
|
|
@@ -6345,7 +6862,7 @@ var require_provider = __commonJS({
|
|
|
6345
6862
|
var require_async6 = __commonJS({
|
|
6346
6863
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js"(exports) {
|
|
6347
6864
|
"use strict";
|
|
6348
|
-
|
|
6865
|
+
init_utils2();
|
|
6349
6866
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6350
6867
|
var async_1 = require_async5();
|
|
6351
6868
|
var provider_1 = require_provider();
|
|
@@ -6375,7 +6892,7 @@ var require_async6 = __commonJS({
|
|
|
6375
6892
|
var require_stream4 = __commonJS({
|
|
6376
6893
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js"(exports) {
|
|
6377
6894
|
"use strict";
|
|
6378
|
-
|
|
6895
|
+
init_utils2();
|
|
6379
6896
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6380
6897
|
var stream_1 = __require("stream");
|
|
6381
6898
|
var stream_2 = require_stream3();
|
|
@@ -6410,7 +6927,7 @@ var require_stream4 = __commonJS({
|
|
|
6410
6927
|
var require_sync5 = __commonJS({
|
|
6411
6928
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js"(exports) {
|
|
6412
6929
|
"use strict";
|
|
6413
|
-
|
|
6930
|
+
init_utils2();
|
|
6414
6931
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6415
6932
|
var fsStat = require_out();
|
|
6416
6933
|
var fsWalk = require_out3();
|
|
@@ -6459,7 +6976,7 @@ var require_sync5 = __commonJS({
|
|
|
6459
6976
|
var require_sync6 = __commonJS({
|
|
6460
6977
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js"(exports) {
|
|
6461
6978
|
"use strict";
|
|
6462
|
-
|
|
6979
|
+
init_utils2();
|
|
6463
6980
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6464
6981
|
var sync_1 = require_sync5();
|
|
6465
6982
|
var provider_1 = require_provider();
|
|
@@ -6489,7 +7006,7 @@ var require_sync6 = __commonJS({
|
|
|
6489
7006
|
var require_settings4 = __commonJS({
|
|
6490
7007
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js"(exports) {
|
|
6491
7008
|
"use strict";
|
|
6492
|
-
|
|
7009
|
+
init_utils2();
|
|
6493
7010
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6494
7011
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
6495
7012
|
var fs2 = __require("fs");
|
|
@@ -6550,7 +7067,7 @@ var require_settings4 = __commonJS({
|
|
|
6550
7067
|
var require_out4 = __commonJS({
|
|
6551
7068
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/index.js"(exports, module) {
|
|
6552
7069
|
"use strict";
|
|
6553
|
-
|
|
7070
|
+
init_utils2();
|
|
6554
7071
|
var taskManager = require_tasks();
|
|
6555
7072
|
var async_1 = require_async6();
|
|
6556
7073
|
var stream_1 = require_stream4();
|
|
@@ -6669,7 +7186,7 @@ var I18N_PATHS, SCAN_PATTERNS, GLOB_OPTIONS;
|
|
|
6669
7186
|
var init_constants = __esm({
|
|
6670
7187
|
"packages/core/config/constants.js"() {
|
|
6671
7188
|
"use strict";
|
|
6672
|
-
|
|
7189
|
+
init_utils2();
|
|
6673
7190
|
I18N_PATHS = {
|
|
6674
7191
|
// Monorepo source structure (locales at root, not in src/)
|
|
6675
7192
|
SOURCE_ROOT: "packages/core/i18n",
|
|
@@ -6831,7 +7348,7 @@ var import_fast_glob, constants, log2, PACKAGE_PATHS, PathResolver;
|
|
|
6831
7348
|
var init_PathResolver = __esm({
|
|
6832
7349
|
"packages/core/config/utils/PathResolver.ts"() {
|
|
6833
7350
|
"use strict";
|
|
6834
|
-
|
|
7351
|
+
init_utils2();
|
|
6835
7352
|
import_fast_glob = __toESM(require_out4(), 1);
|
|
6836
7353
|
init_constants();
|
|
6837
7354
|
constants = {
|
|
@@ -7971,7 +8488,7 @@ var pathResolverInstance, getRepoRoot, getAppRoot, resolveFrameworkPackage, norm
|
|
|
7971
8488
|
var init_pathResolver = __esm({
|
|
7972
8489
|
"packages/tooling/src/utils/pathResolver.ts"() {
|
|
7973
8490
|
"use strict";
|
|
7974
|
-
|
|
8491
|
+
init_utils2();
|
|
7975
8492
|
init_PathResolver();
|
|
7976
8493
|
pathResolverInstance = PathResolver.getInstance({ debug: false });
|
|
7977
8494
|
getRepoRoot = () => pathResolverInstance.getRepoRoot();
|
|
@@ -8007,7 +8524,7 @@ import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
|
8007
8524
|
import process from "node:process";
|
|
8008
8525
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
8009
8526
|
var require2, __filename, __dirname;
|
|
8010
|
-
var
|
|
8527
|
+
var init_utils2 = __esm({
|
|
8011
8528
|
"packages/tooling/src/bundler/utils.ts"() {
|
|
8012
8529
|
"use strict";
|
|
8013
8530
|
require2 = createRequire3(import.meta.url);
|
|
@@ -8028,12 +8545,12 @@ var init_utils = __esm({
|
|
|
8028
8545
|
|
|
8029
8546
|
// packages/tooling/src/utils/cli-input.ts
|
|
8030
8547
|
async function askForConfirmation(message, defaultValue = false) {
|
|
8031
|
-
const result = await
|
|
8548
|
+
const result = await ot2({
|
|
8032
8549
|
message,
|
|
8033
8550
|
initialValue: defaultValue
|
|
8034
8551
|
});
|
|
8035
|
-
if (
|
|
8036
|
-
|
|
8552
|
+
if (q(result)) {
|
|
8553
|
+
pt("Operation cancelled.");
|
|
8037
8554
|
process.exit(0);
|
|
8038
8555
|
}
|
|
8039
8556
|
return result;
|
|
@@ -8045,13 +8562,13 @@ async function askForMultiSelection(message, choices, defaultIndices = []) {
|
|
|
8045
8562
|
hint: choice.hint
|
|
8046
8563
|
}));
|
|
8047
8564
|
const initialValues = defaultIndices.map((i) => choices[i]?.value).filter(Boolean);
|
|
8048
|
-
const result = await
|
|
8565
|
+
const result = await yt({
|
|
8049
8566
|
message,
|
|
8050
8567
|
options,
|
|
8051
8568
|
initialValues: initialValues.length > 0 ? initialValues : void 0
|
|
8052
8569
|
});
|
|
8053
|
-
if (
|
|
8054
|
-
|
|
8570
|
+
if (q(result)) {
|
|
8571
|
+
pt("Operation cancelled.");
|
|
8055
8572
|
process.exit(0);
|
|
8056
8573
|
}
|
|
8057
8574
|
return result;
|
|
@@ -8059,22 +8576,22 @@ async function askForMultiSelection(message, choices, defaultIndices = []) {
|
|
|
8059
8576
|
var init_cli_input = __esm({
|
|
8060
8577
|
"packages/tooling/src/utils/cli-input.ts"() {
|
|
8061
8578
|
"use strict";
|
|
8062
|
-
|
|
8063
|
-
|
|
8579
|
+
init_utils2();
|
|
8580
|
+
init_dist4();
|
|
8064
8581
|
}
|
|
8065
8582
|
});
|
|
8066
8583
|
|
|
8067
8584
|
// packages/cli/src/bin/commands/bump.ts
|
|
8068
|
-
|
|
8585
|
+
init_utils2();
|
|
8069
8586
|
|
|
8070
8587
|
// packages/tooling/src/index.ts
|
|
8071
|
-
|
|
8588
|
+
init_utils2();
|
|
8072
8589
|
|
|
8073
8590
|
// packages/tooling/src/cli/index.ts
|
|
8074
|
-
|
|
8591
|
+
init_utils2();
|
|
8075
8592
|
|
|
8076
8593
|
// packages/tooling/src/utils/matrix.ts
|
|
8077
|
-
|
|
8594
|
+
init_utils2();
|
|
8078
8595
|
init_pathResolver();
|
|
8079
8596
|
import { createRequire as createRequire4 } from "node:module";
|
|
8080
8597
|
var cachedMatrix = null;
|
|
@@ -8178,7 +8695,7 @@ function getMigrationGuide(currentMajor, targetMajor, mode) {
|
|
|
8178
8695
|
}
|
|
8179
8696
|
|
|
8180
8697
|
// packages/tooling/src/utils/package-deps.ts
|
|
8181
|
-
|
|
8698
|
+
init_utils2();
|
|
8182
8699
|
init_pathResolver();
|
|
8183
8700
|
function parsePackageJson(filePath) {
|
|
8184
8701
|
try {
|
|
@@ -8234,31 +8751,31 @@ function ensureCaretPrefix(version) {
|
|
|
8234
8751
|
return `^${version}`;
|
|
8235
8752
|
}
|
|
8236
8753
|
function compareVersions(current, expected) {
|
|
8237
|
-
const
|
|
8238
|
-
const
|
|
8239
|
-
for (let i = 0; i < Math.max(
|
|
8240
|
-
const cv =
|
|
8241
|
-
const ev =
|
|
8754
|
+
const c2 = normalizeVersion(current).split(".").map(Number);
|
|
8755
|
+
const e = normalizeVersion(expected).split(".").map(Number);
|
|
8756
|
+
for (let i = 0; i < Math.max(c2.length, e.length); i++) {
|
|
8757
|
+
const cv = c2[i] || 0;
|
|
8758
|
+
const ev = e[i] || 0;
|
|
8242
8759
|
if (cv < ev)
|
|
8243
8760
|
return {
|
|
8244
8761
|
behind: true,
|
|
8245
8762
|
ahead: false,
|
|
8246
8763
|
equal: false,
|
|
8247
|
-
isMajor: (
|
|
8764
|
+
isMajor: (c2[0] || 0) !== (e[0] || 0)
|
|
8248
8765
|
};
|
|
8249
8766
|
if (cv > ev)
|
|
8250
8767
|
return {
|
|
8251
8768
|
behind: false,
|
|
8252
8769
|
ahead: true,
|
|
8253
8770
|
equal: false,
|
|
8254
|
-
isMajor: (
|
|
8771
|
+
isMajor: (c2[0] || 0) !== (e[0] || 0)
|
|
8255
8772
|
};
|
|
8256
8773
|
}
|
|
8257
8774
|
return { behind: false, ahead: false, equal: true, isMajor: false };
|
|
8258
8775
|
}
|
|
8259
8776
|
|
|
8260
8777
|
// packages/tooling/src/bundler/sync-dependencies.ts
|
|
8261
|
-
|
|
8778
|
+
init_utils2();
|
|
8262
8779
|
import { execSync } from "node:child_process";
|
|
8263
8780
|
import { createRequire as createRequire5 } from "node:module";
|
|
8264
8781
|
init_pathResolver();
|
|
@@ -8325,7 +8842,7 @@ function syncDonotdevToMatrix(matrix, donotdevVersions, dryRun) {
|
|
|
8325
8842
|
}
|
|
8326
8843
|
|
|
8327
8844
|
// packages/tooling/src/utils/dependency-resolver.ts
|
|
8328
|
-
|
|
8845
|
+
init_utils2();
|
|
8329
8846
|
function applyConditionals(template, options) {
|
|
8330
8847
|
if (!template.conditional) return [];
|
|
8331
8848
|
const groups = [];
|
|
@@ -8503,11 +9020,11 @@ function generatePackageJson(templateName, mode, options = {}) {
|
|
|
8503
9020
|
}
|
|
8504
9021
|
|
|
8505
9022
|
// packages/tooling/src/maintenance/bump.ts
|
|
8506
|
-
|
|
9023
|
+
init_utils2();
|
|
8507
9024
|
import { execSync as execSync2 } from "node:child_process";
|
|
8508
9025
|
|
|
8509
9026
|
// packages/tooling/src/maintenance/sync-apps.ts
|
|
8510
|
-
|
|
9027
|
+
init_utils2();
|
|
8511
9028
|
init_cli_output();
|
|
8512
9029
|
init_errors();
|
|
8513
9030
|
init_pathResolver();
|
|
@@ -8693,7 +9210,7 @@ async function syncApp(appName, options = {}) {
|
|
|
8693
9210
|
}
|
|
8694
9211
|
|
|
8695
9212
|
// packages/tooling/src/maintenance/sync-docs.ts
|
|
8696
|
-
|
|
9213
|
+
init_utils2();
|
|
8697
9214
|
init_cli_output();
|
|
8698
9215
|
init_errors();
|
|
8699
9216
|
init_pathResolver();
|
|
@@ -8709,10 +9226,9 @@ var SYNC_PATHS = [
|
|
|
8709
9226
|
// Agents
|
|
8710
9227
|
".claude/agents/**/*.md.example",
|
|
8711
9228
|
// AI instructions (SSOT for agent behavior)
|
|
8712
|
-
"
|
|
9229
|
+
"AGENTS.md.example",
|
|
8713
9230
|
"CLAUDE.md.example",
|
|
8714
9231
|
".claude/CLAUDE.md.example",
|
|
8715
|
-
"GEMINI.md.example",
|
|
8716
9232
|
// Config files
|
|
8717
9233
|
".claude/mcp.json.example",
|
|
8718
9234
|
// MCP config
|
|
@@ -9003,9 +9519,9 @@ function formatDeprecatedList(deprecated, appRoot) {
|
|
|
9003
9519
|
const lines = [];
|
|
9004
9520
|
for (const d3 of deprecated) {
|
|
9005
9521
|
lines.push(` ${d3.name} \u2014 ${d3.message}`);
|
|
9006
|
-
const locs = d3.locations.map((
|
|
9007
|
-
const rel = appRoot ? getRelativePathBetween(appRoot,
|
|
9008
|
-
return `${rel} (${
|
|
9522
|
+
const locs = d3.locations.map((l) => {
|
|
9523
|
+
const rel = appRoot ? getRelativePathBetween(appRoot, l.file) : l.file;
|
|
9524
|
+
return `${rel} (${l.field})`;
|
|
9009
9525
|
});
|
|
9010
9526
|
lines.push(` Found in: ${locs.join(", ")}`);
|
|
9011
9527
|
}
|
|
@@ -9107,7 +9623,7 @@ function runBunInstall(appRoot) {
|
|
|
9107
9623
|
}
|
|
9108
9624
|
async function main(options = {}) {
|
|
9109
9625
|
const { dryRun } = options;
|
|
9110
|
-
|
|
9626
|
+
mt("Bump \u2014 Update packages and sync project");
|
|
9111
9627
|
if (dryRun) log.info("DRY RUN MODE \u2014 no files will be modified");
|
|
9112
9628
|
const appRoot = getAppRoot();
|
|
9113
9629
|
if (!appRoot) {
|
|
@@ -9164,7 +9680,7 @@ async function main(options = {}) {
|
|
|
9164
9680
|
if (files.length === 0) {
|
|
9165
9681
|
log.warn("No package.json files found");
|
|
9166
9682
|
} else {
|
|
9167
|
-
const s =
|
|
9683
|
+
const s = fe();
|
|
9168
9684
|
s.start(`Scanning ${files.length} package.json file(s)...`);
|
|
9169
9685
|
const { frameworkPkgs, externalDeps, packageOccurrences } = detectProjectDeps(files);
|
|
9170
9686
|
s.message("Querying npm registry...");
|
|
@@ -9242,25 +9758,25 @@ async function main(options = {}) {
|
|
|
9242
9758
|
log.success("All packages up to date!");
|
|
9243
9759
|
} else {
|
|
9244
9760
|
if (frameworkUpdates.length > 0) {
|
|
9245
|
-
|
|
9761
|
+
wt(
|
|
9246
9762
|
formatUpdateTable(frameworkUpdates, appRoot),
|
|
9247
9763
|
`@donotdev/* updates (${new Set(frameworkUpdates.map((u2) => u2.pkg)).size})`
|
|
9248
9764
|
);
|
|
9249
9765
|
}
|
|
9250
9766
|
if (deprecatedPkgs.length > 0) {
|
|
9251
|
-
|
|
9767
|
+
wt(
|
|
9252
9768
|
formatDeprecatedList(deprecatedPkgs, appRoot),
|
|
9253
9769
|
`Deprecated packages (${deprecatedPkgs.length})`
|
|
9254
9770
|
);
|
|
9255
9771
|
}
|
|
9256
9772
|
if (externalMinorUpdates.length > 0) {
|
|
9257
|
-
|
|
9773
|
+
wt(
|
|
9258
9774
|
formatUpdateTable(externalMinorUpdates, appRoot),
|
|
9259
9775
|
`External dep updates (${new Set(externalMinorUpdates.map((u2) => u2.pkg)).size})`
|
|
9260
9776
|
);
|
|
9261
9777
|
}
|
|
9262
9778
|
if (majorUpdates.length > 0) {
|
|
9263
|
-
|
|
9779
|
+
wt(
|
|
9264
9780
|
formatUpdateTable(majorUpdates, appRoot),
|
|
9265
9781
|
`MAJOR updates (${new Set(majorUpdates.map((u2) => u2.pkg)).size})`
|
|
9266
9782
|
);
|
|
@@ -9347,13 +9863,13 @@ async function main(options = {}) {
|
|
|
9347
9863
|
}
|
|
9348
9864
|
}
|
|
9349
9865
|
}
|
|
9350
|
-
|
|
9866
|
+
wt(summary.map((s2) => ` ${s2}`).join("\n"), "Done");
|
|
9351
9867
|
const shouldInstall = await askForConfirmation(
|
|
9352
9868
|
"Run bun install now?",
|
|
9353
9869
|
true
|
|
9354
9870
|
);
|
|
9355
9871
|
if (shouldInstall) {
|
|
9356
|
-
const installSpinner =
|
|
9872
|
+
const installSpinner = fe();
|
|
9357
9873
|
installSpinner.start("Running bun install...");
|
|
9358
9874
|
const ok = runBunInstall(appRoot);
|
|
9359
9875
|
if (ok) {
|
|
@@ -9403,7 +9919,7 @@ async function main(options = {}) {
|
|
|
9403
9919
|
log.info(`Preserved ${result.preserved} customized file(s)`);
|
|
9404
9920
|
}
|
|
9405
9921
|
}
|
|
9406
|
-
|
|
9922
|
+
gt("");
|
|
9407
9923
|
return 0;
|
|
9408
9924
|
}
|
|
9409
9925
|
export {
|