ai-flow-dev 1.0.2 → 1.1.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 (40) hide show
  1. package/README.md +60 -35
  2. package/dist/cli.js +201 -232
  3. package/dist/cli.js.map +1 -1
  4. package/dist/fs-utils.js +3 -39
  5. package/dist/fs-utils.js.map +1 -1
  6. package/package.json +11 -12
  7. package/prompts/backend/{flow-docs-gen-phase-7.md → flow-bootstrap-phase-7.md} +41 -108
  8. package/prompts/backend/flow-bootstrap-phase-8.md +911 -0
  9. package/prompts/backend/{flow-project-roadmap.md → flow-bootstrap-phase-9.md} +255 -344
  10. package/prompts/backend/{flow-docs-gen.md → flow-bootstrap.md} +102 -37
  11. package/prompts/frontend/{flow-docs-gen-phase-0.md → flow-bootstrap-phase-0.md} +2 -1
  12. package/prompts/frontend/{flow-docs-gen-phase-1.md → flow-bootstrap-phase-1.md} +2 -1
  13. package/prompts/frontend/{flow-docs-gen-phase-3.md → flow-bootstrap-phase-3.md} +2 -1
  14. package/prompts/frontend/{flow-docs-gen-phase-4.md → flow-bootstrap-phase-4.md} +2 -1
  15. package/prompts/frontend/{flow-docs-gen-phase-5.md → flow-bootstrap-phase-5.md} +2 -1
  16. package/prompts/frontend/{flow-docs-gen-phase-6.md → flow-bootstrap-phase-6.md} +2 -1
  17. package/prompts/frontend/{flow-docs-gen-phase-7.md → flow-bootstrap-phase-7.md} +225 -200
  18. package/prompts/frontend/flow-bootstrap-phase-8.md +670 -0
  19. package/prompts/frontend/{flow-docs-gen.md → flow-bootstrap.md} +47 -20
  20. package/prompts/frontend/flow-docs-sync.md +2 -1
  21. package/prompts/mobile/{flow-docs-gen-phase-0.md → flow-bootstrap-phase-0.md} +2 -1
  22. package/prompts/mobile/{flow-docs-gen-phase-1.md → flow-bootstrap-phase-1.md} +2 -1
  23. package/prompts/mobile/{flow-docs-gen-phase-2.md → flow-bootstrap-phase-2.md} +2 -1
  24. package/prompts/mobile/{flow-docs-gen-phase-3.md → flow-bootstrap-phase-3.md} +2 -1
  25. package/prompts/mobile/{flow-docs-gen-phase-4.md → flow-bootstrap-phase-4.md} +2 -1
  26. package/prompts/mobile/{flow-docs-gen-phase-5.md → flow-bootstrap-phase-5.md} +2 -1
  27. package/prompts/mobile/{flow-docs-gen-phase-6.md → flow-bootstrap-phase-6.md} +2 -1
  28. package/prompts/mobile/{flow-docs-gen-phase-7.md → flow-bootstrap-phase-7.md} +174 -132
  29. package/prompts/mobile/flow-bootstrap-phase-8.md +676 -0
  30. package/prompts/mobile/{flow-docs-gen.md → flow-bootstrap.md} +47 -20
  31. package/prompts/mobile/flow-docs-sync.md +2 -1
  32. package/prompts/backend/flow-project-init.md +0 -248
  33. /package/prompts/backend/{flow-docs-gen-phase-0.md → flow-bootstrap-phase-0.md} +0 -0
  34. /package/prompts/backend/{flow-docs-gen-phase-1.md → flow-bootstrap-phase-1.md} +0 -0
  35. /package/prompts/backend/{flow-docs-gen-phase-2.md → flow-bootstrap-phase-2.md} +0 -0
  36. /package/prompts/backend/{flow-docs-gen-phase-3.md → flow-bootstrap-phase-3.md} +0 -0
  37. /package/prompts/backend/{flow-docs-gen-phase-4.md → flow-bootstrap-phase-4.md} +0 -0
  38. /package/prompts/backend/{flow-docs-gen-phase-5.md → flow-bootstrap-phase-5.md} +0 -0
  39. /package/prompts/backend/{flow-docs-gen-phase-6.md → flow-bootstrap-phase-6.md} +0 -0
  40. /package/prompts/frontend/{flow-docs-gen-phase-2.md → flow-bootstrap-phase-2.md} +0 -0
