@donotdev/cli 0.1.1 → 0.1.44
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 +93 -40
- package/dist/bin/commands/agent-setup.js +695 -420
- package/dist/bin/commands/build.js +1181 -832
- package/dist/bin/commands/bump.js +1065 -771
- package/dist/bin/commands/cacheout.js +253 -355
- package/dist/bin/commands/coach.js +275 -375
- package/dist/bin/commands/create-app.js +1085 -790
- package/dist/bin/commands/create-project.js +1117 -819
- package/dist/bin/commands/db.js +17045 -16542
- package/dist/bin/commands/deploy.js +1999 -1367
- package/dist/bin/commands/dev.js +879 -627
- package/dist/bin/commands/doctor.js +696 -425
- package/dist/bin/commands/emu.js +1001 -712
- package/dist/bin/commands/format.js +253 -355
- package/dist/bin/commands/get-demo.js +979 -706
- package/dist/bin/commands/make-admin.js +6279 -5746
- package/dist/bin/commands/preview.js +883 -628
- package/dist/bin/commands/seed.js +17058 -16555
- package/dist/bin/commands/setup-cicd.js +1024 -749
- package/dist/bin/commands/setup.js +1162 -844
- package/dist/bin/commands/staging.js +2000 -1368
- package/dist/bin/commands/sync-secrets.js +1181 -667
- package/dist/bin/commands/type-check.js +735 -461
- package/dist/bin/commands/wai.js +258 -360
- package/dist/bin/dndev.js +31 -16
- package/dist/bin/donotdev.js +31 -16
- package/dist/index.js +2200 -1513
- package/guidelines/DEPENDENCIES.md +155 -0
- package/guidelines/VERSION_CONTROL.md +0 -0
- package/package.json +1 -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 +6 -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 -0
- 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 +1 -1
- 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 +5 -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/not-found.tsx.example +14 -1
- package/templates/app-next/src/config/app.ts.example +1 -1
- 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 +7 -1
- package/templates/app-vite/.env.example +0 -33
- package/templates/app-vite/csp.example.json +0 -0
- package/templates/app-vite/index.html.example +0 -0
- 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 +1 -1
- 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 +5 -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 +0 -0
- package/templates/functions-supabase/supabase/migrations/20250101000001_rate_limits.sql +0 -0
- package/templates/functions-supabase/supabase/migrations/20250101000002_cleanup_jobs.sql +0 -0
- package/templates/functions-supabase/supabase/migrations/20250101000003_operation_metrics.sql +0 -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 +0 -0
- package/templates/root-consumer/.claude/hooks/guard-write.sh.example +2 -35
- package/templates/root-consumer/.claude/hooks/session-start.sh.example +1 -1
- package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +0 -0
- package/templates/root-consumer/.claude/rules/consumer-ux.md.example +1 -1
- package/templates/root-consumer/.claude/rules/definition-of-done.md.example +0 -0
- package/templates/root-consumer/.claude/rules/framework.md.example +0 -0
- package/templates/root-consumer/.claude/rules/git.md.example +0 -0
- package/templates/root-consumer/.claude/rules/security.md.example +0 -0
- package/templates/root-consumer/.claude/settings.json.example +1 -27
- package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +0 -0
- package/templates/root-consumer/.claude/skills/build/SKILL.md.example +23 -106
- 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 +0 -0
- package/templates/root-consumer/.claude/skills/polish/SKILL.md.example +0 -0
- 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 -33
- 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/root-consumer/.claude/hooks/framework-compliance.sh.example +0 -56
- package/templates/root-consumer/.claude/hooks/guard-files.sh.example +0 -46
- package/templates/root-consumer/.claude/hooks/guard-mcp.sh.example +0 -91
- package/templates/root-consumer/.claude/hooks/guard-secrets.sh.example +0 -67
- package/templates/root-consumer/.claude/hooks/track-mcp-lookup.sh.example +0 -20
- 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/INDEX.md.example +0 -56
- package/templates/root-consumer/guides/dndev/SETUP_AUTH.md.example +0 -134
- package/templates/root-consumer/guides/dndev/SETUP_BILLING.md.example +0 -114
- package/templates/root-consumer/guides/dndev/SETUP_FIREBASE.md.example +0 -231
- package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +0 -59
- package/templates/root-consumer/guides/dndev/SETUP_OAUTH_PROVIDERS.md.example +0 -60
- 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 -262
- 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/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 -148
- package/templates/root-consumer/guides/wai-way/blueprints/4_configure.md.example +0 -238
- package/templates/root-consumer/guides/wai-way/context_map.json.example +0 -127
- package/templates/root-consumer/guides/wai-way/entity_patterns.md.example +0 -839
- package/templates/root-consumer/guides/wai-way/hld_template.md.example +0 -138
- package/templates/root-consumer/guides/wai-way/lld_template.md.example +0 -103
- package/templates/root-consumer/guides/wai-way/page_patterns.md.example +0 -722
- package/templates/root-consumer/guides/wai-way/prd_template.md.example +0 -140
- package/templates/root-consumer/guides/wai-way/presets_guide.md.example +0 -217
- package/templates/root-consumer/guides/wai-way/spec_template.md.example +0 -313
|
@@ -4,11 +4,11 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __require = /* @__PURE__ */ ((
|
|
8
|
-
get: (a,
|
|
9
|
-
}) :
|
|
7
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
+
}) : x)(function(x) {
|
|
10
10
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
-
throw Error('Dynamic require of "' +
|
|
11
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
12
|
});
|
|
13
13
|
var __esm = (fn, res) => function __init() {
|
|
14
14
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
@@ -37,50 +37,456 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
37
37
|
mod
|
|
38
38
|
));
|
|
39
39
|
|
|
40
|
+
// node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/utils.js
|
|
41
|
+
var isAmbiguous, isFullWidth, isWide;
|
|
42
|
+
var init_utils = __esm({
|
|
43
|
+
"node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/utils.js"() {
|
|
44
|
+
init_utils2();
|
|
45
|
+
isAmbiguous = (x) => {
|
|
46
|
+
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;
|
|
47
|
+
};
|
|
48
|
+
isFullWidth = (x) => {
|
|
49
|
+
return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
|
|
50
|
+
};
|
|
51
|
+
isWide = (x) => {
|
|
52
|
+
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;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
// node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/index.js
|
|
58
|
+
var ANSI_RE, CONTROL_RE, TAB_RE, EMOJI_RE, LATIN_RE, MODIFIER_RE, NO_TRUNCATION, getStringTruncatedWidth, dist_default;
|
|
59
|
+
var init_dist = __esm({
|
|
60
|
+
"node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/index.js"() {
|
|
61
|
+
init_utils2();
|
|
62
|
+
init_utils();
|
|
63
|
+
ANSI_RE = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y;
|
|
64
|
+
CONTROL_RE = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
|
|
65
|
+
TAB_RE = /\t{1,1000}/y;
|
|
66
|
+
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");
|
|
67
|
+
LATIN_RE = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
|
|
68
|
+
MODIFIER_RE = new RegExp("\\p{M}+", "gu");
|
|
69
|
+
NO_TRUNCATION = { limit: Infinity, ellipsis: "" };
|
|
70
|
+
getStringTruncatedWidth = (input, truncationOptions = {}, widthOptions = {}) => {
|
|
71
|
+
const LIMIT = truncationOptions.limit ?? Infinity;
|
|
72
|
+
const ELLIPSIS = truncationOptions.ellipsis ?? "";
|
|
73
|
+
const ELLIPSIS_WIDTH = truncationOptions?.ellipsisWidth ?? (ELLIPSIS ? getStringTruncatedWidth(ELLIPSIS, NO_TRUNCATION, widthOptions).width : 0);
|
|
74
|
+
const ANSI_WIDTH = widthOptions.ansiWidth ?? 0;
|
|
75
|
+
const CONTROL_WIDTH = widthOptions.controlWidth ?? 0;
|
|
76
|
+
const TAB_WIDTH = widthOptions.tabWidth ?? 8;
|
|
77
|
+
const AMBIGUOUS_WIDTH = widthOptions.ambiguousWidth ?? 1;
|
|
78
|
+
const EMOJI_WIDTH = widthOptions.emojiWidth ?? 2;
|
|
79
|
+
const FULL_WIDTH_WIDTH = widthOptions.fullWidthWidth ?? 2;
|
|
80
|
+
const REGULAR_WIDTH = widthOptions.regularWidth ?? 1;
|
|
81
|
+
const WIDE_WIDTH = widthOptions.wideWidth ?? 2;
|
|
82
|
+
let indexPrev = 0;
|
|
83
|
+
let index = 0;
|
|
84
|
+
let length = input.length;
|
|
85
|
+
let lengthExtra = 0;
|
|
86
|
+
let truncationEnabled = false;
|
|
87
|
+
let truncationIndex = length;
|
|
88
|
+
let truncationLimit = Math.max(0, LIMIT - ELLIPSIS_WIDTH);
|
|
89
|
+
let unmatchedStart = 0;
|
|
90
|
+
let unmatchedEnd = 0;
|
|
91
|
+
let width = 0;
|
|
92
|
+
let widthExtra = 0;
|
|
93
|
+
outer: while (true) {
|
|
94
|
+
if (unmatchedEnd > unmatchedStart || index >= length && index > indexPrev) {
|
|
95
|
+
const unmatched = input.slice(unmatchedStart, unmatchedEnd) || input.slice(indexPrev, index);
|
|
96
|
+
lengthExtra = 0;
|
|
97
|
+
for (const char of unmatched.replaceAll(MODIFIER_RE, "")) {
|
|
98
|
+
const codePoint = char.codePointAt(0) || 0;
|
|
99
|
+
if (isFullWidth(codePoint)) {
|
|
100
|
+
widthExtra = FULL_WIDTH_WIDTH;
|
|
101
|
+
} else if (isWide(codePoint)) {
|
|
102
|
+
widthExtra = WIDE_WIDTH;
|
|
103
|
+
} else if (AMBIGUOUS_WIDTH !== REGULAR_WIDTH && isAmbiguous(codePoint)) {
|
|
104
|
+
widthExtra = AMBIGUOUS_WIDTH;
|
|
105
|
+
} else {
|
|
106
|
+
widthExtra = REGULAR_WIDTH;
|
|
107
|
+
}
|
|
108
|
+
if (width + widthExtra > truncationLimit) {
|
|
109
|
+
truncationIndex = Math.min(truncationIndex, Math.max(unmatchedStart, indexPrev) + lengthExtra);
|
|
110
|
+
}
|
|
111
|
+
if (width + widthExtra > LIMIT) {
|
|
112
|
+
truncationEnabled = true;
|
|
113
|
+
break outer;
|
|
114
|
+
}
|
|
115
|
+
lengthExtra += char.length;
|
|
116
|
+
width += widthExtra;
|
|
117
|
+
}
|
|
118
|
+
unmatchedStart = unmatchedEnd = 0;
|
|
119
|
+
}
|
|
120
|
+
if (index >= length)
|
|
121
|
+
break;
|
|
122
|
+
LATIN_RE.lastIndex = index;
|
|
123
|
+
if (LATIN_RE.test(input)) {
|
|
124
|
+
lengthExtra = LATIN_RE.lastIndex - index;
|
|
125
|
+
widthExtra = lengthExtra * REGULAR_WIDTH;
|
|
126
|
+
if (width + widthExtra > truncationLimit) {
|
|
127
|
+
truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / REGULAR_WIDTH));
|
|
128
|
+
}
|
|
129
|
+
if (width + widthExtra > LIMIT) {
|
|
130
|
+
truncationEnabled = true;
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
width += widthExtra;
|
|
134
|
+
unmatchedStart = indexPrev;
|
|
135
|
+
unmatchedEnd = index;
|
|
136
|
+
index = indexPrev = LATIN_RE.lastIndex;
|
|
137
|
+
continue;
|
|
138
|
+
}
|
|
139
|
+
ANSI_RE.lastIndex = index;
|
|
140
|
+
if (ANSI_RE.test(input)) {
|
|
141
|
+
if (width + ANSI_WIDTH > truncationLimit) {
|
|
142
|
+
truncationIndex = Math.min(truncationIndex, index);
|
|
143
|
+
}
|
|
144
|
+
if (width + ANSI_WIDTH > LIMIT) {
|
|
145
|
+
truncationEnabled = true;
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
width += ANSI_WIDTH;
|
|
149
|
+
unmatchedStart = indexPrev;
|
|
150
|
+
unmatchedEnd = index;
|
|
151
|
+
index = indexPrev = ANSI_RE.lastIndex;
|
|
152
|
+
continue;
|
|
153
|
+
}
|
|
154
|
+
CONTROL_RE.lastIndex = index;
|
|
155
|
+
if (CONTROL_RE.test(input)) {
|
|
156
|
+
lengthExtra = CONTROL_RE.lastIndex - index;
|
|
157
|
+
widthExtra = lengthExtra * CONTROL_WIDTH;
|
|
158
|
+
if (width + widthExtra > truncationLimit) {
|
|
159
|
+
truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / CONTROL_WIDTH));
|
|
160
|
+
}
|
|
161
|
+
if (width + widthExtra > LIMIT) {
|
|
162
|
+
truncationEnabled = true;
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
width += widthExtra;
|
|
166
|
+
unmatchedStart = indexPrev;
|
|
167
|
+
unmatchedEnd = index;
|
|
168
|
+
index = indexPrev = CONTROL_RE.lastIndex;
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
171
|
+
TAB_RE.lastIndex = index;
|
|
172
|
+
if (TAB_RE.test(input)) {
|
|
173
|
+
lengthExtra = TAB_RE.lastIndex - index;
|
|
174
|
+
widthExtra = lengthExtra * TAB_WIDTH;
|
|
175
|
+
if (width + widthExtra > truncationLimit) {
|
|
176
|
+
truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / TAB_WIDTH));
|
|
177
|
+
}
|
|
178
|
+
if (width + widthExtra > LIMIT) {
|
|
179
|
+
truncationEnabled = true;
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
width += widthExtra;
|
|
183
|
+
unmatchedStart = indexPrev;
|
|
184
|
+
unmatchedEnd = index;
|
|
185
|
+
index = indexPrev = TAB_RE.lastIndex;
|
|
186
|
+
continue;
|
|
187
|
+
}
|
|
188
|
+
EMOJI_RE.lastIndex = index;
|
|
189
|
+
if (EMOJI_RE.test(input)) {
|
|
190
|
+
if (width + EMOJI_WIDTH > truncationLimit) {
|
|
191
|
+
truncationIndex = Math.min(truncationIndex, index);
|
|
192
|
+
}
|
|
193
|
+
if (width + EMOJI_WIDTH > LIMIT) {
|
|
194
|
+
truncationEnabled = true;
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
width += EMOJI_WIDTH;
|
|
198
|
+
unmatchedStart = indexPrev;
|
|
199
|
+
unmatchedEnd = index;
|
|
200
|
+
index = indexPrev = EMOJI_RE.lastIndex;
|
|
201
|
+
continue;
|
|
202
|
+
}
|
|
203
|
+
index += 1;
|
|
204
|
+
}
|
|
205
|
+
return {
|
|
206
|
+
width: truncationEnabled ? truncationLimit : width,
|
|
207
|
+
index: truncationEnabled ? truncationIndex : length,
|
|
208
|
+
truncated: truncationEnabled,
|
|
209
|
+
ellipsed: truncationEnabled && LIMIT >= ELLIPSIS_WIDTH
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
dist_default = getStringTruncatedWidth;
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
// node_modules/.bun/fast-string-width@1.1.0/node_modules/fast-string-width/dist/index.js
|
|
217
|
+
var NO_TRUNCATION2, fastStringWidth, dist_default2;
|
|
218
|
+
var init_dist2 = __esm({
|
|
219
|
+
"node_modules/.bun/fast-string-width@1.1.0/node_modules/fast-string-width/dist/index.js"() {
|
|
220
|
+
init_utils2();
|
|
221
|
+
init_dist();
|
|
222
|
+
NO_TRUNCATION2 = {
|
|
223
|
+
limit: Infinity,
|
|
224
|
+
ellipsis: "",
|
|
225
|
+
ellipsisWidth: 0
|
|
226
|
+
};
|
|
227
|
+
fastStringWidth = (input, options = {}) => {
|
|
228
|
+
return dist_default(input, NO_TRUNCATION2, options).width;
|
|
229
|
+
};
|
|
230
|
+
dist_default2 = fastStringWidth;
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
|
|
234
|
+
// node_modules/.bun/fast-wrap-ansi@0.1.6/node_modules/fast-wrap-ansi/lib/main.js
|
|
235
|
+
function wrapAnsi(string, columns, options) {
|
|
236
|
+
return String(string).normalize().split(CRLF_OR_LF).map((line) => exec(line, columns, options)).join("\n");
|
|
237
|
+
}
|
|
238
|
+
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;
|
|
239
|
+
var init_main = __esm({
|
|
240
|
+
"node_modules/.bun/fast-wrap-ansi@0.1.6/node_modules/fast-wrap-ansi/lib/main.js"() {
|
|
241
|
+
init_utils2();
|
|
242
|
+
init_dist2();
|
|
243
|
+
ESC = "\x1B";
|
|
244
|
+
CSI = "\x9B";
|
|
245
|
+
END_CODE = 39;
|
|
246
|
+
ANSI_ESCAPE_BELL = "\x07";
|
|
247
|
+
ANSI_CSI = "[";
|
|
248
|
+
ANSI_OSC = "]";
|
|
249
|
+
ANSI_SGR_TERMINATOR = "m";
|
|
250
|
+
ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
|
|
251
|
+
GROUP_REGEX = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`, "y");
|
|
252
|
+
getClosingCode = (openingCode) => {
|
|
253
|
+
if (openingCode >= 30 && openingCode <= 37)
|
|
254
|
+
return 39;
|
|
255
|
+
if (openingCode >= 90 && openingCode <= 97)
|
|
256
|
+
return 39;
|
|
257
|
+
if (openingCode >= 40 && openingCode <= 47)
|
|
258
|
+
return 49;
|
|
259
|
+
if (openingCode >= 100 && openingCode <= 107)
|
|
260
|
+
return 49;
|
|
261
|
+
if (openingCode === 1 || openingCode === 2)
|
|
262
|
+
return 22;
|
|
263
|
+
if (openingCode === 3)
|
|
264
|
+
return 23;
|
|
265
|
+
if (openingCode === 4)
|
|
266
|
+
return 24;
|
|
267
|
+
if (openingCode === 7)
|
|
268
|
+
return 27;
|
|
269
|
+
if (openingCode === 8)
|
|
270
|
+
return 28;
|
|
271
|
+
if (openingCode === 9)
|
|
272
|
+
return 29;
|
|
273
|
+
if (openingCode === 0)
|
|
274
|
+
return 0;
|
|
275
|
+
return void 0;
|
|
276
|
+
};
|
|
277
|
+
wrapAnsiCode = (code) => `${ESC}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
|
|
278
|
+
wrapAnsiHyperlink = (url) => `${ESC}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`;
|
|
279
|
+
wrapWord = (rows, word, columns) => {
|
|
280
|
+
const characters = word[Symbol.iterator]();
|
|
281
|
+
let isInsideEscape = false;
|
|
282
|
+
let isInsideLinkEscape = false;
|
|
283
|
+
let lastRow = rows.at(-1);
|
|
284
|
+
let visible = lastRow === void 0 ? 0 : dist_default2(lastRow);
|
|
285
|
+
let currentCharacter = characters.next();
|
|
286
|
+
let nextCharacter = characters.next();
|
|
287
|
+
let rawCharacterIndex = 0;
|
|
288
|
+
while (!currentCharacter.done) {
|
|
289
|
+
const character = currentCharacter.value;
|
|
290
|
+
const characterLength = dist_default2(character);
|
|
291
|
+
if (visible + characterLength <= columns) {
|
|
292
|
+
rows[rows.length - 1] += character;
|
|
293
|
+
} else {
|
|
294
|
+
rows.push(character);
|
|
295
|
+
visible = 0;
|
|
296
|
+
}
|
|
297
|
+
if (character === ESC || character === CSI) {
|
|
298
|
+
isInsideEscape = true;
|
|
299
|
+
isInsideLinkEscape = word.startsWith(ANSI_ESCAPE_LINK, rawCharacterIndex + 1);
|
|
300
|
+
}
|
|
301
|
+
if (isInsideEscape) {
|
|
302
|
+
if (isInsideLinkEscape) {
|
|
303
|
+
if (character === ANSI_ESCAPE_BELL) {
|
|
304
|
+
isInsideEscape = false;
|
|
305
|
+
isInsideLinkEscape = false;
|
|
306
|
+
}
|
|
307
|
+
} else if (character === ANSI_SGR_TERMINATOR) {
|
|
308
|
+
isInsideEscape = false;
|
|
309
|
+
}
|
|
310
|
+
} else {
|
|
311
|
+
visible += characterLength;
|
|
312
|
+
if (visible === columns && !nextCharacter.done) {
|
|
313
|
+
rows.push("");
|
|
314
|
+
visible = 0;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
currentCharacter = nextCharacter;
|
|
318
|
+
nextCharacter = characters.next();
|
|
319
|
+
rawCharacterIndex += character.length;
|
|
320
|
+
}
|
|
321
|
+
lastRow = rows.at(-1);
|
|
322
|
+
if (!visible && lastRow !== void 0 && lastRow.length && rows.length > 1) {
|
|
323
|
+
rows[rows.length - 2] += rows.pop();
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
stringVisibleTrimSpacesRight = (string) => {
|
|
327
|
+
const words = string.split(" ");
|
|
328
|
+
let last = words.length;
|
|
329
|
+
while (last) {
|
|
330
|
+
if (dist_default2(words[last - 1])) {
|
|
331
|
+
break;
|
|
332
|
+
}
|
|
333
|
+
last--;
|
|
334
|
+
}
|
|
335
|
+
if (last === words.length) {
|
|
336
|
+
return string;
|
|
337
|
+
}
|
|
338
|
+
return words.slice(0, last).join(" ") + words.slice(last).join("");
|
|
339
|
+
};
|
|
340
|
+
exec = (string, columns, options = {}) => {
|
|
341
|
+
if (options.trim !== false && string.trim() === "") {
|
|
342
|
+
return "";
|
|
343
|
+
}
|
|
344
|
+
let returnValue = "";
|
|
345
|
+
let escapeCode;
|
|
346
|
+
let escapeUrl;
|
|
347
|
+
const words = string.split(" ");
|
|
348
|
+
let rows = [""];
|
|
349
|
+
let rowLength = 0;
|
|
350
|
+
for (let index = 0; index < words.length; index++) {
|
|
351
|
+
const word = words[index];
|
|
352
|
+
if (options.trim !== false) {
|
|
353
|
+
const row = rows.at(-1) ?? "";
|
|
354
|
+
const trimmed = row.trimStart();
|
|
355
|
+
if (row.length !== trimmed.length) {
|
|
356
|
+
rows[rows.length - 1] = trimmed;
|
|
357
|
+
rowLength = dist_default2(trimmed);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
if (index !== 0) {
|
|
361
|
+
if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
|
|
362
|
+
rows.push("");
|
|
363
|
+
rowLength = 0;
|
|
364
|
+
}
|
|
365
|
+
if (rowLength || options.trim === false) {
|
|
366
|
+
rows[rows.length - 1] += " ";
|
|
367
|
+
rowLength++;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
const wordLength = dist_default2(word);
|
|
371
|
+
if (options.hard && wordLength > columns) {
|
|
372
|
+
const remainingColumns = columns - rowLength;
|
|
373
|
+
const breaksStartingThisLine = 1 + Math.floor((wordLength - remainingColumns - 1) / columns);
|
|
374
|
+
const breaksStartingNextLine = Math.floor((wordLength - 1) / columns);
|
|
375
|
+
if (breaksStartingNextLine < breaksStartingThisLine) {
|
|
376
|
+
rows.push("");
|
|
377
|
+
}
|
|
378
|
+
wrapWord(rows, word, columns);
|
|
379
|
+
rowLength = dist_default2(rows.at(-1) ?? "");
|
|
380
|
+
continue;
|
|
381
|
+
}
|
|
382
|
+
if (rowLength + wordLength > columns && rowLength && wordLength) {
|
|
383
|
+
if (options.wordWrap === false && rowLength < columns) {
|
|
384
|
+
wrapWord(rows, word, columns);
|
|
385
|
+
rowLength = dist_default2(rows.at(-1) ?? "");
|
|
386
|
+
continue;
|
|
387
|
+
}
|
|
388
|
+
rows.push("");
|
|
389
|
+
rowLength = 0;
|
|
390
|
+
}
|
|
391
|
+
if (rowLength + wordLength > columns && options.wordWrap === false) {
|
|
392
|
+
wrapWord(rows, word, columns);
|
|
393
|
+
rowLength = dist_default2(rows.at(-1) ?? "");
|
|
394
|
+
continue;
|
|
395
|
+
}
|
|
396
|
+
rows[rows.length - 1] += word;
|
|
397
|
+
rowLength += wordLength;
|
|
398
|
+
}
|
|
399
|
+
if (options.trim !== false) {
|
|
400
|
+
rows = rows.map((row) => stringVisibleTrimSpacesRight(row));
|
|
401
|
+
}
|
|
402
|
+
const preString = rows.join("\n");
|
|
403
|
+
let inSurrogate = false;
|
|
404
|
+
for (let i = 0; i < preString.length; i++) {
|
|
405
|
+
const character = preString[i];
|
|
406
|
+
returnValue += character;
|
|
407
|
+
if (!inSurrogate) {
|
|
408
|
+
inSurrogate = character >= "\uD800" && character <= "\uDBFF";
|
|
409
|
+
} else {
|
|
410
|
+
continue;
|
|
411
|
+
}
|
|
412
|
+
if (character === ESC || character === CSI) {
|
|
413
|
+
GROUP_REGEX.lastIndex = i + 1;
|
|
414
|
+
const groupsResult = GROUP_REGEX.exec(preString);
|
|
415
|
+
const groups = groupsResult?.groups;
|
|
416
|
+
if (groups?.code !== void 0) {
|
|
417
|
+
const code = Number.parseFloat(groups.code);
|
|
418
|
+
escapeCode = code === END_CODE ? void 0 : code;
|
|
419
|
+
} else if (groups?.uri !== void 0) {
|
|
420
|
+
escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
if (preString[i + 1] === "\n") {
|
|
424
|
+
if (escapeUrl) {
|
|
425
|
+
returnValue += wrapAnsiHyperlink("");
|
|
426
|
+
}
|
|
427
|
+
const closingCode = escapeCode ? getClosingCode(escapeCode) : void 0;
|
|
428
|
+
if (escapeCode && closingCode) {
|
|
429
|
+
returnValue += wrapAnsiCode(closingCode);
|
|
430
|
+
}
|
|
431
|
+
} else if (character === "\n") {
|
|
432
|
+
if (escapeCode && getClosingCode(escapeCode)) {
|
|
433
|
+
returnValue += wrapAnsiCode(escapeCode);
|
|
434
|
+
}
|
|
435
|
+
if (escapeUrl) {
|
|
436
|
+
returnValue += wrapAnsiHyperlink(escapeUrl);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
return returnValue;
|
|
441
|
+
};
|
|
442
|
+
CRLF_OR_LF = /\r?\n/;
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
|
|
40
446
|
// node_modules/.bun/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
|
|
41
447
|
var require_src = __commonJS({
|
|
42
448
|
"node_modules/.bun/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports, module) {
|
|
43
449
|
"use strict";
|
|
44
|
-
|
|
45
|
-
var
|
|
46
|
-
var
|
|
450
|
+
init_utils2();
|
|
451
|
+
var ESC2 = "\x1B";
|
|
452
|
+
var CSI2 = `${ESC2}[`;
|
|
47
453
|
var beep = "\x07";
|
|
48
454
|
var cursor = {
|
|
49
|
-
to(
|
|
50
|
-
if (!
|
|
51
|
-
return `${
|
|
455
|
+
to(x, y2) {
|
|
456
|
+
if (!y2) return `${CSI2}${x + 1}G`;
|
|
457
|
+
return `${CSI2}${y2 + 1};${x + 1}H`;
|
|
52
458
|
},
|
|
53
|
-
move(
|
|
459
|
+
move(x, y2) {
|
|
54
460
|
let ret = "";
|
|
55
|
-
if (
|
|
56
|
-
else if (
|
|
57
|
-
if (
|
|
58
|
-
else if (
|
|
461
|
+
if (x < 0) ret += `${CSI2}${-x}D`;
|
|
462
|
+
else if (x > 0) ret += `${CSI2}${x}C`;
|
|
463
|
+
if (y2 < 0) ret += `${CSI2}${-y2}A`;
|
|
464
|
+
else if (y2 > 0) ret += `${CSI2}${y2}B`;
|
|
59
465
|
return ret;
|
|
60
466
|
},
|
|
61
|
-
up: (count = 1) => `${
|
|
62
|
-
down: (count = 1) => `${
|
|
63
|
-
forward: (count = 1) => `${
|
|
64
|
-
backward: (count = 1) => `${
|
|
65
|
-
nextLine: (count = 1) => `${
|
|
66
|
-
prevLine: (count = 1) => `${
|
|
67
|
-
left: `${
|
|
68
|
-
hide: `${
|
|
69
|
-
show: `${
|
|
70
|
-
save: `${
|
|
71
|
-
restore: `${
|
|
467
|
+
up: (count = 1) => `${CSI2}${count}A`,
|
|
468
|
+
down: (count = 1) => `${CSI2}${count}B`,
|
|
469
|
+
forward: (count = 1) => `${CSI2}${count}C`,
|
|
470
|
+
backward: (count = 1) => `${CSI2}${count}D`,
|
|
471
|
+
nextLine: (count = 1) => `${CSI2}E`.repeat(count),
|
|
472
|
+
prevLine: (count = 1) => `${CSI2}F`.repeat(count),
|
|
473
|
+
left: `${CSI2}G`,
|
|
474
|
+
hide: `${CSI2}?25l`,
|
|
475
|
+
show: `${CSI2}?25h`,
|
|
476
|
+
save: `${ESC2}7`,
|
|
477
|
+
restore: `${ESC2}8`
|
|
72
478
|
};
|
|
73
479
|
var scroll = {
|
|
74
|
-
up: (count = 1) => `${
|
|
75
|
-
down: (count = 1) => `${
|
|
480
|
+
up: (count = 1) => `${CSI2}S`.repeat(count),
|
|
481
|
+
down: (count = 1) => `${CSI2}T`.repeat(count)
|
|
76
482
|
};
|
|
77
483
|
var erase = {
|
|
78
|
-
screen: `${
|
|
79
|
-
up: (count = 1) => `${
|
|
80
|
-
down: (count = 1) => `${
|
|
81
|
-
line: `${
|
|
82
|
-
lineEnd: `${
|
|
83
|
-
lineStart: `${
|
|
484
|
+
screen: `${CSI2}2J`,
|
|
485
|
+
up: (count = 1) => `${CSI2}1J`.repeat(count),
|
|
486
|
+
down: (count = 1) => `${CSI2}J`.repeat(count),
|
|
487
|
+
line: `${CSI2}2K`,
|
|
488
|
+
lineEnd: `${CSI2}K`,
|
|
489
|
+
lineStart: `${CSI2}1K`,
|
|
84
490
|
lines(count) {
|
|
85
491
|
let clear = "";
|
|
86
492
|
for (let i = 0; i < count; i++)
|
|
@@ -94,709 +500,587 @@ var require_src = __commonJS({
|
|
|
94
500
|
}
|
|
95
501
|
});
|
|
96
502
|
|
|
97
|
-
// node_modules/.bun
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
108
|
-
};
|
|
109
|
-
var replaceClose = (string, close, replace, index) => {
|
|
110
|
-
let result = "", cursor = 0;
|
|
111
|
-
do {
|
|
112
|
-
result += string.substring(cursor, index) + replace;
|
|
113
|
-
cursor = index + close.length;
|
|
114
|
-
index = string.indexOf(close, cursor);
|
|
115
|
-
} while (~index);
|
|
116
|
-
return result + string.substring(cursor);
|
|
117
|
-
};
|
|
118
|
-
var createColors = (enabled = isColorSupported) => {
|
|
119
|
-
let f = enabled ? formatter : () => String;
|
|
120
|
-
return {
|
|
121
|
-
isColorSupported: enabled,
|
|
122
|
-
reset: f("\x1B[0m", "\x1B[0m"),
|
|
123
|
-
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
124
|
-
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
125
|
-
italic: f("\x1B[3m", "\x1B[23m"),
|
|
126
|
-
underline: f("\x1B[4m", "\x1B[24m"),
|
|
127
|
-
inverse: f("\x1B[7m", "\x1B[27m"),
|
|
128
|
-
hidden: f("\x1B[8m", "\x1B[28m"),
|
|
129
|
-
strikethrough: f("\x1B[9m", "\x1B[29m"),
|
|
130
|
-
black: f("\x1B[30m", "\x1B[39m"),
|
|
131
|
-
red: f("\x1B[31m", "\x1B[39m"),
|
|
132
|
-
green: f("\x1B[32m", "\x1B[39m"),
|
|
133
|
-
yellow: f("\x1B[33m", "\x1B[39m"),
|
|
134
|
-
blue: f("\x1B[34m", "\x1B[39m"),
|
|
135
|
-
magenta: f("\x1B[35m", "\x1B[39m"),
|
|
136
|
-
cyan: f("\x1B[36m", "\x1B[39m"),
|
|
137
|
-
white: f("\x1B[37m", "\x1B[39m"),
|
|
138
|
-
gray: f("\x1B[90m", "\x1B[39m"),
|
|
139
|
-
bgBlack: f("\x1B[40m", "\x1B[49m"),
|
|
140
|
-
bgRed: f("\x1B[41m", "\x1B[49m"),
|
|
141
|
-
bgGreen: f("\x1B[42m", "\x1B[49m"),
|
|
142
|
-
bgYellow: f("\x1B[43m", "\x1B[49m"),
|
|
143
|
-
bgBlue: f("\x1B[44m", "\x1B[49m"),
|
|
144
|
-
bgMagenta: f("\x1B[45m", "\x1B[49m"),
|
|
145
|
-
bgCyan: f("\x1B[46m", "\x1B[49m"),
|
|
146
|
-
bgWhite: f("\x1B[47m", "\x1B[49m"),
|
|
147
|
-
blackBright: f("\x1B[90m", "\x1B[39m"),
|
|
148
|
-
redBright: f("\x1B[91m", "\x1B[39m"),
|
|
149
|
-
greenBright: f("\x1B[92m", "\x1B[39m"),
|
|
150
|
-
yellowBright: f("\x1B[93m", "\x1B[39m"),
|
|
151
|
-
blueBright: f("\x1B[94m", "\x1B[39m"),
|
|
152
|
-
magentaBright: f("\x1B[95m", "\x1B[39m"),
|
|
153
|
-
cyanBright: f("\x1B[96m", "\x1B[39m"),
|
|
154
|
-
whiteBright: f("\x1B[97m", "\x1B[39m"),
|
|
155
|
-
bgBlackBright: f("\x1B[100m", "\x1B[49m"),
|
|
156
|
-
bgRedBright: f("\x1B[101m", "\x1B[49m"),
|
|
157
|
-
bgGreenBright: f("\x1B[102m", "\x1B[49m"),
|
|
158
|
-
bgYellowBright: f("\x1B[103m", "\x1B[49m"),
|
|
159
|
-
bgBlueBright: f("\x1B[104m", "\x1B[49m"),
|
|
160
|
-
bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
|
|
161
|
-
bgCyanBright: f("\x1B[106m", "\x1B[49m"),
|
|
162
|
-
bgWhiteBright: f("\x1B[107m", "\x1B[49m")
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
module.exports = createColors();
|
|
166
|
-
module.exports.createColors = createColors;
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
|
|
170
|
-
// node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
|
|
171
|
-
import { stdin as j, stdout as M } from "node:process";
|
|
172
|
-
import * as g from "node:readline";
|
|
173
|
-
import O from "node:readline";
|
|
174
|
-
import { Writable as X } from "node:stream";
|
|
175
|
-
function DD({ onlyFirst: e2 = false } = {}) {
|
|
176
|
-
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("|");
|
|
177
|
-
return new RegExp(t, e2 ? void 0 : "g");
|
|
503
|
+
// node_modules/.bun/@clack+core@1.2.0/node_modules/@clack/core/dist/index.mjs
|
|
504
|
+
import { styleText as y } from "node:util";
|
|
505
|
+
import { stdout as S, stdin as $ } from "node:process";
|
|
506
|
+
import * as _ from "node:readline";
|
|
507
|
+
import P from "node:readline";
|
|
508
|
+
import { ReadStream as D } from "node:tty";
|
|
509
|
+
function d(r, t2, e) {
|
|
510
|
+
if (!e.some((o) => !o.disabled)) return r;
|
|
511
|
+
const s = r + t2, i = Math.max(e.length - 1, 0), n = s < 0 ? i : s > i ? 0 : s;
|
|
512
|
+
return e[n].disabled ? d(n, t2 < 0 ? -1 : 1, e) : n;
|
|
178
513
|
}
|
|
179
|
-
function
|
|
180
|
-
if (typeof
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
function L(e2) {
|
|
184
|
-
return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
|
|
185
|
-
}
|
|
186
|
-
function p(e2, u2 = {}) {
|
|
187
|
-
if (typeof e2 != "string" || e2.length === 0 || (u2 = { ambiguousIsNarrow: true, ...u2 }, e2 = P(e2), e2.length === 0)) return 0;
|
|
188
|
-
e2 = e2.replace(sD(), " ");
|
|
189
|
-
const t = u2.ambiguousIsNarrow ? 1 : 2;
|
|
190
|
-
let F2 = 0;
|
|
191
|
-
for (const s of e2) {
|
|
192
|
-
const i = s.codePointAt(0);
|
|
193
|
-
if (i <= 31 || i >= 127 && i <= 159 || i >= 768 && i <= 879) continue;
|
|
194
|
-
switch (eD.eastAsianWidth(s)) {
|
|
195
|
-
case "F":
|
|
196
|
-
case "W":
|
|
197
|
-
F2 += 2;
|
|
198
|
-
break;
|
|
199
|
-
case "A":
|
|
200
|
-
F2 += t;
|
|
201
|
-
break;
|
|
202
|
-
default:
|
|
203
|
-
F2 += 1;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
return F2;
|
|
207
|
-
}
|
|
208
|
-
function rD() {
|
|
209
|
-
const e2 = /* @__PURE__ */ new Map();
|
|
210
|
-
for (const [u2, t] of Object.entries(r)) {
|
|
211
|
-
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]);
|
|
212
|
-
Object.defineProperty(r, u2, { value: t, enumerable: false });
|
|
213
|
-
}
|
|
214
|
-
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) => {
|
|
215
|
-
const t = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u2.toString(16));
|
|
216
|
-
if (!t) return [0, 0, 0];
|
|
217
|
-
let [F2] = t;
|
|
218
|
-
F2.length === 3 && (F2 = [...F2].map((i) => i + i).join(""));
|
|
219
|
-
const s = Number.parseInt(F2, 16);
|
|
220
|
-
return [s >> 16 & 255, s >> 8 & 255, s & 255];
|
|
221
|
-
}, enumerable: false }, hexToAnsi256: { value: (u2) => r.rgbToAnsi256(...r.hexToRgb(u2)), enumerable: false }, ansi256ToAnsi: { value: (u2) => {
|
|
222
|
-
if (u2 < 8) return 30 + u2;
|
|
223
|
-
if (u2 < 16) return 90 + (u2 - 8);
|
|
224
|
-
let t, F2, s;
|
|
225
|
-
if (u2 >= 232) t = ((u2 - 232) * 10 + 8) / 255, F2 = t, s = t;
|
|
226
|
-
else {
|
|
227
|
-
u2 -= 16;
|
|
228
|
-
const C2 = u2 % 36;
|
|
229
|
-
t = Math.floor(u2 / 36) / 5, F2 = Math.floor(C2 / 6) / 5, s = C2 % 6 / 5;
|
|
230
|
-
}
|
|
231
|
-
const i = Math.max(t, F2, s) * 2;
|
|
232
|
-
if (i === 0) return 30;
|
|
233
|
-
let D2 = 30 + (Math.round(s) << 2 | Math.round(F2) << 1 | Math.round(t));
|
|
234
|
-
return i === 2 && (D2 += 60), D2;
|
|
235
|
-
}, 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;
|
|
236
|
-
}
|
|
237
|
-
function Y(e2, u2, t) {
|
|
238
|
-
return String(e2).normalize().replace(/\r\n/g, `
|
|
239
|
-
`).split(`
|
|
240
|
-
`).map((F2) => lD(F2, u2, t)).join(`
|
|
241
|
-
`);
|
|
242
|
-
}
|
|
243
|
-
function $(e2, u2) {
|
|
244
|
-
if (typeof e2 == "string") return B.aliases.get(e2) === u2;
|
|
245
|
-
for (const t of e2) if (t !== void 0 && $(t, u2)) return true;
|
|
514
|
+
function V(r, t2) {
|
|
515
|
+
if (typeof r == "string") return u.aliases.get(r) === t2;
|
|
516
|
+
for (const e of r) if (e !== void 0 && V(e, t2)) return true;
|
|
246
517
|
return false;
|
|
247
518
|
}
|
|
248
|
-
function
|
|
249
|
-
if (
|
|
250
|
-
const
|
|
251
|
-
`),
|
|
252
|
-
`), s = [];
|
|
253
|
-
for (let
|
|
254
|
-
return s;
|
|
519
|
+
function j(r, t2) {
|
|
520
|
+
if (r === t2) return;
|
|
521
|
+
const e = r.split(`
|
|
522
|
+
`), s = t2.split(`
|
|
523
|
+
`), i = Math.max(e.length, s.length), n = [];
|
|
524
|
+
for (let o = 0; o < i; o++) e[o] !== s[o] && n.push(o);
|
|
525
|
+
return { lines: n, numLinesBefore: e.length, numLinesAfter: s.length, numLines: i };
|
|
255
526
|
}
|
|
256
|
-
function
|
|
257
|
-
return
|
|
527
|
+
function q(r) {
|
|
528
|
+
return r === C;
|
|
258
529
|
}
|
|
259
|
-
function
|
|
260
|
-
const
|
|
261
|
-
|
|
530
|
+
function w(r, t2) {
|
|
531
|
+
const e = r;
|
|
532
|
+
e.isTTY && e.setRawMode(t2);
|
|
262
533
|
}
|
|
263
|
-
function
|
|
264
|
-
const
|
|
265
|
-
|
|
266
|
-
const
|
|
267
|
-
const
|
|
268
|
-
if (
|
|
269
|
-
|
|
534
|
+
function z({ input: r = $, output: t2 = S, overwrite: e = true, hideCursor: s = true } = {}) {
|
|
535
|
+
const i = _.createInterface({ input: r, output: t2, prompt: "", tabSize: 1 });
|
|
536
|
+
_.emitKeypressEvents(r, i), r instanceof D && r.isTTY && r.setRawMode(true);
|
|
537
|
+
const n = (o, { name: a, sequence: h }) => {
|
|
538
|
+
const l = String(o);
|
|
539
|
+
if (V([l, a, h], "cancel")) {
|
|
540
|
+
s && t2.write(import_sisteransi.cursor.show), process.exit(0);
|
|
270
541
|
return;
|
|
271
542
|
}
|
|
272
|
-
if (!
|
|
273
|
-
const
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
543
|
+
if (!e) return;
|
|
544
|
+
const f = a === "return" ? 0 : -1, v = a === "return" ? -1 : 0;
|
|
545
|
+
_.moveCursor(t2, f, v, () => {
|
|
546
|
+
_.clearLine(t2, 1, () => {
|
|
547
|
+
r.once("keypress", n);
|
|
277
548
|
});
|
|
278
549
|
});
|
|
279
550
|
};
|
|
280
|
-
return
|
|
281
|
-
|
|
551
|
+
return s && t2.write(import_sisteransi.cursor.hide), r.once("keypress", n), () => {
|
|
552
|
+
r.off("keypress", n), s && t2.write(import_sisteransi.cursor.show), r instanceof D && r.isTTY && !Y && r.setRawMode(false), i.terminal = false, i.close();
|
|
282
553
|
};
|
|
283
554
|
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
555
|
+
function R(r, t2, e, s = e) {
|
|
556
|
+
const i = O(r ?? S);
|
|
557
|
+
return wrapAnsi(t2, i - e.length, { hard: true, trim: false }).split(`
|
|
558
|
+
`).map((n, o) => `${o === 0 ? s : e}${n}`).join(`
|
|
559
|
+
`);
|
|
560
|
+
}
|
|
561
|
+
var import_sisteransi, E, G, u, Y, C, O, A, p, Q, nt, at;
|
|
562
|
+
var init_dist3 = __esm({
|
|
563
|
+
"node_modules/.bun/@clack+core@1.2.0/node_modules/@clack/core/dist/index.mjs"() {
|
|
564
|
+
init_utils2();
|
|
565
|
+
init_main();
|
|
288
566
|
import_sisteransi = __toESM(require_src(), 1);
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
(
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
}
|
|
315
|
-
return D2;
|
|
316
|
-
};
|
|
317
|
-
})(W);
|
|
318
|
-
tD = W.exports;
|
|
319
|
-
eD = L(tD);
|
|
320
|
-
FD = function() {
|
|
321
|
-
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;
|
|
322
|
-
};
|
|
323
|
-
sD = L(FD);
|
|
324
|
-
w = 10;
|
|
325
|
-
N = (e2 = 0) => (u2) => `\x1B[${u2 + e2}m`;
|
|
326
|
-
I = (e2 = 0) => (u2) => `\x1B[${38 + e2};5;${u2}m`;
|
|
327
|
-
R = (e2 = 0) => (u2, t, F2) => `\x1B[${38 + e2};2;${u2};${t};${F2}m`;
|
|
328
|
-
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] } };
|
|
329
|
-
Object.keys(r.modifier);
|
|
330
|
-
iD = Object.keys(r.color);
|
|
331
|
-
CD = Object.keys(r.bgColor);
|
|
332
|
-
[...iD, ...CD];
|
|
333
|
-
ED = rD();
|
|
334
|
-
d = /* @__PURE__ */ new Set(["\x1B", "\x9B"]);
|
|
335
|
-
oD = 39;
|
|
336
|
-
y = "\x07";
|
|
337
|
-
V = "[";
|
|
338
|
-
nD = "]";
|
|
339
|
-
G = "m";
|
|
340
|
-
_ = `${nD}8;;`;
|
|
341
|
-
z = (e2) => `${d.values().next().value}${V}${e2}${G}`;
|
|
342
|
-
K = (e2) => `${d.values().next().value}${_}${e2}${y}`;
|
|
343
|
-
aD = (e2) => e2.split(" ").map((u2) => p(u2));
|
|
344
|
-
k = (e2, u2, t) => {
|
|
345
|
-
const F2 = [...u2];
|
|
346
|
-
let s = false, i = false, D2 = p(P(e2[e2.length - 1]));
|
|
347
|
-
for (const [C2, n] of F2.entries()) {
|
|
348
|
-
const E = p(n);
|
|
349
|
-
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) {
|
|
350
|
-
i ? n === y && (s = false, i = false) : n === G && (s = false);
|
|
351
|
-
continue;
|
|
352
|
-
}
|
|
353
|
-
D2 += E, D2 === t && C2 < F2.length - 1 && (e2.push(""), D2 = 0);
|
|
354
|
-
}
|
|
355
|
-
!D2 && e2[e2.length - 1].length > 0 && e2.length > 1 && (e2[e2.length - 2] += e2.pop());
|
|
356
|
-
};
|
|
357
|
-
hD = (e2) => {
|
|
358
|
-
const u2 = e2.split(" ");
|
|
359
|
-
let t = u2.length;
|
|
360
|
-
for (; t > 0 && !(p(u2[t - 1]) > 0); ) t--;
|
|
361
|
-
return t === u2.length ? e2 : u2.slice(0, t).join(" ") + u2.slice(t).join("");
|
|
362
|
-
};
|
|
363
|
-
lD = (e2, u2, t = {}) => {
|
|
364
|
-
if (t.trim !== false && e2.trim() === "") return "";
|
|
365
|
-
let F2 = "", s, i;
|
|
366
|
-
const D2 = aD(e2);
|
|
367
|
-
let C2 = [""];
|
|
368
|
-
for (const [E, a] of e2.split(" ").entries()) {
|
|
369
|
-
t.trim !== false && (C2[C2.length - 1] = C2[C2.length - 1].trimStart());
|
|
370
|
-
let o2 = p(C2[C2.length - 1]);
|
|
371
|
-
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) {
|
|
372
|
-
const c = u2 - o2, f = 1 + Math.floor((D2[E] - c - 1) / u2);
|
|
373
|
-
Math.floor((D2[E] - 1) / u2) < f && C2.push(""), k(C2, a, u2);
|
|
374
|
-
continue;
|
|
375
|
-
}
|
|
376
|
-
if (o2 + D2[E] > u2 && o2 > 0 && D2[E] > 0) {
|
|
377
|
-
if (t.wordWrap === false && o2 < u2) {
|
|
378
|
-
k(C2, a, u2);
|
|
379
|
-
continue;
|
|
380
|
-
}
|
|
381
|
-
C2.push("");
|
|
382
|
-
}
|
|
383
|
-
if (o2 + D2[E] > u2 && t.wordWrap === false) {
|
|
384
|
-
k(C2, a, u2);
|
|
385
|
-
continue;
|
|
386
|
-
}
|
|
387
|
-
C2[C2.length - 1] += a;
|
|
388
|
-
}
|
|
389
|
-
t.trim !== false && (C2 = C2.map((E) => hD(E)));
|
|
390
|
-
const n = [...C2.join(`
|
|
391
|
-
`)];
|
|
392
|
-
for (const [E, a] of n.entries()) {
|
|
393
|
-
if (F2 += a, d.has(a)) {
|
|
394
|
-
const { groups: c } = new RegExp(`(?:\\${V}(?<code>\\d+)m|\\${_}(?<uri>.*)${y})`).exec(n.slice(E).join("")) || { groups: {} };
|
|
395
|
-
if (c.code !== void 0) {
|
|
396
|
-
const f = Number.parseFloat(c.code);
|
|
397
|
-
s = f === oD ? void 0 : f;
|
|
398
|
-
} else c.uri !== void 0 && (i = c.uri.length === 0 ? void 0 : c.uri);
|
|
399
|
-
}
|
|
400
|
-
const o2 = ED.codes.get(Number(s));
|
|
401
|
-
n[E + 1] === `
|
|
402
|
-
` ? (i && (F2 += K("")), s && o2 && (F2 += z(o2))) : a === `
|
|
403
|
-
` && (s && o2 && (F2 += z(s)), i && (F2 += K(i)));
|
|
404
|
-
}
|
|
405
|
-
return F2;
|
|
406
|
-
};
|
|
407
|
-
xD = ["up", "down", "left", "right", "space", "enter", "cancel"];
|
|
408
|
-
B = { actions: new Set(xD), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]) };
|
|
409
|
-
AD = globalThis.process.platform.startsWith("win");
|
|
410
|
-
S = /* @__PURE__ */ Symbol("clack:cancel");
|
|
411
|
-
gD = Object.defineProperty;
|
|
412
|
-
vD = (e2, u2, t) => u2 in e2 ? gD(e2, u2, { enumerable: true, configurable: true, writable: true, value: t }) : e2[u2] = t;
|
|
413
|
-
h = (e2, u2, t) => (vD(e2, typeof u2 != "symbol" ? u2 + "" : u2, t), t);
|
|
414
|
-
x = class {
|
|
415
|
-
constructor(u2, t = true) {
|
|
416
|
-
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");
|
|
417
|
-
const { input: F2 = j, output: s = M, render: i, signal: D2, ...C2 } = u2;
|
|
418
|
-
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;
|
|
567
|
+
E = ["up", "down", "left", "right", "space", "enter", "cancel"];
|
|
568
|
+
G = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
569
|
+
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)}` } } };
|
|
570
|
+
Y = globalThis.process.platform.startsWith("win");
|
|
571
|
+
C = /* @__PURE__ */ Symbol("clack:cancel");
|
|
572
|
+
O = (r) => "columns" in r && typeof r.columns == "number" ? r.columns : 80;
|
|
573
|
+
A = (r) => "rows" in r && typeof r.rows == "number" ? r.rows : 20;
|
|
574
|
+
p = class {
|
|
575
|
+
input;
|
|
576
|
+
output;
|
|
577
|
+
_abortSignal;
|
|
578
|
+
rl;
|
|
579
|
+
opts;
|
|
580
|
+
_render;
|
|
581
|
+
_track = false;
|
|
582
|
+
_prevFrame = "";
|
|
583
|
+
_subscribers = /* @__PURE__ */ new Map();
|
|
584
|
+
_cursor = 0;
|
|
585
|
+
state = "initial";
|
|
586
|
+
error = "";
|
|
587
|
+
value;
|
|
588
|
+
userInput = "";
|
|
589
|
+
constructor(t2, e = true) {
|
|
590
|
+
const { input: s = $, output: i = S, render: n, signal: o, ...a } = t2;
|
|
591
|
+
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;
|
|
419
592
|
}
|
|
420
593
|
unsubscribe() {
|
|
421
594
|
this._subscribers.clear();
|
|
422
595
|
}
|
|
423
|
-
setSubscriber(
|
|
424
|
-
const
|
|
425
|
-
|
|
596
|
+
setSubscriber(t2, e) {
|
|
597
|
+
const s = this._subscribers.get(t2) ?? [];
|
|
598
|
+
s.push(e), this._subscribers.set(t2, s);
|
|
426
599
|
}
|
|
427
|
-
on(
|
|
428
|
-
this.setSubscriber(
|
|
600
|
+
on(t2, e) {
|
|
601
|
+
this.setSubscriber(t2, { cb: e });
|
|
429
602
|
}
|
|
430
|
-
once(
|
|
431
|
-
this.setSubscriber(
|
|
603
|
+
once(t2, e) {
|
|
604
|
+
this.setSubscriber(t2, { cb: e, once: true });
|
|
432
605
|
}
|
|
433
|
-
emit(
|
|
434
|
-
const
|
|
435
|
-
for (const
|
|
436
|
-
for (const
|
|
606
|
+
emit(t2, ...e) {
|
|
607
|
+
const s = this._subscribers.get(t2) ?? [], i = [];
|
|
608
|
+
for (const n of s) n.cb(...e), n.once && i.push(() => s.splice(s.indexOf(n), 1));
|
|
609
|
+
for (const n of i) n();
|
|
437
610
|
}
|
|
438
611
|
prompt() {
|
|
439
|
-
return new Promise((
|
|
612
|
+
return new Promise((t2) => {
|
|
440
613
|
if (this._abortSignal) {
|
|
441
|
-
if (this._abortSignal.aborted) return this.state = "cancel", this.close(),
|
|
614
|
+
if (this._abortSignal.aborted) return this.state = "cancel", this.close(), t2(C);
|
|
442
615
|
this._abortSignal.addEventListener("abort", () => {
|
|
443
616
|
this.state = "cancel", this.close();
|
|
444
617
|
}, { once: true });
|
|
445
618
|
}
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D2();
|
|
449
|
-
}, 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", () => {
|
|
450
|
-
this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), m(this.input, false), u2(this.value);
|
|
619
|
+
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", () => {
|
|
620
|
+
this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), w(this.input, false), t2(this.value);
|
|
451
621
|
}), this.once("cancel", () => {
|
|
452
|
-
this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render),
|
|
622
|
+
this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), w(this.input, false), t2(C);
|
|
453
623
|
});
|
|
454
624
|
});
|
|
455
625
|
}
|
|
456
|
-
|
|
457
|
-
|
|
626
|
+
_isActionKey(t2, e) {
|
|
627
|
+
return t2 === " ";
|
|
628
|
+
}
|
|
629
|
+
_setValue(t2) {
|
|
630
|
+
this.value = t2, this.emit("value", this.value);
|
|
631
|
+
}
|
|
632
|
+
_setUserInput(t2, e) {
|
|
633
|
+
this.userInput = t2 ?? "", this.emit("userInput", this.userInput), e && this._track && this.rl && (this.rl.write(this.userInput), this._cursor = this.rl.cursor);
|
|
634
|
+
}
|
|
635
|
+
_clearUserInput() {
|
|
636
|
+
this.rl?.write(null, { ctrl: true, name: "u" }), this._setUserInput("");
|
|
637
|
+
}
|
|
638
|
+
onKeypress(t2, e) {
|
|
639
|
+
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") {
|
|
458
640
|
if (this.opts.validate) {
|
|
459
|
-
const
|
|
460
|
-
|
|
641
|
+
const s = this.opts.validate(this.value);
|
|
642
|
+
s && (this.error = s instanceof Error ? s.message : s, this.state = "error", this.rl?.write(this.userInput));
|
|
461
643
|
}
|
|
462
644
|
this.state !== "error" && (this.state = "submit");
|
|
463
645
|
}
|
|
464
|
-
|
|
646
|
+
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();
|
|
465
647
|
}
|
|
466
648
|
close() {
|
|
467
649
|
this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
|
|
468
|
-
`),
|
|
650
|
+
`), w(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
|
|
469
651
|
}
|
|
470
652
|
restoreCursor() {
|
|
471
|
-
const
|
|
653
|
+
const t2 = wrapAnsi(this._prevFrame, process.stdout.columns, { hard: true, trim: false }).split(`
|
|
472
654
|
`).length - 1;
|
|
473
|
-
this.output.write(import_sisteransi.cursor.move(-999,
|
|
655
|
+
this.output.write(import_sisteransi.cursor.move(-999, t2 * -1));
|
|
474
656
|
}
|
|
475
657
|
render() {
|
|
476
|
-
const
|
|
477
|
-
if (
|
|
658
|
+
const t2 = wrapAnsi(this._render(this) ?? "", process.stdout.columns, { hard: true, trim: false });
|
|
659
|
+
if (t2 !== this._prevFrame) {
|
|
478
660
|
if (this.state === "initial") this.output.write(import_sisteransi.cursor.hide);
|
|
479
661
|
else {
|
|
480
|
-
const
|
|
481
|
-
if (this.restoreCursor(),
|
|
482
|
-
const
|
|
483
|
-
|
|
484
|
-
|
|
662
|
+
const e = j(this._prevFrame, t2), s = A(this.output);
|
|
663
|
+
if (this.restoreCursor(), e) {
|
|
664
|
+
const i = Math.max(0, e.numLinesAfter - s), n = Math.max(0, e.numLinesBefore - s);
|
|
665
|
+
let o = e.lines.find((a) => a >= i);
|
|
666
|
+
if (o === void 0) {
|
|
667
|
+
this._prevFrame = t2;
|
|
668
|
+
return;
|
|
669
|
+
}
|
|
670
|
+
if (e.lines.length === 1) {
|
|
671
|
+
this.output.write(import_sisteransi.cursor.move(0, o - n)), this.output.write(import_sisteransi.erase.lines(1));
|
|
672
|
+
const a = t2.split(`
|
|
485
673
|
`);
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
674
|
+
this.output.write(a[o]), this._prevFrame = t2, this.output.write(import_sisteransi.cursor.move(0, a.length - o - 1));
|
|
675
|
+
return;
|
|
676
|
+
} else if (e.lines.length > 1) {
|
|
677
|
+
if (i < n) o = i;
|
|
678
|
+
else {
|
|
679
|
+
const h = o - n;
|
|
680
|
+
h > 0 && this.output.write(import_sisteransi.cursor.move(0, h));
|
|
681
|
+
}
|
|
682
|
+
this.output.write(import_sisteransi.erase.down());
|
|
683
|
+
const a = t2.split(`
|
|
684
|
+
`).slice(o);
|
|
685
|
+
this.output.write(a.join(`
|
|
686
|
+
`)), this._prevFrame = t2;
|
|
687
|
+
return;
|
|
688
|
+
}
|
|
497
689
|
}
|
|
498
690
|
this.output.write(import_sisteransi.erase.down());
|
|
499
691
|
}
|
|
500
|
-
this.output.write(
|
|
692
|
+
this.output.write(t2), this.state === "initial" && (this.state = "active"), this._prevFrame = t2;
|
|
501
693
|
}
|
|
502
694
|
}
|
|
503
695
|
};
|
|
504
|
-
|
|
696
|
+
Q = class extends p {
|
|
505
697
|
get cursor() {
|
|
506
698
|
return this.value ? 0 : 1;
|
|
507
699
|
}
|
|
508
700
|
get _value() {
|
|
509
701
|
return this.cursor === 0;
|
|
510
702
|
}
|
|
511
|
-
constructor(
|
|
512
|
-
super(
|
|
703
|
+
constructor(t2) {
|
|
704
|
+
super(t2, false), this.value = !!t2.initialValue, this.on("userInput", () => {
|
|
513
705
|
this.value = this._value;
|
|
514
|
-
}), this.on("confirm", (
|
|
515
|
-
this.output.write(import_sisteransi.cursor.move(0, -1)), this.value =
|
|
706
|
+
}), this.on("confirm", (e) => {
|
|
707
|
+
this.output.write(import_sisteransi.cursor.move(0, -1)), this.value = e, this.state = "submit", this.close();
|
|
516
708
|
}), this.on("cursor", () => {
|
|
517
709
|
this.value = !this.value;
|
|
518
710
|
});
|
|
519
711
|
}
|
|
520
712
|
};
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
713
|
+
nt = class extends p {
|
|
714
|
+
options;
|
|
715
|
+
cursor = 0;
|
|
716
|
+
get _selectedValue() {
|
|
717
|
+
return this.options[this.cursor];
|
|
718
|
+
}
|
|
719
|
+
changeValue() {
|
|
720
|
+
this.value = this._selectedValue.value;
|
|
721
|
+
}
|
|
722
|
+
constructor(t2) {
|
|
723
|
+
super(t2, false), this.options = t2.options;
|
|
724
|
+
const e = this.options.findIndex(({ value: i }) => i === t2.initialValue), s = e === -1 ? 0 : e;
|
|
725
|
+
this.cursor = this.options[s].disabled ? d(s, 1, this.options) : s, this.changeValue(), this.on("cursor", (i) => {
|
|
726
|
+
switch (i) {
|
|
529
727
|
case "left":
|
|
530
728
|
case "up":
|
|
531
|
-
this.cursor = this.cursor
|
|
729
|
+
this.cursor = d(this.cursor, -1, this.options);
|
|
532
730
|
break;
|
|
533
731
|
case "down":
|
|
534
732
|
case "right":
|
|
535
|
-
this.cursor = this.cursor
|
|
733
|
+
this.cursor = d(this.cursor, 1, this.options);
|
|
536
734
|
break;
|
|
537
735
|
}
|
|
538
736
|
this.changeValue();
|
|
539
737
|
});
|
|
540
738
|
}
|
|
541
|
-
get _value() {
|
|
542
|
-
return this.options[this.cursor];
|
|
543
|
-
}
|
|
544
|
-
changeValue() {
|
|
545
|
-
this.value = this._value.value;
|
|
546
|
-
}
|
|
547
739
|
};
|
|
548
|
-
|
|
549
|
-
get
|
|
550
|
-
if (this.state === "submit") return this.
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
740
|
+
at = class extends p {
|
|
741
|
+
get userInputWithCursor() {
|
|
742
|
+
if (this.state === "submit") return this.userInput;
|
|
743
|
+
const t2 = this.userInput;
|
|
744
|
+
if (this.cursor >= t2.length) return `${this.userInput}\u2588`;
|
|
745
|
+
const e = t2.slice(0, this.cursor), [s, ...i] = t2.slice(this.cursor);
|
|
746
|
+
return `${e}${y("inverse", s)}${i.join("")}`;
|
|
554
747
|
}
|
|
555
748
|
get cursor() {
|
|
556
749
|
return this._cursor;
|
|
557
750
|
}
|
|
558
|
-
constructor(
|
|
559
|
-
super(
|
|
560
|
-
this.
|
|
751
|
+
constructor(t2) {
|
|
752
|
+
super({ ...t2, initialUserInput: t2.initialUserInput ?? t2.initialValue }), this.on("userInput", (e) => {
|
|
753
|
+
this._setValue(e);
|
|
754
|
+
}), this.on("finalize", () => {
|
|
755
|
+
this.value || (this.value = t2.defaultValue), this.value === void 0 && (this.value = "");
|
|
561
756
|
});
|
|
562
757
|
}
|
|
563
758
|
};
|
|
564
759
|
}
|
|
565
760
|
});
|
|
566
761
|
|
|
567
|
-
// node_modules/.bun/@clack+prompts@
|
|
568
|
-
import { stripVTControlCharacters as
|
|
569
|
-
import
|
|
570
|
-
|
|
571
|
-
|
|
762
|
+
// node_modules/.bun/@clack+prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs
|
|
763
|
+
import { styleText as t, stripVTControlCharacters as ne } from "node:util";
|
|
764
|
+
import P2 from "node:process";
|
|
765
|
+
import { existsSync as Xe, lstatSync as we, readdirSync as ze } from "node:fs";
|
|
766
|
+
import { dirname as be, join as Qe } from "node:path";
|
|
767
|
+
function Ze() {
|
|
768
|
+
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";
|
|
572
769
|
}
|
|
573
|
-
var
|
|
574
|
-
var
|
|
575
|
-
"node_modules/.bun/@clack+prompts@
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
770
|
+
var import_sisteransi2, ee, ae, w2, _e, oe, ue, F, le, d2, E2, Ie, Ee, z2, H2, te, U, J, xe, se, ce, Ge, $e, de, Oe, he, pe, me, ge, V2, ye, et2, Y2, ot2, O2, pt, mt, gt, ft, vt, wt, Ct, fe, Ve, re, _t, je, Ot;
|
|
771
|
+
var init_dist4 = __esm({
|
|
772
|
+
"node_modules/.bun/@clack+prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs"() {
|
|
773
|
+
init_utils2();
|
|
774
|
+
init_dist3();
|
|
775
|
+
init_dist3();
|
|
776
|
+
init_main();
|
|
777
|
+
init_dist2();
|
|
580
778
|
import_sisteransi2 = __toESM(require_src(), 1);
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
d2 =
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
779
|
+
ee = Ze();
|
|
780
|
+
ae = () => process.env.CI === "true";
|
|
781
|
+
w2 = (e, i) => ee ? e : i;
|
|
782
|
+
_e = w2("\u25C6", "*");
|
|
783
|
+
oe = w2("\u25A0", "x");
|
|
784
|
+
ue = w2("\u25B2", "x");
|
|
785
|
+
F = w2("\u25C7", "o");
|
|
786
|
+
le = w2("\u250C", "T");
|
|
787
|
+
d2 = w2("\u2502", "|");
|
|
788
|
+
E2 = w2("\u2514", "\u2014");
|
|
789
|
+
Ie = w2("\u2510", "T");
|
|
790
|
+
Ee = w2("\u2518", "\u2014");
|
|
791
|
+
z2 = w2("\u25CF", ">");
|
|
792
|
+
H2 = w2("\u25CB", " ");
|
|
793
|
+
te = w2("\u25FB", "[\u2022]");
|
|
794
|
+
U = w2("\u25FC", "[+]");
|
|
795
|
+
J = w2("\u25FB", "[ ]");
|
|
796
|
+
xe = w2("\u25AA", "\u2022");
|
|
797
|
+
se = w2("\u2500", "-");
|
|
798
|
+
ce = w2("\u256E", "+");
|
|
799
|
+
Ge = w2("\u251C", "+");
|
|
800
|
+
$e = w2("\u256F", "+");
|
|
801
|
+
de = w2("\u2570", "+");
|
|
802
|
+
Oe = w2("\u256D", "+");
|
|
803
|
+
he = w2("\u25CF", "\u2022");
|
|
804
|
+
pe = w2("\u25C6", "*");
|
|
805
|
+
me = w2("\u25B2", "!");
|
|
806
|
+
ge = w2("\u25A0", "x");
|
|
807
|
+
V2 = (e) => {
|
|
808
|
+
switch (e) {
|
|
606
809
|
case "initial":
|
|
607
810
|
case "active":
|
|
608
|
-
return
|
|
811
|
+
return t("cyan", _e);
|
|
609
812
|
case "cancel":
|
|
610
|
-
return
|
|
813
|
+
return t("red", oe);
|
|
611
814
|
case "error":
|
|
612
|
-
return
|
|
815
|
+
return t("yellow", ue);
|
|
613
816
|
case "submit":
|
|
614
|
-
return
|
|
817
|
+
return t("green", F);
|
|
615
818
|
}
|
|
616
819
|
};
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
return j2 || E ? import_picocolors2.default.dim("...") : i(p2, v2 + l2 === n);
|
|
625
|
-
});
|
|
626
|
-
};
|
|
627
|
-
he = (t) => new RD({ validate: t.validate, placeholder: t.placeholder, defaultValue: t.defaultValue, initialValue: t.initialValue, render() {
|
|
628
|
-
const n = `${import_picocolors2.default.gray(o)}
|
|
629
|
-
${b2(this.state)} ${t.message}
|
|
630
|
-
`, r2 = t.placeholder ? import_picocolors2.default.inverse(t.placeholder[0]) + import_picocolors2.default.dim(t.placeholder.slice(1)) : import_picocolors2.default.inverse(import_picocolors2.default.hidden("_")), i = this.value ? this.valueWithCursor : r2;
|
|
631
|
-
switch (this.state) {
|
|
820
|
+
ye = (e) => {
|
|
821
|
+
switch (e) {
|
|
822
|
+
case "initial":
|
|
823
|
+
case "active":
|
|
824
|
+
return t("cyan", d2);
|
|
825
|
+
case "cancel":
|
|
826
|
+
return t("red", d2);
|
|
632
827
|
case "error":
|
|
633
|
-
return
|
|
634
|
-
${import_picocolors2.default.yellow(o)} ${i}
|
|
635
|
-
${import_picocolors2.default.yellow(d2)} ${import_picocolors2.default.yellow(this.error)}
|
|
636
|
-
`;
|
|
828
|
+
return t("yellow", d2);
|
|
637
829
|
case "submit":
|
|
638
|
-
return
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
const
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
}
|
|
680
|
-
};
|
|
681
|
-
return new LD({ options: t.options, initialValue: t.initialValue, render() {
|
|
682
|
-
const r2 = `${import_picocolors2.default.gray(o)}
|
|
683
|
-
${b2(this.state)} ${t.message}
|
|
684
|
-
`;
|
|
830
|
+
return t("green", d2);
|
|
831
|
+
}
|
|
832
|
+
};
|
|
833
|
+
et2 = (e, i, s, r, u2) => {
|
|
834
|
+
let n = i, o = 0;
|
|
835
|
+
for (let c2 = s; c2 < r; c2++) {
|
|
836
|
+
const a = e[c2];
|
|
837
|
+
if (n = n - a.length, o++, n <= u2) break;
|
|
838
|
+
}
|
|
839
|
+
return { lineCount: n, removals: o };
|
|
840
|
+
};
|
|
841
|
+
Y2 = ({ cursor: e, options: i, style: s, output: r = process.stdout, maxItems: u2 = Number.POSITIVE_INFINITY, columnPadding: n = 0, rowPadding: o = 4 }) => {
|
|
842
|
+
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);
|
|
843
|
+
let p2 = 0;
|
|
844
|
+
e >= y2 - 3 && (p2 = Math.max(Math.min(e - y2 + 3, i.length - y2), 0));
|
|
845
|
+
let m = y2 < i.length && p2 > 0, g = y2 < i.length && p2 + y2 < i.length;
|
|
846
|
+
const S2 = Math.min(p2 + y2, i.length), h = [];
|
|
847
|
+
let f = 0;
|
|
848
|
+
m && f++, g && f++;
|
|
849
|
+
const v = p2 + (m ? 1 : 0), T = S2 - (g ? 1 : 0);
|
|
850
|
+
for (let b = v; b < T; b++) {
|
|
851
|
+
const x = wrapAnsi(s(i[b], b === e), c2, { hard: true, trim: false }).split(`
|
|
852
|
+
`);
|
|
853
|
+
h.push(x), f += x.length;
|
|
854
|
+
}
|
|
855
|
+
if (f > $2) {
|
|
856
|
+
let b = 0, x = 0, G2 = f;
|
|
857
|
+
const M2 = e - v, R2 = (j2, D2) => et2(h, G2, j2, D2, $2);
|
|
858
|
+
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));
|
|
859
|
+
}
|
|
860
|
+
const C2 = [];
|
|
861
|
+
m && C2.push(l);
|
|
862
|
+
for (const b of h) for (const x of b) C2.push(x);
|
|
863
|
+
return g && C2.push(l), C2;
|
|
864
|
+
};
|
|
865
|
+
ot2 = (e) => {
|
|
866
|
+
const i = e.active ?? "Yes", s = e.inactive ?? "No";
|
|
867
|
+
return new Q({ active: i, inactive: s, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue ?? true, render() {
|
|
868
|
+
const r = e.withGuide ?? u.withGuide, u2 = `${V2(this.state)} `, n = r ? `${t("gray", d2)} ` : "", o = R(e.output, e.message, n, u2), c2 = `${r ? `${t("gray", d2)}
|
|
869
|
+
` : ""}${o}
|
|
870
|
+
`, a = this.value ? i : s;
|
|
685
871
|
switch (this.state) {
|
|
686
|
-
case "submit":
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
return `${
|
|
693
|
-
${
|
|
694
|
-
|
|
872
|
+
case "submit": {
|
|
873
|
+
const l = r ? `${t("gray", d2)} ` : "";
|
|
874
|
+
return `${c2}${l}${t("dim", a)}`;
|
|
875
|
+
}
|
|
876
|
+
case "cancel": {
|
|
877
|
+
const l = r ? `${t("gray", d2)} ` : "";
|
|
878
|
+
return `${c2}${l}${t(["strikethrough", "dim"], a)}${r ? `
|
|
879
|
+
${t("gray", d2)}` : ""}`;
|
|
880
|
+
}
|
|
881
|
+
default: {
|
|
882
|
+
const l = r ? `${t("cyan", d2)} ` : "", $2 = r ? t("cyan", E2) : "";
|
|
883
|
+
return `${c2}${l}${this.value ? `${t("green", z2)} ${i}` : `${t("dim", H2)} ${t("dim", i)}`}${e.vertical ? r ? `
|
|
884
|
+
${t("cyan", d2)} ` : `
|
|
885
|
+
` : ` ${t("dim", "/")} `}${this.value ? `${t("dim", H2)} ${t("dim", s)}` : `${t("green", z2)} ${s}`}
|
|
886
|
+
${$2}
|
|
695
887
|
`;
|
|
888
|
+
}
|
|
696
889
|
}
|
|
697
890
|
} }).prompt();
|
|
698
891
|
};
|
|
699
|
-
|
|
700
|
-
const
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
`), i = S2(n).length, s = Math.max(r2.reduce((a, l2) => {
|
|
704
|
-
const $2 = S2(l2);
|
|
705
|
-
return $2.length > a ? $2.length : a;
|
|
706
|
-
}, 0), i) + 2, c = r2.map((a) => `${import_picocolors2.default.gray(o)} ${import_picocolors2.default.dim(a)}${" ".repeat(s - S2(a).length)}${import_picocolors2.default.gray(o)}`).join(`
|
|
892
|
+
O2 = { message: (e = [], { symbol: i = t("gray", d2), secondarySymbol: s = t("gray", d2), output: r = process.stdout, spacing: u2 = 1, withGuide: n } = {}) => {
|
|
893
|
+
const o = [], c2 = n ?? u.withGuide, a = c2 ? s : "", l = c2 ? `${i} ` : "", $2 = c2 ? `${s} ` : "";
|
|
894
|
+
for (let p2 = 0; p2 < u2; p2++) o.push(a);
|
|
895
|
+
const y2 = Array.isArray(e) ? e : e.split(`
|
|
707
896
|
`);
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
${
|
|
711
|
-
|
|
897
|
+
if (y2.length > 0) {
|
|
898
|
+
const [p2, ...m] = y2;
|
|
899
|
+
p2.length > 0 ? o.push(`${l}${p2}`) : o.push(c2 ? i : "");
|
|
900
|
+
for (const g of m) g.length > 0 ? o.push(`${$2}${g}`) : o.push(c2 ? s : "");
|
|
901
|
+
}
|
|
902
|
+
r.write(`${o.join(`
|
|
903
|
+
`)}
|
|
712
904
|
`);
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
|
|
905
|
+
}, info: (e, i) => {
|
|
906
|
+
O2.message(e, { ...i, symbol: t("blue", he) });
|
|
907
|
+
}, success: (e, i) => {
|
|
908
|
+
O2.message(e, { ...i, symbol: t("green", pe) });
|
|
909
|
+
}, step: (e, i) => {
|
|
910
|
+
O2.message(e, { ...i, symbol: t("green", F) });
|
|
911
|
+
}, warn: (e, i) => {
|
|
912
|
+
O2.message(e, { ...i, symbol: t("yellow", me) });
|
|
913
|
+
}, warning: (e, i) => {
|
|
914
|
+
O2.warn(e, i);
|
|
915
|
+
}, error: (e, i) => {
|
|
916
|
+
O2.message(e, { ...i, symbol: t("red", ge) });
|
|
917
|
+
} };
|
|
918
|
+
pt = (e = "", i) => {
|
|
919
|
+
const s = i?.output ?? process.stdout, r = i?.withGuide ?? u.withGuide ? `${t("gray", E2)} ` : "";
|
|
920
|
+
s.write(`${r}${t("red", e)}
|
|
716
921
|
|
|
717
922
|
`);
|
|
718
923
|
};
|
|
719
|
-
|
|
720
|
-
process.stdout.
|
|
924
|
+
mt = (e = "", i) => {
|
|
925
|
+
const s = i?.output ?? process.stdout, r = i?.withGuide ?? u.withGuide ? `${t("gray", le)} ` : "";
|
|
926
|
+
s.write(`${r}${e}
|
|
721
927
|
`);
|
|
722
928
|
};
|
|
723
|
-
|
|
724
|
-
process.stdout.
|
|
725
|
-
${
|
|
929
|
+
gt = (e = "", i) => {
|
|
930
|
+
const s = i?.output ?? process.stdout, r = i?.withGuide ?? u.withGuide ? `${t("gray", d2)}
|
|
931
|
+
${t("gray", E2)} ` : "";
|
|
932
|
+
s.write(`${r}${e}
|
|
726
933
|
|
|
727
934
|
`);
|
|
728
935
|
};
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
`)
|
|
936
|
+
ft = (e) => t("dim", e);
|
|
937
|
+
vt = (e, i, s) => {
|
|
938
|
+
const r = { hard: true, trim: false }, u2 = wrapAnsi(e, i, r).split(`
|
|
939
|
+
`), n = u2.reduce((a, l) => Math.max(dist_default2(l), a), 0), o = u2.map(s).reduce((a, l) => Math.max(dist_default2(l), a), 0), c2 = i - (o - n);
|
|
940
|
+
return wrapAnsi(e, c2, r);
|
|
941
|
+
};
|
|
942
|
+
wt = (e = "", i = "", s) => {
|
|
943
|
+
const r = s?.output ?? P2.stdout, u2 = s?.withGuide ?? u.withGuide, n = s?.format ?? ft, o = ["", ...vt(e, O(r) - 6, n).split(`
|
|
944
|
+
`).map(n), ""], c2 = dist_default2(i), a = Math.max(o.reduce((p2, m) => {
|
|
945
|
+
const g = dist_default2(m);
|
|
946
|
+
return g > p2 ? g : p2;
|
|
947
|
+
}, 0), c2) + 2, l = o.map((p2) => `${t("gray", d2)} ${p2}${" ".repeat(a - dist_default2(p2))}${t("gray", d2)}`).join(`
|
|
948
|
+
`), $2 = u2 ? `${t("gray", d2)}
|
|
949
|
+
` : "", y2 = u2 ? Ge : de;
|
|
950
|
+
r.write(`${$2}${t("green", F)} ${t("reset", i)} ${t("gray", se.repeat(Math.max(a - c2 - 1, 1)) + ce)}
|
|
951
|
+
${l}
|
|
952
|
+
${t("gray", y2 + se.repeat(a + 2) + $e)}
|
|
738
953
|
`);
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
const n = V2 ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], r2 = V2 ? 80 : 120, i = process.env.CI === "true";
|
|
755
|
-
let s, c, a = false, l2 = "", $2, g2 = performance.now();
|
|
756
|
-
const p2 = (m2) => {
|
|
757
|
-
const h2 = m2 > 1 ? "Something went wrong" : "Canceled";
|
|
758
|
-
a && N2(h2, m2);
|
|
759
|
-
}, v2 = () => p2(2), f = () => p2(1), j2 = () => {
|
|
760
|
-
process.on("uncaughtExceptionMonitor", v2), process.on("unhandledRejection", v2), process.on("SIGINT", f), process.on("SIGTERM", f), process.on("exit", p2);
|
|
761
|
-
}, E = () => {
|
|
762
|
-
process.removeListener("uncaughtExceptionMonitor", v2), process.removeListener("unhandledRejection", v2), process.removeListener("SIGINT", f), process.removeListener("SIGTERM", f), process.removeListener("exit", p2);
|
|
763
|
-
}, B2 = () => {
|
|
764
|
-
if ($2 === void 0) return;
|
|
765
|
-
i && process.stdout.write(`
|
|
954
|
+
};
|
|
955
|
+
Ct = (e) => t("magenta", e);
|
|
956
|
+
fe = ({ indicator: e = "dots", onCancel: i, output: s = process.stdout, cancelMessage: r, errorMessage: u2, frames: n = ee ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], delay: o = ee ? 80 : 120, signal: c2, ...a } = {}) => {
|
|
957
|
+
const l = ae();
|
|
958
|
+
let $2, y2, p2 = false, m = false, g = "", S2, h = performance.now();
|
|
959
|
+
const f = O(s), v = a?.styleFrame ?? Ct, T = (_2) => {
|
|
960
|
+
const A2 = _2 > 1 ? u2 ?? u.messages.error : r ?? u.messages.cancel;
|
|
961
|
+
m = _2 === 1, p2 && (W(A2, _2), m && typeof i == "function" && i());
|
|
962
|
+
}, C2 = () => T(2), b = () => T(1), x = () => {
|
|
963
|
+
process.on("uncaughtExceptionMonitor", C2), process.on("unhandledRejection", C2), process.on("SIGINT", b), process.on("SIGTERM", b), process.on("exit", T), c2 && c2.addEventListener("abort", b);
|
|
964
|
+
}, G2 = () => {
|
|
965
|
+
process.removeListener("uncaughtExceptionMonitor", C2), process.removeListener("unhandledRejection", C2), process.removeListener("SIGINT", b), process.removeListener("SIGTERM", b), process.removeListener("exit", T), c2 && c2.removeEventListener("abort", b);
|
|
966
|
+
}, M2 = () => {
|
|
967
|
+
if (S2 === void 0) return;
|
|
968
|
+
l && s.write(`
|
|
766
969
|
`);
|
|
767
|
-
const
|
|
970
|
+
const _2 = wrapAnsi(S2, f, { hard: true, trim: false }).split(`
|
|
768
971
|
`);
|
|
769
|
-
|
|
770
|
-
}, R2 = (
|
|
771
|
-
const
|
|
772
|
-
return
|
|
773
|
-
},
|
|
774
|
-
|
|
972
|
+
_2.length > 1 && s.write(import_sisteransi2.cursor.up(_2.length - 1)), s.write(import_sisteransi2.cursor.to(0)), s.write(import_sisteransi2.erase.down());
|
|
973
|
+
}, R2 = (_2) => _2.replace(/\.+$/, ""), j2 = (_2) => {
|
|
974
|
+
const A2 = (performance.now() - _2) / 1e3, k = Math.floor(A2 / 60), L = Math.floor(A2 % 60);
|
|
975
|
+
return k > 0 ? `[${k}m ${L}s]` : `[${L}s]`;
|
|
976
|
+
}, D2 = a.withGuide ?? u.withGuide, ie = (_2 = "") => {
|
|
977
|
+
p2 = true, $2 = z({ output: s }), g = R2(_2), h = performance.now(), D2 && s.write(`${t("gray", d2)}
|
|
775
978
|
`);
|
|
776
|
-
let
|
|
777
|
-
|
|
778
|
-
if (
|
|
779
|
-
|
|
780
|
-
const
|
|
781
|
-
|
|
782
|
-
|
|
979
|
+
let A2 = 0, k = 0;
|
|
980
|
+
x(), y2 = setInterval(() => {
|
|
981
|
+
if (l && g === S2) return;
|
|
982
|
+
M2(), S2 = g;
|
|
983
|
+
const L = v(n[A2]);
|
|
984
|
+
let Z;
|
|
985
|
+
if (l) Z = `${L} ${g}...`;
|
|
986
|
+
else if (e === "timer") Z = `${L} ${g} ${j2(h)}`;
|
|
783
987
|
else {
|
|
784
|
-
const
|
|
785
|
-
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
988
|
+
const Be = ".".repeat(Math.floor(k)).slice(0, 3);
|
|
989
|
+
Z = `${L} ${g}${Be}`;
|
|
990
|
+
}
|
|
991
|
+
const Ne = wrapAnsi(Z, f, { hard: true, trim: false });
|
|
992
|
+
s.write(Ne), A2 = A2 + 1 < n.length ? A2 + 1 : 0, k = k < 4 ? k + 0.125 : 0;
|
|
993
|
+
}, o);
|
|
994
|
+
}, W = (_2 = "", A2 = 0, k = false) => {
|
|
995
|
+
if (!p2) return;
|
|
996
|
+
p2 = false, clearInterval(y2), M2();
|
|
997
|
+
const L = A2 === 0 ? t("green", F) : A2 === 1 ? t("red", oe) : t("red", ue);
|
|
998
|
+
g = _2 ?? g, k || (e === "timer" ? s.write(`${L} ${g} ${j2(h)}
|
|
999
|
+
`) : s.write(`${L} ${g}
|
|
1000
|
+
`)), G2(), $2();
|
|
795
1001
|
};
|
|
796
|
-
return { start:
|
|
797
|
-
|
|
1002
|
+
return { start: ie, stop: (_2 = "") => W(_2, 0), message: (_2 = "") => {
|
|
1003
|
+
g = R2(_2 ?? g);
|
|
1004
|
+
}, cancel: (_2 = "") => W(_2, 1), error: (_2 = "") => W(_2, 2), clear: () => W("", 0, true), get isCancelled() {
|
|
1005
|
+
return m;
|
|
798
1006
|
} };
|
|
799
1007
|
};
|
|
1008
|
+
Ve = { light: w2("\u2500", "-"), heavy: w2("\u2501", "="), block: w2("\u2588", "#") };
|
|
1009
|
+
re = (e, i) => e.includes(`
|
|
1010
|
+
`) ? e.split(`
|
|
1011
|
+
`).map((s) => i(s)).join(`
|
|
1012
|
+
`) : i(e);
|
|
1013
|
+
_t = (e) => {
|
|
1014
|
+
const i = (s, r) => {
|
|
1015
|
+
const u2 = s.label ?? String(s.value);
|
|
1016
|
+
switch (r) {
|
|
1017
|
+
case "disabled":
|
|
1018
|
+
return `${t("gray", H2)} ${re(u2, (n) => t("gray", n))}${s.hint ? ` ${t("dim", `(${s.hint ?? "disabled"})`)}` : ""}`;
|
|
1019
|
+
case "selected":
|
|
1020
|
+
return `${re(u2, (n) => t("dim", n))}`;
|
|
1021
|
+
case "active":
|
|
1022
|
+
return `${t("green", z2)} ${u2}${s.hint ? ` ${t("dim", `(${s.hint})`)}` : ""}`;
|
|
1023
|
+
case "cancelled":
|
|
1024
|
+
return `${re(u2, (n) => t(["strikethrough", "dim"], n))}`;
|
|
1025
|
+
default:
|
|
1026
|
+
return `${t("dim", H2)} ${re(u2, (n) => t("dim", n))}`;
|
|
1027
|
+
}
|
|
1028
|
+
};
|
|
1029
|
+
return new nt({ options: e.options, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue, render() {
|
|
1030
|
+
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)}
|
|
1031
|
+
` : ""}${n}
|
|
1032
|
+
`;
|
|
1033
|
+
switch (this.state) {
|
|
1034
|
+
case "submit": {
|
|
1035
|
+
const c2 = s ? `${t("gray", d2)} ` : "", a = R(e.output, i(this.options[this.cursor], "selected"), c2);
|
|
1036
|
+
return `${o}${a}`;
|
|
1037
|
+
}
|
|
1038
|
+
case "cancel": {
|
|
1039
|
+
const c2 = s ? `${t("gray", d2)} ` : "", a = R(e.output, i(this.options[this.cursor], "cancelled"), c2);
|
|
1040
|
+
return `${o}${a}${s ? `
|
|
1041
|
+
${t("gray", d2)}` : ""}`;
|
|
1042
|
+
}
|
|
1043
|
+
default: {
|
|
1044
|
+
const c2 = s ? `${t("cyan", d2)} ` : "", a = s ? t("cyan", E2) : "", l = o.split(`
|
|
1045
|
+
`).length, $2 = s ? 2 : 1;
|
|
1046
|
+
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(`
|
|
1047
|
+
${c2}`)}
|
|
1048
|
+
${a}
|
|
1049
|
+
`;
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
} }).prompt();
|
|
1053
|
+
};
|
|
1054
|
+
je = `${t("gray", d2)} `;
|
|
1055
|
+
Ot = (e) => new at({ validate: e.validate, placeholder: e.placeholder, defaultValue: e.defaultValue, initialValue: e.initialValue, output: e.output, signal: e.signal, input: e.input, render() {
|
|
1056
|
+
const i = e?.withGuide ?? u.withGuide, s = `${`${i ? `${t("gray", d2)}
|
|
1057
|
+
` : ""}${V2(this.state)} `}${e.message}
|
|
1058
|
+
`, r = e.placeholder ? t("inverse", e.placeholder[0]) + t("dim", e.placeholder.slice(1)) : t(["inverse", "hidden"], "_"), u2 = this.userInput ? this.userInputWithCursor : r, n = this.value ?? "";
|
|
1059
|
+
switch (this.state) {
|
|
1060
|
+
case "error": {
|
|
1061
|
+
const o = this.error ? ` ${t("yellow", this.error)}` : "", c2 = i ? `${t("yellow", d2)} ` : "", a = i ? t("yellow", E2) : "";
|
|
1062
|
+
return `${s.trim()}
|
|
1063
|
+
${c2}${u2}
|
|
1064
|
+
${a}${o}
|
|
1065
|
+
`;
|
|
1066
|
+
}
|
|
1067
|
+
case "submit": {
|
|
1068
|
+
const o = n ? ` ${t("dim", n)}` : "", c2 = i ? t("gray", d2) : "";
|
|
1069
|
+
return `${s}${c2}${o}`;
|
|
1070
|
+
}
|
|
1071
|
+
case "cancel": {
|
|
1072
|
+
const o = n ? ` ${t(["strikethrough", "dim"], n)}` : "", c2 = i ? t("gray", d2) : "";
|
|
1073
|
+
return `${s}${c2}${o}${n.trim() ? `
|
|
1074
|
+
${c2}` : ""}`;
|
|
1075
|
+
}
|
|
1076
|
+
default: {
|
|
1077
|
+
const o = i ? `${t("cyan", d2)} ` : "", c2 = i ? t("cyan", E2) : "";
|
|
1078
|
+
return `${s}${o}${u2}
|
|
1079
|
+
${c2}
|
|
1080
|
+
`;
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
} }).prompt();
|
|
800
1084
|
}
|
|
801
1085
|
});
|
|
802
1086
|
|
|
@@ -804,21 +1088,21 @@ ${import_picocolors2.default.gray(d2)} ${t}
|
|
|
804
1088
|
var cli_output_exports = {};
|
|
805
1089
|
__export(cli_output_exports, {
|
|
806
1090
|
LogLevel: () => LogLevel,
|
|
807
|
-
cancel: () =>
|
|
1091
|
+
cancel: () => pt,
|
|
808
1092
|
colorUtils: () => colorUtils,
|
|
809
1093
|
displayDoNotDevError: () => displayDoNotDevError,
|
|
810
1094
|
error: () => error,
|
|
811
1095
|
getLogLevel: () => getLogLevel,
|
|
812
1096
|
info: () => info,
|
|
813
|
-
intro: () =>
|
|
814
|
-
isCancel: () =>
|
|
1097
|
+
intro: () => mt,
|
|
1098
|
+
isCancel: () => q,
|
|
815
1099
|
isDebug: () => isDebug,
|
|
816
1100
|
isVerbose: () => isVerbose,
|
|
817
1101
|
log: () => log,
|
|
818
|
-
note: () =>
|
|
819
|
-
outro: () =>
|
|
1102
|
+
note: () => wt,
|
|
1103
|
+
outro: () => gt,
|
|
820
1104
|
setLogLevel: () => setLogLevel,
|
|
821
|
-
spinner: () =>
|
|
1105
|
+
spinner: () => fe,
|
|
822
1106
|
success: () => success,
|
|
823
1107
|
warn: () => warn
|
|
824
1108
|
});
|
|
@@ -894,15 +1178,15 @@ ${contextStr}`;
|
|
|
894
1178
|
|
|
895
1179
|
Original error: ${originalMsg}`;
|
|
896
1180
|
}
|
|
897
|
-
|
|
1181
|
+
O2.error(message);
|
|
898
1182
|
}
|
|
899
1183
|
var colors, colorUtils, LogLevel, currentLogLevel, log, error, warn, info, success;
|
|
900
1184
|
var init_cli_output = __esm({
|
|
901
1185
|
"packages/tooling/src/utils/cli-output.ts"() {
|
|
902
1186
|
"use strict";
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
1187
|
+
init_utils2();
|
|
1188
|
+
init_dist4();
|
|
1189
|
+
init_dist4();
|
|
906
1190
|
colors = {
|
|
907
1191
|
reset: "\x1B[0m",
|
|
908
1192
|
// Success (green)
|
|
@@ -949,7 +1233,7 @@ var init_cli_output = __esm({
|
|
|
949
1233
|
error(...args) {
|
|
950
1234
|
if (currentLogLevel < 0 /* Quiet */) return;
|
|
951
1235
|
const message = formatMessage(...args);
|
|
952
|
-
|
|
1236
|
+
O2.error(colorize(message, colors.brightRed));
|
|
953
1237
|
},
|
|
954
1238
|
/**
|
|
955
1239
|
* Logs a warning message (shows at Normal level and above)
|
|
@@ -958,7 +1242,7 @@ var init_cli_output = __esm({
|
|
|
958
1242
|
warn(...args) {
|
|
959
1243
|
if (currentLogLevel < 1 /* Normal */) return;
|
|
960
1244
|
const message = formatMessage(...args);
|
|
961
|
-
|
|
1245
|
+
O2.warn(colorize(message, colors.brightYellow));
|
|
962
1246
|
},
|
|
963
1247
|
/**
|
|
964
1248
|
* Logs an info message (shows at Normal level and above)
|
|
@@ -967,7 +1251,7 @@ var init_cli_output = __esm({
|
|
|
967
1251
|
info(...args) {
|
|
968
1252
|
if (currentLogLevel < 1 /* Normal */) return;
|
|
969
1253
|
const message = formatMessage(...args);
|
|
970
|
-
|
|
1254
|
+
O2.info(colorize(message, colors.brightCyan));
|
|
971
1255
|
},
|
|
972
1256
|
/**
|
|
973
1257
|
* Logs a success message (shows at Normal level and above)
|
|
@@ -976,7 +1260,7 @@ var init_cli_output = __esm({
|
|
|
976
1260
|
success(...args) {
|
|
977
1261
|
if (currentLogLevel < 1 /* Normal */) return;
|
|
978
1262
|
const message = formatMessage(...args);
|
|
979
|
-
|
|
1263
|
+
O2.success(colorize(message, colors.brightGreen));
|
|
980
1264
|
},
|
|
981
1265
|
/**
|
|
982
1266
|
* Logs a debug message (only shows at Verbose level and above)
|
|
@@ -985,7 +1269,7 @@ var init_cli_output = __esm({
|
|
|
985
1269
|
debug(...args) {
|
|
986
1270
|
if (currentLogLevel < 2 /* Verbose */) return;
|
|
987
1271
|
const timeStamp = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
|
|
988
|
-
|
|
1272
|
+
O2.message(
|
|
989
1273
|
colorize(
|
|
990
1274
|
`[${timeStamp}] \u{1F50D} DEBUG: ${formatMessage(...args)}`,
|
|
991
1275
|
colors.gray
|
|
@@ -999,7 +1283,7 @@ var init_cli_output = __esm({
|
|
|
999
1283
|
trace(...args) {
|
|
1000
1284
|
if (currentLogLevel < 3 /* Debug */) return;
|
|
1001
1285
|
const timeStamp = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
|
|
1002
|
-
|
|
1286
|
+
O2.message(
|
|
1003
1287
|
colorize(
|
|
1004
1288
|
`[${timeStamp}] \u{1F52C} TRACE: ${formatMessage(...args)}`,
|
|
1005
1289
|
colors.gray
|
|
@@ -1019,7 +1303,7 @@ var DO_NOT_DEV_ERROR_CODES, DoNotDevError;
|
|
|
1019
1303
|
var init_errors = __esm({
|
|
1020
1304
|
"packages/tooling/src/utils/errors.ts"() {
|
|
1021
1305
|
"use strict";
|
|
1022
|
-
|
|
1306
|
+
init_utils2();
|
|
1023
1307
|
DO_NOT_DEV_ERROR_CODES = {
|
|
1024
1308
|
CONFIGURATION_ERROR: "configuration-error",
|
|
1025
1309
|
CONFIG_NOT_FOUND: "config-not-found",
|
|
@@ -1160,7 +1444,7 @@ var init_errors = __esm({
|
|
|
1160
1444
|
var require_array = __commonJS({
|
|
1161
1445
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
|
|
1162
1446
|
"use strict";
|
|
1163
|
-
|
|
1447
|
+
init_utils2();
|
|
1164
1448
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1165
1449
|
exports.splitWhen = exports.flatten = void 0;
|
|
1166
1450
|
function flatten(items) {
|
|
@@ -1188,7 +1472,7 @@ var require_array = __commonJS({
|
|
|
1188
1472
|
var require_errno = __commonJS({
|
|
1189
1473
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js"(exports) {
|
|
1190
1474
|
"use strict";
|
|
1191
|
-
|
|
1475
|
+
init_utils2();
|
|
1192
1476
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1193
1477
|
exports.isEnoentCodeError = void 0;
|
|
1194
1478
|
function isEnoentCodeError(error2) {
|
|
@@ -1202,7 +1486,7 @@ var require_errno = __commonJS({
|
|
|
1202
1486
|
var require_fs = __commonJS({
|
|
1203
1487
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js"(exports) {
|
|
1204
1488
|
"use strict";
|
|
1205
|
-
|
|
1489
|
+
init_utils2();
|
|
1206
1490
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1207
1491
|
exports.createDirentFromStats = void 0;
|
|
1208
1492
|
var DirentFromStats = class {
|
|
@@ -1228,7 +1512,7 @@ var require_fs = __commonJS({
|
|
|
1228
1512
|
var require_path = __commonJS({
|
|
1229
1513
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js"(exports) {
|
|
1230
1514
|
"use strict";
|
|
1231
|
-
|
|
1515
|
+
init_utils2();
|
|
1232
1516
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1233
1517
|
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
1234
1518
|
var os = __require("os");
|
|
@@ -1281,7 +1565,7 @@ var require_path = __commonJS({
|
|
|
1281
1565
|
// node_modules/.bun/is-extglob@2.1.1/node_modules/is-extglob/index.js
|
|
1282
1566
|
var require_is_extglob = __commonJS({
|
|
1283
1567
|
"node_modules/.bun/is-extglob@2.1.1/node_modules/is-extglob/index.js"(exports, module) {
|
|
1284
|
-
|
|
1568
|
+
init_utils2();
|
|
1285
1569
|
module.exports = function isExtglob(str) {
|
|
1286
1570
|
if (typeof str !== "string" || str === "") {
|
|
1287
1571
|
return false;
|
|
@@ -1299,7 +1583,7 @@ var require_is_extglob = __commonJS({
|
|
|
1299
1583
|
// node_modules/.bun/is-glob@4.0.3/node_modules/is-glob/index.js
|
|
1300
1584
|
var require_is_glob = __commonJS({
|
|
1301
1585
|
"node_modules/.bun/is-glob@4.0.3/node_modules/is-glob/index.js"(exports, module) {
|
|
1302
|
-
|
|
1586
|
+
init_utils2();
|
|
1303
1587
|
var isExtglob = require_is_extglob();
|
|
1304
1588
|
var chars = { "{": "}", "(": ")", "[": "]" };
|
|
1305
1589
|
var strictCheck = function(str) {
|
|
@@ -1432,7 +1716,7 @@ var require_is_glob = __commonJS({
|
|
|
1432
1716
|
var require_glob_parent = __commonJS({
|
|
1433
1717
|
"node_modules/.bun/glob-parent@5.1.2/node_modules/glob-parent/index.js"(exports, module) {
|
|
1434
1718
|
"use strict";
|
|
1435
|
-
|
|
1719
|
+
init_utils2();
|
|
1436
1720
|
var isGlob = require_is_glob();
|
|
1437
1721
|
var pathPosixDirname = __require("path").posix.dirname;
|
|
1438
1722
|
var isWin32 = __require("os").platform() === "win32";
|
|
@@ -1462,7 +1746,7 @@ var require_glob_parent = __commonJS({
|
|
|
1462
1746
|
var require_utils = __commonJS({
|
|
1463
1747
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/utils.js"(exports) {
|
|
1464
1748
|
"use strict";
|
|
1465
|
-
|
|
1749
|
+
init_utils2();
|
|
1466
1750
|
exports.isInteger = (num) => {
|
|
1467
1751
|
if (typeof num === "number") {
|
|
1468
1752
|
return Number.isInteger(num);
|
|
@@ -1545,7 +1829,7 @@ var require_utils = __commonJS({
|
|
|
1545
1829
|
var require_stringify = __commonJS({
|
|
1546
1830
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/stringify.js"(exports, module) {
|
|
1547
1831
|
"use strict";
|
|
1548
|
-
|
|
1832
|
+
init_utils2();
|
|
1549
1833
|
var utils = require_utils();
|
|
1550
1834
|
module.exports = (ast, options = {}) => {
|
|
1551
1835
|
const stringify2 = (node, parent = {}) => {
|
|
@@ -1577,7 +1861,7 @@ var require_stringify = __commonJS({
|
|
|
1577
1861
|
var require_is_number = __commonJS({
|
|
1578
1862
|
"node_modules/.bun/is-number@7.0.0/node_modules/is-number/index.js"(exports, module) {
|
|
1579
1863
|
"use strict";
|
|
1580
|
-
|
|
1864
|
+
init_utils2();
|
|
1581
1865
|
module.exports = function(num) {
|
|
1582
1866
|
if (typeof num === "number") {
|
|
1583
1867
|
return num - num === 0;
|
|
@@ -1594,7 +1878,7 @@ var require_is_number = __commonJS({
|
|
|
1594
1878
|
var require_to_regex_range = __commonJS({
|
|
1595
1879
|
"node_modules/.bun/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(exports, module) {
|
|
1596
1880
|
"use strict";
|
|
1597
|
-
|
|
1881
|
+
init_utils2();
|
|
1598
1882
|
var isNumber = require_is_number();
|
|
1599
1883
|
var toRegexRange = (min, max, options) => {
|
|
1600
1884
|
if (isNumber(min) === false) {
|
|
@@ -1619,8 +1903,8 @@ var require_to_regex_range = __commonJS({
|
|
|
1619
1903
|
return toRegexRange.cache[cacheKey].result;
|
|
1620
1904
|
}
|
|
1621
1905
|
let a = Math.min(min, max);
|
|
1622
|
-
let
|
|
1623
|
-
if (Math.abs(a -
|
|
1906
|
+
let b = Math.max(min, max);
|
|
1907
|
+
if (Math.abs(a - b) === 1) {
|
|
1624
1908
|
let result = min + "|" + max;
|
|
1625
1909
|
if (opts.capture) {
|
|
1626
1910
|
return `(${result})`;
|
|
@@ -1631,7 +1915,7 @@ var require_to_regex_range = __commonJS({
|
|
|
1631
1915
|
return `(?:${result})`;
|
|
1632
1916
|
}
|
|
1633
1917
|
let isPadded = hasPadding(min) || hasPadding(max);
|
|
1634
|
-
let state = { min, max, a, b
|
|
1918
|
+
let state = { min, max, a, b };
|
|
1635
1919
|
let positives = [];
|
|
1636
1920
|
let negatives = [];
|
|
1637
1921
|
if (isPadded) {
|
|
@@ -1639,12 +1923,12 @@ var require_to_regex_range = __commonJS({
|
|
|
1639
1923
|
state.maxLen = String(state.max).length;
|
|
1640
1924
|
}
|
|
1641
1925
|
if (a < 0) {
|
|
1642
|
-
let newMin =
|
|
1926
|
+
let newMin = b < 0 ? Math.abs(b) : 1;
|
|
1643
1927
|
negatives = splitToPatterns(newMin, Math.abs(a), state, opts);
|
|
1644
1928
|
a = state.a = 0;
|
|
1645
1929
|
}
|
|
1646
|
-
if (
|
|
1647
|
-
positives = splitToPatterns(a,
|
|
1930
|
+
if (b >= 0) {
|
|
1931
|
+
positives = splitToPatterns(a, b, state, opts);
|
|
1648
1932
|
}
|
|
1649
1933
|
state.negatives = negatives;
|
|
1650
1934
|
state.positives = positives;
|
|
@@ -1748,13 +2032,13 @@ var require_to_regex_range = __commonJS({
|
|
|
1748
2032
|
}
|
|
1749
2033
|
return result;
|
|
1750
2034
|
}
|
|
1751
|
-
function zip(a,
|
|
2035
|
+
function zip(a, b) {
|
|
1752
2036
|
let arr = [];
|
|
1753
|
-
for (let i = 0; i < a.length; i++) arr.push([a[i],
|
|
2037
|
+
for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]);
|
|
1754
2038
|
return arr;
|
|
1755
2039
|
}
|
|
1756
|
-
function compare(a,
|
|
1757
|
-
return a >
|
|
2040
|
+
function compare(a, b) {
|
|
2041
|
+
return a > b ? 1 : b > a ? -1 : 0;
|
|
1758
2042
|
}
|
|
1759
2043
|
function contains(arr, key, val) {
|
|
1760
2044
|
return arr.some((ele) => ele[key] === val);
|
|
@@ -1772,8 +2056,8 @@ var require_to_regex_range = __commonJS({
|
|
|
1772
2056
|
}
|
|
1773
2057
|
return "";
|
|
1774
2058
|
}
|
|
1775
|
-
function toCharacterClass(a,
|
|
1776
|
-
return `[${a}${
|
|
2059
|
+
function toCharacterClass(a, b, options) {
|
|
2060
|
+
return `[${a}${b - a === 1 ? "" : "-"}${b}]`;
|
|
1777
2061
|
}
|
|
1778
2062
|
function hasPadding(str) {
|
|
1779
2063
|
return /^-?(0+)\d/.test(str);
|
|
@@ -1806,7 +2090,7 @@ var require_to_regex_range = __commonJS({
|
|
|
1806
2090
|
var require_fill_range = __commonJS({
|
|
1807
2091
|
"node_modules/.bun/fill-range@7.1.1/node_modules/fill-range/index.js"(exports, module) {
|
|
1808
2092
|
"use strict";
|
|
1809
|
-
|
|
2093
|
+
init_utils2();
|
|
1810
2094
|
var util = __require("util");
|
|
1811
2095
|
var toRegexRange = require_to_regex_range();
|
|
1812
2096
|
var isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
@@ -1852,17 +2136,17 @@ var require_fill_range = __commonJS({
|
|
|
1852
2136
|
return negative ? "-" + input : input;
|
|
1853
2137
|
};
|
|
1854
2138
|
var toSequence = (parts, options, maxLen) => {
|
|
1855
|
-
parts.negatives.sort((a,
|
|
1856
|
-
parts.positives.sort((a,
|
|
2139
|
+
parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
2140
|
+
parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
1857
2141
|
let prefix = options.capture ? "" : "?:";
|
|
1858
2142
|
let positives = "";
|
|
1859
2143
|
let negatives = "";
|
|
1860
2144
|
let result;
|
|
1861
2145
|
if (parts.positives.length) {
|
|
1862
|
-
positives = parts.positives.map((
|
|
2146
|
+
positives = parts.positives.map((v) => toMaxLen(String(v), maxLen)).join("|");
|
|
1863
2147
|
}
|
|
1864
2148
|
if (parts.negatives.length) {
|
|
1865
|
-
negatives = `-(${prefix}${parts.negatives.map((
|
|
2149
|
+
negatives = `-(${prefix}${parts.negatives.map((v) => toMaxLen(String(v), maxLen)).join("|")})`;
|
|
1866
2150
|
}
|
|
1867
2151
|
if (positives && negatives) {
|
|
1868
2152
|
result = `${positives}|${negatives}`;
|
|
@@ -1874,13 +2158,13 @@ var require_fill_range = __commonJS({
|
|
|
1874
2158
|
}
|
|
1875
2159
|
return result;
|
|
1876
2160
|
};
|
|
1877
|
-
var toRange = (a,
|
|
2161
|
+
var toRange = (a, b, isNumbers, options) => {
|
|
1878
2162
|
if (isNumbers) {
|
|
1879
|
-
return toRegexRange(a,
|
|
2163
|
+
return toRegexRange(a, b, { wrap: false, ...options });
|
|
1880
2164
|
}
|
|
1881
2165
|
let start = String.fromCharCode(a);
|
|
1882
|
-
if (a ===
|
|
1883
|
-
let stop = String.fromCharCode(
|
|
2166
|
+
if (a === b) return start;
|
|
2167
|
+
let stop = String.fromCharCode(b);
|
|
1884
2168
|
return `[${start}-${stop}]`;
|
|
1885
2169
|
};
|
|
1886
2170
|
var toRegex = (start, end, options) => {
|
|
@@ -1906,14 +2190,14 @@ var require_fill_range = __commonJS({
|
|
|
1906
2190
|
};
|
|
1907
2191
|
var fillNumbers = (start, end, step = 1, options = {}) => {
|
|
1908
2192
|
let a = Number(start);
|
|
1909
|
-
let
|
|
1910
|
-
if (!Number.isInteger(a) || !Number.isInteger(
|
|
2193
|
+
let b = Number(end);
|
|
2194
|
+
if (!Number.isInteger(a) || !Number.isInteger(b)) {
|
|
1911
2195
|
if (options.strictRanges === true) throw rangeError([start, end]);
|
|
1912
2196
|
return [];
|
|
1913
2197
|
}
|
|
1914
2198
|
if (a === 0) a = 0;
|
|
1915
|
-
if (
|
|
1916
|
-
let descending = a >
|
|
2199
|
+
if (b === 0) b = 0;
|
|
2200
|
+
let descending = a > b;
|
|
1917
2201
|
let startString = String(start);
|
|
1918
2202
|
let endString = String(end);
|
|
1919
2203
|
let stepString = String(step);
|
|
@@ -1929,7 +2213,7 @@ var require_fill_range = __commonJS({
|
|
|
1929
2213
|
let push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num));
|
|
1930
2214
|
let range = [];
|
|
1931
2215
|
let index = 0;
|
|
1932
|
-
while (descending ? a >=
|
|
2216
|
+
while (descending ? a >= b : a <= b) {
|
|
1933
2217
|
if (options.toRegex === true && step > 1) {
|
|
1934
2218
|
push(a);
|
|
1935
2219
|
} else {
|
|
@@ -1949,16 +2233,16 @@ var require_fill_range = __commonJS({
|
|
|
1949
2233
|
}
|
|
1950
2234
|
let format = options.transform || ((val) => String.fromCharCode(val));
|
|
1951
2235
|
let a = `${start}`.charCodeAt(0);
|
|
1952
|
-
let
|
|
1953
|
-
let descending = a >
|
|
1954
|
-
let min = Math.min(a,
|
|
1955
|
-
let max = Math.max(a,
|
|
2236
|
+
let b = `${end}`.charCodeAt(0);
|
|
2237
|
+
let descending = a > b;
|
|
2238
|
+
let min = Math.min(a, b);
|
|
2239
|
+
let max = Math.max(a, b);
|
|
1956
2240
|
if (options.toRegex && step === 1) {
|
|
1957
2241
|
return toRange(min, max, false, options);
|
|
1958
2242
|
}
|
|
1959
2243
|
let range = [];
|
|
1960
2244
|
let index = 0;
|
|
1961
|
-
while (descending ? a >=
|
|
2245
|
+
while (descending ? a >= b : a <= b) {
|
|
1962
2246
|
range.push(format(a, index));
|
|
1963
2247
|
a = descending ? a - step : a + step;
|
|
1964
2248
|
index++;
|
|
@@ -2001,7 +2285,7 @@ var require_fill_range = __commonJS({
|
|
|
2001
2285
|
var require_compile = __commonJS({
|
|
2002
2286
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/compile.js"(exports, module) {
|
|
2003
2287
|
"use strict";
|
|
2004
|
-
|
|
2288
|
+
init_utils2();
|
|
2005
2289
|
var fill = require_fill_range();
|
|
2006
2290
|
var utils = require_utils();
|
|
2007
2291
|
var compile = (ast, options = {}) => {
|
|
@@ -2053,7 +2337,7 @@ var require_compile = __commonJS({
|
|
|
2053
2337
|
var require_expand = __commonJS({
|
|
2054
2338
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/expand.js"(exports, module) {
|
|
2055
2339
|
"use strict";
|
|
2056
|
-
|
|
2340
|
+
init_utils2();
|
|
2057
2341
|
var fill = require_fill_range();
|
|
2058
2342
|
var stringify2 = require_stringify();
|
|
2059
2343
|
var utils = require_utils();
|
|
@@ -2148,7 +2432,7 @@ var require_expand = __commonJS({
|
|
|
2148
2432
|
var require_constants = __commonJS({
|
|
2149
2433
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/constants.js"(exports, module) {
|
|
2150
2434
|
"use strict";
|
|
2151
|
-
|
|
2435
|
+
init_utils2();
|
|
2152
2436
|
module.exports = {
|
|
2153
2437
|
MAX_LENGTH: 1e4,
|
|
2154
2438
|
// Digits
|
|
@@ -2250,7 +2534,7 @@ var require_constants = __commonJS({
|
|
|
2250
2534
|
var require_parse = __commonJS({
|
|
2251
2535
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/parse.js"(exports, module) {
|
|
2252
2536
|
"use strict";
|
|
2253
|
-
|
|
2537
|
+
init_utils2();
|
|
2254
2538
|
var stringify2 = require_stringify();
|
|
2255
2539
|
var {
|
|
2256
2540
|
MAX_LENGTH,
|
|
@@ -2489,7 +2773,7 @@ var require_parse = __commonJS({
|
|
|
2489
2773
|
var require_braces = __commonJS({
|
|
2490
2774
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/index.js"(exports, module) {
|
|
2491
2775
|
"use strict";
|
|
2492
|
-
|
|
2776
|
+
init_utils2();
|
|
2493
2777
|
var stringify2 = require_stringify();
|
|
2494
2778
|
var compile = require_compile();
|
|
2495
2779
|
var expand = require_expand();
|
|
@@ -2553,7 +2837,7 @@ var require_braces = __commonJS({
|
|
|
2553
2837
|
var require_constants2 = __commonJS({
|
|
2554
2838
|
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js"(exports, module) {
|
|
2555
2839
|
"use strict";
|
|
2556
|
-
|
|
2840
|
+
init_utils2();
|
|
2557
2841
|
var path = __require("path");
|
|
2558
2842
|
var WIN_SLASH = "\\\\/";
|
|
2559
2843
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
@@ -2755,7 +3039,7 @@ var require_constants2 = __commonJS({
|
|
|
2755
3039
|
var require_utils2 = __commonJS({
|
|
2756
3040
|
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js"(exports) {
|
|
2757
3041
|
"use strict";
|
|
2758
|
-
|
|
3042
|
+
init_utils2();
|
|
2759
3043
|
var path = __require("path");
|
|
2760
3044
|
var win32 = process.platform === "win32";
|
|
2761
3045
|
var {
|
|
@@ -2817,7 +3101,7 @@ var require_utils2 = __commonJS({
|
|
|
2817
3101
|
var require_scan = __commonJS({
|
|
2818
3102
|
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js"(exports, module) {
|
|
2819
3103
|
"use strict";
|
|
2820
|
-
|
|
3104
|
+
init_utils2();
|
|
2821
3105
|
var utils = require_utils2();
|
|
2822
3106
|
var {
|
|
2823
3107
|
CHAR_ASTERISK,
|
|
@@ -3148,7 +3432,7 @@ var require_scan = __commonJS({
|
|
|
3148
3432
|
var require_parse2 = __commonJS({
|
|
3149
3433
|
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js"(exports, module) {
|
|
3150
3434
|
"use strict";
|
|
3151
|
-
|
|
3435
|
+
init_utils2();
|
|
3152
3436
|
var constants2 = require_constants2();
|
|
3153
3437
|
var utils = require_utils2();
|
|
3154
3438
|
var {
|
|
@@ -3167,7 +3451,7 @@ var require_parse2 = __commonJS({
|
|
|
3167
3451
|
try {
|
|
3168
3452
|
new RegExp(value);
|
|
3169
3453
|
} catch (ex) {
|
|
3170
|
-
return args.map((
|
|
3454
|
+
return args.map((v) => utils.escapeRegex(v)).join("..");
|
|
3171
3455
|
}
|
|
3172
3456
|
return value;
|
|
3173
3457
|
};
|
|
@@ -3256,12 +3540,12 @@ var require_parse2 = __commonJS({
|
|
|
3256
3540
|
for (let i = 0; i < values.length; i++) {
|
|
3257
3541
|
for (let j2 = i + 1; j2 < values.length; j2++) {
|
|
3258
3542
|
const a = values[i];
|
|
3259
|
-
const
|
|
3543
|
+
const b = values[j2];
|
|
3260
3544
|
const char = a[0];
|
|
3261
|
-
if (!char || a !== char.repeat(a.length) ||
|
|
3545
|
+
if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) {
|
|
3262
3546
|
continue;
|
|
3263
3547
|
}
|
|
3264
|
-
if (a ===
|
|
3548
|
+
if (a === b || a.startsWith(b) || b.startsWith(a)) {
|
|
3265
3549
|
return true;
|
|
3266
3550
|
}
|
|
3267
3551
|
}
|
|
@@ -3564,10 +3848,10 @@ var require_parse2 = __commonJS({
|
|
|
3564
3848
|
};
|
|
3565
3849
|
if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) {
|
|
3566
3850
|
let backslashes = false;
|
|
3567
|
-
let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (
|
|
3851
|
+
let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => {
|
|
3568
3852
|
if (first === "\\") {
|
|
3569
3853
|
backslashes = true;
|
|
3570
|
-
return
|
|
3854
|
+
return m;
|
|
3571
3855
|
}
|
|
3572
3856
|
if (first === "?") {
|
|
3573
3857
|
if (esc) {
|
|
@@ -3587,14 +3871,14 @@ var require_parse2 = __commonJS({
|
|
|
3587
3871
|
}
|
|
3588
3872
|
return star;
|
|
3589
3873
|
}
|
|
3590
|
-
return esc ?
|
|
3874
|
+
return esc ? m : `\\${m}`;
|
|
3591
3875
|
});
|
|
3592
3876
|
if (backslashes === true) {
|
|
3593
3877
|
if (opts.unescape === true) {
|
|
3594
3878
|
output = output.replace(/\\/g, "");
|
|
3595
3879
|
} else {
|
|
3596
|
-
output = output.replace(/\\+/g, (
|
|
3597
|
-
return
|
|
3880
|
+
output = output.replace(/\\+/g, (m) => {
|
|
3881
|
+
return m.length % 2 === 0 ? "\\\\" : m ? "\\" : "";
|
|
3598
3882
|
});
|
|
3599
3883
|
}
|
|
3600
3884
|
}
|
|
@@ -3794,8 +4078,8 @@ var require_parse2 = __commonJS({
|
|
|
3794
4078
|
brace.value = brace.output = "\\{";
|
|
3795
4079
|
value = output = "\\}";
|
|
3796
4080
|
state.output = out;
|
|
3797
|
-
for (const
|
|
3798
|
-
state.output +=
|
|
4081
|
+
for (const t2 of toks) {
|
|
4082
|
+
state.output += t2.output || t2.value;
|
|
3799
4083
|
}
|
|
3800
4084
|
}
|
|
3801
4085
|
push({ type: "brace", value, output });
|
|
@@ -4151,7 +4435,7 @@ var require_parse2 = __commonJS({
|
|
|
4151
4435
|
var require_picomatch = __commonJS({
|
|
4152
4436
|
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js"(exports, module) {
|
|
4153
4437
|
"use strict";
|
|
4154
|
-
|
|
4438
|
+
init_utils2();
|
|
4155
4439
|
var path = __require("path");
|
|
4156
4440
|
var scan = require_scan();
|
|
4157
4441
|
var parse2 = require_parse2();
|
|
@@ -4293,7 +4577,7 @@ var require_picomatch = __commonJS({
|
|
|
4293
4577
|
var require_picomatch2 = __commonJS({
|
|
4294
4578
|
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js"(exports, module) {
|
|
4295
4579
|
"use strict";
|
|
4296
|
-
|
|
4580
|
+
init_utils2();
|
|
4297
4581
|
module.exports = require_picomatch();
|
|
4298
4582
|
}
|
|
4299
4583
|
});
|
|
@@ -4302,15 +4586,15 @@ var require_picomatch2 = __commonJS({
|
|
|
4302
4586
|
var require_micromatch = __commonJS({
|
|
4303
4587
|
"node_modules/.bun/micromatch@4.0.8/node_modules/micromatch/index.js"(exports, module) {
|
|
4304
4588
|
"use strict";
|
|
4305
|
-
|
|
4589
|
+
init_utils2();
|
|
4306
4590
|
var util = __require("util");
|
|
4307
4591
|
var braces = require_braces();
|
|
4308
4592
|
var picomatch = require_picomatch2();
|
|
4309
4593
|
var utils = require_utils2();
|
|
4310
|
-
var isEmptyString = (
|
|
4311
|
-
var hasBraces = (
|
|
4312
|
-
const index =
|
|
4313
|
-
return index > -1 &&
|
|
4594
|
+
var isEmptyString = (v) => v === "" || v === "./";
|
|
4595
|
+
var hasBraces = (v) => {
|
|
4596
|
+
const index = v.indexOf("{");
|
|
4597
|
+
return index > -1 && v.indexOf("}", index) > -1;
|
|
4314
4598
|
};
|
|
4315
4599
|
var micromatch = (list, patterns, options) => {
|
|
4316
4600
|
patterns = [].concat(patterns);
|
|
@@ -4430,7 +4714,7 @@ var require_micromatch = __commonJS({
|
|
|
4430
4714
|
let regex = picomatch.makeRe(String(glob2), { ...options, capture: true });
|
|
4431
4715
|
let match = regex.exec(posix ? utils.toPosixSlashes(input) : input);
|
|
4432
4716
|
if (match) {
|
|
4433
|
-
return match.slice(1).map((
|
|
4717
|
+
return match.slice(1).map((v) => v === void 0 ? "" : v);
|
|
4434
4718
|
}
|
|
4435
4719
|
};
|
|
4436
4720
|
micromatch.makeRe = (...args) => picomatch.makeRe(...args);
|
|
@@ -4464,7 +4748,7 @@ var require_micromatch = __commonJS({
|
|
|
4464
4748
|
var require_pattern = __commonJS({
|
|
4465
4749
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js"(exports) {
|
|
4466
4750
|
"use strict";
|
|
4467
|
-
|
|
4751
|
+
init_utils2();
|
|
4468
4752
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4469
4753
|
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;
|
|
4470
4754
|
var path = __require("path");
|
|
@@ -4574,7 +4858,7 @@ var require_pattern = __commonJS({
|
|
|
4574
4858
|
exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
|
|
4575
4859
|
function expandBraceExpansion(pattern) {
|
|
4576
4860
|
const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true });
|
|
4577
|
-
patterns.sort((a,
|
|
4861
|
+
patterns.sort((a, b) => a.length - b.length);
|
|
4578
4862
|
return patterns.filter((pattern2) => pattern2 !== "");
|
|
4579
4863
|
}
|
|
4580
4864
|
exports.expandBraceExpansion = expandBraceExpansion;
|
|
@@ -4630,7 +4914,7 @@ var require_pattern = __commonJS({
|
|
|
4630
4914
|
var require_merge2 = __commonJS({
|
|
4631
4915
|
"node_modules/.bun/merge2@1.4.1/node_modules/merge2/index.js"(exports, module) {
|
|
4632
4916
|
"use strict";
|
|
4633
|
-
|
|
4917
|
+
init_utils2();
|
|
4634
4918
|
var Stream = __require("stream");
|
|
4635
4919
|
var PassThrough = Stream.PassThrough;
|
|
4636
4920
|
var slice = Array.prototype.slice;
|
|
@@ -4750,7 +5034,7 @@ var require_merge2 = __commonJS({
|
|
|
4750
5034
|
var require_stream = __commonJS({
|
|
4751
5035
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js"(exports) {
|
|
4752
5036
|
"use strict";
|
|
4753
|
-
|
|
5037
|
+
init_utils2();
|
|
4754
5038
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4755
5039
|
exports.merge = void 0;
|
|
4756
5040
|
var merge2 = require_merge2();
|
|
@@ -4774,7 +5058,7 @@ var require_stream = __commonJS({
|
|
|
4774
5058
|
var require_string = __commonJS({
|
|
4775
5059
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js"(exports) {
|
|
4776
5060
|
"use strict";
|
|
4777
|
-
|
|
5061
|
+
init_utils2();
|
|
4778
5062
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4779
5063
|
exports.isEmpty = exports.isString = void 0;
|
|
4780
5064
|
function isString(input) {
|
|
@@ -4792,7 +5076,7 @@ var require_string = __commonJS({
|
|
|
4792
5076
|
var require_utils3 = __commonJS({
|
|
4793
5077
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js"(exports) {
|
|
4794
5078
|
"use strict";
|
|
4795
|
-
|
|
5079
|
+
init_utils2();
|
|
4796
5080
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4797
5081
|
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
|
|
4798
5082
|
var array = require_array();
|
|
@@ -4816,7 +5100,7 @@ var require_utils3 = __commonJS({
|
|
|
4816
5100
|
var require_tasks = __commonJS({
|
|
4817
5101
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js"(exports) {
|
|
4818
5102
|
"use strict";
|
|
4819
|
-
|
|
5103
|
+
init_utils2();
|
|
4820
5104
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4821
5105
|
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
|
|
4822
5106
|
var utils = require_utils3();
|
|
@@ -4913,7 +5197,7 @@ var require_tasks = __commonJS({
|
|
|
4913
5197
|
var require_async = __commonJS({
|
|
4914
5198
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) {
|
|
4915
5199
|
"use strict";
|
|
4916
|
-
|
|
5200
|
+
init_utils2();
|
|
4917
5201
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4918
5202
|
exports.read = void 0;
|
|
4919
5203
|
function read2(path, settings, callback) {
|
|
@@ -4956,7 +5240,7 @@ var require_async = __commonJS({
|
|
|
4956
5240
|
var require_sync = __commonJS({
|
|
4957
5241
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) {
|
|
4958
5242
|
"use strict";
|
|
4959
|
-
|
|
5243
|
+
init_utils2();
|
|
4960
5244
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4961
5245
|
exports.read = void 0;
|
|
4962
5246
|
function read2(path, settings) {
|
|
@@ -4985,7 +5269,7 @@ var require_sync = __commonJS({
|
|
|
4985
5269
|
var require_fs2 = __commonJS({
|
|
4986
5270
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) {
|
|
4987
5271
|
"use strict";
|
|
4988
|
-
|
|
5272
|
+
init_utils2();
|
|
4989
5273
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4990
5274
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
4991
5275
|
var fs2 = __require("fs");
|
|
@@ -5009,7 +5293,7 @@ var require_fs2 = __commonJS({
|
|
|
5009
5293
|
var require_settings = __commonJS({
|
|
5010
5294
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js"(exports) {
|
|
5011
5295
|
"use strict";
|
|
5012
|
-
|
|
5296
|
+
init_utils2();
|
|
5013
5297
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5014
5298
|
var fs2 = require_fs2();
|
|
5015
5299
|
var Settings = class {
|
|
@@ -5032,7 +5316,7 @@ var require_settings = __commonJS({
|
|
|
5032
5316
|
var require_out = __commonJS({
|
|
5033
5317
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js"(exports) {
|
|
5034
5318
|
"use strict";
|
|
5035
|
-
|
|
5319
|
+
init_utils2();
|
|
5036
5320
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5037
5321
|
exports.statSync = exports.stat = exports.Settings = void 0;
|
|
5038
5322
|
var async = require_async();
|
|
@@ -5064,7 +5348,7 @@ var require_out = __commonJS({
|
|
|
5064
5348
|
// node_modules/.bun/queue-microtask@1.2.3/node_modules/queue-microtask/index.js
|
|
5065
5349
|
var require_queue_microtask = __commonJS({
|
|
5066
5350
|
"node_modules/.bun/queue-microtask@1.2.3/node_modules/queue-microtask/index.js"(exports, module) {
|
|
5067
|
-
|
|
5351
|
+
init_utils2();
|
|
5068
5352
|
var promise;
|
|
5069
5353
|
module.exports = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : global) : (cb) => (promise || (promise = Promise.resolve())).then(cb).catch((err) => setTimeout(() => {
|
|
5070
5354
|
throw err;
|
|
@@ -5075,7 +5359,7 @@ var require_queue_microtask = __commonJS({
|
|
|
5075
5359
|
// node_modules/.bun/run-parallel@1.2.0/node_modules/run-parallel/index.js
|
|
5076
5360
|
var require_run_parallel = __commonJS({
|
|
5077
5361
|
"node_modules/.bun/run-parallel@1.2.0/node_modules/run-parallel/index.js"(exports, module) {
|
|
5078
|
-
|
|
5362
|
+
init_utils2();
|
|
5079
5363
|
module.exports = runParallel;
|
|
5080
5364
|
var queueMicrotask2 = require_queue_microtask();
|
|
5081
5365
|
function runParallel(tasks, cb) {
|
|
@@ -5127,7 +5411,7 @@ var require_run_parallel = __commonJS({
|
|
|
5127
5411
|
var require_constants3 = __commonJS({
|
|
5128
5412
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js"(exports) {
|
|
5129
5413
|
"use strict";
|
|
5130
|
-
|
|
5414
|
+
init_utils2();
|
|
5131
5415
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5132
5416
|
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
|
|
5133
5417
|
var NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
|
|
@@ -5148,7 +5432,7 @@ var require_constants3 = __commonJS({
|
|
|
5148
5432
|
var require_fs3 = __commonJS({
|
|
5149
5433
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js"(exports) {
|
|
5150
5434
|
"use strict";
|
|
5151
|
-
|
|
5435
|
+
init_utils2();
|
|
5152
5436
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5153
5437
|
exports.createDirentFromStats = void 0;
|
|
5154
5438
|
var DirentFromStats = class {
|
|
@@ -5174,7 +5458,7 @@ var require_fs3 = __commonJS({
|
|
|
5174
5458
|
var require_utils4 = __commonJS({
|
|
5175
5459
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
|
|
5176
5460
|
"use strict";
|
|
5177
|
-
|
|
5461
|
+
init_utils2();
|
|
5178
5462
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5179
5463
|
exports.fs = void 0;
|
|
5180
5464
|
var fs2 = require_fs3();
|
|
@@ -5186,14 +5470,14 @@ var require_utils4 = __commonJS({
|
|
|
5186
5470
|
var require_common = __commonJS({
|
|
5187
5471
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js"(exports) {
|
|
5188
5472
|
"use strict";
|
|
5189
|
-
|
|
5473
|
+
init_utils2();
|
|
5190
5474
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5191
5475
|
exports.joinPathSegments = void 0;
|
|
5192
|
-
function joinPathSegments(a,
|
|
5476
|
+
function joinPathSegments(a, b, separator) {
|
|
5193
5477
|
if (a.endsWith(separator)) {
|
|
5194
|
-
return a +
|
|
5478
|
+
return a + b;
|
|
5195
5479
|
}
|
|
5196
|
-
return a + separator +
|
|
5480
|
+
return a + separator + b;
|
|
5197
5481
|
}
|
|
5198
5482
|
exports.joinPathSegments = joinPathSegments;
|
|
5199
5483
|
}
|
|
@@ -5203,7 +5487,7 @@ var require_common = __commonJS({
|
|
|
5203
5487
|
var require_async2 = __commonJS({
|
|
5204
5488
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js"(exports) {
|
|
5205
5489
|
"use strict";
|
|
5206
|
-
|
|
5490
|
+
init_utils2();
|
|
5207
5491
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5208
5492
|
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
5209
5493
|
var fsStat = require_out();
|
|
@@ -5314,7 +5598,7 @@ var require_async2 = __commonJS({
|
|
|
5314
5598
|
var require_sync2 = __commonJS({
|
|
5315
5599
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js"(exports) {
|
|
5316
5600
|
"use strict";
|
|
5317
|
-
|
|
5601
|
+
init_utils2();
|
|
5318
5602
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5319
5603
|
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
5320
5604
|
var fsStat = require_out();
|
|
@@ -5374,7 +5658,7 @@ var require_sync2 = __commonJS({
|
|
|
5374
5658
|
var require_fs4 = __commonJS({
|
|
5375
5659
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) {
|
|
5376
5660
|
"use strict";
|
|
5377
|
-
|
|
5661
|
+
init_utils2();
|
|
5378
5662
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5379
5663
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
5380
5664
|
var fs2 = __require("fs");
|
|
@@ -5400,7 +5684,7 @@ var require_fs4 = __commonJS({
|
|
|
5400
5684
|
var require_settings2 = __commonJS({
|
|
5401
5685
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
|
|
5402
5686
|
"use strict";
|
|
5403
|
-
|
|
5687
|
+
init_utils2();
|
|
5404
5688
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5405
5689
|
var path = __require("path");
|
|
5406
5690
|
var fsStat = require_out();
|
|
@@ -5431,7 +5715,7 @@ var require_settings2 = __commonJS({
|
|
|
5431
5715
|
var require_out2 = __commonJS({
|
|
5432
5716
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js"(exports) {
|
|
5433
5717
|
"use strict";
|
|
5434
|
-
|
|
5718
|
+
init_utils2();
|
|
5435
5719
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5436
5720
|
exports.Settings = exports.scandirSync = exports.scandir = void 0;
|
|
5437
5721
|
var async = require_async2();
|
|
@@ -5464,7 +5748,7 @@ var require_out2 = __commonJS({
|
|
|
5464
5748
|
var require_reusify = __commonJS({
|
|
5465
5749
|
"node_modules/.bun/reusify@1.1.0/node_modules/reusify/reusify.js"(exports, module) {
|
|
5466
5750
|
"use strict";
|
|
5467
|
-
|
|
5751
|
+
init_utils2();
|
|
5468
5752
|
function reusify(Constructor) {
|
|
5469
5753
|
var head = new Constructor();
|
|
5470
5754
|
var tail = head;
|
|
@@ -5496,7 +5780,7 @@ var require_reusify = __commonJS({
|
|
|
5496
5780
|
var require_queue = __commonJS({
|
|
5497
5781
|
"node_modules/.bun/fastq@1.20.1/node_modules/fastq/queue.js"(exports, module) {
|
|
5498
5782
|
"use strict";
|
|
5499
|
-
|
|
5783
|
+
init_utils2();
|
|
5500
5784
|
var reusify = require_reusify();
|
|
5501
5785
|
function fastqueue(context, worker, _concurrency) {
|
|
5502
5786
|
if (typeof context === "function") {
|
|
@@ -5781,7 +6065,7 @@ var require_queue = __commonJS({
|
|
|
5781
6065
|
var require_common2 = __commonJS({
|
|
5782
6066
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js"(exports) {
|
|
5783
6067
|
"use strict";
|
|
5784
|
-
|
|
6068
|
+
init_utils2();
|
|
5785
6069
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5786
6070
|
exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
|
|
5787
6071
|
function isFatalError(settings, error2) {
|
|
@@ -5799,14 +6083,14 @@ var require_common2 = __commonJS({
|
|
|
5799
6083
|
return filepath.split(/[/\\]/).join(separator);
|
|
5800
6084
|
}
|
|
5801
6085
|
exports.replacePathSegmentSeparator = replacePathSegmentSeparator;
|
|
5802
|
-
function joinPathSegments(a,
|
|
6086
|
+
function joinPathSegments(a, b, separator) {
|
|
5803
6087
|
if (a === "") {
|
|
5804
|
-
return
|
|
6088
|
+
return b;
|
|
5805
6089
|
}
|
|
5806
6090
|
if (a.endsWith(separator)) {
|
|
5807
|
-
return a +
|
|
6091
|
+
return a + b;
|
|
5808
6092
|
}
|
|
5809
|
-
return a + separator +
|
|
6093
|
+
return a + separator + b;
|
|
5810
6094
|
}
|
|
5811
6095
|
exports.joinPathSegments = joinPathSegments;
|
|
5812
6096
|
}
|
|
@@ -5816,7 +6100,7 @@ var require_common2 = __commonJS({
|
|
|
5816
6100
|
var require_reader = __commonJS({
|
|
5817
6101
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.js"(exports) {
|
|
5818
6102
|
"use strict";
|
|
5819
|
-
|
|
6103
|
+
init_utils2();
|
|
5820
6104
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5821
6105
|
var common = require_common2();
|
|
5822
6106
|
var Reader = class {
|
|
@@ -5834,7 +6118,7 @@ var require_reader = __commonJS({
|
|
|
5834
6118
|
var require_async3 = __commonJS({
|
|
5835
6119
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.js"(exports) {
|
|
5836
6120
|
"use strict";
|
|
5837
|
-
|
|
6121
|
+
init_utils2();
|
|
5838
6122
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5839
6123
|
var events_1 = __require("events");
|
|
5840
6124
|
var fsScandir = require_out2();
|
|
@@ -5938,7 +6222,7 @@ var require_async3 = __commonJS({
|
|
|
5938
6222
|
var require_async4 = __commonJS({
|
|
5939
6223
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.js"(exports) {
|
|
5940
6224
|
"use strict";
|
|
5941
|
-
|
|
6225
|
+
init_utils2();
|
|
5942
6226
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5943
6227
|
var async_1 = require_async3();
|
|
5944
6228
|
var AsyncProvider = class {
|
|
@@ -5975,7 +6259,7 @@ var require_async4 = __commonJS({
|
|
|
5975
6259
|
var require_stream2 = __commonJS({
|
|
5976
6260
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.js"(exports) {
|
|
5977
6261
|
"use strict";
|
|
5978
|
-
|
|
6262
|
+
init_utils2();
|
|
5979
6263
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5980
6264
|
var stream_1 = __require("stream");
|
|
5981
6265
|
var async_1 = require_async3();
|
|
@@ -6017,7 +6301,7 @@ var require_stream2 = __commonJS({
|
|
|
6017
6301
|
var require_sync3 = __commonJS({
|
|
6018
6302
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.js"(exports) {
|
|
6019
6303
|
"use strict";
|
|
6020
|
-
|
|
6304
|
+
init_utils2();
|
|
6021
6305
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6022
6306
|
var fsScandir = require_out2();
|
|
6023
6307
|
var common = require_common2();
|
|
@@ -6082,7 +6366,7 @@ var require_sync3 = __commonJS({
|
|
|
6082
6366
|
var require_sync4 = __commonJS({
|
|
6083
6367
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.js"(exports) {
|
|
6084
6368
|
"use strict";
|
|
6085
|
-
|
|
6369
|
+
init_utils2();
|
|
6086
6370
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6087
6371
|
var sync_1 = require_sync3();
|
|
6088
6372
|
var SyncProvider = class {
|
|
@@ -6103,7 +6387,7 @@ var require_sync4 = __commonJS({
|
|
|
6103
6387
|
var require_settings3 = __commonJS({
|
|
6104
6388
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
|
|
6105
6389
|
"use strict";
|
|
6106
|
-
|
|
6390
|
+
init_utils2();
|
|
6107
6391
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6108
6392
|
var path = __require("path");
|
|
6109
6393
|
var fsScandir = require_out2();
|
|
@@ -6136,7 +6420,7 @@ var require_settings3 = __commonJS({
|
|
|
6136
6420
|
var require_out3 = __commonJS({
|
|
6137
6421
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js"(exports) {
|
|
6138
6422
|
"use strict";
|
|
6139
|
-
|
|
6423
|
+
init_utils2();
|
|
6140
6424
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6141
6425
|
exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
|
|
6142
6426
|
var async_1 = require_async4();
|
|
@@ -6177,7 +6461,7 @@ var require_out3 = __commonJS({
|
|
|
6177
6461
|
var require_reader2 = __commonJS({
|
|
6178
6462
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js"(exports) {
|
|
6179
6463
|
"use strict";
|
|
6180
|
-
|
|
6464
|
+
init_utils2();
|
|
6181
6465
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6182
6466
|
var path = __require("path");
|
|
6183
6467
|
var fsStat = require_out();
|
|
@@ -6217,7 +6501,7 @@ var require_reader2 = __commonJS({
|
|
|
6217
6501
|
var require_stream3 = __commonJS({
|
|
6218
6502
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js"(exports) {
|
|
6219
6503
|
"use strict";
|
|
6220
|
-
|
|
6504
|
+
init_utils2();
|
|
6221
6505
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6222
6506
|
var stream_1 = __require("stream");
|
|
6223
6507
|
var fsStat = require_out();
|
|
@@ -6275,7 +6559,7 @@ var require_stream3 = __commonJS({
|
|
|
6275
6559
|
var require_async5 = __commonJS({
|
|
6276
6560
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js"(exports) {
|
|
6277
6561
|
"use strict";
|
|
6278
|
-
|
|
6562
|
+
init_utils2();
|
|
6279
6563
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6280
6564
|
var fsWalk = require_out3();
|
|
6281
6565
|
var reader_1 = require_reader2();
|
|
@@ -6315,7 +6599,7 @@ var require_async5 = __commonJS({
|
|
|
6315
6599
|
var require_matcher = __commonJS({
|
|
6316
6600
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) {
|
|
6317
6601
|
"use strict";
|
|
6318
|
-
|
|
6602
|
+
init_utils2();
|
|
6319
6603
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6320
6604
|
var utils = require_utils3();
|
|
6321
6605
|
var Matcher = class {
|
|
@@ -6367,7 +6651,7 @@ var require_matcher = __commonJS({
|
|
|
6367
6651
|
var require_partial = __commonJS({
|
|
6368
6652
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js"(exports) {
|
|
6369
6653
|
"use strict";
|
|
6370
|
-
|
|
6654
|
+
init_utils2();
|
|
6371
6655
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6372
6656
|
var matcher_1 = require_matcher();
|
|
6373
6657
|
var PartialMatcher = class extends matcher_1.default {
|
|
@@ -6405,7 +6689,7 @@ var require_partial = __commonJS({
|
|
|
6405
6689
|
var require_deep = __commonJS({
|
|
6406
6690
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js"(exports) {
|
|
6407
6691
|
"use strict";
|
|
6408
|
-
|
|
6692
|
+
init_utils2();
|
|
6409
6693
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6410
6694
|
var utils = require_utils3();
|
|
6411
6695
|
var partial_1 = require_partial();
|
|
@@ -6471,7 +6755,7 @@ var require_deep = __commonJS({
|
|
|
6471
6755
|
var require_entry = __commonJS({
|
|
6472
6756
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js"(exports) {
|
|
6473
6757
|
"use strict";
|
|
6474
|
-
|
|
6758
|
+
init_utils2();
|
|
6475
6759
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6476
6760
|
var utils = require_utils3();
|
|
6477
6761
|
var EntryFilter = class {
|
|
@@ -6560,7 +6844,7 @@ var require_entry = __commonJS({
|
|
|
6560
6844
|
var require_error = __commonJS({
|
|
6561
6845
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js"(exports) {
|
|
6562
6846
|
"use strict";
|
|
6563
|
-
|
|
6847
|
+
init_utils2();
|
|
6564
6848
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6565
6849
|
var utils = require_utils3();
|
|
6566
6850
|
var ErrorFilter = class {
|
|
@@ -6582,7 +6866,7 @@ var require_error = __commonJS({
|
|
|
6582
6866
|
var require_entry2 = __commonJS({
|
|
6583
6867
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js"(exports) {
|
|
6584
6868
|
"use strict";
|
|
6585
|
-
|
|
6869
|
+
init_utils2();
|
|
6586
6870
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6587
6871
|
var utils = require_utils3();
|
|
6588
6872
|
var EntryTransformer = class {
|
|
@@ -6615,7 +6899,7 @@ var require_entry2 = __commonJS({
|
|
|
6615
6899
|
var require_provider = __commonJS({
|
|
6616
6900
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js"(exports) {
|
|
6617
6901
|
"use strict";
|
|
6618
|
-
|
|
6902
|
+
init_utils2();
|
|
6619
6903
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6620
6904
|
var path = __require("path");
|
|
6621
6905
|
var deep_1 = require_deep();
|
|
@@ -6670,7 +6954,7 @@ var require_provider = __commonJS({
|
|
|
6670
6954
|
var require_async6 = __commonJS({
|
|
6671
6955
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js"(exports) {
|
|
6672
6956
|
"use strict";
|
|
6673
|
-
|
|
6957
|
+
init_utils2();
|
|
6674
6958
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6675
6959
|
var async_1 = require_async5();
|
|
6676
6960
|
var provider_1 = require_provider();
|
|
@@ -6700,7 +6984,7 @@ var require_async6 = __commonJS({
|
|
|
6700
6984
|
var require_stream4 = __commonJS({
|
|
6701
6985
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js"(exports) {
|
|
6702
6986
|
"use strict";
|
|
6703
|
-
|
|
6987
|
+
init_utils2();
|
|
6704
6988
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6705
6989
|
var stream_1 = __require("stream");
|
|
6706
6990
|
var stream_2 = require_stream3();
|
|
@@ -6735,7 +7019,7 @@ var require_stream4 = __commonJS({
|
|
|
6735
7019
|
var require_sync5 = __commonJS({
|
|
6736
7020
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js"(exports) {
|
|
6737
7021
|
"use strict";
|
|
6738
|
-
|
|
7022
|
+
init_utils2();
|
|
6739
7023
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6740
7024
|
var fsStat = require_out();
|
|
6741
7025
|
var fsWalk = require_out3();
|
|
@@ -6784,7 +7068,7 @@ var require_sync5 = __commonJS({
|
|
|
6784
7068
|
var require_sync6 = __commonJS({
|
|
6785
7069
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js"(exports) {
|
|
6786
7070
|
"use strict";
|
|
6787
|
-
|
|
7071
|
+
init_utils2();
|
|
6788
7072
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6789
7073
|
var sync_1 = require_sync5();
|
|
6790
7074
|
var provider_1 = require_provider();
|
|
@@ -6814,7 +7098,7 @@ var require_sync6 = __commonJS({
|
|
|
6814
7098
|
var require_settings4 = __commonJS({
|
|
6815
7099
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js"(exports) {
|
|
6816
7100
|
"use strict";
|
|
6817
|
-
|
|
7101
|
+
init_utils2();
|
|
6818
7102
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6819
7103
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
6820
7104
|
var fs2 = __require("fs");
|
|
@@ -6875,7 +7159,7 @@ var require_settings4 = __commonJS({
|
|
|
6875
7159
|
var require_out4 = __commonJS({
|
|
6876
7160
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/index.js"(exports, module) {
|
|
6877
7161
|
"use strict";
|
|
6878
|
-
|
|
7162
|
+
init_utils2();
|
|
6879
7163
|
var taskManager = require_tasks();
|
|
6880
7164
|
var async_1 = require_async6();
|
|
6881
7165
|
var stream_1 = require_stream4();
|
|
@@ -6994,7 +7278,7 @@ var I18N_PATHS, SCAN_PATTERNS, GLOB_OPTIONS;
|
|
|
6994
7278
|
var init_constants = __esm({
|
|
6995
7279
|
"packages/core/config/constants.js"() {
|
|
6996
7280
|
"use strict";
|
|
6997
|
-
|
|
7281
|
+
init_utils2();
|
|
6998
7282
|
I18N_PATHS = {
|
|
6999
7283
|
// Monorepo source structure (locales at root, not in src/)
|
|
7000
7284
|
SOURCE_ROOT: "packages/core/i18n",
|
|
@@ -7156,7 +7440,7 @@ var import_fast_glob, constants, log2, PACKAGE_PATHS, PathResolver;
|
|
|
7156
7440
|
var init_PathResolver = __esm({
|
|
7157
7441
|
"packages/core/config/utils/PathResolver.ts"() {
|
|
7158
7442
|
"use strict";
|
|
7159
|
-
|
|
7443
|
+
init_utils2();
|
|
7160
7444
|
import_fast_glob = __toESM(require_out4(), 1);
|
|
7161
7445
|
init_constants();
|
|
7162
7446
|
constants = {
|
|
@@ -8457,7 +8741,7 @@ var pathResolverInstance, getPathResolver, getRepoRoot, getAppRoot, setAppRoot,
|
|
|
8457
8741
|
var init_pathResolver = __esm({
|
|
8458
8742
|
"packages/tooling/src/utils/pathResolver.ts"() {
|
|
8459
8743
|
"use strict";
|
|
8460
|
-
|
|
8744
|
+
init_utils2();
|
|
8461
8745
|
init_PathResolver();
|
|
8462
8746
|
pathResolverInstance = PathResolver.getInstance({ debug: false });
|
|
8463
8747
|
getPathResolver = (options) => PathResolver.getInstance(options);
|
|
@@ -8568,7 +8852,7 @@ function readTsConfigJson(filePath) {
|
|
|
8568
8852
|
var init_typed_file_operations = __esm({
|
|
8569
8853
|
"packages/tooling/src/utils/typed-file-operations.ts"() {
|
|
8570
8854
|
"use strict";
|
|
8571
|
-
|
|
8855
|
+
init_utils2();
|
|
8572
8856
|
init_errors();
|
|
8573
8857
|
init_pathResolver();
|
|
8574
8858
|
}
|
|
@@ -8582,7 +8866,7 @@ import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
|
8582
8866
|
import process from "node:process";
|
|
8583
8867
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
8584
8868
|
var require2, __filename, __dirname;
|
|
8585
|
-
var
|
|
8869
|
+
var init_utils2 = __esm({
|
|
8586
8870
|
"packages/tooling/src/bundler/utils.ts"() {
|
|
8587
8871
|
"use strict";
|
|
8588
8872
|
require2 = createRequire3(import.meta.url);
|
|
@@ -8603,24 +8887,24 @@ var init_utils = __esm({
|
|
|
8603
8887
|
|
|
8604
8888
|
// packages/tooling/src/utils/cli-input.ts
|
|
8605
8889
|
async function askForInput(message, defaultValue = "") {
|
|
8606
|
-
const result = await
|
|
8890
|
+
const result = await Ot({
|
|
8607
8891
|
message,
|
|
8608
8892
|
placeholder: defaultValue || void 0,
|
|
8609
8893
|
defaultValue: defaultValue || void 0
|
|
8610
8894
|
});
|
|
8611
|
-
if (
|
|
8612
|
-
|
|
8895
|
+
if (q(result)) {
|
|
8896
|
+
pt("Operation cancelled.");
|
|
8613
8897
|
process.exit(0);
|
|
8614
8898
|
}
|
|
8615
8899
|
return result;
|
|
8616
8900
|
}
|
|
8617
8901
|
async function askForConfirmation(message, defaultValue = false) {
|
|
8618
|
-
const result = await
|
|
8902
|
+
const result = await ot2({
|
|
8619
8903
|
message,
|
|
8620
8904
|
initialValue: defaultValue
|
|
8621
8905
|
});
|
|
8622
|
-
if (
|
|
8623
|
-
|
|
8906
|
+
if (q(result)) {
|
|
8907
|
+
pt("Operation cancelled.");
|
|
8624
8908
|
process.exit(0);
|
|
8625
8909
|
}
|
|
8626
8910
|
return result;
|
|
@@ -8631,13 +8915,13 @@ async function askForSelection(message, choices, defaultValue = 0) {
|
|
|
8631
8915
|
label: choice.title,
|
|
8632
8916
|
hint: choice.hint
|
|
8633
8917
|
}));
|
|
8634
|
-
const result = await
|
|
8918
|
+
const result = await _t({
|
|
8635
8919
|
message,
|
|
8636
8920
|
options,
|
|
8637
8921
|
initialValue: choices[defaultValue]?.value
|
|
8638
8922
|
});
|
|
8639
|
-
if (
|
|
8640
|
-
|
|
8923
|
+
if (q(result)) {
|
|
8924
|
+
pt("Operation cancelled.");
|
|
8641
8925
|
process.exit(0);
|
|
8642
8926
|
}
|
|
8643
8927
|
return result;
|
|
@@ -8645,22 +8929,22 @@ async function askForSelection(message, choices, defaultValue = 0) {
|
|
|
8645
8929
|
var init_cli_input = __esm({
|
|
8646
8930
|
"packages/tooling/src/utils/cli-input.ts"() {
|
|
8647
8931
|
"use strict";
|
|
8648
|
-
|
|
8649
|
-
|
|
8932
|
+
init_utils2();
|
|
8933
|
+
init_dist4();
|
|
8650
8934
|
}
|
|
8651
8935
|
});
|
|
8652
8936
|
|
|
8653
8937
|
// packages/cli/src/bin/commands/create-project.ts
|
|
8654
|
-
|
|
8938
|
+
init_utils2();
|
|
8655
8939
|
|
|
8656
8940
|
// packages/tooling/src/index.ts
|
|
8657
|
-
|
|
8941
|
+
init_utils2();
|
|
8658
8942
|
|
|
8659
8943
|
// packages/tooling/src/cli/index.ts
|
|
8660
|
-
|
|
8944
|
+
init_utils2();
|
|
8661
8945
|
|
|
8662
8946
|
// packages/tooling/src/utils/create-utils.ts
|
|
8663
|
-
|
|
8947
|
+
init_utils2();
|
|
8664
8948
|
init_cli_output();
|
|
8665
8949
|
init_pathResolver();
|
|
8666
8950
|
init_typed_file_operations();
|
|
@@ -8942,7 +9226,7 @@ async function mergeRootTurboJson(rootDir) {
|
|
|
8942
9226
|
}
|
|
8943
9227
|
|
|
8944
9228
|
// packages/tooling/src/utils/matrix.ts
|
|
8945
|
-
|
|
9229
|
+
init_utils2();
|
|
8946
9230
|
init_pathResolver();
|
|
8947
9231
|
import { createRequire as createRequire4 } from "node:module";
|
|
8948
9232
|
var cachedMatrix = null;
|
|
@@ -9027,7 +9311,7 @@ function resolveGroups(groupNames, matrix) {
|
|
|
9027
9311
|
}
|
|
9028
9312
|
|
|
9029
9313
|
// packages/tooling/src/utils/scaffolding-questionnaire.ts
|
|
9030
|
-
|
|
9314
|
+
init_utils2();
|
|
9031
9315
|
var APP_QUESTIONNAIRE = [
|
|
9032
9316
|
{
|
|
9033
9317
|
id: "framework",
|
|
@@ -9160,7 +9444,7 @@ async function runQuestionnaire(questions, initialAnswers, showWIP, askFor) {
|
|
|
9160
9444
|
}
|
|
9161
9445
|
if (question.choicesFilter) {
|
|
9162
9446
|
const allowed = question.choicesFilter(answers);
|
|
9163
|
-
choices = choices.filter((
|
|
9447
|
+
choices = choices.filter((c2) => allowed.includes(c2.value));
|
|
9164
9448
|
}
|
|
9165
9449
|
if (choices.length === 0) continue;
|
|
9166
9450
|
answer = await askFor.selection(question.question, choices);
|
|
@@ -9179,10 +9463,10 @@ async function runQuestionnaire(questions, initialAnswers, showWIP, askFor) {
|
|
|
9179
9463
|
}
|
|
9180
9464
|
|
|
9181
9465
|
// packages/tooling/src/scaffolding/create-app.ts
|
|
9182
|
-
|
|
9466
|
+
init_utils2();
|
|
9183
9467
|
|
|
9184
9468
|
// packages/tooling/src/scaffolding/scaffold-matrix.ts
|
|
9185
|
-
|
|
9469
|
+
init_utils2();
|
|
9186
9470
|
function resolveDeployConfig(host, backend) {
|
|
9187
9471
|
if (host === "none") return null;
|
|
9188
9472
|
if (host === "firebase") return "firebase";
|
|
@@ -9206,7 +9490,7 @@ init_cli_input();
|
|
|
9206
9490
|
init_cli_output();
|
|
9207
9491
|
|
|
9208
9492
|
// packages/tooling/src/utils/dependency-resolver.ts
|
|
9209
|
-
|
|
9493
|
+
init_utils2();
|
|
9210
9494
|
function applyConditionals(template, options) {
|
|
9211
9495
|
if (!template.conditional) return [];
|
|
9212
9496
|
const groups = [];
|
|
@@ -9338,6 +9622,17 @@ function generatePackageJson(templateName, mode, options = {}) {
|
|
|
9338
9622
|
result.main = "./index.ts";
|
|
9339
9623
|
result.types = "./index.ts";
|
|
9340
9624
|
}
|
|
9625
|
+
if (templateName.includes("nextjs")) {
|
|
9626
|
+
result.browserslist = [
|
|
9627
|
+
"chrome >= 64",
|
|
9628
|
+
"edge >= 79",
|
|
9629
|
+
"firefox >= 67",
|
|
9630
|
+
"safari >= 12",
|
|
9631
|
+
"ios_saf >= 12",
|
|
9632
|
+
"opera >= 51",
|
|
9633
|
+
"not dead"
|
|
9634
|
+
];
|
|
9635
|
+
}
|
|
9341
9636
|
if (templateName.includes("vite") || templateName.includes("nextjs") || templateName.includes("expo") || templateName.includes("functions")) {
|
|
9342
9637
|
if (!dependencies.entities) {
|
|
9343
9638
|
dependencies.entities = "workspace:*";
|
|
@@ -9399,7 +9694,7 @@ async function createApp(appName, appConfig, workspaceRoot, templatesRoot) {
|
|
|
9399
9694
|
workspaceRoot = workspaceRoot || currentDir;
|
|
9400
9695
|
}
|
|
9401
9696
|
templatesRoot = templatesRoot || getTemplatesRoot();
|
|
9402
|
-
|
|
9697
|
+
mt("\u{1F680} DoNotDev App Creator");
|
|
9403
9698
|
if (!appName) {
|
|
9404
9699
|
appName = await askForInput(
|
|
9405
9700
|
`App name - '${RESERVED_APP_NAMES.join("', '")}' reserved`,
|
|
@@ -9472,7 +9767,7 @@ async function createApp(appName, appConfig, workspaceRoot, templatesRoot) {
|
|
|
9472
9767
|
return;
|
|
9473
9768
|
}
|
|
9474
9769
|
}
|
|
9475
|
-
const s =
|
|
9770
|
+
const s = fe();
|
|
9476
9771
|
s.start(`Creating app: ${appName}`);
|
|
9477
9772
|
await ensureDir(appDir);
|
|
9478
9773
|
const builder = appTemplate;
|
|
@@ -9661,7 +9956,7 @@ async function createApp(appName, appConfig, workspaceRoot, templatesRoot) {
|
|
|
9661
9956
|
});
|
|
9662
9957
|
if (firebaseJson.hosting?.rewrites && Array.isArray(firebaseJson.hosting.rewrites)) {
|
|
9663
9958
|
firebaseJson.hosting.rewrites = firebaseJson.hosting.rewrites.filter(
|
|
9664
|
-
(
|
|
9959
|
+
(r) => r.destination !== "/index.html"
|
|
9665
9960
|
);
|
|
9666
9961
|
}
|
|
9667
9962
|
if (firebaseJson.hosting) {
|
|
@@ -9779,12 +10074,12 @@ async function createApp(appName, appConfig, workspaceRoot, templatesRoot) {
|
|
|
9779
10074
|
await updateRootPackageJson(workspaceRoot, allDirs);
|
|
9780
10075
|
}
|
|
9781
10076
|
if (isInteractive) {
|
|
9782
|
-
|
|
10077
|
+
gt("\u{1F389} App created successfully!");
|
|
9783
10078
|
const firebaseStep = row.functionsTemplate === "functions-firebase" ? `2. Set Firebase project: cd apps/${appName} && firebase use --add (or edit .firebaserc)
|
|
9784
10079
|
3. bun install
|
|
9785
10080
|
4. bun run dev` : `2. bun install
|
|
9786
10081
|
3. bun run dev`;
|
|
9787
|
-
|
|
10082
|
+
wt(
|
|
9788
10083
|
`Next steps:
|
|
9789
10084
|
|
|
9790
10085
|
1. cd apps/${appName}
|
|
@@ -9797,7 +10092,7 @@ Happy coding!`,
|
|
|
9797
10092
|
}
|
|
9798
10093
|
|
|
9799
10094
|
// packages/tooling/src/scaffolding/create-project.ts
|
|
9800
|
-
|
|
10095
|
+
init_utils2();
|
|
9801
10096
|
init_cli_input();
|
|
9802
10097
|
init_cli_output();
|
|
9803
10098
|
init_pathResolver();
|
|
@@ -9859,20 +10154,20 @@ function detectExecutionMode2() {
|
|
|
9859
10154
|
}
|
|
9860
10155
|
async function main(_options, name) {
|
|
9861
10156
|
try {
|
|
9862
|
-
|
|
10157
|
+
mt("\u{1F680} DoNotDev Project Creator");
|
|
9863
10158
|
try {
|
|
9864
10159
|
const { execSync } = await import("node:child_process");
|
|
9865
10160
|
execSync("bun --version", { stdio: "ignore" });
|
|
9866
10161
|
} catch {
|
|
9867
10162
|
log.error("bun is required but not installed.");
|
|
9868
|
-
|
|
10163
|
+
wt(
|
|
9869
10164
|
"Install bun:\n\n curl -fsSL https://bun.sh/install | bash\n\nThen re-run: dndev init",
|
|
9870
10165
|
"Missing dependency"
|
|
9871
10166
|
);
|
|
9872
10167
|
process.exit(1);
|
|
9873
10168
|
}
|
|
9874
10169
|
if (SHOW_WIP2) {
|
|
9875
|
-
|
|
10170
|
+
wt("WIP mode enabled - showing experimental features", "\u{1F527} Debug");
|
|
9876
10171
|
}
|
|
9877
10172
|
const executionMode = detectExecutionMode2();
|
|
9878
10173
|
const monorepoRoot = process.cwd();
|
|
@@ -9902,7 +10197,7 @@ async function main(_options, name) {
|
|
|
9902
10197
|
1
|
|
9903
10198
|
);
|
|
9904
10199
|
if (action === "cancel") {
|
|
9905
|
-
|
|
10200
|
+
gt("Project creation cancelled.");
|
|
9906
10201
|
process.exit(0);
|
|
9907
10202
|
}
|
|
9908
10203
|
if (action === "replace") {
|
|
@@ -9911,17 +10206,17 @@ async function main(_options, name) {
|
|
|
9911
10206
|
false
|
|
9912
10207
|
);
|
|
9913
10208
|
if (!confirmDelete) {
|
|
9914
|
-
|
|
10209
|
+
gt("Project creation cancelled.");
|
|
9915
10210
|
process.exit(0);
|
|
9916
10211
|
}
|
|
9917
|
-
const s2 =
|
|
10212
|
+
const s2 = fe();
|
|
9918
10213
|
s2.start("Removing existing project...");
|
|
9919
10214
|
await remove(projectDirNormalized);
|
|
9920
10215
|
s2.stop("Removed existing project");
|
|
9921
10216
|
}
|
|
9922
10217
|
if (action === "merge") {
|
|
9923
10218
|
log.warn("Root file merging is at your own risk!");
|
|
9924
|
-
|
|
10219
|
+
wt(
|
|
9925
10220
|
"Make sure you have a backup or git commit\nYou can rollback if something breaks\nWe will merge: package.json, tsconfig.json, turbo.json\nWe will skip: bunfig.toml, firebase.json, SETUP.md",
|
|
9926
10221
|
"\u26A0\uFE0F Warning"
|
|
9927
10222
|
);
|
|
@@ -9930,11 +10225,11 @@ async function main(_options, name) {
|
|
|
9930
10225
|
false
|
|
9931
10226
|
);
|
|
9932
10227
|
if (!confirmMerge) {
|
|
9933
|
-
|
|
10228
|
+
gt("Merge cancelled. Root files will not be modified.");
|
|
9934
10229
|
process.exit(0);
|
|
9935
10230
|
}
|
|
9936
10231
|
isMergeMode = true;
|
|
9937
|
-
|
|
10232
|
+
wt("Merge mode: Merging root files, creating new apps", "\u{1F527} Mode");
|
|
9938
10233
|
}
|
|
9939
10234
|
}
|
|
9940
10235
|
let appNames = [];
|
|
@@ -9965,7 +10260,7 @@ async function main(_options, name) {
|
|
|
9965
10260
|
continue;
|
|
9966
10261
|
}
|
|
9967
10262
|
appNames.push(trimmedName);
|
|
9968
|
-
|
|
10263
|
+
wt(`Configuring "${trimmedName}"...`, "\u2699\uFE0F");
|
|
9969
10264
|
const config = await collectAppConfig(trimmedName);
|
|
9970
10265
|
appConfigs[trimmedName] = config;
|
|
9971
10266
|
if (config.backend !== "none" || config.functions !== "none")
|
|
@@ -9982,7 +10277,7 @@ async function main(_options, name) {
|
|
|
9982
10277
|
if (pathExists(appsDir)) {
|
|
9983
10278
|
try {
|
|
9984
10279
|
const entries = readdirSync2(appsDir, { withFileTypes: true }).sort(
|
|
9985
|
-
(a,
|
|
10280
|
+
(a, b) => a.name.localeCompare(b.name)
|
|
9986
10281
|
);
|
|
9987
10282
|
for (const entry of entries) {
|
|
9988
10283
|
if (entry.isDirectory()) {
|
|
@@ -10011,24 +10306,24 @@ async function main(_options, name) {
|
|
|
10011
10306
|
);
|
|
10012
10307
|
if (replaceAction === "replace") {
|
|
10013
10308
|
appsToCreate.push(appName);
|
|
10014
|
-
const s2 =
|
|
10309
|
+
const s2 = fe();
|
|
10015
10310
|
s2.start(`Removing existing app "${appName}"...`);
|
|
10016
10311
|
await remove(appDir);
|
|
10017
10312
|
s2.stop(`Removed existing app "${appName}"`);
|
|
10018
10313
|
} else {
|
|
10019
10314
|
appsToSkip.push(appName);
|
|
10020
|
-
|
|
10315
|
+
wt(`Skipping app "${appName}" (already exists)`, "\u23ED\uFE0F Skip");
|
|
10021
10316
|
}
|
|
10022
10317
|
} else {
|
|
10023
10318
|
appsToCreate.push(appName);
|
|
10024
10319
|
}
|
|
10025
10320
|
}
|
|
10026
10321
|
if (appsToCreate.length === 0) {
|
|
10027
|
-
|
|
10322
|
+
gt("No new apps to create. All requested apps already exist.");
|
|
10028
10323
|
process.exit(0);
|
|
10029
10324
|
}
|
|
10030
10325
|
if (appsToSkip.length > 0) {
|
|
10031
|
-
|
|
10326
|
+
wt(
|
|
10032
10327
|
`Skipped ${appsToSkip.length} app(s): ${appsToSkip.join(", ")}`,
|
|
10033
10328
|
"\u23ED\uFE0F Skipped"
|
|
10034
10329
|
);
|
|
@@ -10055,7 +10350,7 @@ async function main(_options, name) {
|
|
|
10055
10350
|
}
|
|
10056
10351
|
}
|
|
10057
10352
|
const setupGithubActions = true;
|
|
10058
|
-
const s =
|
|
10353
|
+
const s = fe();
|
|
10059
10354
|
if (!isMergeMode) {
|
|
10060
10355
|
s.start("Creating project structure...");
|
|
10061
10356
|
await ensureDir(projectDirNormalized);
|
|
@@ -10091,15 +10386,15 @@ async function main(_options, name) {
|
|
|
10091
10386
|
});
|
|
10092
10387
|
const relativeMonorepoPath = executionMode === "development" ? calculateRelativePath(projectDirNormalized, monorepoRoot) : "";
|
|
10093
10388
|
const primaryPlatform = Object.values(appConfigs).find(
|
|
10094
|
-
(
|
|
10389
|
+
(c2) => c2.backend !== "none"
|
|
10095
10390
|
)?.backend ?? "none";
|
|
10096
10391
|
const hasVercel = Object.values(appConfigs).some(
|
|
10097
|
-
(
|
|
10392
|
+
(c2) => c2.host === "vercel"
|
|
10098
10393
|
);
|
|
10099
10394
|
const hasSupabase = Object.values(appConfigs).some(
|
|
10100
|
-
(
|
|
10395
|
+
(c2) => c2.backend === "supabase"
|
|
10101
10396
|
);
|
|
10102
|
-
const hasBilling = Object.values(appConfigs).some((
|
|
10397
|
+
const hasBilling = Object.values(appConfigs).some((c2) => c2.billing);
|
|
10103
10398
|
const rootPackageJson = generatePackageJson(
|
|
10104
10399
|
"consumer-root",
|
|
10105
10400
|
executionMode,
|
|
@@ -10163,7 +10458,10 @@ async function main(_options, name) {
|
|
|
10163
10458
|
const hooksDir = joinPath(projectDirNormalized, ".claude", "hooks");
|
|
10164
10459
|
if (pathExists(hooksDir)) {
|
|
10165
10460
|
const { chmodSync } = await import("node:fs");
|
|
10166
|
-
const hookFiles = await glob("*.sh", {
|
|
10461
|
+
const hookFiles = await glob("*.sh", {
|
|
10462
|
+
cwd: hooksDir,
|
|
10463
|
+
onlyFiles: true
|
|
10464
|
+
});
|
|
10167
10465
|
for (const hook of hookFiles) {
|
|
10168
10466
|
chmodSync(joinPath(hooksDir, hook), 493);
|
|
10169
10467
|
}
|
|
@@ -10220,7 +10518,7 @@ async function main(_options, name) {
|
|
|
10220
10518
|
s.stop("Root files merged");
|
|
10221
10519
|
}
|
|
10222
10520
|
if (installDemoApp) {
|
|
10223
|
-
const sDemo =
|
|
10521
|
+
const sDemo = fe();
|
|
10224
10522
|
sDemo.start("Copying demo app...");
|
|
10225
10523
|
const demoAppDir = joinPath(projectDirNormalized, "apps", "demo");
|
|
10226
10524
|
const demoTemplateDir = joinPath(templatesRoot, "app-demo");
|
|
@@ -10276,7 +10574,7 @@ async function main(_options, name) {
|
|
|
10276
10574
|
}
|
|
10277
10575
|
}
|
|
10278
10576
|
if (installCockpitApp) {
|
|
10279
|
-
const sCockpit =
|
|
10577
|
+
const sCockpit = fe();
|
|
10280
10578
|
sCockpit.start("Copying cockpit app...");
|
|
10281
10579
|
const cockpitAppDir = joinPath(projectDirNormalized, "apps", "dndev");
|
|
10282
10580
|
const cockpitTemplateDir = joinPath(templatesRoot, "app-dndev");
|
|
@@ -10345,15 +10643,15 @@ async function main(_options, name) {
|
|
|
10345
10643
|
isMergeMode ? allAppNames : appNames
|
|
10346
10644
|
);
|
|
10347
10645
|
s.stop("Root package.json updated");
|
|
10348
|
-
|
|
10646
|
+
gt("\u{1F389} Project created successfully!");
|
|
10349
10647
|
const cdCommand = executionMode === "development" ? `cd ../${projectName}` : `cd ${projectName}`;
|
|
10350
|
-
|
|
10648
|
+
wt(
|
|
10351
10649
|
`1. ${cdCommand}
|
|
10352
10650
|
2. bun install
|
|
10353
10651
|
3. Open the project in your IDE
|
|
10354
10652
|
4. Tell your AI agent:
|
|
10355
10653
|
|
|
10356
|
-
"Read
|
|
10654
|
+
"Read AGENTS.md and build my app"
|
|
10357
10655
|
|
|
10358
10656
|
The AI agent will use the MCP server automatically.
|
|
10359
10657
|
It handles everything: spec, scaffold, entities, pages.
|