@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
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
# BLUEPRINT: 4_CONFIGURE + TEST
|
|
2
|
-
|
|
3
|
-
**Goal:** Generate test files, configure the app, verify everything works.
|
|
4
|
-
|
|
5
|
-
**MCP:** `start_phase(4)` to begin. `complete_phase({ files: [...], lesson: "..." })` when done.
|
|
6
|
-
**Done when:** Tests pass, config complete, firestore rules generated.
|
|
7
|
-
|
|
8
|
-
**Prerequisite:** Phase 0-3 complete. PRD + HLD + LLD validated, app is functional with hardcoded strings.
|
|
9
|
-
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
## Step 1: Generate Test Setup
|
|
13
|
-
|
|
14
|
-
Create these files:
|
|
15
|
-
|
|
16
|
-
### vitest.config.ts
|
|
17
|
-
```ts
|
|
18
|
-
import { defineConfig } from 'vitest/config';
|
|
19
|
-
import react from '@vitejs/plugin-react';
|
|
20
|
-
|
|
21
|
-
export default defineConfig({
|
|
22
|
-
plugins: [react()],
|
|
23
|
-
test: {
|
|
24
|
-
environment: 'jsdom',
|
|
25
|
-
setupFiles: ['./tests/setup.ts'],
|
|
26
|
-
globals: true,
|
|
27
|
-
include: ['tests/**/*.test.ts', 'tests/**/*.test.tsx'],
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
### tests/setup.ts
|
|
33
|
-
```ts
|
|
34
|
-
import '@testing-library/jest-dom';
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
**READ** `get_guide("TESTING")` for full testing patterns.
|
|
38
|
-
|
|
39
|
-
---
|
|
40
|
-
|
|
41
|
-
## Step 2: Generate Entity Tests
|
|
42
|
-
|
|
43
|
-
**READ:** `entities/index.ts` — get the list of all entities.
|
|
44
|
-
**READ:** `docs/PRD.md` — get the permissions matrix and business rules.
|
|
45
|
-
**READ:** `docs/LLD.md` — get the per-entity access matrices.
|
|
46
|
-
|
|
47
|
-
For **each entity** in `entities/`, create `tests/entities/[EntityName].test.ts`:
|
|
48
|
-
|
|
49
|
-
- [ ] All required fields are defined
|
|
50
|
-
- [ ] Field types match spec
|
|
51
|
-
- [ ] Access rules match spec (create/read/update/delete per role)
|
|
52
|
-
- [ ] State transitions are valid (if entity has states)
|
|
53
|
-
- [ ] Default values set correctly
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
57
|
-
## Step 3: Generate Page Tests
|
|
58
|
-
|
|
59
|
-
**READ:** Every `src/pages/*Page.tsx` file.
|
|
60
|
-
|
|
61
|
-
For **each page**, create `tests/pages/[PageName].test.tsx`:
|
|
62
|
-
|
|
63
|
-
- [ ] Page renders without error
|
|
64
|
-
- [ ] PageMeta is defined (title, auth, admin)
|
|
65
|
-
- [ ] Route protection matches HLD page map (public pages have `auth: false`, protected have `auth: true`, admin have `admin: true`)
|
|
66
|
-
|
|
67
|
-
---
|
|
68
|
-
|
|
69
|
-
## Step 4: Generate Access Control Tests
|
|
70
|
-
|
|
71
|
-
**READ:** `docs/PRD.md` permissions matrix and `docs/LLD.md` access matrices.
|
|
72
|
-
|
|
73
|
-
Create `tests/access/access-rules.test.ts`:
|
|
74
|
-
|
|
75
|
-
- [ ] Admin-only entities require admin access
|
|
76
|
-
- [ ] User-owned entities have owner access on update/delete
|
|
77
|
-
- [ ] Public entities allow guest read
|
|
78
|
-
- [ ] No entity allows unauthenticated write
|
|
79
|
-
|
|
80
|
-
---
|
|
81
|
-
|
|
82
|
-
## Step 5: Generate Firestore Rules
|
|
83
|
-
|
|
84
|
-
**READ:** All entities' access definitions.
|
|
85
|
-
|
|
86
|
-
Create `firestore.rules` from entity access rules:
|
|
87
|
-
|
|
88
|
-
- Each entity's collection maps to a Firestore match rule
|
|
89
|
-
- `create` access → `allow create` condition
|
|
90
|
-
- `read` access → `allow read` condition
|
|
91
|
-
- `update` access → `allow update` condition
|
|
92
|
-
- `delete` access → `allow delete` condition
|
|
93
|
-
- `owner` → `resource.data.userId == request.auth.uid`
|
|
94
|
-
- `admin` → `request.auth.token.admin == true`
|
|
95
|
-
- `authenticated` → `request.auth != null`
|
|
96
|
-
|
|
97
|
-
---
|
|
98
|
-
|
|
99
|
-
## Step 6: Update Configuration
|
|
100
|
-
|
|
101
|
-
### app.ts
|
|
102
|
-
**READ:** `src/config/app.ts`
|
|
103
|
-
- [ ] `APP_NAME` from PRD
|
|
104
|
-
- [ ] `APP_SHORT_NAME` abbreviation
|
|
105
|
-
- [ ] `preset` from HLD (landing/admin/moolti/docs/blog/game/plain)
|
|
106
|
-
- [ ] Footer legal links
|
|
107
|
-
|
|
108
|
-
### legal.ts
|
|
109
|
-
**READ:** `src/config/legal.ts`
|
|
110
|
-
- [ ] Company name and registration
|
|
111
|
-
- [ ] Contact emails
|
|
112
|
-
- [ ] Hosting provider
|
|
113
|
-
- [ ] Jurisdiction
|
|
114
|
-
|
|
115
|
-
### .env
|
|
116
|
-
- [ ] `VITE_FIREBASE_*` — Firebase config values
|
|
117
|
-
- [ ] `VITE_DONOTDEV_LICENSE_KEY` — License key
|
|
118
|
-
- [ ] Optional: `VITE_STRIPE_*`, `VITE_SENTRY_DSN`
|
|
119
|
-
|
|
120
|
-
---
|
|
121
|
-
|
|
122
|
-
## Step 7: Generate CI/CD
|
|
123
|
-
|
|
124
|
-
Create `.github/workflows/ci.yml`:
|
|
125
|
-
|
|
126
|
-
```yaml
|
|
127
|
-
name: CI/CD
|
|
128
|
-
|
|
129
|
-
on:
|
|
130
|
-
push:
|
|
131
|
-
branches: [main]
|
|
132
|
-
pull_request:
|
|
133
|
-
branches: [main]
|
|
134
|
-
|
|
135
|
-
env:
|
|
136
|
-
NODE_VERSION: '20'
|
|
137
|
-
|
|
138
|
-
jobs:
|
|
139
|
-
quality:
|
|
140
|
-
runs-on: ubuntu-latest
|
|
141
|
-
steps:
|
|
142
|
-
- uses: actions/checkout@v4
|
|
143
|
-
- uses: oven-sh/setup-bun@v2
|
|
144
|
-
- run: bun install --frozen-lockfile
|
|
145
|
-
- run: bun run type-check
|
|
146
|
-
- run: bun test
|
|
147
|
-
|
|
148
|
-
deploy:
|
|
149
|
-
needs: quality
|
|
150
|
-
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
|
151
|
-
runs-on: ubuntu-latest
|
|
152
|
-
steps:
|
|
153
|
-
- uses: actions/checkout@v4
|
|
154
|
-
- uses: oven-sh/setup-bun@v2
|
|
155
|
-
- run: bun install --frozen-lockfile
|
|
156
|
-
- run: bun run build
|
|
157
|
-
- uses: FirebaseExtended/action-hosting-deploy@v0
|
|
158
|
-
with:
|
|
159
|
-
repoToken: ${{ secrets.GITHUB_TOKEN }}
|
|
160
|
-
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
|
|
161
|
-
channelId: live
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
Adapt based on spec:
|
|
165
|
-
- If **functions** enabled → add `firebase deploy --only functions` step
|
|
166
|
-
- If **staging** environment → add staging job with `dndev staging`
|
|
167
|
-
- If **no Firebase** (Vercel) → replace deploy job with Vercel action
|
|
168
|
-
|
|
169
|
-
---
|
|
170
|
-
|
|
171
|
-
## Step 8: Run Tests
|
|
172
|
-
|
|
173
|
-
```bash
|
|
174
|
-
bun test
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
Fix any failures. All tests must pass.
|
|
178
|
-
|
|
179
|
-
---
|
|
180
|
-
|
|
181
|
-
## Step 9: Mobile Check
|
|
182
|
-
|
|
183
|
-
1. Open DevTools (F12) → device toolbar (Ctrl+Shift+M) → 375px
|
|
184
|
-
2. Check:
|
|
185
|
-
- [ ] Navigation works (mobile menu)
|
|
186
|
-
- [ ] Forms are usable
|
|
187
|
-
- [ ] Text is readable
|
|
188
|
-
- [ ] Buttons tappable (44px min)
|
|
189
|
-
- [ ] No horizontal scroll
|
|
190
|
-
|
|
191
|
-
---
|
|
192
|
-
|
|
193
|
-
## Step 10: i18n (Optional)
|
|
194
|
-
|
|
195
|
-
**Only after Steps 1-9 pass!**
|
|
196
|
-
|
|
197
|
-
Extract hardcoded strings to `src/locales/[namespace]_en.json`, replace with `useTranslation()`.
|
|
198
|
-
|
|
199
|
-
---
|
|
200
|
-
|
|
201
|
-
## Final Checklist
|
|
202
|
-
|
|
203
|
-
- [ ] `vitest.config.ts` created
|
|
204
|
-
- [ ] Entity tests generated (one per entity)
|
|
205
|
-
- [ ] Page tests generated (one per page)
|
|
206
|
-
- [ ] Access control tests generated
|
|
207
|
-
- [ ] `firestore.rules` generated from entities
|
|
208
|
-
- [ ] `.github/workflows/ci.yml` generated
|
|
209
|
-
- [ ] `app.ts` configured
|
|
210
|
-
- [ ] `legal.ts` configured
|
|
211
|
-
- [ ] `.env` configured
|
|
212
|
-
- [ ] `bun test` passes
|
|
213
|
-
- [ ] Mobile responsive at 375px
|
|
214
|
-
- [ ] (Optional) i18n added
|
|
215
|
-
|
|
216
|
-
---
|
|
217
|
-
|
|
218
|
-
## Output
|
|
219
|
-
|
|
220
|
-
Call `complete_phase` with ALL generated test files + config files:
|
|
221
|
-
|
|
222
|
-
```
|
|
223
|
-
complete_phase({
|
|
224
|
-
files: [
|
|
225
|
-
"vitest.config.ts",
|
|
226
|
-
"tests/setup.ts",
|
|
227
|
-
"tests/entities/Task.test.ts",
|
|
228
|
-
"tests/entities/User.test.ts",
|
|
229
|
-
"tests/pages/DashboardPage.test.tsx",
|
|
230
|
-
"tests/access/access-rules.test.ts",
|
|
231
|
-
"firestore.rules",
|
|
232
|
-
".github/workflows/ci.yml",
|
|
233
|
-
"src/config/app.ts",
|
|
234
|
-
"src/config/legal.ts"
|
|
235
|
-
],
|
|
236
|
-
lesson: "..."
|
|
237
|
-
})
|
|
238
|
-
```
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"description": "WAI-WAY context map - maps phases to required files. READ the scaffolded files, they contain inline documentation.",
|
|
3
|
-
"golden_rule": "THE SCAFFOLDED FILES ARE YOUR DOCUMENTATION. Read the file. Follow the pattern. Extend.",
|
|
4
|
-
"document_chain": {
|
|
5
|
-
"spec_template.md": "FORMAT — the empty shell the Extractor fills through conversation. NOT kept as-is.",
|
|
6
|
-
"docs/PRD.md": "OUTPUT — Product Requirements (journeys, rules, permissions). The WHAT.",
|
|
7
|
-
"docs/HLD.md": "OUTPUT — High-Level Design (preset, auth, pages, features). The HOW (big picture).",
|
|
8
|
-
"docs/LLD.md": "OUTPUT — Low-Level Design (per-entity specs, state machines, access). The HOW (detailed).",
|
|
9
|
-
".dndev/implementation.md": "MACRO PLAN — checklist per phase. Versioned, archived per project version.",
|
|
10
|
-
".dndev/captain-log.json": "SESSION HISTORY — auto-recorded on approve_phase. Never deleted.",
|
|
11
|
-
".dndev/LESSONS.md": "GOTCHAS — tagged, scored, filtered by phase. Never deleted."
|
|
12
|
-
},
|
|
13
|
-
"phases": {
|
|
14
|
-
"0_brainstorm": {
|
|
15
|
-
"agent": "extractor",
|
|
16
|
-
"goal": "Gather requirements through conversation and produce validated specification documents",
|
|
17
|
-
"flow": "User idea → Agent questions (using spec_template.md format) → User validates → Agent splits into PRD + HLD + LLD",
|
|
18
|
-
"done_when": "docs/PRD.md + docs/HLD.md + docs/LLD.md complete and validated by user",
|
|
19
|
-
"read_files": [
|
|
20
|
-
"guides/wai-way/spec_template.md",
|
|
21
|
-
"guides/wai-way/prd_template.md",
|
|
22
|
-
"guides/wai-way/hld_template.md",
|
|
23
|
-
"guides/wai-way/lld_template.md",
|
|
24
|
-
"guides/wai-way/presets_guide.md",
|
|
25
|
-
"guides/wai-way/entity_patterns.md",
|
|
26
|
-
"guides/wai-way/page_patterns.md"
|
|
27
|
-
],
|
|
28
|
-
"output": "docs/PRD.md, docs/HLD.md, docs/LLD.md, .dndev/implementation.md"
|
|
29
|
-
},
|
|
30
|
-
"1_scaffold": {
|
|
31
|
-
"agent": "extractor",
|
|
32
|
-
"goal": "Running app with all routes defined as interactive prototype stubs",
|
|
33
|
-
"done_when": "All routes listed, all *Page.tsx files created with correct PageMeta, clickable prototype",
|
|
34
|
-
"read_files": [
|
|
35
|
-
"docs/PRD.md",
|
|
36
|
-
"docs/HLD.md",
|
|
37
|
-
"src/pages/HomePage.tsx",
|
|
38
|
-
"src/config/app.ts",
|
|
39
|
-
"guides/wai-way/page_patterns.md"
|
|
40
|
-
],
|
|
41
|
-
"output": "All *Page.tsx files created with PageMeta, clickable prototype"
|
|
42
|
-
},
|
|
43
|
-
"2_entities": {
|
|
44
|
-
"agent": "architect",
|
|
45
|
-
"goal": "Define all data models from LLD",
|
|
46
|
-
"done_when": "All entities defined with fields, access, visibility. Exported from index.ts",
|
|
47
|
-
"read_files": [
|
|
48
|
-
"docs/LLD.md",
|
|
49
|
-
"entities/ExampleEntity.ts",
|
|
50
|
-
"entities/index.ts",
|
|
51
|
-
"guides/wai-way/entity_patterns.md"
|
|
52
|
-
],
|
|
53
|
-
"output": "All entities defined in entities/"
|
|
54
|
-
},
|
|
55
|
-
"3_compose": {
|
|
56
|
-
"agent": "builder",
|
|
57
|
-
"goal": "Build pages with components (hardcoded strings)",
|
|
58
|
-
"done_when": "All pages functional, CRUD uses EntityList/EntityFormRenderer, strings hardcoded",
|
|
59
|
-
"read_files": [
|
|
60
|
-
"docs/PRD.md",
|
|
61
|
-
"docs/HLD.md",
|
|
62
|
-
"src/pages/ListPageExample.tsx",
|
|
63
|
-
"src/pages/FormPageExample.tsx",
|
|
64
|
-
"src/pages/HomePage.tsx",
|
|
65
|
-
"guides/wai-way/page_patterns.md"
|
|
66
|
-
],
|
|
67
|
-
"output": "All pages functional with hardcoded content"
|
|
68
|
-
},
|
|
69
|
-
"4_configure_test": {
|
|
70
|
-
"agent": "polisher",
|
|
71
|
-
"goal": "Generate tests, firestore rules, CI/CD, finalize config",
|
|
72
|
-
"done_when": "Tests pass, firestore.rules generated, config complete, mobile responsive",
|
|
73
|
-
"read_files": [
|
|
74
|
-
"docs/PRD.md",
|
|
75
|
-
"docs/LLD.md",
|
|
76
|
-
"entities/index.ts",
|
|
77
|
-
"src/config/app.ts",
|
|
78
|
-
"src/config/legal.ts",
|
|
79
|
-
"guides/dndev/SETUP_TESTING.md"
|
|
80
|
-
],
|
|
81
|
-
"output": "Test files, firestore.rules, CI/CD, configured app"
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"key_files": {
|
|
85
|
-
"spec_documents": {
|
|
86
|
-
"docs/PRD.md": "Product Requirements — journeys, rules, permissions (produced by P0)",
|
|
87
|
-
"docs/HLD.md": "High-Level Design — preset, auth, pages, features (produced by P0)",
|
|
88
|
-
"docs/LLD.md": "Low-Level Design — per-entity specs, state machines, access (produced by P0)"
|
|
89
|
-
},
|
|
90
|
-
"spec_formats": {
|
|
91
|
-
"guides/wai-way/spec_template.md": "Conversation FORMAT — empty shell agent fills through questions",
|
|
92
|
-
"guides/wai-way/prd_template.md": "Output FORMAT for PRD.md",
|
|
93
|
-
"guides/wai-way/hld_template.md": "Output FORMAT for HLD.md",
|
|
94
|
-
"guides/wai-way/lld_template.md": "Output FORMAT for LLD.md",
|
|
95
|
-
"guides/wai-way/presets_guide.md": "Preset decision matrix",
|
|
96
|
-
"guides/wai-way/entity_patterns.md": "Common entity schemas",
|
|
97
|
-
"guides/wai-way/page_patterns.md": "Common page structures"
|
|
98
|
-
},
|
|
99
|
-
"operational": {
|
|
100
|
-
".dndev/implementation.md": "Active macro plan — checklist per phase (versioned)",
|
|
101
|
-
".dndev/captain-log.json": "Full session history — auto-recorded (never deleted)",
|
|
102
|
-
".dndev/LESSONS.md": "Decisions, gotchas, anti-patterns (never deleted)"
|
|
103
|
-
},
|
|
104
|
-
"config": {
|
|
105
|
-
"src/config/app.ts": "App name, preset, features, auth routes",
|
|
106
|
-
"src/config/legal.ts": "Company info, legal compliance",
|
|
107
|
-
".env": "Firebase config, API keys"
|
|
108
|
-
},
|
|
109
|
-
"pages": {
|
|
110
|
-
"src/pages/HomePage.tsx": "PageMeta pattern, basic page structure",
|
|
111
|
-
"src/pages/ListPageExample.tsx": "EntityList CRUD pattern",
|
|
112
|
-
"src/pages/FormPageExample.tsx": "EntityFormRenderer pattern"
|
|
113
|
-
},
|
|
114
|
-
"entities": {
|
|
115
|
-
"entities/ExampleEntity.ts": "defineEntity pattern, field types, access rules",
|
|
116
|
-
"entities/index.ts": "Entity exports"
|
|
117
|
-
},
|
|
118
|
-
"styling": {
|
|
119
|
-
"src/themes.css": "CSS variables, light/dark themes",
|
|
120
|
-
"src/globals.css": "Font overrides"
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
"workflow": {
|
|
124
|
-
"summary": "BRAINSTORM (→ PRD + HLD + LLD) → SCAFFOLD → ENTITIES → COMPOSE → CONFIGURE + TEST",
|
|
125
|
-
"critical_rule": "spec_template.md is the FORMAT. P0 produces PRD + HLD + LLD. Validated documents = mechanical build."
|
|
126
|
-
}
|
|
127
|
-
}
|