@@ -41,21 +41,22 @@ This documentation is **modularized** for better maintainability and performance
41
41
 
42
42
  Execute phases sequentially by reading each file in order:
43
43
 
44
- 1. **Phase 0 (Optional - Existing Projects Only):** Read `.ai-flow/prompts/frontend/flow-docs-gen-phase-0-context.md`
45
- 2. **Phase 1 (Discovery & UX):** Read `.ai-flow/prompts/frontend/flow-docs-gen-phase-1-discovery.md`
46
- 3. **Phase 2 (Components & Framework):** Read `.ai-flow/prompts/frontend/flow-docs-gen-phase-2-components.md`
47
- 4. **Phase 3 (State Management):** Read `.ai-flow/prompts/frontend/flow-docs-gen-phase-3-state.md`
48
- 5. **Phase 4 (Styling & Design):** Read `.ai-flow/prompts/frontend/flow-docs-gen-phase-4-styling.md`
49
- 6. **Phase 5 (Code Standards):** Read `.ai-flow/prompts/frontend/flow-docs-gen-phase-5-standards.md`
50
- 7. **Phase 6 (Testing Strategy):** Read `.ai-flow/prompts/frontend/flow-docs-gen-phase-6-testing.md`
51
- 8. **Phase 7 (Performance & Deployment):** Read `.ai-flow/prompts/frontend/flow-docs-gen-phase-7-deployment.md`
44
+ 1. **Phase 0 (Optional - Existing Projects Only):** Read `.ai-flow/prompts/frontend/flow-bootstrap-phase-0-context.md`
45
+ 2. **Phase 1 (Discovery & UX):** Read `.ai-flow/prompts/frontend/flow-bootstrap-phase-1-discovery.md`
46
+ 3. **Phase 2 (Components & Framework):** Read `.ai-flow/prompts/frontend/flow-bootstrap-phase-2-components.md`
47
+ 4. **Phase 3 (State Management):** Read `.ai-flow/prompts/frontend/flow-bootstrap-phase-3-state.md`
48
+ 5. **Phase 4 (Styling & Design):** Read `.ai-flow/prompts/frontend/flow-bootstrap-phase-4-styling.md`
49
+ 6. **Phase 5 (Code Standards):** Read `.ai-flow/prompts/frontend/flow-bootstrap-phase-5-standards.md`
50
+ 7. **Phase 6 (Testing Strategy):** Read `.ai-flow/prompts/frontend/flow-bootstrap-phase-6-testing.md`
51
+ 8. **Phase 7 (Performance & Deployment):** Read `.ai-flow/prompts/frontend/flow-bootstrap-phase-7-deployment.md`
52
+ 9. **Phase 8 (Project Setup & Final Documentation):** Read `.ai-flow/prompts/frontend/flow-bootstrap-phase-8.md`
52
53
 
53
54
  ### For Individual Phases
54
55
 
55
56
  You can execute any phase independently by reading its file. For example:
56
57
 
57
58
  ```
58
- Read .ai-flow/prompts/frontend/flow-docs-gen-phase-3-state.md and execute only Phase 3
59
+ Read .ai-flow/prompts/frontend/flow-bootstrap-phase-3-state.md and execute only Phase 3
59
60
  ```
60
61
 
61
62
  ---
@@ -64,7 +65,7 @@ Read .ai-flow/prompts/frontend/flow-docs-gen-phase-3-state.md and execute only P
64
65
 
