ai-flow-dev 1.3.0 → 2.0.1

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.
Files changed (44) hide show
  1. package/README.md +97 -30
  2. package/dist/cli.js +94 -110
  3. package/dist/cli.js.map +1 -1
  4. package/package.json +6 -2
  5. package/prompts/backend/{flow-bootstrap-phase-0.md → flow-build-phase-0.md} +5 -3
  6. package/prompts/backend/{flow-bootstrap-phase-1.md → flow-build-phase-1.md} +36 -41
  7. package/prompts/backend/{flow-bootstrap-phase-2.md → flow-build-phase-2.md} +80 -68
  8. package/prompts/backend/{flow-bootstrap-phase-3.md → flow-build-phase-3.md} +82 -61
  9. package/prompts/backend/{flow-bootstrap-phase-5.md → flow-build-phase-5.md} +10 -9
  10. package/prompts/backend/{flow-bootstrap-phase-6.md → flow-build-phase-6.md} +8 -7
  11. package/prompts/backend/{flow-bootstrap-phase-7.md → flow-build-phase-7.md} +5 -3
  12. package/prompts/backend/{flow-bootstrap-phase-8.md → flow-build-phase-8.md} +410 -543
  13. package/prompts/backend/{flow-bootstrap-phase-9.md → flow-build-phase-9.md} +472 -91
  14. package/prompts/backend/{flow-bootstrap.md → flow-build.md} +212 -140
  15. package/prompts/backend/flow-dev-feature.md +447 -68
  16. package/prompts/backend/flow-dev-fix.md +81 -8
  17. package/prompts/backend/flow-docs-sync.md +2 -1
  18. package/prompts/frontend/{flow-bootstrap-phase-0.md → flow-build-phase-0.md} +3 -2
  19. package/prompts/frontend/{flow-bootstrap-phase-1.md → flow-build-phase-1.md} +2 -1
  20. package/prompts/frontend/{flow-bootstrap-phase-2.md → flow-build-phase-2.md} +2 -1
  21. package/prompts/frontend/{flow-bootstrap-phase-3.md → flow-build-phase-3.md} +2 -1
  22. package/prompts/frontend/{flow-bootstrap-phase-4.md → flow-build-phase-4.md} +4 -2
  23. package/prompts/frontend/{flow-bootstrap-phase-5.md → flow-build-phase-5.md} +2 -1
  24. package/prompts/frontend/{flow-bootstrap-phase-6.md → flow-build-phase-6.md} +2 -1
  25. package/prompts/frontend/{flow-bootstrap-phase-8.md → flow-build-phase-8.md} +238 -22
  26. package/prompts/frontend/{flow-bootstrap.md → flow-build.md} +108 -25
  27. package/prompts/frontend/flow-docs-sync.md +3 -2
  28. package/prompts/mobile/{flow-bootstrap-phase-0.md → flow-build-phase-0.md} +3 -2
  29. package/prompts/mobile/{flow-bootstrap-phase-1.md → flow-build-phase-1.md} +2 -1
  30. package/prompts/mobile/{flow-bootstrap-phase-2.md → flow-build-phase-2.md} +2 -1
  31. package/prompts/mobile/{flow-bootstrap-phase-3.md → flow-build-phase-3.md} +2 -1
  32. package/prompts/mobile/{flow-bootstrap-phase-4.md → flow-build-phase-4.md} +2 -1
  33. package/prompts/mobile/{flow-bootstrap-phase-5.md → flow-build-phase-5.md} +2 -1
  34. package/prompts/mobile/{flow-bootstrap-phase-6.md → flow-build-phase-6.md} +2 -1
  35. package/prompts/mobile/{flow-bootstrap-phase-8.md → flow-build-phase-8.md} +249 -23
  36. package/prompts/mobile/{flow-bootstrap.md → flow-build.md} +107 -26
  37. package/prompts/mobile/flow-docs-sync.md +3 -2
  38. package/templates/{mobile/AGENT.template.md → AGENT.template.md} +2 -17
  39. package/templates/backend/.clauderules.template +1 -1
  40. package/templates/backend/.cursorrules.template +1 -1
  41. package/templates/shared/AGENT.template.md +0 -252
  42. /package/prompts/backend/{flow-bootstrap-phase-4.md → flow-build-phase-4.md} +0 -0
  43. /package/prompts/frontend/{flow-bootstrap-phase-7.md → flow-build-phase-7.md} +0 -0
  44. /package/prompts/mobile/{flow-bootstrap-phase-7.md → flow-build-phase-7.md} +0 -0
@@ -514,80 +514,102 @@ Will you integrate with external services?
514
514
  Select all that apply:
515
515
 
516
516
  💳 Payment Providers:
