ai-flow-dev 2.1.3 → 2.1.4

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 (96) hide show
  1. package/README.md +25 -38
  2. package/dist/cli.js +68 -46
  3. package/dist/cli.js.map +1 -1
  4. package/package.json +5 -5
  5. package/prompts/backend/flow-build-phase-0.md +31 -63
  6. package/prompts/backend/flow-build-phase-1.md +9 -17
  7. package/prompts/backend/flow-build-phase-10.md +199 -585
  8. package/prompts/backend/flow-build-phase-2.md +152 -86
  9. package/prompts/backend/flow-build-phase-3.md +108 -68
  10. package/prompts/backend/flow-build-phase-4.md +5 -8
  11. package/prompts/backend/flow-build-phase-5.md +39 -12
  12. package/prompts/backend/flow-build-phase-6.md +29 -8
  13. package/prompts/backend/flow-build-phase-7.md +120 -40
  14. package/prompts/backend/flow-build-phase-8.md +28 -65
  15. package/prompts/backend/flow-build-phase-9.md +267 -1298
  16. package/prompts/backend/flow-build.md +881 -957
  17. package/prompts/backend/flow-dev-commit.md +27 -50
  18. package/prompts/backend/flow-dev-feature.md +1929 -2017
  19. package/prompts/backend/flow-dev-fix.md +936 -964
  20. package/prompts/backend/flow-dev-refactor.md +672 -701
  21. package/prompts/backend/flow-dev-review.md +356 -389
  22. package/prompts/backend/flow-dev-work.md +1066 -1118
  23. package/prompts/backend/flow-docs-sync.md +20 -196
  24. package/prompts/frontend/flow-build-phase-0.md +503 -484
  25. package/prompts/frontend/flow-build-phase-1.md +445 -433
  26. package/prompts/frontend/flow-build-phase-2.md +910 -957
  27. package/prompts/frontend/flow-build-phase-3.md +692 -664
  28. package/prompts/frontend/flow-build-phase-4.md +478 -463
  29. package/prompts/frontend/flow-build-phase-5.md +488 -467
  30. package/prompts/frontend/flow-build-phase-6.md +571 -550
  31. package/prompts/frontend/flow-build-phase-7.md +560 -592
  32. package/prompts/frontend/flow-build-phase-8.md +17 -42
  33. package/prompts/frontend/flow-build.md +457 -503
  34. package/prompts/frontend/flow-docs-sync.md +14 -35
  35. package/prompts/mobile/flow-build-phase-0.md +104 -97
  36. package/prompts/mobile/flow-build-phase-1.md +137 -122
  37. package/prompts/mobile/flow-build-phase-2.md +123 -130
  38. package/prompts/mobile/flow-build-phase-3.md +144 -149
  39. package/prompts/mobile/flow-build-phase-4.md +140 -132
  40. package/prompts/mobile/flow-build-phase-5.md +70 -70
  41. package/prompts/mobile/flow-build-phase-6.md +136 -134
  42. package/prompts/mobile/flow-build-phase-7.md +24 -58
  43. package/prompts/mobile/flow-build-phase-8.md +17 -42
  44. package/prompts/mobile/flow-build.md +47 -97
  45. package/prompts/mobile/flow-docs-sync.md +13 -32
  46. package/prompts/shared/mermaid-guidelines.md +106 -0
  47. package/prompts/shared/scope-levels.md +126 -0
  48. package/prompts/shared/story-points.md +65 -0
  49. package/prompts/shared/task-format.md +86 -0
  50. package/templates/AGENT.template.md +194 -15
  51. package/templates/backend/README.template.md +2 -32
  52. package/templates/backend/ai-instructions.template.md +2 -32
  53. package/templates/backend/copilot-instructions.template.md +2 -22
  54. package/templates/backend/docs/api.template.md +89 -20
  55. package/templates/backend/docs/architecture.template.md +165 -53
  56. package/templates/backend/docs/business-flows.template.md +7 -14
  57. package/templates/backend/docs/code-standards.template.md +2 -38
  58. package/templates/backend/docs/contributing.template.md +2 -16
  59. package/templates/backend/docs/data-model.template.md +125 -21
  60. package/templates/backend/docs/operations.template.md +179 -50
  61. package/templates/backend/docs/testing.template.md +2 -42
  62. package/templates/backend/project-brief.template.md +2 -28
  63. package/templates/backend/specs/configuration.template.md +2 -14
  64. package/templates/backend/specs/security.template.md +2 -32
  65. package/templates/frontend/README.template.md +2 -18
  66. package/templates/frontend/ai-instructions.template.md +2 -20
  67. package/templates/frontend/docs/api-integration.template.md +12 -30
  68. package/templates/frontend/docs/components.template.md +2 -28
  69. package/templates/frontend/docs/error-handling.template.md +11 -27
  70. package/templates/frontend/docs/operations.template.md +8 -18
  71. package/templates/frontend/docs/performance.template.md +8 -18
  72. package/templates/frontend/docs/pwa.template.md +8 -18
  73. package/templates/frontend/docs/state-management.template.md +2 -28
  74. package/templates/frontend/docs/styling.template.md +2 -26
  75. package/templates/frontend/docs/testing.template.md +2 -28
  76. package/templates/frontend/project-brief.template.md +2 -16
  77. package/templates/frontend/specs/accessibility.template.md +8 -18
  78. package/templates/frontend/specs/configuration.template.md +2 -24
  79. package/templates/frontend/specs/security.template.md +10 -24
  80. package/templates/fullstack/README.template.md +17 -47
  81. package/templates/fullstack/ai-instructions.template.md +17 -45
  82. package/templates/fullstack/project-brief.template.md +16 -42
  83. package/templates/fullstack/specs/configuration.template.md +16 -42
  84. package/templates/mobile/README.template.md +11 -29
  85. package/templates/mobile/ai-instructions.template.md +11 -27
  86. package/templates/mobile/docs/app-store.template.md +11 -29
  87. package/templates/mobile/docs/architecture.template.md +14 -38
  88. package/templates/mobile/docs/native-features.template.md +16 -44
  89. package/templates/mobile/docs/navigation.template.md +9 -23
  90. package/templates/mobile/docs/offline-strategy.template.md +10 -26
  91. package/templates/mobile/docs/permissions.template.md +9 -23
  92. package/templates/mobile/docs/state-management.template.md +12 -32
  93. package/templates/mobile/docs/testing.template.md +14 -38
  94. package/templates/mobile/project-brief.template.md +12 -30
  95. package/templates/mobile/specs/build-configuration.template.md +10 -26
  96. package/templates/mobile/specs/deployment.template.md +9 -23