65
66
  ### Phase 0: Context Discovery (Optional)
66
67
 
67
- **File:** `frontend/flow-docs-gen-phase-0-context.md`
68
+ **File:** `frontend/flow-bootstrap-phase-0-context.md`
68
69
  **For:** Existing projects with code/documentation
69
70
  **Duration:** 1-5 minutes (automated analysis)
70
71
  **Output:** Pre-populated answers, project analysis
@@ -84,7 +85,7 @@ Read .ai-flow/prompts/frontend/flow-docs-gen-phase-3-state.md and execute only P
84
85
 
85
86
  ### Phase 1: Discovery & UX Requirements
86
87
 
87
- **File:** `frontend/flow-docs-gen-phase-1-discovery.md`
88
+ **File:** `frontend/flow-bootstrap-phase-1-discovery.md`
88
89
  **Duration:** 15-20 minutes
89
90
  **Key Questions:**
90
91
 
@@ -102,7 +103,7 @@ Read .ai-flow/prompts/frontend/flow-docs-gen-phase-3-state.md and execute only P
102
103
 
103
104
  ### Phase 2: Components & Framework
104
105
 
105
- **File:** `frontend/flow-docs-gen-phase-2-components.md`
106
+ **File:** `frontend/flow-bootstrap-phase-2-components.md`
106
107
  **Duration:** 15-20 minutes
107
108
  **Key Questions:**
108
109
 
@@ -121,7 +122,7 @@ Read .ai-flow/prompts/frontend/flow-docs-gen-phase-3-state.md and execute only P
121
122
 
122
123
  ### Phase 3: State Management
123
124
 
124
- **File:** `frontend/flow-docs-gen-phase-3-state.md`
125
+ **File:** `frontend/flow-bootstrap-phase-3-state.md`
125
126
  **Duration:** 15-20 minutes
126
127
  **Key Questions:**
127
128
 
@@ -139,7 +140,7 @@ Read .ai-flow/prompts/frontend/flow-docs-gen-phase-3-state.md and execute only P
139
140
 
140
141
  ### Phase 4: Styling & Design System
141
142
 
142
- **File:** `frontend/flow-docs-gen-phase-4-styling.md`
143
+ **File:** `frontend/flow-bootstrap-phase-4-styling.md`
143
144
  **Duration:** 15-20 minutes
144
145
  **Key Questions:**
145
146
 
@@ -157,7 +158,7 @@ Read .ai-flow/prompts/frontend/flow-docs-gen-phase-3-state.md and execute only P
157
158
 
158
159
  ### Phase 5: Code Standards & Best Practices
159
160
 
160
- **File:** `frontend/flow-docs-gen-phase-5-standards.md`
161
+ **File:** `frontend/flow-bootstrap-phase-5-standards.md`
161
162
  **Duration:** 15-20 minutes
162
163
  **Key Questions:**
163
164
 
@@ -175,7 +176,7 @@ Read .ai-flow/prompts/frontend/flow-docs-gen-phase-3-state.md and execute only P
175
176
 
176
177
  ### Phase 6: Testing Strategy
177
178
 
178
- **File:** `frontend/flow-docs-gen-phase-6-testing.md`
179
+ **File:** `frontend/flow-bootstrap-phase-6-testing.md`
179
180
  **Duration:** 15-25 minutes
180
181
  **Key Questions:**
181
182
 
@@ -193,7 +194,7 @@ Read .ai-flow/prompts/frontend/flow-docs-gen-phase-3-state.md and execute only P
193
194
 
194
195
  ### Phase 7: Performance & Deployment
195
196
 
196
- **File:** `frontend/flow-docs-gen-phase-7-deployment.md`
197
+ **File:** `frontend/flow-bootstrap-phase-7-deployment.md`
197
198
  **Duration:** 10-15 minutes
