@donotdev/cli 0.1.0 → 0.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/README.md +0 -0
- package/dependencies-matrix.json +175 -72
- package/dist/bin/commands/agent-setup.js +936 -428
- package/dist/bin/commands/build.js +4363 -883
- package/dist/bin/commands/bump.js +1296 -780
- package/dist/bin/commands/cacheout.js +494 -363
- package/dist/bin/commands/coach.js +632 -431
- package/dist/bin/commands/create-app.js +1316 -799
- package/dist/bin/commands/create-project.js +1355 -827
- package/dist/bin/commands/db.js +26158 -18868
- package/dist/bin/commands/deploy.js +5983 -1971
- package/dist/bin/commands/dev.js +1223 -657
- package/dist/bin/commands/doctor.js +1100 -528
- package/dist/bin/commands/emu.js +1380 -757
- package/dist/bin/commands/format.js +494 -363
- package/dist/bin/commands/get-demo.js +1210 -715
- package/dist/bin/commands/make-admin.js +16073 -8700
- package/dist/bin/commands/preview.js +1227 -658
- package/dist/bin/commands/seed.js +26171 -18881
- package/dist/bin/commands/setup-cicd.js +1475 -880
- package/dist/bin/commands/setup.js +1574 -956
- package/dist/bin/commands/staging.js +5984 -1972
- package/dist/bin/commands/sync-secrets.js +1423 -676
- package/dist/bin/commands/type-check.js +976 -469
- package/dist/bin/commands/wai.js +499 -368
- package/dist/bin/dndev.js +43 -19
- package/dist/bin/donotdev.js +43 -19
- package/dist/index.js +6166 -2133
- package/guidelines/DEPENDENCIES.md +155 -0
- package/{templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example → guidelines/VERSION_CONTROL.md} +7 -11
- package/package.json +2 -1
- package/templates/app-demo/.env.example +1 -1
- package/templates/app-demo/entities/Contact.ts.example +0 -0
- package/templates/app-demo/entities/ExampleEntity.ts.example +0 -0
- package/templates/app-demo/entities/demo.ts.example +0 -0
- package/templates/app-demo/index.html.example +0 -0
- package/templates/app-demo/public/apple-touch-icon.png.example +0 -0
- package/templates/app-demo/public/fonts/fonts.css.example +0 -0
- package/templates/app-demo/public/icon-192x192.png.example +0 -0
- package/templates/app-demo/public/icon-512x512.png.example +0 -0
- package/templates/app-demo/src/App.tsx.example +0 -0
- package/templates/app-demo/src/config/app.ts.example +0 -0
- package/templates/app-demo/src/entities/booking.ts.example +0 -0
- package/templates/app-demo/src/entities/onboarding.ts.example +0 -0
- package/templates/app-demo/src/entities/product.ts.example +0 -0
- package/templates/app-demo/src/entities/quote.ts.example +0 -0
- package/templates/app-demo/src/globals.css.example +0 -0
- package/templates/app-demo/src/main.tsx.example +0 -0
- package/templates/app-demo/src/pages/ChangelogPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ConditionalFormPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/DashboardPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/HomePage.tsx.example +0 -0
- package/templates/app-demo/src/pages/OnboardingPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/PricingPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ProductsPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ProfilePage.tsx.example +0 -0
- package/templates/app-demo/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ShowcaseDetailPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ShowcasePage.tsx.example +0 -0
- package/templates/app-demo/src/pages/components/ComponentRenderer.tsx.example +0 -0
- package/templates/app-demo/src/pages/components/ComponentsData.tsx.example +0 -0
- package/templates/app-demo/src/pages/components/componentConfig.ts.example +0 -0
- package/templates/app-demo/src/pages/legal/LegalPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-demo/src/themes.css.example +27 -0
- package/templates/app-demo/tsconfig.json.example +0 -0
- package/templates/app-demo/vite.config.ts.example +0 -0
- package/templates/app-dndev/index.html.example +0 -3
- package/templates/app-dndev/src/App.tsx.example +0 -0
- package/templates/app-dndev/src/components/CockpitLayout.css.example +0 -0
- package/templates/app-dndev/src/components/CockpitLayout.tsx.example +0 -0
- package/templates/app-dndev/src/components/Kanban.css.example +0 -0
- package/templates/app-dndev/src/components/ModeToggle.tsx.example +0 -0
- package/templates/app-dndev/src/components/OverlaySlot.tsx.example +0 -0
- package/templates/app-dndev/src/components/TerminalPanel.css.example +0 -0
- package/templates/app-dndev/src/components/TerminalPanel.tsx.example +0 -0
- package/templates/app-dndev/src/components/markdown-prose.css.example +0 -0
- package/templates/app-dndev/src/components/phases/CaptainLog.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/ContextTabs.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/PhaseCard.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/PhaseDetail.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/ReviewPanel.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/phaseData.ts.example +0 -0
- package/templates/app-dndev/src/config/app.ts.example +0 -0
- package/templates/app-dndev/src/config/commands.ts.example +0 -0
- package/templates/app-dndev/src/config/legal.ts.example +0 -0
- package/templates/app-dndev/src/config/providers.ts.example +1 -1
- package/templates/app-dndev/src/globals.css.example +0 -0
- package/templates/app-dndev/src/hooks/useDndevFile.ts.example +0 -0
- package/templates/app-dndev/src/main.tsx.example +0 -0
- package/templates/app-dndev/src/pages/BoardPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/GrillPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/HomePage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/NotFoundPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/PhasesPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/legal/LegalNoticePage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-dndev/src/stores/dndevStore.ts.example +0 -0
- package/templates/app-dndev/src/themes.css.example +26 -0
- package/templates/app-dndev/terminal-sidecar.cjs.example +0 -0
- package/templates/app-dndev/vite.config.ts.example +0 -0
- package/templates/app-expo/.env.example +0 -32
- package/templates/app-expo/.expo/README.md.example +0 -0
- package/templates/app-expo/.gitignore.example +0 -0
- package/templates/app-expo/README.md.example +1 -1
- package/templates/app-expo/app/.gitkeep +0 -0
- package/templates/app-expo/app/_layout.tsx.example +0 -0
- package/templates/app-expo/app/form.tsx.example +0 -0
- package/templates/app-expo/app/index.tsx.example +0 -0
- package/templates/app-expo/app/list.tsx.example +0 -0
- package/templates/app-expo/app/profile.tsx.example +0 -0
- package/templates/app-expo/app/signin.tsx.example +0 -0
- package/templates/app-expo/app.json.example +0 -0
- package/templates/app-expo/assets/adaptive-icon.png +0 -0
- package/templates/app-expo/assets/favicon.png +0 -0
- package/templates/app-expo/assets/icon.png +0 -0
- package/templates/app-expo/assets/splash.png +0 -0
- package/templates/app-expo/babel.config.js.example +0 -0
- package/templates/app-expo/eas.json.example +0 -0
- package/templates/app-expo/expo-env.d.ts.example +0 -0
- package/templates/app-expo/metro.config.js.example +0 -0
- package/templates/app-expo/service-account-key.json.example +1 -1
- package/templates/app-expo/src/config/app.ts.example +0 -0
- package/templates/app-expo/src/config/providers.ts.example +1 -1
- package/templates/app-expo/tsconfig.json.example +0 -0
- package/templates/app-next/.env.example +0 -33
- package/templates/app-next/next.config.ts.example +0 -2
- package/templates/app-next/postcss.config.js.example +0 -0
- package/templates/app-next/service-account-key.json.example +0 -0
- package/templates/app-next/src/app/ClientLayout.tsx.example +0 -0
- package/templates/app-next/src/app/layout.tsx.example +13 -4
- package/templates/app-next/src/app/not-found.tsx.example +0 -0
- package/templates/app-next/src/config/app.ts.example +0 -0
- package/templates/app-next/src/config/legal.ts.example +0 -0
- package/templates/app-next/src/config/providers.ts.example +1 -1
- package/templates/app-next/src/globals.css.example +0 -0
- package/templates/app-next/src/locales/dndev_en.json.example +0 -0
- package/templates/app-next/src/locales/home_en.json.example +6 -6
- package/templates/app-next/src/pages/HomePage.tsx.example +0 -0
- package/templates/app-next/src/pages/legal/LegalNoticePage.tsx.example +0 -0
- package/templates/app-next/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-next/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-next/src/pages/locales/example_en.json.example +0 -0
- package/templates/app-next/src/themes.css.example +28 -1
- package/templates/app-vite/.env.example +0 -33
- package/templates/app-vite/csp.example.json +44 -0
- package/templates/app-vite/index.html.example +0 -3
- package/templates/app-vite/service-account-key.json.example +0 -0
- package/templates/app-vite/src/App.tsx.example +0 -0
- package/templates/app-vite/src/config/app.ts.example +0 -0
- package/templates/app-vite/src/config/legal.ts.example +0 -0
- package/templates/app-vite/src/config/providers.ts.example +1 -1
- package/templates/app-vite/src/globals.css.example +0 -0
- package/templates/app-vite/src/locales/dndev_en.json.example +0 -0
- package/templates/app-vite/src/locales/home_en.json.example +6 -6
- package/templates/app-vite/src/main.tsx.example +0 -0
- package/templates/app-vite/src/pages/FormPageExample.tsx.example +0 -0
- package/templates/app-vite/src/pages/HomePage.tsx.example +1 -1
- package/templates/app-vite/src/pages/ListPageExample.tsx.example +0 -0
- package/templates/app-vite/src/pages/NotFoundPage.tsx.example +0 -0
- package/templates/app-vite/src/pages/legal/LegalNoticePage.tsx.example +0 -0
- package/templates/app-vite/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-vite/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-vite/src/pages/locales/example_en.json.example +0 -0
- package/templates/app-vite/src/themes.css.example +26 -0
- package/templates/deploy-config/.firebaserc.example +0 -0
- package/templates/deploy-config/firestore.indexes.json.example +0 -0
- package/templates/deploy-config/firestore.rules.example +0 -0
- package/templates/deploy-config/storage.rules.example +0 -0
- package/templates/deploy-config/tsconfig.functions.json.example +0 -0
- package/templates/deploy-config/vercel.json.example +2 -2
- package/templates/functions-firebase/.env.example +2 -2
- package/templates/functions-firebase/README.md.example +3 -3
- package/templates/functions-firebase/build.mjs.example +0 -0
- package/templates/functions-firebase/functions.config.js.example +0 -0
- package/templates/functions-firebase/functions.yaml.example +0 -0
- package/templates/functions-firebase/src/auth/getCustomClaims.ts.example +0 -0
- package/templates/functions-firebase/src/auth/getUserAuthStatus.ts.example +0 -0
- package/templates/functions-firebase/src/auth/index.ts.example +0 -0
- package/templates/functions-firebase/src/auth/removeCustomClaims.ts.example +0 -0
- package/templates/functions-firebase/src/auth/setCustomClaims.ts.example +0 -0
- package/templates/functions-firebase/src/billing/handleStripeWebhook.ts.example +0 -0
- package/templates/functions-firebase/src/billing/index.ts.example +0 -0
- package/templates/functions-firebase/src/billing/processPaymentSuccess.ts.example +0 -0
- package/templates/functions-firebase/src/billing/refreshSubscriptionStatus.ts.example +0 -0
- package/templates/functions-firebase/src/crud/createEntity.ts.example +0 -0
- package/templates/functions-firebase/src/crud/deleteEntity.ts.example +0 -0
- package/templates/functions-firebase/src/crud/getEntity.ts.example +0 -0
- package/templates/functions-firebase/src/crud/index.ts.example +0 -0
- package/templates/functions-firebase/src/crud/listEntities.ts.example +0 -0
- package/templates/functions-firebase/src/crud/updateEntity.ts.example +0 -0
- package/templates/functions-firebase/src/index.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/checkGitHubAccess.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/disconnect.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/exchangeToken.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/getConnections.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/grantGitHubAccess.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/index.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/refreshToken.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/revokeGitHubAccess.ts.example +0 -0
- package/templates/functions-firebase/tsconfig.json.example +0 -0
- package/templates/functions-supabase/supabase/config.toml.example +0 -0
- package/templates/functions-supabase/supabase/functions/.env.example +0 -0
- package/templates/functions-supabase/supabase/functions/cancel-subscription/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/change-plan/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/create-checkout-session/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/create-customer-portal/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/crud/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/delete-account/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/deno.json.example +0 -0
- package/templates/functions-supabase/supabase/functions/disconnect-oauth/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/exchange-token/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/get-connections/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/get-custom-claims/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/get-user-auth-status/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/refresh-subscription-status/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/refresh-token/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/remove-custom-claims/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/set-custom-claims/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/migrations/20250101000000_idempotency.sql +3 -0
- package/templates/functions-supabase/supabase/migrations/20250101000001_rate_limits.sql +3 -0
- package/templates/functions-supabase/supabase/migrations/20250101000002_cleanup_jobs.sql +0 -0
- package/templates/functions-supabase/supabase/migrations/20250101000003_operation_metrics.sql +3 -0
- package/templates/functions-supabase/supabase/migrations/20250101000004_crud_bulk.sql +192 -0
- package/templates/functions-vercel/.env.example +3 -3
- package/templates/functions-vercel/README.md.example +2 -2
- package/templates/functions-vercel/build.mjs.example +0 -0
- package/templates/functions-vercel/src/api/auth/getCustomClaims.ts.example +0 -0
- package/templates/functions-vercel/src/api/auth/getUserAuthStatus.ts.example +0 -0
- package/templates/functions-vercel/src/api/auth/removeCustomClaims.ts.example +0 -0
- package/templates/functions-vercel/src/api/auth/setCustomClaims.ts.example +0 -0
- package/templates/functions-vercel/src/api/billing/handleStripeWebhook.ts.example +0 -0
- package/templates/functions-vercel/src/api/billing/processPaymentSuccess.ts.example +0 -0
- package/templates/functions-vercel/src/api/billing/refreshSubscriptionStatus.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/createEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/deleteEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/getEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/listEntities.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/updateEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/checkGitHubAccess.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/disconnect.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/exchangeToken.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/getConnections.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/grantGitHubAccess.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/refreshToken.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/revokeGitHubAccess.ts.example +0 -0
- package/templates/functions-vercel/tsconfig.json.example +0 -0
- package/templates/functions-vercel/vercel.json.example +0 -0
- package/templates/github-consumer/.github/workflows/ci.yml.example +0 -0
- package/templates/overlay-firebase/env.fragment.example +0 -0
- package/templates/overlay-firebase/env.fragment.expo.example +0 -0
- package/templates/overlay-firebase/env.fragment.nextjs.example +0 -0
- package/templates/overlay-firebase/src/config/providers.expo.ts.example +0 -0
- package/templates/overlay-firebase/src/config/providers.ts.example +0 -0
- package/templates/overlay-supabase/env.fragment.example +0 -0
- package/templates/overlay-supabase/env.fragment.expo.example +0 -0
- package/templates/overlay-supabase/env.fragment.nextjs.example +0 -0
- package/templates/overlay-supabase/src/config/providers.expo.ts.example +1 -1
- package/templates/overlay-supabase/src/config/providers.ts.example +1 -1
- package/templates/overlay-vercel/env.fragment.example +0 -0
- package/templates/overlay-vercel/env.fragment.nextjs.example +0 -0
- package/templates/overlay-vercel/src/config/providers.ts.example +0 -0
- package/templates/preset-admin/src/pages/DashboardPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/EntityPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/ReportsPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/UsersPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/HomePage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +0 -0
- package/templates/preset-landing/src/pages/AboutPage.tsx.example +0 -0
- package/templates/preset-landing/src/pages/ContactPage.tsx.example +0 -0
- package/templates/preset-landing/src/pages/HomePage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/DashboardPage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/HomePage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/PricingPage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/ProfilePage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/root-consumer/.claude/agents/architect.md.example +0 -0
- package/templates/root-consumer/.claude/agents/builder.md.example +0 -0
- package/templates/root-consumer/.claude/agents/coder.md.example +0 -0
- package/templates/root-consumer/.claude/agents/extractor.md.example +0 -0
- package/templates/root-consumer/.claude/agents/polisher.md.example +0 -0
- package/templates/root-consumer/.claude/agents/prompt-engineer.md.example +0 -0
- package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +61 -0
- package/templates/root-consumer/.claude/hooks/guard-write.sh.example +56 -0
- package/templates/root-consumer/.claude/hooks/session-start.sh.example +50 -0
- package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +18 -0
- package/templates/root-consumer/.claude/rules/consumer-ux.md.example +32 -0
- package/templates/root-consumer/.claude/rules/definition-of-done.md.example +32 -0
- package/templates/root-consumer/.claude/rules/framework.md.example +39 -0
- package/templates/root-consumer/.claude/rules/git.md.example +14 -0
- package/templates/root-consumer/.claude/rules/security.md.example +13 -0
- package/templates/root-consumer/.claude/settings.json.example +100 -4
- package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +0 -0
- package/templates/root-consumer/.claude/skills/build/SKILL.md.example +22 -27
- package/templates/root-consumer/.claude/skills/design/SKILL.md.example +0 -0
- package/templates/root-consumer/.claude/skills/design/output-template.md +0 -0
- package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +26 -15
- package/templates/root-consumer/.claude/skills/polish/SKILL.md.example +50 -37
- package/templates/root-consumer/.claude/skills/techdebt/SKILL.md.example +0 -0
- package/templates/root-consumer/.cursor/mcp.json.example +0 -0
- package/templates/root-consumer/.cursor/rules/no-docs.mdc.example +5 -1
- package/templates/root-consumer/.dndev/args.json.example +0 -0
- package/templates/root-consumer/.dndev.secrets.example +0 -0
- package/templates/root-consumer/.env.example +0 -1
- package/templates/root-consumer/.gemini/settings.json.example +0 -0
- package/templates/root-consumer/.gitignore.example +1 -0
- package/templates/root-consumer/.mcp.json.example +0 -0
- package/templates/root-consumer/.prettierrc.cjs.example +0 -0
- package/templates/root-consumer/AGENTS.md.example +63 -0
- package/templates/root-consumer/CLAUDE.md.example +1 -1
- package/templates/root-consumer/README.md.example +11 -33
- package/templates/root-consumer/entities/index.ts.example +0 -0
- package/templates/root-consumer/eslint.config.js.example +0 -0
- package/templates/root-consumer/tsconfig.json.example +0 -0
- package/templates/app-demo/public/manifest.json.example +0 -10
- package/templates/app-dndev/public/manifest.json.example +0 -10
- package/templates/root-consumer/.claude/commands/brainstorm.md.example +0 -175
- package/templates/root-consumer/.claude/commands/build.md.example +0 -131
- package/templates/root-consumer/.claude/commands/design.md.example +0 -184
- package/templates/root-consumer/.claude/commands/grill.md.example +0 -135
- package/templates/root-consumer/.claude/commands/polish.md.example +0 -146
- package/templates/root-consumer/.claude/commands/techdebt.md.example +0 -28
- package/templates/root-consumer/.claude/statusline.py.example +0 -79
- package/templates/root-consumer/.clinerules.example +0 -1
- package/templates/root-consumer/.cursorrules.example +0 -1
- package/templates/root-consumer/.github/copilot-instructions.md.example +0 -1
- package/templates/root-consumer/.windsurfrules.example +0 -1
- package/templates/root-consumer/AI.md.example +0 -108
- package/templates/root-consumer/CONVENTIONS.md.example +0 -1
- package/templates/root-consumer/GEMINI.md.example +0 -1
- package/templates/root-consumer/guides/dndev/AGENT_START_HERE.md.example +0 -135
- package/templates/root-consumer/guides/dndev/COMPONENTS_ADV.md.example +0 -276
- package/templates/root-consumer/guides/dndev/COMPONENTS_ATOMIC.md.example +0 -180
- package/templates/root-consumer/guides/dndev/COMPONENTS_CRUD.md.example +0 -234
- package/templates/root-consumer/guides/dndev/COMPONENTS_UI.md.example +0 -136
- package/templates/root-consumer/guides/dndev/COMPONENT_API.md.example +0 -195
- package/templates/root-consumer/guides/dndev/ENV_SETUP.md.example +0 -219
- package/templates/root-consumer/guides/dndev/GOTCHAS.md.example +0 -197
- package/templates/root-consumer/guides/dndev/INDEX.md.example +0 -60
- package/templates/root-consumer/guides/dndev/SETUP_APP_CONFIG.md.example +0 -132
- package/templates/root-consumer/guides/dndev/SETUP_AUTH.md.example +0 -133
- package/templates/root-consumer/guides/dndev/SETUP_BILLING.md.example +0 -114
- package/templates/root-consumer/guides/dndev/SETUP_BLOG.md.example +0 -280
- package/templates/root-consumer/guides/dndev/SETUP_CICD.md.example +0 -115
- package/templates/root-consumer/guides/dndev/SETUP_CRUD.md.example +0 -334
- package/templates/root-consumer/guides/dndev/SETUP_FIREBASE.md.example +0 -231
- package/templates/root-consumer/guides/dndev/SETUP_FUNCTIONS.md.example +0 -9
- package/templates/root-consumer/guides/dndev/SETUP_I18N.md.example +0 -233
- package/templates/root-consumer/guides/dndev/SETUP_LAYOUTS.md.example +0 -158
- package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +0 -54
- package/templates/root-consumer/guides/dndev/SETUP_OAUTH_PROVIDERS.md.example +0 -60
- package/templates/root-consumer/guides/dndev/SETUP_PAGES.md.example +0 -205
- package/templates/root-consumer/guides/dndev/SETUP_PWA.md.example +0 -213
- package/templates/root-consumer/guides/dndev/SETUP_SOC2.md.example +0 -234
- package/templates/root-consumer/guides/dndev/SETUP_STRIPE.md.example +0 -62
- package/templates/root-consumer/guides/dndev/SETUP_SUPABASE.md.example +0 -215
- package/templates/root-consumer/guides/dndev/SETUP_TESTING.md.example +0 -184
- package/templates/root-consumer/guides/dndev/SETUP_THEMES.md.example +0 -111
- package/templates/root-consumer/guides/dndev/SETUP_VERCEL.md.example +0 -260
- package/templates/root-consumer/guides/dndev/USE_ROUTING.md.example +0 -499
- package/templates/root-consumer/guides/dndev/advanced/APP_CHECK.md.example +0 -111
- package/templates/root-consumer/guides/dndev/advanced/COOKIE_REFERENCE.md.example +0 -252
- package/templates/root-consumer/guides/dndev/advanced/EMULATORS.md.example +0 -48
- package/templates/root-consumer/guides/dndev/essences_reference.css.example +0 -288
- package/templates/root-consumer/guides/wai-way/WAI_WAY_CLI.md.example +0 -402
- package/templates/root-consumer/guides/wai-way/agents/architect.md.example +0 -78
- package/templates/root-consumer/guides/wai-way/agents/builder.md.example +0 -97
- package/templates/root-consumer/guides/wai-way/agents/extractor.md.example +0 -363
- package/templates/root-consumer/guides/wai-way/agents/polisher.md.example +0 -133
- package/templates/root-consumer/guides/wai-way/blueprints/0_brainstorm.md.example +0 -315
- package/templates/root-consumer/guides/wai-way/blueprints/1_scaffold.md.example +0 -133
- package/templates/root-consumer/guides/wai-way/blueprints/2_entities.md.example +0 -111
- package/templates/root-consumer/guides/wai-way/blueprints/3_compose.md.example +0 -150
- package/templates/root-consumer/guides/wai-way/blueprints/4_configure.md.example +0 -238
- package/templates/root-consumer/guides/wai-way/context_map.json.example +0 -127
- package/templates/root-consumer/guides/wai-way/entity_patterns.md.example +0 -839
- package/templates/root-consumer/guides/wai-way/hld_template.md.example +0 -138
- package/templates/root-consumer/guides/wai-way/lld_template.md.example +0 -103
- package/templates/root-consumer/guides/wai-way/page_patterns.md.example +0 -722
- package/templates/root-consumer/guides/wai-way/prd_template.md.example +0 -140
- package/templates/root-consumer/guides/wai-way/presets_guide.md.example +0 -217
- package/templates/root-consumer/guides/wai-way/spec_template.md.example +0 -313
|
@@ -4,11 +4,11 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __require = /* @__PURE__ */ ((
|
|
8
|
-
get: (a,
|
|
9
|
-
}) :
|
|
7
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
+
}) : x)(function(x) {
|
|
10
10
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
-
throw Error('Dynamic require of "' +
|
|
11
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
12
|
});
|
|
13
13
|
var __esm = (fn, res) => function __init() {
|
|
14
14
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
@@ -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");
|
|
178
|
-
}
|
|
179
|
-
function P(e2) {
|
|
180
|
-
if (typeof e2 != "string") throw new TypeError(`Expected a \`string\`, got \`${typeof e2}\``);
|
|
181
|
-
return e2.replace(uD, "");
|
|
182
|
-
}
|
|
183
|
-
function L(e2) {
|
|
184
|
-
return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
|
|
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;
|
|
185
513
|
}
|
|
186
|
-
function
|
|
187
|
-
if (typeof
|
|
188
|
-
|
|
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();
|
|
@@ -2549,14 +2833,15 @@ var require_braces = __commonJS({
|
|
|
2549
2833
|
}
|
|
2550
2834
|
});
|
|
2551
2835
|
|
|
2552
|
-
// node_modules/.bun/picomatch@2.3.
|
|
2836
|
+
// node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js
|
|
2553
2837
|
var require_constants2 = __commonJS({
|
|
2554
|
-
"node_modules/.bun/picomatch@2.3.
|
|
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}]`;
|
|
2844
|
+
var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
|
|
2560
2845
|
var DOT_LITERAL = "\\.";
|
|
2561
2846
|
var PLUS_LITERAL = "\\+";
|
|
2562
2847
|
var QMARK_LITERAL = "\\?";
|
|
@@ -2604,6 +2889,7 @@ var require_constants2 = __commonJS({
|
|
|
2604
2889
|
END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
|
|
2605
2890
|
};
|
|
2606
2891
|
var POSIX_REGEX_SOURCE = {
|
|
2892
|
+
__proto__: null,
|
|
2607
2893
|
alnum: "a-zA-Z0-9",
|
|
2608
2894
|
alpha: "a-zA-Z",
|
|
2609
2895
|
ascii: "\\x00-\\x7F",
|
|
@@ -2620,6 +2906,7 @@ var require_constants2 = __commonJS({
|
|
|
2620
2906
|
xdigit: "A-Fa-f0-9"
|
|
2621
2907
|
};
|
|
2622
2908
|
module.exports = {
|
|
2909
|
+
DEFAULT_MAX_EXTGLOB_RECURSION,
|
|
2623
2910
|
MAX_LENGTH: 1024 * 64,
|
|
2624
2911
|
POSIX_REGEX_SOURCE,
|
|
2625
2912
|
// regular expressions
|
|
@@ -2631,6 +2918,7 @@ var require_constants2 = __commonJS({
|
|
|
2631
2918
|
REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
|
|
2632
2919
|
// Replace globs with equivalent patterns to reduce parsing time.
|
|
2633
2920
|
REPLACEMENTS: {
|
|
2921
|
+
__proto__: null,
|
|
2634
2922
|
"***": "*",
|
|
2635
2923
|
"**/**": "**",
|
|
2636
2924
|
"**/**/**": "**"
|
|
@@ -2747,11 +3035,11 @@ var require_constants2 = __commonJS({
|
|
|
2747
3035
|
}
|
|
2748
3036
|
});
|
|
2749
3037
|
|
|
2750
|
-
// node_modules/.bun/picomatch@2.3.
|
|
3038
|
+
// node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js
|
|
2751
3039
|
var require_utils2 = __commonJS({
|
|
2752
|
-
"node_modules/.bun/picomatch@2.3.
|
|
3040
|
+
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js"(exports) {
|
|
2753
3041
|
"use strict";
|
|
2754
|
-
|
|
3042
|
+
init_utils2();
|
|
2755
3043
|
var path = __require("path");
|
|
2756
3044
|
var win32 = process.platform === "win32";
|
|
2757
3045
|
var {
|
|
@@ -2809,11 +3097,11 @@ var require_utils2 = __commonJS({
|
|
|
2809
3097
|
}
|
|
2810
3098
|
});
|
|
2811
3099
|
|
|
2812
|
-
// node_modules/.bun/picomatch@2.3.
|
|
3100
|
+
// node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js
|
|
2813
3101
|
var require_scan = __commonJS({
|
|
2814
|
-
"node_modules/.bun/picomatch@2.3.
|
|
3102
|
+
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js"(exports, module) {
|
|
2815
3103
|
"use strict";
|
|
2816
|
-
|
|
3104
|
+
init_utils2();
|
|
2817
3105
|
var utils = require_utils2();
|
|
2818
3106
|
var {
|
|
2819
3107
|
CHAR_ASTERISK,
|
|
@@ -3140,11 +3428,11 @@ var require_scan = __commonJS({
|
|
|
3140
3428
|
}
|
|
3141
3429
|
});
|
|
3142
3430
|
|
|
3143
|
-
// node_modules/.bun/picomatch@2.3.
|
|
3431
|
+
// node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js
|
|
3144
3432
|
var require_parse2 = __commonJS({
|
|
3145
|
-
"node_modules/.bun/picomatch@2.3.
|
|
3433
|
+
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js"(exports, module) {
|
|
3146
3434
|
"use strict";
|
|
3147
|
-
|
|
3435
|
+
init_utils2();
|
|
3148
3436
|
var constants2 = require_constants2();
|
|
3149
3437
|
var utils = require_utils2();
|
|
3150
3438
|
var {
|
|
@@ -3163,13 +3451,220 @@ var require_parse2 = __commonJS({
|
|
|
3163
3451
|
try {
|
|
3164
3452
|
new RegExp(value);
|
|
3165
3453
|
} catch (ex) {
|
|
3166
|
-
return args.map((
|
|
3454
|
+
return args.map((v) => utils.escapeRegex(v)).join("..");
|
|
3167
3455
|
}
|
|
3168
3456
|
return value;
|
|
3169
3457
|
};
|
|
3170
3458
|
var syntaxError = (type, char) => {
|
|
3171
3459
|
return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
|
|
3172
3460
|
};
|
|
3461
|
+
var splitTopLevel = (input) => {
|
|
3462
|
+
const parts = [];
|
|
3463
|
+
let bracket = 0;
|
|
3464
|
+
let paren = 0;
|
|
3465
|
+
let quote = 0;
|
|
3466
|
+
let value = "";
|
|
3467
|
+
let escaped = false;
|
|
3468
|
+
for (const ch of input) {
|
|
3469
|
+
if (escaped === true) {
|
|
3470
|
+
value += ch;
|
|
3471
|
+
escaped = false;
|
|
3472
|
+
continue;
|
|
3473
|
+
}
|
|
3474
|
+
if (ch === "\\") {
|
|
3475
|
+
value += ch;
|
|
3476
|
+
escaped = true;
|
|
3477
|
+
continue;
|
|
3478
|
+
}
|
|
3479
|
+
if (ch === '"') {
|
|
3480
|
+
quote = quote === 1 ? 0 : 1;
|
|
3481
|
+
value += ch;
|
|
3482
|
+
continue;
|
|
3483
|
+
}
|
|
3484
|
+
if (quote === 0) {
|
|
3485
|
+
if (ch === "[") {
|
|
3486
|
+
bracket++;
|
|
3487
|
+
} else if (ch === "]" && bracket > 0) {
|
|
3488
|
+
bracket--;
|
|
3489
|
+
} else if (bracket === 0) {
|
|
3490
|
+
if (ch === "(") {
|
|
3491
|
+
paren++;
|
|
3492
|
+
} else if (ch === ")" && paren > 0) {
|
|
3493
|
+
paren--;
|
|
3494
|
+
} else if (ch === "|" && paren === 0) {
|
|
3495
|
+
parts.push(value);
|
|
3496
|
+
value = "";
|
|
3497
|
+
continue;
|
|
3498
|
+
}
|
|
3499
|
+
}
|
|
3500
|
+
}
|
|
3501
|
+
value += ch;
|
|
3502
|
+
}
|
|
3503
|
+
parts.push(value);
|
|
3504
|
+
return parts;
|
|
3505
|
+
};
|
|
3506
|
+
var isPlainBranch = (branch) => {
|
|
3507
|
+
let escaped = false;
|
|
3508
|
+
for (const ch of branch) {
|
|
3509
|
+
if (escaped === true) {
|
|
3510
|
+
escaped = false;
|
|
3511
|
+
continue;
|
|
3512
|
+
}
|
|
3513
|
+
if (ch === "\\") {
|
|
3514
|
+
escaped = true;
|
|
3515
|
+
continue;
|
|
3516
|
+
}
|
|
3517
|
+
if (/[?*+@!()[\]{}]/.test(ch)) {
|
|
3518
|
+
return false;
|
|
3519
|
+
}
|
|
3520
|
+
}
|
|
3521
|
+
return true;
|
|
3522
|
+
};
|
|
3523
|
+
var normalizeSimpleBranch = (branch) => {
|
|
3524
|
+
let value = branch.trim();
|
|
3525
|
+
let changed = true;
|
|
3526
|
+
while (changed === true) {
|
|
3527
|
+
changed = false;
|
|
3528
|
+
if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
|
|
3529
|
+
value = value.slice(2, -1);
|
|
3530
|
+
changed = true;
|
|
3531
|
+
}
|
|
3532
|
+
}
|
|
3533
|
+
if (!isPlainBranch(value)) {
|
|
3534
|
+
return;
|
|
3535
|
+
}
|
|
3536
|
+
return value.replace(/\\(.)/g, "$1");
|
|
3537
|
+
};
|
|
3538
|
+
var hasRepeatedCharPrefixOverlap = (branches) => {
|
|
3539
|
+
const values = branches.map(normalizeSimpleBranch).filter(Boolean);
|
|
3540
|
+
for (let i = 0; i < values.length; i++) {
|
|
3541
|
+
for (let j2 = i + 1; j2 < values.length; j2++) {
|
|
3542
|
+
const a = values[i];
|
|
3543
|
+
const b = values[j2];
|
|
3544
|
+
const char = a[0];
|
|
3545
|
+
if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) {
|
|
3546
|
+
continue;
|
|
3547
|
+
}
|
|
3548
|
+
if (a === b || a.startsWith(b) || b.startsWith(a)) {
|
|
3549
|
+
return true;
|
|
3550
|
+
}
|
|
3551
|
+
}
|
|
3552
|
+
}
|
|
3553
|
+
return false;
|
|
3554
|
+
};
|
|
3555
|
+
var parseRepeatedExtglob = (pattern, requireEnd = true) => {
|
|
3556
|
+
if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
|
|
3557
|
+
return;
|
|
3558
|
+
}
|
|
3559
|
+
let bracket = 0;
|
|
3560
|
+
let paren = 0;
|
|
3561
|
+
let quote = 0;
|
|
3562
|
+
let escaped = false;
|
|
3563
|
+
for (let i = 1; i < pattern.length; i++) {
|
|
3564
|
+
const ch = pattern[i];
|
|
3565
|
+
if (escaped === true) {
|
|
3566
|
+
escaped = false;
|
|
3567
|
+
continue;
|
|
3568
|
+
}
|
|
3569
|
+
if (ch === "\\") {
|
|
3570
|
+
escaped = true;
|
|
3571
|
+
continue;
|
|
3572
|
+
}
|
|
3573
|
+
if (ch === '"') {
|
|
3574
|
+
quote = quote === 1 ? 0 : 1;
|
|
3575
|
+
continue;
|
|
3576
|
+
}
|
|
3577
|
+
if (quote === 1) {
|
|
3578
|
+
continue;
|
|
3579
|
+
}
|
|
3580
|
+
if (ch === "[") {
|
|
3581
|
+
bracket++;
|
|
3582
|
+
continue;
|
|
3583
|
+
}
|
|
3584
|
+
if (ch === "]" && bracket > 0) {
|
|
3585
|
+
bracket--;
|
|
3586
|
+
continue;
|
|
3587
|
+
}
|
|
3588
|
+
if (bracket > 0) {
|
|
3589
|
+
continue;
|
|
3590
|
+
}
|
|
3591
|
+
if (ch === "(") {
|
|
3592
|
+
paren++;
|
|
3593
|
+
continue;
|
|
3594
|
+
}
|
|
3595
|
+
if (ch === ")") {
|
|
3596
|
+
paren--;
|
|
3597
|
+
if (paren === 0) {
|
|
3598
|
+
if (requireEnd === true && i !== pattern.length - 1) {
|
|
3599
|
+
return;
|
|
3600
|
+
}
|
|
3601
|
+
return {
|
|
3602
|
+
type: pattern[0],
|
|
3603
|
+
body: pattern.slice(2, i),
|
|
3604
|
+
end: i
|
|
3605
|
+
};
|
|
3606
|
+
}
|
|
3607
|
+
}
|
|
3608
|
+
}
|
|
3609
|
+
};
|
|
3610
|
+
var getStarExtglobSequenceOutput = (pattern) => {
|
|
3611
|
+
let index = 0;
|
|
3612
|
+
const chars = [];
|
|
3613
|
+
while (index < pattern.length) {
|
|
3614
|
+
const match = parseRepeatedExtglob(pattern.slice(index), false);
|
|
3615
|
+
if (!match || match.type !== "*") {
|
|
3616
|
+
return;
|
|
3617
|
+
}
|
|
3618
|
+
const branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
|
|
3619
|
+
if (branches.length !== 1) {
|
|
3620
|
+
return;
|
|
3621
|
+
}
|
|
3622
|
+
const branch = normalizeSimpleBranch(branches[0]);
|
|
3623
|
+
if (!branch || branch.length !== 1) {
|
|
3624
|
+
return;
|
|
3625
|
+
}
|
|
3626
|
+
chars.push(branch);
|
|
3627
|
+
index += match.end + 1;
|
|
3628
|
+
}
|
|
3629
|
+
if (chars.length < 1) {
|
|
3630
|
+
return;
|
|
3631
|
+
}
|
|
3632
|
+
const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
|
|
3633
|
+
return `${source}*`;
|
|
3634
|
+
};
|
|
3635
|
+
var repeatedExtglobRecursion = (pattern) => {
|
|
3636
|
+
let depth = 0;
|
|
3637
|
+
let value = pattern.trim();
|
|
3638
|
+
let match = parseRepeatedExtglob(value);
|
|
3639
|
+
while (match) {
|
|
3640
|
+
depth++;
|
|
3641
|
+
value = match.body.trim();
|
|
3642
|
+
match = parseRepeatedExtglob(value);
|
|
3643
|
+
}
|
|
3644
|
+
return depth;
|
|
3645
|
+
};
|
|
3646
|
+
var analyzeRepeatedExtglob = (body, options) => {
|
|
3647
|
+
if (options.maxExtglobRecursion === false) {
|
|
3648
|
+
return { risky: false };
|
|
3649
|
+
}
|
|
3650
|
+
const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants2.DEFAULT_MAX_EXTGLOB_RECURSION;
|
|
3651
|
+
const branches = splitTopLevel(body).map((branch) => branch.trim());
|
|
3652
|
+
if (branches.length > 1) {
|
|
3653
|
+
if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
|
|
3654
|
+
return { risky: true };
|
|
3655
|
+
}
|
|
3656
|
+
}
|
|
3657
|
+
for (const branch of branches) {
|
|
3658
|
+
const safeOutput = getStarExtglobSequenceOutput(branch);
|
|
3659
|
+
if (safeOutput) {
|
|
3660
|
+
return { risky: true, safeOutput };
|
|
3661
|
+
}
|
|
3662
|
+
if (repeatedExtglobRecursion(branch) > max) {
|
|
3663
|
+
return { risky: true };
|
|
3664
|
+
}
|
|
3665
|
+
}
|
|
3666
|
+
return { risky: false };
|
|
3667
|
+
};
|
|
3173
3668
|
var parse2 = (input, options) => {
|
|
3174
3669
|
if (typeof input !== "string") {
|
|
3175
3670
|
throw new TypeError("Expected a string");
|
|
@@ -3301,6 +3796,8 @@ var require_parse2 = __commonJS({
|
|
|
3301
3796
|
token.prev = prev;
|
|
3302
3797
|
token.parens = state.parens;
|
|
3303
3798
|
token.output = state.output;
|
|
3799
|
+
token.startIndex = state.index;
|
|
3800
|
+
token.tokensIndex = tokens.length;
|
|
3304
3801
|
const output = (opts.capture ? "(" : "") + token.open;
|
|
3305
3802
|
increment("parens");
|
|
3306
3803
|
push({ type, value: value2, output: state.output ? "" : ONE_CHAR });
|
|
@@ -3308,6 +3805,26 @@ var require_parse2 = __commonJS({
|
|
|
3308
3805
|
extglobs.push(token);
|
|
3309
3806
|
};
|
|
3310
3807
|
const extglobClose = (token) => {
|
|
3808
|
+
const literal = input.slice(token.startIndex, state.index + 1);
|
|
3809
|
+
const body = input.slice(token.startIndex + 2, state.index);
|
|
3810
|
+
const analysis = analyzeRepeatedExtglob(body, opts);
|
|
3811
|
+
if ((token.type === "plus" || token.type === "star") && analysis.risky) {
|
|
3812
|
+
const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
|
|
3813
|
+
const open = tokens[token.tokensIndex];
|
|
3814
|
+
open.type = "text";
|
|
3815
|
+
open.value = literal;
|
|
3816
|
+
open.output = safeOutput || utils.escapeRegex(literal);
|
|
3817
|
+
for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
|
|
3818
|
+
tokens[i].value = "";
|
|
3819
|
+
tokens[i].output = "";
|
|
3820
|
+
delete tokens[i].suffix;
|
|
3821
|
+
}
|
|
3822
|
+
state.output = token.output + open.output;
|
|
3823
|
+
state.backtrack = true;
|
|
3824
|
+
push({ type: "paren", extglob: true, value, output: "" });
|
|
3825
|
+
decrement("parens");
|
|
3826
|
+
return;
|
|
3827
|
+
}
|
|
3311
3828
|
let output = token.close + (opts.capture ? ")" : "");
|
|
3312
3829
|
let rest;
|
|
3313
3830
|
if (token.type === "negate") {
|
|
@@ -3331,10 +3848,10 @@ var require_parse2 = __commonJS({
|
|
|
3331
3848
|
};
|
|
3332
3849
|
if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) {
|
|
3333
3850
|
let backslashes = false;
|
|
3334
|
-
let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (
|
|
3851
|
+
let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => {
|
|
3335
3852
|
if (first === "\\") {
|
|
3336
3853
|
backslashes = true;
|
|
3337
|
-
return
|
|
3854
|
+
return m;
|
|
3338
3855
|
}
|
|
3339
3856
|
if (first === "?") {
|
|
3340
3857
|
if (esc) {
|
|
@@ -3354,14 +3871,14 @@ var require_parse2 = __commonJS({
|
|
|
3354
3871
|
}
|
|
3355
3872
|
return star;
|
|
3356
3873
|
}
|
|
3357
|
-
return esc ?
|
|
3874
|
+
return esc ? m : `\\${m}`;
|
|
3358
3875
|
});
|
|
3359
3876
|
if (backslashes === true) {
|
|
3360
3877
|
if (opts.unescape === true) {
|
|
3361
3878
|
output = output.replace(/\\/g, "");
|
|
3362
3879
|
} else {
|
|
3363
|
-
output = output.replace(/\\+/g, (
|
|
3364
|
-
return
|
|
3880
|
+
output = output.replace(/\\+/g, (m) => {
|
|
3881
|
+
return m.length % 2 === 0 ? "\\\\" : m ? "\\" : "";
|
|
3365
3882
|
});
|
|
3366
3883
|
}
|
|
3367
3884
|
}
|
|
@@ -3561,8 +4078,8 @@ var require_parse2 = __commonJS({
|
|
|
3561
4078
|
brace.value = brace.output = "\\{";
|
|
3562
4079
|
value = output = "\\}";
|
|
3563
4080
|
state.output = out;
|
|
3564
|
-
for (const
|
|
3565
|
-
state.output +=
|
|
4081
|
+
for (const t2 of toks) {
|
|
4082
|
+
state.output += t2.output || t2.value;
|
|
3566
4083
|
}
|
|
3567
4084
|
}
|
|
3568
4085
|
push({ type: "brace", value, output });
|
|
@@ -3914,11 +4431,11 @@ var require_parse2 = __commonJS({
|
|
|
3914
4431
|
}
|
|
3915
4432
|
});
|
|
3916
4433
|
|
|
3917
|
-
// node_modules/.bun/picomatch@2.3.
|
|
4434
|
+
// node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js
|
|
3918
4435
|
var require_picomatch = __commonJS({
|
|
3919
|
-
"node_modules/.bun/picomatch@2.3.
|
|
4436
|
+
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js"(exports, module) {
|
|
3920
4437
|
"use strict";
|
|
3921
|
-
|
|
4438
|
+
init_utils2();
|
|
3922
4439
|
var path = __require("path");
|
|
3923
4440
|
var scan = require_scan();
|
|
3924
4441
|
var parse2 = require_parse2();
|
|
@@ -4056,11 +4573,11 @@ var require_picomatch = __commonJS({
|
|
|
4056
4573
|
}
|
|
4057
4574
|
});
|
|
4058
4575
|
|
|
4059
|
-
// node_modules/.bun/picomatch@2.3.
|
|
4576
|
+
// node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js
|
|
4060
4577
|
var require_picomatch2 = __commonJS({
|
|
4061
|
-
"node_modules/.bun/picomatch@2.3.
|
|
4578
|
+
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js"(exports, module) {
|
|
4062
4579
|
"use strict";
|
|
4063
|
-
|
|
4580
|
+
init_utils2();
|
|
4064
4581
|
module.exports = require_picomatch();
|
|
4065
4582
|
}
|
|
4066
4583
|
});
|
|
@@ -4069,15 +4586,15 @@ var require_picomatch2 = __commonJS({
|
|
|
4069
4586
|
var require_micromatch = __commonJS({
|
|
4070
4587
|
"node_modules/.bun/micromatch@4.0.8/node_modules/micromatch/index.js"(exports, module) {
|
|
4071
4588
|
"use strict";
|
|
4072
|
-
|
|
4589
|
+
init_utils2();
|
|
4073
4590
|
var util = __require("util");
|
|
4074
4591
|
var braces = require_braces();
|
|
4075
4592
|
var picomatch = require_picomatch2();
|
|
4076
4593
|
var utils = require_utils2();
|
|
4077
|
-
var isEmptyString = (
|
|
4078
|
-
var hasBraces = (
|
|
4079
|
-
const index =
|
|
4080
|
-
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;
|
|
4081
4598
|
};
|
|
4082
4599
|
var micromatch = (list, patterns, options) => {
|
|
4083
4600
|
patterns = [].concat(patterns);
|
|
@@ -4197,7 +4714,7 @@ var require_micromatch = __commonJS({
|
|
|
4197
4714
|
let regex = picomatch.makeRe(String(glob2), { ...options, capture: true });
|
|
4198
4715
|
let match = regex.exec(posix ? utils.toPosixSlashes(input) : input);
|
|
4199
4716
|
if (match) {
|
|
4200
|
-
return match.slice(1).map((
|
|
4717
|
+
return match.slice(1).map((v) => v === void 0 ? "" : v);
|
|
4201
4718
|
}
|
|
4202
4719
|
};
|
|
4203
4720
|
micromatch.makeRe = (...args) => picomatch.makeRe(...args);
|
|
@@ -4231,7 +4748,7 @@ var require_micromatch = __commonJS({
|
|
|
4231
4748
|
var require_pattern = __commonJS({
|
|
4232
4749
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js"(exports) {
|
|
4233
4750
|
"use strict";
|
|
4234
|
-
|
|
4751
|
+
init_utils2();
|
|
4235
4752
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4236
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;
|
|
4237
4754
|
var path = __require("path");
|
|
@@ -4341,7 +4858,7 @@ var require_pattern = __commonJS({
|
|
|
4341
4858
|
exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
|
|
4342
4859
|
function expandBraceExpansion(pattern) {
|
|
4343
4860
|
const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true });
|
|
4344
|
-
patterns.sort((a,
|
|
4861
|
+
patterns.sort((a, b) => a.length - b.length);
|
|
4345
4862
|
return patterns.filter((pattern2) => pattern2 !== "");
|
|
4346
4863
|
}
|
|
4347
4864
|
exports.expandBraceExpansion = expandBraceExpansion;
|
|
@@ -4397,7 +4914,7 @@ var require_pattern = __commonJS({
|
|
|
4397
4914
|
var require_merge2 = __commonJS({
|
|
4398
4915
|
"node_modules/.bun/merge2@1.4.1/node_modules/merge2/index.js"(exports, module) {
|
|
4399
4916
|
"use strict";
|
|
4400
|
-
|
|
4917
|
+
init_utils2();
|
|
4401
4918
|
var Stream = __require("stream");
|
|
4402
4919
|
var PassThrough = Stream.PassThrough;
|
|
4403
4920
|
var slice = Array.prototype.slice;
|
|
@@ -4517,7 +5034,7 @@ var require_merge2 = __commonJS({
|
|
|
4517
5034
|
var require_stream = __commonJS({
|
|
4518
5035
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js"(exports) {
|
|
4519
5036
|
"use strict";
|
|
4520
|
-
|
|
5037
|
+
init_utils2();
|
|
4521
5038
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4522
5039
|
exports.merge = void 0;
|
|
4523
5040
|
var merge2 = require_merge2();
|
|
@@ -4541,7 +5058,7 @@ var require_stream = __commonJS({
|
|
|
4541
5058
|
var require_string = __commonJS({
|
|
4542
5059
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js"(exports) {
|
|
4543
5060
|
"use strict";
|
|
4544
|
-
|
|
5061
|
+
init_utils2();
|
|
4545
5062
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4546
5063
|
exports.isEmpty = exports.isString = void 0;
|
|
4547
5064
|
function isString(input) {
|
|
@@ -4559,7 +5076,7 @@ var require_string = __commonJS({
|
|
|
4559
5076
|
var require_utils3 = __commonJS({
|
|
4560
5077
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js"(exports) {
|
|
4561
5078
|
"use strict";
|
|
4562
|
-
|
|
5079
|
+
init_utils2();
|
|
4563
5080
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4564
5081
|
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
|
|
4565
5082
|
var array = require_array();
|
|
@@ -4583,7 +5100,7 @@ var require_utils3 = __commonJS({
|
|
|
4583
5100
|
var require_tasks = __commonJS({
|
|
4584
5101
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js"(exports) {
|
|
4585
5102
|
"use strict";
|
|
4586
|
-
|
|
5103
|
+
init_utils2();
|
|
4587
5104
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4588
5105
|
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
|
|
4589
5106
|
var utils = require_utils3();
|
|
@@ -4680,7 +5197,7 @@ var require_tasks = __commonJS({
|
|
|
4680
5197
|
var require_async = __commonJS({
|
|
4681
5198
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) {
|
|
4682
5199
|
"use strict";
|
|
4683
|
-
|
|
5200
|
+
init_utils2();
|
|
4684
5201
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4685
5202
|
exports.read = void 0;
|
|
4686
5203
|
function read2(path, settings, callback) {
|
|
@@ -4723,7 +5240,7 @@ var require_async = __commonJS({
|
|
|
4723
5240
|
var require_sync = __commonJS({
|
|
4724
5241
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) {
|
|
4725
5242
|
"use strict";
|
|
4726
|
-
|
|
5243
|
+
init_utils2();
|
|
4727
5244
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4728
5245
|
exports.read = void 0;
|
|
4729
5246
|
function read2(path, settings) {
|
|
@@ -4752,7 +5269,7 @@ var require_sync = __commonJS({
|
|
|
4752
5269
|
var require_fs2 = __commonJS({
|
|
4753
5270
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) {
|
|
4754
5271
|
"use strict";
|
|
4755
|
-
|
|
5272
|
+
init_utils2();
|
|
4756
5273
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4757
5274
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
4758
5275
|
var fs2 = __require("fs");
|
|
@@ -4776,7 +5293,7 @@ var require_fs2 = __commonJS({
|
|
|
4776
5293
|
var require_settings = __commonJS({
|
|
4777
5294
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js"(exports) {
|
|
4778
5295
|
"use strict";
|
|
4779
|
-
|
|
5296
|
+
init_utils2();
|
|
4780
5297
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4781
5298
|
var fs2 = require_fs2();
|
|
4782
5299
|
var Settings = class {
|
|
@@ -4799,7 +5316,7 @@ var require_settings = __commonJS({
|
|
|
4799
5316
|
var require_out = __commonJS({
|
|
4800
5317
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js"(exports) {
|
|
4801
5318
|
"use strict";
|
|
4802
|
-
|
|
5319
|
+
init_utils2();
|
|
4803
5320
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4804
5321
|
exports.statSync = exports.stat = exports.Settings = void 0;
|
|
4805
5322
|
var async = require_async();
|
|
@@ -4831,7 +5348,7 @@ var require_out = __commonJS({
|
|
|
4831
5348
|
// node_modules/.bun/queue-microtask@1.2.3/node_modules/queue-microtask/index.js
|
|
4832
5349
|
var require_queue_microtask = __commonJS({
|
|
4833
5350
|
"node_modules/.bun/queue-microtask@1.2.3/node_modules/queue-microtask/index.js"(exports, module) {
|
|
4834
|
-
|
|
5351
|
+
init_utils2();
|
|
4835
5352
|
var promise;
|
|
4836
5353
|
module.exports = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : global) : (cb) => (promise || (promise = Promise.resolve())).then(cb).catch((err) => setTimeout(() => {
|
|
4837
5354
|
throw err;
|
|
@@ -4842,7 +5359,7 @@ var require_queue_microtask = __commonJS({
|
|
|
4842
5359
|
// node_modules/.bun/run-parallel@1.2.0/node_modules/run-parallel/index.js
|
|
4843
5360
|
var require_run_parallel = __commonJS({
|
|
4844
5361
|
"node_modules/.bun/run-parallel@1.2.0/node_modules/run-parallel/index.js"(exports, module) {
|
|
4845
|
-
|
|
5362
|
+
init_utils2();
|
|
4846
5363
|
module.exports = runParallel;
|
|
4847
5364
|
var queueMicrotask2 = require_queue_microtask();
|
|
4848
5365
|
function runParallel(tasks, cb) {
|
|
@@ -4894,7 +5411,7 @@ var require_run_parallel = __commonJS({
|
|
|
4894
5411
|
var require_constants3 = __commonJS({
|
|
4895
5412
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js"(exports) {
|
|
4896
5413
|
"use strict";
|
|
4897
|
-
|
|
5414
|
+
init_utils2();
|
|
4898
5415
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4899
5416
|
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
|
|
4900
5417
|
var NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
|
|
@@ -4915,7 +5432,7 @@ var require_constants3 = __commonJS({
|
|
|
4915
5432
|
var require_fs3 = __commonJS({
|
|
4916
5433
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js"(exports) {
|
|
4917
5434
|
"use strict";
|
|
4918
|
-
|
|
5435
|
+
init_utils2();
|
|
4919
5436
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4920
5437
|
exports.createDirentFromStats = void 0;
|
|
4921
5438
|
var DirentFromStats = class {
|
|
@@ -4941,7 +5458,7 @@ var require_fs3 = __commonJS({
|
|
|
4941
5458
|
var require_utils4 = __commonJS({
|
|
4942
5459
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
|
|
4943
5460
|
"use strict";
|
|
4944
|
-
|
|
5461
|
+
init_utils2();
|
|
4945
5462
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4946
5463
|
exports.fs = void 0;
|
|
4947
5464
|
var fs2 = require_fs3();
|
|
@@ -4953,14 +5470,14 @@ var require_utils4 = __commonJS({
|
|
|
4953
5470
|
var require_common = __commonJS({
|
|
4954
5471
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js"(exports) {
|
|
4955
5472
|
"use strict";
|
|
4956
|
-
|
|
5473
|
+
init_utils2();
|
|
4957
5474
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4958
5475
|
exports.joinPathSegments = void 0;
|
|
4959
|
-
function joinPathSegments(a,
|
|
5476
|
+
function joinPathSegments(a, b, separator) {
|
|
4960
5477
|
if (a.endsWith(separator)) {
|
|
4961
|
-
return a +
|
|
5478
|
+
return a + b;
|
|
4962
5479
|
}
|
|
4963
|
-
return a + separator +
|
|
5480
|
+
return a + separator + b;
|
|
4964
5481
|
}
|
|
4965
5482
|
exports.joinPathSegments = joinPathSegments;
|
|
4966
5483
|
}
|
|
@@ -4970,7 +5487,7 @@ var require_common = __commonJS({
|
|
|
4970
5487
|
var require_async2 = __commonJS({
|
|
4971
5488
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js"(exports) {
|
|
4972
5489
|
"use strict";
|
|
4973
|
-
|
|
5490
|
+
init_utils2();
|
|
4974
5491
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4975
5492
|
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
4976
5493
|
var fsStat = require_out();
|
|
@@ -5081,7 +5598,7 @@ var require_async2 = __commonJS({
|
|
|
5081
5598
|
var require_sync2 = __commonJS({
|
|
5082
5599
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js"(exports) {
|
|
5083
5600
|
"use strict";
|
|
5084
|
-
|
|
5601
|
+
init_utils2();
|
|
5085
5602
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5086
5603
|
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
5087
5604
|
var fsStat = require_out();
|
|
@@ -5141,7 +5658,7 @@ var require_sync2 = __commonJS({
|
|
|
5141
5658
|
var require_fs4 = __commonJS({
|
|
5142
5659
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) {
|
|
5143
5660
|
"use strict";
|
|
5144
|
-
|
|
5661
|
+
init_utils2();
|
|
5145
5662
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5146
5663
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
5147
5664
|
var fs2 = __require("fs");
|
|
@@ -5167,7 +5684,7 @@ var require_fs4 = __commonJS({
|
|
|
5167
5684
|
var require_settings2 = __commonJS({
|
|
5168
5685
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
|
|
5169
5686
|
"use strict";
|
|
5170
|
-
|
|
5687
|
+
init_utils2();
|
|
5171
5688
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5172
5689
|
var path = __require("path");
|
|
5173
5690
|
var fsStat = require_out();
|
|
@@ -5198,7 +5715,7 @@ var require_settings2 = __commonJS({
|
|
|
5198
5715
|
var require_out2 = __commonJS({
|
|
5199
5716
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js"(exports) {
|
|
5200
5717
|
"use strict";
|
|
5201
|
-
|
|
5718
|
+
init_utils2();
|
|
5202
5719
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5203
5720
|
exports.Settings = exports.scandirSync = exports.scandir = void 0;
|
|
5204
5721
|
var async = require_async2();
|
|
@@ -5231,7 +5748,7 @@ var require_out2 = __commonJS({
|
|
|
5231
5748
|
var require_reusify = __commonJS({
|
|
5232
5749
|
"node_modules/.bun/reusify@1.1.0/node_modules/reusify/reusify.js"(exports, module) {
|
|
5233
5750
|
"use strict";
|
|
5234
|
-
|
|
5751
|
+
init_utils2();
|
|
5235
5752
|
function reusify(Constructor) {
|
|
5236
5753
|
var head = new Constructor();
|
|
5237
5754
|
var tail = head;
|
|
@@ -5263,7 +5780,7 @@ var require_reusify = __commonJS({
|
|
|
5263
5780
|
var require_queue = __commonJS({
|
|
5264
5781
|
"node_modules/.bun/fastq@1.20.1/node_modules/fastq/queue.js"(exports, module) {
|
|
5265
5782
|
"use strict";
|
|
5266
|
-
|
|
5783
|
+
init_utils2();
|
|
5267
5784
|
var reusify = require_reusify();
|
|
5268
5785
|
function fastqueue(context, worker, _concurrency) {
|
|
5269
5786
|
if (typeof context === "function") {
|
|
@@ -5548,7 +6065,7 @@ var require_queue = __commonJS({
|
|
|
5548
6065
|
var require_common2 = __commonJS({
|
|
5549
6066
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js"(exports) {
|
|
5550
6067
|
"use strict";
|
|
5551
|
-
|
|
6068
|
+
init_utils2();
|
|
5552
6069
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5553
6070
|
exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
|
|
5554
6071
|
function isFatalError(settings, error2) {
|
|
@@ -5566,14 +6083,14 @@ var require_common2 = __commonJS({
|
|
|
5566
6083
|
return filepath.split(/[/\\]/).join(separator);
|
|
5567
6084
|
}
|
|
5568
6085
|
exports.replacePathSegmentSeparator = replacePathSegmentSeparator;
|
|
5569
|
-
function joinPathSegments(a,
|
|
6086
|
+
function joinPathSegments(a, b, separator) {
|
|
5570
6087
|
if (a === "") {
|
|
5571
|
-
return
|
|
6088
|
+
return b;
|
|
5572
6089
|
}
|
|
5573
6090
|
if (a.endsWith(separator)) {
|
|
5574
|
-
return a +
|
|
6091
|
+
return a + b;
|
|
5575
6092
|
}
|
|
5576
|
-
return a + separator +
|
|
6093
|
+
return a + separator + b;
|
|
5577
6094
|
}
|
|
5578
6095
|
exports.joinPathSegments = joinPathSegments;
|
|
5579
6096
|
}
|
|
@@ -5583,7 +6100,7 @@ var require_common2 = __commonJS({
|
|
|
5583
6100
|
var require_reader = __commonJS({
|
|
5584
6101
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.js"(exports) {
|
|
5585
6102
|
"use strict";
|
|
5586
|
-
|
|
6103
|
+
init_utils2();
|
|
5587
6104
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5588
6105
|
var common = require_common2();
|
|
5589
6106
|
var Reader = class {
|
|
@@ -5601,7 +6118,7 @@ var require_reader = __commonJS({
|
|
|
5601
6118
|
var require_async3 = __commonJS({
|
|
5602
6119
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.js"(exports) {
|
|
5603
6120
|
"use strict";
|
|
5604
|
-
|
|
6121
|
+
init_utils2();
|
|
5605
6122
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5606
6123
|
var events_1 = __require("events");
|
|
5607
6124
|
var fsScandir = require_out2();
|
|
@@ -5705,7 +6222,7 @@ var require_async3 = __commonJS({
|
|
|
5705
6222
|
var require_async4 = __commonJS({
|
|
5706
6223
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.js"(exports) {
|
|
5707
6224
|
"use strict";
|
|
5708
|
-
|
|
6225
|
+
init_utils2();
|
|
5709
6226
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5710
6227
|
var async_1 = require_async3();
|
|
5711
6228
|
var AsyncProvider = class {
|
|
@@ -5742,7 +6259,7 @@ var require_async4 = __commonJS({
|
|
|
5742
6259
|
var require_stream2 = __commonJS({
|
|
5743
6260
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.js"(exports) {
|
|
5744
6261
|
"use strict";
|
|
5745
|
-
|
|
6262
|
+
init_utils2();
|
|
5746
6263
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5747
6264
|
var stream_1 = __require("stream");
|
|
5748
6265
|
var async_1 = require_async3();
|
|
@@ -5784,7 +6301,7 @@ var require_stream2 = __commonJS({
|
|
|
5784
6301
|
var require_sync3 = __commonJS({
|
|
5785
6302
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.js"(exports) {
|
|
5786
6303
|
"use strict";
|
|
5787
|
-
|
|
6304
|
+
init_utils2();
|
|
5788
6305
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5789
6306
|
var fsScandir = require_out2();
|
|
5790
6307
|
var common = require_common2();
|
|
@@ -5849,7 +6366,7 @@ var require_sync3 = __commonJS({
|
|
|
5849
6366
|
var require_sync4 = __commonJS({
|
|
5850
6367
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.js"(exports) {
|
|
5851
6368
|
"use strict";
|
|
5852
|
-
|
|
6369
|
+
init_utils2();
|
|
5853
6370
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5854
6371
|
var sync_1 = require_sync3();
|
|
5855
6372
|
var SyncProvider = class {
|
|
@@ -5870,7 +6387,7 @@ var require_sync4 = __commonJS({
|
|
|
5870
6387
|
var require_settings3 = __commonJS({
|
|
5871
6388
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
|
|
5872
6389
|
"use strict";
|
|
5873
|
-
|
|
6390
|
+
init_utils2();
|
|
5874
6391
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5875
6392
|
var path = __require("path");
|
|
5876
6393
|
var fsScandir = require_out2();
|
|
@@ -5903,7 +6420,7 @@ var require_settings3 = __commonJS({
|
|
|
5903
6420
|
var require_out3 = __commonJS({
|
|
5904
6421
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js"(exports) {
|
|
5905
6422
|
"use strict";
|
|
5906
|
-
|
|
6423
|
+
init_utils2();
|
|
5907
6424
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5908
6425
|
exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
|
|
5909
6426
|
var async_1 = require_async4();
|
|
@@ -5944,7 +6461,7 @@ var require_out3 = __commonJS({
|
|
|
5944
6461
|
var require_reader2 = __commonJS({
|
|
5945
6462
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js"(exports) {
|
|
5946
6463
|
"use strict";
|
|
5947
|
-
|
|
6464
|
+
init_utils2();
|
|
5948
6465
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5949
6466
|
var path = __require("path");
|
|
5950
6467
|
var fsStat = require_out();
|
|
@@ -5984,7 +6501,7 @@ var require_reader2 = __commonJS({
|
|
|
5984
6501
|
var require_stream3 = __commonJS({
|
|
5985
6502
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js"(exports) {
|
|
5986
6503
|
"use strict";
|
|
5987
|
-
|
|
6504
|
+
init_utils2();
|
|
5988
6505
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5989
6506
|
var stream_1 = __require("stream");
|
|
5990
6507
|
var fsStat = require_out();
|
|
@@ -6042,7 +6559,7 @@ var require_stream3 = __commonJS({
|
|
|
6042
6559
|
var require_async5 = __commonJS({
|
|
6043
6560
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js"(exports) {
|
|
6044
6561
|
"use strict";
|
|
6045
|
-
|
|
6562
|
+
init_utils2();
|
|
6046
6563
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6047
6564
|
var fsWalk = require_out3();
|
|
6048
6565
|
var reader_1 = require_reader2();
|
|
@@ -6082,7 +6599,7 @@ var require_async5 = __commonJS({
|
|
|
6082
6599
|
var require_matcher = __commonJS({
|
|
6083
6600
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) {
|
|
6084
6601
|
"use strict";
|
|
6085
|
-
|
|
6602
|
+
init_utils2();
|
|
6086
6603
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6087
6604
|
var utils = require_utils3();
|
|
6088
6605
|
var Matcher = class {
|
|
@@ -6134,7 +6651,7 @@ var require_matcher = __commonJS({
|
|
|
6134
6651
|
var require_partial = __commonJS({
|
|
6135
6652
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js"(exports) {
|
|
6136
6653
|
"use strict";
|
|
6137
|
-
|
|
6654
|
+
init_utils2();
|
|
6138
6655
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6139
6656
|
var matcher_1 = require_matcher();
|
|
6140
6657
|
var PartialMatcher = class extends matcher_1.default {
|
|
@@ -6172,7 +6689,7 @@ var require_partial = __commonJS({
|
|
|
6172
6689
|
var require_deep = __commonJS({
|
|
6173
6690
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js"(exports) {
|
|
6174
6691
|
"use strict";
|
|
6175
|
-
|
|
6692
|
+
init_utils2();
|
|
6176
6693
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6177
6694
|
var utils = require_utils3();
|
|
6178
6695
|
var partial_1 = require_partial();
|
|
@@ -6238,7 +6755,7 @@ var require_deep = __commonJS({
|
|
|
6238
6755
|
var require_entry = __commonJS({
|
|
6239
6756
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js"(exports) {
|
|
6240
6757
|
"use strict";
|
|
6241
|
-
|
|
6758
|
+
init_utils2();
|
|
6242
6759
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6243
6760
|
var utils = require_utils3();
|
|
6244
6761
|
var EntryFilter = class {
|
|
@@ -6327,7 +6844,7 @@ var require_entry = __commonJS({
|
|
|
6327
6844
|
var require_error = __commonJS({
|
|
6328
6845
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js"(exports) {
|
|
6329
6846
|
"use strict";
|
|
6330
|
-
|
|
6847
|
+
init_utils2();
|
|
6331
6848
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6332
6849
|
var utils = require_utils3();
|
|
6333
6850
|
var ErrorFilter = class {
|
|
@@ -6349,7 +6866,7 @@ var require_error = __commonJS({
|
|
|
6349
6866
|
var require_entry2 = __commonJS({
|
|
6350
6867
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js"(exports) {
|
|
6351
6868
|
"use strict";
|
|
6352
|
-
|
|
6869
|
+
init_utils2();
|
|
6353
6870
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6354
6871
|
var utils = require_utils3();
|
|
6355
6872
|
var EntryTransformer = class {
|
|
@@ -6382,7 +6899,7 @@ var require_entry2 = __commonJS({
|
|
|
6382
6899
|
var require_provider = __commonJS({
|
|
6383
6900
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js"(exports) {
|
|
6384
6901
|
"use strict";
|
|
6385
|
-
|
|
6902
|
+
init_utils2();
|
|
6386
6903
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6387
6904
|
var path = __require("path");
|
|
6388
6905
|
var deep_1 = require_deep();
|
|
@@ -6437,7 +6954,7 @@ var require_provider = __commonJS({
|
|
|
6437
6954
|
var require_async6 = __commonJS({
|
|
6438
6955
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js"(exports) {
|
|
6439
6956
|
"use strict";
|
|
6440
|
-
|
|
6957
|
+
init_utils2();
|
|
6441
6958
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6442
6959
|
var async_1 = require_async5();
|
|
6443
6960
|
var provider_1 = require_provider();
|
|
@@ -6467,7 +6984,7 @@ var require_async6 = __commonJS({
|
|
|
6467
6984
|
var require_stream4 = __commonJS({
|
|
6468
6985
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js"(exports) {
|
|
6469
6986
|
"use strict";
|
|
6470
|
-
|
|
6987
|
+
init_utils2();
|
|
6471
6988
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6472
6989
|
var stream_1 = __require("stream");
|
|
6473
6990
|
var stream_2 = require_stream3();
|
|
@@ -6502,7 +7019,7 @@ var require_stream4 = __commonJS({
|
|
|
6502
7019
|
var require_sync5 = __commonJS({
|
|
6503
7020
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js"(exports) {
|
|
6504
7021
|
"use strict";
|
|
6505
|
-
|
|
7022
|
+
init_utils2();
|
|
6506
7023
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6507
7024
|
var fsStat = require_out();
|
|
6508
7025
|
var fsWalk = require_out3();
|
|
@@ -6551,7 +7068,7 @@ var require_sync5 = __commonJS({
|
|
|
6551
7068
|
var require_sync6 = __commonJS({
|
|
6552
7069
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js"(exports) {
|
|
6553
7070
|
"use strict";
|
|
6554
|
-
|
|
7071
|
+
init_utils2();
|
|
6555
7072
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6556
7073
|
var sync_1 = require_sync5();
|
|
6557
7074
|
var provider_1 = require_provider();
|
|
@@ -6581,7 +7098,7 @@ var require_sync6 = __commonJS({
|
|
|
6581
7098
|
var require_settings4 = __commonJS({
|
|
6582
7099
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js"(exports) {
|
|
6583
7100
|
"use strict";
|
|
6584
|
-
|
|
7101
|
+
init_utils2();
|
|
6585
7102
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6586
7103
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
6587
7104
|
var fs2 = __require("fs");
|
|
@@ -6642,7 +7159,7 @@ var require_settings4 = __commonJS({
|
|
|
6642
7159
|
var require_out4 = __commonJS({
|
|
6643
7160
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/index.js"(exports, module) {
|
|
6644
7161
|
"use strict";
|
|
6645
|
-
|
|
7162
|
+
init_utils2();
|
|
6646
7163
|
var taskManager = require_tasks();
|
|
6647
7164
|
var async_1 = require_async6();
|
|
6648
7165
|
var stream_1 = require_stream4();
|
|
@@ -6761,7 +7278,7 @@ var I18N_PATHS, SCAN_PATTERNS, GLOB_OPTIONS;
|
|
|
6761
7278
|
var init_constants = __esm({
|
|
6762
7279
|
"packages/core/config/constants.js"() {
|
|
6763
7280
|
"use strict";
|
|
6764
|
-
|
|
7281
|
+
init_utils2();
|
|
6765
7282
|
I18N_PATHS = {
|
|
6766
7283
|
// Monorepo source structure (locales at root, not in src/)
|
|
6767
7284
|
SOURCE_ROOT: "packages/core/i18n",
|
|
@@ -6923,7 +7440,7 @@ var import_fast_glob, constants, log2, PACKAGE_PATHS, PathResolver;
|
|
|
6923
7440
|
var init_PathResolver = __esm({
|
|
6924
7441
|
"packages/core/config/utils/PathResolver.ts"() {
|
|
6925
7442
|
"use strict";
|
|
6926
|
-
|
|
7443
|
+
init_utils2();
|
|
6927
7444
|
import_fast_glob = __toESM(require_out4(), 1);
|
|
6928
7445
|
init_constants();
|
|
6929
7446
|
constants = {
|
|
@@ -8224,7 +8741,7 @@ var pathResolverInstance, getPathResolver, getRepoRoot, getAppRoot, setAppRoot,
|
|
|
8224
8741
|
var init_pathResolver = __esm({
|
|
8225
8742
|
"packages/tooling/src/utils/pathResolver.ts"() {
|
|
8226
8743
|
"use strict";
|
|
8227
|
-
|
|
8744
|
+
init_utils2();
|
|
8228
8745
|
init_PathResolver();
|
|
8229
8746
|
pathResolverInstance = PathResolver.getInstance({ debug: false });
|
|
8230
8747
|
getPathResolver = (options) => PathResolver.getInstance(options);
|
|
@@ -8335,7 +8852,7 @@ function readTsConfigJson(filePath) {
|
|
|
8335
8852
|
var init_typed_file_operations = __esm({
|
|
8336
8853
|
"packages/tooling/src/utils/typed-file-operations.ts"() {
|
|
8337
8854
|
"use strict";
|
|
8338
|
-
|
|
8855
|
+
init_utils2();
|
|
8339
8856
|
init_errors();
|
|
8340
8857
|
init_pathResolver();
|
|
8341
8858
|
}
|
|
@@ -8349,7 +8866,7 @@ import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
|
8349
8866
|
import process from "node:process";
|
|
8350
8867
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
8351
8868
|
var require2, __filename, __dirname;
|
|
8352
|
-
var
|
|
8869
|
+
var init_utils2 = __esm({
|
|
8353
8870
|
"packages/tooling/src/bundler/utils.ts"() {
|
|
8354
8871
|
"use strict";
|
|
8355
8872
|
require2 = createRequire3(import.meta.url);
|
|
@@ -8370,24 +8887,24 @@ var init_utils = __esm({
|
|
|
8370
8887
|
|
|
8371
8888
|
// packages/tooling/src/utils/cli-input.ts
|
|
8372
8889
|
async function askForInput(message, defaultValue = "") {
|
|
8373
|
-
const result = await
|
|
8890
|
+
const result = await Ot({
|
|
8374
8891
|
message,
|
|
8375
8892
|
placeholder: defaultValue || void 0,
|
|
8376
8893
|
defaultValue: defaultValue || void 0
|
|
8377
8894
|
});
|
|
8378
|
-
if (
|
|
8379
|
-
|
|
8895
|
+
if (q(result)) {
|
|
8896
|
+
pt("Operation cancelled.");
|
|
8380
8897
|
process.exit(0);
|
|
8381
8898
|
}
|
|
8382
8899
|
return result;
|
|
8383
8900
|
}
|
|
8384
8901
|
async function askForConfirmation(message, defaultValue = false) {
|
|
8385
|
-
const result = await
|
|
8902
|
+
const result = await ot2({
|
|
8386
8903
|
message,
|
|
8387
8904
|
initialValue: defaultValue
|
|
8388
8905
|
});
|
|
8389
|
-
if (
|
|
8390
|
-
|
|
8906
|
+
if (q(result)) {
|
|
8907
|
+
pt("Operation cancelled.");
|
|
8391
8908
|
process.exit(0);
|
|
8392
8909
|
}
|
|
8393
8910
|
return result;
|
|
@@ -8398,13 +8915,13 @@ async function askForSelection(message, choices, defaultValue = 0) {
|
|
|
8398
8915
|
label: choice.title,
|
|
8399
8916
|
hint: choice.hint
|
|
8400
8917
|
}));
|
|
8401
|
-
const result = await
|
|
8918
|
+
const result = await _t({
|
|
8402
8919
|
message,
|
|
8403
8920
|
options,
|
|
8404
8921
|
initialValue: choices[defaultValue]?.value
|
|
8405
8922
|
});
|
|
8406
|
-
if (
|
|
8407
|
-
|
|
8923
|
+
if (q(result)) {
|
|
8924
|
+
pt("Operation cancelled.");
|
|
8408
8925
|
process.exit(0);
|
|
8409
8926
|
}
|
|
8410
8927
|
return result;
|
|
@@ -8412,22 +8929,22 @@ async function askForSelection(message, choices, defaultValue = 0) {
|
|
|
8412
8929
|
var init_cli_input = __esm({
|
|
8413
8930
|
"packages/tooling/src/utils/cli-input.ts"() {
|
|
8414
8931
|
"use strict";
|
|
8415
|
-
|
|
8416
|
-
|
|
8932
|
+
init_utils2();
|
|
8933
|
+
init_dist4();
|
|
8417
8934
|
}
|
|
8418
8935
|
});
|
|
8419
8936
|
|
|
8420
8937
|
// packages/cli/src/bin/commands/create-project.ts
|
|
8421
|
-
|
|
8938
|
+
init_utils2();
|
|
8422
8939
|
|
|
8423
8940
|
// packages/tooling/src/index.ts
|
|
8424
|
-
|
|
8941
|
+
init_utils2();
|
|
8425
8942
|
|
|
8426
8943
|
// packages/tooling/src/cli/index.ts
|
|
8427
|
-
|
|
8944
|
+
init_utils2();
|
|
8428
8945
|
|
|
8429
8946
|
// packages/tooling/src/utils/create-utils.ts
|
|
8430
|
-
|
|
8947
|
+
init_utils2();
|
|
8431
8948
|
init_cli_output();
|
|
8432
8949
|
init_pathResolver();
|
|
8433
8950
|
init_typed_file_operations();
|
|
@@ -8709,7 +9226,7 @@ async function mergeRootTurboJson(rootDir) {
|
|
|
8709
9226
|
}
|
|
8710
9227
|
|
|
8711
9228
|
// packages/tooling/src/utils/matrix.ts
|
|
8712
|
-
|
|
9229
|
+
init_utils2();
|
|
8713
9230
|
init_pathResolver();
|
|
8714
9231
|
import { createRequire as createRequire4 } from "node:module";
|
|
8715
9232
|
var cachedMatrix = null;
|
|
@@ -8794,7 +9311,7 @@ function resolveGroups(groupNames, matrix) {
|
|
|
8794
9311
|
}
|
|
8795
9312
|
|
|
8796
9313
|
// packages/tooling/src/utils/scaffolding-questionnaire.ts
|
|
8797
|
-
|
|
9314
|
+
init_utils2();
|
|
8798
9315
|
var APP_QUESTIONNAIRE = [
|
|
8799
9316
|
{
|
|
8800
9317
|
id: "framework",
|
|
@@ -8927,7 +9444,7 @@ async function runQuestionnaire(questions, initialAnswers, showWIP, askFor) {
|
|
|
8927
9444
|
}
|
|
8928
9445
|
if (question.choicesFilter) {
|
|
8929
9446
|
const allowed = question.choicesFilter(answers);
|
|
8930
|
-
choices = choices.filter((
|
|
9447
|
+
choices = choices.filter((c2) => allowed.includes(c2.value));
|
|
8931
9448
|
}
|
|
8932
9449
|
if (choices.length === 0) continue;
|
|
8933
9450
|
answer = await askFor.selection(question.question, choices);
|
|
@@ -8946,10 +9463,10 @@ async function runQuestionnaire(questions, initialAnswers, showWIP, askFor) {
|
|
|
8946
9463
|
}
|
|
8947
9464
|
|
|
8948
9465
|
// packages/tooling/src/scaffolding/create-app.ts
|
|
8949
|
-
|
|
9466
|
+
init_utils2();
|
|
8950
9467
|
|
|
8951
9468
|
// packages/tooling/src/scaffolding/scaffold-matrix.ts
|
|
8952
|
-
|
|
9469
|
+
init_utils2();
|
|
8953
9470
|
function resolveDeployConfig(host, backend) {
|
|
8954
9471
|
if (host === "none") return null;
|
|
8955
9472
|
if (host === "firebase") return "firebase";
|
|
@@ -8973,7 +9490,7 @@ init_cli_input();
|
|
|
8973
9490
|
init_cli_output();
|
|
8974
9491
|
|
|
8975
9492
|
// packages/tooling/src/utils/dependency-resolver.ts
|
|
8976
|
-
|
|
9493
|
+
init_utils2();
|
|
8977
9494
|
function applyConditionals(template, options) {
|
|
8978
9495
|
if (!template.conditional) return [];
|
|
8979
9496
|
const groups = [];
|
|
@@ -9166,7 +9683,7 @@ async function createApp(appName, appConfig, workspaceRoot, templatesRoot) {
|
|
|
9166
9683
|
workspaceRoot = workspaceRoot || currentDir;
|
|
9167
9684
|
}
|
|
9168
9685
|
templatesRoot = templatesRoot || getTemplatesRoot();
|
|
9169
|
-
|
|
9686
|
+
mt("\u{1F680} DoNotDev App Creator");
|
|
9170
9687
|
if (!appName) {
|
|
9171
9688
|
appName = await askForInput(
|
|
9172
9689
|
`App name - '${RESERVED_APP_NAMES.join("', '")}' reserved`,
|
|
@@ -9239,7 +9756,7 @@ async function createApp(appName, appConfig, workspaceRoot, templatesRoot) {
|
|
|
9239
9756
|
return;
|
|
9240
9757
|
}
|
|
9241
9758
|
}
|
|
9242
|
-
const s =
|
|
9759
|
+
const s = fe();
|
|
9243
9760
|
s.start(`Creating app: ${appName}`);
|
|
9244
9761
|
await ensureDir(appDir);
|
|
9245
9762
|
const builder = appTemplate;
|
|
@@ -9428,7 +9945,7 @@ async function createApp(appName, appConfig, workspaceRoot, templatesRoot) {
|
|
|
9428
9945
|
});
|
|
9429
9946
|
if (firebaseJson.hosting?.rewrites && Array.isArray(firebaseJson.hosting.rewrites)) {
|
|
9430
9947
|
firebaseJson.hosting.rewrites = firebaseJson.hosting.rewrites.filter(
|
|
9431
|
-
(
|
|
9948
|
+
(r) => r.destination !== "/index.html"
|
|
9432
9949
|
);
|
|
9433
9950
|
}
|
|
9434
9951
|
if (firebaseJson.hosting) {
|
|
@@ -9546,12 +10063,12 @@ async function createApp(appName, appConfig, workspaceRoot, templatesRoot) {
|
|
|
9546
10063
|
await updateRootPackageJson(workspaceRoot, allDirs);
|
|
9547
10064
|
}
|
|
9548
10065
|
if (isInteractive) {
|
|
9549
|
-
|
|
10066
|
+
gt("\u{1F389} App created successfully!");
|
|
9550
10067
|
const firebaseStep = row.functionsTemplate === "functions-firebase" ? `2. Set Firebase project: cd apps/${appName} && firebase use --add (or edit .firebaserc)
|
|
9551
10068
|
3. bun install
|
|
9552
10069
|
4. bun run dev` : `2. bun install
|
|
9553
10070
|
3. bun run dev`;
|
|
9554
|
-
|
|
10071
|
+
wt(
|
|
9555
10072
|
`Next steps:
|
|
9556
10073
|
|
|
9557
10074
|
1. cd apps/${appName}
|
|
@@ -9564,7 +10081,7 @@ Happy coding!`,
|
|
|
9564
10081
|
}
|
|
9565
10082
|
|
|
9566
10083
|
// packages/tooling/src/scaffolding/create-project.ts
|
|
9567
|
-
|
|
10084
|
+
init_utils2();
|
|
9568
10085
|
init_cli_input();
|
|
9569
10086
|
init_cli_output();
|
|
9570
10087
|
init_pathResolver();
|
|
@@ -9626,20 +10143,20 @@ function detectExecutionMode2() {
|
|
|
9626
10143
|
}
|
|
9627
10144
|
async function main(_options, name) {
|
|
9628
10145
|
try {
|
|
9629
|
-
|
|
10146
|
+
mt("\u{1F680} DoNotDev Project Creator");
|
|
9630
10147
|
try {
|
|
9631
10148
|
const { execSync } = await import("node:child_process");
|
|
9632
10149
|
execSync("bun --version", { stdio: "ignore" });
|
|
9633
10150
|
} catch {
|
|
9634
10151
|
log.error("bun is required but not installed.");
|
|
9635
|
-
|
|
10152
|
+
wt(
|
|
9636
10153
|
"Install bun:\n\n curl -fsSL https://bun.sh/install | bash\n\nThen re-run: dndev init",
|
|
9637
10154
|
"Missing dependency"
|
|
9638
10155
|
);
|
|
9639
10156
|
process.exit(1);
|
|
9640
10157
|
}
|
|
9641
10158
|
if (SHOW_WIP2) {
|
|
9642
|
-
|
|
10159
|
+
wt("WIP mode enabled - showing experimental features", "\u{1F527} Debug");
|
|
9643
10160
|
}
|
|
9644
10161
|
const executionMode = detectExecutionMode2();
|
|
9645
10162
|
const monorepoRoot = process.cwd();
|
|
@@ -9669,7 +10186,7 @@ async function main(_options, name) {
|
|
|
9669
10186
|
1
|
|
9670
10187
|
);
|
|
9671
10188
|
if (action === "cancel") {
|
|
9672
|
-
|
|
10189
|
+
gt("Project creation cancelled.");
|
|
9673
10190
|
process.exit(0);
|
|
9674
10191
|
}
|
|
9675
10192
|
if (action === "replace") {
|
|
@@ -9678,17 +10195,17 @@ async function main(_options, name) {
|
|
|
9678
10195
|
false
|
|
9679
10196
|
);
|
|
9680
10197
|
if (!confirmDelete) {
|
|
9681
|
-
|
|
10198
|
+
gt("Project creation cancelled.");
|
|
9682
10199
|
process.exit(0);
|
|
9683
10200
|
}
|
|
9684
|
-
const s2 =
|
|
10201
|
+
const s2 = fe();
|
|
9685
10202
|
s2.start("Removing existing project...");
|
|
9686
10203
|
await remove(projectDirNormalized);
|
|
9687
10204
|
s2.stop("Removed existing project");
|
|
9688
10205
|
}
|
|
9689
10206
|
if (action === "merge") {
|
|
9690
10207
|
log.warn("Root file merging is at your own risk!");
|
|
9691
|
-
|
|
10208
|
+
wt(
|
|
9692
10209
|
"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",
|
|
9693
10210
|
"\u26A0\uFE0F Warning"
|
|
9694
10211
|
);
|
|
@@ -9697,11 +10214,11 @@ async function main(_options, name) {
|
|
|
9697
10214
|
false
|
|
9698
10215
|
);
|
|
9699
10216
|
if (!confirmMerge) {
|
|
9700
|
-
|
|
10217
|
+
gt("Merge cancelled. Root files will not be modified.");
|
|
9701
10218
|
process.exit(0);
|
|
9702
10219
|
}
|
|
9703
10220
|
isMergeMode = true;
|
|
9704
|
-
|
|
10221
|
+
wt("Merge mode: Merging root files, creating new apps", "\u{1F527} Mode");
|
|
9705
10222
|
}
|
|
9706
10223
|
}
|
|
9707
10224
|
let appNames = [];
|
|
@@ -9732,7 +10249,7 @@ async function main(_options, name) {
|
|
|
9732
10249
|
continue;
|
|
9733
10250
|
}
|
|
9734
10251
|
appNames.push(trimmedName);
|
|
9735
|
-
|
|
10252
|
+
wt(`Configuring "${trimmedName}"...`, "\u2699\uFE0F");
|
|
9736
10253
|
const config = await collectAppConfig(trimmedName);
|
|
9737
10254
|
appConfigs[trimmedName] = config;
|
|
9738
10255
|
if (config.backend !== "none" || config.functions !== "none")
|
|
@@ -9749,7 +10266,7 @@ async function main(_options, name) {
|
|
|
9749
10266
|
if (pathExists(appsDir)) {
|
|
9750
10267
|
try {
|
|
9751
10268
|
const entries = readdirSync2(appsDir, { withFileTypes: true }).sort(
|
|
9752
|
-
(a,
|
|
10269
|
+
(a, b) => a.name.localeCompare(b.name)
|
|
9753
10270
|
);
|
|
9754
10271
|
for (const entry of entries) {
|
|
9755
10272
|
if (entry.isDirectory()) {
|
|
@@ -9778,24 +10295,24 @@ async function main(_options, name) {
|
|
|
9778
10295
|
);
|
|
9779
10296
|
if (replaceAction === "replace") {
|
|
9780
10297
|
appsToCreate.push(appName);
|
|
9781
|
-
const s2 =
|
|
10298
|
+
const s2 = fe();
|
|
9782
10299
|
s2.start(`Removing existing app "${appName}"...`);
|
|
9783
10300
|
await remove(appDir);
|
|
9784
10301
|
s2.stop(`Removed existing app "${appName}"`);
|
|
9785
10302
|
} else {
|
|
9786
10303
|
appsToSkip.push(appName);
|
|
9787
|
-
|
|
10304
|
+
wt(`Skipping app "${appName}" (already exists)`, "\u23ED\uFE0F Skip");
|
|
9788
10305
|
}
|
|
9789
10306
|
} else {
|
|
9790
10307
|
appsToCreate.push(appName);
|
|
9791
10308
|
}
|
|
9792
10309
|
}
|
|
9793
10310
|
if (appsToCreate.length === 0) {
|
|
9794
|
-
|
|
10311
|
+
gt("No new apps to create. All requested apps already exist.");
|
|
9795
10312
|
process.exit(0);
|
|
9796
10313
|
}
|
|
9797
10314
|
if (appsToSkip.length > 0) {
|
|
9798
|
-
|
|
10315
|
+
wt(
|
|
9799
10316
|
`Skipped ${appsToSkip.length} app(s): ${appsToSkip.join(", ")}`,
|
|
9800
10317
|
"\u23ED\uFE0F Skipped"
|
|
9801
10318
|
);
|
|
@@ -9822,7 +10339,7 @@ async function main(_options, name) {
|
|
|
9822
10339
|
}
|
|
9823
10340
|
}
|
|
9824
10341
|
const setupGithubActions = true;
|
|
9825
|
-
const s =
|
|
10342
|
+
const s = fe();
|
|
9826
10343
|
if (!isMergeMode) {
|
|
9827
10344
|
s.start("Creating project structure...");
|
|
9828
10345
|
await ensureDir(projectDirNormalized);
|
|
@@ -9858,15 +10375,15 @@ async function main(_options, name) {
|
|
|
9858
10375
|
});
|
|
9859
10376
|
const relativeMonorepoPath = executionMode === "development" ? calculateRelativePath(projectDirNormalized, monorepoRoot) : "";
|
|
9860
10377
|
const primaryPlatform = Object.values(appConfigs).find(
|
|
9861
|
-
(
|
|
10378
|
+
(c2) => c2.backend !== "none"
|
|
9862
10379
|
)?.backend ?? "none";
|
|
9863
10380
|
const hasVercel = Object.values(appConfigs).some(
|
|
9864
|
-
(
|
|
10381
|
+
(c2) => c2.host === "vercel"
|
|
9865
10382
|
);
|
|
9866
10383
|
const hasSupabase = Object.values(appConfigs).some(
|
|
9867
|
-
(
|
|
10384
|
+
(c2) => c2.backend === "supabase"
|
|
9868
10385
|
);
|
|
9869
|
-
const hasBilling = Object.values(appConfigs).some((
|
|
10386
|
+
const hasBilling = Object.values(appConfigs).some((c2) => c2.billing);
|
|
9870
10387
|
const rootPackageJson = generatePackageJson(
|
|
9871
10388
|
"consumer-root",
|
|
9872
10389
|
executionMode,
|
|
@@ -9927,6 +10444,17 @@ async function main(_options, name) {
|
|
|
9927
10444
|
await replacePlaceholders(destPath, rootReplacements);
|
|
9928
10445
|
}
|
|
9929
10446
|
}
|
|
10447
|
+
const hooksDir = joinPath(projectDirNormalized, ".claude", "hooks");
|
|
10448
|
+
if (pathExists(hooksDir)) {
|
|
10449
|
+
const { chmodSync } = await import("node:fs");
|
|
10450
|
+
const hookFiles = await glob("*.sh", {
|
|
10451
|
+
cwd: hooksDir,
|
|
10452
|
+
onlyFiles: true
|
|
10453
|
+
});
|
|
10454
|
+
for (const hook of hookFiles) {
|
|
10455
|
+
chmodSync(joinPath(hooksDir, hook), 493);
|
|
10456
|
+
}
|
|
10457
|
+
}
|
|
9930
10458
|
const dndevSecretsPath = joinPath(projectDirNormalized, ".dndev.secrets");
|
|
9931
10459
|
if (pathExists(dndevSecretsPath)) {
|
|
9932
10460
|
await copy(
|
|
@@ -9979,7 +10507,7 @@ async function main(_options, name) {
|
|
|
9979
10507
|
s.stop("Root files merged");
|
|
9980
10508
|
}
|
|
9981
10509
|
if (installDemoApp) {
|
|
9982
|
-
const sDemo =
|
|
10510
|
+
const sDemo = fe();
|
|
9983
10511
|
sDemo.start("Copying demo app...");
|
|
9984
10512
|
const demoAppDir = joinPath(projectDirNormalized, "apps", "demo");
|
|
9985
10513
|
const demoTemplateDir = joinPath(templatesRoot, "app-demo");
|
|
@@ -10035,7 +10563,7 @@ async function main(_options, name) {
|
|
|
10035
10563
|
}
|
|
10036
10564
|
}
|
|
10037
10565
|
if (installCockpitApp) {
|
|
10038
|
-
const sCockpit =
|
|
10566
|
+
const sCockpit = fe();
|
|
10039
10567
|
sCockpit.start("Copying cockpit app...");
|
|
10040
10568
|
const cockpitAppDir = joinPath(projectDirNormalized, "apps", "dndev");
|
|
10041
10569
|
const cockpitTemplateDir = joinPath(templatesRoot, "app-dndev");
|
|
@@ -10104,15 +10632,15 @@ async function main(_options, name) {
|
|
|
10104
10632
|
isMergeMode ? allAppNames : appNames
|
|
10105
10633
|
);
|
|
10106
10634
|
s.stop("Root package.json updated");
|
|
10107
|
-
|
|
10635
|
+
gt("\u{1F389} Project created successfully!");
|
|
10108
10636
|
const cdCommand = executionMode === "development" ? `cd ../${projectName}` : `cd ${projectName}`;
|
|
10109
|
-
|
|
10637
|
+
wt(
|
|
10110
10638
|
`1. ${cdCommand}
|
|
10111
10639
|
2. bun install
|
|
10112
10640
|
3. Open the project in your IDE
|
|
10113
10641
|
4. Tell your AI agent:
|
|
10114
10642
|
|
|
10115
|
-
"Read
|
|
10643
|
+
"Read AGENTS.md and build my app"
|
|
10116
10644
|
|
|
10117
10645
|
The AI agent will use the MCP server automatically.
|
|
10118
10646
|
It handles everything: spec, scaffold, entities, pages.
|