@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
package/dist/bin/commands/emu.js
CHANGED
|
@@ -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,407 +496,215 @@ var require_src = __commonJS({
|
|
|
90
496
|
}
|
|
91
497
|
});
|
|
92
498
|
|
|
93
|
-
// node_modules/.bun
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
let string = "" + input, index = string.indexOf(close, open.length);
|
|
103
|
-
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
104
|
-
};
|
|
105
|
-
var replaceClose = (string, close, replace, index) => {
|
|
106
|
-
let result = "", cursor = 0;
|
|
107
|
-
do {
|
|
108
|
-
result += string.substring(cursor, index) + replace;
|
|
109
|
-
cursor = index + close.length;
|
|
110
|
-
index = string.indexOf(close, cursor);
|
|
111
|
-
} while (~index);
|
|
112
|
-
return result + string.substring(cursor);
|
|
113
|
-
};
|
|
114
|
-
var createColors = (enabled = isColorSupported) => {
|
|
115
|
-
let f = enabled ? formatter : () => String;
|
|
116
|
-
return {
|
|
117
|
-
isColorSupported: enabled,
|
|
118
|
-
reset: f("\x1B[0m", "\x1B[0m"),
|
|
119
|
-
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
120
|
-
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
121
|
-
italic: f("\x1B[3m", "\x1B[23m"),
|
|
122
|
-
underline: f("\x1B[4m", "\x1B[24m"),
|
|
123
|
-
inverse: f("\x1B[7m", "\x1B[27m"),
|
|
124
|
-
hidden: f("\x1B[8m", "\x1B[28m"),
|
|
125
|
-
strikethrough: f("\x1B[9m", "\x1B[29m"),
|
|
126
|
-
black: f("\x1B[30m", "\x1B[39m"),
|
|
127
|
-
red: f("\x1B[31m", "\x1B[39m"),
|
|
128
|
-
green: f("\x1B[32m", "\x1B[39m"),
|
|
129
|
-
yellow: f("\x1B[33m", "\x1B[39m"),
|
|
130
|
-
blue: f("\x1B[34m", "\x1B[39m"),
|
|
131
|
-
magenta: f("\x1B[35m", "\x1B[39m"),
|
|
132
|
-
cyan: f("\x1B[36m", "\x1B[39m"),
|
|
133
|
-
white: f("\x1B[37m", "\x1B[39m"),
|
|
134
|
-
gray: f("\x1B[90m", "\x1B[39m"),
|
|
135
|
-
bgBlack: f("\x1B[40m", "\x1B[49m"),
|
|
136
|
-
bgRed: f("\x1B[41m", "\x1B[49m"),
|
|
137
|
-
bgGreen: f("\x1B[42m", "\x1B[49m"),
|
|
138
|
-
bgYellow: f("\x1B[43m", "\x1B[49m"),
|
|
139
|
-
bgBlue: f("\x1B[44m", "\x1B[49m"),
|
|
140
|
-
bgMagenta: f("\x1B[45m", "\x1B[49m"),
|
|
141
|
-
bgCyan: f("\x1B[46m", "\x1B[49m"),
|
|
142
|
-
bgWhite: f("\x1B[47m", "\x1B[49m"),
|
|
143
|
-
blackBright: f("\x1B[90m", "\x1B[39m"),
|
|
144
|
-
redBright: f("\x1B[91m", "\x1B[39m"),
|
|
145
|
-
greenBright: f("\x1B[92m", "\x1B[39m"),
|
|
146
|
-
yellowBright: f("\x1B[93m", "\x1B[39m"),
|
|
147
|
-
blueBright: f("\x1B[94m", "\x1B[39m"),
|
|
148
|
-
magentaBright: f("\x1B[95m", "\x1B[39m"),
|
|
149
|
-
cyanBright: f("\x1B[96m", "\x1B[39m"),
|
|
150
|
-
whiteBright: f("\x1B[97m", "\x1B[39m"),
|
|
151
|
-
bgBlackBright: f("\x1B[100m", "\x1B[49m"),
|
|
152
|
-
bgRedBright: f("\x1B[101m", "\x1B[49m"),
|
|
153
|
-
bgGreenBright: f("\x1B[102m", "\x1B[49m"),
|
|
154
|
-
bgYellowBright: f("\x1B[103m", "\x1B[49m"),
|
|
155
|
-
bgBlueBright: f("\x1B[104m", "\x1B[49m"),
|
|
156
|
-
bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
|
|
157
|
-
bgCyanBright: f("\x1B[106m", "\x1B[49m"),
|
|
158
|
-
bgWhiteBright: f("\x1B[107m", "\x1B[49m")
|
|
159
|
-
};
|
|
160
|
-
};
|
|
161
|
-
module.exports = createColors();
|
|
162
|
-
module.exports.createColors = createColors;
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
|
|
166
|
-
// node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
|
|
167
|
-
import { stdin as j, stdout as M } from "node:process";
|
|
168
|
-
import O from "node:readline";
|
|
169
|
-
import { Writable as X } from "node:stream";
|
|
170
|
-
function DD({ onlyFirst: e2 = false } = {}) {
|
|
171
|
-
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("|");
|
|
172
|
-
return new RegExp(t, e2 ? void 0 : "g");
|
|
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 P from "node:readline";
|
|
503
|
+
import { ReadStream as D } from "node:tty";
|
|
504
|
+
function d(r, t2, e) {
|
|
505
|
+
if (!e.some((o) => !o.disabled)) return r;
|
|
506
|
+
const s = r + t2, i = Math.max(e.length - 1, 0), n = s < 0 ? i : s > i ? 0 : s;
|
|
507
|
+
return e[n].disabled ? d(n, t2 < 0 ? -1 : 1, e) : n;
|
|
173
508
|
}
|
|
174
|
-
function
|
|
175
|
-
if (typeof
|
|
176
|
-
|
|
509
|
+
function V(r, t2) {
|
|
510
|
+
if (typeof r == "string") return u.aliases.get(r) === t2;
|
|
511
|
+
for (const e of r) if (e !== void 0 && V(e, t2)) return true;
|
|
512
|
+
return false;
|
|
177
513
|
}
|
|
178
|
-
function
|
|
179
|
-
|
|
514
|
+
function j(r, t2) {
|
|
515
|
+
if (r === t2) return;
|
|
516
|
+
const e = r.split(`
|
|
517
|
+
`), s = t2.split(`
|
|
518
|
+
`), i = Math.max(e.length, s.length), n = [];
|
|
519
|
+
for (let o = 0; o < i; o++) e[o] !== s[o] && n.push(o);
|
|
520
|
+
return { lines: n, numLinesBefore: e.length, numLinesAfter: s.length, numLines: i };
|
|
180
521
|
}
|
|
181
|
-
function
|
|
182
|
-
|
|
183
|
-
e2 = e2.replace(sD(), " ");
|
|
184
|
-
const t = u2.ambiguousIsNarrow ? 1 : 2;
|
|
185
|
-
let F2 = 0;
|
|
186
|
-
for (const s of e2) {
|
|
187
|
-
const i = s.codePointAt(0);
|
|
188
|
-
if (i <= 31 || i >= 127 && i <= 159 || i >= 768 && i <= 879) continue;
|
|
189
|
-
switch (eD.eastAsianWidth(s)) {
|
|
190
|
-
case "F":
|
|
191
|
-
case "W":
|
|
192
|
-
F2 += 2;
|
|
193
|
-
break;
|
|
194
|
-
case "A":
|
|
195
|
-
F2 += t;
|
|
196
|
-
break;
|
|
197
|
-
default:
|
|
198
|
-
F2 += 1;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
return F2;
|
|
522
|
+
function q(r) {
|
|
523
|
+
return r === C;
|
|
202
524
|
}
|
|
203
|
-
function
|
|
204
|
-
const
|
|
205
|
-
|
|
206
|
-
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]);
|
|
207
|
-
Object.defineProperty(r, u2, { value: t, enumerable: false });
|
|
208
|
-
}
|
|
209
|
-
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) => {
|
|
210
|
-
const t = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u2.toString(16));
|
|
211
|
-
if (!t) return [0, 0, 0];
|
|
212
|
-
let [F2] = t;
|
|
213
|
-
F2.length === 3 && (F2 = [...F2].map((i) => i + i).join(""));
|
|
214
|
-
const s = Number.parseInt(F2, 16);
|
|
215
|
-
return [s >> 16 & 255, s >> 8 & 255, s & 255];
|
|
216
|
-
}, enumerable: false }, hexToAnsi256: { value: (u2) => r.rgbToAnsi256(...r.hexToRgb(u2)), enumerable: false }, ansi256ToAnsi: { value: (u2) => {
|
|
217
|
-
if (u2 < 8) return 30 + u2;
|
|
218
|
-
if (u2 < 16) return 90 + (u2 - 8);
|
|
219
|
-
let t, F2, s;
|
|
220
|
-
if (u2 >= 232) t = ((u2 - 232) * 10 + 8) / 255, F2 = t, s = t;
|
|
221
|
-
else {
|
|
222
|
-
u2 -= 16;
|
|
223
|
-
const C2 = u2 % 36;
|
|
224
|
-
t = Math.floor(u2 / 36) / 5, F2 = Math.floor(C2 / 6) / 5, s = C2 % 6 / 5;
|
|
225
|
-
}
|
|
226
|
-
const i = Math.max(t, F2, s) * 2;
|
|
227
|
-
if (i === 0) return 30;
|
|
228
|
-
let D2 = 30 + (Math.round(s) << 2 | Math.round(F2) << 1 | Math.round(t));
|
|
229
|
-
return i === 2 && (D2 += 60), D2;
|
|
230
|
-
}, 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;
|
|
525
|
+
function w(r, t2) {
|
|
526
|
+
const e = r;
|
|
527
|
+
e.isTTY && e.setRawMode(t2);
|
|
231
528
|
}
|
|
232
|
-
function
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
`).map((
|
|
529
|
+
function R(r, t2, e, s = e) {
|
|
530
|
+
const i = O(r ?? S);
|
|
531
|
+
return wrapAnsi(t2, i - e.length, { hard: true, trim: false }).split(`
|
|
532
|
+
`).map((n, o) => `${o === 0 ? s : e}${n}`).join(`
|
|
236
533
|
`);
|
|
237
534
|
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
function BD(e2, u2) {
|
|
244
|
-
if (e2 === u2) return;
|
|
245
|
-
const t = e2.split(`
|
|
246
|
-
`), F2 = u2.split(`
|
|
247
|
-
`), s = [];
|
|
248
|
-
for (let i = 0; i < Math.max(t.length, F2.length); i++) t[i] !== F2[i] && s.push(i);
|
|
249
|
-
return s;
|
|
250
|
-
}
|
|
251
|
-
function pD(e2) {
|
|
252
|
-
return e2 === S;
|
|
253
|
-
}
|
|
254
|
-
function m(e2, u2) {
|
|
255
|
-
const t = e2;
|
|
256
|
-
t.isTTY && t.setRawMode(u2);
|
|
257
|
-
}
|
|
258
|
-
var import_sisteransi, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, d, oD, y, V, nD, G, _, z, K, aD, k, hD, lD, xD, B, AD, S, gD, vD, h, x, A, kD, $D, H, SD, OD, PD, J, LD;
|
|
259
|
-
var init_dist = __esm({
|
|
260
|
-
"node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
|
|
261
|
-
init_utils();
|
|
535
|
+
var import_sisteransi, E, G, u, Y, C, O, A, p, it, nt;
|
|
536
|
+
var init_dist3 = __esm({
|
|
537
|
+
"node_modules/.bun/@clack+core@1.2.0/node_modules/@clack/core/dist/index.mjs"() {
|
|
538
|
+
init_utils2();
|
|
539
|
+
init_main();
|
|
262
540
|
import_sisteransi = __toESM(require_src(), 1);
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
(
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
return D2;
|
|
289
|
-
};
|
|
290
|
-
})(W);
|
|
291
|
-
tD = W.exports;
|
|
292
|
-
eD = L(tD);
|
|
293
|
-
FD = function() {
|
|
294
|
-
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;
|
|
295
|
-
};
|
|
296
|
-
sD = L(FD);
|
|
297
|
-
w = 10;
|
|
298
|
-
N = (e2 = 0) => (u2) => `\x1B[${u2 + e2}m`;
|
|
299
|
-
I = (e2 = 0) => (u2) => `\x1B[${38 + e2};5;${u2}m`;
|
|
300
|
-
R = (e2 = 0) => (u2, t, F2) => `\x1B[${38 + e2};2;${u2};${t};${F2}m`;
|
|
301
|
-
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] } };
|
|
302
|
-
Object.keys(r.modifier);
|
|
303
|
-
iD = Object.keys(r.color);
|
|
304
|
-
CD = Object.keys(r.bgColor);
|
|
305
|
-
[...iD, ...CD];
|
|
306
|
-
ED = rD();
|
|
307
|
-
d = /* @__PURE__ */ new Set(["\x1B", "\x9B"]);
|
|
308
|
-
oD = 39;
|
|
309
|
-
y = "\x07";
|
|
310
|
-
V = "[";
|
|
311
|
-
nD = "]";
|
|
312
|
-
G = "m";
|
|
313
|
-
_ = `${nD}8;;`;
|
|
314
|
-
z = (e2) => `${d.values().next().value}${V}${e2}${G}`;
|
|
315
|
-
K = (e2) => `${d.values().next().value}${_}${e2}${y}`;
|
|
316
|
-
aD = (e2) => e2.split(" ").map((u2) => p(u2));
|
|
317
|
-
k = (e2, u2, t) => {
|
|
318
|
-
const F2 = [...u2];
|
|
319
|
-
let s = false, i = false, D2 = p(P(e2[e2.length - 1]));
|
|
320
|
-
for (const [C2, n] of F2.entries()) {
|
|
321
|
-
const E = p(n);
|
|
322
|
-
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) {
|
|
323
|
-
i ? n === y && (s = false, i = false) : n === G && (s = false);
|
|
324
|
-
continue;
|
|
325
|
-
}
|
|
326
|
-
D2 += E, D2 === t && C2 < F2.length - 1 && (e2.push(""), D2 = 0);
|
|
327
|
-
}
|
|
328
|
-
!D2 && e2[e2.length - 1].length > 0 && e2.length > 1 && (e2[e2.length - 2] += e2.pop());
|
|
329
|
-
};
|
|
330
|
-
hD = (e2) => {
|
|
331
|
-
const u2 = e2.split(" ");
|
|
332
|
-
let t = u2.length;
|
|
333
|
-
for (; t > 0 && !(p(u2[t - 1]) > 0); ) t--;
|
|
334
|
-
return t === u2.length ? e2 : u2.slice(0, t).join(" ") + u2.slice(t).join("");
|
|
335
|
-
};
|
|
336
|
-
lD = (e2, u2, t = {}) => {
|
|
337
|
-
if (t.trim !== false && e2.trim() === "") return "";
|
|
338
|
-
let F2 = "", s, i;
|
|
339
|
-
const D2 = aD(e2);
|
|
340
|
-
let C2 = [""];
|
|
341
|
-
for (const [E, a] of e2.split(" ").entries()) {
|
|
342
|
-
t.trim !== false && (C2[C2.length - 1] = C2[C2.length - 1].trimStart());
|
|
343
|
-
let o2 = p(C2[C2.length - 1]);
|
|
344
|
-
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) {
|
|
345
|
-
const c = u2 - o2, f = 1 + Math.floor((D2[E] - c - 1) / u2);
|
|
346
|
-
Math.floor((D2[E] - 1) / u2) < f && C2.push(""), k(C2, a, u2);
|
|
347
|
-
continue;
|
|
348
|
-
}
|
|
349
|
-
if (o2 + D2[E] > u2 && o2 > 0 && D2[E] > 0) {
|
|
350
|
-
if (t.wordWrap === false && o2 < u2) {
|
|
351
|
-
k(C2, a, u2);
|
|
352
|
-
continue;
|
|
353
|
-
}
|
|
354
|
-
C2.push("");
|
|
355
|
-
}
|
|
356
|
-
if (o2 + D2[E] > u2 && t.wordWrap === false) {
|
|
357
|
-
k(C2, a, u2);
|
|
358
|
-
continue;
|
|
359
|
-
}
|
|
360
|
-
C2[C2.length - 1] += a;
|
|
361
|
-
}
|
|
362
|
-
t.trim !== false && (C2 = C2.map((E) => hD(E)));
|
|
363
|
-
const n = [...C2.join(`
|
|
364
|
-
`)];
|
|
365
|
-
for (const [E, a] of n.entries()) {
|
|
366
|
-
if (F2 += a, d.has(a)) {
|
|
367
|
-
const { groups: c } = new RegExp(`(?:\\${V}(?<code>\\d+)m|\\${_}(?<uri>.*)${y})`).exec(n.slice(E).join("")) || { groups: {} };
|
|
368
|
-
if (c.code !== void 0) {
|
|
369
|
-
const f = Number.parseFloat(c.code);
|
|
370
|
-
s = f === oD ? void 0 : f;
|
|
371
|
-
} else c.uri !== void 0 && (i = c.uri.length === 0 ? void 0 : c.uri);
|
|
372
|
-
}
|
|
373
|
-
const o2 = ED.codes.get(Number(s));
|
|
374
|
-
n[E + 1] === `
|
|
375
|
-
` ? (i && (F2 += K("")), s && o2 && (F2 += z(o2))) : a === `
|
|
376
|
-
` && (s && o2 && (F2 += z(s)), i && (F2 += K(i)));
|
|
377
|
-
}
|
|
378
|
-
return F2;
|
|
379
|
-
};
|
|
380
|
-
xD = ["up", "down", "left", "right", "space", "enter", "cancel"];
|
|
381
|
-
B = { actions: new Set(xD), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]) };
|
|
382
|
-
AD = globalThis.process.platform.startsWith("win");
|
|
383
|
-
S = /* @__PURE__ */ Symbol("clack:cancel");
|
|
384
|
-
gD = Object.defineProperty;
|
|
385
|
-
vD = (e2, u2, t) => u2 in e2 ? gD(e2, u2, { enumerable: true, configurable: true, writable: true, value: t }) : e2[u2] = t;
|
|
386
|
-
h = (e2, u2, t) => (vD(e2, typeof u2 != "symbol" ? u2 + "" : u2, t), t);
|
|
387
|
-
x = class {
|
|
388
|
-
constructor(u2, t = true) {
|
|
389
|
-
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");
|
|
390
|
-
const { input: F2 = j, output: s = M, render: i, signal: D2, ...C2 } = u2;
|
|
391
|
-
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;
|
|
541
|
+
E = ["up", "down", "left", "right", "space", "enter", "cancel"];
|
|
542
|
+
G = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
543
|
+
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)}` } } };
|
|
544
|
+
Y = globalThis.process.platform.startsWith("win");
|
|
545
|
+
C = /* @__PURE__ */ Symbol("clack:cancel");
|
|
546
|
+
O = (r) => "columns" in r && typeof r.columns == "number" ? r.columns : 80;
|
|
547
|
+
A = (r) => "rows" in r && typeof r.rows == "number" ? r.rows : 20;
|
|
548
|
+
p = class {
|
|
549
|
+
input;
|
|
550
|
+
output;
|
|
551
|
+
_abortSignal;
|
|
552
|
+
rl;
|
|
553
|
+
opts;
|
|
554
|
+
_render;
|
|
555
|
+
_track = false;
|
|
556
|
+
_prevFrame = "";
|
|
557
|
+
_subscribers = /* @__PURE__ */ new Map();
|
|
558
|
+
_cursor = 0;
|
|
559
|
+
state = "initial";
|
|
560
|
+
error = "";
|
|
561
|
+
value;
|
|
562
|
+
userInput = "";
|
|
563
|
+
constructor(t2, e = true) {
|
|
564
|
+
const { input: s = $, output: i = S, render: n, signal: o, ...a } = t2;
|
|
565
|
+
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;
|
|
392
566
|
}
|
|
393
567
|
unsubscribe() {
|
|
394
568
|
this._subscribers.clear();
|
|
395
569
|
}
|
|
396
|
-
setSubscriber(
|
|
397
|
-
const
|
|
398
|
-
|
|
570
|
+
setSubscriber(t2, e) {
|
|
571
|
+
const s = this._subscribers.get(t2) ?? [];
|
|
572
|
+
s.push(e), this._subscribers.set(t2, s);
|
|
399
573
|
}
|
|
400
|
-
on(
|
|
401
|
-
this.setSubscriber(
|
|
574
|
+
on(t2, e) {
|
|
575
|
+
this.setSubscriber(t2, { cb: e });
|
|
402
576
|
}
|
|
403
|
-
once(
|
|
404
|
-
this.setSubscriber(
|
|
577
|
+
once(t2, e) {
|
|
578
|
+
this.setSubscriber(t2, { cb: e, once: true });
|
|
405
579
|
}
|
|
406
|
-
emit(
|
|
407
|
-
const
|
|
408
|
-
for (const
|
|
409
|
-
for (const
|
|
580
|
+
emit(t2, ...e) {
|
|
581
|
+
const s = this._subscribers.get(t2) ?? [], i = [];
|
|
582
|
+
for (const n of s) n.cb(...e), n.once && i.push(() => s.splice(s.indexOf(n), 1));
|
|
583
|
+
for (const n of i) n();
|
|
410
584
|
}
|
|
411
585
|
prompt() {
|
|
412
|
-
return new Promise((
|
|
586
|
+
return new Promise((t2) => {
|
|
413
587
|
if (this._abortSignal) {
|
|
414
|
-
if (this._abortSignal.aborted) return this.state = "cancel", this.close(),
|
|
588
|
+
if (this._abortSignal.aborted) return this.state = "cancel", this.close(), t2(C);
|
|
415
589
|
this._abortSignal.addEventListener("abort", () => {
|
|
416
590
|
this.state = "cancel", this.close();
|
|
417
591
|
}, { once: true });
|
|
418
592
|
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D2();
|
|
422
|
-
}, 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", () => {
|
|
423
|
-
this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), m(this.input, false), u2(this.value);
|
|
593
|
+
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", () => {
|
|
594
|
+
this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), w(this.input, false), t2(this.value);
|
|
424
595
|
}), this.once("cancel", () => {
|
|
425
|
-
this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render),
|
|
596
|
+
this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), w(this.input, false), t2(C);
|
|
426
597
|
});
|
|
427
598
|
});
|
|
428
599
|
}
|
|
429
|
-
|
|
430
|
-
|
|
600
|
+
_isActionKey(t2, e) {
|
|
601
|
+
return t2 === " ";
|
|
602
|
+
}
|
|
603
|
+
_setValue(t2) {
|
|
604
|
+
this.value = t2, this.emit("value", this.value);
|
|
605
|
+
}
|
|
606
|
+
_setUserInput(t2, e) {
|
|
607
|
+
this.userInput = t2 ?? "", this.emit("userInput", this.userInput), e && this._track && this.rl && (this.rl.write(this.userInput), this._cursor = this.rl.cursor);
|
|
608
|
+
}
|
|
609
|
+
_clearUserInput() {
|
|
610
|
+
this.rl?.write(null, { ctrl: true, name: "u" }), this._setUserInput("");
|
|
611
|
+
}
|
|
612
|
+
onKeypress(t2, e) {
|
|
613
|
+
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") {
|
|
431
614
|
if (this.opts.validate) {
|
|
432
|
-
const
|
|
433
|
-
|
|
615
|
+
const s = this.opts.validate(this.value);
|
|
616
|
+
s && (this.error = s instanceof Error ? s.message : s, this.state = "error", this.rl?.write(this.userInput));
|
|
434
617
|
}
|
|
435
618
|
this.state !== "error" && (this.state = "submit");
|
|
436
619
|
}
|
|
437
|
-
|
|
620
|
+
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();
|
|
438
621
|
}
|
|
439
622
|
close() {
|
|
440
623
|
this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
|
|
441
|
-
`),
|
|
624
|
+
`), w(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
|
|
442
625
|
}
|
|
443
626
|
restoreCursor() {
|
|
444
|
-
const
|
|
627
|
+
const t2 = wrapAnsi(this._prevFrame, process.stdout.columns, { hard: true, trim: false }).split(`
|
|
445
628
|
`).length - 1;
|
|
446
|
-
this.output.write(import_sisteransi.cursor.move(-999,
|
|
629
|
+
this.output.write(import_sisteransi.cursor.move(-999, t2 * -1));
|
|
447
630
|
}
|
|
448
631
|
render() {
|
|
449
|
-
const
|
|
450
|
-
if (
|
|
632
|
+
const t2 = wrapAnsi(this._render(this) ?? "", process.stdout.columns, { hard: true, trim: false });
|
|
633
|
+
if (t2 !== this._prevFrame) {
|
|
451
634
|
if (this.state === "initial") this.output.write(import_sisteransi.cursor.hide);
|
|
452
635
|
else {
|
|
453
|
-
const
|
|
454
|
-
if (this.restoreCursor(),
|
|
455
|
-
const
|
|
456
|
-
|
|
457
|
-
|
|
636
|
+
const e = j(this._prevFrame, t2), s = A(this.output);
|
|
637
|
+
if (this.restoreCursor(), e) {
|
|
638
|
+
const i = Math.max(0, e.numLinesAfter - s), n = Math.max(0, e.numLinesBefore - s);
|
|
639
|
+
let o = e.lines.find((a) => a >= i);
|
|
640
|
+
if (o === void 0) {
|
|
641
|
+
this._prevFrame = t2;
|
|
642
|
+
return;
|
|
643
|
+
}
|
|
644
|
+
if (e.lines.length === 1) {
|
|
645
|
+
this.output.write(import_sisteransi.cursor.move(0, o - n)), this.output.write(import_sisteransi.erase.lines(1));
|
|
646
|
+
const a = t2.split(`
|
|
458
647
|
`);
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
648
|
+
this.output.write(a[o]), this._prevFrame = t2, this.output.write(import_sisteransi.cursor.move(0, a.length - o - 1));
|
|
649
|
+
return;
|
|
650
|
+
} else if (e.lines.length > 1) {
|
|
651
|
+
if (i < n) o = i;
|
|
652
|
+
else {
|
|
653
|
+
const h = o - n;
|
|
654
|
+
h > 0 && this.output.write(import_sisteransi.cursor.move(0, h));
|
|
655
|
+
}
|
|
656
|
+
this.output.write(import_sisteransi.erase.down());
|
|
657
|
+
const a = t2.split(`
|
|
658
|
+
`).slice(o);
|
|
659
|
+
this.output.write(a.join(`
|
|
660
|
+
`)), this._prevFrame = t2;
|
|
661
|
+
return;
|
|
662
|
+
}
|
|
470
663
|
}
|
|
471
664
|
this.output.write(import_sisteransi.erase.down());
|
|
472
665
|
}
|
|
473
|
-
this.output.write(
|
|
666
|
+
this.output.write(t2), this.state === "initial" && (this.state = "active"), this._prevFrame = t2;
|
|
474
667
|
}
|
|
475
668
|
}
|
|
476
669
|
};
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
670
|
+
it = class extends p {
|
|
671
|
+
options;
|
|
672
|
+
cursor = 0;
|
|
673
|
+
get _value() {
|
|
674
|
+
return this.options[this.cursor].value;
|
|
675
|
+
}
|
|
676
|
+
get _enabledOptions() {
|
|
677
|
+
return this.options.filter((t2) => t2.disabled !== true);
|
|
678
|
+
}
|
|
679
|
+
toggleAll() {
|
|
680
|
+
const t2 = this._enabledOptions, e = this.value !== void 0 && this.value.length === t2.length;
|
|
681
|
+
this.value = e ? [] : t2.map((s) => s.value);
|
|
682
|
+
}
|
|
683
|
+
toggleInvert() {
|
|
684
|
+
const t2 = this.value;
|
|
685
|
+
if (!t2) return;
|
|
686
|
+
const e = this._enabledOptions.filter((s) => !t2.includes(s.value));
|
|
687
|
+
this.value = e.map((s) => s.value);
|
|
688
|
+
}
|
|
689
|
+
toggleValue() {
|
|
690
|
+
this.value === void 0 && (this.value = []);
|
|
691
|
+
const t2 = this.value.includes(this._value);
|
|
692
|
+
this.value = t2 ? this.value.filter((e) => e !== this._value) : [...this.value, this._value];
|
|
693
|
+
}
|
|
694
|
+
constructor(t2) {
|
|
695
|
+
super(t2, false), this.options = t2.options, this.value = [...t2.initialValues ?? []];
|
|
696
|
+
const e = Math.max(this.options.findIndex(({ value: s }) => s === t2.cursorAt), 0);
|
|
697
|
+
this.cursor = this.options[e].disabled ? d(e, 1, this.options) : e, this.on("key", (s) => {
|
|
698
|
+
s === "a" && this.toggleAll(), s === "i" && this.toggleInvert();
|
|
699
|
+
}), this.on("cursor", (s) => {
|
|
700
|
+
switch (s) {
|
|
487
701
|
case "left":
|
|
488
702
|
case "up":
|
|
489
|
-
this.cursor = this.cursor
|
|
703
|
+
this.cursor = d(this.cursor, -1, this.options);
|
|
490
704
|
break;
|
|
491
705
|
case "down":
|
|
492
706
|
case "right":
|
|
493
|
-
this.cursor = this.cursor
|
|
707
|
+
this.cursor = d(this.cursor, 1, this.options);
|
|
494
708
|
break;
|
|
495
709
|
case "space":
|
|
496
710
|
this.toggleValue();
|
|
@@ -498,208 +712,271 @@ var init_dist = __esm({
|
|
|
498
712
|
}
|
|
499
713
|
});
|
|
500
714
|
}
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
this.
|
|
715
|
+
};
|
|
716
|
+
nt = class extends p {
|
|
717
|
+
options;
|
|
718
|
+
cursor = 0;
|
|
719
|
+
get _selectedValue() {
|
|
720
|
+
return this.options[this.cursor];
|
|
507
721
|
}
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
this.value = u2 ? this.value.filter((t) => t !== this._value) : [...this.value, this._value];
|
|
722
|
+
changeValue() {
|
|
723
|
+
this.value = this._selectedValue.value;
|
|
511
724
|
}
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
constructor(u2) {
|
|
518
|
-
super(u2, false), J(this, "options"), J(this, "cursor", 0), this.options = u2.options, this.cursor = this.options.findIndex(({ value: t }) => t === u2.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (t) => {
|
|
519
|
-
switch (t) {
|
|
725
|
+
constructor(t2) {
|
|
726
|
+
super(t2, false), this.options = t2.options;
|
|
727
|
+
const e = this.options.findIndex(({ value: i }) => i === t2.initialValue), s = e === -1 ? 0 : e;
|
|
728
|
+
this.cursor = this.options[s].disabled ? d(s, 1, this.options) : s, this.changeValue(), this.on("cursor", (i) => {
|
|
729
|
+
switch (i) {
|
|
520
730
|
case "left":
|
|
521
731
|
case "up":
|
|
522
|
-
this.cursor = this.cursor
|
|
732
|
+
this.cursor = d(this.cursor, -1, this.options);
|
|
523
733
|
break;
|
|
524
734
|
case "down":
|
|
525
735
|
case "right":
|
|
526
|
-
this.cursor = this.cursor
|
|
736
|
+
this.cursor = d(this.cursor, 1, this.options);
|
|
527
737
|
break;
|
|
528
738
|
}
|
|
529
739
|
this.changeValue();
|
|
530
740
|
});
|
|
531
741
|
}
|
|
532
|
-
get _value() {
|
|
533
|
-
return this.options[this.cursor];
|
|
534
|
-
}
|
|
535
|
-
changeValue() {
|
|
536
|
-
this.value = this._value.value;
|
|
537
|
-
}
|
|
538
742
|
};
|
|
539
743
|
}
|
|
540
744
|
});
|
|
541
745
|
|
|
542
|
-
// node_modules/.bun/@clack+prompts@
|
|
543
|
-
import { stripVTControlCharacters as
|
|
544
|
-
import
|
|
545
|
-
|
|
546
|
-
|
|
746
|
+
// node_modules/.bun/@clack+prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs
|
|
747
|
+
import { styleText as t, stripVTControlCharacters as ne } from "node:util";
|
|
748
|
+
import P2 from "node:process";
|
|
749
|
+
import { existsSync as Xe, lstatSync as we, readdirSync as ze } from "node:fs";
|
|
750
|
+
import { dirname as be, join as Qe } from "node:path";
|
|
751
|
+
function Ze() {
|
|
752
|
+
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";
|
|
547
753
|
}
|
|
548
|
-
var
|
|
549
|
-
var
|
|
550
|
-
"node_modules/.bun/@clack+prompts@
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
754
|
+
var import_sisteransi2, ee, 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, O2, pt, Q2, yt, Ve, re, _t, je;
|
|
755
|
+
var init_dist4 = __esm({
|
|
756
|
+
"node_modules/.bun/@clack+prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs"() {
|
|
757
|
+
init_utils2();
|
|
758
|
+
init_dist3();
|
|
759
|
+
init_dist3();
|
|
760
|
+
init_main();
|
|
761
|
+
init_dist2();
|
|
555
762
|
import_sisteransi2 = __toESM(require_src(), 1);
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
763
|
+
ee = Ze();
|
|
764
|
+
w2 = (e, i) => ee ? e : i;
|
|
765
|
+
_e = w2("\u25C6", "*");
|
|
766
|
+
oe = w2("\u25A0", "x");
|
|
767
|
+
ue = w2("\u25B2", "x");
|
|
768
|
+
F = w2("\u25C7", "o");
|
|
769
|
+
le = w2("\u250C", "T");
|
|
770
|
+
d2 = w2("\u2502", "|");
|
|
771
|
+
E2 = w2("\u2514", "\u2014");
|
|
772
|
+
Ie = w2("\u2510", "T");
|
|
773
|
+
Ee = w2("\u2518", "\u2014");
|
|
774
|
+
z2 = w2("\u25CF", ">");
|
|
775
|
+
H2 = w2("\u25CB", " ");
|
|
776
|
+
te = w2("\u25FB", "[\u2022]");
|
|
777
|
+
U = w2("\u25FC", "[+]");
|
|
778
|
+
J = w2("\u25FB", "[ ]");
|
|
779
|
+
xe = w2("\u25AA", "\u2022");
|
|
780
|
+
se = w2("\u2500", "-");
|
|
781
|
+
ce = w2("\u256E", "+");
|
|
782
|
+
Ge = w2("\u251C", "+");
|
|
783
|
+
$e = w2("\u256F", "+");
|
|
784
|
+
de = w2("\u2570", "+");
|
|
785
|
+
Oe = w2("\u256D", "+");
|
|
786
|
+
he = w2("\u25CF", "\u2022");
|
|
787
|
+
pe = w2("\u25C6", "*");
|
|
788
|
+
me = w2("\u25B2", "!");
|
|
789
|
+
ge = w2("\u25A0", "x");
|
|
790
|
+
V2 = (e) => {
|
|
791
|
+
switch (e) {
|
|
581
792
|
case "initial":
|
|
582
793
|
case "active":
|
|
583
|
-
return
|
|
794
|
+
return t("cyan", _e);
|
|
584
795
|
case "cancel":
|
|
585
|
-
return
|
|
796
|
+
return t("red", oe);
|
|
586
797
|
case "error":
|
|
587
|
-
return
|
|
798
|
+
return t("yellow", ue);
|
|
588
799
|
case "submit":
|
|
589
|
-
return
|
|
800
|
+
return t("green", F);
|
|
590
801
|
}
|
|
591
802
|
};
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
803
|
+
ye = (e) => {
|
|
804
|
+
switch (e) {
|
|
805
|
+
case "initial":
|
|
806
|
+
case "active":
|
|
807
|
+
return t("cyan", d2);
|
|
808
|
+
case "cancel":
|
|
809
|
+
return t("red", d2);
|
|
810
|
+
case "error":
|
|
811
|
+
return t("yellow", d2);
|
|
812
|
+
case "submit":
|
|
813
|
+
return t("green", d2);
|
|
814
|
+
}
|
|
815
|
+
};
|
|
816
|
+
et2 = (e, i, s, r, u2) => {
|
|
817
|
+
let n = i, o = 0;
|
|
818
|
+
for (let c2 = s; c2 < r; c2++) {
|
|
819
|
+
const a = e[c2];
|
|
820
|
+
if (n = n - a.length, o++, n <= u2) break;
|
|
821
|
+
}
|
|
822
|
+
return { lineCount: n, removals: o };
|
|
823
|
+
};
|
|
824
|
+
Y2 = ({ cursor: e, options: i, style: s, output: r = process.stdout, maxItems: u2 = Number.POSITIVE_INFINITY, columnPadding: n = 0, rowPadding: o = 4 }) => {
|
|
825
|
+
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);
|
|
826
|
+
let p2 = 0;
|
|
827
|
+
e >= y2 - 3 && (p2 = Math.max(Math.min(e - y2 + 3, i.length - y2), 0));
|
|
828
|
+
let m = y2 < i.length && p2 > 0, g = y2 < i.length && p2 + y2 < i.length;
|
|
829
|
+
const S2 = Math.min(p2 + y2, i.length), h = [];
|
|
830
|
+
let f = 0;
|
|
831
|
+
m && f++, g && f++;
|
|
832
|
+
const v = p2 + (m ? 1 : 0), T = S2 - (g ? 1 : 0);
|
|
833
|
+
for (let b = v; b < T; b++) {
|
|
834
|
+
const x = wrapAnsi(s(i[b], b === e), c2, { hard: true, trim: false }).split(`
|
|
835
|
+
`);
|
|
836
|
+
h.push(x), f += x.length;
|
|
837
|
+
}
|
|
838
|
+
if (f > $2) {
|
|
839
|
+
let b = 0, x = 0, G2 = f;
|
|
840
|
+
const M2 = e - v, R2 = (j2, D2) => et2(h, G2, j2, D2, $2);
|
|
841
|
+
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));
|
|
842
|
+
}
|
|
843
|
+
const C2 = [];
|
|
844
|
+
m && C2.push(l);
|
|
845
|
+
for (const b of h) for (const x of b) C2.push(x);
|
|
846
|
+
return g && C2.push(l), C2;
|
|
847
|
+
};
|
|
848
|
+
O2 = { message: (e = [], { symbol: i = t("gray", d2), secondarySymbol: s = t("gray", d2), output: r = process.stdout, spacing: u2 = 1, withGuide: n } = {}) => {
|
|
849
|
+
const o = [], c2 = n ?? u.withGuide, a = c2 ? s : "", l = c2 ? `${i} ` : "", $2 = c2 ? `${s} ` : "";
|
|
850
|
+
for (let p2 = 0; p2 < u2; p2++) o.push(a);
|
|
851
|
+
const y2 = Array.isArray(e) ? e : e.split(`
|
|
852
|
+
`);
|
|
853
|
+
if (y2.length > 0) {
|
|
854
|
+
const [p2, ...m] = y2;
|
|
855
|
+
p2.length > 0 ? o.push(`${l}${p2}`) : o.push(c2 ? i : "");
|
|
856
|
+
for (const g of m) g.length > 0 ? o.push(`${$2}${g}`) : o.push(c2 ? s : "");
|
|
857
|
+
}
|
|
858
|
+
r.write(`${o.join(`
|
|
859
|
+
`)}
|
|
860
|
+
`);
|
|
861
|
+
}, info: (e, i) => {
|
|
862
|
+
O2.message(e, { ...i, symbol: t("blue", he) });
|
|
863
|
+
}, success: (e, i) => {
|
|
864
|
+
O2.message(e, { ...i, symbol: t("green", pe) });
|
|
865
|
+
}, step: (e, i) => {
|
|
866
|
+
O2.message(e, { ...i, symbol: t("green", F) });
|
|
867
|
+
}, warn: (e, i) => {
|
|
868
|
+
O2.message(e, { ...i, symbol: t("yellow", me) });
|
|
869
|
+
}, warning: (e, i) => {
|
|
870
|
+
O2.warn(e, i);
|
|
871
|
+
}, error: (e, i) => {
|
|
872
|
+
O2.message(e, { ...i, symbol: t("red", ge) });
|
|
873
|
+
} };
|
|
874
|
+
pt = (e = "", i) => {
|
|
875
|
+
const s = i?.output ?? process.stdout, r = i?.withGuide ?? u.withGuide ? `${t("gray", E2)} ` : "";
|
|
876
|
+
s.write(`${r}${t("red", e)}
|
|
877
|
+
|
|
878
|
+
`);
|
|
879
|
+
};
|
|
880
|
+
Q2 = (e, i) => e.split(`
|
|
881
|
+
`).map((s) => i(s)).join(`
|
|
882
|
+
`);
|
|
883
|
+
yt = (e) => {
|
|
884
|
+
const i = (r, u2) => {
|
|
885
|
+
const n = r.label ?? String(r.value);
|
|
886
|
+
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))}`;
|
|
887
|
+
}, s = e.required ?? true;
|
|
888
|
+
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) {
|
|
889
|
+
if (s && (r === void 0 || r.length === 0)) return `Please select at least one option.
|
|
890
|
+
${t("reset", t("dim", `Press ${t(["gray", "bgWhite", "inverse"], " space ")} to select, ${t("gray", t("bgWhite", t("inverse", " enter ")))} to submit`))}`;
|
|
891
|
+
}, render() {
|
|
892
|
+
const r = e.withGuide ?? u.withGuide, u2 = R(e.output, e.message, r ? `${ye(this.state)} ` : "", `${V2(this.state)} `), n = `${r ? `${t("gray", d2)}
|
|
893
|
+
` : ""}${u2}
|
|
894
|
+
`, o = this.value ?? [], c2 = (a, l) => {
|
|
895
|
+
if (a.disabled) return i(a, "disabled");
|
|
896
|
+
const $2 = o.includes(a.value);
|
|
897
|
+
return l && $2 ? i(a, "active-selected") : $2 ? i(a, "selected") : i(a, l ? "active" : "inactive");
|
|
898
|
+
};
|
|
899
|
+
switch (this.state) {
|
|
900
|
+
case "submit": {
|
|
901
|
+
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)} ` : "");
|
|
902
|
+
return `${n}${l}`;
|
|
903
|
+
}
|
|
904
|
+
case "cancel": {
|
|
905
|
+
const a = this.options.filter(({ value: $2 }) => o.includes($2)).map(($2) => i($2, "cancelled")).join(t("dim", ", "));
|
|
906
|
+
if (a.trim() === "") return `${n}${t("gray", d2)}`;
|
|
907
|
+
const l = R(e.output, a, r ? `${t("gray", d2)} ` : "");
|
|
908
|
+
return `${n}${l}${r ? `
|
|
909
|
+
${t("gray", d2)}` : ""}`;
|
|
910
|
+
}
|
|
911
|
+
case "error": {
|
|
912
|
+
const a = r ? `${t("yellow", d2)} ` : "", l = this.error.split(`
|
|
913
|
+
`).map((p2, m) => m === 0 ? `${r ? `${t("yellow", E2)} ` : ""}${t("yellow", p2)}` : ` ${p2}`).join(`
|
|
914
|
+
`), $2 = n.split(`
|
|
915
|
+
`).length, y2 = l.split(`
|
|
916
|
+
`).length + 1;
|
|
917
|
+
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(`
|
|
918
|
+
${a}`)}
|
|
919
|
+
${l}
|
|
920
|
+
`;
|
|
921
|
+
}
|
|
922
|
+
default: {
|
|
923
|
+
const a = r ? `${t("cyan", d2)} ` : "", l = n.split(`
|
|
924
|
+
`).length, $2 = r ? 2 : 1;
|
|
925
|
+
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(`
|
|
926
|
+
${a}`)}
|
|
927
|
+
${r ? t("cyan", E2) : ""}
|
|
928
|
+
`;
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
} }).prompt();
|
|
601
932
|
};
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
933
|
+
Ve = { light: w2("\u2500", "-"), heavy: w2("\u2501", "="), block: w2("\u2588", "#") };
|
|
934
|
+
re = (e, i) => e.includes(`
|
|
935
|
+
`) ? e.split(`
|
|
936
|
+
`).map((s) => i(s)).join(`
|
|
937
|
+
`) : i(e);
|
|
938
|
+
_t = (e) => {
|
|
939
|
+
const i = (s, r) => {
|
|
940
|
+
const u2 = s.label ?? String(s.value);
|
|
941
|
+
switch (r) {
|
|
942
|
+
case "disabled":
|
|
943
|
+
return `${t("gray", H2)} ${re(u2, (n) => t("gray", n))}${s.hint ? ` ${t("dim", `(${s.hint ?? "disabled"})`)}` : ""}`;
|
|
606
944
|
case "selected":
|
|
607
|
-
return `${
|
|
945
|
+
return `${re(u2, (n) => t("dim", n))}`;
|
|
608
946
|
case "active":
|
|
609
|
-
return `${
|
|
947
|
+
return `${t("green", z2)} ${u2}${s.hint ? ` ${t("dim", `(${s.hint})`)}` : ""}`;
|
|
610
948
|
case "cancelled":
|
|
611
|
-
return `${
|
|
949
|
+
return `${re(u2, (n) => t(["strikethrough", "dim"], n))}`;
|
|
612
950
|
default:
|
|
613
|
-
return `${
|
|
951
|
+
return `${t("dim", H2)} ${re(u2, (n) => t("dim", n))}`;
|
|
614
952
|
}
|
|
615
953
|
};
|
|
616
|
-
return new
|
|
617
|
-
const
|
|
618
|
-
|
|
954
|
+
return new nt({ options: e.options, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue, render() {
|
|
955
|
+
const s = e.withGuide ?? u.withGuide, r = `${V2(this.state)} `, u2 = `${ye(this.state)} `, n = R(e.output, e.message, u2, r), o = `${s ? `${t("gray", d2)}
|
|
956
|
+
` : ""}${n}
|
|
619
957
|
`;
|
|
620
958
|
switch (this.state) {
|
|
621
|
-
case "submit":
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
${import_picocolors.default.gray(o)}`;
|
|
626
|
-
default:
|
|
627
|
-
return `${r2}${import_picocolors.default.cyan(o)} ${G2({ cursor: this.cursor, options: this.options, maxItems: t.maxItems, style: (i, s) => n(i, s ? "active" : "inactive") }).join(`
|
|
628
|
-
${import_picocolors.default.cyan(o)} `)}
|
|
629
|
-
${import_picocolors.default.cyan(d2)}
|
|
630
|
-
`;
|
|
631
|
-
}
|
|
632
|
-
} }).prompt();
|
|
633
|
-
};
|
|
634
|
-
fe = (t) => {
|
|
635
|
-
const n = (r2, i) => {
|
|
636
|
-
const s = r2.label ?? String(r2.value);
|
|
637
|
-
return i === "active" ? `${import_picocolors.default.cyan(A2)} ${s} ${r2.hint ? import_picocolors.default.dim(`(${r2.hint})`) : ""}` : i === "selected" ? `${import_picocolors.default.green(T)} ${import_picocolors.default.dim(s)} ${r2.hint ? import_picocolors.default.dim(`(${r2.hint})`) : ""}` : i === "cancelled" ? `${import_picocolors.default.strikethrough(import_picocolors.default.dim(s))}` : i === "active-selected" ? `${import_picocolors.default.green(T)} ${s} ${r2.hint ? import_picocolors.default.dim(`(${r2.hint})`) : ""}` : i === "submitted" ? `${import_picocolors.default.dim(s)}` : `${import_picocolors.default.dim(F)} ${import_picocolors.default.dim(s)}`;
|
|
638
|
-
};
|
|
639
|
-
return new SD({ options: t.options, initialValues: t.initialValues, required: t.required ?? true, cursorAt: t.cursorAt, validate(r2) {
|
|
640
|
-
if (this.required && r2.length === 0) return `Please select at least one option.
|
|
641
|
-
${import_picocolors.default.reset(import_picocolors.default.dim(`Press ${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(" space ")))} to select, ${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(" enter ")))} to submit`))}`;
|
|
642
|
-
}, render() {
|
|
643
|
-
const r2 = `${import_picocolors.default.gray(o)}
|
|
644
|
-
${b2(this.state)} ${t.message}
|
|
645
|
-
`, i = (s, c) => {
|
|
646
|
-
const a = this.value.includes(s.value);
|
|
647
|
-
return c && a ? n(s, "active-selected") : a ? n(s, "selected") : n(s, c ? "active" : "inactive");
|
|
648
|
-
};
|
|
649
|
-
switch (this.state) {
|
|
650
|
-
case "submit":
|
|
651
|
-
return `${r2}${import_picocolors.default.gray(o)} ${this.options.filter(({ value: s }) => this.value.includes(s)).map((s) => n(s, "submitted")).join(import_picocolors.default.dim(", ")) || import_picocolors.default.dim("none")}`;
|
|
959
|
+
case "submit": {
|
|
960
|
+
const c2 = s ? `${t("gray", d2)} ` : "", a = R(e.output, i(this.options[this.cursor], "selected"), c2);
|
|
961
|
+
return `${o}${a}`;
|
|
962
|
+
}
|
|
652
963
|
case "cancel": {
|
|
653
|
-
const
|
|
654
|
-
return `${
|
|
655
|
-
${
|
|
964
|
+
const c2 = s ? `${t("gray", d2)} ` : "", a = R(e.output, i(this.options[this.cursor], "cancelled"), c2);
|
|
965
|
+
return `${o}${a}${s ? `
|
|
966
|
+
${t("gray", d2)}` : ""}`;
|
|
656
967
|
}
|
|
657
|
-
|
|
658
|
-
const s =
|
|
659
|
-
`).
|
|
660
|
-
`
|
|
661
|
-
|
|
662
|
-
${
|
|
663
|
-
${s}
|
|
968
|
+
default: {
|
|
969
|
+
const c2 = s ? `${t("cyan", d2)} ` : "", a = s ? t("cyan", E2) : "", l = o.split(`
|
|
970
|
+
`).length, $2 = s ? 2 : 1;
|
|
971
|
+
return `${o}${c2}${Y2({ output: e.output, cursor: this.cursor, options: this.options, maxItems: e.maxItems, columnPadding: c2.length, rowPadding: l + $2, style: (y2, p2) => i(y2, y2.disabled ? "disabled" : p2 ? "active" : "inactive") }).join(`
|
|
972
|
+
${c2}`)}
|
|
973
|
+
${a}
|
|
664
974
|
`;
|
|
665
975
|
}
|
|
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
976
|
}
|
|
672
977
|
} }).prompt();
|
|
673
978
|
};
|
|
674
|
-
|
|
675
|
-
process.stdout.write(`${import_picocolors.default.gray(d2)} ${import_picocolors.default.red(t)}
|
|
676
|
-
|
|
677
|
-
`);
|
|
678
|
-
};
|
|
679
|
-
M2 = { message: (t = "", { symbol: n = import_picocolors.default.gray(o) } = {}) => {
|
|
680
|
-
const r2 = [`${import_picocolors.default.gray(o)}`];
|
|
681
|
-
if (t) {
|
|
682
|
-
const [i, ...s] = t.split(`
|
|
683
|
-
`);
|
|
684
|
-
r2.push(`${n} ${i}`, ...s.map((c) => `${import_picocolors.default.gray(o)} ${c}`));
|
|
685
|
-
}
|
|
686
|
-
process.stdout.write(`${r2.join(`
|
|
687
|
-
`)}
|
|
688
|
-
`);
|
|
689
|
-
}, info: (t) => {
|
|
690
|
-
M2.message(t, { symbol: import_picocolors.default.blue(q) });
|
|
691
|
-
}, success: (t) => {
|
|
692
|
-
M2.message(t, { symbol: import_picocolors.default.green(D) });
|
|
693
|
-
}, step: (t) => {
|
|
694
|
-
M2.message(t, { symbol: import_picocolors.default.green(C) });
|
|
695
|
-
}, warn: (t) => {
|
|
696
|
-
M2.message(t, { symbol: import_picocolors.default.yellow(U) });
|
|
697
|
-
}, warning: (t) => {
|
|
698
|
-
M2.warn(t);
|
|
699
|
-
}, error: (t) => {
|
|
700
|
-
M2.message(t, { symbol: import_picocolors.default.red(K2) });
|
|
701
|
-
} };
|
|
702
|
-
J2 = `${import_picocolors.default.gray(o)} `;
|
|
979
|
+
je = `${t("gray", d2)} `;
|
|
703
980
|
}
|
|
704
981
|
});
|
|
705
982
|
|
|
@@ -748,9 +1025,9 @@ var colors, currentLogLevel, log, error, warn, info, success;
|
|
|
748
1025
|
var init_cli_output = __esm({
|
|
749
1026
|
"packages/tooling/src/utils/cli-output.ts"() {
|
|
750
1027
|
"use strict";
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
1028
|
+
init_utils2();
|
|
1029
|
+
init_dist4();
|
|
1030
|
+
init_dist4();
|
|
754
1031
|
colors = {
|
|
755
1032
|
reset: "\x1B[0m",
|
|
756
1033
|
// Success (green)
|
|
@@ -785,7 +1062,7 @@ var init_cli_output = __esm({
|
|
|
785
1062
|
error(...args) {
|
|
786
1063
|
if (currentLogLevel < 0 /* Quiet */) return;
|
|
787
1064
|
const message = formatMessage(...args);
|
|
788
|
-
|
|
1065
|
+
O2.error(colorize(message, colors.brightRed));
|
|
789
1066
|
},
|
|
790
1067
|
/**
|
|
791
1068
|
* Logs a warning message (shows at Normal level and above)
|
|
@@ -794,7 +1071,7 @@ var init_cli_output = __esm({
|
|
|
794
1071
|
warn(...args) {
|
|
795
1072
|
if (currentLogLevel < 1 /* Normal */) return;
|
|
796
1073
|
const message = formatMessage(...args);
|
|
797
|
-
|
|
1074
|
+
O2.warn(colorize(message, colors.brightYellow));
|
|
798
1075
|
},
|
|
799
1076
|
/**
|
|
800
1077
|
* Logs an info message (shows at Normal level and above)
|
|
@@ -803,7 +1080,7 @@ var init_cli_output = __esm({
|
|
|
803
1080
|
info(...args) {
|
|
804
1081
|
if (currentLogLevel < 1 /* Normal */) return;
|
|
805
1082
|
const message = formatMessage(...args);
|
|
806
|
-
|
|
1083
|
+
O2.info(colorize(message, colors.brightCyan));
|
|
807
1084
|
},
|
|
808
1085
|
/**
|
|
809
1086
|
* Logs a success message (shows at Normal level and above)
|
|
@@ -812,7 +1089,7 @@ var init_cli_output = __esm({
|
|
|
812
1089
|
success(...args) {
|
|
813
1090
|
if (currentLogLevel < 1 /* Normal */) return;
|
|
814
1091
|
const message = formatMessage(...args);
|
|
815
|
-
|
|
1092
|
+
O2.success(colorize(message, colors.brightGreen));
|
|
816
1093
|
},
|
|
817
1094
|
/**
|
|
818
1095
|
* Logs a debug message (only shows at Verbose level and above)
|
|
@@ -821,7 +1098,7 @@ var init_cli_output = __esm({
|
|
|
821
1098
|
debug(...args) {
|
|
822
1099
|
if (currentLogLevel < 2 /* Verbose */) return;
|
|
823
1100
|
const timeStamp = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
|
|
824
|
-
|
|
1101
|
+
O2.message(
|
|
825
1102
|
colorize(
|
|
826
1103
|
`[${timeStamp}] \u{1F50D} DEBUG: ${formatMessage(...args)}`,
|
|
827
1104
|
colors.gray
|
|
@@ -835,7 +1112,7 @@ var init_cli_output = __esm({
|
|
|
835
1112
|
trace(...args) {
|
|
836
1113
|
if (currentLogLevel < 3 /* Debug */) return;
|
|
837
1114
|
const timeStamp = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
|
|
838
|
-
|
|
1115
|
+
O2.message(
|
|
839
1116
|
colorize(
|
|
840
1117
|
`[${timeStamp}] \u{1F52C} TRACE: ${formatMessage(...args)}`,
|
|
841
1118
|
colors.gray
|
|
@@ -855,7 +1132,7 @@ var DO_NOT_DEV_ERROR_CODES, DoNotDevError;
|
|
|
855
1132
|
var init_errors = __esm({
|
|
856
1133
|
"packages/tooling/src/utils/errors.ts"() {
|
|
857
1134
|
"use strict";
|
|
858
|
-
|
|
1135
|
+
init_utils2();
|
|
859
1136
|
DO_NOT_DEV_ERROR_CODES = {
|
|
860
1137
|
CONFIGURATION_ERROR: "configuration-error",
|
|
861
1138
|
CONFIG_NOT_FOUND: "config-not-found",
|
|
@@ -996,7 +1273,7 @@ var init_errors = __esm({
|
|
|
996
1273
|
var require_array = __commonJS({
|
|
997
1274
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
|
|
998
1275
|
"use strict";
|
|
999
|
-
|
|
1276
|
+
init_utils2();
|
|
1000
1277
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1001
1278
|
exports.splitWhen = exports.flatten = void 0;
|
|
1002
1279
|
function flatten(items) {
|
|
@@ -1024,7 +1301,7 @@ var require_array = __commonJS({
|
|
|
1024
1301
|
var require_errno = __commonJS({
|
|
1025
1302
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js"(exports) {
|
|
1026
1303
|
"use strict";
|
|
1027
|
-
|
|
1304
|
+
init_utils2();
|
|
1028
1305
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1029
1306
|
exports.isEnoentCodeError = void 0;
|
|
1030
1307
|
function isEnoentCodeError(error2) {
|
|
@@ -1038,7 +1315,7 @@ var require_errno = __commonJS({
|
|
|
1038
1315
|
var require_fs = __commonJS({
|
|
1039
1316
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js"(exports) {
|
|
1040
1317
|
"use strict";
|
|
1041
|
-
|
|
1318
|
+
init_utils2();
|
|
1042
1319
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1043
1320
|
exports.createDirentFromStats = void 0;
|
|
1044
1321
|
var DirentFromStats = class {
|
|
@@ -1064,7 +1341,7 @@ var require_fs = __commonJS({
|
|
|
1064
1341
|
var require_path = __commonJS({
|
|
1065
1342
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js"(exports) {
|
|
1066
1343
|
"use strict";
|
|
1067
|
-
|
|
1344
|
+
init_utils2();
|
|
1068
1345
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1069
1346
|
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
1070
1347
|
var os = __require("os");
|
|
@@ -1117,7 +1394,7 @@ var require_path = __commonJS({
|
|
|
1117
1394
|
// node_modules/.bun/is-extglob@2.1.1/node_modules/is-extglob/index.js
|
|
1118
1395
|
var require_is_extglob = __commonJS({
|
|
1119
1396
|
"node_modules/.bun/is-extglob@2.1.1/node_modules/is-extglob/index.js"(exports, module) {
|
|
1120
|
-
|
|
1397
|
+
init_utils2();
|
|
1121
1398
|
module.exports = function isExtglob(str) {
|
|
1122
1399
|
if (typeof str !== "string" || str === "") {
|
|
1123
1400
|
return false;
|
|
@@ -1135,7 +1412,7 @@ var require_is_extglob = __commonJS({
|
|
|
1135
1412
|
// node_modules/.bun/is-glob@4.0.3/node_modules/is-glob/index.js
|
|
1136
1413
|
var require_is_glob = __commonJS({
|
|
1137
1414
|
"node_modules/.bun/is-glob@4.0.3/node_modules/is-glob/index.js"(exports, module) {
|
|
1138
|
-
|
|
1415
|
+
init_utils2();
|
|
1139
1416
|
var isExtglob = require_is_extglob();
|
|
1140
1417
|
var chars = { "{": "}", "(": ")", "[": "]" };
|
|
1141
1418
|
var strictCheck = function(str) {
|
|
@@ -1268,7 +1545,7 @@ var require_is_glob = __commonJS({
|
|
|
1268
1545
|
var require_glob_parent = __commonJS({
|
|
1269
1546
|
"node_modules/.bun/glob-parent@5.1.2/node_modules/glob-parent/index.js"(exports, module) {
|
|
1270
1547
|
"use strict";
|
|
1271
|
-
|
|
1548
|
+
init_utils2();
|
|
1272
1549
|
var isGlob = require_is_glob();
|
|
1273
1550
|
var pathPosixDirname = __require("path").posix.dirname;
|
|
1274
1551
|
var isWin32 = __require("os").platform() === "win32";
|
|
@@ -1298,7 +1575,7 @@ var require_glob_parent = __commonJS({
|
|
|
1298
1575
|
var require_utils = __commonJS({
|
|
1299
1576
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/utils.js"(exports) {
|
|
1300
1577
|
"use strict";
|
|
1301
|
-
|
|
1578
|
+
init_utils2();
|
|
1302
1579
|
exports.isInteger = (num) => {
|
|
1303
1580
|
if (typeof num === "number") {
|
|
1304
1581
|
return Number.isInteger(num);
|
|
@@ -1381,7 +1658,7 @@ var require_utils = __commonJS({
|
|
|
1381
1658
|
var require_stringify = __commonJS({
|
|
1382
1659
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/stringify.js"(exports, module) {
|
|
1383
1660
|
"use strict";
|
|
1384
|
-
|
|
1661
|
+
init_utils2();
|
|
1385
1662
|
var utils = require_utils();
|
|
1386
1663
|
module.exports = (ast, options = {}) => {
|
|
1387
1664
|
const stringify2 = (node, parent = {}) => {
|
|
@@ -1413,7 +1690,7 @@ var require_stringify = __commonJS({
|
|
|
1413
1690
|
var require_is_number = __commonJS({
|
|
1414
1691
|
"node_modules/.bun/is-number@7.0.0/node_modules/is-number/index.js"(exports, module) {
|
|
1415
1692
|
"use strict";
|
|
1416
|
-
|
|
1693
|
+
init_utils2();
|
|
1417
1694
|
module.exports = function(num) {
|
|
1418
1695
|
if (typeof num === "number") {
|
|
1419
1696
|
return num - num === 0;
|
|
@@ -1430,7 +1707,7 @@ var require_is_number = __commonJS({
|
|
|
1430
1707
|
var require_to_regex_range = __commonJS({
|
|
1431
1708
|
"node_modules/.bun/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(exports, module) {
|
|
1432
1709
|
"use strict";
|
|
1433
|
-
|
|
1710
|
+
init_utils2();
|
|
1434
1711
|
var isNumber = require_is_number();
|
|
1435
1712
|
var toRegexRange = (min, max, options) => {
|
|
1436
1713
|
if (isNumber(min) === false) {
|
|
@@ -1455,8 +1732,8 @@ var require_to_regex_range = __commonJS({
|
|
|
1455
1732
|
return toRegexRange.cache[cacheKey].result;
|
|
1456
1733
|
}
|
|
1457
1734
|
let a = Math.min(min, max);
|
|
1458
|
-
let
|
|
1459
|
-
if (Math.abs(a -
|
|
1735
|
+
let b = Math.max(min, max);
|
|
1736
|
+
if (Math.abs(a - b) === 1) {
|
|
1460
1737
|
let result = min + "|" + max;
|
|
1461
1738
|
if (opts.capture) {
|
|
1462
1739
|
return `(${result})`;
|
|
@@ -1467,7 +1744,7 @@ var require_to_regex_range = __commonJS({
|
|
|
1467
1744
|
return `(?:${result})`;
|
|
1468
1745
|
}
|
|
1469
1746
|
let isPadded = hasPadding(min) || hasPadding(max);
|
|
1470
|
-
let state = { min, max, a, b
|
|
1747
|
+
let state = { min, max, a, b };
|
|
1471
1748
|
let positives = [];
|
|
1472
1749
|
let negatives = [];
|
|
1473
1750
|
if (isPadded) {
|
|
@@ -1475,12 +1752,12 @@ var require_to_regex_range = __commonJS({
|
|
|
1475
1752
|
state.maxLen = String(state.max).length;
|
|
1476
1753
|
}
|
|
1477
1754
|
if (a < 0) {
|
|
1478
|
-
let newMin =
|
|
1755
|
+
let newMin = b < 0 ? Math.abs(b) : 1;
|
|
1479
1756
|
negatives = splitToPatterns(newMin, Math.abs(a), state, opts);
|
|
1480
1757
|
a = state.a = 0;
|
|
1481
1758
|
}
|
|
1482
|
-
if (
|
|
1483
|
-
positives = splitToPatterns(a,
|
|
1759
|
+
if (b >= 0) {
|
|
1760
|
+
positives = splitToPatterns(a, b, state, opts);
|
|
1484
1761
|
}
|
|
1485
1762
|
state.negatives = negatives;
|
|
1486
1763
|
state.positives = positives;
|
|
@@ -1584,13 +1861,13 @@ var require_to_regex_range = __commonJS({
|
|
|
1584
1861
|
}
|
|
1585
1862
|
return result;
|
|
1586
1863
|
}
|
|
1587
|
-
function zip(a,
|
|
1864
|
+
function zip(a, b) {
|
|
1588
1865
|
let arr = [];
|
|
1589
|
-
for (let i = 0; i < a.length; i++) arr.push([a[i],
|
|
1866
|
+
for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]);
|
|
1590
1867
|
return arr;
|
|
1591
1868
|
}
|
|
1592
|
-
function compare(a,
|
|
1593
|
-
return a >
|
|
1869
|
+
function compare(a, b) {
|
|
1870
|
+
return a > b ? 1 : b > a ? -1 : 0;
|
|
1594
1871
|
}
|
|
1595
1872
|
function contains(arr, key, val) {
|
|
1596
1873
|
return arr.some((ele) => ele[key] === val);
|
|
@@ -1608,8 +1885,8 @@ var require_to_regex_range = __commonJS({
|
|
|
1608
1885
|
}
|
|
1609
1886
|
return "";
|
|
1610
1887
|
}
|
|
1611
|
-
function toCharacterClass(a,
|
|
1612
|
-
return `[${a}${
|
|
1888
|
+
function toCharacterClass(a, b, options) {
|
|
1889
|
+
return `[${a}${b - a === 1 ? "" : "-"}${b}]`;
|
|
1613
1890
|
}
|
|
1614
1891
|
function hasPadding(str) {
|
|
1615
1892
|
return /^-?(0+)\d/.test(str);
|
|
@@ -1642,7 +1919,7 @@ var require_to_regex_range = __commonJS({
|
|
|
1642
1919
|
var require_fill_range = __commonJS({
|
|
1643
1920
|
"node_modules/.bun/fill-range@7.1.1/node_modules/fill-range/index.js"(exports, module) {
|
|
1644
1921
|
"use strict";
|
|
1645
|
-
|
|
1922
|
+
init_utils2();
|
|
1646
1923
|
var util = __require("util");
|
|
1647
1924
|
var toRegexRange = require_to_regex_range();
|
|
1648
1925
|
var isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
@@ -1688,8 +1965,8 @@ var require_fill_range = __commonJS({
|
|
|
1688
1965
|
return negative ? "-" + input : input;
|
|
1689
1966
|
};
|
|
1690
1967
|
var toSequence = (parts, options, maxLen) => {
|
|
1691
|
-
parts.negatives.sort((a,
|
|
1692
|
-
parts.positives.sort((a,
|
|
1968
|
+
parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
1969
|
+
parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
1693
1970
|
let prefix = options.capture ? "" : "?:";
|
|
1694
1971
|
let positives = "";
|
|
1695
1972
|
let negatives = "";
|
|
@@ -1710,13 +1987,13 @@ var require_fill_range = __commonJS({
|
|
|
1710
1987
|
}
|
|
1711
1988
|
return result;
|
|
1712
1989
|
};
|
|
1713
|
-
var toRange = (a,
|
|
1990
|
+
var toRange = (a, b, isNumbers, options) => {
|
|
1714
1991
|
if (isNumbers) {
|
|
1715
|
-
return toRegexRange(a,
|
|
1992
|
+
return toRegexRange(a, b, { wrap: false, ...options });
|
|
1716
1993
|
}
|
|
1717
1994
|
let start = String.fromCharCode(a);
|
|
1718
|
-
if (a ===
|
|
1719
|
-
let stop = String.fromCharCode(
|
|
1995
|
+
if (a === b) return start;
|
|
1996
|
+
let stop = String.fromCharCode(b);
|
|
1720
1997
|
return `[${start}-${stop}]`;
|
|
1721
1998
|
};
|
|
1722
1999
|
var toRegex = (start, end, options) => {
|
|
@@ -1742,14 +2019,14 @@ var require_fill_range = __commonJS({
|
|
|
1742
2019
|
};
|
|
1743
2020
|
var fillNumbers = (start, end, step = 1, options = {}) => {
|
|
1744
2021
|
let a = Number(start);
|
|
1745
|
-
let
|
|
1746
|
-
if (!Number.isInteger(a) || !Number.isInteger(
|
|
2022
|
+
let b = Number(end);
|
|
2023
|
+
if (!Number.isInteger(a) || !Number.isInteger(b)) {
|
|
1747
2024
|
if (options.strictRanges === true) throw rangeError([start, end]);
|
|
1748
2025
|
return [];
|
|
1749
2026
|
}
|
|
1750
2027
|
if (a === 0) a = 0;
|
|
1751
|
-
if (
|
|
1752
|
-
let descending = a >
|
|
2028
|
+
if (b === 0) b = 0;
|
|
2029
|
+
let descending = a > b;
|
|
1753
2030
|
let startString = String(start);
|
|
1754
2031
|
let endString = String(end);
|
|
1755
2032
|
let stepString = String(step);
|
|
@@ -1765,7 +2042,7 @@ var require_fill_range = __commonJS({
|
|
|
1765
2042
|
let push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num));
|
|
1766
2043
|
let range = [];
|
|
1767
2044
|
let index = 0;
|
|
1768
|
-
while (descending ? a >=
|
|
2045
|
+
while (descending ? a >= b : a <= b) {
|
|
1769
2046
|
if (options.toRegex === true && step > 1) {
|
|
1770
2047
|
push(a);
|
|
1771
2048
|
} else {
|
|
@@ -1785,16 +2062,16 @@ var require_fill_range = __commonJS({
|
|
|
1785
2062
|
}
|
|
1786
2063
|
let format = options.transform || ((val) => String.fromCharCode(val));
|
|
1787
2064
|
let a = `${start}`.charCodeAt(0);
|
|
1788
|
-
let
|
|
1789
|
-
let descending = a >
|
|
1790
|
-
let min = Math.min(a,
|
|
1791
|
-
let max = Math.max(a,
|
|
2065
|
+
let b = `${end}`.charCodeAt(0);
|
|
2066
|
+
let descending = a > b;
|
|
2067
|
+
let min = Math.min(a, b);
|
|
2068
|
+
let max = Math.max(a, b);
|
|
1792
2069
|
if (options.toRegex && step === 1) {
|
|
1793
2070
|
return toRange(min, max, false, options);
|
|
1794
2071
|
}
|
|
1795
2072
|
let range = [];
|
|
1796
2073
|
let index = 0;
|
|
1797
|
-
while (descending ? a >=
|
|
2074
|
+
while (descending ? a >= b : a <= b) {
|
|
1798
2075
|
range.push(format(a, index));
|
|
1799
2076
|
a = descending ? a - step : a + step;
|
|
1800
2077
|
index++;
|
|
@@ -1837,7 +2114,7 @@ var require_fill_range = __commonJS({
|
|
|
1837
2114
|
var require_compile = __commonJS({
|
|
1838
2115
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/compile.js"(exports, module) {
|
|
1839
2116
|
"use strict";
|
|
1840
|
-
|
|
2117
|
+
init_utils2();
|
|
1841
2118
|
var fill = require_fill_range();
|
|
1842
2119
|
var utils = require_utils();
|
|
1843
2120
|
var compile = (ast, options = {}) => {
|
|
@@ -1889,7 +2166,7 @@ var require_compile = __commonJS({
|
|
|
1889
2166
|
var require_expand = __commonJS({
|
|
1890
2167
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/expand.js"(exports, module) {
|
|
1891
2168
|
"use strict";
|
|
1892
|
-
|
|
2169
|
+
init_utils2();
|
|
1893
2170
|
var fill = require_fill_range();
|
|
1894
2171
|
var stringify2 = require_stringify();
|
|
1895
2172
|
var utils = require_utils();
|
|
@@ -1984,7 +2261,7 @@ var require_expand = __commonJS({
|
|
|
1984
2261
|
var require_constants = __commonJS({
|
|
1985
2262
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/constants.js"(exports, module) {
|
|
1986
2263
|
"use strict";
|
|
1987
|
-
|
|
2264
|
+
init_utils2();
|
|
1988
2265
|
module.exports = {
|
|
1989
2266
|
MAX_LENGTH: 1e4,
|
|
1990
2267
|
// Digits
|
|
@@ -2086,7 +2363,7 @@ var require_constants = __commonJS({
|
|
|
2086
2363
|
var require_parse = __commonJS({
|
|
2087
2364
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/parse.js"(exports, module) {
|
|
2088
2365
|
"use strict";
|
|
2089
|
-
|
|
2366
|
+
init_utils2();
|
|
2090
2367
|
var stringify2 = require_stringify();
|
|
2091
2368
|
var {
|
|
2092
2369
|
MAX_LENGTH,
|
|
@@ -2325,7 +2602,7 @@ var require_parse = __commonJS({
|
|
|
2325
2602
|
var require_braces = __commonJS({
|
|
2326
2603
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/index.js"(exports, module) {
|
|
2327
2604
|
"use strict";
|
|
2328
|
-
|
|
2605
|
+
init_utils2();
|
|
2329
2606
|
var stringify2 = require_stringify();
|
|
2330
2607
|
var compile = require_compile();
|
|
2331
2608
|
var expand = require_expand();
|
|
@@ -2385,14 +2662,15 @@ var require_braces = __commonJS({
|
|
|
2385
2662
|
}
|
|
2386
2663
|
});
|
|
2387
2664
|
|
|
2388
|
-
// node_modules/.bun/picomatch@2.3.
|
|
2665
|
+
// node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js
|
|
2389
2666
|
var require_constants2 = __commonJS({
|
|
2390
|
-
"node_modules/.bun/picomatch@2.3.
|
|
2667
|
+
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js"(exports, module) {
|
|
2391
2668
|
"use strict";
|
|
2392
|
-
|
|
2669
|
+
init_utils2();
|
|
2393
2670
|
var path = __require("path");
|
|
2394
2671
|
var WIN_SLASH = "\\\\/";
|
|
2395
2672
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
2673
|
+
var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
|
|
2396
2674
|
var DOT_LITERAL = "\\.";
|
|
2397
2675
|
var PLUS_LITERAL = "\\+";
|
|
2398
2676
|
var QMARK_LITERAL = "\\?";
|
|
@@ -2440,6 +2718,7 @@ var require_constants2 = __commonJS({
|
|
|
2440
2718
|
END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
|
|
2441
2719
|
};
|
|
2442
2720
|
var POSIX_REGEX_SOURCE = {
|
|
2721
|
+
__proto__: null,
|
|
2443
2722
|
alnum: "a-zA-Z0-9",
|
|
2444
2723
|
alpha: "a-zA-Z",
|
|
2445
2724
|
ascii: "\\x00-\\x7F",
|
|
@@ -2456,6 +2735,7 @@ var require_constants2 = __commonJS({
|
|
|
2456
2735
|
xdigit: "A-Fa-f0-9"
|
|
2457
2736
|
};
|
|
2458
2737
|
module.exports = {
|
|
2738
|
+
DEFAULT_MAX_EXTGLOB_RECURSION,
|
|
2459
2739
|
MAX_LENGTH: 1024 * 64,
|
|
2460
2740
|
POSIX_REGEX_SOURCE,
|
|
2461
2741
|
// regular expressions
|
|
@@ -2467,6 +2747,7 @@ var require_constants2 = __commonJS({
|
|
|
2467
2747
|
REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
|
|
2468
2748
|
// Replace globs with equivalent patterns to reduce parsing time.
|
|
2469
2749
|
REPLACEMENTS: {
|
|
2750
|
+
__proto__: null,
|
|
2470
2751
|
"***": "*",
|
|
2471
2752
|
"**/**": "**",
|
|
2472
2753
|
"**/**/**": "**"
|
|
@@ -2583,11 +2864,11 @@ var require_constants2 = __commonJS({
|
|
|
2583
2864
|
}
|
|
2584
2865
|
});
|
|
2585
2866
|
|
|
2586
|
-
// node_modules/.bun/picomatch@2.3.
|
|
2867
|
+
// node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js
|
|
2587
2868
|
var require_utils2 = __commonJS({
|
|
2588
|
-
"node_modules/.bun/picomatch@2.3.
|
|
2869
|
+
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js"(exports) {
|
|
2589
2870
|
"use strict";
|
|
2590
|
-
|
|
2871
|
+
init_utils2();
|
|
2591
2872
|
var path = __require("path");
|
|
2592
2873
|
var win32 = process.platform === "win32";
|
|
2593
2874
|
var {
|
|
@@ -2645,11 +2926,11 @@ var require_utils2 = __commonJS({
|
|
|
2645
2926
|
}
|
|
2646
2927
|
});
|
|
2647
2928
|
|
|
2648
|
-
// node_modules/.bun/picomatch@2.3.
|
|
2929
|
+
// node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js
|
|
2649
2930
|
var require_scan = __commonJS({
|
|
2650
|
-
"node_modules/.bun/picomatch@2.3.
|
|
2931
|
+
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js"(exports, module) {
|
|
2651
2932
|
"use strict";
|
|
2652
|
-
|
|
2933
|
+
init_utils2();
|
|
2653
2934
|
var utils = require_utils2();
|
|
2654
2935
|
var {
|
|
2655
2936
|
CHAR_ASTERISK,
|
|
@@ -2976,11 +3257,11 @@ var require_scan = __commonJS({
|
|
|
2976
3257
|
}
|
|
2977
3258
|
});
|
|
2978
3259
|
|
|
2979
|
-
// node_modules/.bun/picomatch@2.3.
|
|
3260
|
+
// node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js
|
|
2980
3261
|
var require_parse2 = __commonJS({
|
|
2981
|
-
"node_modules/.bun/picomatch@2.3.
|
|
3262
|
+
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js"(exports, module) {
|
|
2982
3263
|
"use strict";
|
|
2983
|
-
|
|
3264
|
+
init_utils2();
|
|
2984
3265
|
var constants2 = require_constants2();
|
|
2985
3266
|
var utils = require_utils2();
|
|
2986
3267
|
var {
|
|
@@ -3006,6 +3287,213 @@ var require_parse2 = __commonJS({
|
|
|
3006
3287
|
var syntaxError = (type, char) => {
|
|
3007
3288
|
return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
|
|
3008
3289
|
};
|
|
3290
|
+
var splitTopLevel = (input) => {
|
|
3291
|
+
const parts = [];
|
|
3292
|
+
let bracket = 0;
|
|
3293
|
+
let paren = 0;
|
|
3294
|
+
let quote = 0;
|
|
3295
|
+
let value = "";
|
|
3296
|
+
let escaped = false;
|
|
3297
|
+
for (const ch of input) {
|
|
3298
|
+
if (escaped === true) {
|
|
3299
|
+
value += ch;
|
|
3300
|
+
escaped = false;
|
|
3301
|
+
continue;
|
|
3302
|
+
}
|
|
3303
|
+
if (ch === "\\") {
|
|
3304
|
+
value += ch;
|
|
3305
|
+
escaped = true;
|
|
3306
|
+
continue;
|
|
3307
|
+
}
|
|
3308
|
+
if (ch === '"') {
|
|
3309
|
+
quote = quote === 1 ? 0 : 1;
|
|
3310
|
+
value += ch;
|
|
3311
|
+
continue;
|
|
3312
|
+
}
|
|
3313
|
+
if (quote === 0) {
|
|
3314
|
+
if (ch === "[") {
|
|
3315
|
+
bracket++;
|
|
3316
|
+
} else if (ch === "]" && bracket > 0) {
|
|
3317
|
+
bracket--;
|
|
3318
|
+
} else if (bracket === 0) {
|
|
3319
|
+
if (ch === "(") {
|
|
3320
|
+
paren++;
|
|
3321
|
+
} else if (ch === ")" && paren > 0) {
|
|
3322
|
+
paren--;
|
|
3323
|
+
} else if (ch === "|" && paren === 0) {
|
|
3324
|
+
parts.push(value);
|
|
3325
|
+
value = "";
|
|
3326
|
+
continue;
|
|
3327
|
+
}
|
|
3328
|
+
}
|
|
3329
|
+
}
|
|
3330
|
+
value += ch;
|
|
3331
|
+
}
|
|
3332
|
+
parts.push(value);
|
|
3333
|
+
return parts;
|
|
3334
|
+
};
|
|
3335
|
+
var isPlainBranch = (branch) => {
|
|
3336
|
+
let escaped = false;
|
|
3337
|
+
for (const ch of branch) {
|
|
3338
|
+
if (escaped === true) {
|
|
3339
|
+
escaped = false;
|
|
3340
|
+
continue;
|
|
3341
|
+
}
|
|
3342
|
+
if (ch === "\\") {
|
|
3343
|
+
escaped = true;
|
|
3344
|
+
continue;
|
|
3345
|
+
}
|
|
3346
|
+
if (/[?*+@!()[\]{}]/.test(ch)) {
|
|
3347
|
+
return false;
|
|
3348
|
+
}
|
|
3349
|
+
}
|
|
3350
|
+
return true;
|
|
3351
|
+
};
|
|
3352
|
+
var normalizeSimpleBranch = (branch) => {
|
|
3353
|
+
let value = branch.trim();
|
|
3354
|
+
let changed = true;
|
|
3355
|
+
while (changed === true) {
|
|
3356
|
+
changed = false;
|
|
3357
|
+
if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
|
|
3358
|
+
value = value.slice(2, -1);
|
|
3359
|
+
changed = true;
|
|
3360
|
+
}
|
|
3361
|
+
}
|
|
3362
|
+
if (!isPlainBranch(value)) {
|
|
3363
|
+
return;
|
|
3364
|
+
}
|
|
3365
|
+
return value.replace(/\\(.)/g, "$1");
|
|
3366
|
+
};
|
|
3367
|
+
var hasRepeatedCharPrefixOverlap = (branches) => {
|
|
3368
|
+
const values = branches.map(normalizeSimpleBranch).filter(Boolean);
|
|
3369
|
+
for (let i = 0; i < values.length; i++) {
|
|
3370
|
+
for (let j2 = i + 1; j2 < values.length; j2++) {
|
|
3371
|
+
const a = values[i];
|
|
3372
|
+
const b = values[j2];
|
|
3373
|
+
const char = a[0];
|
|
3374
|
+
if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) {
|
|
3375
|
+
continue;
|
|
3376
|
+
}
|
|
3377
|
+
if (a === b || a.startsWith(b) || b.startsWith(a)) {
|
|
3378
|
+
return true;
|
|
3379
|
+
}
|
|
3380
|
+
}
|
|
3381
|
+
}
|
|
3382
|
+
return false;
|
|
3383
|
+
};
|
|
3384
|
+
var parseRepeatedExtglob = (pattern, requireEnd = true) => {
|
|
3385
|
+
if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
|
|
3386
|
+
return;
|
|
3387
|
+
}
|
|
3388
|
+
let bracket = 0;
|
|
3389
|
+
let paren = 0;
|
|
3390
|
+
let quote = 0;
|
|
3391
|
+
let escaped = false;
|
|
3392
|
+
for (let i = 1; i < pattern.length; i++) {
|
|
3393
|
+
const ch = pattern[i];
|
|
3394
|
+
if (escaped === true) {
|
|
3395
|
+
escaped = false;
|
|
3396
|
+
continue;
|
|
3397
|
+
}
|
|
3398
|
+
if (ch === "\\") {
|
|
3399
|
+
escaped = true;
|
|
3400
|
+
continue;
|
|
3401
|
+
}
|
|
3402
|
+
if (ch === '"') {
|
|
3403
|
+
quote = quote === 1 ? 0 : 1;
|
|
3404
|
+
continue;
|
|
3405
|
+
}
|
|
3406
|
+
if (quote === 1) {
|
|
3407
|
+
continue;
|
|
3408
|
+
}
|
|
3409
|
+
if (ch === "[") {
|
|
3410
|
+
bracket++;
|
|
3411
|
+
continue;
|
|
3412
|
+
}
|
|
3413
|
+
if (ch === "]" && bracket > 0) {
|
|
3414
|
+
bracket--;
|
|
3415
|
+
continue;
|
|
3416
|
+
}
|
|
3417
|
+
if (bracket > 0) {
|
|
3418
|
+
continue;
|
|
3419
|
+
}
|
|
3420
|
+
if (ch === "(") {
|
|
3421
|
+
paren++;
|
|
3422
|
+
continue;
|
|
3423
|
+
}
|
|
3424
|
+
if (ch === ")") {
|
|
3425
|
+
paren--;
|
|
3426
|
+
if (paren === 0) {
|
|
3427
|
+
if (requireEnd === true && i !== pattern.length - 1) {
|
|
3428
|
+
return;
|
|
3429
|
+
}
|
|
3430
|
+
return {
|
|
3431
|
+
type: pattern[0],
|
|
3432
|
+
body: pattern.slice(2, i),
|
|
3433
|
+
end: i
|
|
3434
|
+
};
|
|
3435
|
+
}
|
|
3436
|
+
}
|
|
3437
|
+
}
|
|
3438
|
+
};
|
|
3439
|
+
var getStarExtglobSequenceOutput = (pattern) => {
|
|
3440
|
+
let index = 0;
|
|
3441
|
+
const chars = [];
|
|
3442
|
+
while (index < pattern.length) {
|
|
3443
|
+
const match = parseRepeatedExtglob(pattern.slice(index), false);
|
|
3444
|
+
if (!match || match.type !== "*") {
|
|
3445
|
+
return;
|
|
3446
|
+
}
|
|
3447
|
+
const branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
|
|
3448
|
+
if (branches.length !== 1) {
|
|
3449
|
+
return;
|
|
3450
|
+
}
|
|
3451
|
+
const branch = normalizeSimpleBranch(branches[0]);
|
|
3452
|
+
if (!branch || branch.length !== 1) {
|
|
3453
|
+
return;
|
|
3454
|
+
}
|
|
3455
|
+
chars.push(branch);
|
|
3456
|
+
index += match.end + 1;
|
|
3457
|
+
}
|
|
3458
|
+
if (chars.length < 1) {
|
|
3459
|
+
return;
|
|
3460
|
+
}
|
|
3461
|
+
const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
|
|
3462
|
+
return `${source}*`;
|
|
3463
|
+
};
|
|
3464
|
+
var repeatedExtglobRecursion = (pattern) => {
|
|
3465
|
+
let depth = 0;
|
|
3466
|
+
let value = pattern.trim();
|
|
3467
|
+
let match = parseRepeatedExtglob(value);
|
|
3468
|
+
while (match) {
|
|
3469
|
+
depth++;
|
|
3470
|
+
value = match.body.trim();
|
|
3471
|
+
match = parseRepeatedExtglob(value);
|
|
3472
|
+
}
|
|
3473
|
+
return depth;
|
|
3474
|
+
};
|
|
3475
|
+
var analyzeRepeatedExtglob = (body, options) => {
|
|
3476
|
+
if (options.maxExtglobRecursion === false) {
|
|
3477
|
+
return { risky: false };
|
|
3478
|
+
}
|
|
3479
|
+
const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants2.DEFAULT_MAX_EXTGLOB_RECURSION;
|
|
3480
|
+
const branches = splitTopLevel(body).map((branch) => branch.trim());
|
|
3481
|
+
if (branches.length > 1) {
|
|
3482
|
+
if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
|
|
3483
|
+
return { risky: true };
|
|
3484
|
+
}
|
|
3485
|
+
}
|
|
3486
|
+
for (const branch of branches) {
|
|
3487
|
+
const safeOutput = getStarExtglobSequenceOutput(branch);
|
|
3488
|
+
if (safeOutput) {
|
|
3489
|
+
return { risky: true, safeOutput };
|
|
3490
|
+
}
|
|
3491
|
+
if (repeatedExtglobRecursion(branch) > max) {
|
|
3492
|
+
return { risky: true };
|
|
3493
|
+
}
|
|
3494
|
+
}
|
|
3495
|
+
return { risky: false };
|
|
3496
|
+
};
|
|
3009
3497
|
var parse2 = (input, options) => {
|
|
3010
3498
|
if (typeof input !== "string") {
|
|
3011
3499
|
throw new TypeError("Expected a string");
|
|
@@ -3137,6 +3625,8 @@ var require_parse2 = __commonJS({
|
|
|
3137
3625
|
token.prev = prev;
|
|
3138
3626
|
token.parens = state.parens;
|
|
3139
3627
|
token.output = state.output;
|
|
3628
|
+
token.startIndex = state.index;
|
|
3629
|
+
token.tokensIndex = tokens.length;
|
|
3140
3630
|
const output = (opts.capture ? "(" : "") + token.open;
|
|
3141
3631
|
increment("parens");
|
|
3142
3632
|
push({ type, value: value2, output: state.output ? "" : ONE_CHAR });
|
|
@@ -3144,6 +3634,26 @@ var require_parse2 = __commonJS({
|
|
|
3144
3634
|
extglobs.push(token);
|
|
3145
3635
|
};
|
|
3146
3636
|
const extglobClose = (token) => {
|
|
3637
|
+
const literal = input.slice(token.startIndex, state.index + 1);
|
|
3638
|
+
const body = input.slice(token.startIndex + 2, state.index);
|
|
3639
|
+
const analysis = analyzeRepeatedExtglob(body, opts);
|
|
3640
|
+
if ((token.type === "plus" || token.type === "star") && analysis.risky) {
|
|
3641
|
+
const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
|
|
3642
|
+
const open = tokens[token.tokensIndex];
|
|
3643
|
+
open.type = "text";
|
|
3644
|
+
open.value = literal;
|
|
3645
|
+
open.output = safeOutput || utils.escapeRegex(literal);
|
|
3646
|
+
for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
|
|
3647
|
+
tokens[i].value = "";
|
|
3648
|
+
tokens[i].output = "";
|
|
3649
|
+
delete tokens[i].suffix;
|
|
3650
|
+
}
|
|
3651
|
+
state.output = token.output + open.output;
|
|
3652
|
+
state.backtrack = true;
|
|
3653
|
+
push({ type: "paren", extglob: true, value, output: "" });
|
|
3654
|
+
decrement("parens");
|
|
3655
|
+
return;
|
|
3656
|
+
}
|
|
3147
3657
|
let output = token.close + (opts.capture ? ")" : "");
|
|
3148
3658
|
let rest;
|
|
3149
3659
|
if (token.type === "negate") {
|
|
@@ -3167,10 +3677,10 @@ var require_parse2 = __commonJS({
|
|
|
3167
3677
|
};
|
|
3168
3678
|
if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) {
|
|
3169
3679
|
let backslashes = false;
|
|
3170
|
-
let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (
|
|
3680
|
+
let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => {
|
|
3171
3681
|
if (first === "\\") {
|
|
3172
3682
|
backslashes = true;
|
|
3173
|
-
return
|
|
3683
|
+
return m;
|
|
3174
3684
|
}
|
|
3175
3685
|
if (first === "?") {
|
|
3176
3686
|
if (esc) {
|
|
@@ -3190,14 +3700,14 @@ var require_parse2 = __commonJS({
|
|
|
3190
3700
|
}
|
|
3191
3701
|
return star;
|
|
3192
3702
|
}
|
|
3193
|
-
return esc ?
|
|
3703
|
+
return esc ? m : `\\${m}`;
|
|
3194
3704
|
});
|
|
3195
3705
|
if (backslashes === true) {
|
|
3196
3706
|
if (opts.unescape === true) {
|
|
3197
3707
|
output = output.replace(/\\/g, "");
|
|
3198
3708
|
} else {
|
|
3199
|
-
output = output.replace(/\\+/g, (
|
|
3200
|
-
return
|
|
3709
|
+
output = output.replace(/\\+/g, (m) => {
|
|
3710
|
+
return m.length % 2 === 0 ? "\\\\" : m ? "\\" : "";
|
|
3201
3711
|
});
|
|
3202
3712
|
}
|
|
3203
3713
|
}
|
|
@@ -3397,8 +3907,8 @@ var require_parse2 = __commonJS({
|
|
|
3397
3907
|
brace.value = brace.output = "\\{";
|
|
3398
3908
|
value = output = "\\}";
|
|
3399
3909
|
state.output = out;
|
|
3400
|
-
for (const
|
|
3401
|
-
state.output +=
|
|
3910
|
+
for (const t2 of toks) {
|
|
3911
|
+
state.output += t2.output || t2.value;
|
|
3402
3912
|
}
|
|
3403
3913
|
}
|
|
3404
3914
|
push({ type: "brace", value, output });
|
|
@@ -3750,11 +4260,11 @@ var require_parse2 = __commonJS({
|
|
|
3750
4260
|
}
|
|
3751
4261
|
});
|
|
3752
4262
|
|
|
3753
|
-
// node_modules/.bun/picomatch@2.3.
|
|
4263
|
+
// node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js
|
|
3754
4264
|
var require_picomatch = __commonJS({
|
|
3755
|
-
"node_modules/.bun/picomatch@2.3.
|
|
4265
|
+
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js"(exports, module) {
|
|
3756
4266
|
"use strict";
|
|
3757
|
-
|
|
4267
|
+
init_utils2();
|
|
3758
4268
|
var path = __require("path");
|
|
3759
4269
|
var scan = require_scan();
|
|
3760
4270
|
var parse2 = require_parse2();
|
|
@@ -3892,11 +4402,11 @@ var require_picomatch = __commonJS({
|
|
|
3892
4402
|
}
|
|
3893
4403
|
});
|
|
3894
4404
|
|
|
3895
|
-
// node_modules/.bun/picomatch@2.3.
|
|
4405
|
+
// node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js
|
|
3896
4406
|
var require_picomatch2 = __commonJS({
|
|
3897
|
-
"node_modules/.bun/picomatch@2.3.
|
|
4407
|
+
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js"(exports, module) {
|
|
3898
4408
|
"use strict";
|
|
3899
|
-
|
|
4409
|
+
init_utils2();
|
|
3900
4410
|
module.exports = require_picomatch();
|
|
3901
4411
|
}
|
|
3902
4412
|
});
|
|
@@ -3905,7 +4415,7 @@ var require_picomatch2 = __commonJS({
|
|
|
3905
4415
|
var require_micromatch = __commonJS({
|
|
3906
4416
|
"node_modules/.bun/micromatch@4.0.8/node_modules/micromatch/index.js"(exports, module) {
|
|
3907
4417
|
"use strict";
|
|
3908
|
-
|
|
4418
|
+
init_utils2();
|
|
3909
4419
|
var util = __require("util");
|
|
3910
4420
|
var braces = require_braces();
|
|
3911
4421
|
var picomatch = require_picomatch2();
|
|
@@ -4067,7 +4577,7 @@ var require_micromatch = __commonJS({
|
|
|
4067
4577
|
var require_pattern = __commonJS({
|
|
4068
4578
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js"(exports) {
|
|
4069
4579
|
"use strict";
|
|
4070
|
-
|
|
4580
|
+
init_utils2();
|
|
4071
4581
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4072
4582
|
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;
|
|
4073
4583
|
var path = __require("path");
|
|
@@ -4177,7 +4687,7 @@ var require_pattern = __commonJS({
|
|
|
4177
4687
|
exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
|
|
4178
4688
|
function expandBraceExpansion(pattern) {
|
|
4179
4689
|
const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true });
|
|
4180
|
-
patterns.sort((a,
|
|
4690
|
+
patterns.sort((a, b) => a.length - b.length);
|
|
4181
4691
|
return patterns.filter((pattern2) => pattern2 !== "");
|
|
4182
4692
|
}
|
|
4183
4693
|
exports.expandBraceExpansion = expandBraceExpansion;
|
|
@@ -4233,7 +4743,7 @@ var require_pattern = __commonJS({
|
|
|
4233
4743
|
var require_merge2 = __commonJS({
|
|
4234
4744
|
"node_modules/.bun/merge2@1.4.1/node_modules/merge2/index.js"(exports, module) {
|
|
4235
4745
|
"use strict";
|
|
4236
|
-
|
|
4746
|
+
init_utils2();
|
|
4237
4747
|
var Stream = __require("stream");
|
|
4238
4748
|
var PassThrough = Stream.PassThrough;
|
|
4239
4749
|
var slice = Array.prototype.slice;
|
|
@@ -4353,7 +4863,7 @@ var require_merge2 = __commonJS({
|
|
|
4353
4863
|
var require_stream = __commonJS({
|
|
4354
4864
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js"(exports) {
|
|
4355
4865
|
"use strict";
|
|
4356
|
-
|
|
4866
|
+
init_utils2();
|
|
4357
4867
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4358
4868
|
exports.merge = void 0;
|
|
4359
4869
|
var merge2 = require_merge2();
|
|
@@ -4377,7 +4887,7 @@ var require_stream = __commonJS({
|
|
|
4377
4887
|
var require_string = __commonJS({
|
|
4378
4888
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js"(exports) {
|
|
4379
4889
|
"use strict";
|
|
4380
|
-
|
|
4890
|
+
init_utils2();
|
|
4381
4891
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4382
4892
|
exports.isEmpty = exports.isString = void 0;
|
|
4383
4893
|
function isString(input) {
|
|
@@ -4395,7 +4905,7 @@ var require_string = __commonJS({
|
|
|
4395
4905
|
var require_utils3 = __commonJS({
|
|
4396
4906
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js"(exports) {
|
|
4397
4907
|
"use strict";
|
|
4398
|
-
|
|
4908
|
+
init_utils2();
|
|
4399
4909
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4400
4910
|
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
|
|
4401
4911
|
var array = require_array();
|
|
@@ -4419,7 +4929,7 @@ var require_utils3 = __commonJS({
|
|
|
4419
4929
|
var require_tasks = __commonJS({
|
|
4420
4930
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js"(exports) {
|
|
4421
4931
|
"use strict";
|
|
4422
|
-
|
|
4932
|
+
init_utils2();
|
|
4423
4933
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4424
4934
|
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
|
|
4425
4935
|
var utils = require_utils3();
|
|
@@ -4516,7 +5026,7 @@ var require_tasks = __commonJS({
|
|
|
4516
5026
|
var require_async = __commonJS({
|
|
4517
5027
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) {
|
|
4518
5028
|
"use strict";
|
|
4519
|
-
|
|
5029
|
+
init_utils2();
|
|
4520
5030
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4521
5031
|
exports.read = void 0;
|
|
4522
5032
|
function read(path, settings, callback) {
|
|
@@ -4559,7 +5069,7 @@ var require_async = __commonJS({
|
|
|
4559
5069
|
var require_sync = __commonJS({
|
|
4560
5070
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) {
|
|
4561
5071
|
"use strict";
|
|
4562
|
-
|
|
5072
|
+
init_utils2();
|
|
4563
5073
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4564
5074
|
exports.read = void 0;
|
|
4565
5075
|
function read(path, settings) {
|
|
@@ -4588,7 +5098,7 @@ var require_sync = __commonJS({
|
|
|
4588
5098
|
var require_fs2 = __commonJS({
|
|
4589
5099
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) {
|
|
4590
5100
|
"use strict";
|
|
4591
|
-
|
|
5101
|
+
init_utils2();
|
|
4592
5102
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4593
5103
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
4594
5104
|
var fs2 = __require("fs");
|
|
@@ -4612,7 +5122,7 @@ var require_fs2 = __commonJS({
|
|
|
4612
5122
|
var require_settings = __commonJS({
|
|
4613
5123
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js"(exports) {
|
|
4614
5124
|
"use strict";
|
|
4615
|
-
|
|
5125
|
+
init_utils2();
|
|
4616
5126
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4617
5127
|
var fs2 = require_fs2();
|
|
4618
5128
|
var Settings = class {
|
|
@@ -4635,7 +5145,7 @@ var require_settings = __commonJS({
|
|
|
4635
5145
|
var require_out = __commonJS({
|
|
4636
5146
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js"(exports) {
|
|
4637
5147
|
"use strict";
|
|
4638
|
-
|
|
5148
|
+
init_utils2();
|
|
4639
5149
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4640
5150
|
exports.statSync = exports.stat = exports.Settings = void 0;
|
|
4641
5151
|
var async = require_async();
|
|
@@ -4667,7 +5177,7 @@ var require_out = __commonJS({
|
|
|
4667
5177
|
// node_modules/.bun/queue-microtask@1.2.3/node_modules/queue-microtask/index.js
|
|
4668
5178
|
var require_queue_microtask = __commonJS({
|
|
4669
5179
|
"node_modules/.bun/queue-microtask@1.2.3/node_modules/queue-microtask/index.js"(exports, module) {
|
|
4670
|
-
|
|
5180
|
+
init_utils2();
|
|
4671
5181
|
var promise;
|
|
4672
5182
|
module.exports = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : global) : (cb) => (promise || (promise = Promise.resolve())).then(cb).catch((err) => setTimeout(() => {
|
|
4673
5183
|
throw err;
|
|
@@ -4678,7 +5188,7 @@ var require_queue_microtask = __commonJS({
|
|
|
4678
5188
|
// node_modules/.bun/run-parallel@1.2.0/node_modules/run-parallel/index.js
|
|
4679
5189
|
var require_run_parallel = __commonJS({
|
|
4680
5190
|
"node_modules/.bun/run-parallel@1.2.0/node_modules/run-parallel/index.js"(exports, module) {
|
|
4681
|
-
|
|
5191
|
+
init_utils2();
|
|
4682
5192
|
module.exports = runParallel;
|
|
4683
5193
|
var queueMicrotask2 = require_queue_microtask();
|
|
4684
5194
|
function runParallel(tasks, cb) {
|
|
@@ -4730,7 +5240,7 @@ var require_run_parallel = __commonJS({
|
|
|
4730
5240
|
var require_constants3 = __commonJS({
|
|
4731
5241
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js"(exports) {
|
|
4732
5242
|
"use strict";
|
|
4733
|
-
|
|
5243
|
+
init_utils2();
|
|
4734
5244
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4735
5245
|
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
|
|
4736
5246
|
var NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
|
|
@@ -4751,7 +5261,7 @@ var require_constants3 = __commonJS({
|
|
|
4751
5261
|
var require_fs3 = __commonJS({
|
|
4752
5262
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js"(exports) {
|
|
4753
5263
|
"use strict";
|
|
4754
|
-
|
|
5264
|
+
init_utils2();
|
|
4755
5265
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4756
5266
|
exports.createDirentFromStats = void 0;
|
|
4757
5267
|
var DirentFromStats = class {
|
|
@@ -4777,7 +5287,7 @@ var require_fs3 = __commonJS({
|
|
|
4777
5287
|
var require_utils4 = __commonJS({
|
|
4778
5288
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
|
|
4779
5289
|
"use strict";
|
|
4780
|
-
|
|
5290
|
+
init_utils2();
|
|
4781
5291
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4782
5292
|
exports.fs = void 0;
|
|
4783
5293
|
var fs2 = require_fs3();
|
|
@@ -4789,14 +5299,14 @@ var require_utils4 = __commonJS({
|
|
|
4789
5299
|
var require_common = __commonJS({
|
|
4790
5300
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js"(exports) {
|
|
4791
5301
|
"use strict";
|
|
4792
|
-
|
|
5302
|
+
init_utils2();
|
|
4793
5303
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4794
5304
|
exports.joinPathSegments = void 0;
|
|
4795
|
-
function joinPathSegments(a,
|
|
5305
|
+
function joinPathSegments(a, b, separator) {
|
|
4796
5306
|
if (a.endsWith(separator)) {
|
|
4797
|
-
return a +
|
|
5307
|
+
return a + b;
|
|
4798
5308
|
}
|
|
4799
|
-
return a + separator +
|
|
5309
|
+
return a + separator + b;
|
|
4800
5310
|
}
|
|
4801
5311
|
exports.joinPathSegments = joinPathSegments;
|
|
4802
5312
|
}
|
|
@@ -4806,7 +5316,7 @@ var require_common = __commonJS({
|
|
|
4806
5316
|
var require_async2 = __commonJS({
|
|
4807
5317
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js"(exports) {
|
|
4808
5318
|
"use strict";
|
|
4809
|
-
|
|
5319
|
+
init_utils2();
|
|
4810
5320
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4811
5321
|
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
4812
5322
|
var fsStat = require_out();
|
|
@@ -4917,7 +5427,7 @@ var require_async2 = __commonJS({
|
|
|
4917
5427
|
var require_sync2 = __commonJS({
|
|
4918
5428
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js"(exports) {
|
|
4919
5429
|
"use strict";
|
|
4920
|
-
|
|
5430
|
+
init_utils2();
|
|
4921
5431
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4922
5432
|
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
4923
5433
|
var fsStat = require_out();
|
|
@@ -4977,7 +5487,7 @@ var require_sync2 = __commonJS({
|
|
|
4977
5487
|
var require_fs4 = __commonJS({
|
|
4978
5488
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) {
|
|
4979
5489
|
"use strict";
|
|
4980
|
-
|
|
5490
|
+
init_utils2();
|
|
4981
5491
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4982
5492
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
4983
5493
|
var fs2 = __require("fs");
|
|
@@ -5003,7 +5513,7 @@ var require_fs4 = __commonJS({
|
|
|
5003
5513
|
var require_settings2 = __commonJS({
|
|
5004
5514
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
|
|
5005
5515
|
"use strict";
|
|
5006
|
-
|
|
5516
|
+
init_utils2();
|
|
5007
5517
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5008
5518
|
var path = __require("path");
|
|
5009
5519
|
var fsStat = require_out();
|
|
@@ -5034,7 +5544,7 @@ var require_settings2 = __commonJS({
|
|
|
5034
5544
|
var require_out2 = __commonJS({
|
|
5035
5545
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js"(exports) {
|
|
5036
5546
|
"use strict";
|
|
5037
|
-
|
|
5547
|
+
init_utils2();
|
|
5038
5548
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5039
5549
|
exports.Settings = exports.scandirSync = exports.scandir = void 0;
|
|
5040
5550
|
var async = require_async2();
|
|
@@ -5067,7 +5577,7 @@ var require_out2 = __commonJS({
|
|
|
5067
5577
|
var require_reusify = __commonJS({
|
|
5068
5578
|
"node_modules/.bun/reusify@1.1.0/node_modules/reusify/reusify.js"(exports, module) {
|
|
5069
5579
|
"use strict";
|
|
5070
|
-
|
|
5580
|
+
init_utils2();
|
|
5071
5581
|
function reusify(Constructor) {
|
|
5072
5582
|
var head = new Constructor();
|
|
5073
5583
|
var tail = head;
|
|
@@ -5099,7 +5609,7 @@ var require_reusify = __commonJS({
|
|
|
5099
5609
|
var require_queue = __commonJS({
|
|
5100
5610
|
"node_modules/.bun/fastq@1.20.1/node_modules/fastq/queue.js"(exports, module) {
|
|
5101
5611
|
"use strict";
|
|
5102
|
-
|
|
5612
|
+
init_utils2();
|
|
5103
5613
|
var reusify = require_reusify();
|
|
5104
5614
|
function fastqueue(context, worker, _concurrency) {
|
|
5105
5615
|
if (typeof context === "function") {
|
|
@@ -5384,7 +5894,7 @@ var require_queue = __commonJS({
|
|
|
5384
5894
|
var require_common2 = __commonJS({
|
|
5385
5895
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js"(exports) {
|
|
5386
5896
|
"use strict";
|
|
5387
|
-
|
|
5897
|
+
init_utils2();
|
|
5388
5898
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5389
5899
|
exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
|
|
5390
5900
|
function isFatalError(settings, error2) {
|
|
@@ -5402,14 +5912,14 @@ var require_common2 = __commonJS({
|
|
|
5402
5912
|
return filepath.split(/[/\\]/).join(separator);
|
|
5403
5913
|
}
|
|
5404
5914
|
exports.replacePathSegmentSeparator = replacePathSegmentSeparator;
|
|
5405
|
-
function joinPathSegments(a,
|
|
5915
|
+
function joinPathSegments(a, b, separator) {
|
|
5406
5916
|
if (a === "") {
|
|
5407
|
-
return
|
|
5917
|
+
return b;
|
|
5408
5918
|
}
|
|
5409
5919
|
if (a.endsWith(separator)) {
|
|
5410
|
-
return a +
|
|
5920
|
+
return a + b;
|
|
5411
5921
|
}
|
|
5412
|
-
return a + separator +
|
|
5922
|
+
return a + separator + b;
|
|
5413
5923
|
}
|
|
5414
5924
|
exports.joinPathSegments = joinPathSegments;
|
|
5415
5925
|
}
|
|
@@ -5419,7 +5929,7 @@ var require_common2 = __commonJS({
|
|
|
5419
5929
|
var require_reader = __commonJS({
|
|
5420
5930
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.js"(exports) {
|
|
5421
5931
|
"use strict";
|
|
5422
|
-
|
|
5932
|
+
init_utils2();
|
|
5423
5933
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5424
5934
|
var common = require_common2();
|
|
5425
5935
|
var Reader = class {
|
|
@@ -5437,7 +5947,7 @@ var require_reader = __commonJS({
|
|
|
5437
5947
|
var require_async3 = __commonJS({
|
|
5438
5948
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.js"(exports) {
|
|
5439
5949
|
"use strict";
|
|
5440
|
-
|
|
5950
|
+
init_utils2();
|
|
5441
5951
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5442
5952
|
var events_1 = __require("events");
|
|
5443
5953
|
var fsScandir = require_out2();
|
|
@@ -5541,7 +6051,7 @@ var require_async3 = __commonJS({
|
|
|
5541
6051
|
var require_async4 = __commonJS({
|
|
5542
6052
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.js"(exports) {
|
|
5543
6053
|
"use strict";
|
|
5544
|
-
|
|
6054
|
+
init_utils2();
|
|
5545
6055
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5546
6056
|
var async_1 = require_async3();
|
|
5547
6057
|
var AsyncProvider = class {
|
|
@@ -5578,7 +6088,7 @@ var require_async4 = __commonJS({
|
|
|
5578
6088
|
var require_stream2 = __commonJS({
|
|
5579
6089
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.js"(exports) {
|
|
5580
6090
|
"use strict";
|
|
5581
|
-
|
|
6091
|
+
init_utils2();
|
|
5582
6092
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5583
6093
|
var stream_1 = __require("stream");
|
|
5584
6094
|
var async_1 = require_async3();
|
|
@@ -5620,7 +6130,7 @@ var require_stream2 = __commonJS({
|
|
|
5620
6130
|
var require_sync3 = __commonJS({
|
|
5621
6131
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.js"(exports) {
|
|
5622
6132
|
"use strict";
|
|
5623
|
-
|
|
6133
|
+
init_utils2();
|
|
5624
6134
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5625
6135
|
var fsScandir = require_out2();
|
|
5626
6136
|
var common = require_common2();
|
|
@@ -5685,7 +6195,7 @@ var require_sync3 = __commonJS({
|
|
|
5685
6195
|
var require_sync4 = __commonJS({
|
|
5686
6196
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.js"(exports) {
|
|
5687
6197
|
"use strict";
|
|
5688
|
-
|
|
6198
|
+
init_utils2();
|
|
5689
6199
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5690
6200
|
var sync_1 = require_sync3();
|
|
5691
6201
|
var SyncProvider = class {
|
|
@@ -5706,7 +6216,7 @@ var require_sync4 = __commonJS({
|
|
|
5706
6216
|
var require_settings3 = __commonJS({
|
|
5707
6217
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
|
|
5708
6218
|
"use strict";
|
|
5709
|
-
|
|
6219
|
+
init_utils2();
|
|
5710
6220
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5711
6221
|
var path = __require("path");
|
|
5712
6222
|
var fsScandir = require_out2();
|
|
@@ -5739,7 +6249,7 @@ var require_settings3 = __commonJS({
|
|
|
5739
6249
|
var require_out3 = __commonJS({
|
|
5740
6250
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js"(exports) {
|
|
5741
6251
|
"use strict";
|
|
5742
|
-
|
|
6252
|
+
init_utils2();
|
|
5743
6253
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5744
6254
|
exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
|
|
5745
6255
|
var async_1 = require_async4();
|
|
@@ -5780,7 +6290,7 @@ var require_out3 = __commonJS({
|
|
|
5780
6290
|
var require_reader2 = __commonJS({
|
|
5781
6291
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js"(exports) {
|
|
5782
6292
|
"use strict";
|
|
5783
|
-
|
|
6293
|
+
init_utils2();
|
|
5784
6294
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5785
6295
|
var path = __require("path");
|
|
5786
6296
|
var fsStat = require_out();
|
|
@@ -5820,7 +6330,7 @@ var require_reader2 = __commonJS({
|
|
|
5820
6330
|
var require_stream3 = __commonJS({
|
|
5821
6331
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js"(exports) {
|
|
5822
6332
|
"use strict";
|
|
5823
|
-
|
|
6333
|
+
init_utils2();
|
|
5824
6334
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5825
6335
|
var stream_1 = __require("stream");
|
|
5826
6336
|
var fsStat = require_out();
|
|
@@ -5878,7 +6388,7 @@ var require_stream3 = __commonJS({
|
|
|
5878
6388
|
var require_async5 = __commonJS({
|
|
5879
6389
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js"(exports) {
|
|
5880
6390
|
"use strict";
|
|
5881
|
-
|
|
6391
|
+
init_utils2();
|
|
5882
6392
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5883
6393
|
var fsWalk = require_out3();
|
|
5884
6394
|
var reader_1 = require_reader2();
|
|
@@ -5918,7 +6428,7 @@ var require_async5 = __commonJS({
|
|
|
5918
6428
|
var require_matcher = __commonJS({
|
|
5919
6429
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) {
|
|
5920
6430
|
"use strict";
|
|
5921
|
-
|
|
6431
|
+
init_utils2();
|
|
5922
6432
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5923
6433
|
var utils = require_utils3();
|
|
5924
6434
|
var Matcher = class {
|
|
@@ -5970,7 +6480,7 @@ var require_matcher = __commonJS({
|
|
|
5970
6480
|
var require_partial = __commonJS({
|
|
5971
6481
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js"(exports) {
|
|
5972
6482
|
"use strict";
|
|
5973
|
-
|
|
6483
|
+
init_utils2();
|
|
5974
6484
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5975
6485
|
var matcher_1 = require_matcher();
|
|
5976
6486
|
var PartialMatcher = class extends matcher_1.default {
|
|
@@ -6008,7 +6518,7 @@ var require_partial = __commonJS({
|
|
|
6008
6518
|
var require_deep = __commonJS({
|
|
6009
6519
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js"(exports) {
|
|
6010
6520
|
"use strict";
|
|
6011
|
-
|
|
6521
|
+
init_utils2();
|
|
6012
6522
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6013
6523
|
var utils = require_utils3();
|
|
6014
6524
|
var partial_1 = require_partial();
|
|
@@ -6074,7 +6584,7 @@ var require_deep = __commonJS({
|
|
|
6074
6584
|
var require_entry = __commonJS({
|
|
6075
6585
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js"(exports) {
|
|
6076
6586
|
"use strict";
|
|
6077
|
-
|
|
6587
|
+
init_utils2();
|
|
6078
6588
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6079
6589
|
var utils = require_utils3();
|
|
6080
6590
|
var EntryFilter = class {
|
|
@@ -6163,7 +6673,7 @@ var require_entry = __commonJS({
|
|
|
6163
6673
|
var require_error = __commonJS({
|
|
6164
6674
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js"(exports) {
|
|
6165
6675
|
"use strict";
|
|
6166
|
-
|
|
6676
|
+
init_utils2();
|
|
6167
6677
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6168
6678
|
var utils = require_utils3();
|
|
6169
6679
|
var ErrorFilter = class {
|
|
@@ -6185,7 +6695,7 @@ var require_error = __commonJS({
|
|
|
6185
6695
|
var require_entry2 = __commonJS({
|
|
6186
6696
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js"(exports) {
|
|
6187
6697
|
"use strict";
|
|
6188
|
-
|
|
6698
|
+
init_utils2();
|
|
6189
6699
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6190
6700
|
var utils = require_utils3();
|
|
6191
6701
|
var EntryTransformer = class {
|
|
@@ -6218,7 +6728,7 @@ var require_entry2 = __commonJS({
|
|
|
6218
6728
|
var require_provider = __commonJS({
|
|
6219
6729
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js"(exports) {
|
|
6220
6730
|
"use strict";
|
|
6221
|
-
|
|
6731
|
+
init_utils2();
|
|
6222
6732
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6223
6733
|
var path = __require("path");
|
|
6224
6734
|
var deep_1 = require_deep();
|
|
@@ -6273,7 +6783,7 @@ var require_provider = __commonJS({
|
|
|
6273
6783
|
var require_async6 = __commonJS({
|
|
6274
6784
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js"(exports) {
|
|
6275
6785
|
"use strict";
|
|
6276
|
-
|
|
6786
|
+
init_utils2();
|
|
6277
6787
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6278
6788
|
var async_1 = require_async5();
|
|
6279
6789
|
var provider_1 = require_provider();
|
|
@@ -6303,7 +6813,7 @@ var require_async6 = __commonJS({
|
|
|
6303
6813
|
var require_stream4 = __commonJS({
|
|
6304
6814
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js"(exports) {
|
|
6305
6815
|
"use strict";
|
|
6306
|
-
|
|
6816
|
+
init_utils2();
|
|
6307
6817
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6308
6818
|
var stream_1 = __require("stream");
|
|
6309
6819
|
var stream_2 = require_stream3();
|
|
@@ -6338,7 +6848,7 @@ var require_stream4 = __commonJS({
|
|
|
6338
6848
|
var require_sync5 = __commonJS({
|
|
6339
6849
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js"(exports) {
|
|
6340
6850
|
"use strict";
|
|
6341
|
-
|
|
6851
|
+
init_utils2();
|
|
6342
6852
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6343
6853
|
var fsStat = require_out();
|
|
6344
6854
|
var fsWalk = require_out3();
|
|
@@ -6387,7 +6897,7 @@ var require_sync5 = __commonJS({
|
|
|
6387
6897
|
var require_sync6 = __commonJS({
|
|
6388
6898
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js"(exports) {
|
|
6389
6899
|
"use strict";
|
|
6390
|
-
|
|
6900
|
+
init_utils2();
|
|
6391
6901
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6392
6902
|
var sync_1 = require_sync5();
|
|
6393
6903
|
var provider_1 = require_provider();
|
|
@@ -6417,7 +6927,7 @@ var require_sync6 = __commonJS({
|
|
|
6417
6927
|
var require_settings4 = __commonJS({
|
|
6418
6928
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js"(exports) {
|
|
6419
6929
|
"use strict";
|
|
6420
|
-
|
|
6930
|
+
init_utils2();
|
|
6421
6931
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6422
6932
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
6423
6933
|
var fs2 = __require("fs");
|
|
@@ -6478,7 +6988,7 @@ var require_settings4 = __commonJS({
|
|
|
6478
6988
|
var require_out4 = __commonJS({
|
|
6479
6989
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/index.js"(exports, module) {
|
|
6480
6990
|
"use strict";
|
|
6481
|
-
|
|
6991
|
+
init_utils2();
|
|
6482
6992
|
var taskManager = require_tasks();
|
|
6483
6993
|
var async_1 = require_async6();
|
|
6484
6994
|
var stream_1 = require_stream4();
|
|
@@ -6597,7 +7107,7 @@ var I18N_PATHS, SCAN_PATTERNS, GLOB_OPTIONS;
|
|
|
6597
7107
|
var init_constants = __esm({
|
|
6598
7108
|
"packages/core/config/constants.js"() {
|
|
6599
7109
|
"use strict";
|
|
6600
|
-
|
|
7110
|
+
init_utils2();
|
|
6601
7111
|
I18N_PATHS = {
|
|
6602
7112
|
// Monorepo source structure (locales at root, not in src/)
|
|
6603
7113
|
SOURCE_ROOT: "packages/core/i18n",
|
|
@@ -6759,7 +7269,7 @@ var import_fast_glob, constants, log2, PACKAGE_PATHS, PathResolver;
|
|
|
6759
7269
|
var init_PathResolver = __esm({
|
|
6760
7270
|
"packages/core/config/utils/PathResolver.ts"() {
|
|
6761
7271
|
"use strict";
|
|
6762
|
-
|
|
7272
|
+
init_utils2();
|
|
6763
7273
|
import_fast_glob = __toESM(require_out4(), 1);
|
|
6764
7274
|
init_constants();
|
|
6765
7275
|
constants = {
|
|
@@ -7763,7 +8273,7 @@ var pathResolverInstance, getRepoRoot, normalizePath, pathExists, readSync, writ
|
|
|
7763
8273
|
var init_pathResolver = __esm({
|
|
7764
8274
|
"packages/tooling/src/utils/pathResolver.ts"() {
|
|
7765
8275
|
"use strict";
|
|
7766
|
-
|
|
8276
|
+
init_utils2();
|
|
7767
8277
|
init_PathResolver();
|
|
7768
8278
|
pathResolverInstance = PathResolver.getInstance({ debug: false });
|
|
7769
8279
|
getRepoRoot = () => pathResolverInstance.getRepoRoot();
|
|
@@ -7820,7 +8330,7 @@ function readPackageJson(filePath) {
|
|
|
7820
8330
|
var init_typed_file_operations = __esm({
|
|
7821
8331
|
"packages/tooling/src/utils/typed-file-operations.ts"() {
|
|
7822
8332
|
"use strict";
|
|
7823
|
-
|
|
8333
|
+
init_utils2();
|
|
7824
8334
|
init_errors();
|
|
7825
8335
|
init_pathResolver();
|
|
7826
8336
|
}
|
|
@@ -7834,7 +8344,7 @@ import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
|
7834
8344
|
import process from "node:process";
|
|
7835
8345
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
7836
8346
|
var require2, __filename, __dirname;
|
|
7837
|
-
var
|
|
8347
|
+
var init_utils2 = __esm({
|
|
7838
8348
|
"packages/tooling/src/bundler/utils.ts"() {
|
|
7839
8349
|
"use strict";
|
|
7840
8350
|
require2 = createRequire3(import.meta.url);
|
|
@@ -7854,6 +8364,18 @@ var init_utils = __esm({
|
|
|
7854
8364
|
});
|
|
7855
8365
|
|
|
7856
8366
|
// packages/tooling/src/utils/app-detection.ts
|
|
8367
|
+
function getFunctionsPath(app) {
|
|
8368
|
+
switch (app.functions) {
|
|
8369
|
+
case "firebase":
|
|
8370
|
+
return joinPath(app.path, "functions");
|
|
8371
|
+
case "supabase":
|
|
8372
|
+
return joinPath(app.path, "supabase", "functions");
|
|
8373
|
+
case "vercel":
|
|
8374
|
+
return joinPath(app.path, "api");
|
|
8375
|
+
default:
|
|
8376
|
+
return null;
|
|
8377
|
+
}
|
|
8378
|
+
}
|
|
7857
8379
|
function detectApps(projectRoot) {
|
|
7858
8380
|
const apps = [];
|
|
7859
8381
|
const appsDir = joinPath(projectRoot, "apps");
|
|
@@ -7909,43 +8431,124 @@ function analyzeApp(appPath, appName) {
|
|
|
7909
8431
|
} else if (pathExists(joinPath(appPath, "vite.config.ts")) || pathExists(joinPath(appPath, "vite.config.js")) || pathExists(joinPath(appPath, "vite.config.mjs")) || packageJson.dependencies?.vite || packageJson.devDependencies?.vite) {
|
|
7910
8432
|
framework = "vite";
|
|
7911
8433
|
}
|
|
7912
|
-
const
|
|
7913
|
-
const
|
|
7914
|
-
const
|
|
7915
|
-
|
|
7916
|
-
const
|
|
7917
|
-
|
|
7918
|
-
if (
|
|
7919
|
-
|
|
8434
|
+
const firebaseJsonPath = joinPath(appPath, "firebase.json");
|
|
8435
|
+
const hasFirebase = pathExists(firebaseJsonPath);
|
|
8436
|
+
const supabaseDir = joinPath(appPath, "supabase");
|
|
8437
|
+
const supabaseConfigPath = joinPath(supabaseDir, "config.toml");
|
|
8438
|
+
const hasSupabaseDep = !!(packageJson.dependencies?.["@donotdev/supabase"] || packageJson.dependencies?.["@supabase/supabase-js"]);
|
|
8439
|
+
let hasSupabase = pathExists(supabaseDir) || pathExists(supabaseConfigPath) || hasSupabaseDep;
|
|
8440
|
+
if (!hasSupabase) {
|
|
8441
|
+
try {
|
|
8442
|
+
const envPath = joinPath(appPath, ".env");
|
|
8443
|
+
if (pathExists(envPath)) {
|
|
8444
|
+
const envContent = readSync(envPath);
|
|
8445
|
+
if (envContent.match(/VITE_SUPABASE_URL=.+/)) {
|
|
8446
|
+
hasSupabase = true;
|
|
8447
|
+
}
|
|
8448
|
+
}
|
|
8449
|
+
} catch {
|
|
8450
|
+
}
|
|
8451
|
+
}
|
|
8452
|
+
let provider = "unknown";
|
|
8453
|
+
if (hasFirebase && hasSupabase) {
|
|
8454
|
+
provider = "both";
|
|
8455
|
+
} else if (hasFirebase) {
|
|
8456
|
+
provider = "firebase";
|
|
8457
|
+
} else if (hasSupabase) {
|
|
8458
|
+
provider = "supabase";
|
|
8459
|
+
}
|
|
8460
|
+
let firebaseConfig;
|
|
8461
|
+
if (hasFirebase) {
|
|
8462
|
+
try {
|
|
8463
|
+
const config = readSync(firebaseJsonPath, { format: "json" });
|
|
8464
|
+
if (config && typeof config === "object") {
|
|
8465
|
+
const fb = config;
|
|
8466
|
+
firebaseConfig = {
|
|
8467
|
+
projectId: fb.projectId,
|
|
8468
|
+
hasHosting: !!fb.hosting,
|
|
8469
|
+
hasFunctions: !!fb.functions,
|
|
8470
|
+
hasFirestoreRules: !!fb.firestore?.rules,
|
|
8471
|
+
hasStorageRules: !!fb.storage?.rules
|
|
8472
|
+
};
|
|
8473
|
+
}
|
|
8474
|
+
} catch {
|
|
8475
|
+
firebaseConfig = {
|
|
8476
|
+
hasHosting: false,
|
|
8477
|
+
hasFunctions: false,
|
|
8478
|
+
hasFirestoreRules: false,
|
|
8479
|
+
hasStorageRules: false
|
|
8480
|
+
};
|
|
8481
|
+
}
|
|
8482
|
+
}
|
|
8483
|
+
const supabaseFunctionsDir = joinPath(supabaseDir, "functions");
|
|
8484
|
+
const supabaseMigrationsDir = joinPath(supabaseDir, "migrations");
|
|
8485
|
+
let supabaseConfig;
|
|
8486
|
+
if (hasSupabase) {
|
|
8487
|
+
let url;
|
|
8488
|
+
try {
|
|
8489
|
+
const envPath = joinPath(appPath, ".env");
|
|
8490
|
+
if (pathExists(envPath)) {
|
|
8491
|
+
const envContent = readSync(envPath);
|
|
8492
|
+
const urlMatch = envContent.match(/VITE_SUPABASE_URL=(.+)/);
|
|
8493
|
+
if (urlMatch && urlMatch[1]) {
|
|
8494
|
+
url = urlMatch[1].trim();
|
|
8495
|
+
}
|
|
8496
|
+
}
|
|
8497
|
+
} catch {
|
|
8498
|
+
}
|
|
8499
|
+
supabaseConfig = {
|
|
8500
|
+
url,
|
|
8501
|
+
hasFunctions: pathExists(supabaseFunctionsDir),
|
|
8502
|
+
hasMigrations: pathExists(supabaseMigrationsDir)
|
|
8503
|
+
};
|
|
8504
|
+
}
|
|
8505
|
+
let functions;
|
|
8506
|
+
if (hasFirebase && firebaseConfig?.hasFunctions) {
|
|
8507
|
+
const firebaseFunctionsDir = joinPath(appPath, "functions");
|
|
8508
|
+
const firebaseFunctionsStat = statSync2(firebaseFunctionsDir);
|
|
8509
|
+
if (pathExists(firebaseFunctionsDir) && (firebaseFunctionsStat?.isDirectory() ?? false)) {
|
|
8510
|
+
functions = "firebase";
|
|
8511
|
+
}
|
|
7920
8512
|
}
|
|
7921
|
-
if (!
|
|
7922
|
-
const
|
|
7923
|
-
|
|
7924
|
-
|
|
7925
|
-
platform5 = "supabase";
|
|
8513
|
+
if (!functions && hasSupabase) {
|
|
8514
|
+
const sbFunctionsStat = statSync2(supabaseFunctionsDir);
|
|
8515
|
+
if (pathExists(supabaseFunctionsDir) && (sbFunctionsStat?.isDirectory() ?? false)) {
|
|
8516
|
+
functions = "supabase";
|
|
7926
8517
|
}
|
|
7927
8518
|
}
|
|
7928
|
-
if (!
|
|
8519
|
+
if (!functions) {
|
|
7929
8520
|
const vercelJsonPath = joinPath(appPath, "vercel.json");
|
|
7930
|
-
|
|
7931
|
-
|
|
8521
|
+
const apiDir = joinPath(appPath, "api");
|
|
8522
|
+
const apiDirStat = statSync2(apiDir);
|
|
8523
|
+
if (pathExists(vercelJsonPath) && pathExists(apiDir) && (apiDirStat?.isDirectory() ?? false)) {
|
|
8524
|
+
functions = "vercel";
|
|
8525
|
+
}
|
|
8526
|
+
}
|
|
8527
|
+
let hosting;
|
|
8528
|
+
if (hasFirebase && firebaseConfig?.hasHosting) {
|
|
8529
|
+
hosting = "firebase";
|
|
8530
|
+
}
|
|
8531
|
+
if (!hosting) {
|
|
8532
|
+
if (pathExists(joinPath(appPath, "vercel.json")) || pathExists(joinPath(appPath, ".vercel"))) {
|
|
8533
|
+
hosting = "vercel";
|
|
7932
8534
|
}
|
|
7933
8535
|
}
|
|
7934
8536
|
return {
|
|
7935
8537
|
name: appName,
|
|
7936
8538
|
packageName: packageJson.name || appName,
|
|
7937
8539
|
path: appPath,
|
|
7938
|
-
packageJsonPath,
|
|
7939
8540
|
framework,
|
|
7940
|
-
|
|
7941
|
-
|
|
7942
|
-
|
|
8541
|
+
provider,
|
|
8542
|
+
functions,
|
|
8543
|
+
hosting,
|
|
8544
|
+
firebaseConfig,
|
|
8545
|
+
supabaseConfig
|
|
7943
8546
|
};
|
|
7944
8547
|
}
|
|
7945
8548
|
var init_app_detection = __esm({
|
|
7946
8549
|
"packages/tooling/src/utils/app-detection.ts"() {
|
|
7947
8550
|
"use strict";
|
|
7948
|
-
|
|
8551
|
+
init_utils2();
|
|
7949
8552
|
init_pathResolver();
|
|
7950
8553
|
init_typed_file_operations();
|
|
7951
8554
|
}
|
|
@@ -7973,11 +8576,11 @@ async function selectApp(projectRoot, appName) {
|
|
|
7973
8576
|
if (apps.length === 1) {
|
|
7974
8577
|
return apps[0] || null;
|
|
7975
8578
|
}
|
|
7976
|
-
const selected = await
|
|
8579
|
+
const selected = await _t({
|
|
7977
8580
|
message: "Select app:",
|
|
7978
8581
|
options: apps.map((app) => ({
|
|
7979
8582
|
value: app.name,
|
|
7980
|
-
label: `${app.name} (${app.framework === "nextjs" ? "Next.js" : "Vite"}${app.
|
|
8583
|
+
label: `${app.name} (${app.framework === "nextjs" ? "Next.js" : "Vite"}${app.functions ? ` + ${app.functions} functions` : ""})`
|
|
7981
8584
|
}))
|
|
7982
8585
|
});
|
|
7983
8586
|
if (typeof selected !== "string") {
|
|
@@ -7988,8 +8591,8 @@ async function selectApp(projectRoot, appName) {
|
|
|
7988
8591
|
var init_app_selector = __esm({
|
|
7989
8592
|
"packages/tooling/src/utils/app-selector.ts"() {
|
|
7990
8593
|
"use strict";
|
|
7991
|
-
|
|
7992
|
-
|
|
8594
|
+
init_utils2();
|
|
8595
|
+
init_dist4();
|
|
7993
8596
|
init_app_detection();
|
|
7994
8597
|
init_cli_output();
|
|
7995
8598
|
}
|
|
@@ -8003,13 +8606,13 @@ async function askForMultiSelection(message, choices, defaultIndices = []) {
|
|
|
8003
8606
|
hint: choice.hint
|
|
8004
8607
|
}));
|
|
8005
8608
|
const initialValues = defaultIndices.map((i) => choices[i]?.value).filter(Boolean);
|
|
8006
|
-
const result = await
|
|
8609
|
+
const result = await yt({
|
|
8007
8610
|
message,
|
|
8008
8611
|
options,
|
|
8009
8612
|
initialValues: initialValues.length > 0 ? initialValues : void 0
|
|
8010
8613
|
});
|
|
8011
|
-
if (
|
|
8012
|
-
|
|
8614
|
+
if (q(result)) {
|
|
8615
|
+
pt("Operation cancelled.");
|
|
8013
8616
|
process.exit(0);
|
|
8014
8617
|
}
|
|
8015
8618
|
return result;
|
|
@@ -8017,22 +8620,22 @@ async function askForMultiSelection(message, choices, defaultIndices = []) {
|
|
|
8017
8620
|
var init_cli_input = __esm({
|
|
8018
8621
|
"packages/tooling/src/utils/cli-input.ts"() {
|
|
8019
8622
|
"use strict";
|
|
8020
|
-
|
|
8021
|
-
|
|
8623
|
+
init_utils2();
|
|
8624
|
+
init_dist4();
|
|
8022
8625
|
}
|
|
8023
8626
|
});
|
|
8024
8627
|
|
|
8025
8628
|
// packages/cli/src/bin/commands/emu.ts
|
|
8026
|
-
|
|
8629
|
+
init_utils2();
|
|
8027
8630
|
|
|
8028
8631
|
// packages/tooling/src/index.ts
|
|
8029
|
-
|
|
8632
|
+
init_utils2();
|
|
8030
8633
|
|
|
8031
8634
|
// packages/tooling/src/cli/index.ts
|
|
8032
|
-
|
|
8635
|
+
init_utils2();
|
|
8033
8636
|
|
|
8034
8637
|
// packages/tooling/src/utils/spawn-utils.ts
|
|
8035
|
-
|
|
8638
|
+
init_utils2();
|
|
8036
8639
|
import {
|
|
8037
8640
|
spawn,
|
|
8038
8641
|
spawnSync,
|
|
@@ -8048,7 +8651,7 @@ function createAppEnv(appPath) {
|
|
|
8048
8651
|
function spawnCrossPlatform(command, args, options) {
|
|
8049
8652
|
const isWindows = platform() === "win32";
|
|
8050
8653
|
const useShell = options.shell ?? isWindows;
|
|
8051
|
-
const { shell:
|
|
8654
|
+
const { shell: _, ...rest } = options;
|
|
8052
8655
|
if (useShell) {
|
|
8053
8656
|
return spawn(command, args, { ...rest, shell: true });
|
|
8054
8657
|
}
|
|
@@ -8088,16 +8691,17 @@ function createEmulatorEnv(appPath, framework = "vite", options) {
|
|
|
8088
8691
|
}
|
|
8089
8692
|
|
|
8090
8693
|
// packages/tooling/src/apps/emu.ts
|
|
8091
|
-
|
|
8694
|
+
init_utils2();
|
|
8092
8695
|
|
|
8093
8696
|
// packages/tooling/src/apps/emu-firebase.ts
|
|
8094
|
-
|
|
8697
|
+
init_utils2();
|
|
8095
8698
|
init_cli_input();
|
|
8096
8699
|
init_cli_output();
|
|
8097
8700
|
init_pathResolver();
|
|
8098
|
-
import { spawnSync as spawnSync2,
|
|
8701
|
+
import { spawnSync as spawnSync2, execFileSync } from "node:child_process";
|
|
8099
8702
|
import { platform as platform2 } from "node:os";
|
|
8100
8703
|
init_typed_file_operations();
|
|
8704
|
+
init_app_detection();
|
|
8101
8705
|
function discoverFirebaseProjectId(appPath) {
|
|
8102
8706
|
const firebasercPath = joinPath(appPath, ".firebaserc");
|
|
8103
8707
|
if (pathExists(firebasercPath)) {
|
|
@@ -8112,16 +8716,22 @@ function discoverFirebaseProjectId(appPath) {
|
|
|
8112
8716
|
}
|
|
8113
8717
|
return process.env.FIREBASE_PROJECT_ID || null;
|
|
8114
8718
|
}
|
|
8719
|
+
function validatePort(port) {
|
|
8720
|
+
if (!Number.isInteger(port) || port < 1 || port > 65535) {
|
|
8721
|
+
throw new Error(`Invalid port number: ${port}`);
|
|
8722
|
+
}
|
|
8723
|
+
}
|
|
8115
8724
|
function killPorts(ports) {
|
|
8116
8725
|
if (ports.length === 0) return;
|
|
8117
8726
|
const isWindows = process.platform === "win32";
|
|
8118
8727
|
for (const port of ports) {
|
|
8728
|
+
validatePort(port);
|
|
8119
8729
|
try {
|
|
8120
8730
|
if (isWindows) {
|
|
8121
|
-
const findPort =
|
|
8731
|
+
const findPort = execFileSync("netstat", ["-ano"], {
|
|
8122
8732
|
encoding: "utf-8"
|
|
8123
8733
|
});
|
|
8124
|
-
const lines = findPort.trim().split("\n");
|
|
8734
|
+
const lines = findPort.trim().split("\n").filter((l) => l.includes(`:${port}`));
|
|
8125
8735
|
const pids = /* @__PURE__ */ new Set();
|
|
8126
8736
|
for (const line of lines) {
|
|
8127
8737
|
const match = line.match(/\s+(\d+)\s*$/);
|
|
@@ -8131,21 +8741,21 @@ function killPorts(ports) {
|
|
|
8131
8741
|
}
|
|
8132
8742
|
for (const pid of Array.from(pids)) {
|
|
8133
8743
|
try {
|
|
8134
|
-
|
|
8744
|
+
execFileSync("taskkill", ["/F", "/PID", pid], { stdio: "ignore" });
|
|
8135
8745
|
log.debug(`Killed process ${pid} on port ${port}`);
|
|
8136
8746
|
} catch {
|
|
8137
8747
|
}
|
|
8138
8748
|
}
|
|
8139
8749
|
} else {
|
|
8140
8750
|
try {
|
|
8141
|
-
const output =
|
|
8751
|
+
const output = execFileSync("lsof", ["-ti:" + port], {
|
|
8142
8752
|
encoding: "utf-8"
|
|
8143
8753
|
}).trim();
|
|
8144
8754
|
if (output) {
|
|
8145
8755
|
const pids = output.split("\n").filter(Boolean);
|
|
8146
8756
|
for (const pid of pids) {
|
|
8147
8757
|
try {
|
|
8148
|
-
|
|
8758
|
+
process.kill(Number(pid), "SIGKILL");
|
|
8149
8759
|
log.debug(`Killed process ${pid} on port ${port}`);
|
|
8150
8760
|
} catch {
|
|
8151
8761
|
}
|
|
@@ -8237,7 +8847,7 @@ async function startFirebase(app, projectRoot, options = {}) {
|
|
|
8237
8847
|
log.error("Functions emulator is required for Firebase apps.");
|
|
8238
8848
|
return 1;
|
|
8239
8849
|
}
|
|
8240
|
-
const functionsDir = app
|
|
8850
|
+
const functionsDir = getFunctionsPath(app);
|
|
8241
8851
|
const envLocalPath = joinPath(functionsDir, ".env.local");
|
|
8242
8852
|
if (pathExists(envLocalPath)) {
|
|
8243
8853
|
loadEnvFile(envLocalPath);
|
|
@@ -8375,10 +8985,14 @@ FIREBASE_AUTH_EMULATOR_HOST=${authEmulatorHost}
|
|
|
8375
8985
|
log.debug(`Received ${signal}, cleaning up processes...`);
|
|
8376
8986
|
if (isWindows) {
|
|
8377
8987
|
try {
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
|
|
8381
|
-
|
|
8988
|
+
execFileSync(
|
|
8989
|
+
"taskkill",
|
|
8990
|
+
["/F", "/T", "/PID", String(childProcess.pid)],
|
|
8991
|
+
{
|
|
8992
|
+
stdio: "ignore",
|
|
8993
|
+
timeout: 2e3
|
|
8994
|
+
}
|
|
8995
|
+
);
|
|
8382
8996
|
} catch {
|
|
8383
8997
|
}
|
|
8384
8998
|
} else {
|
|
@@ -8387,7 +9001,7 @@ FIREBASE_AUTH_EMULATOR_HOST=${authEmulatorHost}
|
|
|
8387
9001
|
} catch {
|
|
8388
9002
|
}
|
|
8389
9003
|
try {
|
|
8390
|
-
|
|
9004
|
+
execFileSync("pkill", ["-P", String(childProcess.pid)], {
|
|
8391
9005
|
stdio: "ignore",
|
|
8392
9006
|
timeout: 1e3
|
|
8393
9007
|
});
|
|
@@ -8400,7 +9014,7 @@ FIREBASE_AUTH_EMULATOR_HOST=${authEmulatorHost}
|
|
|
8400
9014
|
for (const signal of signals) {
|
|
8401
9015
|
const handler = () => {
|
|
8402
9016
|
cleanup(signal);
|
|
8403
|
-
handlers.forEach((
|
|
9017
|
+
handlers.forEach((h) => h());
|
|
8404
9018
|
process.exit(SIGNAL_EXIT_CODES[signal] ?? 130);
|
|
8405
9019
|
};
|
|
8406
9020
|
process.on(signal, handler);
|
|
@@ -8408,7 +9022,7 @@ FIREBASE_AUTH_EMULATOR_HOST=${authEmulatorHost}
|
|
|
8408
9022
|
}
|
|
8409
9023
|
return new Promise((resolve4) => {
|
|
8410
9024
|
childProcess.on("exit", (code, signal) => {
|
|
8411
|
-
handlers.forEach((
|
|
9025
|
+
handlers.forEach((h) => h());
|
|
8412
9026
|
if (signal) {
|
|
8413
9027
|
log.debug(`Process killed by signal: ${signal}`);
|
|
8414
9028
|
resolve4(SIGNAL_EXIT_CODES[signal] ?? 130);
|
|
@@ -8417,7 +9031,7 @@ FIREBASE_AUTH_EMULATOR_HOST=${authEmulatorHost}
|
|
|
8417
9031
|
}
|
|
8418
9032
|
});
|
|
8419
9033
|
childProcess.on("error", (error2) => {
|
|
8420
|
-
handlers.forEach((
|
|
9034
|
+
handlers.forEach((h) => h());
|
|
8421
9035
|
log.error(`Failed to start Firebase emulators: ${error2.message}`);
|
|
8422
9036
|
resolve4(1);
|
|
8423
9037
|
});
|
|
@@ -8425,13 +9039,13 @@ FIREBASE_AUTH_EMULATOR_HOST=${authEmulatorHost}
|
|
|
8425
9039
|
}
|
|
8426
9040
|
|
|
8427
9041
|
// packages/tooling/src/apps/emu-supabase.ts
|
|
8428
|
-
|
|
9042
|
+
init_utils2();
|
|
8429
9043
|
init_cli_output();
|
|
8430
|
-
import { execSync as
|
|
9044
|
+
import { execFileSync as execFileSync2, execSync as execSync2 } from "node:child_process";
|
|
8431
9045
|
import { platform as platform3 } from "node:os";
|
|
8432
9046
|
function isDockerRunning() {
|
|
8433
9047
|
try {
|
|
8434
|
-
|
|
9048
|
+
execSync2("docker info", { stdio: "pipe", timeout: 5e3 });
|
|
8435
9049
|
return true;
|
|
8436
9050
|
} catch {
|
|
8437
9051
|
return false;
|
|
@@ -8446,7 +9060,7 @@ async function startSupabase(app, _projectRoot) {
|
|
|
8446
9060
|
return 1;
|
|
8447
9061
|
}
|
|
8448
9062
|
try {
|
|
8449
|
-
|
|
9063
|
+
execSync2("supabase --version", { stdio: "pipe" });
|
|
8450
9064
|
} catch {
|
|
8451
9065
|
log.error("Supabase CLI not found. Install it:");
|
|
8452
9066
|
log.error(" bun install -g supabase\n");
|
|
@@ -8476,10 +9090,14 @@ async function startSupabase(app, _projectRoot) {
|
|
|
8476
9090
|
if (!childProcess.pid) return;
|
|
8477
9091
|
if (isWindows) {
|
|
8478
9092
|
try {
|
|
8479
|
-
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
|
-
|
|
9093
|
+
execFileSync2(
|
|
9094
|
+
"taskkill",
|
|
9095
|
+
["/F", "/T", "/PID", String(childProcess.pid)],
|
|
9096
|
+
{
|
|
9097
|
+
stdio: "ignore",
|
|
9098
|
+
timeout: 2e3
|
|
9099
|
+
}
|
|
9100
|
+
);
|
|
8483
9101
|
} catch {
|
|
8484
9102
|
}
|
|
8485
9103
|
} else {
|
|
@@ -8507,15 +9125,15 @@ async function startSupabase(app, _projectRoot) {
|
|
|
8507
9125
|
}
|
|
8508
9126
|
|
|
8509
9127
|
// packages/tooling/src/apps/emu-vercel.ts
|
|
8510
|
-
|
|
9128
|
+
init_utils2();
|
|
8511
9129
|
init_cli_output();
|
|
8512
|
-
import { execSync as
|
|
9130
|
+
import { execFileSync as execFileSync3, execSync as execSync3 } from "node:child_process";
|
|
8513
9131
|
import { platform as platform4 } from "node:os";
|
|
8514
9132
|
async function startVercel(app, _projectRoot) {
|
|
8515
9133
|
log.info(`Starting Vercel dev server for ${app.name}...
|
|
8516
9134
|
`);
|
|
8517
9135
|
try {
|
|
8518
|
-
|
|
9136
|
+
execSync3("vercel --version", { stdio: "pipe" });
|
|
8519
9137
|
} catch {
|
|
8520
9138
|
log.error("Vercel CLI not found. Install it:");
|
|
8521
9139
|
log.error(" bun install -g vercel\n");
|
|
@@ -8530,10 +9148,14 @@ async function startVercel(app, _projectRoot) {
|
|
|
8530
9148
|
if (!childProcess.pid) return;
|
|
8531
9149
|
if (isWindows) {
|
|
8532
9150
|
try {
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
|
|
9151
|
+
execFileSync3(
|
|
9152
|
+
"taskkill",
|
|
9153
|
+
["/F", "/T", "/PID", String(childProcess.pid)],
|
|
9154
|
+
{
|
|
9155
|
+
stdio: "ignore",
|
|
9156
|
+
timeout: 2e3
|
|
9157
|
+
}
|
|
9158
|
+
);
|
|
8537
9159
|
} catch {
|
|
8538
9160
|
}
|
|
8539
9161
|
} else {
|
|
@@ -8581,9 +9203,10 @@ async function main(options) {
|
|
|
8581
9203
|
if (!app) {
|
|
8582
9204
|
return 1;
|
|
8583
9205
|
}
|
|
8584
|
-
|
|
9206
|
+
const emuTarget = app.functions || app.provider;
|
|
9207
|
+
switch (emuTarget) {
|
|
8585
9208
|
case "firebase": {
|
|
8586
|
-
if (!app.
|
|
9209
|
+
if (!app.functions) {
|
|
8587
9210
|
log.error(
|
|
8588
9211
|
`App "${app.name}" has Firebase config but no functions directory.`
|
|
8589
9212
|
);
|
|
@@ -8601,7 +9224,7 @@ async function main(options) {
|
|
|
8601
9224
|
case "vercel":
|
|
8602
9225
|
return startVercel(app, projectRoot);
|
|
8603
9226
|
default:
|
|
8604
|
-
log.error(`App "${app.name}" does not have a detected backend
|
|
9227
|
+
log.error(`App "${app.name}" does not have a detected backend.`);
|
|
8605
9228
|
log.error(
|
|
8606
9229
|
"Expected: firebase.json (Firebase), supabase/config.toml or @donotdev/supabase (Supabase), or vercel.json (Vercel)."
|
|
8607
9230
|
);
|