@donotdev/cli 0.1.1 → 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 +93 -40
- package/dist/bin/commands/agent-setup.js +695 -420
- package/dist/bin/commands/build.js +1181 -832
- package/dist/bin/commands/bump.js +1054 -771
- package/dist/bin/commands/cacheout.js +253 -355
- package/dist/bin/commands/coach.js +275 -375
- package/dist/bin/commands/create-app.js +1074 -790
- package/dist/bin/commands/create-project.js +1106 -819
- package/dist/bin/commands/db.js +17045 -16542
- package/dist/bin/commands/deploy.js +1999 -1367
- package/dist/bin/commands/dev.js +879 -627
- package/dist/bin/commands/doctor.js +696 -425
- package/dist/bin/commands/emu.js +1001 -712
- package/dist/bin/commands/format.js +253 -355
- package/dist/bin/commands/get-demo.js +968 -706
- package/dist/bin/commands/make-admin.js +6279 -5746
- package/dist/bin/commands/preview.js +883 -628
- package/dist/bin/commands/seed.js +17058 -16555
- package/dist/bin/commands/setup-cicd.js +1024 -749
- package/dist/bin/commands/setup.js +1162 -844
- package/dist/bin/commands/staging.js +2000 -1368
- package/dist/bin/commands/sync-secrets.js +1181 -667
- package/dist/bin/commands/type-check.js +735 -461
- package/dist/bin/commands/wai.js +258 -360
- package/dist/bin/dndev.js +31 -16
- package/dist/bin/donotdev.js +31 -16
- package/dist/index.js +2189 -1513
- package/guidelines/DEPENDENCIES.md +155 -0
- package/guidelines/VERSION_CONTROL.md +0 -0
- package/package.json +1 -1
- package/templates/app-demo/.env.example +1 -1
- package/templates/app-demo/entities/Contact.ts.example +0 -0
- package/templates/app-demo/entities/ExampleEntity.ts.example +0 -0
- package/templates/app-demo/entities/demo.ts.example +0 -0
- package/templates/app-demo/index.html.example +0 -0
- package/templates/app-demo/public/apple-touch-icon.png.example +0 -0
- package/templates/app-demo/public/fonts/fonts.css.example +0 -0
- package/templates/app-demo/public/icon-192x192.png.example +0 -0
- package/templates/app-demo/public/icon-512x512.png.example +0 -0
- package/templates/app-demo/src/App.tsx.example +0 -0
- package/templates/app-demo/src/config/app.ts.example +0 -0
- package/templates/app-demo/src/entities/booking.ts.example +0 -0
- package/templates/app-demo/src/entities/onboarding.ts.example +0 -0
- package/templates/app-demo/src/entities/product.ts.example +0 -0
- package/templates/app-demo/src/entities/quote.ts.example +0 -0
- package/templates/app-demo/src/globals.css.example +0 -0
- package/templates/app-demo/src/main.tsx.example +0 -0
- package/templates/app-demo/src/pages/ChangelogPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ConditionalFormPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/DashboardPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/HomePage.tsx.example +0 -0
- package/templates/app-demo/src/pages/OnboardingPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/PricingPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ProductsPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ProfilePage.tsx.example +0 -0
- package/templates/app-demo/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ShowcaseDetailPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ShowcasePage.tsx.example +0 -0
- package/templates/app-demo/src/pages/components/ComponentRenderer.tsx.example +0 -0
- package/templates/app-demo/src/pages/components/ComponentsData.tsx.example +0 -0
- package/templates/app-demo/src/pages/components/componentConfig.ts.example +0 -0
- package/templates/app-demo/src/pages/legal/LegalPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-demo/src/themes.css.example +6 -0
- package/templates/app-demo/tsconfig.json.example +0 -0
- package/templates/app-demo/vite.config.ts.example +0 -0
- package/templates/app-dndev/index.html.example +0 -0
- package/templates/app-dndev/src/App.tsx.example +0 -0
- package/templates/app-dndev/src/components/CockpitLayout.css.example +0 -0
- package/templates/app-dndev/src/components/CockpitLayout.tsx.example +0 -0
- package/templates/app-dndev/src/components/Kanban.css.example +0 -0
- package/templates/app-dndev/src/components/ModeToggle.tsx.example +0 -0
- package/templates/app-dndev/src/components/OverlaySlot.tsx.example +0 -0
- package/templates/app-dndev/src/components/TerminalPanel.css.example +0 -0
- package/templates/app-dndev/src/components/TerminalPanel.tsx.example +0 -0
- package/templates/app-dndev/src/components/markdown-prose.css.example +0 -0
- package/templates/app-dndev/src/components/phases/CaptainLog.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/ContextTabs.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/PhaseCard.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/PhaseDetail.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/ReviewPanel.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/phaseData.ts.example +0 -0
- package/templates/app-dndev/src/config/app.ts.example +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 +5 -0
- package/templates/app-dndev/terminal-sidecar.cjs.example +0 -0
- package/templates/app-dndev/vite.config.ts.example +0 -0
- package/templates/app-expo/.env.example +0 -32
- package/templates/app-expo/.expo/README.md.example +0 -0
- package/templates/app-expo/.gitignore.example +0 -0
- package/templates/app-expo/README.md.example +1 -1
- package/templates/app-expo/app/.gitkeep +0 -0
- package/templates/app-expo/app/_layout.tsx.example +0 -0
- package/templates/app-expo/app/form.tsx.example +0 -0
- package/templates/app-expo/app/index.tsx.example +0 -0
- package/templates/app-expo/app/list.tsx.example +0 -0
- package/templates/app-expo/app/profile.tsx.example +0 -0
- package/templates/app-expo/app/signin.tsx.example +0 -0
- package/templates/app-expo/app.json.example +0 -0
- package/templates/app-expo/assets/adaptive-icon.png +0 -0
- package/templates/app-expo/assets/favicon.png +0 -0
- package/templates/app-expo/assets/icon.png +0 -0
- package/templates/app-expo/assets/splash.png +0 -0
- package/templates/app-expo/babel.config.js.example +0 -0
- package/templates/app-expo/eas.json.example +0 -0
- package/templates/app-expo/expo-env.d.ts.example +0 -0
- package/templates/app-expo/metro.config.js.example +0 -0
- package/templates/app-expo/service-account-key.json.example +1 -1
- package/templates/app-expo/src/config/app.ts.example +0 -0
- package/templates/app-expo/src/config/providers.ts.example +1 -1
- package/templates/app-expo/tsconfig.json.example +0 -0
- package/templates/app-next/.env.example +0 -33
- package/templates/app-next/next.config.ts.example +0 -2
- package/templates/app-next/postcss.config.js.example +0 -0
- package/templates/app-next/service-account-key.json.example +0 -0
- package/templates/app-next/src/app/ClientLayout.tsx.example +0 -0
- package/templates/app-next/src/app/not-found.tsx.example +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 +7 -1
- package/templates/app-vite/.env.example +0 -33
- package/templates/app-vite/csp.example.json +0 -0
- package/templates/app-vite/index.html.example +0 -0
- package/templates/app-vite/service-account-key.json.example +0 -0
- package/templates/app-vite/src/App.tsx.example +0 -0
- package/templates/app-vite/src/config/app.ts.example +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 +5 -0
- package/templates/deploy-config/.firebaserc.example +0 -0
- package/templates/deploy-config/firestore.indexes.json.example +0 -0
- package/templates/deploy-config/firestore.rules.example +0 -0
- package/templates/deploy-config/storage.rules.example +0 -0
- package/templates/deploy-config/tsconfig.functions.json.example +0 -0
- package/templates/deploy-config/vercel.json.example +2 -2
- package/templates/functions-firebase/.env.example +2 -2
- package/templates/functions-firebase/README.md.example +3 -3
- package/templates/functions-firebase/build.mjs.example +0 -0
- package/templates/functions-firebase/functions.config.js.example +0 -0
- package/templates/functions-firebase/functions.yaml.example +0 -0
- package/templates/functions-firebase/src/auth/getCustomClaims.ts.example +0 -0
- package/templates/functions-firebase/src/auth/getUserAuthStatus.ts.example +0 -0
- package/templates/functions-firebase/src/auth/index.ts.example +0 -0
- package/templates/functions-firebase/src/auth/removeCustomClaims.ts.example +0 -0
- package/templates/functions-firebase/src/auth/setCustomClaims.ts.example +0 -0
- package/templates/functions-firebase/src/billing/handleStripeWebhook.ts.example +0 -0
- package/templates/functions-firebase/src/billing/index.ts.example +0 -0
- package/templates/functions-firebase/src/billing/processPaymentSuccess.ts.example +0 -0
- package/templates/functions-firebase/src/billing/refreshSubscriptionStatus.ts.example +0 -0
- package/templates/functions-firebase/src/crud/createEntity.ts.example +0 -0
- package/templates/functions-firebase/src/crud/deleteEntity.ts.example +0 -0
- package/templates/functions-firebase/src/crud/getEntity.ts.example +0 -0
- package/templates/functions-firebase/src/crud/index.ts.example +0 -0
- package/templates/functions-firebase/src/crud/listEntities.ts.example +0 -0
- package/templates/functions-firebase/src/crud/updateEntity.ts.example +0 -0
- package/templates/functions-firebase/src/index.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/checkGitHubAccess.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/disconnect.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/exchangeToken.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/getConnections.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/grantGitHubAccess.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/index.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/refreshToken.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/revokeGitHubAccess.ts.example +0 -0
- package/templates/functions-firebase/tsconfig.json.example +0 -0
- package/templates/functions-supabase/supabase/config.toml.example +0 -0
- package/templates/functions-supabase/supabase/functions/.env.example +0 -0
- package/templates/functions-supabase/supabase/functions/cancel-subscription/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/change-plan/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/create-checkout-session/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/create-customer-portal/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/crud/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/delete-account/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/deno.json.example +0 -0
- package/templates/functions-supabase/supabase/functions/disconnect-oauth/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/exchange-token/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/get-connections/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/get-custom-claims/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/get-user-auth-status/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/refresh-subscription-status/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/refresh-token/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/remove-custom-claims/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/set-custom-claims/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/migrations/20250101000000_idempotency.sql +0 -0
- package/templates/functions-supabase/supabase/migrations/20250101000001_rate_limits.sql +0 -0
- package/templates/functions-supabase/supabase/migrations/20250101000002_cleanup_jobs.sql +0 -0
- package/templates/functions-supabase/supabase/migrations/20250101000003_operation_metrics.sql +0 -0
- package/templates/functions-supabase/supabase/migrations/20250101000004_crud_bulk.sql +192 -0
- package/templates/functions-vercel/.env.example +3 -3
- package/templates/functions-vercel/README.md.example +2 -2
- package/templates/functions-vercel/build.mjs.example +0 -0
- package/templates/functions-vercel/src/api/auth/getCustomClaims.ts.example +0 -0
- package/templates/functions-vercel/src/api/auth/getUserAuthStatus.ts.example +0 -0
- package/templates/functions-vercel/src/api/auth/removeCustomClaims.ts.example +0 -0
- package/templates/functions-vercel/src/api/auth/setCustomClaims.ts.example +0 -0
- package/templates/functions-vercel/src/api/billing/handleStripeWebhook.ts.example +0 -0
- package/templates/functions-vercel/src/api/billing/processPaymentSuccess.ts.example +0 -0
- package/templates/functions-vercel/src/api/billing/refreshSubscriptionStatus.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/createEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/deleteEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/getEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/listEntities.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/updateEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/checkGitHubAccess.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/disconnect.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/exchangeToken.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/getConnections.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/grantGitHubAccess.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/refreshToken.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/revokeGitHubAccess.ts.example +0 -0
- package/templates/functions-vercel/tsconfig.json.example +0 -0
- package/templates/functions-vercel/vercel.json.example +0 -0
- package/templates/github-consumer/.github/workflows/ci.yml.example +0 -0
- package/templates/overlay-firebase/env.fragment.example +0 -0
- package/templates/overlay-firebase/env.fragment.expo.example +0 -0
- package/templates/overlay-firebase/env.fragment.nextjs.example +0 -0
- package/templates/overlay-firebase/src/config/providers.expo.ts.example +0 -0
- package/templates/overlay-firebase/src/config/providers.ts.example +0 -0
- package/templates/overlay-supabase/env.fragment.example +0 -0
- package/templates/overlay-supabase/env.fragment.expo.example +0 -0
- package/templates/overlay-supabase/env.fragment.nextjs.example +0 -0
- package/templates/overlay-supabase/src/config/providers.expo.ts.example +1 -1
- package/templates/overlay-supabase/src/config/providers.ts.example +1 -1
- package/templates/overlay-vercel/env.fragment.example +0 -0
- package/templates/overlay-vercel/env.fragment.nextjs.example +0 -0
- package/templates/overlay-vercel/src/config/providers.ts.example +0 -0
- package/templates/preset-admin/src/pages/DashboardPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/EntityPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/ReportsPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/UsersPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/HomePage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +0 -0
- package/templates/preset-landing/src/pages/AboutPage.tsx.example +0 -0
- package/templates/preset-landing/src/pages/ContactPage.tsx.example +0 -0
- package/templates/preset-landing/src/pages/HomePage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/DashboardPage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/HomePage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/PricingPage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/ProfilePage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/root-consumer/.claude/agents/architect.md.example +0 -0
- package/templates/root-consumer/.claude/agents/builder.md.example +0 -0
- package/templates/root-consumer/.claude/agents/coder.md.example +0 -0
- package/templates/root-consumer/.claude/agents/extractor.md.example +0 -0
- package/templates/root-consumer/.claude/agents/polisher.md.example +0 -0
- package/templates/root-consumer/.claude/agents/prompt-engineer.md.example +0 -0
- package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +0 -0
- package/templates/root-consumer/.claude/hooks/guard-write.sh.example +2 -35
- package/templates/root-consumer/.claude/hooks/session-start.sh.example +1 -1
- package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +0 -0
- package/templates/root-consumer/.claude/rules/consumer-ux.md.example +1 -1
- package/templates/root-consumer/.claude/rules/definition-of-done.md.example +0 -0
- package/templates/root-consumer/.claude/rules/framework.md.example +0 -0
- package/templates/root-consumer/.claude/rules/git.md.example +0 -0
- package/templates/root-consumer/.claude/rules/security.md.example +0 -0
- package/templates/root-consumer/.claude/settings.json.example +1 -27
- package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +0 -0
- package/templates/root-consumer/.claude/skills/build/SKILL.md.example +23 -106
- package/templates/root-consumer/.claude/skills/design/SKILL.md.example +0 -0
- package/templates/root-consumer/.claude/skills/design/output-template.md +0 -0
- package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +0 -0
- package/templates/root-consumer/.claude/skills/polish/SKILL.md.example +0 -0
- package/templates/root-consumer/.claude/skills/techdebt/SKILL.md.example +0 -0
- package/templates/root-consumer/.cursor/mcp.json.example +0 -0
- package/templates/root-consumer/.cursor/rules/no-docs.mdc.example +5 -1
- package/templates/root-consumer/.dndev/args.json.example +0 -0
- package/templates/root-consumer/.dndev.secrets.example +0 -0
- package/templates/root-consumer/.env.example +0 -1
- package/templates/root-consumer/.gemini/settings.json.example +0 -0
- package/templates/root-consumer/.gitignore.example +1 -0
- package/templates/root-consumer/.mcp.json.example +0 -0
- package/templates/root-consumer/.prettierrc.cjs.example +0 -0
- package/templates/root-consumer/AGENTS.md.example +63 -0
- package/templates/root-consumer/CLAUDE.md.example +1 -33
- package/templates/root-consumer/README.md.example +11 -33
- package/templates/root-consumer/entities/index.ts.example +0 -0
- package/templates/root-consumer/eslint.config.js.example +0 -0
- package/templates/root-consumer/tsconfig.json.example +0 -0
- package/templates/root-consumer/.claude/hooks/framework-compliance.sh.example +0 -56
- package/templates/root-consumer/.claude/hooks/guard-files.sh.example +0 -46
- package/templates/root-consumer/.claude/hooks/guard-mcp.sh.example +0 -91
- package/templates/root-consumer/.claude/hooks/guard-secrets.sh.example +0 -67
- package/templates/root-consumer/.claude/hooks/track-mcp-lookup.sh.example +0 -20
- package/templates/root-consumer/.claude/statusline.py.example +0 -79
- package/templates/root-consumer/.clinerules.example +0 -1
- package/templates/root-consumer/.cursorrules.example +0 -1
- package/templates/root-consumer/.github/copilot-instructions.md.example +0 -1
- package/templates/root-consumer/.windsurfrules.example +0 -1
- package/templates/root-consumer/AI.md.example +0 -108
- package/templates/root-consumer/CONVENTIONS.md.example +0 -1
- package/templates/root-consumer/GEMINI.md.example +0 -1
- package/templates/root-consumer/guides/dndev/AGENT_START_HERE.md.example +0 -135
- package/templates/root-consumer/guides/dndev/COMPONENTS_ADV.md.example +0 -276
- package/templates/root-consumer/guides/dndev/INDEX.md.example +0 -56
- package/templates/root-consumer/guides/dndev/SETUP_AUTH.md.example +0 -134
- package/templates/root-consumer/guides/dndev/SETUP_BILLING.md.example +0 -114
- package/templates/root-consumer/guides/dndev/SETUP_FIREBASE.md.example +0 -231
- package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +0 -59
- package/templates/root-consumer/guides/dndev/SETUP_OAUTH_PROVIDERS.md.example +0 -60
- package/templates/root-consumer/guides/dndev/SETUP_SOC2.md.example +0 -234
- package/templates/root-consumer/guides/dndev/SETUP_STRIPE.md.example +0 -62
- package/templates/root-consumer/guides/dndev/SETUP_SUPABASE.md.example +0 -262
- package/templates/root-consumer/guides/dndev/advanced/APP_CHECK.md.example +0 -111
- package/templates/root-consumer/guides/dndev/advanced/COOKIE_REFERENCE.md.example +0 -252
- package/templates/root-consumer/guides/dndev/advanced/EMULATORS.md.example +0 -48
- package/templates/root-consumer/guides/wai-way/WAI_WAY_CLI.md.example +0 -402
- package/templates/root-consumer/guides/wai-way/agents/architect.md.example +0 -78
- package/templates/root-consumer/guides/wai-way/agents/builder.md.example +0 -97
- package/templates/root-consumer/guides/wai-way/agents/extractor.md.example +0 -363
- package/templates/root-consumer/guides/wai-way/agents/polisher.md.example +0 -133
- package/templates/root-consumer/guides/wai-way/blueprints/0_brainstorm.md.example +0 -315
- package/templates/root-consumer/guides/wai-way/blueprints/1_scaffold.md.example +0 -133
- package/templates/root-consumer/guides/wai-way/blueprints/2_entities.md.example +0 -111
- package/templates/root-consumer/guides/wai-way/blueprints/3_compose.md.example +0 -148
- package/templates/root-consumer/guides/wai-way/blueprints/4_configure.md.example +0 -238
- package/templates/root-consumer/guides/wai-way/context_map.json.example +0 -127
- package/templates/root-consumer/guides/wai-way/entity_patterns.md.example +0 -839
- package/templates/root-consumer/guides/wai-way/hld_template.md.example +0 -138
- package/templates/root-consumer/guides/wai-way/lld_template.md.example +0 -103
- package/templates/root-consumer/guides/wai-way/page_patterns.md.example +0 -722
- package/templates/root-consumer/guides/wai-way/prd_template.md.example +0 -140
- package/templates/root-consumer/guides/wai-way/presets_guide.md.example +0 -217
- package/templates/root-consumer/guides/wai-way/spec_template.md.example +0 -313
|
@@ -4,11 +4,11 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __require = /* @__PURE__ */ ((
|
|
8
|
-
get: (a,
|
|
9
|
-
}) :
|
|
7
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
+
}) : x)(function(x) {
|
|
10
10
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
-
throw Error('Dynamic require of "' +
|
|
11
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
12
|
});
|
|
13
13
|
var __esm = (fn, res) => function __init() {
|
|
14
14
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
@@ -37,50 +37,456 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
37
37
|
mod
|
|
38
38
|
));
|
|
39
39
|
|
|
40
|
+
// node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/utils.js
|
|
41
|
+
var isAmbiguous, isFullWidth, isWide;
|
|
42
|
+
var init_utils = __esm({
|
|
43
|
+
"node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/utils.js"() {
|
|
44
|
+
init_utils2();
|
|
45
|
+
isAmbiguous = (x) => {
|
|
46
|
+
return x === 161 || x === 164 || x === 167 || x === 168 || x === 170 || x === 173 || x === 174 || x >= 176 && x <= 180 || x >= 182 && x <= 186 || x >= 188 && x <= 191 || x === 198 || x === 208 || x === 215 || x === 216 || x >= 222 && x <= 225 || x === 230 || x >= 232 && x <= 234 || x === 236 || x === 237 || x === 240 || x === 242 || x === 243 || x >= 247 && x <= 250 || x === 252 || x === 254 || x === 257 || x === 273 || x === 275 || x === 283 || x === 294 || x === 295 || x === 299 || x >= 305 && x <= 307 || x === 312 || x >= 319 && x <= 322 || x === 324 || x >= 328 && x <= 331 || x === 333 || x === 338 || x === 339 || x === 358 || x === 359 || x === 363 || x === 462 || x === 464 || x === 466 || x === 468 || x === 470 || x === 472 || x === 474 || x === 476 || x === 593 || x === 609 || x === 708 || x === 711 || x >= 713 && x <= 715 || x === 717 || x === 720 || x >= 728 && x <= 731 || x === 733 || x === 735 || x >= 768 && x <= 879 || x >= 913 && x <= 929 || x >= 931 && x <= 937 || x >= 945 && x <= 961 || x >= 963 && x <= 969 || x === 1025 || x >= 1040 && x <= 1103 || x === 1105 || x === 8208 || x >= 8211 && x <= 8214 || x === 8216 || x === 8217 || x === 8220 || x === 8221 || x >= 8224 && x <= 8226 || x >= 8228 && x <= 8231 || x === 8240 || x === 8242 || x === 8243 || x === 8245 || x === 8251 || x === 8254 || x === 8308 || x === 8319 || x >= 8321 && x <= 8324 || x === 8364 || x === 8451 || x === 8453 || x === 8457 || x === 8467 || x === 8470 || x === 8481 || x === 8482 || x === 8486 || x === 8491 || x === 8531 || x === 8532 || x >= 8539 && x <= 8542 || x >= 8544 && x <= 8555 || x >= 8560 && x <= 8569 || x === 8585 || x >= 8592 && x <= 8601 || x === 8632 || x === 8633 || x === 8658 || x === 8660 || x === 8679 || x === 8704 || x === 8706 || x === 8707 || x === 8711 || x === 8712 || x === 8715 || x === 8719 || x === 8721 || x === 8725 || x === 8730 || x >= 8733 && x <= 8736 || x === 8739 || x === 8741 || x >= 8743 && x <= 8748 || x === 8750 || x >= 8756 && x <= 8759 || x === 8764 || x === 8765 || x === 8776 || x === 8780 || x === 8786 || x === 8800 || x === 8801 || x >= 8804 && x <= 8807 || x === 8810 || x === 8811 || x === 8814 || x === 8815 || x === 8834 || x === 8835 || x === 8838 || x === 8839 || x === 8853 || x === 8857 || x === 8869 || x === 8895 || x === 8978 || x >= 9312 && x <= 9449 || x >= 9451 && x <= 9547 || x >= 9552 && x <= 9587 || x >= 9600 && x <= 9615 || x >= 9618 && x <= 9621 || x === 9632 || x === 9633 || x >= 9635 && x <= 9641 || x === 9650 || x === 9651 || x === 9654 || x === 9655 || x === 9660 || x === 9661 || x === 9664 || x === 9665 || x >= 9670 && x <= 9672 || x === 9675 || x >= 9678 && x <= 9681 || x >= 9698 && x <= 9701 || x === 9711 || x === 9733 || x === 9734 || x === 9737 || x === 9742 || x === 9743 || x === 9756 || x === 9758 || x === 9792 || x === 9794 || x === 9824 || x === 9825 || x >= 9827 && x <= 9829 || x >= 9831 && x <= 9834 || x === 9836 || x === 9837 || x === 9839 || x === 9886 || x === 9887 || x === 9919 || x >= 9926 && x <= 9933 || x >= 9935 && x <= 9939 || x >= 9941 && x <= 9953 || x === 9955 || x === 9960 || x === 9961 || x >= 9963 && x <= 9969 || x === 9972 || x >= 9974 && x <= 9977 || x === 9979 || x === 9980 || x === 9982 || x === 9983 || x === 10045 || x >= 10102 && x <= 10111 || x >= 11094 && x <= 11097 || x >= 12872 && x <= 12879 || x >= 57344 && x <= 63743 || x >= 65024 && x <= 65039 || x === 65533 || x >= 127232 && x <= 127242 || x >= 127248 && x <= 127277 || x >= 127280 && x <= 127337 || x >= 127344 && x <= 127373 || x === 127375 || x === 127376 || x >= 127387 && x <= 127404 || x >= 917760 && x <= 917999 || x >= 983040 && x <= 1048573 || x >= 1048576 && x <= 1114109;
|
|
47
|
+
};
|
|
48
|
+
isFullWidth = (x) => {
|
|
49
|
+
return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
|
|
50
|
+
};
|
|
51
|
+
isWide = (x) => {
|
|
52
|
+
return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9800 && x <= 9811 || x === 9855 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12771 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 19903 || x >= 19968 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101632 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129672 || x >= 129680 && x <= 129725 || x >= 129727 && x <= 129733 || x >= 129742 && x <= 129755 || x >= 129760 && x <= 129768 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
// node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/index.js
|
|
58
|
+
var ANSI_RE, CONTROL_RE, TAB_RE, EMOJI_RE, LATIN_RE, MODIFIER_RE, NO_TRUNCATION, getStringTruncatedWidth, dist_default;
|
|
59
|
+
var init_dist = __esm({
|
|
60
|
+
"node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/index.js"() {
|
|
61
|
+
init_utils2();
|
|
62
|
+
init_utils();
|
|
63
|
+
ANSI_RE = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y;
|
|
64
|
+
CONTROL_RE = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
|
|
65
|
+
TAB_RE = /\t{1,1000}/y;
|
|
66
|
+
EMOJI_RE = new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*", "yu");
|
|
67
|
+
LATIN_RE = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
|
|
68
|
+
MODIFIER_RE = new RegExp("\\p{M}+", "gu");
|
|
69
|
+
NO_TRUNCATION = { limit: Infinity, ellipsis: "" };
|
|
70
|
+
getStringTruncatedWidth = (input, truncationOptions = {}, widthOptions = {}) => {
|
|
71
|
+
const LIMIT = truncationOptions.limit ?? Infinity;
|
|
72
|
+
const ELLIPSIS = truncationOptions.ellipsis ?? "";
|
|
73
|
+
const ELLIPSIS_WIDTH = truncationOptions?.ellipsisWidth ?? (ELLIPSIS ? getStringTruncatedWidth(ELLIPSIS, NO_TRUNCATION, widthOptions).width : 0);
|
|
74
|
+
const ANSI_WIDTH = widthOptions.ansiWidth ?? 0;
|
|
75
|
+
const CONTROL_WIDTH = widthOptions.controlWidth ?? 0;
|
|
76
|
+
const TAB_WIDTH = widthOptions.tabWidth ?? 8;
|
|
77
|
+
const AMBIGUOUS_WIDTH = widthOptions.ambiguousWidth ?? 1;
|
|
78
|
+
const EMOJI_WIDTH = widthOptions.emojiWidth ?? 2;
|
|
79
|
+
const FULL_WIDTH_WIDTH = widthOptions.fullWidthWidth ?? 2;
|
|
80
|
+
const REGULAR_WIDTH = widthOptions.regularWidth ?? 1;
|
|
81
|
+
const WIDE_WIDTH = widthOptions.wideWidth ?? 2;
|
|
82
|
+
let indexPrev = 0;
|
|
83
|
+
let index = 0;
|
|
84
|
+
let length = input.length;
|
|
85
|
+
let lengthExtra = 0;
|
|
86
|
+
let truncationEnabled = false;
|
|
87
|
+
let truncationIndex = length;
|
|
88
|
+
let truncationLimit = Math.max(0, LIMIT - ELLIPSIS_WIDTH);
|
|
89
|
+
let unmatchedStart = 0;
|
|
90
|
+
let unmatchedEnd = 0;
|
|
91
|
+
let width = 0;
|
|
92
|
+
let widthExtra = 0;
|
|
93
|
+
outer: while (true) {
|
|
94
|
+
if (unmatchedEnd > unmatchedStart || index >= length && index > indexPrev) {
|
|
95
|
+
const unmatched = input.slice(unmatchedStart, unmatchedEnd) || input.slice(indexPrev, index);
|
|
96
|
+
lengthExtra = 0;
|
|
97
|
+
for (const char of unmatched.replaceAll(MODIFIER_RE, "")) {
|
|
98
|
+
const codePoint = char.codePointAt(0) || 0;
|
|
99
|
+
if (isFullWidth(codePoint)) {
|
|
100
|
+
widthExtra = FULL_WIDTH_WIDTH;
|
|
101
|
+
} else if (isWide(codePoint)) {
|
|
102
|
+
widthExtra = WIDE_WIDTH;
|
|
103
|
+
} else if (AMBIGUOUS_WIDTH !== REGULAR_WIDTH && isAmbiguous(codePoint)) {
|
|
104
|
+
widthExtra = AMBIGUOUS_WIDTH;
|
|
105
|
+
} else {
|
|
106
|
+
widthExtra = REGULAR_WIDTH;
|
|
107
|
+
}
|
|
108
|
+
if (width + widthExtra > truncationLimit) {
|
|
109
|
+
truncationIndex = Math.min(truncationIndex, Math.max(unmatchedStart, indexPrev) + lengthExtra);
|
|
110
|
+
}
|
|
111
|
+
if (width + widthExtra > LIMIT) {
|
|
112
|
+
truncationEnabled = true;
|
|
113
|
+
break outer;
|
|
114
|
+
}
|
|
115
|
+
lengthExtra += char.length;
|
|
116
|
+
width += widthExtra;
|
|
117
|
+
}
|
|
118
|
+
unmatchedStart = unmatchedEnd = 0;
|
|
119
|
+
}
|
|
120
|
+
if (index >= length)
|
|
121
|
+
break;
|
|
122
|
+
LATIN_RE.lastIndex = index;
|
|
123
|
+
if (LATIN_RE.test(input)) {
|
|
124
|
+
lengthExtra = LATIN_RE.lastIndex - index;
|
|
125
|
+
widthExtra = lengthExtra * REGULAR_WIDTH;
|
|
126
|
+
if (width + widthExtra > truncationLimit) {
|
|
127
|
+
truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / REGULAR_WIDTH));
|
|
128
|
+
}
|
|
129
|
+
if (width + widthExtra > LIMIT) {
|
|
130
|
+
truncationEnabled = true;
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
width += widthExtra;
|
|
134
|
+
unmatchedStart = indexPrev;
|
|
135
|
+
unmatchedEnd = index;
|
|
136
|
+
index = indexPrev = LATIN_RE.lastIndex;
|
|
137
|
+
continue;
|
|
138
|
+
}
|
|
139
|
+
ANSI_RE.lastIndex = index;
|
|
140
|
+
if (ANSI_RE.test(input)) {
|
|
141
|
+
if (width + ANSI_WIDTH > truncationLimit) {
|
|
142
|
+
truncationIndex = Math.min(truncationIndex, index);
|
|
143
|
+
}
|
|
144
|
+
if (width + ANSI_WIDTH > LIMIT) {
|
|
145
|
+
truncationEnabled = true;
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
width += ANSI_WIDTH;
|
|
149
|
+
unmatchedStart = indexPrev;
|
|
150
|
+
unmatchedEnd = index;
|
|
151
|
+
index = indexPrev = ANSI_RE.lastIndex;
|
|
152
|
+
continue;
|
|
153
|
+
}
|
|
154
|
+
CONTROL_RE.lastIndex = index;
|
|
155
|
+
if (CONTROL_RE.test(input)) {
|
|
156
|
+
lengthExtra = CONTROL_RE.lastIndex - index;
|
|
157
|
+
widthExtra = lengthExtra * CONTROL_WIDTH;
|
|
158
|
+
if (width + widthExtra > truncationLimit) {
|
|
159
|
+
truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / CONTROL_WIDTH));
|
|
160
|
+
}
|
|
161
|
+
if (width + widthExtra > LIMIT) {
|
|
162
|
+
truncationEnabled = true;
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
width += widthExtra;
|
|
166
|
+
unmatchedStart = indexPrev;
|
|
167
|
+
unmatchedEnd = index;
|
|
168
|
+
index = indexPrev = CONTROL_RE.lastIndex;
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
171
|
+
TAB_RE.lastIndex = index;
|
|
172
|
+
if (TAB_RE.test(input)) {
|
|
173
|
+
lengthExtra = TAB_RE.lastIndex - index;
|
|
174
|
+
widthExtra = lengthExtra * TAB_WIDTH;
|
|
175
|
+
if (width + widthExtra > truncationLimit) {
|
|
176
|
+
truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / TAB_WIDTH));
|
|
177
|
+
}
|
|
178
|
+
if (width + widthExtra > LIMIT) {
|
|
179
|
+
truncationEnabled = true;
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
width += widthExtra;
|
|
183
|
+
unmatchedStart = indexPrev;
|
|
184
|
+
unmatchedEnd = index;
|
|
185
|
+
index = indexPrev = TAB_RE.lastIndex;
|
|
186
|
+
continue;
|
|
187
|
+
}
|
|
188
|
+
EMOJI_RE.lastIndex = index;
|
|
189
|
+
if (EMOJI_RE.test(input)) {
|
|
190
|
+
if (width + EMOJI_WIDTH > truncationLimit) {
|
|
191
|
+
truncationIndex = Math.min(truncationIndex, index);
|
|
192
|
+
}
|
|
193
|
+
if (width + EMOJI_WIDTH > LIMIT) {
|
|
194
|
+
truncationEnabled = true;
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
width += EMOJI_WIDTH;
|
|
198
|
+
unmatchedStart = indexPrev;
|
|
199
|
+
unmatchedEnd = index;
|
|
200
|
+
index = indexPrev = EMOJI_RE.lastIndex;
|
|
201
|
+
continue;
|
|
202
|
+
}
|
|
203
|
+
index += 1;
|
|
204
|
+
}
|
|
205
|
+
return {
|
|
206
|
+
width: truncationEnabled ? truncationLimit : width,
|
|
207
|
+
index: truncationEnabled ? truncationIndex : length,
|
|
208
|
+
truncated: truncationEnabled,
|
|
209
|
+
ellipsed: truncationEnabled && LIMIT >= ELLIPSIS_WIDTH
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
dist_default = getStringTruncatedWidth;
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
// node_modules/.bun/fast-string-width@1.1.0/node_modules/fast-string-width/dist/index.js
|
|
217
|
+
var NO_TRUNCATION2, fastStringWidth, dist_default2;
|
|
218
|
+
var init_dist2 = __esm({
|
|
219
|
+
"node_modules/.bun/fast-string-width@1.1.0/node_modules/fast-string-width/dist/index.js"() {
|
|
220
|
+
init_utils2();
|
|
221
|
+
init_dist();
|
|
222
|
+
NO_TRUNCATION2 = {
|
|
223
|
+
limit: Infinity,
|
|
224
|
+
ellipsis: "",
|
|
225
|
+
ellipsisWidth: 0
|
|
226
|
+
};
|
|
227
|
+
fastStringWidth = (input, options = {}) => {
|
|
228
|
+
return dist_default(input, NO_TRUNCATION2, options).width;
|
|
229
|
+
};
|
|
230
|
+
dist_default2 = fastStringWidth;
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
|
|
234
|
+
// node_modules/.bun/fast-wrap-ansi@0.1.6/node_modules/fast-wrap-ansi/lib/main.js
|
|
235
|
+
function wrapAnsi(string, columns, options) {
|
|
236
|
+
return String(string).normalize().split(CRLF_OR_LF).map((line) => exec(line, columns, options)).join("\n");
|
|
237
|
+
}
|
|
238
|
+
var ESC, CSI, END_CODE, ANSI_ESCAPE_BELL, ANSI_CSI, ANSI_OSC, ANSI_SGR_TERMINATOR, ANSI_ESCAPE_LINK, GROUP_REGEX, getClosingCode, wrapAnsiCode, wrapAnsiHyperlink, wrapWord, stringVisibleTrimSpacesRight, exec, CRLF_OR_LF;
|
|
239
|
+
var init_main = __esm({
|
|
240
|
+
"node_modules/.bun/fast-wrap-ansi@0.1.6/node_modules/fast-wrap-ansi/lib/main.js"() {
|
|
241
|
+
init_utils2();
|
|
242
|
+
init_dist2();
|
|
243
|
+
ESC = "\x1B";
|
|
244
|
+
CSI = "\x9B";
|
|
245
|
+
END_CODE = 39;
|
|
246
|
+
ANSI_ESCAPE_BELL = "\x07";
|
|
247
|
+
ANSI_CSI = "[";
|
|
248
|
+
ANSI_OSC = "]";
|
|
249
|
+
ANSI_SGR_TERMINATOR = "m";
|
|
250
|
+
ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
|
|
251
|
+
GROUP_REGEX = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`, "y");
|
|
252
|
+
getClosingCode = (openingCode) => {
|
|
253
|
+
if (openingCode >= 30 && openingCode <= 37)
|
|
254
|
+
return 39;
|
|
255
|
+
if (openingCode >= 90 && openingCode <= 97)
|
|
256
|
+
return 39;
|
|
257
|
+
if (openingCode >= 40 && openingCode <= 47)
|
|
258
|
+
return 49;
|
|
259
|
+
if (openingCode >= 100 && openingCode <= 107)
|
|
260
|
+
return 49;
|
|
261
|
+
if (openingCode === 1 || openingCode === 2)
|
|
262
|
+
return 22;
|
|
263
|
+
if (openingCode === 3)
|
|
264
|
+
return 23;
|
|
265
|
+
if (openingCode === 4)
|
|
266
|
+
return 24;
|
|
267
|
+
if (openingCode === 7)
|
|
268
|
+
return 27;
|
|
269
|
+
if (openingCode === 8)
|
|
270
|
+
return 28;
|
|
271
|
+
if (openingCode === 9)
|
|
272
|
+
return 29;
|
|
273
|
+
if (openingCode === 0)
|
|
274
|
+
return 0;
|
|
275
|
+
return void 0;
|
|
276
|
+
};
|
|
277
|
+
wrapAnsiCode = (code) => `${ESC}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
|
|
278
|
+
wrapAnsiHyperlink = (url) => `${ESC}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`;
|
|
279
|
+
wrapWord = (rows, word, columns) => {
|
|
280
|
+
const characters = word[Symbol.iterator]();
|
|
281
|
+
let isInsideEscape = false;
|
|
282
|
+
let isInsideLinkEscape = false;
|
|
283
|
+
let lastRow = rows.at(-1);
|
|
284
|
+
let visible = lastRow === void 0 ? 0 : dist_default2(lastRow);
|
|
285
|
+
let currentCharacter = characters.next();
|
|
286
|
+
let nextCharacter = characters.next();
|
|
287
|
+
let rawCharacterIndex = 0;
|
|
288
|
+
while (!currentCharacter.done) {
|
|
289
|
+
const character = currentCharacter.value;
|
|
290
|
+
const characterLength = dist_default2(character);
|
|
291
|
+
if (visible + characterLength <= columns) {
|
|
292
|
+
rows[rows.length - 1] += character;
|
|
293
|
+
} else {
|
|
294
|
+
rows.push(character);
|
|
295
|
+
visible = 0;
|
|
296
|
+
}
|
|
297
|
+
if (character === ESC || character === CSI) {
|
|
298
|
+
isInsideEscape = true;
|
|
299
|
+
isInsideLinkEscape = word.startsWith(ANSI_ESCAPE_LINK, rawCharacterIndex + 1);
|
|
300
|
+
}
|
|
301
|
+
if (isInsideEscape) {
|
|
302
|
+
if (isInsideLinkEscape) {
|
|
303
|
+
if (character === ANSI_ESCAPE_BELL) {
|
|
304
|
+
isInsideEscape = false;
|
|
305
|
+
isInsideLinkEscape = false;
|
|
306
|
+
}
|
|
307
|
+
} else if (character === ANSI_SGR_TERMINATOR) {
|
|
308
|
+
isInsideEscape = false;
|
|
309
|
+
}
|
|
310
|
+
} else {
|
|
311
|
+
visible += characterLength;
|
|
312
|
+
if (visible === columns && !nextCharacter.done) {
|
|
313
|
+
rows.push("");
|
|
314
|
+
visible = 0;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
currentCharacter = nextCharacter;
|
|
318
|
+
nextCharacter = characters.next();
|
|
319
|
+
rawCharacterIndex += character.length;
|
|
320
|
+
}
|
|
321
|
+
lastRow = rows.at(-1);
|
|
322
|
+
if (!visible && lastRow !== void 0 && lastRow.length && rows.length > 1) {
|
|
323
|
+
rows[rows.length - 2] += rows.pop();
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
stringVisibleTrimSpacesRight = (string) => {
|
|
327
|
+
const words = string.split(" ");
|
|
328
|
+
let last = words.length;
|
|
329
|
+
while (last) {
|
|
330
|
+
if (dist_default2(words[last - 1])) {
|
|
331
|
+
break;
|
|
332
|
+
}
|
|
333
|
+
last--;
|
|
334
|
+
}
|
|
335
|
+
if (last === words.length) {
|
|
336
|
+
return string;
|
|
337
|
+
}
|
|
338
|
+
return words.slice(0, last).join(" ") + words.slice(last).join("");
|
|
339
|
+
};
|
|
340
|
+
exec = (string, columns, options = {}) => {
|
|
341
|
+
if (options.trim !== false && string.trim() === "") {
|
|
342
|
+
return "";
|
|
343
|
+
}
|
|
344
|
+
let returnValue = "";
|
|
345
|
+
let escapeCode;
|
|
346
|
+
let escapeUrl;
|
|
347
|
+
const words = string.split(" ");
|
|
348
|
+
let rows = [""];
|
|
349
|
+
let rowLength = 0;
|
|
350
|
+
for (let index = 0; index < words.length; index++) {
|
|
351
|
+
const word = words[index];
|
|
352
|
+
if (options.trim !== false) {
|
|
353
|
+
const row = rows.at(-1) ?? "";
|
|
354
|
+
const trimmed = row.trimStart();
|
|
355
|
+
if (row.length !== trimmed.length) {
|
|
356
|
+
rows[rows.length - 1] = trimmed;
|
|
357
|
+
rowLength = dist_default2(trimmed);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
if (index !== 0) {
|
|
361
|
+
if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
|
|
362
|
+
rows.push("");
|
|
363
|
+
rowLength = 0;
|
|
364
|
+
}
|
|
365
|
+
if (rowLength || options.trim === false) {
|
|
366
|
+
rows[rows.length - 1] += " ";
|
|
367
|
+
rowLength++;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
const wordLength = dist_default2(word);
|
|
371
|
+
if (options.hard && wordLength > columns) {
|
|
372
|
+
const remainingColumns = columns - rowLength;
|
|
373
|
+
const breaksStartingThisLine = 1 + Math.floor((wordLength - remainingColumns - 1) / columns);
|
|
374
|
+
const breaksStartingNextLine = Math.floor((wordLength - 1) / columns);
|
|
375
|
+
if (breaksStartingNextLine < breaksStartingThisLine) {
|
|
376
|
+
rows.push("");
|
|
377
|
+
}
|
|
378
|
+
wrapWord(rows, word, columns);
|
|
379
|
+
rowLength = dist_default2(rows.at(-1) ?? "");
|
|
380
|
+
continue;
|
|
381
|
+
}
|
|
382
|
+
if (rowLength + wordLength > columns && rowLength && wordLength) {
|
|
383
|
+
if (options.wordWrap === false && rowLength < columns) {
|
|
384
|
+
wrapWord(rows, word, columns);
|
|
385
|
+
rowLength = dist_default2(rows.at(-1) ?? "");
|
|
386
|
+
continue;
|
|
387
|
+
}
|
|
388
|
+
rows.push("");
|
|
389
|
+
rowLength = 0;
|
|
390
|
+
}
|
|
391
|
+
if (rowLength + wordLength > columns && options.wordWrap === false) {
|
|
392
|
+
wrapWord(rows, word, columns);
|
|
393
|
+
rowLength = dist_default2(rows.at(-1) ?? "");
|
|
394
|
+
continue;
|
|
395
|
+
}
|
|
396
|
+
rows[rows.length - 1] += word;
|
|
397
|
+
rowLength += wordLength;
|
|
398
|
+
}
|
|
399
|
+
if (options.trim !== false) {
|
|
400
|
+
rows = rows.map((row) => stringVisibleTrimSpacesRight(row));
|
|
401
|
+
}
|
|
402
|
+
const preString = rows.join("\n");
|
|
403
|
+
let inSurrogate = false;
|
|
404
|
+
for (let i = 0; i < preString.length; i++) {
|
|
405
|
+
const character = preString[i];
|
|
406
|
+
returnValue += character;
|
|
407
|
+
if (!inSurrogate) {
|
|
408
|
+
inSurrogate = character >= "\uD800" && character <= "\uDBFF";
|
|
409
|
+
} else {
|
|
410
|
+
continue;
|
|
411
|
+
}
|
|
412
|
+
if (character === ESC || character === CSI) {
|
|
413
|
+
GROUP_REGEX.lastIndex = i + 1;
|
|
414
|
+
const groupsResult = GROUP_REGEX.exec(preString);
|
|
415
|
+
const groups = groupsResult?.groups;
|
|
416
|
+
if (groups?.code !== void 0) {
|
|
417
|
+
const code = Number.parseFloat(groups.code);
|
|
418
|
+
escapeCode = code === END_CODE ? void 0 : code;
|
|
419
|
+
} else if (groups?.uri !== void 0) {
|
|
420
|
+
escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
if (preString[i + 1] === "\n") {
|
|
424
|
+
if (escapeUrl) {
|
|
425
|
+
returnValue += wrapAnsiHyperlink("");
|
|
426
|
+
}
|
|
427
|
+
const closingCode = escapeCode ? getClosingCode(escapeCode) : void 0;
|
|
428
|
+
if (escapeCode && closingCode) {
|
|
429
|
+
returnValue += wrapAnsiCode(closingCode);
|
|
430
|
+
}
|
|
431
|
+
} else if (character === "\n") {
|
|
432
|
+
if (escapeCode && getClosingCode(escapeCode)) {
|
|
433
|
+
returnValue += wrapAnsiCode(escapeCode);
|
|
434
|
+
}
|
|
435
|
+
if (escapeUrl) {
|
|
436
|
+
returnValue += wrapAnsiHyperlink(escapeUrl);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
return returnValue;
|
|
441
|
+
};
|
|
442
|
+
CRLF_OR_LF = /\r?\n/;
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
|
|
40
446
|
// node_modules/.bun/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
|
|
41
447
|
var require_src = __commonJS({
|
|
42
448
|
"node_modules/.bun/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports, module) {
|
|
43
449
|
"use strict";
|
|
44
|
-
|
|
45
|
-
var
|
|
46
|
-
var
|
|
450
|
+
init_utils2();
|
|
451
|
+
var ESC2 = "\x1B";
|
|
452
|
+
var CSI2 = `${ESC2}[`;
|
|
47
453
|
var beep = "\x07";
|
|
48
454
|
var cursor = {
|
|
49
|
-
to(
|
|
50
|
-
if (!
|
|
51
|
-
return `${
|
|
455
|
+
to(x, y2) {
|
|
456
|
+
if (!y2) return `${CSI2}${x + 1}G`;
|
|
457
|
+
return `${CSI2}${y2 + 1};${x + 1}H`;
|
|
52
458
|
},
|
|
53
|
-
move(
|
|
459
|
+
move(x, y2) {
|
|
54
460
|
let ret = "";
|
|
55
|
-
if (
|
|
56
|
-
else if (
|
|
57
|
-
if (
|
|
58
|
-
else if (
|
|
461
|
+
if (x < 0) ret += `${CSI2}${-x}D`;
|
|
462
|
+
else if (x > 0) ret += `${CSI2}${x}C`;
|
|
463
|
+
if (y2 < 0) ret += `${CSI2}${-y2}A`;
|
|
464
|
+
else if (y2 > 0) ret += `${CSI2}${y2}B`;
|
|
59
465
|
return ret;
|
|
60
466
|
},
|
|
61
|
-
up: (count = 1) => `${
|
|
62
|
-
down: (count = 1) => `${
|
|
63
|
-
forward: (count = 1) => `${
|
|
64
|
-
backward: (count = 1) => `${
|
|
65
|
-
nextLine: (count = 1) => `${
|
|
66
|
-
prevLine: (count = 1) => `${
|
|
67
|
-
left: `${
|
|
68
|
-
hide: `${
|
|
69
|
-
show: `${
|
|
70
|
-
save: `${
|
|
71
|
-
restore: `${
|
|
467
|
+
up: (count = 1) => `${CSI2}${count}A`,
|
|
468
|
+
down: (count = 1) => `${CSI2}${count}B`,
|
|
469
|
+
forward: (count = 1) => `${CSI2}${count}C`,
|
|
470
|
+
backward: (count = 1) => `${CSI2}${count}D`,
|
|
471
|
+
nextLine: (count = 1) => `${CSI2}E`.repeat(count),
|
|
472
|
+
prevLine: (count = 1) => `${CSI2}F`.repeat(count),
|
|
473
|
+
left: `${CSI2}G`,
|
|
474
|
+
hide: `${CSI2}?25l`,
|
|
475
|
+
show: `${CSI2}?25h`,
|
|
476
|
+
save: `${ESC2}7`,
|
|
477
|
+
restore: `${ESC2}8`
|
|
72
478
|
};
|
|
73
479
|
var scroll = {
|
|
74
|
-
up: (count = 1) => `${
|
|
75
|
-
down: (count = 1) => `${
|
|
480
|
+
up: (count = 1) => `${CSI2}S`.repeat(count),
|
|
481
|
+
down: (count = 1) => `${CSI2}T`.repeat(count)
|
|
76
482
|
};
|
|
77
483
|
var erase = {
|
|
78
|
-
screen: `${
|
|
79
|
-
up: (count = 1) => `${
|
|
80
|
-
down: (count = 1) => `${
|
|
81
|
-
line: `${
|
|
82
|
-
lineEnd: `${
|
|
83
|
-
lineStart: `${
|
|
484
|
+
screen: `${CSI2}2J`,
|
|
485
|
+
up: (count = 1) => `${CSI2}1J`.repeat(count),
|
|
486
|
+
down: (count = 1) => `${CSI2}J`.repeat(count),
|
|
487
|
+
line: `${CSI2}2K`,
|
|
488
|
+
lineEnd: `${CSI2}K`,
|
|
489
|
+
lineStart: `${CSI2}1K`,
|
|
84
490
|
lines(count) {
|
|
85
491
|
let clear = "";
|
|
86
492
|
for (let i = 0; i < count; i++)
|
|
@@ -94,625 +500,483 @@ 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, nt;
|
|
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
|
-
return D2;
|
|
315
|
-
};
|
|
316
|
-
})(W);
|
|
317
|
-
tD = W.exports;
|
|
318
|
-
eD = L(tD);
|
|
319
|
-
FD = function() {
|
|
320
|
-
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;
|
|
321
|
-
};
|
|
322
|
-
sD = L(FD);
|
|
323
|
-
w = 10;
|
|
324
|
-
N = (e2 = 0) => (u2) => `\x1B[${u2 + e2}m`;
|
|
325
|
-
I = (e2 = 0) => (u2) => `\x1B[${38 + e2};5;${u2}m`;
|
|
326
|
-
R = (e2 = 0) => (u2, t, F2) => `\x1B[${38 + e2};2;${u2};${t};${F2}m`;
|
|
327
|
-
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] } };
|
|
328
|
-
Object.keys(r.modifier);
|
|
329
|
-
iD = Object.keys(r.color);
|
|
330
|
-
CD = Object.keys(r.bgColor);
|
|
331
|
-
[...iD, ...CD];
|
|
332
|
-
ED = rD();
|
|
333
|
-
d = /* @__PURE__ */ new Set(["\x1B", "\x9B"]);
|
|
334
|
-
oD = 39;
|
|
335
|
-
y = "\x07";
|
|
336
|
-
V = "[";
|
|
337
|
-
nD = "]";
|
|
338
|
-
G = "m";
|
|
339
|
-
_ = `${nD}8;;`;
|
|
340
|
-
z = (e2) => `${d.values().next().value}${V}${e2}${G}`;
|
|
341
|
-
K = (e2) => `${d.values().next().value}${_}${e2}${y}`;
|
|
342
|
-
aD = (e2) => e2.split(" ").map((u2) => p(u2));
|
|
343
|
-
k = (e2, u2, t) => {
|
|
344
|
-
const F2 = [...u2];
|
|
345
|
-
let s = false, i = false, D2 = p(P(e2[e2.length - 1]));
|
|
346
|
-
for (const [C2, n] of F2.entries()) {
|
|
347
|
-
const E = p(n);
|
|
348
|
-
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) {
|
|
349
|
-
i ? n === y && (s = false, i = false) : n === G && (s = false);
|
|
350
|
-
continue;
|
|
351
|
-
}
|
|
352
|
-
D2 += E, D2 === t && C2 < F2.length - 1 && (e2.push(""), D2 = 0);
|
|
353
|
-
}
|
|
354
|
-
!D2 && e2[e2.length - 1].length > 0 && e2.length > 1 && (e2[e2.length - 2] += e2.pop());
|
|
355
|
-
};
|
|
356
|
-
hD = (e2) => {
|
|
357
|
-
const u2 = e2.split(" ");
|
|
358
|
-
let t = u2.length;
|
|
359
|
-
for (; t > 0 && !(p(u2[t - 1]) > 0); ) t--;
|
|
360
|
-
return t === u2.length ? e2 : u2.slice(0, t).join(" ") + u2.slice(t).join("");
|
|
361
|
-
};
|
|
362
|
-
lD = (e2, u2, t = {}) => {
|
|
363
|
-
if (t.trim !== false && e2.trim() === "") return "";
|
|
364
|
-
let F2 = "", s, i;
|
|
365
|
-
const D2 = aD(e2);
|
|
366
|
-
let C2 = [""];
|
|
367
|
-
for (const [E, a] of e2.split(" ").entries()) {
|
|
368
|
-
t.trim !== false && (C2[C2.length - 1] = C2[C2.length - 1].trimStart());
|
|
369
|
-
let o2 = p(C2[C2.length - 1]);
|
|
370
|
-
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) {
|
|
371
|
-
const c = u2 - o2, f = 1 + Math.floor((D2[E] - c - 1) / u2);
|
|
372
|
-
Math.floor((D2[E] - 1) / u2) < f && C2.push(""), k(C2, a, u2);
|
|
373
|
-
continue;
|
|
374
|
-
}
|
|
375
|
-
if (o2 + D2[E] > u2 && o2 > 0 && D2[E] > 0) {
|
|
376
|
-
if (t.wordWrap === false && o2 < u2) {
|
|
377
|
-
k(C2, a, u2);
|
|
378
|
-
continue;
|
|
379
|
-
}
|
|
380
|
-
C2.push("");
|
|
381
|
-
}
|
|
382
|
-
if (o2 + D2[E] > u2 && t.wordWrap === false) {
|
|
383
|
-
k(C2, a, u2);
|
|
384
|
-
continue;
|
|
385
|
-
}
|
|
386
|
-
C2[C2.length - 1] += a;
|
|
387
|
-
}
|
|
388
|
-
t.trim !== false && (C2 = C2.map((E) => hD(E)));
|
|
389
|
-
const n = [...C2.join(`
|
|
390
|
-
`)];
|
|
391
|
-
for (const [E, a] of n.entries()) {
|
|
392
|
-
if (F2 += a, d.has(a)) {
|
|
393
|
-
const { groups: c } = new RegExp(`(?:\\${V}(?<code>\\d+)m|\\${_}(?<uri>.*)${y})`).exec(n.slice(E).join("")) || { groups: {} };
|
|
394
|
-
if (c.code !== void 0) {
|
|
395
|
-
const f = Number.parseFloat(c.code);
|
|
396
|
-
s = f === oD ? void 0 : f;
|
|
397
|
-
} else c.uri !== void 0 && (i = c.uri.length === 0 ? void 0 : c.uri);
|
|
398
|
-
}
|
|
399
|
-
const o2 = ED.codes.get(Number(s));
|
|
400
|
-
n[E + 1] === `
|
|
401
|
-
` ? (i && (F2 += K("")), s && o2 && (F2 += z(o2))) : a === `
|
|
402
|
-
` && (s && o2 && (F2 += z(s)), i && (F2 += K(i)));
|
|
403
|
-
}
|
|
404
|
-
return F2;
|
|
405
|
-
};
|
|
406
|
-
xD = ["up", "down", "left", "right", "space", "enter", "cancel"];
|
|
407
|
-
B = { actions: new Set(xD), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]) };
|
|
408
|
-
AD = globalThis.process.platform.startsWith("win");
|
|
409
|
-
S = /* @__PURE__ */ Symbol("clack:cancel");
|
|
410
|
-
gD = Object.defineProperty;
|
|
411
|
-
vD = (e2, u2, t) => u2 in e2 ? gD(e2, u2, { enumerable: true, configurable: true, writable: true, value: t }) : e2[u2] = t;
|
|
412
|
-
h = (e2, u2, t) => (vD(e2, typeof u2 != "symbol" ? u2 + "" : u2, t), t);
|
|
413
|
-
x = class {
|
|
414
|
-
constructor(u2, t = true) {
|
|
415
|
-
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");
|
|
416
|
-
const { input: F2 = j, output: s = M, render: i, signal: D2, ...C2 } = u2;
|
|
417
|
-
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;
|
|
418
592
|
}
|
|
419
593
|
unsubscribe() {
|
|
420
594
|
this._subscribers.clear();
|
|
421
595
|
}
|
|
422
|
-
setSubscriber(
|
|
423
|
-
const
|
|
424
|
-
|
|
596
|
+
setSubscriber(t2, e) {
|
|
597
|
+
const s = this._subscribers.get(t2) ?? [];
|
|
598
|
+
s.push(e), this._subscribers.set(t2, s);
|
|
425
599
|
}
|
|
426
|
-
on(
|
|
427
|
-
this.setSubscriber(
|
|
600
|
+
on(t2, e) {
|
|
601
|
+
this.setSubscriber(t2, { cb: e });
|
|
428
602
|
}
|
|
429
|
-
once(
|
|
430
|
-
this.setSubscriber(
|
|
603
|
+
once(t2, e) {
|
|
604
|
+
this.setSubscriber(t2, { cb: e, once: true });
|
|
431
605
|
}
|
|
432
|
-
emit(
|
|
433
|
-
const
|
|
434
|
-
for (const
|
|
435
|
-
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();
|
|
436
610
|
}
|
|
437
611
|
prompt() {
|
|
438
|
-
return new Promise((
|
|
612
|
+
return new Promise((t2) => {
|
|
439
613
|
if (this._abortSignal) {
|
|
440
|
-
if (this._abortSignal.aborted) return this.state = "cancel", this.close(),
|
|
614
|
+
if (this._abortSignal.aborted) return this.state = "cancel", this.close(), t2(C);
|
|
441
615
|
this._abortSignal.addEventListener("abort", () => {
|
|
442
616
|
this.state = "cancel", this.close();
|
|
443
617
|
}, { once: true });
|
|
444
618
|
}
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D2();
|
|
448
|
-
}, 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", () => {
|
|
449
|
-
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);
|
|
450
621
|
}), this.once("cancel", () => {
|
|
451
|
-
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);
|
|
452
623
|
});
|
|
453
624
|
});
|
|
454
625
|
}
|
|
455
|
-
|
|
456
|
-
|
|
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") {
|
|
457
640
|
if (this.opts.validate) {
|
|
458
|
-
const
|
|
459
|
-
|
|
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));
|
|
460
643
|
}
|
|
461
644
|
this.state !== "error" && (this.state = "submit");
|
|
462
645
|
}
|
|
463
|
-
|
|
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();
|
|
464
647
|
}
|
|
465
648
|
close() {
|
|
466
649
|
this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
|
|
467
|
-
`),
|
|
650
|
+
`), w(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
|
|
468
651
|
}
|
|
469
652
|
restoreCursor() {
|
|
470
|
-
const
|
|
653
|
+
const t2 = wrapAnsi(this._prevFrame, process.stdout.columns, { hard: true, trim: false }).split(`
|
|
471
654
|
`).length - 1;
|
|
472
|
-
this.output.write(import_sisteransi.cursor.move(-999,
|
|
655
|
+
this.output.write(import_sisteransi.cursor.move(-999, t2 * -1));
|
|
473
656
|
}
|
|
474
657
|
render() {
|
|
475
|
-
const
|
|
476
|
-
if (
|
|
658
|
+
const t2 = wrapAnsi(this._render(this) ?? "", process.stdout.columns, { hard: true, trim: false });
|
|
659
|
+
if (t2 !== this._prevFrame) {
|
|
477
660
|
if (this.state === "initial") this.output.write(import_sisteransi.cursor.hide);
|
|
478
661
|
else {
|
|
479
|
-
const
|
|
480
|
-
if (this.restoreCursor(),
|
|
481
|
-
const
|
|
482
|
-
|
|
483
|
-
|
|
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(`
|
|
484
673
|
`);
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
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
|
+
}
|
|
496
689
|
}
|
|
497
690
|
this.output.write(import_sisteransi.erase.down());
|
|
498
691
|
}
|
|
499
|
-
this.output.write(
|
|
692
|
+
this.output.write(t2), this.state === "initial" && (this.state = "active"), this._prevFrame = t2;
|
|
500
693
|
}
|
|
501
694
|
}
|
|
502
695
|
};
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
696
|
+
nt = class extends p {
|
|
697
|
+
options;
|
|
698
|
+
cursor = 0;
|
|
699
|
+
get _selectedValue() {
|
|
700
|
+
return this.options[this.cursor];
|
|
701
|
+
}
|
|
702
|
+
changeValue() {
|
|
703
|
+
this.value = this._selectedValue.value;
|
|
704
|
+
}
|
|
705
|
+
constructor(t2) {
|
|
706
|
+
super(t2, false), this.options = t2.options;
|
|
707
|
+
const e = this.options.findIndex(({ value: i }) => i === t2.initialValue), s = e === -1 ? 0 : e;
|
|
708
|
+
this.cursor = this.options[s].disabled ? d(s, 1, this.options) : s, this.changeValue(), this.on("cursor", (i) => {
|
|
709
|
+
switch (i) {
|
|
511
710
|
case "left":
|
|
512
711
|
case "up":
|
|
513
|
-
this.cursor = this.cursor
|
|
712
|
+
this.cursor = d(this.cursor, -1, this.options);
|
|
514
713
|
break;
|
|
515
714
|
case "down":
|
|
516
715
|
case "right":
|
|
517
|
-
this.cursor = this.cursor
|
|
716
|
+
this.cursor = d(this.cursor, 1, this.options);
|
|
518
717
|
break;
|
|
519
718
|
}
|
|
520
719
|
this.changeValue();
|
|
521
720
|
});
|
|
522
721
|
}
|
|
523
|
-
get _value() {
|
|
524
|
-
return this.options[this.cursor];
|
|
525
|
-
}
|
|
526
|
-
changeValue() {
|
|
527
|
-
this.value = this._value.value;
|
|
528
|
-
}
|
|
529
722
|
};
|
|
530
723
|
}
|
|
531
724
|
});
|
|
532
725
|
|
|
533
|
-
// node_modules/.bun/@clack+prompts@
|
|
534
|
-
import { stripVTControlCharacters as
|
|
535
|
-
import
|
|
536
|
-
|
|
537
|
-
|
|
726
|
+
// node_modules/.bun/@clack+prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs
|
|
727
|
+
import { styleText as t, stripVTControlCharacters as ne } from "node:util";
|
|
728
|
+
import P2 from "node:process";
|
|
729
|
+
import { existsSync as Xe, lstatSync as we, readdirSync as ze } from "node:fs";
|
|
730
|
+
import { dirname as be, join as Qe } from "node:path";
|
|
731
|
+
function Ze() {
|
|
732
|
+
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";
|
|
538
733
|
}
|
|
539
|
-
var
|
|
540
|
-
var
|
|
541
|
-
"node_modules/.bun/@clack+prompts@
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
734
|
+
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, O2, pt, ft, vt, wt, Ct, fe, Ve, re, _t, je;
|
|
735
|
+
var init_dist4 = __esm({
|
|
736
|
+
"node_modules/.bun/@clack+prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs"() {
|
|
737
|
+
init_utils2();
|
|
738
|
+
init_dist3();
|
|
739
|
+
init_dist3();
|
|
740
|
+
init_main();
|
|
741
|
+
init_dist2();
|
|
546
742
|
import_sisteransi2 = __toESM(require_src(), 1);
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
d2 =
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
743
|
+
ee = Ze();
|
|
744
|
+
ae = () => process.env.CI === "true";
|
|
745
|
+
w2 = (e, i) => ee ? e : i;
|
|
746
|
+
_e = w2("\u25C6", "*");
|
|
747
|
+
oe = w2("\u25A0", "x");
|
|
748
|
+
ue = w2("\u25B2", "x");
|
|
749
|
+
F = w2("\u25C7", "o");
|
|
750
|
+
le = w2("\u250C", "T");
|
|
751
|
+
d2 = w2("\u2502", "|");
|
|
752
|
+
E2 = w2("\u2514", "\u2014");
|
|
753
|
+
Ie = w2("\u2510", "T");
|
|
754
|
+
Ee = w2("\u2518", "\u2014");
|
|
755
|
+
z2 = w2("\u25CF", ">");
|
|
756
|
+
H2 = w2("\u25CB", " ");
|
|
757
|
+
te = w2("\u25FB", "[\u2022]");
|
|
758
|
+
U = w2("\u25FC", "[+]");
|
|
759
|
+
J = w2("\u25FB", "[ ]");
|
|
760
|
+
xe = w2("\u25AA", "\u2022");
|
|
761
|
+
se = w2("\u2500", "-");
|
|
762
|
+
ce = w2("\u256E", "+");
|
|
763
|
+
Ge = w2("\u251C", "+");
|
|
764
|
+
$e = w2("\u256F", "+");
|
|
765
|
+
de = w2("\u2570", "+");
|
|
766
|
+
Oe = w2("\u256D", "+");
|
|
767
|
+
he = w2("\u25CF", "\u2022");
|
|
768
|
+
pe = w2("\u25C6", "*");
|
|
769
|
+
me = w2("\u25B2", "!");
|
|
770
|
+
ge = w2("\u25A0", "x");
|
|
771
|
+
V2 = (e) => {
|
|
772
|
+
switch (e) {
|
|
572
773
|
case "initial":
|
|
573
774
|
case "active":
|
|
574
|
-
return
|
|
775
|
+
return t("cyan", _e);
|
|
575
776
|
case "cancel":
|
|
576
|
-
return
|
|
777
|
+
return t("red", oe);
|
|
577
778
|
case "error":
|
|
578
|
-
return
|
|
779
|
+
return t("yellow", ue);
|
|
579
780
|
case "submit":
|
|
580
|
-
return
|
|
781
|
+
return t("green", F);
|
|
581
782
|
}
|
|
582
783
|
};
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
return `${r2}${import_picocolors.default.gray(o)} ${n(this.options[this.cursor], "cancelled")}
|
|
616
|
-
${import_picocolors.default.gray(o)}`;
|
|
617
|
-
default:
|
|
618
|
-
return `${r2}${import_picocolors.default.cyan(o)} ${G2({ cursor: this.cursor, options: this.options, maxItems: t.maxItems, style: (i, s) => n(i, s ? "active" : "inactive") }).join(`
|
|
619
|
-
${import_picocolors.default.cyan(o)} `)}
|
|
620
|
-
${import_picocolors.default.cyan(d2)}
|
|
621
|
-
`;
|
|
622
|
-
}
|
|
623
|
-
} }).prompt();
|
|
624
|
-
};
|
|
625
|
-
Me = (t = "", n = "") => {
|
|
626
|
-
const r2 = `
|
|
627
|
-
${t}
|
|
628
|
-
`.split(`
|
|
629
|
-
`), i = S2(n).length, s = Math.max(r2.reduce((a, l2) => {
|
|
630
|
-
const $2 = S2(l2);
|
|
631
|
-
return $2.length > a ? $2.length : a;
|
|
632
|
-
}, 0), i) + 2, c = r2.map((a) => `${import_picocolors.default.gray(o)} ${import_picocolors.default.dim(a)}${" ".repeat(s - S2(a).length)}${import_picocolors.default.gray(o)}`).join(`
|
|
633
|
-
`);
|
|
634
|
-
process.stdout.write(`${import_picocolors.default.gray(o)}
|
|
635
|
-
${import_picocolors.default.green(C)} ${import_picocolors.default.reset(n)} ${import_picocolors.default.gray(_2.repeat(Math.max(s - i - 1, 1)) + me)}
|
|
636
|
-
${c}
|
|
637
|
-
${import_picocolors.default.gray(de + _2.repeat(s + 2) + pe)}
|
|
638
|
-
`);
|
|
639
|
-
};
|
|
640
|
-
xe = (t = "") => {
|
|
641
|
-
process.stdout.write(`${import_picocolors.default.gray(d2)} ${import_picocolors.default.red(t)}
|
|
642
|
-
|
|
784
|
+
ye = (e) => {
|
|
785
|
+
switch (e) {
|
|
786
|
+
case "initial":
|
|
787
|
+
case "active":
|
|
788
|
+
return t("cyan", d2);
|
|
789
|
+
case "cancel":
|
|
790
|
+
return t("red", d2);
|
|
791
|
+
case "error":
|
|
792
|
+
return t("yellow", d2);
|
|
793
|
+
case "submit":
|
|
794
|
+
return t("green", d2);
|
|
795
|
+
}
|
|
796
|
+
};
|
|
797
|
+
et2 = (e, i, s, r, u2) => {
|
|
798
|
+
let n = i, o = 0;
|
|
799
|
+
for (let c2 = s; c2 < r; c2++) {
|
|
800
|
+
const a = e[c2];
|
|
801
|
+
if (n = n - a.length, o++, n <= u2) break;
|
|
802
|
+
}
|
|
803
|
+
return { lineCount: n, removals: o };
|
|
804
|
+
};
|
|
805
|
+
Y2 = ({ cursor: e, options: i, style: s, output: r = process.stdout, maxItems: u2 = Number.POSITIVE_INFINITY, columnPadding: n = 0, rowPadding: o = 4 }) => {
|
|
806
|
+
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);
|
|
807
|
+
let p2 = 0;
|
|
808
|
+
e >= y2 - 3 && (p2 = Math.max(Math.min(e - y2 + 3, i.length - y2), 0));
|
|
809
|
+
let m = y2 < i.length && p2 > 0, g = y2 < i.length && p2 + y2 < i.length;
|
|
810
|
+
const S2 = Math.min(p2 + y2, i.length), h = [];
|
|
811
|
+
let f = 0;
|
|
812
|
+
m && f++, g && f++;
|
|
813
|
+
const v = p2 + (m ? 1 : 0), T = S2 - (g ? 1 : 0);
|
|
814
|
+
for (let b = v; b < T; b++) {
|
|
815
|
+
const x = wrapAnsi(s(i[b], b === e), c2, { hard: true, trim: false }).split(`
|
|
643
816
|
`);
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
const
|
|
817
|
+
h.push(x), f += x.length;
|
|
818
|
+
}
|
|
819
|
+
if (f > $2) {
|
|
820
|
+
let b = 0, x = 0, G2 = f;
|
|
821
|
+
const M2 = e - v, R2 = (j2, D2) => et2(h, G2, j2, D2, $2);
|
|
822
|
+
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));
|
|
823
|
+
}
|
|
824
|
+
const C2 = [];
|
|
825
|
+
m && C2.push(l);
|
|
826
|
+
for (const b of h) for (const x of b) C2.push(x);
|
|
827
|
+
return g && C2.push(l), C2;
|
|
828
|
+
};
|
|
829
|
+
O2 = { message: (e = [], { symbol: i = t("gray", d2), secondarySymbol: s = t("gray", d2), output: r = process.stdout, spacing: u2 = 1, withGuide: n } = {}) => {
|
|
830
|
+
const o = [], c2 = n ?? u.withGuide, a = c2 ? s : "", l = c2 ? `${i} ` : "", $2 = c2 ? `${s} ` : "";
|
|
831
|
+
for (let p2 = 0; p2 < u2; p2++) o.push(a);
|
|
832
|
+
const y2 = Array.isArray(e) ? e : e.split(`
|
|
649
833
|
`);
|
|
650
|
-
|
|
834
|
+
if (y2.length > 0) {
|
|
835
|
+
const [p2, ...m] = y2;
|
|
836
|
+
p2.length > 0 ? o.push(`${l}${p2}`) : o.push(c2 ? i : "");
|
|
837
|
+
for (const g of m) g.length > 0 ? o.push(`${$2}${g}`) : o.push(c2 ? s : "");
|
|
651
838
|
}
|
|
652
|
-
|
|
839
|
+
r.write(`${o.join(`
|
|
653
840
|
`)}
|
|
654
841
|
`);
|
|
655
|
-
}, info: (
|
|
656
|
-
|
|
657
|
-
}, success: (
|
|
658
|
-
|
|
659
|
-
}, step: (
|
|
660
|
-
|
|
661
|
-
}, warn: (
|
|
662
|
-
|
|
663
|
-
}, warning: (
|
|
664
|
-
|
|
665
|
-
}, error: (
|
|
666
|
-
|
|
842
|
+
}, info: (e, i) => {
|
|
843
|
+
O2.message(e, { ...i, symbol: t("blue", he) });
|
|
844
|
+
}, success: (e, i) => {
|
|
845
|
+
O2.message(e, { ...i, symbol: t("green", pe) });
|
|
846
|
+
}, step: (e, i) => {
|
|
847
|
+
O2.message(e, { ...i, symbol: t("green", F) });
|
|
848
|
+
}, warn: (e, i) => {
|
|
849
|
+
O2.message(e, { ...i, symbol: t("yellow", me) });
|
|
850
|
+
}, warning: (e, i) => {
|
|
851
|
+
O2.warn(e, i);
|
|
852
|
+
}, error: (e, i) => {
|
|
853
|
+
O2.message(e, { ...i, symbol: t("red", ge) });
|
|
667
854
|
} };
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
const p2 = (m2) => {
|
|
673
|
-
const h2 = m2 > 1 ? "Something went wrong" : "Canceled";
|
|
674
|
-
a && N2(h2, m2);
|
|
675
|
-
}, v = () => p2(2), f = () => p2(1), j2 = () => {
|
|
676
|
-
process.on("uncaughtExceptionMonitor", v), process.on("unhandledRejection", v), process.on("SIGINT", f), process.on("SIGTERM", f), process.on("exit", p2);
|
|
677
|
-
}, E = () => {
|
|
678
|
-
process.removeListener("uncaughtExceptionMonitor", v), process.removeListener("unhandledRejection", v), process.removeListener("SIGINT", f), process.removeListener("SIGTERM", f), process.removeListener("exit", p2);
|
|
679
|
-
}, B2 = () => {
|
|
680
|
-
if ($2 === void 0) return;
|
|
681
|
-
i && process.stdout.write(`
|
|
855
|
+
pt = (e = "", i) => {
|
|
856
|
+
const s = i?.output ?? process.stdout, r = i?.withGuide ?? u.withGuide ? `${t("gray", E2)} ` : "";
|
|
857
|
+
s.write(`${r}${t("red", e)}
|
|
858
|
+
|
|
682
859
|
`);
|
|
683
|
-
|
|
860
|
+
};
|
|
861
|
+
ft = (e) => t("dim", e);
|
|
862
|
+
vt = (e, i, s) => {
|
|
863
|
+
const r = { hard: true, trim: false }, u2 = wrapAnsi(e, i, r).split(`
|
|
864
|
+
`), 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);
|
|
865
|
+
return wrapAnsi(e, c2, r);
|
|
866
|
+
};
|
|
867
|
+
wt = (e = "", i = "", s) => {
|
|
868
|
+
const r = s?.output ?? P2.stdout, u2 = s?.withGuide ?? u.withGuide, n = s?.format ?? ft, o = ["", ...vt(e, O(r) - 6, n).split(`
|
|
869
|
+
`).map(n), ""], c2 = dist_default2(i), a = Math.max(o.reduce((p2, m) => {
|
|
870
|
+
const g = dist_default2(m);
|
|
871
|
+
return g > p2 ? g : p2;
|
|
872
|
+
}, 0), c2) + 2, l = o.map((p2) => `${t("gray", d2)} ${p2}${" ".repeat(a - dist_default2(p2))}${t("gray", d2)}`).join(`
|
|
873
|
+
`), $2 = u2 ? `${t("gray", d2)}
|
|
874
|
+
` : "", y2 = u2 ? Ge : de;
|
|
875
|
+
r.write(`${$2}${t("green", F)} ${t("reset", i)} ${t("gray", se.repeat(Math.max(a - c2 - 1, 1)) + ce)}
|
|
876
|
+
${l}
|
|
877
|
+
${t("gray", y2 + se.repeat(a + 2) + $e)}
|
|
684
878
|
`);
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
879
|
+
};
|
|
880
|
+
Ct = (e) => t("magenta", e);
|
|
881
|
+
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 } = {}) => {
|
|
882
|
+
const l = ae();
|
|
883
|
+
let $2, y2, p2 = false, m = false, g = "", S2, h = performance.now();
|
|
884
|
+
const f = O(s), v = a?.styleFrame ?? Ct, T = (_2) => {
|
|
885
|
+
const A2 = _2 > 1 ? u2 ?? u.messages.error : r ?? u.messages.cancel;
|
|
886
|
+
m = _2 === 1, p2 && (W(A2, _2), m && typeof i == "function" && i());
|
|
887
|
+
}, C2 = () => T(2), b = () => T(1), x = () => {
|
|
888
|
+
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);
|
|
889
|
+
}, G2 = () => {
|
|
890
|
+
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);
|
|
891
|
+
}, M2 = () => {
|
|
892
|
+
if (S2 === void 0) return;
|
|
893
|
+
l && s.write(`
|
|
691
894
|
`);
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
895
|
+
const _2 = wrapAnsi(S2, f, { hard: true, trim: false }).split(`
|
|
896
|
+
`);
|
|
897
|
+
_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());
|
|
898
|
+
}, R2 = (_2) => _2.replace(/\.+$/, ""), j2 = (_2) => {
|
|
899
|
+
const A2 = (performance.now() - _2) / 1e3, k = Math.floor(A2 / 60), L = Math.floor(A2 % 60);
|
|
900
|
+
return k > 0 ? `[${k}m ${L}s]` : `[${L}s]`;
|
|
901
|
+
}, D2 = a.withGuide ?? u.withGuide, ie = (_2 = "") => {
|
|
902
|
+
p2 = true, $2 = z({ output: s }), g = R2(_2), h = performance.now(), D2 && s.write(`${t("gray", d2)}
|
|
903
|
+
`);
|
|
904
|
+
let A2 = 0, k = 0;
|
|
905
|
+
x(), y2 = setInterval(() => {
|
|
906
|
+
if (l && g === S2) return;
|
|
907
|
+
M2(), S2 = g;
|
|
908
|
+
const L = v(n[A2]);
|
|
909
|
+
let Z;
|
|
910
|
+
if (l) Z = `${L} ${g}...`;
|
|
911
|
+
else if (e === "timer") Z = `${L} ${g} ${j2(h)}`;
|
|
699
912
|
else {
|
|
700
|
-
const
|
|
701
|
-
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
913
|
+
const Be = ".".repeat(Math.floor(k)).slice(0, 3);
|
|
914
|
+
Z = `${L} ${g}${Be}`;
|
|
915
|
+
}
|
|
916
|
+
const Ne = wrapAnsi(Z, f, { hard: true, trim: false });
|
|
917
|
+
s.write(Ne), A2 = A2 + 1 < n.length ? A2 + 1 : 0, k = k < 4 ? k + 0.125 : 0;
|
|
918
|
+
}, o);
|
|
919
|
+
}, W = (_2 = "", A2 = 0, k = false) => {
|
|
920
|
+
if (!p2) return;
|
|
921
|
+
p2 = false, clearInterval(y2), M2();
|
|
922
|
+
const L = A2 === 0 ? t("green", F) : A2 === 1 ? t("red", oe) : t("red", ue);
|
|
923
|
+
g = _2 ?? g, k || (e === "timer" ? s.write(`${L} ${g} ${j2(h)}
|
|
924
|
+
`) : s.write(`${L} ${g}
|
|
925
|
+
`)), G2(), $2();
|
|
711
926
|
};
|
|
712
|
-
return { start:
|
|
713
|
-
|
|
927
|
+
return { start: ie, stop: (_2 = "") => W(_2, 0), message: (_2 = "") => {
|
|
928
|
+
g = R2(_2 ?? g);
|
|
929
|
+
}, cancel: (_2 = "") => W(_2, 1), error: (_2 = "") => W(_2, 2), clear: () => W("", 0, true), get isCancelled() {
|
|
930
|
+
return m;
|
|
714
931
|
} };
|
|
715
932
|
};
|
|
933
|
+
Ve = { light: w2("\u2500", "-"), heavy: w2("\u2501", "="), block: w2("\u2588", "#") };
|
|
934
|
+
re = (e, i) => e.includes(`
|
|
935
|
+
`) ? e.split(`
|
|
936
|
+
`).map((s) => i(s)).join(`
|
|
937
|
+
`) : i(e);
|
|
938
|
+
_t = (e) => {
|
|
939
|
+
const i = (s, r) => {
|
|
940
|
+
const u2 = s.label ?? String(s.value);
|
|
941
|
+
switch (r) {
|
|
942
|
+
case "disabled":
|
|
943
|
+
return `${t("gray", H2)} ${re(u2, (n) => t("gray", n))}${s.hint ? ` ${t("dim", `(${s.hint ?? "disabled"})`)}` : ""}`;
|
|
944
|
+
case "selected":
|
|
945
|
+
return `${re(u2, (n) => t("dim", n))}`;
|
|
946
|
+
case "active":
|
|
947
|
+
return `${t("green", z2)} ${u2}${s.hint ? ` ${t("dim", `(${s.hint})`)}` : ""}`;
|
|
948
|
+
case "cancelled":
|
|
949
|
+
return `${re(u2, (n) => t(["strikethrough", "dim"], n))}`;
|
|
950
|
+
default:
|
|
951
|
+
return `${t("dim", H2)} ${re(u2, (n) => t("dim", n))}`;
|
|
952
|
+
}
|
|
953
|
+
};
|
|
954
|
+
return new nt({ options: e.options, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue, render() {
|
|
955
|
+
const s = e.withGuide ?? u.withGuide, r = `${V2(this.state)} `, u2 = `${ye(this.state)} `, n = R(e.output, e.message, u2, r), o = `${s ? `${t("gray", d2)}
|
|
956
|
+
` : ""}${n}
|
|
957
|
+
`;
|
|
958
|
+
switch (this.state) {
|
|
959
|
+
case "submit": {
|
|
960
|
+
const c2 = s ? `${t("gray", d2)} ` : "", a = R(e.output, i(this.options[this.cursor], "selected"), c2);
|
|
961
|
+
return `${o}${a}`;
|
|
962
|
+
}
|
|
963
|
+
case "cancel": {
|
|
964
|
+
const c2 = s ? `${t("gray", d2)} ` : "", a = R(e.output, i(this.options[this.cursor], "cancelled"), c2);
|
|
965
|
+
return `${o}${a}${s ? `
|
|
966
|
+
${t("gray", d2)}` : ""}`;
|
|
967
|
+
}
|
|
968
|
+
default: {
|
|
969
|
+
const c2 = s ? `${t("cyan", d2)} ` : "", a = s ? t("cyan", E2) : "", l = o.split(`
|
|
970
|
+
`).length, $2 = s ? 2 : 1;
|
|
971
|
+
return `${o}${c2}${Y2({ output: e.output, cursor: this.cursor, options: this.options, maxItems: e.maxItems, columnPadding: c2.length, rowPadding: l + $2, style: (y2, p2) => i(y2, y2.disabled ? "disabled" : p2 ? "active" : "inactive") }).join(`
|
|
972
|
+
${c2}`)}
|
|
973
|
+
${a}
|
|
974
|
+
`;
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
} }).prompt();
|
|
978
|
+
};
|
|
979
|
+
je = `${t("gray", d2)} `;
|
|
716
980
|
}
|
|
717
981
|
});
|
|
718
982
|
|
|
@@ -761,9 +1025,9 @@ var colors, currentLogLevel, log, error, warn, info, success;
|
|
|
761
1025
|
var init_cli_output = __esm({
|
|
762
1026
|
"packages/tooling/src/utils/cli-output.ts"() {
|
|
763
1027
|
"use strict";
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
1028
|
+
init_utils2();
|
|
1029
|
+
init_dist4();
|
|
1030
|
+
init_dist4();
|
|
767
1031
|
colors = {
|
|
768
1032
|
reset: "\x1B[0m",
|
|
769
1033
|
// Success (green)
|
|
@@ -798,7 +1062,7 @@ var init_cli_output = __esm({
|
|
|
798
1062
|
error(...args) {
|
|
799
1063
|
if (currentLogLevel < 0 /* Quiet */) return;
|
|
800
1064
|
const message = formatMessage(...args);
|
|
801
|
-
|
|
1065
|
+
O2.error(colorize(message, colors.brightRed));
|
|
802
1066
|
},
|
|
803
1067
|
/**
|
|
804
1068
|
* Logs a warning message (shows at Normal level and above)
|
|
@@ -807,7 +1071,7 @@ var init_cli_output = __esm({
|
|
|
807
1071
|
warn(...args) {
|
|
808
1072
|
if (currentLogLevel < 1 /* Normal */) return;
|
|
809
1073
|
const message = formatMessage(...args);
|
|
810
|
-
|
|
1074
|
+
O2.warn(colorize(message, colors.brightYellow));
|
|
811
1075
|
},
|
|
812
1076
|
/**
|
|
813
1077
|
* Logs an info message (shows at Normal level and above)
|
|
@@ -816,7 +1080,7 @@ var init_cli_output = __esm({
|
|
|
816
1080
|
info(...args) {
|
|
817
1081
|
if (currentLogLevel < 1 /* Normal */) return;
|
|
818
1082
|
const message = formatMessage(...args);
|
|
819
|
-
|
|
1083
|
+
O2.info(colorize(message, colors.brightCyan));
|
|
820
1084
|
},
|
|
821
1085
|
/**
|
|
822
1086
|
* Logs a success message (shows at Normal level and above)
|
|
@@ -825,7 +1089,7 @@ var init_cli_output = __esm({
|
|
|
825
1089
|
success(...args) {
|
|
826
1090
|
if (currentLogLevel < 1 /* Normal */) return;
|
|
827
1091
|
const message = formatMessage(...args);
|
|
828
|
-
|
|
1092
|
+
O2.success(colorize(message, colors.brightGreen));
|
|
829
1093
|
},
|
|
830
1094
|
/**
|
|
831
1095
|
* Logs a debug message (only shows at Verbose level and above)
|
|
@@ -834,7 +1098,7 @@ var init_cli_output = __esm({
|
|
|
834
1098
|
debug(...args) {
|
|
835
1099
|
if (currentLogLevel < 2 /* Verbose */) return;
|
|
836
1100
|
const timeStamp = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
|
|
837
|
-
|
|
1101
|
+
O2.message(
|
|
838
1102
|
colorize(
|
|
839
1103
|
`[${timeStamp}] \u{1F50D} DEBUG: ${formatMessage(...args)}`,
|
|
840
1104
|
colors.gray
|
|
@@ -848,7 +1112,7 @@ var init_cli_output = __esm({
|
|
|
848
1112
|
trace(...args) {
|
|
849
1113
|
if (currentLogLevel < 3 /* Debug */) return;
|
|
850
1114
|
const timeStamp = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
|
|
851
|
-
|
|
1115
|
+
O2.message(
|
|
852
1116
|
colorize(
|
|
853
1117
|
`[${timeStamp}] \u{1F52C} TRACE: ${formatMessage(...args)}`,
|
|
854
1118
|
colors.gray
|
|
@@ -868,7 +1132,7 @@ var DO_NOT_DEV_ERROR_CODES, DoNotDevError;
|
|
|
868
1132
|
var init_errors = __esm({
|
|
869
1133
|
"packages/tooling/src/utils/errors.ts"() {
|
|
870
1134
|
"use strict";
|
|
871
|
-
|
|
1135
|
+
init_utils2();
|
|
872
1136
|
DO_NOT_DEV_ERROR_CODES = {
|
|
873
1137
|
CONFIGURATION_ERROR: "configuration-error",
|
|
874
1138
|
CONFIG_NOT_FOUND: "config-not-found",
|
|
@@ -1009,7 +1273,7 @@ var init_errors = __esm({
|
|
|
1009
1273
|
var require_array = __commonJS({
|
|
1010
1274
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
|
|
1011
1275
|
"use strict";
|
|
1012
|
-
|
|
1276
|
+
init_utils2();
|
|
1013
1277
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1014
1278
|
exports.splitWhen = exports.flatten = void 0;
|
|
1015
1279
|
function flatten(items) {
|
|
@@ -1037,7 +1301,7 @@ var require_array = __commonJS({
|
|
|
1037
1301
|
var require_errno = __commonJS({
|
|
1038
1302
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js"(exports) {
|
|
1039
1303
|
"use strict";
|
|
1040
|
-
|
|
1304
|
+
init_utils2();
|
|
1041
1305
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1042
1306
|
exports.isEnoentCodeError = void 0;
|
|
1043
1307
|
function isEnoentCodeError(error2) {
|
|
@@ -1051,7 +1315,7 @@ var require_errno = __commonJS({
|
|
|
1051
1315
|
var require_fs = __commonJS({
|
|
1052
1316
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js"(exports) {
|
|
1053
1317
|
"use strict";
|
|
1054
|
-
|
|
1318
|
+
init_utils2();
|
|
1055
1319
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1056
1320
|
exports.createDirentFromStats = void 0;
|
|
1057
1321
|
var DirentFromStats = class {
|
|
@@ -1077,7 +1341,7 @@ var require_fs = __commonJS({
|
|
|
1077
1341
|
var require_path = __commonJS({
|
|
1078
1342
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js"(exports) {
|
|
1079
1343
|
"use strict";
|
|
1080
|
-
|
|
1344
|
+
init_utils2();
|
|
1081
1345
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1082
1346
|
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
1083
1347
|
var os = __require("os");
|
|
@@ -1130,7 +1394,7 @@ var require_path = __commonJS({
|
|
|
1130
1394
|
// node_modules/.bun/is-extglob@2.1.1/node_modules/is-extglob/index.js
|
|
1131
1395
|
var require_is_extglob = __commonJS({
|
|
1132
1396
|
"node_modules/.bun/is-extglob@2.1.1/node_modules/is-extglob/index.js"(exports, module) {
|
|
1133
|
-
|
|
1397
|
+
init_utils2();
|
|
1134
1398
|
module.exports = function isExtglob(str) {
|
|
1135
1399
|
if (typeof str !== "string" || str === "") {
|
|
1136
1400
|
return false;
|
|
@@ -1148,7 +1412,7 @@ var require_is_extglob = __commonJS({
|
|
|
1148
1412
|
// node_modules/.bun/is-glob@4.0.3/node_modules/is-glob/index.js
|
|
1149
1413
|
var require_is_glob = __commonJS({
|
|
1150
1414
|
"node_modules/.bun/is-glob@4.0.3/node_modules/is-glob/index.js"(exports, module) {
|
|
1151
|
-
|
|
1415
|
+
init_utils2();
|
|
1152
1416
|
var isExtglob = require_is_extglob();
|
|
1153
1417
|
var chars = { "{": "}", "(": ")", "[": "]" };
|
|
1154
1418
|
var strictCheck = function(str) {
|
|
@@ -1281,7 +1545,7 @@ var require_is_glob = __commonJS({
|
|
|
1281
1545
|
var require_glob_parent = __commonJS({
|
|
1282
1546
|
"node_modules/.bun/glob-parent@5.1.2/node_modules/glob-parent/index.js"(exports, module) {
|
|
1283
1547
|
"use strict";
|
|
1284
|
-
|
|
1548
|
+
init_utils2();
|
|
1285
1549
|
var isGlob = require_is_glob();
|
|
1286
1550
|
var pathPosixDirname = __require("path").posix.dirname;
|
|
1287
1551
|
var isWin32 = __require("os").platform() === "win32";
|
|
@@ -1311,7 +1575,7 @@ var require_glob_parent = __commonJS({
|
|
|
1311
1575
|
var require_utils = __commonJS({
|
|
1312
1576
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/utils.js"(exports) {
|
|
1313
1577
|
"use strict";
|
|
1314
|
-
|
|
1578
|
+
init_utils2();
|
|
1315
1579
|
exports.isInteger = (num) => {
|
|
1316
1580
|
if (typeof num === "number") {
|
|
1317
1581
|
return Number.isInteger(num);
|
|
@@ -1394,7 +1658,7 @@ var require_utils = __commonJS({
|
|
|
1394
1658
|
var require_stringify = __commonJS({
|
|
1395
1659
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/stringify.js"(exports, module) {
|
|
1396
1660
|
"use strict";
|
|
1397
|
-
|
|
1661
|
+
init_utils2();
|
|
1398
1662
|
var utils = require_utils();
|
|
1399
1663
|
module.exports = (ast, options = {}) => {
|
|
1400
1664
|
const stringify2 = (node, parent = {}) => {
|
|
@@ -1426,7 +1690,7 @@ var require_stringify = __commonJS({
|
|
|
1426
1690
|
var require_is_number = __commonJS({
|
|
1427
1691
|
"node_modules/.bun/is-number@7.0.0/node_modules/is-number/index.js"(exports, module) {
|
|
1428
1692
|
"use strict";
|
|
1429
|
-
|
|
1693
|
+
init_utils2();
|
|
1430
1694
|
module.exports = function(num) {
|
|
1431
1695
|
if (typeof num === "number") {
|
|
1432
1696
|
return num - num === 0;
|
|
@@ -1443,7 +1707,7 @@ var require_is_number = __commonJS({
|
|
|
1443
1707
|
var require_to_regex_range = __commonJS({
|
|
1444
1708
|
"node_modules/.bun/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(exports, module) {
|
|
1445
1709
|
"use strict";
|
|
1446
|
-
|
|
1710
|
+
init_utils2();
|
|
1447
1711
|
var isNumber = require_is_number();
|
|
1448
1712
|
var toRegexRange = (min, max, options) => {
|
|
1449
1713
|
if (isNumber(min) === false) {
|
|
@@ -1468,8 +1732,8 @@ var require_to_regex_range = __commonJS({
|
|
|
1468
1732
|
return toRegexRange.cache[cacheKey].result;
|
|
1469
1733
|
}
|
|
1470
1734
|
let a = Math.min(min, max);
|
|
1471
|
-
let
|
|
1472
|
-
if (Math.abs(a -
|
|
1735
|
+
let b = Math.max(min, max);
|
|
1736
|
+
if (Math.abs(a - b) === 1) {
|
|
1473
1737
|
let result = min + "|" + max;
|
|
1474
1738
|
if (opts.capture) {
|
|
1475
1739
|
return `(${result})`;
|
|
@@ -1480,7 +1744,7 @@ var require_to_regex_range = __commonJS({
|
|
|
1480
1744
|
return `(?:${result})`;
|
|
1481
1745
|
}
|
|
1482
1746
|
let isPadded = hasPadding(min) || hasPadding(max);
|
|
1483
|
-
let state = { min, max, a, b
|
|
1747
|
+
let state = { min, max, a, b };
|
|
1484
1748
|
let positives = [];
|
|
1485
1749
|
let negatives = [];
|
|
1486
1750
|
if (isPadded) {
|
|
@@ -1488,12 +1752,12 @@ var require_to_regex_range = __commonJS({
|
|
|
1488
1752
|
state.maxLen = String(state.max).length;
|
|
1489
1753
|
}
|
|
1490
1754
|
if (a < 0) {
|
|
1491
|
-
let newMin =
|
|
1755
|
+
let newMin = b < 0 ? Math.abs(b) : 1;
|
|
1492
1756
|
negatives = splitToPatterns(newMin, Math.abs(a), state, opts);
|
|
1493
1757
|
a = state.a = 0;
|
|
1494
1758
|
}
|
|
1495
|
-
if (
|
|
1496
|
-
positives = splitToPatterns(a,
|
|
1759
|
+
if (b >= 0) {
|
|
1760
|
+
positives = splitToPatterns(a, b, state, opts);
|
|
1497
1761
|
}
|
|
1498
1762
|
state.negatives = negatives;
|
|
1499
1763
|
state.positives = positives;
|
|
@@ -1597,13 +1861,13 @@ var require_to_regex_range = __commonJS({
|
|
|
1597
1861
|
}
|
|
1598
1862
|
return result;
|
|
1599
1863
|
}
|
|
1600
|
-
function zip(a,
|
|
1864
|
+
function zip(a, b) {
|
|
1601
1865
|
let arr = [];
|
|
1602
|
-
for (let i = 0; i < a.length; i++) arr.push([a[i],
|
|
1866
|
+
for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]);
|
|
1603
1867
|
return arr;
|
|
1604
1868
|
}
|
|
1605
|
-
function compare(a,
|
|
1606
|
-
return a >
|
|
1869
|
+
function compare(a, b) {
|
|
1870
|
+
return a > b ? 1 : b > a ? -1 : 0;
|
|
1607
1871
|
}
|
|
1608
1872
|
function contains(arr, key, val) {
|
|
1609
1873
|
return arr.some((ele) => ele[key] === val);
|
|
@@ -1621,8 +1885,8 @@ var require_to_regex_range = __commonJS({
|
|
|
1621
1885
|
}
|
|
1622
1886
|
return "";
|
|
1623
1887
|
}
|
|
1624
|
-
function toCharacterClass(a,
|
|
1625
|
-
return `[${a}${
|
|
1888
|
+
function toCharacterClass(a, b, options) {
|
|
1889
|
+
return `[${a}${b - a === 1 ? "" : "-"}${b}]`;
|
|
1626
1890
|
}
|
|
1627
1891
|
function hasPadding(str) {
|
|
1628
1892
|
return /^-?(0+)\d/.test(str);
|
|
@@ -1655,7 +1919,7 @@ var require_to_regex_range = __commonJS({
|
|
|
1655
1919
|
var require_fill_range = __commonJS({
|
|
1656
1920
|
"node_modules/.bun/fill-range@7.1.1/node_modules/fill-range/index.js"(exports, module) {
|
|
1657
1921
|
"use strict";
|
|
1658
|
-
|
|
1922
|
+
init_utils2();
|
|
1659
1923
|
var util = __require("util");
|
|
1660
1924
|
var toRegexRange = require_to_regex_range();
|
|
1661
1925
|
var isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
@@ -1701,8 +1965,8 @@ var require_fill_range = __commonJS({
|
|
|
1701
1965
|
return negative ? "-" + input : input;
|
|
1702
1966
|
};
|
|
1703
1967
|
var toSequence = (parts, options, maxLen) => {
|
|
1704
|
-
parts.negatives.sort((a,
|
|
1705
|
-
parts.positives.sort((a,
|
|
1968
|
+
parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
1969
|
+
parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
1706
1970
|
let prefix = options.capture ? "" : "?:";
|
|
1707
1971
|
let positives = "";
|
|
1708
1972
|
let negatives = "";
|
|
@@ -1723,13 +1987,13 @@ var require_fill_range = __commonJS({
|
|
|
1723
1987
|
}
|
|
1724
1988
|
return result;
|
|
1725
1989
|
};
|
|
1726
|
-
var toRange = (a,
|
|
1990
|
+
var toRange = (a, b, isNumbers, options) => {
|
|
1727
1991
|
if (isNumbers) {
|
|
1728
|
-
return toRegexRange(a,
|
|
1992
|
+
return toRegexRange(a, b, { wrap: false, ...options });
|
|
1729
1993
|
}
|
|
1730
1994
|
let start = String.fromCharCode(a);
|
|
1731
|
-
if (a ===
|
|
1732
|
-
let stop = String.fromCharCode(
|
|
1995
|
+
if (a === b) return start;
|
|
1996
|
+
let stop = String.fromCharCode(b);
|
|
1733
1997
|
return `[${start}-${stop}]`;
|
|
1734
1998
|
};
|
|
1735
1999
|
var toRegex = (start, end, options) => {
|
|
@@ -1755,14 +2019,14 @@ var require_fill_range = __commonJS({
|
|
|
1755
2019
|
};
|
|
1756
2020
|
var fillNumbers = (start, end, step = 1, options = {}) => {
|
|
1757
2021
|
let a = Number(start);
|
|
1758
|
-
let
|
|
1759
|
-
if (!Number.isInteger(a) || !Number.isInteger(
|
|
2022
|
+
let b = Number(end);
|
|
2023
|
+
if (!Number.isInteger(a) || !Number.isInteger(b)) {
|
|
1760
2024
|
if (options.strictRanges === true) throw rangeError([start, end]);
|
|
1761
2025
|
return [];
|
|
1762
2026
|
}
|
|
1763
2027
|
if (a === 0) a = 0;
|
|
1764
|
-
if (
|
|
1765
|
-
let descending = a >
|
|
2028
|
+
if (b === 0) b = 0;
|
|
2029
|
+
let descending = a > b;
|
|
1766
2030
|
let startString = String(start);
|
|
1767
2031
|
let endString = String(end);
|
|
1768
2032
|
let stepString = String(step);
|
|
@@ -1778,7 +2042,7 @@ var require_fill_range = __commonJS({
|
|
|
1778
2042
|
let push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num));
|
|
1779
2043
|
let range = [];
|
|
1780
2044
|
let index = 0;
|
|
1781
|
-
while (descending ? a >=
|
|
2045
|
+
while (descending ? a >= b : a <= b) {
|
|
1782
2046
|
if (options.toRegex === true && step > 1) {
|
|
1783
2047
|
push(a);
|
|
1784
2048
|
} else {
|
|
@@ -1798,16 +2062,16 @@ var require_fill_range = __commonJS({
|
|
|
1798
2062
|
}
|
|
1799
2063
|
let format = options.transform || ((val) => String.fromCharCode(val));
|
|
1800
2064
|
let a = `${start}`.charCodeAt(0);
|
|
1801
|
-
let
|
|
1802
|
-
let descending = a >
|
|
1803
|
-
let min = Math.min(a,
|
|
1804
|
-
let max = Math.max(a,
|
|
2065
|
+
let b = `${end}`.charCodeAt(0);
|
|
2066
|
+
let descending = a > b;
|
|
2067
|
+
let min = Math.min(a, b);
|
|
2068
|
+
let max = Math.max(a, b);
|
|
1805
2069
|
if (options.toRegex && step === 1) {
|
|
1806
2070
|
return toRange(min, max, false, options);
|
|
1807
2071
|
}
|
|
1808
2072
|
let range = [];
|
|
1809
2073
|
let index = 0;
|
|
1810
|
-
while (descending ? a >=
|
|
2074
|
+
while (descending ? a >= b : a <= b) {
|
|
1811
2075
|
range.push(format(a, index));
|
|
1812
2076
|
a = descending ? a - step : a + step;
|
|
1813
2077
|
index++;
|
|
@@ -1850,7 +2114,7 @@ var require_fill_range = __commonJS({
|
|
|
1850
2114
|
var require_compile = __commonJS({
|
|
1851
2115
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/compile.js"(exports, module) {
|
|
1852
2116
|
"use strict";
|
|
1853
|
-
|
|
2117
|
+
init_utils2();
|
|
1854
2118
|
var fill = require_fill_range();
|
|
1855
2119
|
var utils = require_utils();
|
|
1856
2120
|
var compile = (ast, options = {}) => {
|
|
@@ -1902,7 +2166,7 @@ var require_compile = __commonJS({
|
|
|
1902
2166
|
var require_expand = __commonJS({
|
|
1903
2167
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/expand.js"(exports, module) {
|
|
1904
2168
|
"use strict";
|
|
1905
|
-
|
|
2169
|
+
init_utils2();
|
|
1906
2170
|
var fill = require_fill_range();
|
|
1907
2171
|
var stringify2 = require_stringify();
|
|
1908
2172
|
var utils = require_utils();
|
|
@@ -1997,7 +2261,7 @@ var require_expand = __commonJS({
|
|
|
1997
2261
|
var require_constants = __commonJS({
|
|
1998
2262
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/constants.js"(exports, module) {
|
|
1999
2263
|
"use strict";
|
|
2000
|
-
|
|
2264
|
+
init_utils2();
|
|
2001
2265
|
module.exports = {
|
|
2002
2266
|
MAX_LENGTH: 1e4,
|
|
2003
2267
|
// Digits
|
|
@@ -2099,7 +2363,7 @@ var require_constants = __commonJS({
|
|
|
2099
2363
|
var require_parse = __commonJS({
|
|
2100
2364
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/lib/parse.js"(exports, module) {
|
|
2101
2365
|
"use strict";
|
|
2102
|
-
|
|
2366
|
+
init_utils2();
|
|
2103
2367
|
var stringify2 = require_stringify();
|
|
2104
2368
|
var {
|
|
2105
2369
|
MAX_LENGTH,
|
|
@@ -2338,7 +2602,7 @@ var require_parse = __commonJS({
|
|
|
2338
2602
|
var require_braces = __commonJS({
|
|
2339
2603
|
"node_modules/.bun/braces@3.0.3/node_modules/braces/index.js"(exports, module) {
|
|
2340
2604
|
"use strict";
|
|
2341
|
-
|
|
2605
|
+
init_utils2();
|
|
2342
2606
|
var stringify2 = require_stringify();
|
|
2343
2607
|
var compile = require_compile();
|
|
2344
2608
|
var expand = require_expand();
|
|
@@ -2402,7 +2666,7 @@ var require_braces = __commonJS({
|
|
|
2402
2666
|
var require_constants2 = __commonJS({
|
|
2403
2667
|
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js"(exports, module) {
|
|
2404
2668
|
"use strict";
|
|
2405
|
-
|
|
2669
|
+
init_utils2();
|
|
2406
2670
|
var path = __require("path");
|
|
2407
2671
|
var WIN_SLASH = "\\\\/";
|
|
2408
2672
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
@@ -2604,7 +2868,7 @@ var require_constants2 = __commonJS({
|
|
|
2604
2868
|
var require_utils2 = __commonJS({
|
|
2605
2869
|
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js"(exports) {
|
|
2606
2870
|
"use strict";
|
|
2607
|
-
|
|
2871
|
+
init_utils2();
|
|
2608
2872
|
var path = __require("path");
|
|
2609
2873
|
var win32 = process.platform === "win32";
|
|
2610
2874
|
var {
|
|
@@ -2666,7 +2930,7 @@ var require_utils2 = __commonJS({
|
|
|
2666
2930
|
var require_scan = __commonJS({
|
|
2667
2931
|
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js"(exports, module) {
|
|
2668
2932
|
"use strict";
|
|
2669
|
-
|
|
2933
|
+
init_utils2();
|
|
2670
2934
|
var utils = require_utils2();
|
|
2671
2935
|
var {
|
|
2672
2936
|
CHAR_ASTERISK,
|
|
@@ -2997,7 +3261,7 @@ var require_scan = __commonJS({
|
|
|
2997
3261
|
var require_parse2 = __commonJS({
|
|
2998
3262
|
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js"(exports, module) {
|
|
2999
3263
|
"use strict";
|
|
3000
|
-
|
|
3264
|
+
init_utils2();
|
|
3001
3265
|
var constants2 = require_constants2();
|
|
3002
3266
|
var utils = require_utils2();
|
|
3003
3267
|
var {
|
|
@@ -3105,12 +3369,12 @@ var require_parse2 = __commonJS({
|
|
|
3105
3369
|
for (let i = 0; i < values.length; i++) {
|
|
3106
3370
|
for (let j2 = i + 1; j2 < values.length; j2++) {
|
|
3107
3371
|
const a = values[i];
|
|
3108
|
-
const
|
|
3372
|
+
const b = values[j2];
|
|
3109
3373
|
const char = a[0];
|
|
3110
|
-
if (!char || a !== char.repeat(a.length) ||
|
|
3374
|
+
if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) {
|
|
3111
3375
|
continue;
|
|
3112
3376
|
}
|
|
3113
|
-
if (a ===
|
|
3377
|
+
if (a === b || a.startsWith(b) || b.startsWith(a)) {
|
|
3114
3378
|
return true;
|
|
3115
3379
|
}
|
|
3116
3380
|
}
|
|
@@ -3413,10 +3677,10 @@ var require_parse2 = __commonJS({
|
|
|
3413
3677
|
};
|
|
3414
3678
|
if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) {
|
|
3415
3679
|
let backslashes = false;
|
|
3416
|
-
let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (
|
|
3680
|
+
let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => {
|
|
3417
3681
|
if (first === "\\") {
|
|
3418
3682
|
backslashes = true;
|
|
3419
|
-
return
|
|
3683
|
+
return m;
|
|
3420
3684
|
}
|
|
3421
3685
|
if (first === "?") {
|
|
3422
3686
|
if (esc) {
|
|
@@ -3436,14 +3700,14 @@ var require_parse2 = __commonJS({
|
|
|
3436
3700
|
}
|
|
3437
3701
|
return star;
|
|
3438
3702
|
}
|
|
3439
|
-
return esc ?
|
|
3703
|
+
return esc ? m : `\\${m}`;
|
|
3440
3704
|
});
|
|
3441
3705
|
if (backslashes === true) {
|
|
3442
3706
|
if (opts.unescape === true) {
|
|
3443
3707
|
output = output.replace(/\\/g, "");
|
|
3444
3708
|
} else {
|
|
3445
|
-
output = output.replace(/\\+/g, (
|
|
3446
|
-
return
|
|
3709
|
+
output = output.replace(/\\+/g, (m) => {
|
|
3710
|
+
return m.length % 2 === 0 ? "\\\\" : m ? "\\" : "";
|
|
3447
3711
|
});
|
|
3448
3712
|
}
|
|
3449
3713
|
}
|
|
@@ -3643,8 +3907,8 @@ var require_parse2 = __commonJS({
|
|
|
3643
3907
|
brace.value = brace.output = "\\{";
|
|
3644
3908
|
value = output = "\\}";
|
|
3645
3909
|
state.output = out;
|
|
3646
|
-
for (const
|
|
3647
|
-
state.output +=
|
|
3910
|
+
for (const t2 of toks) {
|
|
3911
|
+
state.output += t2.output || t2.value;
|
|
3648
3912
|
}
|
|
3649
3913
|
}
|
|
3650
3914
|
push({ type: "brace", value, output });
|
|
@@ -4000,7 +4264,7 @@ var require_parse2 = __commonJS({
|
|
|
4000
4264
|
var require_picomatch = __commonJS({
|
|
4001
4265
|
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js"(exports, module) {
|
|
4002
4266
|
"use strict";
|
|
4003
|
-
|
|
4267
|
+
init_utils2();
|
|
4004
4268
|
var path = __require("path");
|
|
4005
4269
|
var scan = require_scan();
|
|
4006
4270
|
var parse2 = require_parse2();
|
|
@@ -4142,7 +4406,7 @@ var require_picomatch = __commonJS({
|
|
|
4142
4406
|
var require_picomatch2 = __commonJS({
|
|
4143
4407
|
"node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js"(exports, module) {
|
|
4144
4408
|
"use strict";
|
|
4145
|
-
|
|
4409
|
+
init_utils2();
|
|
4146
4410
|
module.exports = require_picomatch();
|
|
4147
4411
|
}
|
|
4148
4412
|
});
|
|
@@ -4151,7 +4415,7 @@ var require_picomatch2 = __commonJS({
|
|
|
4151
4415
|
var require_micromatch = __commonJS({
|
|
4152
4416
|
"node_modules/.bun/micromatch@4.0.8/node_modules/micromatch/index.js"(exports, module) {
|
|
4153
4417
|
"use strict";
|
|
4154
|
-
|
|
4418
|
+
init_utils2();
|
|
4155
4419
|
var util = __require("util");
|
|
4156
4420
|
var braces = require_braces();
|
|
4157
4421
|
var picomatch = require_picomatch2();
|
|
@@ -4313,7 +4577,7 @@ var require_micromatch = __commonJS({
|
|
|
4313
4577
|
var require_pattern = __commonJS({
|
|
4314
4578
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js"(exports) {
|
|
4315
4579
|
"use strict";
|
|
4316
|
-
|
|
4580
|
+
init_utils2();
|
|
4317
4581
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4318
4582
|
exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
|
|
4319
4583
|
var path = __require("path");
|
|
@@ -4423,7 +4687,7 @@ var require_pattern = __commonJS({
|
|
|
4423
4687
|
exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
|
|
4424
4688
|
function expandBraceExpansion(pattern) {
|
|
4425
4689
|
const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true });
|
|
4426
|
-
patterns.sort((a,
|
|
4690
|
+
patterns.sort((a, b) => a.length - b.length);
|
|
4427
4691
|
return patterns.filter((pattern2) => pattern2 !== "");
|
|
4428
4692
|
}
|
|
4429
4693
|
exports.expandBraceExpansion = expandBraceExpansion;
|
|
@@ -4479,7 +4743,7 @@ var require_pattern = __commonJS({
|
|
|
4479
4743
|
var require_merge2 = __commonJS({
|
|
4480
4744
|
"node_modules/.bun/merge2@1.4.1/node_modules/merge2/index.js"(exports, module) {
|
|
4481
4745
|
"use strict";
|
|
4482
|
-
|
|
4746
|
+
init_utils2();
|
|
4483
4747
|
var Stream = __require("stream");
|
|
4484
4748
|
var PassThrough = Stream.PassThrough;
|
|
4485
4749
|
var slice = Array.prototype.slice;
|
|
@@ -4599,7 +4863,7 @@ var require_merge2 = __commonJS({
|
|
|
4599
4863
|
var require_stream = __commonJS({
|
|
4600
4864
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js"(exports) {
|
|
4601
4865
|
"use strict";
|
|
4602
|
-
|
|
4866
|
+
init_utils2();
|
|
4603
4867
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4604
4868
|
exports.merge = void 0;
|
|
4605
4869
|
var merge2 = require_merge2();
|
|
@@ -4623,7 +4887,7 @@ var require_stream = __commonJS({
|
|
|
4623
4887
|
var require_string = __commonJS({
|
|
4624
4888
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js"(exports) {
|
|
4625
4889
|
"use strict";
|
|
4626
|
-
|
|
4890
|
+
init_utils2();
|
|
4627
4891
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4628
4892
|
exports.isEmpty = exports.isString = void 0;
|
|
4629
4893
|
function isString(input) {
|
|
@@ -4641,7 +4905,7 @@ var require_string = __commonJS({
|
|
|
4641
4905
|
var require_utils3 = __commonJS({
|
|
4642
4906
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js"(exports) {
|
|
4643
4907
|
"use strict";
|
|
4644
|
-
|
|
4908
|
+
init_utils2();
|
|
4645
4909
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4646
4910
|
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
|
|
4647
4911
|
var array = require_array();
|
|
@@ -4665,7 +4929,7 @@ var require_utils3 = __commonJS({
|
|
|
4665
4929
|
var require_tasks = __commonJS({
|
|
4666
4930
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js"(exports) {
|
|
4667
4931
|
"use strict";
|
|
4668
|
-
|
|
4932
|
+
init_utils2();
|
|
4669
4933
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4670
4934
|
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
|
|
4671
4935
|
var utils = require_utils3();
|
|
@@ -4762,7 +5026,7 @@ var require_tasks = __commonJS({
|
|
|
4762
5026
|
var require_async = __commonJS({
|
|
4763
5027
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) {
|
|
4764
5028
|
"use strict";
|
|
4765
|
-
|
|
5029
|
+
init_utils2();
|
|
4766
5030
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4767
5031
|
exports.read = void 0;
|
|
4768
5032
|
function read(path, settings, callback) {
|
|
@@ -4805,7 +5069,7 @@ var require_async = __commonJS({
|
|
|
4805
5069
|
var require_sync = __commonJS({
|
|
4806
5070
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) {
|
|
4807
5071
|
"use strict";
|
|
4808
|
-
|
|
5072
|
+
init_utils2();
|
|
4809
5073
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4810
5074
|
exports.read = void 0;
|
|
4811
5075
|
function read(path, settings) {
|
|
@@ -4834,7 +5098,7 @@ var require_sync = __commonJS({
|
|
|
4834
5098
|
var require_fs2 = __commonJS({
|
|
4835
5099
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) {
|
|
4836
5100
|
"use strict";
|
|
4837
|
-
|
|
5101
|
+
init_utils2();
|
|
4838
5102
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4839
5103
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
4840
5104
|
var fs3 = __require("fs");
|
|
@@ -4858,7 +5122,7 @@ var require_fs2 = __commonJS({
|
|
|
4858
5122
|
var require_settings = __commonJS({
|
|
4859
5123
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js"(exports) {
|
|
4860
5124
|
"use strict";
|
|
4861
|
-
|
|
5125
|
+
init_utils2();
|
|
4862
5126
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4863
5127
|
var fs3 = require_fs2();
|
|
4864
5128
|
var Settings = class {
|
|
@@ -4881,7 +5145,7 @@ var require_settings = __commonJS({
|
|
|
4881
5145
|
var require_out = __commonJS({
|
|
4882
5146
|
"node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js"(exports) {
|
|
4883
5147
|
"use strict";
|
|
4884
|
-
|
|
5148
|
+
init_utils2();
|
|
4885
5149
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4886
5150
|
exports.statSync = exports.stat = exports.Settings = void 0;
|
|
4887
5151
|
var async = require_async();
|
|
@@ -4913,7 +5177,7 @@ var require_out = __commonJS({
|
|
|
4913
5177
|
// node_modules/.bun/queue-microtask@1.2.3/node_modules/queue-microtask/index.js
|
|
4914
5178
|
var require_queue_microtask = __commonJS({
|
|
4915
5179
|
"node_modules/.bun/queue-microtask@1.2.3/node_modules/queue-microtask/index.js"(exports, module) {
|
|
4916
|
-
|
|
5180
|
+
init_utils2();
|
|
4917
5181
|
var promise;
|
|
4918
5182
|
module.exports = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : global) : (cb) => (promise || (promise = Promise.resolve())).then(cb).catch((err) => setTimeout(() => {
|
|
4919
5183
|
throw err;
|
|
@@ -4924,7 +5188,7 @@ var require_queue_microtask = __commonJS({
|
|
|
4924
5188
|
// node_modules/.bun/run-parallel@1.2.0/node_modules/run-parallel/index.js
|
|
4925
5189
|
var require_run_parallel = __commonJS({
|
|
4926
5190
|
"node_modules/.bun/run-parallel@1.2.0/node_modules/run-parallel/index.js"(exports, module) {
|
|
4927
|
-
|
|
5191
|
+
init_utils2();
|
|
4928
5192
|
module.exports = runParallel;
|
|
4929
5193
|
var queueMicrotask2 = require_queue_microtask();
|
|
4930
5194
|
function runParallel(tasks, cb) {
|
|
@@ -4976,7 +5240,7 @@ var require_run_parallel = __commonJS({
|
|
|
4976
5240
|
var require_constants3 = __commonJS({
|
|
4977
5241
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js"(exports) {
|
|
4978
5242
|
"use strict";
|
|
4979
|
-
|
|
5243
|
+
init_utils2();
|
|
4980
5244
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4981
5245
|
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
|
|
4982
5246
|
var NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
|
|
@@ -4997,7 +5261,7 @@ var require_constants3 = __commonJS({
|
|
|
4997
5261
|
var require_fs3 = __commonJS({
|
|
4998
5262
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js"(exports) {
|
|
4999
5263
|
"use strict";
|
|
5000
|
-
|
|
5264
|
+
init_utils2();
|
|
5001
5265
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5002
5266
|
exports.createDirentFromStats = void 0;
|
|
5003
5267
|
var DirentFromStats = class {
|
|
@@ -5023,7 +5287,7 @@ var require_fs3 = __commonJS({
|
|
|
5023
5287
|
var require_utils4 = __commonJS({
|
|
5024
5288
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
|
|
5025
5289
|
"use strict";
|
|
5026
|
-
|
|
5290
|
+
init_utils2();
|
|
5027
5291
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5028
5292
|
exports.fs = void 0;
|
|
5029
5293
|
var fs3 = require_fs3();
|
|
@@ -5035,14 +5299,14 @@ var require_utils4 = __commonJS({
|
|
|
5035
5299
|
var require_common = __commonJS({
|
|
5036
5300
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js"(exports) {
|
|
5037
5301
|
"use strict";
|
|
5038
|
-
|
|
5302
|
+
init_utils2();
|
|
5039
5303
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5040
5304
|
exports.joinPathSegments = void 0;
|
|
5041
|
-
function joinPathSegments(a,
|
|
5305
|
+
function joinPathSegments(a, b, separator) {
|
|
5042
5306
|
if (a.endsWith(separator)) {
|
|
5043
|
-
return a +
|
|
5307
|
+
return a + b;
|
|
5044
5308
|
}
|
|
5045
|
-
return a + separator +
|
|
5309
|
+
return a + separator + b;
|
|
5046
5310
|
}
|
|
5047
5311
|
exports.joinPathSegments = joinPathSegments;
|
|
5048
5312
|
}
|
|
@@ -5052,7 +5316,7 @@ var require_common = __commonJS({
|
|
|
5052
5316
|
var require_async2 = __commonJS({
|
|
5053
5317
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js"(exports) {
|
|
5054
5318
|
"use strict";
|
|
5055
|
-
|
|
5319
|
+
init_utils2();
|
|
5056
5320
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5057
5321
|
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
5058
5322
|
var fsStat = require_out();
|
|
@@ -5163,7 +5427,7 @@ var require_async2 = __commonJS({
|
|
|
5163
5427
|
var require_sync2 = __commonJS({
|
|
5164
5428
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js"(exports) {
|
|
5165
5429
|
"use strict";
|
|
5166
|
-
|
|
5430
|
+
init_utils2();
|
|
5167
5431
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5168
5432
|
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
5169
5433
|
var fsStat = require_out();
|
|
@@ -5223,7 +5487,7 @@ var require_sync2 = __commonJS({
|
|
|
5223
5487
|
var require_fs4 = __commonJS({
|
|
5224
5488
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) {
|
|
5225
5489
|
"use strict";
|
|
5226
|
-
|
|
5490
|
+
init_utils2();
|
|
5227
5491
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5228
5492
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
5229
5493
|
var fs3 = __require("fs");
|
|
@@ -5249,7 +5513,7 @@ var require_fs4 = __commonJS({
|
|
|
5249
5513
|
var require_settings2 = __commonJS({
|
|
5250
5514
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
|
|
5251
5515
|
"use strict";
|
|
5252
|
-
|
|
5516
|
+
init_utils2();
|
|
5253
5517
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5254
5518
|
var path = __require("path");
|
|
5255
5519
|
var fsStat = require_out();
|
|
@@ -5280,7 +5544,7 @@ var require_settings2 = __commonJS({
|
|
|
5280
5544
|
var require_out2 = __commonJS({
|
|
5281
5545
|
"node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js"(exports) {
|
|
5282
5546
|
"use strict";
|
|
5283
|
-
|
|
5547
|
+
init_utils2();
|
|
5284
5548
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5285
5549
|
exports.Settings = exports.scandirSync = exports.scandir = void 0;
|
|
5286
5550
|
var async = require_async2();
|
|
@@ -5313,7 +5577,7 @@ var require_out2 = __commonJS({
|
|
|
5313
5577
|
var require_reusify = __commonJS({
|
|
5314
5578
|
"node_modules/.bun/reusify@1.1.0/node_modules/reusify/reusify.js"(exports, module) {
|
|
5315
5579
|
"use strict";
|
|
5316
|
-
|
|
5580
|
+
init_utils2();
|
|
5317
5581
|
function reusify(Constructor) {
|
|
5318
5582
|
var head = new Constructor();
|
|
5319
5583
|
var tail = head;
|
|
@@ -5345,7 +5609,7 @@ var require_reusify = __commonJS({
|
|
|
5345
5609
|
var require_queue = __commonJS({
|
|
5346
5610
|
"node_modules/.bun/fastq@1.20.1/node_modules/fastq/queue.js"(exports, module) {
|
|
5347
5611
|
"use strict";
|
|
5348
|
-
|
|
5612
|
+
init_utils2();
|
|
5349
5613
|
var reusify = require_reusify();
|
|
5350
5614
|
function fastqueue(context, worker, _concurrency) {
|
|
5351
5615
|
if (typeof context === "function") {
|
|
@@ -5630,7 +5894,7 @@ var require_queue = __commonJS({
|
|
|
5630
5894
|
var require_common2 = __commonJS({
|
|
5631
5895
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js"(exports) {
|
|
5632
5896
|
"use strict";
|
|
5633
|
-
|
|
5897
|
+
init_utils2();
|
|
5634
5898
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5635
5899
|
exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
|
|
5636
5900
|
function isFatalError(settings, error2) {
|
|
@@ -5648,14 +5912,14 @@ var require_common2 = __commonJS({
|
|
|
5648
5912
|
return filepath.split(/[/\\]/).join(separator);
|
|
5649
5913
|
}
|
|
5650
5914
|
exports.replacePathSegmentSeparator = replacePathSegmentSeparator;
|
|
5651
|
-
function joinPathSegments(a,
|
|
5915
|
+
function joinPathSegments(a, b, separator) {
|
|
5652
5916
|
if (a === "") {
|
|
5653
|
-
return
|
|
5917
|
+
return b;
|
|
5654
5918
|
}
|
|
5655
5919
|
if (a.endsWith(separator)) {
|
|
5656
|
-
return a +
|
|
5920
|
+
return a + b;
|
|
5657
5921
|
}
|
|
5658
|
-
return a + separator +
|
|
5922
|
+
return a + separator + b;
|
|
5659
5923
|
}
|
|
5660
5924
|
exports.joinPathSegments = joinPathSegments;
|
|
5661
5925
|
}
|
|
@@ -5665,7 +5929,7 @@ var require_common2 = __commonJS({
|
|
|
5665
5929
|
var require_reader = __commonJS({
|
|
5666
5930
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.js"(exports) {
|
|
5667
5931
|
"use strict";
|
|
5668
|
-
|
|
5932
|
+
init_utils2();
|
|
5669
5933
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5670
5934
|
var common = require_common2();
|
|
5671
5935
|
var Reader = class {
|
|
@@ -5683,7 +5947,7 @@ var require_reader = __commonJS({
|
|
|
5683
5947
|
var require_async3 = __commonJS({
|
|
5684
5948
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.js"(exports) {
|
|
5685
5949
|
"use strict";
|
|
5686
|
-
|
|
5950
|
+
init_utils2();
|
|
5687
5951
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5688
5952
|
var events_1 = __require("events");
|
|
5689
5953
|
var fsScandir = require_out2();
|
|
@@ -5787,7 +6051,7 @@ var require_async3 = __commonJS({
|
|
|
5787
6051
|
var require_async4 = __commonJS({
|
|
5788
6052
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.js"(exports) {
|
|
5789
6053
|
"use strict";
|
|
5790
|
-
|
|
6054
|
+
init_utils2();
|
|
5791
6055
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5792
6056
|
var async_1 = require_async3();
|
|
5793
6057
|
var AsyncProvider = class {
|
|
@@ -5824,7 +6088,7 @@ var require_async4 = __commonJS({
|
|
|
5824
6088
|
var require_stream2 = __commonJS({
|
|
5825
6089
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.js"(exports) {
|
|
5826
6090
|
"use strict";
|
|
5827
|
-
|
|
6091
|
+
init_utils2();
|
|
5828
6092
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5829
6093
|
var stream_1 = __require("stream");
|
|
5830
6094
|
var async_1 = require_async3();
|
|
@@ -5866,7 +6130,7 @@ var require_stream2 = __commonJS({
|
|
|
5866
6130
|
var require_sync3 = __commonJS({
|
|
5867
6131
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.js"(exports) {
|
|
5868
6132
|
"use strict";
|
|
5869
|
-
|
|
6133
|
+
init_utils2();
|
|
5870
6134
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5871
6135
|
var fsScandir = require_out2();
|
|
5872
6136
|
var common = require_common2();
|
|
@@ -5931,7 +6195,7 @@ var require_sync3 = __commonJS({
|
|
|
5931
6195
|
var require_sync4 = __commonJS({
|
|
5932
6196
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.js"(exports) {
|
|
5933
6197
|
"use strict";
|
|
5934
|
-
|
|
6198
|
+
init_utils2();
|
|
5935
6199
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5936
6200
|
var sync_1 = require_sync3();
|
|
5937
6201
|
var SyncProvider = class {
|
|
@@ -5952,7 +6216,7 @@ var require_sync4 = __commonJS({
|
|
|
5952
6216
|
var require_settings3 = __commonJS({
|
|
5953
6217
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
|
|
5954
6218
|
"use strict";
|
|
5955
|
-
|
|
6219
|
+
init_utils2();
|
|
5956
6220
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5957
6221
|
var path = __require("path");
|
|
5958
6222
|
var fsScandir = require_out2();
|
|
@@ -5985,7 +6249,7 @@ var require_settings3 = __commonJS({
|
|
|
5985
6249
|
var require_out3 = __commonJS({
|
|
5986
6250
|
"node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js"(exports) {
|
|
5987
6251
|
"use strict";
|
|
5988
|
-
|
|
6252
|
+
init_utils2();
|
|
5989
6253
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5990
6254
|
exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
|
|
5991
6255
|
var async_1 = require_async4();
|
|
@@ -6026,7 +6290,7 @@ var require_out3 = __commonJS({
|
|
|
6026
6290
|
var require_reader2 = __commonJS({
|
|
6027
6291
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js"(exports) {
|
|
6028
6292
|
"use strict";
|
|
6029
|
-
|
|
6293
|
+
init_utils2();
|
|
6030
6294
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6031
6295
|
var path = __require("path");
|
|
6032
6296
|
var fsStat = require_out();
|
|
@@ -6066,7 +6330,7 @@ var require_reader2 = __commonJS({
|
|
|
6066
6330
|
var require_stream3 = __commonJS({
|
|
6067
6331
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js"(exports) {
|
|
6068
6332
|
"use strict";
|
|
6069
|
-
|
|
6333
|
+
init_utils2();
|
|
6070
6334
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6071
6335
|
var stream_1 = __require("stream");
|
|
6072
6336
|
var fsStat = require_out();
|
|
@@ -6124,7 +6388,7 @@ var require_stream3 = __commonJS({
|
|
|
6124
6388
|
var require_async5 = __commonJS({
|
|
6125
6389
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js"(exports) {
|
|
6126
6390
|
"use strict";
|
|
6127
|
-
|
|
6391
|
+
init_utils2();
|
|
6128
6392
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6129
6393
|
var fsWalk = require_out3();
|
|
6130
6394
|
var reader_1 = require_reader2();
|
|
@@ -6164,7 +6428,7 @@ var require_async5 = __commonJS({
|
|
|
6164
6428
|
var require_matcher = __commonJS({
|
|
6165
6429
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) {
|
|
6166
6430
|
"use strict";
|
|
6167
|
-
|
|
6431
|
+
init_utils2();
|
|
6168
6432
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6169
6433
|
var utils = require_utils3();
|
|
6170
6434
|
var Matcher = class {
|
|
@@ -6216,7 +6480,7 @@ var require_matcher = __commonJS({
|
|
|
6216
6480
|
var require_partial = __commonJS({
|
|
6217
6481
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js"(exports) {
|
|
6218
6482
|
"use strict";
|
|
6219
|
-
|
|
6483
|
+
init_utils2();
|
|
6220
6484
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6221
6485
|
var matcher_1 = require_matcher();
|
|
6222
6486
|
var PartialMatcher = class extends matcher_1.default {
|
|
@@ -6254,7 +6518,7 @@ var require_partial = __commonJS({
|
|
|
6254
6518
|
var require_deep = __commonJS({
|
|
6255
6519
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js"(exports) {
|
|
6256
6520
|
"use strict";
|
|
6257
|
-
|
|
6521
|
+
init_utils2();
|
|
6258
6522
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6259
6523
|
var utils = require_utils3();
|
|
6260
6524
|
var partial_1 = require_partial();
|
|
@@ -6320,7 +6584,7 @@ var require_deep = __commonJS({
|
|
|
6320
6584
|
var require_entry = __commonJS({
|
|
6321
6585
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js"(exports) {
|
|
6322
6586
|
"use strict";
|
|
6323
|
-
|
|
6587
|
+
init_utils2();
|
|
6324
6588
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6325
6589
|
var utils = require_utils3();
|
|
6326
6590
|
var EntryFilter = class {
|
|
@@ -6409,7 +6673,7 @@ var require_entry = __commonJS({
|
|
|
6409
6673
|
var require_error = __commonJS({
|
|
6410
6674
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js"(exports) {
|
|
6411
6675
|
"use strict";
|
|
6412
|
-
|
|
6676
|
+
init_utils2();
|
|
6413
6677
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6414
6678
|
var utils = require_utils3();
|
|
6415
6679
|
var ErrorFilter = class {
|
|
@@ -6431,7 +6695,7 @@ var require_error = __commonJS({
|
|
|
6431
6695
|
var require_entry2 = __commonJS({
|
|
6432
6696
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js"(exports) {
|
|
6433
6697
|
"use strict";
|
|
6434
|
-
|
|
6698
|
+
init_utils2();
|
|
6435
6699
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6436
6700
|
var utils = require_utils3();
|
|
6437
6701
|
var EntryTransformer = class {
|
|
@@ -6464,7 +6728,7 @@ var require_entry2 = __commonJS({
|
|
|
6464
6728
|
var require_provider = __commonJS({
|
|
6465
6729
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js"(exports) {
|
|
6466
6730
|
"use strict";
|
|
6467
|
-
|
|
6731
|
+
init_utils2();
|
|
6468
6732
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6469
6733
|
var path = __require("path");
|
|
6470
6734
|
var deep_1 = require_deep();
|
|
@@ -6519,7 +6783,7 @@ var require_provider = __commonJS({
|
|
|
6519
6783
|
var require_async6 = __commonJS({
|
|
6520
6784
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js"(exports) {
|
|
6521
6785
|
"use strict";
|
|
6522
|
-
|
|
6786
|
+
init_utils2();
|
|
6523
6787
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6524
6788
|
var async_1 = require_async5();
|
|
6525
6789
|
var provider_1 = require_provider();
|
|
@@ -6549,7 +6813,7 @@ var require_async6 = __commonJS({
|
|
|
6549
6813
|
var require_stream4 = __commonJS({
|
|
6550
6814
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js"(exports) {
|
|
6551
6815
|
"use strict";
|
|
6552
|
-
|
|
6816
|
+
init_utils2();
|
|
6553
6817
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6554
6818
|
var stream_1 = __require("stream");
|
|
6555
6819
|
var stream_2 = require_stream3();
|
|
@@ -6584,7 +6848,7 @@ var require_stream4 = __commonJS({
|
|
|
6584
6848
|
var require_sync5 = __commonJS({
|
|
6585
6849
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js"(exports) {
|
|
6586
6850
|
"use strict";
|
|
6587
|
-
|
|
6851
|
+
init_utils2();
|
|
6588
6852
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6589
6853
|
var fsStat = require_out();
|
|
6590
6854
|
var fsWalk = require_out3();
|
|
@@ -6633,7 +6897,7 @@ var require_sync5 = __commonJS({
|
|
|
6633
6897
|
var require_sync6 = __commonJS({
|
|
6634
6898
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js"(exports) {
|
|
6635
6899
|
"use strict";
|
|
6636
|
-
|
|
6900
|
+
init_utils2();
|
|
6637
6901
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6638
6902
|
var sync_1 = require_sync5();
|
|
6639
6903
|
var provider_1 = require_provider();
|
|
@@ -6663,7 +6927,7 @@ var require_sync6 = __commonJS({
|
|
|
6663
6927
|
var require_settings4 = __commonJS({
|
|
6664
6928
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js"(exports) {
|
|
6665
6929
|
"use strict";
|
|
6666
|
-
|
|
6930
|
+
init_utils2();
|
|
6667
6931
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6668
6932
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
6669
6933
|
var fs3 = __require("fs");
|
|
@@ -6724,7 +6988,7 @@ var require_settings4 = __commonJS({
|
|
|
6724
6988
|
var require_out4 = __commonJS({
|
|
6725
6989
|
"node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/index.js"(exports, module) {
|
|
6726
6990
|
"use strict";
|
|
6727
|
-
|
|
6991
|
+
init_utils2();
|
|
6728
6992
|
var taskManager = require_tasks();
|
|
6729
6993
|
var async_1 = require_async6();
|
|
6730
6994
|
var stream_1 = require_stream4();
|
|
@@ -6843,7 +7107,7 @@ var I18N_PATHS, SCAN_PATTERNS, GLOB_OPTIONS;
|
|
|
6843
7107
|
var init_constants = __esm({
|
|
6844
7108
|
"packages/core/config/constants.js"() {
|
|
6845
7109
|
"use strict";
|
|
6846
|
-
|
|
7110
|
+
init_utils2();
|
|
6847
7111
|
I18N_PATHS = {
|
|
6848
7112
|
// Monorepo source structure (locales at root, not in src/)
|
|
6849
7113
|
SOURCE_ROOT: "packages/core/i18n",
|
|
@@ -7005,7 +7269,7 @@ var import_fast_glob, constants, log2, PACKAGE_PATHS, PathResolver;
|
|
|
7005
7269
|
var init_PathResolver = __esm({
|
|
7006
7270
|
"packages/core/config/utils/PathResolver.ts"() {
|
|
7007
7271
|
"use strict";
|
|
7008
|
-
|
|
7272
|
+
init_utils2();
|
|
7009
7273
|
import_fast_glob = __toESM(require_out4(), 1);
|
|
7010
7274
|
init_constants();
|
|
7011
7275
|
constants = {
|
|
@@ -8009,7 +8273,7 @@ var pathResolverInstance, getRepoRoot, resolvePackage, normalizePath, pathExists
|
|
|
8009
8273
|
var init_pathResolver = __esm({
|
|
8010
8274
|
"packages/tooling/src/utils/pathResolver.ts"() {
|
|
8011
8275
|
"use strict";
|
|
8012
|
-
|
|
8276
|
+
init_utils2();
|
|
8013
8277
|
init_PathResolver();
|
|
8014
8278
|
pathResolverInstance = PathResolver.getInstance({ debug: false });
|
|
8015
8279
|
getRepoRoot = () => pathResolverInstance.getRepoRoot();
|
|
@@ -8066,7 +8330,7 @@ function readPackageJson(filePath) {
|
|
|
8066
8330
|
var init_typed_file_operations = __esm({
|
|
8067
8331
|
"packages/tooling/src/utils/typed-file-operations.ts"() {
|
|
8068
8332
|
"use strict";
|
|
8069
|
-
|
|
8333
|
+
init_utils2();
|
|
8070
8334
|
init_errors();
|
|
8071
8335
|
init_pathResolver();
|
|
8072
8336
|
}
|
|
@@ -8080,7 +8344,7 @@ import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
|
8080
8344
|
import process from "node:process";
|
|
8081
8345
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
8082
8346
|
var require2, __filename, __dirname;
|
|
8083
|
-
var
|
|
8347
|
+
var init_utils2 = __esm({
|
|
8084
8348
|
"packages/tooling/src/bundler/utils.ts"() {
|
|
8085
8349
|
"use strict";
|
|
8086
8350
|
require2 = createRequire3(import.meta.url);
|
|
@@ -8284,7 +8548,7 @@ function analyzeApp(appPath, appName) {
|
|
|
8284
8548
|
var init_app_detection = __esm({
|
|
8285
8549
|
"packages/tooling/src/utils/app-detection.ts"() {
|
|
8286
8550
|
"use strict";
|
|
8287
|
-
|
|
8551
|
+
init_utils2();
|
|
8288
8552
|
init_pathResolver();
|
|
8289
8553
|
init_typed_file_operations();
|
|
8290
8554
|
}
|
|
@@ -8312,7 +8576,7 @@ async function selectApp(projectRoot, appName) {
|
|
|
8312
8576
|
if (apps.length === 1) {
|
|
8313
8577
|
return apps[0] || null;
|
|
8314
8578
|
}
|
|
8315
|
-
const selected = await
|
|
8579
|
+
const selected = await _t({
|
|
8316
8580
|
message: "Select app:",
|
|
8317
8581
|
options: apps.map((app) => ({
|
|
8318
8582
|
value: app.name,
|
|
@@ -8327,8 +8591,8 @@ async function selectApp(projectRoot, appName) {
|
|
|
8327
8591
|
var init_app_selector = __esm({
|
|
8328
8592
|
"packages/tooling/src/utils/app-selector.ts"() {
|
|
8329
8593
|
"use strict";
|
|
8330
|
-
|
|
8331
|
-
|
|
8594
|
+
init_utils2();
|
|
8595
|
+
init_dist4();
|
|
8332
8596
|
init_app_detection();
|
|
8333
8597
|
init_cli_output();
|
|
8334
8598
|
}
|
|
@@ -8341,13 +8605,13 @@ async function askForSelection(message, choices, defaultValue = 0) {
|
|
|
8341
8605
|
label: choice.title,
|
|
8342
8606
|
hint: choice.hint
|
|
8343
8607
|
}));
|
|
8344
|
-
const result = await
|
|
8608
|
+
const result = await _t({
|
|
8345
8609
|
message,
|
|
8346
8610
|
options,
|
|
8347
8611
|
initialValue: choices[defaultValue]?.value
|
|
8348
8612
|
});
|
|
8349
|
-
if (
|
|
8350
|
-
|
|
8613
|
+
if (q(result)) {
|
|
8614
|
+
pt("Operation cancelled.");
|
|
8351
8615
|
process.exit(0);
|
|
8352
8616
|
}
|
|
8353
8617
|
return result;
|
|
@@ -8355,16 +8619,16 @@ async function askForSelection(message, choices, defaultValue = 0) {
|
|
|
8355
8619
|
var init_cli_input = __esm({
|
|
8356
8620
|
"packages/tooling/src/utils/cli-input.ts"() {
|
|
8357
8621
|
"use strict";
|
|
8358
|
-
|
|
8359
|
-
|
|
8622
|
+
init_utils2();
|
|
8623
|
+
init_dist4();
|
|
8360
8624
|
}
|
|
8361
8625
|
});
|
|
8362
8626
|
|
|
8363
|
-
// node_modules/.bun/esbuild@0.27.
|
|
8627
|
+
// node_modules/.bun/esbuild@0.27.7/node_modules/esbuild/lib/main.js
|
|
8364
8628
|
var require_main = __commonJS({
|
|
8365
|
-
"node_modules/.bun/esbuild@0.27.
|
|
8629
|
+
"node_modules/.bun/esbuild@0.27.7/node_modules/esbuild/lib/main.js"(exports, module) {
|
|
8366
8630
|
"use strict";
|
|
8367
|
-
|
|
8631
|
+
init_utils2();
|
|
8368
8632
|
var __defProp2 = Object.defineProperty;
|
|
8369
8633
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
8370
8634
|
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
@@ -8567,7 +8831,7 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
8567
8831
|
}
|
|
8568
8832
|
var fromCharCode = String.fromCharCode;
|
|
8569
8833
|
function throwSyntaxError(bytes, index, message) {
|
|
8570
|
-
const
|
|
8834
|
+
const c2 = bytes[index];
|
|
8571
8835
|
let line = 1;
|
|
8572
8836
|
let column = 0;
|
|
8573
8837
|
for (let i = 0; i < index; i++) {
|
|
@@ -8579,7 +8843,7 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
8579
8843
|
}
|
|
8580
8844
|
}
|
|
8581
8845
|
throw new SyntaxError(
|
|
8582
|
-
message ? message : index === bytes.length ? "Unexpected end of input while parsing JSON" :
|
|
8846
|
+
message ? message : index === bytes.length ? "Unexpected end of input while parsing JSON" : c2 >= 32 && c2 <= 126 ? `Unexpected character ${fromCharCode(c2)} in JSON at position ${index} (line ${line}, column ${column})` : `Unexpected byte 0x${c2.toString(16)} in JSON at position ${index} (line ${line}, column ${column})`
|
|
8583
8847
|
);
|
|
8584
8848
|
}
|
|
8585
8849
|
function JSON_parse(bytes) {
|
|
@@ -8595,15 +8859,15 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
8595
8859
|
let object;
|
|
8596
8860
|
let i = 0;
|
|
8597
8861
|
while (i < length) {
|
|
8598
|
-
let
|
|
8599
|
-
if (
|
|
8862
|
+
let c2 = bytes[i++];
|
|
8863
|
+
if (c2 <= 32) {
|
|
8600
8864
|
continue;
|
|
8601
8865
|
}
|
|
8602
8866
|
let value;
|
|
8603
|
-
if (state === 2 && property === null &&
|
|
8867
|
+
if (state === 2 && property === null && c2 !== 34 && c2 !== 125) {
|
|
8604
8868
|
throwSyntaxError(bytes, --i);
|
|
8605
8869
|
}
|
|
8606
|
-
switch (
|
|
8870
|
+
switch (c2) {
|
|
8607
8871
|
// True
|
|
8608
8872
|
case 116: {
|
|
8609
8873
|
if (bytes[i++] !== 114 || bytes[i++] !== 117 || bytes[i++] !== 101) {
|
|
@@ -8642,10 +8906,10 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
8642
8906
|
case 56:
|
|
8643
8907
|
case 57: {
|
|
8644
8908
|
let index = i;
|
|
8645
|
-
value = fromCharCode(
|
|
8646
|
-
|
|
8909
|
+
value = fromCharCode(c2);
|
|
8910
|
+
c2 = bytes[i];
|
|
8647
8911
|
while (true) {
|
|
8648
|
-
switch (
|
|
8912
|
+
switch (c2) {
|
|
8649
8913
|
case 43:
|
|
8650
8914
|
case 45:
|
|
8651
8915
|
case 46:
|
|
@@ -8661,8 +8925,8 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
8661
8925
|
case 57:
|
|
8662
8926
|
case 101:
|
|
8663
8927
|
case 69: {
|
|
8664
|
-
value += fromCharCode(
|
|
8665
|
-
|
|
8928
|
+
value += fromCharCode(c2);
|
|
8929
|
+
c2 = bytes[++i];
|
|
8666
8930
|
continue;
|
|
8667
8931
|
}
|
|
8668
8932
|
}
|
|
@@ -8681,10 +8945,10 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
8681
8945
|
if (i >= length) {
|
|
8682
8946
|
throwSyntaxError(bytes, length);
|
|
8683
8947
|
}
|
|
8684
|
-
|
|
8685
|
-
if (
|
|
8948
|
+
c2 = bytes[i++];
|
|
8949
|
+
if (c2 === 34) {
|
|
8686
8950
|
break;
|
|
8687
|
-
} else if (
|
|
8951
|
+
} else if (c2 === 92) {
|
|
8688
8952
|
switch (bytes[i++]) {
|
|
8689
8953
|
// Normal escape sequence
|
|
8690
8954
|
case 34:
|
|
@@ -8715,11 +8979,11 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
8715
8979
|
case 117: {
|
|
8716
8980
|
let code = 0;
|
|
8717
8981
|
for (let j2 = 0; j2 < 4; j2++) {
|
|
8718
|
-
|
|
8982
|
+
c2 = bytes[i++];
|
|
8719
8983
|
code <<= 4;
|
|
8720
|
-
if (
|
|
8721
|
-
else if (
|
|
8722
|
-
else if (
|
|
8984
|
+
if (c2 >= 48 && c2 <= 57) code |= c2 - 48;
|
|
8985
|
+
else if (c2 >= 97 && c2 <= 102) code |= c2 + (10 - 97);
|
|
8986
|
+
else if (c2 >= 65 && c2 <= 70) code |= c2 + (10 - 65);
|
|
8723
8987
|
else throwSyntaxError(bytes, --i);
|
|
8724
8988
|
}
|
|
8725
8989
|
value += fromCharCode(code);
|
|
@@ -8730,14 +8994,14 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
8730
8994
|
throwSyntaxError(bytes, --i);
|
|
8731
8995
|
break;
|
|
8732
8996
|
}
|
|
8733
|
-
} else if (
|
|
8734
|
-
value += fromCharCode(
|
|
8735
|
-
} else if ((
|
|
8736
|
-
value += fromCharCode((
|
|
8737
|
-
} else if ((
|
|
8738
|
-
value += fromCharCode((
|
|
8739
|
-
} else if ((
|
|
8740
|
-
let codePoint = (
|
|
8997
|
+
} else if (c2 <= 127) {
|
|
8998
|
+
value += fromCharCode(c2);
|
|
8999
|
+
} else if ((c2 & 224) === 192) {
|
|
9000
|
+
value += fromCharCode((c2 & 31) << 6 | bytes[i++] & 63);
|
|
9001
|
+
} else if ((c2 & 240) === 224) {
|
|
9002
|
+
value += fromCharCode((c2 & 15) << 12 | (bytes[i++] & 63) << 6 | bytes[i++] & 63);
|
|
9003
|
+
} else if ((c2 & 248) == 240) {
|
|
9004
|
+
let codePoint = (c2 & 7) << 18 | (bytes[i++] & 63) << 12 | (bytes[i++] & 63) << 6 | bytes[i++] & 63;
|
|
8741
9005
|
if (codePoint > 65535) {
|
|
8742
9006
|
codePoint -= 65536;
|
|
8743
9007
|
value += fromCharCode(codePoint >> 10 & 1023 | 55296);
|
|
@@ -8797,9 +9061,9 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
8797
9061
|
throwSyntaxError(bytes, --i);
|
|
8798
9062
|
}
|
|
8799
9063
|
}
|
|
8800
|
-
|
|
8801
|
-
while (
|
|
8802
|
-
|
|
9064
|
+
c2 = bytes[i];
|
|
9065
|
+
while (c2 <= 32) {
|
|
9066
|
+
c2 = bytes[++i];
|
|
8803
9067
|
}
|
|
8804
9068
|
switch (state) {
|
|
8805
9069
|
case 0: {
|
|
@@ -8810,11 +9074,11 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
8810
9074
|
}
|
|
8811
9075
|
case 1: {
|
|
8812
9076
|
object.push(value);
|
|
8813
|
-
if (
|
|
9077
|
+
if (c2 === 44) {
|
|
8814
9078
|
i++;
|
|
8815
9079
|
continue;
|
|
8816
9080
|
}
|
|
8817
|
-
if (
|
|
9081
|
+
if (c2 === 93) {
|
|
8818
9082
|
continue;
|
|
8819
9083
|
}
|
|
8820
9084
|
break;
|
|
@@ -8822,18 +9086,18 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
8822
9086
|
case 2: {
|
|
8823
9087
|
if (property === null) {
|
|
8824
9088
|
property = value;
|
|
8825
|
-
if (
|
|
9089
|
+
if (c2 === 58) {
|
|
8826
9090
|
i++;
|
|
8827
9091
|
continue;
|
|
8828
9092
|
}
|
|
8829
9093
|
} else {
|
|
8830
9094
|
object[property] = value;
|
|
8831
9095
|
property = null;
|
|
8832
|
-
if (
|
|
9096
|
+
if (c2 === 44) {
|
|
8833
9097
|
i++;
|
|
8834
9098
|
continue;
|
|
8835
9099
|
}
|
|
8836
|
-
if (
|
|
9100
|
+
if (c2 === 125) {
|
|
8837
9101
|
continue;
|
|
8838
9102
|
}
|
|
8839
9103
|
}
|
|
@@ -8864,14 +9128,14 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
8864
9128
|
var mustBeValidPortNumber = (value) => typeof value === "number" && value === (value | 0) && value >= 0 && value <= 65535 ? null : "a valid port number";
|
|
8865
9129
|
var mustBeFunction = (value) => typeof value === "function" ? null : "a function";
|
|
8866
9130
|
var mustBeArray = (value) => Array.isArray(value) ? null : "an array";
|
|
8867
|
-
var mustBeArrayOfStrings = (value) => Array.isArray(value) && value.every((
|
|
9131
|
+
var mustBeArrayOfStrings = (value) => Array.isArray(value) && value.every((x) => typeof x === "string") ? null : "an array of strings";
|
|
8868
9132
|
var mustBeObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? null : "an object";
|
|
8869
9133
|
var mustBeEntryPoints = (value) => typeof value === "object" && value !== null ? null : "an array or an object";
|
|
8870
9134
|
var mustBeWebAssemblyModule = (value) => value instanceof WebAssembly.Module ? null : "a WebAssembly.Module";
|
|
8871
9135
|
var mustBeObjectOrNull = (value) => typeof value === "object" && !Array.isArray(value) ? null : "an object or null";
|
|
8872
9136
|
var mustBeStringOrBoolean = (value) => typeof value === "string" || typeof value === "boolean" ? null : "a string or a boolean";
|
|
8873
9137
|
var mustBeStringOrObject = (value) => typeof value === "string" || typeof value === "object" && value !== null && !Array.isArray(value) ? null : "a string or an object";
|
|
8874
|
-
var mustBeStringOrArrayOfStrings = (value) => typeof value === "string" || Array.isArray(value) && value.every((
|
|
9138
|
+
var mustBeStringOrArrayOfStrings = (value) => typeof value === "string" || Array.isArray(value) && value.every((x) => typeof x === "string") ? null : "a string or an array of strings";
|
|
8875
9139
|
var mustBeStringOrUint8Array = (value) => typeof value === "string" || value instanceof Uint8Array ? null : "a string or a Uint8Array";
|
|
8876
9140
|
var mustBeStringOrURL = (value) => typeof value === "string" || value instanceof URL ? null : "a string or a URL";
|
|
8877
9141
|
function getFlag(object, keys, key, mustBeFn) {
|
|
@@ -9259,8 +9523,8 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
9259
9523
|
}
|
|
9260
9524
|
}
|
|
9261
9525
|
throw new Error(`Invalid command: ` + request.command);
|
|
9262
|
-
} catch (
|
|
9263
|
-
const errors = [extractErrorMessageV8(
|
|
9526
|
+
} catch (e) {
|
|
9527
|
+
const errors = [extractErrorMessageV8(e, streamIn, null, void 0, "")];
|
|
9264
9528
|
try {
|
|
9265
9529
|
sendResponse(id, { errors });
|
|
9266
9530
|
} catch {
|
|
@@ -9272,8 +9536,8 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
9272
9536
|
if (isFirstPacket) {
|
|
9273
9537
|
isFirstPacket = false;
|
|
9274
9538
|
let binaryVersion = String.fromCharCode(...bytes);
|
|
9275
|
-
if (binaryVersion !== "0.27.
|
|
9276
|
-
throw new Error(`Cannot start service: Host version "${"0.27.
|
|
9539
|
+
if (binaryVersion !== "0.27.7") {
|
|
9540
|
+
throw new Error(`Cannot start service: Host version "${"0.27.7"}" does not match binary version ${quote(binaryVersion)}`);
|
|
9277
9541
|
}
|
|
9278
9542
|
return;
|
|
9279
9543
|
}
|
|
@@ -9387,13 +9651,13 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
9387
9651
|
}
|
|
9388
9652
|
next();
|
|
9389
9653
|
});
|
|
9390
|
-
} catch (
|
|
9654
|
+
} catch (e) {
|
|
9391
9655
|
let flags = [];
|
|
9392
9656
|
try {
|
|
9393
9657
|
pushLogFlags(flags, options, {}, isTTY2, transformLogLevelDefault);
|
|
9394
9658
|
} catch {
|
|
9395
9659
|
}
|
|
9396
|
-
const error2 = extractErrorMessageV8(
|
|
9660
|
+
const error2 = extractErrorMessageV8(e, streamIn, details, void 0, "");
|
|
9397
9661
|
sendRequest(refs, { command: "error", flags, error: error2 }, () => {
|
|
9398
9662
|
error2.detail = details.load(error2.detail);
|
|
9399
9663
|
callback(failureErrorWithLog("Transform failed", [error2], []), null);
|
|
@@ -9458,13 +9722,13 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
9458
9722
|
function buildOrContextImpl(callName, buildKey, sendRequest, sendResponse, refs, streamIn, requestCallbacks, options, isTTY2, defaultWD2, callback) {
|
|
9459
9723
|
const details = createObjectStash();
|
|
9460
9724
|
const isContext = callName === "context";
|
|
9461
|
-
const handleError = (
|
|
9725
|
+
const handleError = (e, pluginName) => {
|
|
9462
9726
|
const flags = [];
|
|
9463
9727
|
try {
|
|
9464
9728
|
pushLogFlags(flags, options, {}, isTTY2, buildLogLevelDefault);
|
|
9465
9729
|
} catch {
|
|
9466
9730
|
}
|
|
9467
|
-
const message = extractErrorMessageV8(
|
|
9731
|
+
const message = extractErrorMessageV8(e, streamIn, details, void 0, pluginName);
|
|
9468
9732
|
sendRequest(refs, { command: "error", flags, error: message }, () => {
|
|
9469
9733
|
message.detail = details.load(message.detail);
|
|
9470
9734
|
callback(failureErrorWithLog(isContext ? "Context failed" : "Build failed", [message], []), null);
|
|
@@ -9495,19 +9759,19 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
9495
9759
|
if (!result.ok) return handleError(result.error, result.pluginName);
|
|
9496
9760
|
try {
|
|
9497
9761
|
buildOrContextContinue(result.requestPlugins, result.runOnEndCallbacks, result.scheduleOnDisposeCallbacks);
|
|
9498
|
-
} catch (
|
|
9499
|
-
handleError(
|
|
9762
|
+
} catch (e) {
|
|
9763
|
+
handleError(e, "");
|
|
9500
9764
|
}
|
|
9501
9765
|
},
|
|
9502
|
-
(
|
|
9766
|
+
(e) => handleError(e, "")
|
|
9503
9767
|
);
|
|
9504
9768
|
return;
|
|
9505
9769
|
}
|
|
9506
9770
|
try {
|
|
9507
9771
|
buildOrContextContinue(null, (result, done) => done([], []), () => {
|
|
9508
9772
|
});
|
|
9509
|
-
} catch (
|
|
9510
|
-
handleError(
|
|
9773
|
+
} catch (e) {
|
|
9774
|
+
handleError(e, "");
|
|
9511
9775
|
}
|
|
9512
9776
|
function buildOrContextContinue(requestPlugins, runOnEndCallbacks, scheduleOnDisposeCallbacks) {
|
|
9513
9777
|
const writeDefault = streamIn.hasFS;
|
|
@@ -9547,7 +9811,7 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
9547
9811
|
const originalErrors = result.errors.slice();
|
|
9548
9812
|
const originalWarnings = result.warnings.slice();
|
|
9549
9813
|
if (response.outputFiles) result.outputFiles = response.outputFiles.map(convertOutputFiles);
|
|
9550
|
-
if (response.metafile) result.metafile = parseJSON(response.metafile);
|
|
9814
|
+
if (response.metafile && response.metafile.length) result.metafile = parseJSON(response.metafile);
|
|
9551
9815
|
if (response.mangleCache) result.mangleCache = response.mangleCache;
|
|
9552
9816
|
if (response.writeToStdout !== void 0) ;
|
|
9553
9817
|
runOnEndCallbacks(result, (onEndErrors, onEndWarnings) => {
|
|
@@ -9813,8 +10077,8 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
9813
10077
|
});
|
|
9814
10078
|
if (promise) await promise;
|
|
9815
10079
|
requestPlugins.push(plugin);
|
|
9816
|
-
} catch (
|
|
9817
|
-
return { ok: false, error:
|
|
10080
|
+
} catch (e) {
|
|
10081
|
+
return { ok: false, error: e, pluginName: name };
|
|
9818
10082
|
}
|
|
9819
10083
|
}
|
|
9820
10084
|
requestCallbacks["on-start"] = async (id, request) => {
|
|
@@ -9832,8 +10096,8 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
9832
10096
|
if (errors != null) response.errors.push(...sanitizeMessages(errors, "errors", details, name, void 0));
|
|
9833
10097
|
if (warnings != null) response.warnings.push(...sanitizeMessages(warnings, "warnings", details, name, void 0));
|
|
9834
10098
|
}
|
|
9835
|
-
} catch (
|
|
9836
|
-
response.errors.push(extractErrorMessageV8(
|
|
10099
|
+
} catch (e) {
|
|
10100
|
+
response.errors.push(extractErrorMessageV8(e, streamIn, details, note && note(), name));
|
|
9837
10101
|
}
|
|
9838
10102
|
}));
|
|
9839
10103
|
sendResponse(id, response);
|
|
@@ -9881,8 +10145,8 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
9881
10145
|
if (watchDirs != null) response.watchDirs = sanitizeStringArray(watchDirs, "watchDirs");
|
|
9882
10146
|
break;
|
|
9883
10147
|
}
|
|
9884
|
-
} catch (
|
|
9885
|
-
response = { id: id2, errors: [extractErrorMessageV8(
|
|
10148
|
+
} catch (e) {
|
|
10149
|
+
response = { id: id2, errors: [extractErrorMessageV8(e, streamIn, details, note && note(), name)] };
|
|
9886
10150
|
break;
|
|
9887
10151
|
}
|
|
9888
10152
|
}
|
|
@@ -9926,8 +10190,8 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
9926
10190
|
if (watchDirs != null) response.watchDirs = sanitizeStringArray(watchDirs, "watchDirs");
|
|
9927
10191
|
break;
|
|
9928
10192
|
}
|
|
9929
|
-
} catch (
|
|
9930
|
-
response = { id: id2, errors: [extractErrorMessageV8(
|
|
10193
|
+
} catch (e) {
|
|
10194
|
+
response = { id: id2, errors: [extractErrorMessageV8(e, streamIn, details, note && note(), name)] };
|
|
9931
10195
|
break;
|
|
9932
10196
|
}
|
|
9933
10197
|
}
|
|
@@ -9953,8 +10217,8 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
9953
10217
|
if (errors != null) newErrors = sanitizeMessages(errors, "errors", details, name, void 0);
|
|
9954
10218
|
if (warnings != null) newWarnings = sanitizeMessages(warnings, "warnings", details, name, void 0);
|
|
9955
10219
|
}
|
|
9956
|
-
} catch (
|
|
9957
|
-
newErrors = [extractErrorMessageV8(
|
|
10220
|
+
} catch (e) {
|
|
10221
|
+
newErrors = [extractErrorMessageV8(e, streamIn, details, note && note(), name)];
|
|
9958
10222
|
}
|
|
9959
10223
|
if (newErrors) {
|
|
9960
10224
|
onEndErrors.push(...newErrors);
|
|
@@ -10006,44 +10270,44 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
10006
10270
|
}
|
|
10007
10271
|
};
|
|
10008
10272
|
}
|
|
10009
|
-
function extractCallerV8(
|
|
10273
|
+
function extractCallerV8(e, streamIn, ident) {
|
|
10010
10274
|
let note;
|
|
10011
10275
|
let tried = false;
|
|
10012
10276
|
return () => {
|
|
10013
10277
|
if (tried) return note;
|
|
10014
10278
|
tried = true;
|
|
10015
10279
|
try {
|
|
10016
|
-
let lines = (
|
|
10280
|
+
let lines = (e.stack + "").split("\n");
|
|
10017
10281
|
lines.splice(1, 1);
|
|
10018
10282
|
let location = parseStackLinesV8(streamIn, lines, ident);
|
|
10019
10283
|
if (location) {
|
|
10020
|
-
note = { text:
|
|
10284
|
+
note = { text: e.message, location };
|
|
10021
10285
|
return note;
|
|
10022
10286
|
}
|
|
10023
10287
|
} catch {
|
|
10024
10288
|
}
|
|
10025
10289
|
};
|
|
10026
10290
|
}
|
|
10027
|
-
function extractErrorMessageV8(
|
|
10291
|
+
function extractErrorMessageV8(e, streamIn, stash, note, pluginName) {
|
|
10028
10292
|
let text = "Internal error";
|
|
10029
10293
|
let location = null;
|
|
10030
10294
|
try {
|
|
10031
|
-
text = (
|
|
10295
|
+
text = (e && e.message || e) + "";
|
|
10032
10296
|
} catch {
|
|
10033
10297
|
}
|
|
10034
10298
|
try {
|
|
10035
|
-
location = parseStackLinesV8(streamIn, (
|
|
10299
|
+
location = parseStackLinesV8(streamIn, (e.stack + "").split("\n"), "");
|
|
10036
10300
|
} catch {
|
|
10037
10301
|
}
|
|
10038
|
-
return { id: "", pluginName, text, location, notes: note ? [note] : [], detail: stash ? stash.store(
|
|
10302
|
+
return { id: "", pluginName, text, location, notes: note ? [note] : [], detail: stash ? stash.store(e) : -1 };
|
|
10039
10303
|
}
|
|
10040
10304
|
function parseStackLinesV8(streamIn, lines, ident) {
|
|
10041
|
-
let
|
|
10042
|
-
if (streamIn.readFileSync && !lines[0].startsWith(
|
|
10305
|
+
let at2 = " at ";
|
|
10306
|
+
if (streamIn.readFileSync && !lines[0].startsWith(at2) && lines[1].startsWith(at2)) {
|
|
10043
10307
|
for (let i = 1; i < lines.length; i++) {
|
|
10044
10308
|
let line = lines[i];
|
|
10045
|
-
if (!line.startsWith(
|
|
10046
|
-
line = line.slice(
|
|
10309
|
+
if (!line.startsWith(at2)) continue;
|
|
10310
|
+
line = line.slice(at2.length);
|
|
10047
10311
|
while (true) {
|
|
10048
10312
|
let match = /^(?:new |async )?\S+ \((.*)\)$/.exec(line);
|
|
10049
10313
|
if (match) {
|
|
@@ -10084,14 +10348,14 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
10084
10348
|
}
|
|
10085
10349
|
function failureErrorWithLog(text, errors, warnings) {
|
|
10086
10350
|
let limit = 5;
|
|
10087
|
-
text += errors.length < 1 ? "" : ` with ${errors.length} error${errors.length < 2 ? "" : "s"}:` + errors.slice(0, limit + 1).map((
|
|
10351
|
+
text += errors.length < 1 ? "" : ` with ${errors.length} error${errors.length < 2 ? "" : "s"}:` + errors.slice(0, limit + 1).map((e, i) => {
|
|
10088
10352
|
if (i === limit) return "\n...";
|
|
10089
|
-
if (!
|
|
10090
|
-
error: ${
|
|
10091
|
-
let { file, line, column } =
|
|
10092
|
-
let pluginText =
|
|
10353
|
+
if (!e.location) return `
|
|
10354
|
+
error: ${e.text}`;
|
|
10355
|
+
let { file, line, column } = e.location;
|
|
10356
|
+
let pluginText = e.pluginName ? `[plugin: ${e.pluginName}] ` : "";
|
|
10093
10357
|
return `
|
|
10094
|
-
${file}:${line}:${column}: ERROR: ${pluginText}${
|
|
10358
|
+
${file}:${line}:${column}: ERROR: ${pluginText}${e.text}`;
|
|
10095
10359
|
}).join("");
|
|
10096
10360
|
let error2 = new Error(text);
|
|
10097
10361
|
for (const [key, value] of [["errors", errors], ["warnings", warnings]]) {
|
|
@@ -10233,7 +10497,7 @@ ${file}:${line}:${column}: ERROR: ${pluginText}${e2.text}`;
|
|
|
10233
10497
|
var os = __require("os");
|
|
10234
10498
|
var path = __require("path");
|
|
10235
10499
|
var ESBUILD_BINARY_PATH = process.env.ESBUILD_BINARY_PATH || ESBUILD_BINARY_PATH;
|
|
10236
|
-
var isValidBinaryPath = (
|
|
10500
|
+
var isValidBinaryPath = (x) => !!x && x !== "/usr/bin/esbuild";
|
|
10237
10501
|
var packageDarwin_arm64 = "@esbuild/darwin-arm64";
|
|
10238
10502
|
var packageDarwin_x64 = "@esbuild/darwin-x64";
|
|
10239
10503
|
var knownWindowsPackages = {
|
|
@@ -10324,7 +10588,7 @@ ${file}:${line}:${column}: ERROR: ${pluginText}${e2.text}`;
|
|
|
10324
10588
|
let binPath;
|
|
10325
10589
|
try {
|
|
10326
10590
|
binPath = __require.resolve(`${pkg}/${subpath}`);
|
|
10327
|
-
} catch (
|
|
10591
|
+
} catch (e) {
|
|
10328
10592
|
binPath = downloadedBinPath(pkg, subpath);
|
|
10329
10593
|
if (!fs3.existsSync(binPath)) {
|
|
10330
10594
|
try {
|
|
@@ -10389,14 +10653,14 @@ If you are installing esbuild with npm, make sure that you don't specify the
|
|
|
10389
10653
|
of "package.json" is used by esbuild to install the correct binary executable
|
|
10390
10654
|
for your current platform.`);
|
|
10391
10655
|
}
|
|
10392
|
-
throw
|
|
10656
|
+
throw e;
|
|
10393
10657
|
}
|
|
10394
10658
|
}
|
|
10395
10659
|
if (/\.zip\//.test(binPath)) {
|
|
10396
10660
|
let pnpapi;
|
|
10397
10661
|
try {
|
|
10398
10662
|
pnpapi = __require("pnpapi");
|
|
10399
|
-
} catch (
|
|
10663
|
+
} catch (e) {
|
|
10400
10664
|
}
|
|
10401
10665
|
if (pnpapi) {
|
|
10402
10666
|
const root = pnpapi.getPackageInformation(pnpapi.topLevel).packageLocation;
|
|
@@ -10405,7 +10669,7 @@ for your current platform.`);
|
|
|
10405
10669
|
"node_modules",
|
|
10406
10670
|
".cache",
|
|
10407
10671
|
"esbuild",
|
|
10408
|
-
`pnpapi-${pkg.replace("/", "-")}-${"0.27.
|
|
10672
|
+
`pnpapi-${pkg.replace("/", "-")}-${"0.27.7"}-${path.basename(subpath)}`
|
|
10409
10673
|
);
|
|
10410
10674
|
if (!fs3.existsSync(binTargetPath)) {
|
|
10411
10675
|
fs3.mkdirSync(path.dirname(binTargetPath), { recursive: true });
|
|
@@ -10438,7 +10702,7 @@ for your current platform.`);
|
|
|
10438
10702
|
}
|
|
10439
10703
|
}
|
|
10440
10704
|
var _a;
|
|
10441
|
-
var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.27.
|
|
10705
|
+
var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.27.7";
|
|
10442
10706
|
var esbuildCommandAndArgs = () => {
|
|
10443
10707
|
if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
|
|
10444
10708
|
throw new Error(
|
|
@@ -10505,7 +10769,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
|
|
|
10505
10769
|
}
|
|
10506
10770
|
}
|
|
10507
10771
|
};
|
|
10508
|
-
var version = "0.27.
|
|
10772
|
+
var version = "0.27.7";
|
|
10509
10773
|
var build2 = (options) => ensureServiceIsRunning().build(options);
|
|
10510
10774
|
var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
|
|
10511
10775
|
var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
|
|
@@ -10608,7 +10872,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
|
|
|
10608
10872
|
var ensureServiceIsRunning = () => {
|
|
10609
10873
|
if (longLivedService) return longLivedService;
|
|
10610
10874
|
let [command, args] = esbuildCommandAndArgs();
|
|
10611
|
-
let child = child_process.spawn(command, args.concat(`--service=${"0.27.
|
|
10875
|
+
let child = child_process.spawn(command, args.concat(`--service=${"0.27.7"}`, "--ping"), {
|
|
10612
10876
|
windowsHide: true,
|
|
10613
10877
|
stdio: ["pipe", "pipe", "inherit"],
|
|
10614
10878
|
cwd: defaultWD
|
|
@@ -10712,7 +10976,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
|
|
|
10712
10976
|
esbuild: node_exports
|
|
10713
10977
|
});
|
|
10714
10978
|
callback(service);
|
|
10715
|
-
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.27.
|
|
10979
|
+
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.27.7"}`), {
|
|
10716
10980
|
cwd: defaultWD,
|
|
10717
10981
|
windowsHide: true,
|
|
10718
10982
|
input: stdin,
|
|
@@ -10732,7 +10996,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
|
|
|
10732
10996
|
var startWorkerThreadService = (worker_threads2) => {
|
|
10733
10997
|
let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
|
|
10734
10998
|
let worker = new worker_threads2.Worker(__filename, {
|
|
10735
|
-
workerData: { workerPort, defaultWD, esbuildVersion: "0.27.
|
|
10999
|
+
workerData: { workerPort, defaultWD, esbuildVersion: "0.27.7" },
|
|
10736
11000
|
transferList: [workerPort],
|
|
10737
11001
|
// From node's documentation: https://nodejs.org/api/worker_threads.html
|
|
10738
11002
|
//
|
|
@@ -10876,10 +11140,12 @@ function detectWorkspace() {
|
|
|
10876
11140
|
const packageJsonPath = join3(currentDir, "package.json");
|
|
10877
11141
|
if (fs2.existsSync(packageJsonPath)) {
|
|
10878
11142
|
try {
|
|
10879
|
-
const packageJson = JSON.parse(
|
|
11143
|
+
const packageJson = JSON.parse(
|
|
11144
|
+
fs2.readFileSync(packageJsonPath, "utf8")
|
|
11145
|
+
);
|
|
10880
11146
|
const hasWorkspaces = Array.isArray(packageJson.workspaces);
|
|
10881
11147
|
const hasDndevPackages = hasWorkspaces && packageJson.workspaces.some(
|
|
10882
|
-
(
|
|
11148
|
+
(w3) => w3 === "packages/**" || w3.startsWith("packages/")
|
|
10883
11149
|
);
|
|
10884
11150
|
const isDndevRepo = hasDndevPackages && (fs2.existsSync(join3(currentDir, "packages", "core")) || fs2.existsSync(join3(currentDir, "packages", "functions")));
|
|
10885
11151
|
if (isDndevRepo) {
|
|
@@ -10887,7 +11153,7 @@ function detectWorkspace() {
|
|
|
10887
11153
|
}
|
|
10888
11154
|
if (hasWorkspaces) {
|
|
10889
11155
|
const dndevPattern = packageJson.workspaces.find(
|
|
10890
|
-
(
|
|
11156
|
+
(w3) => w3.includes("dndev/packages")
|
|
10891
11157
|
);
|
|
10892
11158
|
if (dndevPattern) {
|
|
10893
11159
|
const dndevRelPath = dndevPattern.replace(/\/packages.*$/, "");
|
|
@@ -10927,7 +11193,9 @@ function resolvePackageExport(packageName, subpath, fromDir) {
|
|
|
10927
11193
|
const pkgDir = resolvePackage(packageName, fromDir);
|
|
10928
11194
|
if (!pkgDir) return null;
|
|
10929
11195
|
try {
|
|
10930
|
-
const pkgJson = JSON.parse(
|
|
11196
|
+
const pkgJson = JSON.parse(
|
|
11197
|
+
fs2.readFileSync(join3(pkgDir, "package.json"), "utf8")
|
|
11198
|
+
);
|
|
10931
11199
|
const exports = pkgJson.exports;
|
|
10932
11200
|
if (!exports) return null;
|
|
10933
11201
|
const entry = exports[subpath];
|
|
@@ -10948,10 +11216,21 @@ function createDenoEdgePlugin(workspace, denoImports, functionsDir) {
|
|
|
10948
11216
|
const subpath = args.path.replace("@donotdev/functions/", "");
|
|
10949
11217
|
if (workspace.type === "dndev") {
|
|
10950
11218
|
return {
|
|
10951
|
-
path: resolve4(
|
|
11219
|
+
path: resolve4(
|
|
11220
|
+
workspace.root,
|
|
11221
|
+
"packages",
|
|
11222
|
+
"functions",
|
|
11223
|
+
"src",
|
|
11224
|
+
subpath,
|
|
11225
|
+
"index.ts"
|
|
11226
|
+
)
|
|
10952
11227
|
};
|
|
10953
11228
|
}
|
|
10954
|
-
const resolved = resolvePackageExport(
|
|
11229
|
+
const resolved = resolvePackageExport(
|
|
11230
|
+
"@donotdev/functions",
|
|
11231
|
+
`./${subpath}`,
|
|
11232
|
+
functionsDir
|
|
11233
|
+
);
|
|
10955
11234
|
if (resolved) return { path: resolved };
|
|
10956
11235
|
return null;
|
|
10957
11236
|
});
|
|
@@ -10973,17 +11252,33 @@ function createDenoEdgePlugin(workspace, denoImports, functionsDir) {
|
|
|
10973
11252
|
path: resolve4(workspace.root, "packages", "core", `${subpath}.ts`)
|
|
10974
11253
|
};
|
|
10975
11254
|
}
|
|
10976
|
-
const resolved = resolvePackageExport(
|
|
11255
|
+
const resolved = resolvePackageExport(
|
|
11256
|
+
"@donotdev/core",
|
|
11257
|
+
`./${subpath}`,
|
|
11258
|
+
functionsDir
|
|
11259
|
+
);
|
|
10977
11260
|
if (resolved) return { path: resolved };
|
|
10978
11261
|
return null;
|
|
10979
11262
|
});
|
|
10980
11263
|
build2.onResolve({ filter: /^@donotdev\/utils$/ }, (args) => {
|
|
10981
11264
|
if (workspace.type === "dndev") {
|
|
10982
11265
|
return {
|
|
10983
|
-
path: resolve4(
|
|
11266
|
+
path: resolve4(
|
|
11267
|
+
workspace.root,
|
|
11268
|
+
"packages",
|
|
11269
|
+
"core",
|
|
11270
|
+
"utils",
|
|
11271
|
+
"src",
|
|
11272
|
+
"server",
|
|
11273
|
+
"index.ts"
|
|
11274
|
+
)
|
|
10984
11275
|
};
|
|
10985
11276
|
}
|
|
10986
|
-
const resolved = resolvePackageExport(
|
|
11277
|
+
const resolved = resolvePackageExport(
|
|
11278
|
+
"@donotdev/core",
|
|
11279
|
+
"./server",
|
|
11280
|
+
functionsDir
|
|
11281
|
+
);
|
|
10987
11282
|
if (resolved) return { path: resolved };
|
|
10988
11283
|
return build2.resolve("@donotdev/core/server", {
|
|
10989
11284
|
kind: args.kind,
|
|
@@ -10994,20 +11289,44 @@ function createDenoEdgePlugin(workspace, denoImports, functionsDir) {
|
|
|
10994
11289
|
const subpath = args.path.replace("@donotdev/utils/", "");
|
|
10995
11290
|
if (workspace.type === "dndev") {
|
|
10996
11291
|
return {
|
|
10997
|
-
path: resolve4(
|
|
11292
|
+
path: resolve4(
|
|
11293
|
+
workspace.root,
|
|
11294
|
+
"packages",
|
|
11295
|
+
"core",
|
|
11296
|
+
"utils",
|
|
11297
|
+
"src",
|
|
11298
|
+
subpath,
|
|
11299
|
+
"index.ts"
|
|
11300
|
+
)
|
|
10998
11301
|
};
|
|
10999
11302
|
}
|
|
11000
|
-
const resolved = resolvePackageExport(
|
|
11303
|
+
const resolved = resolvePackageExport(
|
|
11304
|
+
"@donotdev/core",
|
|
11305
|
+
`./${subpath}`,
|
|
11306
|
+
functionsDir
|
|
11307
|
+
);
|
|
11001
11308
|
if (resolved) return { path: resolved };
|
|
11002
11309
|
return null;
|
|
11003
11310
|
});
|
|
11004
11311
|
build2.onResolve({ filter: /^@donotdev\/supabase$/ }, (args) => {
|
|
11005
11312
|
if (workspace.type === "dndev") {
|
|
11006
11313
|
return {
|
|
11007
|
-
path: resolve4(
|
|
11314
|
+
path: resolve4(
|
|
11315
|
+
workspace.root,
|
|
11316
|
+
"packages",
|
|
11317
|
+
"providers",
|
|
11318
|
+
"supabase",
|
|
11319
|
+
"src",
|
|
11320
|
+
"server",
|
|
11321
|
+
"index.ts"
|
|
11322
|
+
)
|
|
11008
11323
|
};
|
|
11009
11324
|
}
|
|
11010
|
-
const resolved = resolvePackageExport(
|
|
11325
|
+
const resolved = resolvePackageExport(
|
|
11326
|
+
"@donotdev/supabase",
|
|
11327
|
+
"./server",
|
|
11328
|
+
functionsDir
|
|
11329
|
+
);
|
|
11011
11330
|
if (resolved) return { path: resolved };
|
|
11012
11331
|
return build2.resolve("@donotdev/supabase/server", {
|
|
11013
11332
|
kind: args.kind,
|
|
@@ -11020,10 +11339,13 @@ function createDenoEdgePlugin(workspace, denoImports, functionsDir) {
|
|
|
11020
11339
|
const prefix = specifier;
|
|
11021
11340
|
const basePath = resolve4(functionsDir, target);
|
|
11022
11341
|
const escapedPrefix = prefix.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
11023
|
-
build2.onResolve(
|
|
11024
|
-
|
|
11025
|
-
|
|
11026
|
-
|
|
11342
|
+
build2.onResolve(
|
|
11343
|
+
{ filter: new RegExp(`^${escapedPrefix}`) },
|
|
11344
|
+
(args) => {
|
|
11345
|
+
const subpath = args.path.slice(prefix.length);
|
|
11346
|
+
return { path: resolve4(basePath, subpath) };
|
|
11347
|
+
}
|
|
11348
|
+
);
|
|
11027
11349
|
}
|
|
11028
11350
|
}
|
|
11029
11351
|
build2.onResolve({ filter: /.*/ }, (args) => {
|
|
@@ -11049,10 +11371,33 @@ async function bundleEdgeFunction(options) {
|
|
|
11049
11371
|
const denoImports = readDenoImports(functionsDir);
|
|
11050
11372
|
const alias = {};
|
|
11051
11373
|
if (workspace.type === "dndev") {
|
|
11052
|
-
alias["@donotdev/types"] = join3(
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11374
|
+
alias["@donotdev/types"] = join3(
|
|
11375
|
+
workspace.root,
|
|
11376
|
+
"packages",
|
|
11377
|
+
"core",
|
|
11378
|
+
"types",
|
|
11379
|
+
"src"
|
|
11380
|
+
);
|
|
11381
|
+
alias["@donotdev/functions"] = join3(
|
|
11382
|
+
workspace.root,
|
|
11383
|
+
"packages",
|
|
11384
|
+
"functions",
|
|
11385
|
+
"src"
|
|
11386
|
+
);
|
|
11387
|
+
alias["@donotdev/utils"] = join3(
|
|
11388
|
+
workspace.root,
|
|
11389
|
+
"packages",
|
|
11390
|
+
"core",
|
|
11391
|
+
"utils",
|
|
11392
|
+
"src"
|
|
11393
|
+
);
|
|
11394
|
+
alias["@donotdev/schemas"] = join3(
|
|
11395
|
+
workspace.root,
|
|
11396
|
+
"packages",
|
|
11397
|
+
"core",
|
|
11398
|
+
"schemas",
|
|
11399
|
+
"src"
|
|
11400
|
+
);
|
|
11056
11401
|
alias["@donotdev/core"] = join3(workspace.root, "packages", "core");
|
|
11057
11402
|
}
|
|
11058
11403
|
const config = {
|
|
@@ -11080,7 +11425,7 @@ async function bundleEdgeFunction(options) {
|
|
|
11080
11425
|
};
|
|
11081
11426
|
const result = await (0, import_esbuild.build)(config);
|
|
11082
11427
|
if (result.errors.length > 0) {
|
|
11083
|
-
const errorMessages = result.errors.map((
|
|
11428
|
+
const errorMessages = result.errors.map((e) => e.text).join("\n");
|
|
11084
11429
|
throw new Error(`Edge function bundling failed:
|
|
11085
11430
|
${errorMessages}`);
|
|
11086
11431
|
}
|
|
@@ -11113,7 +11458,10 @@ async function buildSupabaseEdgeFunctions(functionsDir) {
|
|
|
11113
11458
|
for (const functionName of entries) {
|
|
11114
11459
|
const entryPointPath = join3(functionsDir, functionName, "index.ts");
|
|
11115
11460
|
try {
|
|
11116
|
-
const bundled = await bundleEdgeFunction({
|
|
11461
|
+
const bundled = await bundleEdgeFunction({
|
|
11462
|
+
entryPointPath,
|
|
11463
|
+
functionsDir
|
|
11464
|
+
});
|
|
11117
11465
|
const outputPath = join3(buildDir, `${functionName}.js`);
|
|
11118
11466
|
fs2.writeFileSync(outputPath, bundled, "utf8");
|
|
11119
11467
|
const size = Buffer.byteLength(bundled, "utf8");
|
|
@@ -11138,27 +11486,25 @@ var import_esbuild, ALWAYS_BUNDLE;
|
|
|
11138
11486
|
var init_bundle_edge_function = __esm({
|
|
11139
11487
|
"packages/tooling/src/utils/bundle-edge-function.ts"() {
|
|
11140
11488
|
"use strict";
|
|
11141
|
-
|
|
11489
|
+
init_utils2();
|
|
11142
11490
|
import_esbuild = __toESM(require_main(), 1);
|
|
11143
11491
|
init_cli_output();
|
|
11144
11492
|
init_pathResolver();
|
|
11145
|
-
ALWAYS_BUNDLE = /* @__PURE__ */ new Set([
|
|
11146
|
-
"valibot"
|
|
11147
|
-
]);
|
|
11493
|
+
ALWAYS_BUNDLE = /* @__PURE__ */ new Set(["valibot"]);
|
|
11148
11494
|
}
|
|
11149
11495
|
});
|
|
11150
11496
|
|
|
11151
11497
|
// packages/cli/src/bin/commands/build.ts
|
|
11152
|
-
|
|
11498
|
+
init_utils2();
|
|
11153
11499
|
|
|
11154
11500
|
// packages/tooling/src/index.ts
|
|
11155
|
-
|
|
11501
|
+
init_utils2();
|
|
11156
11502
|
|
|
11157
11503
|
// packages/tooling/src/cli/index.ts
|
|
11158
|
-
|
|
11504
|
+
init_utils2();
|
|
11159
11505
|
|
|
11160
11506
|
// packages/tooling/src/apps/build.ts
|
|
11161
|
-
|
|
11507
|
+
init_utils2();
|
|
11162
11508
|
init_app_detection();
|
|
11163
11509
|
init_app_selector();
|
|
11164
11510
|
init_cli_input();
|
|
@@ -11169,7 +11515,7 @@ init_typed_file_operations();
|
|
|
11169
11515
|
import { execSync, spawnSync as spawnSync2 } from "node:child_process";
|
|
11170
11516
|
|
|
11171
11517
|
// packages/tooling/src/apps/deploy-utils.ts
|
|
11172
|
-
|
|
11518
|
+
init_utils2();
|
|
11173
11519
|
import { spawnSync } from "node:child_process";
|
|
11174
11520
|
init_pathResolver();
|
|
11175
11521
|
function checkConfigPlaceholders(appDir) {
|
|
@@ -11249,7 +11595,7 @@ function parseBuildArgs(args) {
|
|
|
11249
11595
|
}
|
|
11250
11596
|
return result;
|
|
11251
11597
|
}
|
|
11252
|
-
async function main() {
|
|
11598
|
+
async function main(options = {}) {
|
|
11253
11599
|
const args = process.argv.slice(2);
|
|
11254
11600
|
const { appName: parsedAppName, buildType: parsedBuildType } = parseBuildArgs(args);
|
|
11255
11601
|
const debugMode = process.env.DEBUG === "true" || process.env.DEBUG === "1" || args.includes("--debug") || args.includes("-d");
|
|
@@ -11306,7 +11652,7 @@ async function main() {
|
|
|
11306
11652
|
}
|
|
11307
11653
|
if (choices.length === 1) {
|
|
11308
11654
|
buildType = choices[0].value;
|
|
11309
|
-
|
|
11655
|
+
wt(`Building: ${choices[0].title}`, "Auto-selected");
|
|
11310
11656
|
} else {
|
|
11311
11657
|
buildType = await askForSelection(
|
|
11312
11658
|
"What would you like to build?",
|
|
@@ -11327,6 +11673,9 @@ async function main() {
|
|
|
11327
11673
|
log.info(`Building ${app.name} frontend...
|
|
11328
11674
|
`);
|
|
11329
11675
|
const turboArgs = ["build", "--filter", app.packageName];
|
|
11676
|
+
if (options.mode) {
|
|
11677
|
+
turboArgs.push("--", "--mode", options.mode);
|
|
11678
|
+
}
|
|
11330
11679
|
const env = {
|
|
11331
11680
|
...process.env,
|
|
11332
11681
|
DNDEV_APP_ROOT: app.path
|
|
@@ -11370,7 +11719,7 @@ async function main() {
|
|
|
11370
11719
|
);
|
|
11371
11720
|
}
|
|
11372
11721
|
} else {
|
|
11373
|
-
const s =
|
|
11722
|
+
const s = fe();
|
|
11374
11723
|
s.start("Building functions...");
|
|
11375
11724
|
try {
|
|
11376
11725
|
execSync("bun run build", {
|