198
199
  **Key Questions:**
199
200
 
@@ -207,7 +208,32 @@ Read .ai-flow/prompts/frontend/flow-docs-gen-phase-3-state.md and execute only P
207
208
  - `docs/performance.md`
208
209
  - `docs/operations.md`
209
210
  - `specs/configuration.md`
210
- - Parts of `ai-instructions.md`
211
+ - `.env.example`
212
+
213
+ **Next:** Transitions to Phase 8 for project setup and final documentation
214
+
215
+ ---
216
+
217
+ ### Phase 8: Project Setup & Final Documentation
218
+
219
+ **File:** `frontend/flow-bootstrap-phase-8.md`
220
+ **Duration:** 10-15 minutes
221
+ **Key Steps:**
222
+
223
+ - Detect project state (new vs existing)
224
+ - Initialize framework (optional, for new projects)
225
+ - Generate final documentation
226
+ - Create master index (AGENT.md)
227
+ - Generate README.md with intelligent merge
228
+
229
+ **Generates:**
230
+
231
+ - `docs/components-guide.md`
232
+ - `docs/state-management.md`
233
+ - `docs/contributing.md`
234
+ - `AGENT.md` (master index)
235
+ - `README.md`
236
+ - Tool-specific configs (`.clauderules`, `.cursorrules`, `.github/copilot-instructions.md`)
211
237
 
212
238
  ---
213
239
 
@@ -396,13 +422,13 @@ To begin the complete frontend bootstrap process:
396
422
  **Ready to start?** Proceed to Phase 1 by reading:
397
423
 
398
424
  ```
399
- .ai-flow/prompts/frontend/flow-docs-gen-phase-1-discovery.md
425
+ .ai-flow/prompts/frontend/flow-bootstrap-phase-1-discovery.md
400
426
  ```
401
427
 
402
428
  Or if you have existing code, start with Phase 0 for automatic detection:
403
429
 
404
430
  ```
405
- .ai-flow/prompts/frontend/flow-docs-gen-phase-0-context.md
431
+ .ai-flow/prompts/frontend/flow-bootstrap-phase-0-context.md
406
432
  ```
407
433
 
408
434
  ---
@@ -410,4 +436,5 @@ Or if you have existing code, start with Phase 0 for automatic detection:
410
436
  **Last Updated:** 2025-01-XX
411
437
 
412
438
  **Version:** 1.2.0 (Frontend MVP)
439
+
413
440
 
@@ -34,7 +34,7 @@ First, check if `.ai-flow/analysis.json` exists:
34
34
 
35
35
  1. **Perform Current Code Analysis:**
36
36
 
37
- - Execute the same analysis as Phase 0 (frontend/flow-docs-gen-phase-0-context.md):
37
+ - Execute the same analysis as Phase 0 (frontend/flow-bootstrap-phase-0-context.md):
38
38
  - File structure analysis
39
39
  - Component detection and analysis
40
40
  - State management pattern detection
@@ -559,3 +559,4 @@ Documentation synchronized successfully.
559
559
  **BEGIN EXECUTION when user runs `/flow-docs-sync`**
560
560
 
561
561
 
562
+
@@ -375,7 +375,7 @@ After Phase 0 completes:
375
375
 
376
376
  Next: Proceed to Phase 1 (Platform & Framework Selection)
377
377
 