517
- Stripe - Credit cards, subscriptions ⭐
518
- PayPal - Popular payment method
519
- Square - POS and online payments
520
- Mercado Pago - Latin America
521
- Other: __
517
+ A) Stripe - Credit cards, subscriptions ⭐
518
+ B) PayPal - Popular payment method
519
+ C) Square - POS and online payments
520
+ D) Mercado Pago - Latin America
521
+ E) Other: __
522
+
523
+ → Your selection (e.g., A): __
522
524
 
523
525
  📧 Email Services:
524
- AWS SES - Cost-effective, scalable ⭐
525
- SendGrid - Feature-rich, analytics
526
- Mailgun - Developer-friendly
527
- Postmark - Transactional focus
528
- Resend - Modern, simple API ⚡
529
- Other: __
526
+ A) AWS SES - Cost-effective, scalable ⭐
527
+ B) SendGrid - Feature-rich, analytics
528
+ C) Mailgun - Developer-friendly
529
+ D) Postmark - Transactional focus
530
+ E) Resend - Modern, simple API ⚡
531
+ F) Other: __
532
+
533
+ → Your selection (e.g., A, B): __
530
534
 
531
535
  📱 SMS/Messaging:
532
- Twilio - SMS, WhatsApp, voice ⭐
533
- AWS SNS - Simple notifications
534
- □ MessageBird - Multi-channel
535
- Other: __
536
+ C) MessageBird - Multi-channel
537
+ D) Other: __
538
+
539
+ Your selection (e.g., A): __
536
540
 
537
541
  ☁️ Cloud Storage:
538
- □ AWS S3 - Object storage standard ⭐
539
- Google Cloud Storage
540
- Azure Blob Storage
541
- □ Cloudflare R2 - S3-compatible, no egress fees ⚡
542
- Other: __
542
+
543
+ D) Cloudflare R2 - S3-compatible, no egress fees ⚡
544
+ E) Other: __
545
+
546
+ Your selection (e.g., A): __
547
+
548
+ 📊 Analytics: Storage
549
+ D) Cloudflare R2 - S3-compatible, no egress fees ⚡
550
+ E) Other: __
543
551
 
544
552
  📊 Analytics:
545
- Google Analytics - Web analytics
546
- Mixpanel - Product analytics ⭐
547
- □ Segment - Data pipeline
548
- PostHog - Open-source analytics
549
- □ Amplitude - Behavioral analytics
550
- Other: __
551
-
552
- 🔍 Monitoring/Error Tracking:
553
- Sentry - Error tracking ⭐
554
- □ Datadog - Full observability 🏆
555
- New Relic - APM
556
- □ LogRocket - Session replay
557
- Other: __
558
-
559
- 🗺️ Maps/Location:
560
- Google Maps API
561
- Mapbox
562
- □ OpenStreetMap
563
- Other: __
553
+ E) Amplitude - Behavioral analytics
554
+ F) Other: __
555
+
556
+ Your selection (e.g., B, C): __
557
+
558
+ 🔍 Monitoring/Error Tracking:ytics
559
+ E) Amplitude - Behavioral analytics
560
+ D) LogRocket - Session replay
561
+ E) Other: __
562
+
563
+ Your selection (e.g., A): __
564
+
565
+ 🗺️ Maps/Location:tracking
566
+ B) Datadog - Full observability 🏆
567
+ C) New Relic - APM
568
+ C) OpenStreetMap
569
+ D) Other: __
570
+
571
+ Your selection (e.g., A): __
564
572
 
565
573
  🔐 Authentication:
566
- Auth0 - Identity platform 🏆
567
- Clerk - Modern auth ⚡
568
- Supabase Auth - Open-source
569
- □ Firebase Auth - Google ecosystem
570
- Other: __
574
+ A) Google Maps API
575
+ D) Firebase Auth - Google ecosystem
576
+ E) Other: __
577
+
578
+ Your selection (e.g., A, B): __
571
579
 
572
580
  🤖 AI/ML Services:
573
- OpenAI API - GPT models
574
- Anthropic Claude - AI assistant
575
- Google Gemini - Multimodal AI
576
- □ AWS Bedrock - Managed AI
577
- Other: __
578
-
579
- 📞 Communication:
580
- Slack - Team notifications
581
- □ Discord - Community integration
582
- Webhooks - Custom integrations
583
- Other: __
581
+ 🔐 Authentication:
582
+ D) AWS Bedrock - Managed AI
583
+ E) Other: __
584
+
585
+ Your selection (e.g., A): __
586
+
587
+ 📞 Communication:- Google ecosystem
588
+ E) Other: __
589
+
590
+ C) Webhooks - Custom integrations
591
+ D) Other: __
592
+
593
+ → Your selection (e.g., A, B): __
594
+
595
+ 🔄 Other Integrations:timodal AI
596
+ D) AWS Bedrock - Managed AI
597
+ D) Accounting (QuickBooks, Xero)
598
+ E) Other: __
599
+
600
+ → Your selection (e.g., A, B, C): __
601
+
602
+ ---
603
+
604
+ For each selected, briefly describe the use case:
605
+ D) Other: __
584
606
 
