@donotdev/cli 0.1.0 → 0.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/README.md +0 -0
- package/dependencies-matrix.json +175 -72
- package/dist/bin/commands/agent-setup.js +936 -428
- package/dist/bin/commands/build.js +4363 -883
- package/dist/bin/commands/bump.js +1296 -780
- package/dist/bin/commands/cacheout.js +494 -363
- package/dist/bin/commands/coach.js +632 -431
- package/dist/bin/commands/create-app.js +1316 -799
- package/dist/bin/commands/create-project.js +1355 -827
- package/dist/bin/commands/db.js +26158 -18868
- package/dist/bin/commands/deploy.js +5983 -1971
- package/dist/bin/commands/dev.js +1223 -657
- package/dist/bin/commands/doctor.js +1100 -528
- package/dist/bin/commands/emu.js +1380 -757
- package/dist/bin/commands/format.js +494 -363
- package/dist/bin/commands/get-demo.js +1210 -715
- package/dist/bin/commands/make-admin.js +16073 -8700
- package/dist/bin/commands/preview.js +1227 -658
- package/dist/bin/commands/seed.js +26171 -18881
- package/dist/bin/commands/setup-cicd.js +1475 -880
- package/dist/bin/commands/setup.js +1574 -956
- package/dist/bin/commands/staging.js +5984 -1972
- package/dist/bin/commands/sync-secrets.js +1423 -676
- package/dist/bin/commands/type-check.js +976 -469
- package/dist/bin/commands/wai.js +499 -368
- package/dist/bin/dndev.js +43 -19
- package/dist/bin/donotdev.js +43 -19
- package/dist/index.js +6166 -2133
- package/guidelines/DEPENDENCIES.md +155 -0
- package/{templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example → guidelines/VERSION_CONTROL.md} +7 -11
- package/package.json +2 -1
- package/templates/app-demo/.env.example +1 -1
- package/templates/app-demo/entities/Contact.ts.example +0 -0
- package/templates/app-demo/entities/ExampleEntity.ts.example +0 -0
- package/templates/app-demo/entities/demo.ts.example +0 -0
- package/templates/app-demo/index.html.example +0 -0
- package/templates/app-demo/public/apple-touch-icon.png.example +0 -0
- package/templates/app-demo/public/fonts/fonts.css.example +0 -0
- package/templates/app-demo/public/icon-192x192.png.example +0 -0
- package/templates/app-demo/public/icon-512x512.png.example +0 -0
- package/templates/app-demo/src/App.tsx.example +0 -0
- package/templates/app-demo/src/config/app.ts.example +0 -0
- package/templates/app-demo/src/entities/booking.ts.example +0 -0
- package/templates/app-demo/src/entities/onboarding.ts.example +0 -0
- package/templates/app-demo/src/entities/product.ts.example +0 -0
- package/templates/app-demo/src/entities/quote.ts.example +0 -0
- package/templates/app-demo/src/globals.css.example +0 -0
- package/templates/app-demo/src/main.tsx.example +0 -0
- package/templates/app-demo/src/pages/ChangelogPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ConditionalFormPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/DashboardPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/HomePage.tsx.example +0 -0
- package/templates/app-demo/src/pages/OnboardingPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/PricingPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ProductsPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ProfilePage.tsx.example +0 -0
- package/templates/app-demo/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ShowcaseDetailPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ShowcasePage.tsx.example +0 -0
- package/templates/app-demo/src/pages/components/ComponentRenderer.tsx.example +0 -0
- package/templates/app-demo/src/pages/components/ComponentsData.tsx.example +0 -0
- package/templates/app-demo/src/pages/components/componentConfig.ts.example +0 -0
- package/templates/app-demo/src/pages/legal/LegalPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-demo/src/themes.css.example +27 -0
- package/templates/app-demo/tsconfig.json.example +0 -0
- package/templates/app-demo/vite.config.ts.example +0 -0
- package/templates/app-dndev/index.html.example +0 -3
- package/templates/app-dndev/src/App.tsx.example +0 -0
- package/templates/app-dndev/src/components/CockpitLayout.css.example +0 -0
- package/templates/app-dndev/src/components/CockpitLayout.tsx.example +0 -0
- package/templates/app-dndev/src/components/Kanban.css.example +0 -0
- package/templates/app-dndev/src/components/ModeToggle.tsx.example +0 -0
- package/templates/app-dndev/src/components/OverlaySlot.tsx.example +0 -0
- package/templates/app-dndev/src/components/TerminalPanel.css.example +0 -0
- package/templates/app-dndev/src/components/TerminalPanel.tsx.example +0 -0
- package/templates/app-dndev/src/components/markdown-prose.css.example +0 -0
- package/templates/app-dndev/src/components/phases/CaptainLog.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/ContextTabs.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/PhaseCard.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/PhaseDetail.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/ReviewPanel.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/phaseData.ts.example +0 -0
- package/templates/app-dndev/src/config/app.ts.example +0 -0
- package/templates/app-dndev/src/config/commands.ts.example +0 -0
- package/templates/app-dndev/src/config/legal.ts.example +0 -0
- package/templates/app-dndev/src/config/providers.ts.example +1 -1
- package/templates/app-dndev/src/globals.css.example +0 -0
- package/templates/app-dndev/src/hooks/useDndevFile.ts.example +0 -0
- package/templates/app-dndev/src/main.tsx.example +0 -0
- package/templates/app-dndev/src/pages/BoardPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/GrillPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/HomePage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/NotFoundPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/PhasesPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/legal/LegalNoticePage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-dndev/src/stores/dndevStore.ts.example +0 -0
- package/templates/app-dndev/src/themes.css.example +26 -0
- package/templates/app-dndev/terminal-sidecar.cjs.example +0 -0
- package/templates/app-dndev/vite.config.ts.example +0 -0
- package/templates/app-expo/.env.example +0 -32
- package/templates/app-expo/.expo/README.md.example +0 -0
- package/templates/app-expo/.gitignore.example +0 -0
- package/templates/app-expo/README.md.example +1 -1
- package/templates/app-expo/app/.gitkeep +0 -0
- package/templates/app-expo/app/_layout.tsx.example +0 -0
- package/templates/app-expo/app/form.tsx.example +0 -0
- package/templates/app-expo/app/index.tsx.example +0 -0
- package/templates/app-expo/app/list.tsx.example +0 -0
- package/templates/app-expo/app/profile.tsx.example +0 -0
- package/templates/app-expo/app/signin.tsx.example +0 -0
- package/templates/app-expo/app.json.example +0 -0
- package/templates/app-expo/assets/adaptive-icon.png +0 -0
- package/templates/app-expo/assets/favicon.png +0 -0
- package/templates/app-expo/assets/icon.png +0 -0
- package/templates/app-expo/assets/splash.png +0 -0
- package/templates/app-expo/babel.config.js.example +0 -0
- package/templates/app-expo/eas.json.example +0 -0
- package/templates/app-expo/expo-env.d.ts.example +0 -0
- package/templates/app-expo/metro.config.js.example +0 -0
- package/templates/app-expo/service-account-key.json.example +1 -1
- package/templates/app-expo/src/config/app.ts.example +0 -0
- package/templates/app-expo/src/config/providers.ts.example +1 -1
- package/templates/app-expo/tsconfig.json.example +0 -0
- package/templates/app-next/.env.example +0 -33
- package/templates/app-next/next.config.ts.example +0 -2
- package/templates/app-next/postcss.config.js.example +0 -0
- package/templates/app-next/service-account-key.json.example +0 -0
- package/templates/app-next/src/app/ClientLayout.tsx.example +0 -0
- package/templates/app-next/src/app/layout.tsx.example +13 -4
- package/templates/app-next/src/app/not-found.tsx.example +0 -0
- package/templates/app-next/src/config/app.ts.example +0 -0
- package/templates/app-next/src/config/legal.ts.example +0 -0
- package/templates/app-next/src/config/providers.ts.example +1 -1
- package/templates/app-next/src/globals.css.example +0 -0
- package/templates/app-next/src/locales/dndev_en.json.example +0 -0
- package/templates/app-next/src/locales/home_en.json.example +6 -6
- package/templates/app-next/src/pages/HomePage.tsx.example +0 -0
- package/templates/app-next/src/pages/legal/LegalNoticePage.tsx.example +0 -0
- package/templates/app-next/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-next/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-next/src/pages/locales/example_en.json.example +0 -0
- package/templates/app-next/src/themes.css.example +28 -1
- package/templates/app-vite/.env.example +0 -33
- package/templates/app-vite/csp.example.json +44 -0
- package/templates/app-vite/index.html.example +0 -3
- package/templates/app-vite/service-account-key.json.example +0 -0
- package/templates/app-vite/src/App.tsx.example +0 -0
- package/templates/app-vite/src/config/app.ts.example +0 -0
- package/templates/app-vite/src/config/legal.ts.example +0 -0
- package/templates/app-vite/src/config/providers.ts.example +1 -1
- package/templates/app-vite/src/globals.css.example +0 -0
- package/templates/app-vite/src/locales/dndev_en.json.example +0 -0
- package/templates/app-vite/src/locales/home_en.json.example +6 -6
- package/templates/app-vite/src/main.tsx.example +0 -0
- package/templates/app-vite/src/pages/FormPageExample.tsx.example +0 -0
- package/templates/app-vite/src/pages/HomePage.tsx.example +1 -1
- package/templates/app-vite/src/pages/ListPageExample.tsx.example +0 -0
- package/templates/app-vite/src/pages/NotFoundPage.tsx.example +0 -0
- package/templates/app-vite/src/pages/legal/LegalNoticePage.tsx.example +0 -0
- package/templates/app-vite/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-vite/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-vite/src/pages/locales/example_en.json.example +0 -0
- package/templates/app-vite/src/themes.css.example +26 -0
- package/templates/deploy-config/.firebaserc.example +0 -0
- package/templates/deploy-config/firestore.indexes.json.example +0 -0
- package/templates/deploy-config/firestore.rules.example +0 -0
- package/templates/deploy-config/storage.rules.example +0 -0
- package/templates/deploy-config/tsconfig.functions.json.example +0 -0
- package/templates/deploy-config/vercel.json.example +2 -2
- package/templates/functions-firebase/.env.example +2 -2
- package/templates/functions-firebase/README.md.example +3 -3
- package/templates/functions-firebase/build.mjs.example +0 -0
- package/templates/functions-firebase/functions.config.js.example +0 -0
- package/templates/functions-firebase/functions.yaml.example +0 -0
- package/templates/functions-firebase/src/auth/getCustomClaims.ts.example +0 -0
- package/templates/functions-firebase/src/auth/getUserAuthStatus.ts.example +0 -0
- package/templates/functions-firebase/src/auth/index.ts.example +0 -0
- package/templates/functions-firebase/src/auth/removeCustomClaims.ts.example +0 -0
- package/templates/functions-firebase/src/auth/setCustomClaims.ts.example +0 -0
- package/templates/functions-firebase/src/billing/handleStripeWebhook.ts.example +0 -0
- package/templates/functions-firebase/src/billing/index.ts.example +0 -0
- package/templates/functions-firebase/src/billing/processPaymentSuccess.ts.example +0 -0
- package/templates/functions-firebase/src/billing/refreshSubscriptionStatus.ts.example +0 -0
- package/templates/functions-firebase/src/crud/createEntity.ts.example +0 -0
- package/templates/functions-firebase/src/crud/deleteEntity.ts.example +0 -0
- package/templates/functions-firebase/src/crud/getEntity.ts.example +0 -0
- package/templates/functions-firebase/src/crud/index.ts.example +0 -0
- package/templates/functions-firebase/src/crud/listEntities.ts.example +0 -0
- package/templates/functions-firebase/src/crud/updateEntity.ts.example +0 -0
- package/templates/functions-firebase/src/index.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/checkGitHubAccess.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/disconnect.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/exchangeToken.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/getConnections.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/grantGitHubAccess.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/index.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/refreshToken.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/revokeGitHubAccess.ts.example +0 -0
- package/templates/functions-firebase/tsconfig.json.example +0 -0
- package/templates/functions-supabase/supabase/config.toml.example +0 -0
- package/templates/functions-supabase/supabase/functions/.env.example +0 -0
- package/templates/functions-supabase/supabase/functions/cancel-subscription/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/change-plan/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/create-checkout-session/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/create-customer-portal/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/crud/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/delete-account/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/deno.json.example +0 -0
- package/templates/functions-supabase/supabase/functions/disconnect-oauth/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/exchange-token/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/get-connections/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/get-custom-claims/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/get-user-auth-status/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/refresh-subscription-status/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/refresh-token/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/remove-custom-claims/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/set-custom-claims/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/migrations/20250101000000_idempotency.sql +3 -0
- package/templates/functions-supabase/supabase/migrations/20250101000001_rate_limits.sql +3 -0
- package/templates/functions-supabase/supabase/migrations/20250101000002_cleanup_jobs.sql +0 -0
- package/templates/functions-supabase/supabase/migrations/20250101000003_operation_metrics.sql +3 -0
- package/templates/functions-supabase/supabase/migrations/20250101000004_crud_bulk.sql +192 -0
- package/templates/functions-vercel/.env.example +3 -3
- package/templates/functions-vercel/README.md.example +2 -2
- package/templates/functions-vercel/build.mjs.example +0 -0
- package/templates/functions-vercel/src/api/auth/getCustomClaims.ts.example +0 -0
- package/templates/functions-vercel/src/api/auth/getUserAuthStatus.ts.example +0 -0
- package/templates/functions-vercel/src/api/auth/removeCustomClaims.ts.example +0 -0
- package/templates/functions-vercel/src/api/auth/setCustomClaims.ts.example +0 -0
- package/templates/functions-vercel/src/api/billing/handleStripeWebhook.ts.example +0 -0
- package/templates/functions-vercel/src/api/billing/processPaymentSuccess.ts.example +0 -0
- package/templates/functions-vercel/src/api/billing/refreshSubscriptionStatus.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/createEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/deleteEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/getEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/listEntities.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/updateEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/checkGitHubAccess.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/disconnect.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/exchangeToken.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/getConnections.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/grantGitHubAccess.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/refreshToken.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/revokeGitHubAccess.ts.example +0 -0
- package/templates/functions-vercel/tsconfig.json.example +0 -0
- package/templates/functions-vercel/vercel.json.example +0 -0
- package/templates/github-consumer/.github/workflows/ci.yml.example +0 -0
- package/templates/overlay-firebase/env.fragment.example +0 -0
- package/templates/overlay-firebase/env.fragment.expo.example +0 -0
- package/templates/overlay-firebase/env.fragment.nextjs.example +0 -0
- package/templates/overlay-firebase/src/config/providers.expo.ts.example +0 -0
- package/templates/overlay-firebase/src/config/providers.ts.example +0 -0
- package/templates/overlay-supabase/env.fragment.example +0 -0
- package/templates/overlay-supabase/env.fragment.expo.example +0 -0
- package/templates/overlay-supabase/env.fragment.nextjs.example +0 -0
- package/templates/overlay-supabase/src/config/providers.expo.ts.example +1 -1
- package/templates/overlay-supabase/src/config/providers.ts.example +1 -1
- package/templates/overlay-vercel/env.fragment.example +0 -0
- package/templates/overlay-vercel/env.fragment.nextjs.example +0 -0
- package/templates/overlay-vercel/src/config/providers.ts.example +0 -0
- package/templates/preset-admin/src/pages/DashboardPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/EntityPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/ReportsPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/UsersPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/HomePage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +0 -0
- package/templates/preset-landing/src/pages/AboutPage.tsx.example +0 -0
- package/templates/preset-landing/src/pages/ContactPage.tsx.example +0 -0
- package/templates/preset-landing/src/pages/HomePage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/DashboardPage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/HomePage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/PricingPage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/ProfilePage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/root-consumer/.claude/agents/architect.md.example +0 -0
- package/templates/root-consumer/.claude/agents/builder.md.example +0 -0
- package/templates/root-consumer/.claude/agents/coder.md.example +0 -0
- package/templates/root-consumer/.claude/agents/extractor.md.example +0 -0
- package/templates/root-consumer/.claude/agents/polisher.md.example +0 -0
- package/templates/root-consumer/.claude/agents/prompt-engineer.md.example +0 -0
- package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +61 -0
- package/templates/root-consumer/.claude/hooks/guard-write.sh.example +56 -0
- package/templates/root-consumer/.claude/hooks/session-start.sh.example +50 -0
- package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +18 -0
- package/templates/root-consumer/.claude/rules/consumer-ux.md.example +32 -0
- package/templates/root-consumer/.claude/rules/definition-of-done.md.example +32 -0
- package/templates/root-consumer/.claude/rules/framework.md.example +39 -0
- package/templates/root-consumer/.claude/rules/git.md.example +14 -0
- package/templates/root-consumer/.claude/rules/security.md.example +13 -0
- package/templates/root-consumer/.claude/settings.json.example +100 -4
- package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +0 -0
- package/templates/root-consumer/.claude/skills/build/SKILL.md.example +22 -27
- package/templates/root-consumer/.claude/skills/design/SKILL.md.example +0 -0
- package/templates/root-consumer/.claude/skills/design/output-template.md +0 -0
- package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +26 -15
- package/templates/root-consumer/.claude/skills/polish/SKILL.md.example +50 -37
- package/templates/root-consumer/.claude/skills/techdebt/SKILL.md.example +0 -0
- package/templates/root-consumer/.cursor/mcp.json.example +0 -0
- package/templates/root-consumer/.cursor/rules/no-docs.mdc.example +5 -1
- package/templates/root-consumer/.dndev/args.json.example +0 -0
- package/templates/root-consumer/.dndev.secrets.example +0 -0
- package/templates/root-consumer/.env.example +0 -1
- package/templates/root-consumer/.gemini/settings.json.example +0 -0
- package/templates/root-consumer/.gitignore.example +1 -0
- package/templates/root-consumer/.mcp.json.example +0 -0
- package/templates/root-consumer/.prettierrc.cjs.example +0 -0
- package/templates/root-consumer/AGENTS.md.example +63 -0
- package/templates/root-consumer/CLAUDE.md.example +1 -1
- package/templates/root-consumer/README.md.example +11 -33
- package/templates/root-consumer/entities/index.ts.example +0 -0
- package/templates/root-consumer/eslint.config.js.example +0 -0
- package/templates/root-consumer/tsconfig.json.example +0 -0
- package/templates/app-demo/public/manifest.json.example +0 -10
- package/templates/app-dndev/public/manifest.json.example +0 -10
- package/templates/root-consumer/.claude/commands/brainstorm.md.example +0 -175
- package/templates/root-consumer/.claude/commands/build.md.example +0 -131
- package/templates/root-consumer/.claude/commands/design.md.example +0 -184
- package/templates/root-consumer/.claude/commands/grill.md.example +0 -135
- package/templates/root-consumer/.claude/commands/polish.md.example +0 -146
- package/templates/root-consumer/.claude/commands/techdebt.md.example +0 -28
- package/templates/root-consumer/.claude/statusline.py.example +0 -79
- package/templates/root-consumer/.clinerules.example +0 -1
- package/templates/root-consumer/.cursorrules.example +0 -1
- package/templates/root-consumer/.github/copilot-instructions.md.example +0 -1
- package/templates/root-consumer/.windsurfrules.example +0 -1
- package/templates/root-consumer/AI.md.example +0 -108
- package/templates/root-consumer/CONVENTIONS.md.example +0 -1
- package/templates/root-consumer/GEMINI.md.example +0 -1
- package/templates/root-consumer/guides/dndev/AGENT_START_HERE.md.example +0 -135
- package/templates/root-consumer/guides/dndev/COMPONENTS_ADV.md.example +0 -276
- package/templates/root-consumer/guides/dndev/COMPONENTS_ATOMIC.md.example +0 -180
- package/templates/root-consumer/guides/dndev/COMPONENTS_CRUD.md.example +0 -234
- package/templates/root-consumer/guides/dndev/COMPONENTS_UI.md.example +0 -136
- package/templates/root-consumer/guides/dndev/COMPONENT_API.md.example +0 -195
- package/templates/root-consumer/guides/dndev/ENV_SETUP.md.example +0 -219
- package/templates/root-consumer/guides/dndev/GOTCHAS.md.example +0 -197
- package/templates/root-consumer/guides/dndev/INDEX.md.example +0 -60
- package/templates/root-consumer/guides/dndev/SETUP_APP_CONFIG.md.example +0 -132
- package/templates/root-consumer/guides/dndev/SETUP_AUTH.md.example +0 -133
- package/templates/root-consumer/guides/dndev/SETUP_BILLING.md.example +0 -114
- package/templates/root-consumer/guides/dndev/SETUP_BLOG.md.example +0 -280
- package/templates/root-consumer/guides/dndev/SETUP_CICD.md.example +0 -115
- package/templates/root-consumer/guides/dndev/SETUP_CRUD.md.example +0 -334
- package/templates/root-consumer/guides/dndev/SETUP_FIREBASE.md.example +0 -231
- package/templates/root-consumer/guides/dndev/SETUP_FUNCTIONS.md.example +0 -9
- package/templates/root-consumer/guides/dndev/SETUP_I18N.md.example +0 -233
- package/templates/root-consumer/guides/dndev/SETUP_LAYOUTS.md.example +0 -158
- package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +0 -54
- package/templates/root-consumer/guides/dndev/SETUP_OAUTH_PROVIDERS.md.example +0 -60
- package/templates/root-consumer/guides/dndev/SETUP_PAGES.md.example +0 -205
- package/templates/root-consumer/guides/dndev/SETUP_PWA.md.example +0 -213
- package/templates/root-consumer/guides/dndev/SETUP_SOC2.md.example +0 -234
- package/templates/root-consumer/guides/dndev/SETUP_STRIPE.md.example +0 -62
- package/templates/root-consumer/guides/dndev/SETUP_SUPABASE.md.example +0 -215
- package/templates/root-consumer/guides/dndev/SETUP_TESTING.md.example +0 -184
- package/templates/root-consumer/guides/dndev/SETUP_THEMES.md.example +0 -111
- package/templates/root-consumer/guides/dndev/SETUP_VERCEL.md.example +0 -260
- package/templates/root-consumer/guides/dndev/USE_ROUTING.md.example +0 -499
- package/templates/root-consumer/guides/dndev/advanced/APP_CHECK.md.example +0 -111
- package/templates/root-consumer/guides/dndev/advanced/COOKIE_REFERENCE.md.example +0 -252
- package/templates/root-consumer/guides/dndev/advanced/EMULATORS.md.example +0 -48
- package/templates/root-consumer/guides/dndev/essences_reference.css.example +0 -288
- package/templates/root-consumer/guides/wai-way/WAI_WAY_CLI.md.example +0 -402
- package/templates/root-consumer/guides/wai-way/agents/architect.md.example +0 -78
- package/templates/root-consumer/guides/wai-way/agents/builder.md.example +0 -97
- package/templates/root-consumer/guides/wai-way/agents/extractor.md.example +0 -363
- package/templates/root-consumer/guides/wai-way/agents/polisher.md.example +0 -133
- package/templates/root-consumer/guides/wai-way/blueprints/0_brainstorm.md.example +0 -315
- package/templates/root-consumer/guides/wai-way/blueprints/1_scaffold.md.example +0 -133
- package/templates/root-consumer/guides/wai-way/blueprints/2_entities.md.example +0 -111
- package/templates/root-consumer/guides/wai-way/blueprints/3_compose.md.example +0 -150
- package/templates/root-consumer/guides/wai-way/blueprints/4_configure.md.example +0 -238
- package/templates/root-consumer/guides/wai-way/context_map.json.example +0 -127
- package/templates/root-consumer/guides/wai-way/entity_patterns.md.example +0 -839
- package/templates/root-consumer/guides/wai-way/hld_template.md.example +0 -138
- package/templates/root-consumer/guides/wai-way/lld_template.md.example +0 -103
- package/templates/root-consumer/guides/wai-way/page_patterns.md.example +0 -722
- package/templates/root-consumer/guides/wai-way/prd_template.md.example +0 -140
- package/templates/root-consumer/guides/wai-way/presets_guide.md.example +0 -217
- package/templates/root-consumer/guides/wai-way/spec_template.md.example +0 -313
|
@@ -23,39 +23,6 @@
|
|
|
23
23
|
# =============================================================================
|
|
24
24
|
NEXT_PUBLIC_APP_URL=http://localhost:3000
|
|
25
25
|
|
|
26
|
-
# =============================================================================
|
|
27
|
-
# DoNotDev License Key
|
|
28
|
-
# =============================================================================
|
|
29
|
-
# Get your license key from: https://donotdev.com/pricing
|
|
30
|
-
# Removes watermark and enables all features
|
|
31
|
-
# Can be the same key as in root .env if sharing across apps
|
|
32
|
-
NEXT_PUBLIC_DONOTDEV_LICENSE_KEY=dndev_your_key_here
|
|
33
|
-
|
|
34
|
-
# =============================================================================
|
|
35
|
-
# Authentication & OAuth Providers
|
|
36
|
-
# =============================================================================
|
|
37
|
-
# Comma-separated list of enabled auth providers
|
|
38
|
-
# Available: github (required for framework), google, facebook, discord, twitter, microsoft, spotify, linkedin, reddit, twitch, yahoo, apple
|
|
39
|
-
# Uncomment when your backend is configured
|
|
40
|
-
# NEXT_PUBLIC_AUTH_PARTNERS=google,github
|
|
41
|
-
|
|
42
|
-
# Comma-separated list of enabled OAuth partners for API access
|
|
43
|
-
# Available: google, github, facebook, discord, twitter, microsoft, spotify, linkedin, reddit, twitch, yahoo, apple
|
|
44
|
-
# NEXT_PUBLIC_OAUTH_PARTNERS=google,spotify
|
|
45
|
-
|
|
46
|
-
# Individual OAuth client IDs (only needed for OAuth partners)
|
|
47
|
-
# NEXT_PUBLIC_GOOGLE_CLIENT_ID=your_google_client_id
|
|
48
|
-
# NEXT_PUBLIC_GITHUB_CLIENT_ID=your_github_client_id
|
|
49
|
-
# NEXT_PUBLIC_SPOTIFY_CLIENT_ID=your_spotify_client_id
|
|
50
|
-
|
|
51
|
-
# =============================================================================
|
|
52
|
-
# Backend-specific vars are appended below by your backend choice
|
|
53
|
-
# (Firebase, Supabase, etc.) — see overlay templates
|
|
54
|
-
# =============================================================================
|
|
55
|
-
|
|
56
|
-
# =============================================================================
|
|
57
|
-
# Stripe Configuration (if using billing)
|
|
58
|
-
# =============================================================================
|
|
59
26
|
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
|
|
60
27
|
|
|
61
28
|
# =============================================================================
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Metadata } from 'next';
|
|
2
2
|
|
|
3
|
+
import { getMetadataForPath } from '@donotdev/core/next';
|
|
3
4
|
import { FontPreloadLinks } from '@donotdev/ui/next';
|
|
4
5
|
|
|
5
6
|
import '../globals.css';
|
|
@@ -10,10 +11,18 @@ import { ClientLayout } from './ClientLayout';
|
|
|
10
11
|
* Font preload links are injected at build time; FontPreloadLinks reads the manifest for SSR.
|
|
11
12
|
*/
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Dynamic metadata generation from PageMeta exports.
|
|
16
|
+
* Same PageMeta convention works in Vite (AutoMetaTags) and Next.js (this function).
|
|
17
|
+
* Priority: i18n meta.fullTitle > seo.fullTitle > i18n title | siteName > siteName
|
|
18
|
+
*
|
|
19
|
+
* For dynamic pages with runtime data, use <Seo> component instead.
|
|
20
|
+
*/
|
|
21
|
+
export async function generateMetadata(): Promise<Metadata> {
|
|
22
|
+
// Root layout handles the home page metadata
|
|
23
|
+
// Other pages override via their own generateMetadata or <Seo> component
|
|
24
|
+
return getMetadataForPath('/');
|
|
25
|
+
}
|
|
17
26
|
|
|
18
27
|
/**
|
|
19
28
|
* Root layout for Next.js App Router
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/config/providers.ts — Provider bootstrap
|
|
2
2
|
// Auto-generated by DoNotDev scaffolding. Edit freely.
|
|
3
3
|
// When you add a backend (Firebase, Supabase), replace this file with the appropriate provider setup.
|
|
4
|
-
// See:
|
|
4
|
+
// See: get_guideline("ENV_SETUP") / @donotdev/core guidelines
|
|
5
5
|
|
|
6
6
|
// No backend configured — nothing to register.
|
|
7
7
|
// To add a backend later, run: dndev create-app (in an existing project, it merges)
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hero": {
|
|
3
|
-
"title": "Welcome to DnDev",
|
|
4
|
-
"subtitle": "Your app is ready. Explore the framework patterns below."
|
|
5
|
-
}
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"hero": {
|
|
3
|
+
"title": "Welcome to DnDev",
|
|
4
|
+
"subtitle": "Your app is ready. Explore the framework patterns below."
|
|
5
|
+
}
|
|
6
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -54,6 +54,12 @@
|
|
|
54
54
|
--input: #e4e4e7;
|
|
55
55
|
--ring: var(--primary);
|
|
56
56
|
|
|
57
|
+
/* Interactive surface — background for inputs (.dndev-input) and outline
|
|
58
|
+
buttons (.dndev-interactive[data-variant='outline']). Parallel to --card
|
|
59
|
+
for containers. Defaults to transparent (see variables.css). Uncomment
|
|
60
|
+
to tint. */
|
|
61
|
+
/* --interactive: var(--muted); */
|
|
62
|
+
|
|
57
63
|
/* Brand colors - customize these */
|
|
58
64
|
--primary: #0284c7;
|
|
59
65
|
--primary-foreground: #ffffff;
|
|
@@ -122,9 +128,30 @@
|
|
|
122
128
|
|
|
123
129
|
/* ===========================
|
|
124
130
|
OPTIONAL ESSENCES (do not apply by default; set <html class="brutalist"> or class="luxury" to use)
|
|
125
|
-
See
|
|
131
|
+
See @donotdev/core guidelines/ESSENCES_REFERENCE.css for full .brutalist and .luxury blocks.
|
|
126
132
|
=========================== */
|
|
127
133
|
|
|
134
|
+
/* ===========================
|
|
135
|
+
INTERACTION EFFECTS
|
|
136
|
+
Micro-interactions for buttons. Set to 0/1 to disable.
|
|
137
|
+
=========================== */
|
|
138
|
+
/*
|
|
139
|
+
:root {
|
|
140
|
+
--hover-lift: -2px;
|
|
141
|
+
--click-scale: 0.97;
|
|
142
|
+
--ripple-opacity: 0.2;
|
|
143
|
+
}
|
|
144
|
+
*/
|
|
145
|
+
|
|
146
|
+
/* Disable all effects (flat/minimal style) */
|
|
147
|
+
/*
|
|
148
|
+
:root {
|
|
149
|
+
--hover-lift: 0;
|
|
150
|
+
--click-scale: 1;
|
|
151
|
+
--ripple-opacity: 0;
|
|
152
|
+
}
|
|
153
|
+
*/
|
|
154
|
+
|
|
128
155
|
/* ===========================
|
|
129
156
|
CUSTOM THEMES
|
|
130
157
|
=========================== */
|
|
@@ -8,39 +8,6 @@
|
|
|
8
8
|
# =============================================================================
|
|
9
9
|
VITE_APP_URL=http://localhost:5173
|
|
10
10
|
|
|
11
|
-
# =============================================================================
|
|
12
|
-
# DoNotDev License Key
|
|
13
|
-
# =============================================================================
|
|
14
|
-
# Get your license key from: https://donotdev.com/pricing
|
|
15
|
-
# Removes watermark and enables all features
|
|
16
|
-
# Can be the same key as in root .env if sharing across apps
|
|
17
|
-
VITE_DONOTDEV_LICENSE_KEY=dndev_your_key_here
|
|
18
|
-
|
|
19
|
-
# =============================================================================
|
|
20
|
-
# Authentication & OAuth Providers
|
|
21
|
-
# =============================================================================
|
|
22
|
-
# Comma-separated list of enabled auth providers
|
|
23
|
-
# Available: github (required for framework), google, facebook, discord, twitter, microsoft, spotify, linkedin, reddit, twitch, yahoo, apple
|
|
24
|
-
# Uncomment when your backend is configured
|
|
25
|
-
# VITE_AUTH_PARTNERS=github
|
|
26
|
-
|
|
27
|
-
# Comma-separated list of enabled OAuth partners for API access
|
|
28
|
-
# Available: google, github, facebook, discord, twitter, microsoft, spotify, linkedin, reddit, twitch, yahoo, apple
|
|
29
|
-
# VITE_OAUTH_PARTNERS=google,spotify
|
|
30
|
-
|
|
31
|
-
# Individual OAuth client IDs (only needed for OAuth partners)
|
|
32
|
-
# VITE_GOOGLE_CLIENT_ID=your_google_client_id
|
|
33
|
-
# VITE_GITHUB_CLIENT_ID=your_github_client_id
|
|
34
|
-
# VITE_SPOTIFY_CLIENT_ID=your_spotify_client_id
|
|
35
|
-
|
|
36
|
-
# =============================================================================
|
|
37
|
-
# Backend-specific vars are appended below by your backend choice
|
|
38
|
-
# (Firebase, Supabase, etc.) — see overlay templates
|
|
39
|
-
# =============================================================================
|
|
40
|
-
|
|
41
|
-
# =============================================================================
|
|
42
|
-
# Stripe Configuration (if using billing)
|
|
43
|
-
# =============================================================================
|
|
44
11
|
VITE_STRIPE_PUBLISHABLE_KEY=
|
|
45
12
|
|
|
46
13
|
# =============================================================================
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Content Security Policy baseline for DoNotDev apps. Copy the relevant directives into your hosting config (vercel.json headers, netlify _headers, etc.).",
|
|
3
|
+
|
|
4
|
+
"default-src": "'self'",
|
|
5
|
+
"script-src": "'self'",
|
|
6
|
+
"style-src": "'self' 'unsafe-inline'",
|
|
7
|
+
"img-src": "'self' data: blob: https:",
|
|
8
|
+
"font-src": "'self' https://fonts.gstatic.com",
|
|
9
|
+
"object-src": "'none'",
|
|
10
|
+
"base-uri": "'self'",
|
|
11
|
+
"form-action": "'self'",
|
|
12
|
+
|
|
13
|
+
"_supabase": {
|
|
14
|
+
"_comment": "Add these if your app uses Supabase",
|
|
15
|
+
"connect-src": "'self' https://*.supabase.co wss://*.supabase.co",
|
|
16
|
+
"frame-src": "https://*.supabase.co"
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
"_firebase": {
|
|
20
|
+
"_comment": "Add these if your app uses Firebase",
|
|
21
|
+
"connect-src": "'self' https://*.firebaseio.com https://*.googleapis.com wss://*.firebaseio.com",
|
|
22
|
+
"frame-src": "https://*.firebaseapp.com"
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
"_google_maps": {
|
|
26
|
+
"_comment": "Add these if your app uses Google Maps (AddressField)",
|
|
27
|
+
"script-src": "'self' https://maps.googleapis.com",
|
|
28
|
+
"connect-src": "'self' https://maps.googleapis.com",
|
|
29
|
+
"img-src": "'self' data: blob: https: https://*.googleapis.com https://*.gstatic.com"
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
"_google_oauth": {
|
|
33
|
+
"_comment": "Add these if your app uses Google OAuth",
|
|
34
|
+
"connect-src": "'self' https://accounts.google.com https://oauth2.googleapis.com https://www.googleapis.com",
|
|
35
|
+
"frame-src": "https://accounts.google.com"
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
"_rules": [
|
|
39
|
+
"NEVER mix 'none' with URLs in the same directive (e.g., frame-src 'none' https://... is invalid)",
|
|
40
|
+
"NEVER use 'unsafe-eval' — Vite HMR works without it in dev, production never needs it",
|
|
41
|
+
"Merge connect-src values from all providers you use into a single directive",
|
|
42
|
+
"credentials: 'omit' is set by the framework on cross-origin fetches — CSP does not need to allow cookies for these"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -13,9 +13,6 @@
|
|
|
13
13
|
<!-- ✅ DnDev: Asset manifest injection point -->
|
|
14
14
|
<!-- window.__DNDEV_ASSETS__ and __DNDEV_ASSET_MANIFEST__ injected here -->
|
|
15
15
|
|
|
16
|
-
<!-- ✅ PWA: Manifest link (if exists) -->
|
|
17
|
-
<link rel="manifest" href="/manifest.json" />
|
|
18
|
-
|
|
19
16
|
<!-- Fonts: Inter, Space Grotesk, Playfair, Roboto loaded via @donotdev/ui/dndev.css (bundled). -->
|
|
20
17
|
<!-- DNDEV_FONT_PRELOADS -->
|
|
21
18
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/config/providers.ts — Provider bootstrap
|
|
2
2
|
// Auto-generated by DoNotDev scaffolding. Edit freely.
|
|
3
3
|
// When you add a backend (Firebase, Supabase), replace this file with the appropriate provider setup.
|
|
4
|
-
// See:
|
|
4
|
+
// See: get_guideline("ENV_SETUP") / @donotdev/core guidelines
|
|
5
5
|
|
|
6
6
|
// No backend configured — nothing to register.
|
|
7
7
|
// To add a backend later, run: dndev create-app (in an existing project, it merges)
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hero": {
|
|
3
|
-
"title": "Welcome to DnDev",
|
|
4
|
-
"subtitle": "Your app is ready. Explore the framework patterns below."
|
|
5
|
-
}
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"hero": {
|
|
3
|
+
"title": "Welcome to DnDev",
|
|
4
|
+
"subtitle": "Your app is ready. Explore the framework patterns below."
|
|
5
|
+
}
|
|
6
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -189,7 +189,7 @@ export default function HomePage() {
|
|
|
189
189
|
ordered
|
|
190
190
|
/>
|
|
191
191
|
<Text level="small">
|
|
192
|
-
|
|
192
|
+
Use MCP get_guideline("WAI_WAY_CLI") for the full workflow if your IDE supports MCP.
|
|
193
193
|
</Text>
|
|
194
194
|
</Stack>
|
|
195
195
|
</Section>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -30,6 +30,11 @@
|
|
|
30
30
|
--input: #e4e4e7;
|
|
31
31
|
--ring: var(--primary);
|
|
32
32
|
/* --placeholder: rgb(from var(--muted-foreground) r g b / 0.6); */
|
|
33
|
+
|
|
34
|
+
/* Interactive surface — background for inputs + outline buttons.
|
|
35
|
+
Defaults to transparent (see variables.css). Uncomment to tint. */
|
|
36
|
+
/* --interactive: var(--muted); */
|
|
37
|
+
|
|
33
38
|
--card: #ffffff;
|
|
34
39
|
--card-foreground: #09090b;
|
|
35
40
|
--popover: #ffffff;
|
|
@@ -156,6 +161,27 @@
|
|
|
156
161
|
--radius-floating: 0.5rem;
|
|
157
162
|
}
|
|
158
163
|
|
|
164
|
+
/* ===========================
|
|
165
|
+
INTERACTION EFFECTS
|
|
166
|
+
Micro-interactions for buttons. Set to 0/1 to disable.
|
|
167
|
+
=========================== */
|
|
168
|
+
/*
|
|
169
|
+
:root {
|
|
170
|
+
--hover-lift: -2px;
|
|
171
|
+
--click-scale: 0.97;
|
|
172
|
+
--ripple-opacity: 0.2;
|
|
173
|
+
}
|
|
174
|
+
*/
|
|
175
|
+
|
|
176
|
+
/* Disable all effects (flat/minimal style) */
|
|
177
|
+
/*
|
|
178
|
+
:root {
|
|
179
|
+
--hover-lift: 0;
|
|
180
|
+
--click-scale: 1;
|
|
181
|
+
--ripple-opacity: 0;
|
|
182
|
+
}
|
|
183
|
+
*/
|
|
184
|
+
|
|
159
185
|
/* ===========================
|
|
160
186
|
CUSTOM THEMES
|
|
161
187
|
Add your brand themes below (same pattern: class + --theme-label, --theme-icon, --theme-is-dark).
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"headers": [
|
|
19
19
|
{
|
|
20
20
|
"key": "Content-Security-Policy",
|
|
21
|
-
"value": "default-src 'self'; script-src 'self'{{#isFirebase}}{{#needsAuth}} https://accounts.google.com https://apis.google.com{{/needsAuth}}{{/isFirebase}}{{#needsBilling}} https://js.stripe.com{{/needsBilling}}; style-src 'self' 'unsafe-inline'{{#needsBilling}} https://fonts.googleapis.com{{/needsBilling}}; img-src 'self' data: blob: https:; font-src 'self' data:{{#needsBilling}} https://fonts.gstatic.com{{/needsBilling}}; connect-src 'self'{{#isFirebase}}{{#needsAuth}} https://identitytoolkit.googleapis.com https://securetoken.googleapis.com https://www.googleapis.com https://*.googleapis.com https://{{firebaseProjectId}}.firebaseio.com{{/needsAuth}}{{/isFirebase}}{{#isSupabase}} https://*.supabase.co wss://*.supabase.co{{/isSupabase}}{{#needsBilling}} https://api.stripe.com{{/needsBilling}}; frame-src 'none'{{#isFirebase}}{{#needsAuth}} https://accounts.google.com{{/needsAuth}}{{/isFirebase}}{{#needsBilling}} https://js.stripe.com https://hooks.stripe.com{{/needsBilling}}; object-src 'none'; base-uri 'self'; form-action 'self'; upgrade-insecure-requests"
|
|
21
|
+
"value": "default-src 'self'; script-src 'self' 'unsafe-inline'{{#isFirebase}}{{#needsAuth}} https://accounts.google.com https://apis.google.com{{/needsAuth}}{{/isFirebase}}{{#needsBilling}} https://js.stripe.com{{/needsBilling}}; style-src 'self' 'unsafe-inline'{{#needsBilling}} https://fonts.googleapis.com{{/needsBilling}}; img-src 'self' data: blob: https:; font-src 'self' data:{{#needsBilling}} https://fonts.gstatic.com{{/needsBilling}}; connect-src 'self'{{#isFirebase}}{{#needsAuth}} https://identitytoolkit.googleapis.com https://securetoken.googleapis.com https://www.googleapis.com https://*.googleapis.com https://{{firebaseProjectId}}.firebaseio.com{{/needsAuth}}{{/isFirebase}}{{#isSupabase}} https://*.supabase.co wss://*.supabase.co{{/isSupabase}}{{#needsBilling}} https://api.stripe.com{{/needsBilling}}; frame-src 'none'{{#isFirebase}}{{#needsAuth}} https://accounts.google.com{{/needsAuth}}{{/isFirebase}}{{#needsBilling}} https://js.stripe.com https://hooks.stripe.com{{/needsBilling}}; object-src 'none'; base-uri 'self'; form-action 'self'; upgrade-insecure-requests"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"key": "X-Content-Type-Options",
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
"headers": [
|
|
243
243
|
{
|
|
244
244
|
"key": "Content-Security-Policy",
|
|
245
|
-
"value": "default-src 'self'; script-src 'self'{{#isFirebase}}{{#needsAuth}} https://accounts.google.com https://apis.google.com{{/needsAuth}}{{/isFirebase}}{{#needsBilling}} https://js.stripe.com{{/needsBilling}}; style-src 'self' 'unsafe-inline'{{#needsBilling}} https://fonts.googleapis.com{{/needsBilling}}; img-src 'self' data: blob: https:; font-src 'self' data:{{#needsBilling}} https://fonts.gstatic.com{{/needsBilling}}; connect-src 'self'{{#isFirebase}}{{#needsAuth}} https://identitytoolkit.googleapis.com https://securetoken.googleapis.com https://www.googleapis.com https://*.googleapis.com https://{{firebaseProjectId}}.firebaseio.com{{/needsAuth}}{{/isFirebase}}{{#isSupabase}} https://*.supabase.co wss://*.supabase.co{{/isSupabase}}{{#needsBilling}} https://api.stripe.com{{/needsBilling}}; frame-src 'none'{{#isFirebase}}{{#needsAuth}} https://accounts.google.com{{/needsAuth}}{{/isFirebase}}{{#needsBilling}} https://js.stripe.com https://hooks.stripe.com{{/needsBilling}}; object-src 'none'; base-uri 'self'; form-action 'self'; upgrade-insecure-requests"
|
|
245
|
+
"value": "default-src 'self'; script-src 'self' 'unsafe-inline'{{#isFirebase}}{{#needsAuth}} https://accounts.google.com https://apis.google.com{{/needsAuth}}{{/isFirebase}}{{#needsBilling}} https://js.stripe.com{{/needsBilling}}; style-src 'self' 'unsafe-inline'{{#needsBilling}} https://fonts.googleapis.com{{/needsBilling}}; img-src 'self' data: blob: https:; font-src 'self' data:{{#needsBilling}} https://fonts.gstatic.com{{/needsBilling}}; connect-src 'self'{{#isFirebase}}{{#needsAuth}} https://identitytoolkit.googleapis.com https://securetoken.googleapis.com https://www.googleapis.com https://*.googleapis.com https://{{firebaseProjectId}}.firebaseio.com{{/needsAuth}}{{/isFirebase}}{{#isSupabase}} https://*.supabase.co wss://*.supabase.co{{/isSupabase}}{{#needsBilling}} https://api.stripe.com{{/needsBilling}}; frame-src 'none'{{#isFirebase}}{{#needsAuth}} https://accounts.google.com{{/needsAuth}}{{/isFirebase}}{{#needsBilling}} https://js.stripe.com https://hooks.stripe.com{{/needsBilling}}; object-src 'none'; base-uri 'self'; form-action 'self'; upgrade-insecure-requests"
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
248
|
"key": "X-Content-Type-Options",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
# Stripe Configuration
|
|
14
14
|
# Get keys from: https://dashboard.stripe.com/apikeys
|
|
15
15
|
# =============================================================================
|
|
16
|
-
STRIPE_SECRET_KEY
|
|
16
|
+
STRIPE_SECRET_KEY=<stripe_secret_key>
|
|
17
17
|
STRIPE_WEBHOOK_SECRET=whsec_...
|
|
18
18
|
|
|
19
19
|
# =============================================================================
|
|
@@ -27,7 +27,7 @@ STRIPE_WEBHOOK_SECRET=whsec_...
|
|
|
27
27
|
# Get token from: https://github.com/settings/tokens
|
|
28
28
|
# Required scopes: repo (full control of private repositories)
|
|
29
29
|
# =============================================================================
|
|
30
|
-
# GITHUB_PERSONAL_ACCESS_TOKEN
|
|
30
|
+
# GITHUB_PERSONAL_ACCESS_TOKEN=<github_personal_access_token>
|
|
31
31
|
# GITHUB_REPO_OWNER=your-org
|
|
32
32
|
# GITHUB_REPO_NAME=your-repo
|
|
33
33
|
|
|
@@ -66,11 +66,11 @@ functions/
|
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
68
|
# Stripe Configuration
|
|
69
|
-
STRIPE_SECRET_KEY
|
|
69
|
+
STRIPE_SECRET_KEY=<stripe_secret_key>
|
|
70
70
|
STRIPE_WEBHOOK_SECRET=whsec_...
|
|
71
71
|
|
|
72
72
|
# GitHub Configuration
|
|
73
|
-
GITHUB_PERSONAL_ACCESS_TOKEN
|
|
73
|
+
GITHUB_PERSONAL_ACCESS_TOKEN=<github_personal_access_token>
|
|
74
74
|
GITHUB_REPO_OWNER=your-org
|
|
75
75
|
GITHUB_REPO_NAME=your-repo
|
|
76
76
|
|
|
@@ -112,7 +112,7 @@ dndev deploy <app-name>
|
|
|
112
112
|
|
|
113
113
|
**Important:** `functions.yaml` must be manually maintained. Each function exported from `src/index.ts` must have a corresponding entry in `functions.yaml`. The deployment script preserves `functions.yaml` and does not modify it.
|
|
114
114
|
|
|
115
|
-
See
|
|
115
|
+
See MCP `get_guideline("FUNCTIONS")` or `@donotdev/functions/guidelines/FUNCTIONS.md` for `functions.yaml` and deployment.
|
|
116
116
|
|
|
117
117
|
## Development
|
|
118
118
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/templates/functions-supabase/supabase/functions/cancel-subscription/index.ts.example
CHANGED
|
File without changes
|
|
File without changes
|
package/templates/functions-supabase/supabase/functions/create-checkout-session/index.ts.example
CHANGED
|
File without changes
|
package/templates/functions-supabase/supabase/functions/create-customer-portal/index.ts.example
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/templates/functions-supabase/supabase/functions/get-user-auth-status/index.ts.example
CHANGED
|
File without changes
|
package/templates/functions-supabase/supabase/functions/refresh-subscription-status/index.ts.example
CHANGED
|
File without changes
|
|
File without changes
|
package/templates/functions-supabase/supabase/functions/remove-custom-claims/index.ts.example
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -13,6 +13,9 @@ CREATE TABLE IF NOT EXISTS idempotency (
|
|
|
13
13
|
expires_at TIMESTAMPTZ NOT NULL -- TTL for cleanup (default: 24h)
|
|
14
14
|
);
|
|
15
15
|
|
|
16
|
+
-- Only service_role accesses this table; lock out anon/authenticated keys
|
|
17
|
+
ALTER TABLE idempotency ENABLE ROW LEVEL SECURITY;
|
|
18
|
+
|
|
16
19
|
-- Indexes for efficient lookups
|
|
17
20
|
CREATE INDEX IF NOT EXISTS idx_idempotency_expires ON idempotency(expires_at);
|
|
18
21
|
CREATE INDEX IF NOT EXISTS idx_idempotency_key ON idempotency(idempotency_key);
|
|
@@ -11,6 +11,9 @@ CREATE TABLE IF NOT EXISTS rate_limits (
|
|
|
11
11
|
last_updated TIMESTAMPTZ NOT NULL DEFAULT now()
|
|
12
12
|
);
|
|
13
13
|
|
|
14
|
+
-- Only service_role accesses this table; lock out anon/authenticated keys
|
|
15
|
+
ALTER TABLE rate_limits ENABLE ROW LEVEL SECURITY;
|
|
16
|
+
|
|
14
17
|
-- Indexes for efficient lookups and cleanup
|
|
15
18
|
CREATE INDEX IF NOT EXISTS idx_rate_limits_window ON rate_limits(window_start);
|
|
16
19
|
CREATE INDEX IF NOT EXISTS idx_rate_limits_block ON rate_limits(block_until) WHERE block_until IS NOT NULL;
|
|
File without changes
|