@@ -12,14 +12,13 @@
12
12
 
13
13
  **Base URL(s):**
14
14
  {{#EACH API_BASE_URL}}
15
+
15
16
  - {{ENVIRONMENT}}: `{{URL}}`
16
- {{/EACH}}
17
+ {{/EACH}}
17
18
 
18
19
  **Versioning Strategy:** {{API_VERSIONING_STRATEGY}}
19
20
 
20
- **Default Content Type:** `{{DEFAULT_CONTENT_TYPE}}`
21
-
22
- ---
21
+ ## **Default Content Type:** `{{DEFAULT_CONTENT_TYPE}}`
23
22
 
24
23
  ## 🔐 Authentication & Authorization
25
24
 
@@ -28,11 +27,13 @@
28
27
  **Mechanism:** {{AUTH_MECHANISM}}
29
28
 
30
29
  **Token/Session Flow:**
30
+
31
31
  ```
32
32
  {{AUTH_FLOW_DIAGRAM}}
33
33
  ```
34
34
 
35
35
  **Token Structure:**
36
+
36
37
  ```json
37
38
  {{AUTH_TOKEN_EXAMPLE}}
38
39
  ```
@@ -57,7 +58,8 @@
57
58
  ### Headers
58
59
 
59
60
  | Header | Required | Description |
60
- |--------|----------|-------------|
61
+ | ------ | -------- | ----------- |
62
+
61
63
  {{#EACH REQUEST_HEADER}}
62
64
  | `{{HEADER_NAME}}` | {{IS_REQUIRED}} | {{HEADER_DESCRIPTION}} |
63
65
  {{/EACH}}
@@ -78,8 +80,9 @@
78
80
  ### Validation Rules
79
81
 
80
82
  {{#EACH VALIDATION_RULE}}
83
+
81
84
  - {{RULE_DESCRIPTION}}
82
- {{/EACH}}
85
+ {{/EACH}}
83
86
 
84
87
  ---
85
88
 
@@ -92,7 +95,8 @@
92
95
  ### Envelope Structure
93
96
 
94
97
  | Field | Description |
95
- |-------|-------------|
98
+ | ----- | ----------- |
99
+
96
100
  {{#EACH RESPONSE_FIELD}}
97
101
  | `{{FIELD_NAME}}` | {{FIELD_DESCRIPTION}} |
98
102
  {{/EACH}}
@@ -111,21 +115,74 @@
111
115
  {{ERROR_RESPONSE_EXAMPLE}}
112
116
  ```
113
117
 
114
- | HTTP Code | Error Code | Message | Description |
115
- |-----------|------------|---------|-------------|
116
- {{#EACH ERROR_MAPPING}}
117
- | {{HTTP_CODE}} | `{{ERROR_CODE}}` | {{ERROR_MESSAGE}} | {{ERROR_DESCRIPTION}} |
118
+ ### Error Codes Catalog
119
+
120
+ | Code | HTTP | Message | Resolution |
121
+ | ---- | ---- | ------- | ---------- |
122
+
123
+ {{#EACH ERROR_CODE}}
124
+ | `{{CODE}}` | {{HTTP_STATUS}} | {{MESSAGE}} | {{RESOLUTION}} |
118
125
  {{/EACH}}
119
126
 
127
+ ### Error Categories
128
+
129
+ | Category | Code Range | Description |
130
+ | -------------- | -------------- | ----------------------------------- |
131
+ | Validation | `VALIDATION_*` | Input validation failures |
132
+ | Authentication | `AUTH_*` | Authentication/authorization errors |
133
+ | Resource | `RESOURCE_*` | Resource not found, conflict errors |
134
+ | Business | `BIZ_*` | Business rule violations |
135
+ | System | `SYS_*` | Internal system errors |
136
+
120
137
  **Retry Policy:** {{RETRY_POLICY}}
121
138
 
122
139
  **Idempotency:** {{IDEMPOTENCY_POLICY}}
123
140
 
141
+ ### Idempotency Keys
142
+
143
+ **Header:** `{{IDEMPOTENCY_HEADER}}`
144
+ **Storage:** {{IDEMPOTENCY_STORAGE}}
145
+ **TTL:** {{IDEMPOTENCY_TTL}}
146
+
147
+ **Endpoints requiring idempotency:**
148
+ {{#EACH IDEMPOTENT_ENDPOINT}}
149
+
150
+ - `{{METHOD}} {{PATH}}` - {{DESCRIPTION}}
151
+ {{/EACH}}
152
+
153
+ ---
154
+
155
+ ## 📐 Validation Rules Catalog
156
+
157
+ ### Global Field Validation
158
+
159
+ | Field Type | Rules | Error Message |
160
+ | ---------- | ----- | ------------- |
161
+
162
+ {{#EACH VALIDATION_FIELD_TYPE}}
163
+ | `{{TYPE}}` | {{RULES}} | {{ERROR_MESSAGE}} |
164
+ {{/EACH}}
165
+
166
+ ### Entity-Specific Validation
167
+
168
+ {{#EACH ENTITY_VALIDATION}}
169
+
170
+ #### {{ENTITY_NAME}}
171
+
172
+ | Field | Rules | Required |
173
+ | ----- | ----- | -------- |
174
+
175
+ {{#EACH FIELD}}
176
+ | `{{NAME}}` | {{RULES}} | {{REQUIRED}} |
177
+ {{/EACH}}
178
+ {{/EACH}}
179
+
124
180
  ---
125
181
 
126
182
  ## 📚 Resource Catalogue
127
183
 
128
184
  {{#EACH RESOURCE}}
185
+
129
186
  ### {{RESOURCE_NAME}}
130
187
 
131
188
  **Base Path:** `{{RESOURCE_BASE_PATH}}`
@@ -135,7 +192,8 @@
135
192
  #### Standard Endpoints
136
193
 
137
194
  | Method | Path | Auth | Description |
138
- |--------|------|------|-------------|
195
+ | ------ | ---- | ---- | ----------- |
196
+
139
197
  {{#EACH RESOURCE_ENDPOINT}}
140
198
  | {{METHOD}} | `{{PATH}}` | {{AUTH_REQUIRED}} | {{ENDPOINT_DESCRIPTION}} |
141
199
  {{/EACH}}
@@ -153,46 +211,57 @@
153
211
  ```
154
212
 
155
213
  #### Business Rules
214
+
156
215
  {{#EACH RESOURCE_RULE}}
216
+
157
217
  - {{RULE_DESCRIPTION}}
158
- {{/EACH}}
218
+ {{/EACH}}
159
219
 
160
220
  #### Related Entities
221
+
161
222
  {{#EACH RESOURCE_RELATION}}
223
+
162
224
  - {{RELATION_DESCRIPTION}}
163
- {{/EACH}}
225
+ {{/EACH}}
164
226
 
165
227
  ---
228
+
166
229
  {{/EACH}}
167
230
 
168
231
  ## ⚙️ Custom Endpoints & Actions
169
232
 
170
233
  {{#EACH CUSTOM_ENDPOINT}}
234
+
171
235
  ### {{ENDPOINT_NAME}}
172
236
 
173
237
  - **Method:** {{METHOD}}
174
238
  - **URL:** `{{URL}}`
175
239
  - **Purpose:** {{PURPOSE}}
176
240
  - **Request Schema:**
241
+
177
242
  ```json
178
243
  {{REQUEST_SCHEMA}}
179
244
  ```
245
+
180
246
  - **Response Schema:**
247
+
181
248
  ```json
182
249
  {{RESPONSE_SCHEMA}}
183
250
  ```
251
+
184
252
  - **Special Considerations:** {{CONSIDERATIONS}}
185
253
 
186
254
  ---
255
+
187
256
  {{/EACH}}
188
257
 
189
258
  ## 📈 Rate Limiting
190
259
 
191
260
  - **Strategy:** {{RATE_LIMIT_STRATEGY}}
192
261
  - **Limits:**
193
- {{#EACH RATE_LIMIT}}
262
+ {{#EACH RATE_LIMIT}}
194
263
  - {{LIMIT_SCOPE}}: {{LIMIT_VALUE}} requests per {{LIMIT_WINDOW}}
195
- {{/EACH}}
264
+ {{/EACH}}
196
265
  - **Headers:** `{{RATE_LIMIT_HEADERS}}`
197
266
 
198
267
  ---
@@ -204,7 +273,7 @@
204
273
  - **Contract Tests:** {{CONTRACT_TESTS_STATUS}}
205
274
 
206
275
  ```yaml
207
- {{OPENAPI_SNIPPET}}
276
+ { { OPENAPI_SNIPPET } }
208
277
  ```
209
278
 
210
279
  ---
@@ -230,19 +299,19 @@
230
299
  ## 🔧 Tooling & Integration Guides
231
300
 
232
301
  {{#EACH SDK}}
302
+
233
303
  ### {{SDK_NAME}} SDK
234
304
 
235
305
  - **Language:** {{SDK_LANGUAGE}}
236
306
  - **Package:** `{{SDK_PACKAGE}}`
237
307
  - **Installation:** `{{SDK_INSTALL_COMMAND}}`
238
308
  - **Usage Example:**
309
+
239
310
  ```{{SDK_LANGUAGE}}
240
311
  {{SDK_USAGE_EXAMPLE}}
241
312
  ```
242
313
 
243
- {{/EACH}}
244
-
245
- ---
314
+ ## {{/EACH}}
246
315
 
247
316
  **Document Version:** 1.0
248
317