585
607
  🔄 Other Integrations:
586
- GitHub/GitLab API
587
- Calendar (Google/Outlook)
588
- CRM (Salesforce, HubSpot)
589
- Accounting (QuickBooks, Xero)
590
- Other: __
608
+ A) GitHub/GitLab API
609
+ B) Calendar (Google/Outlook)
610
+ C) CRM (Salesforce, HubSpot)
611
+ D) Accounting (QuickBooks, Xero)
612
+ E) Other: __
591
613
 
592
614
  ---
593
615
 
@@ -681,4 +703,3 @@ Then execute: `read_file()` for both documents to refresh context.
681
703
  ---
682
704
 
683
705
  ## PHASE 4: Security & Authentication (15-20 min)
684
-
@@ -543,14 +543,16 @@ Default log level:
543
543
  - Production: __
544
544
 
545
545
  Log context to include:
546
- Request ID (for tracing)
547
- User ID (if authenticated)
548
- IP address
549
- User agent
550
- Request path
551
- Response status
552
- Duration
553
- Error stack traces
546
+ A) Request ID (for tracing)
547
+ B) User ID (if authenticated)
548
+ C) IP address
549
+ D) User agent
550
+ E) Request path
551
+ F) Response status
552
+ G) Duration
553
+ H) Error stack traces
554
+
555
+ → Your selection (e.g., A, B, E, F, G): __
554
556
 
555
557
  Log aggregation tool:
556
558
  A) ⭐ CloudWatch (AWS)
@@ -634,4 +636,3 @@ I'll re-read all files to update my context before continuing.
634
636
  ---
635
637
 
636
638
  ## PHASE 6: Testing Strategy (15-25 min)
637
-
@@ -321,12 +321,14 @@ D) Custom scripts
321
321
  E) Other: __
322
322
 
323
323
  Chaos experiments to run:
324
- Network latency injection
325
- Service failures
326
- Database connection failures
327
- CPU/memory exhaustion
328
- Disk space issues
329
- Network partition
324
+ A) Network latency injection
325
+ B) Service failures
326
+ C) Database connection failures
327
+ D) CPU/memory exhaustion
328
+ E) Disk space issues
329
+ F) Network partition
330
+
331
+ → Your selection (e.g., A, B, C): __
330
332
 
331
333
  Safety rules:
332
334
  - Run only in: [Staging, Production with approval]
@@ -462,4 +464,3 @@ I'll re-read all files to update my context before continuing.
462
464
 
463
465
  ## PHASE 7: Operations & Deployment (10 min)
464
466
  ````
465
-
@@ -1043,7 +1043,7 @@ When executing this master prompt:
1043
1043
  - [ ] If yes, create .ai-flow/analysis.json with complete analysis
1044
1044
  - [ ] Let user choose: A) Use detected info, B) Start fresh, C) Review/edit detected info
1045
1045
  - [ ] **Handle suggestions:**
1046
- - [ ] If user selected A (address during bootstrap), integrate suggestions into relevant phases
1046
+ - [ ] If user selected A (address during build), integrate suggestions into relevant phases
1047
1047
  - [ ] If user selected B (save for later), create suggestions.md file
1048
1048
  - [ ] If user selected C (skip), continue without changes
1049
1049
  - [ ] Pre-populate answers based on detected information
@@ -1116,7 +1116,7 @@ This is an investment that will save 10-20 hours over the project lifecycle.
1116
1116
 
1117
1117
  **EXECUTION FLOW:**
1118
1118
 
1119
- 1. **START:** User runs `/flow-bootstrap`
1119
+ 1. **START:** User runs `/flow-build`
1120
1120
  2. **DETECT:** Check for existing project files (Phase 0)
1121
1121
  - If existing files found → Run Phase 0 deep analysis:
1122
1122
  - 0.1: Deep Code Analysis (file structure, AST parsing, schema extraction, pattern detection)
@@ -1132,9 +1132,11 @@ This is an investment that will save 10-20 hours over the project lifecycle.
1132
1132
 
1133
1133
  ---
1134
1134
 
1135
- **BEGIN EXECUTION when user runs `/flow-bootstrap`**
1135
+ **BEGIN EXECUTION when user runs `/flow-build`**
1136
1136
 
1137
1137
  ```
1138
1138
 
1139
1139
  ```
1140
1140
 
1141
+
1142
+