378
- Read: .ai-flow/prompts/mobile/flow-docs-gen-phase-1-platform.md
378
+ Read: .ai-flow/prompts/mobile/flow-bootstrap-phase-1-platform.md
379
379
  ```
380
380
 
381
381
  ---
@@ -385,3 +385,4 @@ Read: .ai-flow/prompts/mobile/flow-docs-gen-phase-1-platform.md
385
385
  **Version:** 1.4.0
386
386
 
387
387
 
388
+
@@ -519,7 +519,7 @@ After Phase 1, generate/update:
519
519
 
520
520
  **Next Phase:** Phase 2 - Navigation & Architecture
521
521
 
522
- Read: `.ai-flow/prompts/mobile/flow-docs-gen-phase-2-navigation.md`
522
+ Read: `.ai-flow/prompts/mobile/flow-bootstrap-phase-2-navigation.md`
523
523
 
524
524
  ---
525
525
 
@@ -528,3 +528,4 @@ Read: `.ai-flow/prompts/mobile/flow-docs-gen-phase-2-navigation.md`
528
528
  **Version:** 1.4.0
529
529
 
530
530
 
531
+
@@ -573,7 +573,7 @@ After Phase 2, generate/update:
573
573
 
574
574
  **Next Phase:** Phase 3 - State & Data Management
575
575
 
576
- Read: `.ai-flow/prompts/mobile/flow-docs-gen-phase-3-state.md`
576
+ Read: `.ai-flow/prompts/mobile/flow-bootstrap-phase-3-state.md`
577
577
 
578
578
  ---
579
579
 
@@ -582,3 +582,4 @@ Read: `.ai-flow/prompts/mobile/flow-docs-gen-phase-3-state.md`
582
582
  **Version:** 1.4.0
583
583
 
584
584
 
585
+
@@ -648,7 +648,7 @@ After Phase 3, generate/update:
648
648
 
649
649
  **Next Phase:** Phase 4 - Permissions & Native Features
650
650
 
651
- Read: `.ai-flow/prompts/mobile/flow-docs-gen-phase-4-permissions.md`
651
+ Read: `.ai-flow/prompts/mobile/flow-bootstrap-phase-4-permissions.md`
652
652
 
653
653
  ---
654
654
 
@@ -657,3 +657,4 @@ Read: `.ai-flow/prompts/mobile/flow-docs-gen-phase-4-permissions.md`
657
657
  **Version:** 1.4.0
658
658
 
659
659
 
660
+
@@ -352,7 +352,7 @@ After Phase 4, generate/update:
352
352
 
353
353
  **Next Phase:** Phase 5 - Code Standards
354
354
 
355
- Read: `.ai-flow/prompts/mobile/flow-docs-gen-phase-5-standards.md`
355
+ Read: `.ai-flow/prompts/mobile/flow-bootstrap-phase-5-standards.md`
356
356
 
357
357
  ---
358
358
 
@@ -361,3 +361,4 @@ Read: `.ai-flow/prompts/mobile/flow-docs-gen-phase-5-standards.md`
361
361
  **Version:** 1.4.0
362
362
 
363
363
 
364
+
@@ -358,7 +358,7 @@ After Phase 5, generate/update:
358
358
 
359
359
  **Next Phase:** Phase 6 - Testing Strategy
360
360
 
361
- Read: `.ai-flow/prompts/mobile/flow-docs-gen-phase-6-testing.md`
361
+ Read: `.ai-flow/prompts/mobile/flow-bootstrap-phase-6-testing.md`
362
362
 
363
363
  ---
364
364
 
@@ -367,3 +367,4 @@ Read: `.ai-flow/prompts/mobile/flow-docs-gen-phase-6-testing.md`
367
367
  **Version:** 1.4.0
368
368
 
369
369
 
370
+
@@ -479,7 +479,7 @@ After Phase 6, generate/update:
479
479
 
480
480
  **Next Phase:** Phase 7 - Store Deployment
481
481
 
482
- Read: `.ai-flow/prompts/mobile/flow-docs-gen-phase-7-deployment.md`
482
+ Read: `.ai-flow/prompts/mobile/flow-bootstrap-phase-7-deployment.md`
483
483
 
484
484
  ---
485
485
 
@@ -488,3 +488,4 @@ Read: `.ai-flow/prompts/mobile/flow-docs-gen-phase-7-deployment.md`
488
488
  **Version:** 1.4.0
489
489
 
490
490
 
491
+