proagents 1.6.17 → 1.6.19

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 (185) hide show
  1. package/.claude/settings.local.json +169 -0
  2. package/.proagents/AGENTS.md +2 -0
  3. package/.proagents/AI_INSTRUCTIONS.md +13 -0
  4. package/.proagents/ANTIGRAVITY.md +2 -0
  5. package/.proagents/BOLT.md +2 -0
  6. package/.proagents/CHATGPT.md +2 -0
  7. package/.proagents/CLAUDE.md +2 -0
  8. package/.proagents/GEMINI.md +2 -0
  9. package/.proagents/GROQ.md +2 -0
  10. package/.proagents/KIRO.md +2 -0
  11. package/.proagents/LOVABLE.md +2 -0
  12. package/.proagents/PROAGENTS.md +2 -0
  13. package/.proagents/REPLIT.md +2 -0
  14. package/.proagents/prompts/00-project-setup.md +878 -0
  15. package/.proagents/prompts/04-planning.md +38 -0
  16. package/.proagents/prompts/12-rnd.md +957 -0
  17. package/.proagents/workflow-modes/entry-modes.md +27 -0
  18. package/.proagents/worklog/_context.template.md +47 -0
  19. package/COMMANDS.md +654 -0
  20. package/README.md +16 -24
  21. package/package.json +2 -7
  22. package/.proagents/ai-models/README.md +0 -141
  23. package/.proagents/ai-models/cost-management.md +0 -362
  24. package/.proagents/ai-models/fallbacks.md +0 -342
  25. package/.proagents/ai-models/model-config.md +0 -318
  26. package/.proagents/ai-models/task-routing.md +0 -503
  27. package/.proagents/ai-training/README.md +0 -155
  28. package/.proagents/ai-training/continuous-learning.md +0 -413
  29. package/.proagents/ai-training/domain-knowledge.md +0 -378
  30. package/.proagents/ai-training/pattern-learning.md +0 -455
  31. package/.proagents/ai-training/training-data.md +0 -337
  32. package/.proagents/ai-training/user-preferences.md +0 -346
  33. package/.proagents/approval-workflows/README.md +0 -146
  34. package/.proagents/approval-workflows/approval-config.md +0 -332
  35. package/.proagents/approval-workflows/approval-stages.md +0 -503
  36. package/.proagents/approval-workflows/emergency-bypass.md +0 -351
  37. package/.proagents/approval-workflows/examples.md +0 -859
  38. package/.proagents/approval-workflows/notifications.md +0 -320
  39. package/.proagents/compliance/README.md +0 -206
  40. package/.proagents/compliance/access-control.md +0 -310
  41. package/.proagents/compliance/audit-logging.md +0 -444
  42. package/.proagents/compliance/compliance-frameworks.md +0 -429
  43. package/.proagents/compliance/reports.md +0 -491
  44. package/.proagents/compliance/retention-policies.md +0 -454
  45. package/.proagents/config-versioning/README.md +0 -120
  46. package/.proagents/config-versioning/changelog.md +0 -300
  47. package/.proagents/config-versioning/rollback.md +0 -283
  48. package/.proagents/config-versioning/versioning.md +0 -330
  49. package/.proagents/contract-testing/README.md +0 -223
  50. package/.proagents/contract-testing/contract-testing.md +0 -614
  51. package/.proagents/contract-testing/pact-integration.md +0 -507
  52. package/.proagents/contract-testing/schema-validation.md +0 -565
  53. package/.proagents/dependency-management/README.md +0 -140
  54. package/.proagents/dependency-management/automation.md +0 -363
  55. package/.proagents/dependency-management/compatibility.md +0 -319
  56. package/.proagents/dependency-management/security-scanning.md +0 -413
  57. package/.proagents/dependency-management/update-policies.md +0 -374
  58. package/.proagents/disaster-recovery/README.md +0 -247
  59. package/.proagents/disaster-recovery/automation.md +0 -366
  60. package/.proagents/disaster-recovery/backup-recovery.md +0 -571
  61. package/.proagents/disaster-recovery/incident-response.md +0 -565
  62. package/.proagents/disaster-recovery/rollback-procedures.md +0 -499
  63. package/.proagents/disaster-recovery/runbooks.md +0 -603
  64. package/.proagents/disaster-recovery/scenarios.md +0 -892
  65. package/.proagents/disaster-recovery/testing.md +0 -438
  66. package/.proagents/environments/README.md +0 -244
  67. package/.proagents/environments/configuration.md +0 -437
  68. package/.proagents/environments/promotion.md +0 -434
  69. package/.proagents/environments/setup.md +0 -420
  70. package/.proagents/examples/README.md +0 -55
  71. package/.proagents/examples/backend-nodejs/README.md +0 -188
  72. package/.proagents/examples/backend-nodejs/complete-conversation.md +0 -601
  73. package/.proagents/examples/backend-nodejs/proagents.config.yaml +0 -415
  74. package/.proagents/examples/backend-nodejs/workflow-example.md +0 -909
  75. package/.proagents/examples/fullstack-nextjs/README.md +0 -155
  76. package/.proagents/examples/fullstack-nextjs/complete-conversation.md +0 -604
  77. package/.proagents/examples/fullstack-nextjs/proagents.config.yaml +0 -287
  78. package/.proagents/examples/fullstack-nextjs/workflow-example.md +0 -553
  79. package/.proagents/examples/mobile-react-native/README.md +0 -171
  80. package/.proagents/examples/mobile-react-native/complete-conversation.md +0 -825
  81. package/.proagents/examples/mobile-react-native/proagents.config.yaml +0 -330
  82. package/.proagents/examples/mobile-react-native/workflow-example.md +0 -723
  83. package/.proagents/examples/web-frontend-react/README.md +0 -125
  84. package/.proagents/examples/web-frontend-react/complete-conversation.md +0 -556
  85. package/.proagents/examples/web-frontend-react/proagents.config.yaml +0 -183
  86. package/.proagents/examples/web-frontend-react/workflow-example.md +0 -603
  87. package/.proagents/existing-projects/README.md +0 -65
  88. package/.proagents/existing-projects/challenges.md +0 -861
  89. package/.proagents/existing-projects/coexistence-mode.md +0 -483
  90. package/.proagents/existing-projects/compatibility-assessment.md +0 -541
  91. package/.proagents/existing-projects/gradual-adoption.md +0 -515
  92. package/.proagents/existing-projects/migration-strategies.md +0 -788
  93. package/.proagents/existing-projects/pattern-reconciliation.md +0 -489
  94. package/.proagents/existing-projects/team-onboarding.md +0 -617
  95. package/.proagents/existing-projects/technical-debt-handling.md +0 -644
  96. package/.proagents/feature-flags/README.md +0 -263
  97. package/.proagents/feature-flags/ab-testing.md +0 -413
  98. package/.proagents/feature-flags/configuration.md +0 -420
  99. package/.proagents/feature-flags/kill-switches.md +0 -444
  100. package/.proagents/feature-flags/rollout-strategies.md +0 -392
  101. package/.proagents/history.log +0 -12
  102. package/.proagents/i18n/README.md +0 -133
  103. package/.proagents/i18n/extraction.md +0 -433
  104. package/.proagents/i18n/tms-integration.md +0 -332
  105. package/.proagents/i18n/translation-workflow.md +0 -413
  106. package/.proagents/i18n/validation.md +0 -355
  107. package/.proagents/logging/README.md +0 -276
  108. package/.proagents/logging/aggregation.md +0 -475
  109. package/.proagents/logging/log-levels.md +0 -376
  110. package/.proagents/logging/sensitive-data.md +0 -423
  111. package/.proagents/logging/structured-logging.md +0 -406
  112. package/.proagents/metrics/README.md +0 -69
  113. package/.proagents/metrics/code-quality-kpis.md +0 -461
  114. package/.proagents/metrics/deployment-metrics.md +0 -517
  115. package/.proagents/metrics/developer-productivity.md +0 -368
  116. package/.proagents/metrics/learning-effectiveness.md +0 -478
  117. package/.proagents/migrations/README.md +0 -77
  118. package/.proagents/migrations/from-claude-projects.md +0 -313
  119. package/.proagents/migrations/from-cursor-rules.md +0 -345
  120. package/.proagents/migrations/from-custom-workflows.md +0 -410
  121. package/.proagents/monitoring/README.md +0 -308
  122. package/.proagents/monitoring/alerting.md +0 -449
  123. package/.proagents/monitoring/dashboards.md +0 -454
  124. package/.proagents/monitoring/health-checks.md +0 -436
  125. package/.proagents/monitoring/metrics.md +0 -434
  126. package/.proagents/multi-project/README.md +0 -170
  127. package/.proagents/multi-project/coordinated-deploy.md +0 -510
  128. package/.proagents/multi-project/cross-project-deps.md +0 -395
  129. package/.proagents/multi-project/unified-changelog.md +0 -477
  130. package/.proagents/multi-project/walkthroughs/monorepo-setup.md +0 -787
  131. package/.proagents/multi-project/workspace-config.md +0 -408
  132. package/.proagents/notifications/README.md +0 -151
  133. package/.proagents/notifications/channels.md +0 -457
  134. package/.proagents/notifications/preferences.md +0 -415
  135. package/.proagents/notifications/routing.md +0 -449
  136. package/.proagents/notifications/scheduling.md +0 -425
  137. package/.proagents/notifications/templates.md +0 -446
  138. package/.proagents/offline-mode/README.md +0 -145
  139. package/.proagents/offline-mode/caching.md +0 -344
  140. package/.proagents/offline-mode/offline-operations.md +0 -312
  141. package/.proagents/offline-mode/queue-specifications.md +0 -679
  142. package/.proagents/offline-mode/sync.md +0 -475
  143. package/.proagents/parallel-features/README.md +0 -85
  144. package/.proagents/parallel-features/conflict-detection.md +0 -226
  145. package/.proagents/parallel-features/dependency-management.md +0 -392
  146. package/.proagents/parallel-features/merge-coordination.md +0 -506
  147. package/.proagents/parallel-features/tracking-system.md +0 -416
  148. package/.proagents/performance/README.md +0 -59
  149. package/.proagents/performance/bundle-analysis.md +0 -375
  150. package/.proagents/performance/load-testing.md +0 -563
  151. package/.proagents/performance/runtime-metrics.md +0 -489
  152. package/.proagents/performance/web-vitals.md +0 -425
  153. package/.proagents/plugins/README.md +0 -139
  154. package/.proagents/plugins/creating-plugins.md +0 -504
  155. package/.proagents/plugins/plugin-api.md +0 -467
  156. package/.proagents/plugins/plugin-registry.md +0 -276
  157. package/.proagents/reporting/README.md +0 -158
  158. package/.proagents/reporting/dashboards.md +0 -366
  159. package/.proagents/reporting/exports.md +0 -524
  160. package/.proagents/reporting/quality-metrics.md +0 -385
  161. package/.proagents/reporting/templates/README.md +0 -56
  162. package/.proagents/reporting/templates/dashboard-config.json +0 -187
  163. package/.proagents/reporting/templates/metrics-queries.md +0 -427
  164. package/.proagents/reporting/templates/react-dashboard.tsx +0 -544
  165. package/.proagents/reporting/templates/widgets.md +0 -451
  166. package/.proagents/reporting/velocity-metrics.md +0 -340
  167. package/.proagents/reverse-engineering/README.md +0 -151
  168. package/.proagents/reverse-engineering/architecture-extraction.md +0 -325
  169. package/.proagents/reverse-engineering/code-analysis.md +0 -377
  170. package/.proagents/reverse-engineering/dependency-mapping.md +0 -567
  171. package/.proagents/reverse-engineering/diagram-generation.md +0 -586
  172. package/.proagents/reverse-engineering/documentation-generation.md +0 -468
  173. package/.proagents/reverse-engineering/pattern-detection.md +0 -569
  174. package/.proagents/reverse-engineering/quality-assessment.md +0 -733
  175. package/.proagents/secrets/README.md +0 -278
  176. package/.proagents/secrets/access-control.md +0 -443
  177. package/.proagents/secrets/rotation.md +0 -403
  178. package/.proagents/secrets/scanning.md +0 -487
  179. package/.proagents/secrets/storage.md +0 -394
  180. package/.proagents/webhooks/README.md +0 -126
  181. package/.proagents/webhooks/endpoints.md +0 -298
  182. package/.proagents/webhooks/events.md +0 -316
  183. package/.proagents/webhooks/payloads.md +0 -325
  184. package/.proagents/webhooks/reliability.md +0 -363
  185. package/.proagents/webhooks/security.md +0 -380
@@ -1,586 +0,0 @@
1
- # Diagram Generation
2
-
3
- Generate visual diagrams from existing code automatically.
4
-
5
- ---
6
-
7
- ## Overview
8
-
9
- Transform code into visual representations for:
10
- - Architecture understanding
11
- - Documentation
12
- - Team communication
13
- - Onboarding
14
-
15
- ---
16
-
17
- ## Diagram Types
18
-
19
- ### 1. Component Hierarchy Diagram
20
-
21
- Visualize React/Vue/Angular component relationships.
22
-
23
- ```mermaid
24
- graph TB
25
- subgraph Pages
26
- Dashboard[Dashboard Page]
27
- Profile[Profile Page]
28
- Settings[Settings Page]
29
- end
30
-
31
- subgraph Layout
32
- AppLayout[App Layout]
33
- Sidebar[Sidebar]
34
- Header[Header]
35
- end
36
-
37
- subgraph Shared
38
- Button[Button]
39
- Modal[Modal]
40
- Card[Card]
41
- end
42
-
43
- Dashboard --> AppLayout
44
- Dashboard --> Card
45
- Dashboard --> Button
46
-
47
- Profile --> AppLayout
48
- Profile --> Card
49
- Profile --> Modal
50
-
51
- AppLayout --> Sidebar
52
- AppLayout --> Header
53
- ```
54
-
55
- **Generated From:**
56
- ```yaml
57
- component_scan:
58
- entry: "src/pages/Dashboard.tsx"
59
-
60
- detected_hierarchy:
61
- Dashboard:
62
- imports:
63
- - AppLayout
64
- - Card
65
- - Button
66
- children:
67
- - StatsWidget
68
- - ActivityFeed
69
- - QuickActions
70
- ```
71
-
72
- ---
73
-
74
- ### 2. Module Dependency Diagram
75
-
76
- Show how modules depend on each other.
77
-
78
- ```mermaid
79
- graph LR
80
- subgraph Core
81
- Auth[Auth Module]
82
- User[User Module]
83
- API[API Module]
84
- end
85
-
86
- subgraph Features
87
- Dashboard[Dashboard]
88
- Settings[Settings]
89
- Notifications[Notifications]
90
- end
91
-
92
- subgraph Shared
93
- Utils[Utils]
94
- Types[Types]
95
- UI[UI Components]
96
- end
97
-
98
- Dashboard --> Auth
99
- Dashboard --> User
100
- Dashboard --> API
101
- Dashboard --> UI
102
-
103
- Settings --> User
104
- Settings --> UI
105
-
106
- Auth --> API
107
- Auth --> Utils
108
-
109
- User --> API
110
- User --> Types
111
-
112
- Notifications --> User
113
- Notifications --> API
114
- ```
115
-
116
- ---
117
-
118
- ### 3. Data Flow Diagram
119
-
120
- Visualize how data moves through the application.
121
-
122
- ```mermaid
123
- flowchart LR
124
- subgraph UI
125
- Component[React Component]
126
- Form[Form Input]
127
- end
128
-
129
- subgraph State
130
- Hook[Custom Hook]
131
- Store[Zustand Store]
132
- Query[React Query]
133
- end
134
-
135
- subgraph API
136
- Service[API Service]
137
- Endpoint[REST Endpoint]
138
- end
139
-
140
- subgraph Backend
141
- Handler[Route Handler]
142
- DB[(Database)]
143
- end
144
-
145
- Form -->|user input| Component
146
- Component -->|calls| Hook
147
- Hook -->|uses| Query
148
- Query -->|fetches via| Service
149
- Service -->|HTTP| Endpoint
150
- Endpoint -->|Next.js| Handler
151
- Handler -->|Prisma| DB
152
-
153
- DB -->|data| Handler
154
- Handler -->|JSON| Endpoint
155
- Endpoint -->|response| Service
156
- Service -->|cache| Query
157
- Query -->|data| Hook
158
- Hook -->|render| Component
159
- ```
160
-
161
- ---
162
-
163
- ### 4. Database Schema Diagram
164
-
165
- Generate ER diagrams from Prisma/TypeORM/Sequelize schemas.
166
-
167
- ```mermaid
168
- erDiagram
169
- User ||--o{ Post : writes
170
- User ||--|| Profile : has
171
- User ||--o{ Comment : writes
172
- Post ||--o{ Comment : has
173
- Post }o--o{ Category : belongs_to
174
-
175
- User {
176
- string id PK
177
- string email UK
178
- string password
179
- string name
180
- datetime createdAt
181
- }
182
-
183
- Post {
184
- string id PK
185
- string title
186
- text content
187
- boolean published
188
- string authorId FK
189
- datetime createdAt
190
- }
191
-
192
- Profile {
193
- string id PK
194
- string bio
195
- string avatar
196
- string userId FK
197
- }
198
-
199
- Comment {
200
- string id PK
201
- text content
202
- string authorId FK
203
- string postId FK
204
- datetime createdAt
205
- }
206
-
207
- Category {
208
- string id PK
209
- string name UK
210
- string slug UK
211
- }
212
- ```
213
-
214
- **Generated From:**
215
- ```prisma
216
- model User {
217
- id String @id @default(cuid())
218
- email String @unique
219
- password String
220
- name String?
221
- posts Post[]
222
- profile Profile?
223
- comments Comment[]
224
- createdAt DateTime @default(now())
225
- }
226
-
227
- model Post {
228
- id String @id @default(cuid())
229
- title String
230
- content String?
231
- published Boolean @default(false)
232
- author User @relation(fields: [authorId], references: [id])
233
- authorId String
234
- comments Comment[]
235
- categories Category[]
236
- createdAt DateTime @default(now())
237
- }
238
- ```
239
-
240
- ---
241
-
242
- ### 5. API Route Diagram
243
-
244
- Visualize all API endpoints.
245
-
246
- ```mermaid
247
- graph TB
248
- subgraph API["/api"]
249
- subgraph Auth["/auth"]
250
- Login[POST /login]
251
- Register[POST /register]
252
- Logout[POST /logout]
253
- Refresh[POST /refresh]
254
- end
255
-
256
- subgraph Users["/users"]
257
- ListUsers[GET /]
258
- GetUser[GET /:id]
259
- CreateUser[POST /]
260
- UpdateUser[PUT /:id]
261
- DeleteUser[DELETE /:id]
262
- UserPosts[GET /:id/posts]
263
- end
264
-
265
- subgraph Posts["/posts"]
266
- ListPosts[GET /]
267
- GetPost[GET /:id]
268
- CreatePost[POST /]
269
- UpdatePost[PUT /:id]
270
- DeletePost[DELETE /:id]
271
- PostComments[GET /:id/comments]
272
- end
273
- end
274
-
275
- style Login fill:#90EE90
276
- style Register fill:#90EE90
277
- style Logout fill:#FFB6C1
278
- style CreateUser fill:#90EE90
279
- style UpdateUser fill:#87CEEB
280
- style DeleteUser fill:#FFB6C1
281
- ```
282
-
283
- ---
284
-
285
- ### 6. State Management Diagram
286
-
287
- Visualize application state structure.
288
-
289
- ```mermaid
290
- stateDiagram-v2
291
- [*] --> Unauthenticated
292
-
293
- Unauthenticated --> Authenticating: login()
294
- Authenticating --> Authenticated: success
295
- Authenticating --> Unauthenticated: failure
296
- Authenticated --> Unauthenticated: logout()
297
-
298
- state Authenticated {
299
- [*] --> Idle
300
- Idle --> Loading: fetchData()
301
- Loading --> Success: data received
302
- Loading --> Error: request failed
303
- Error --> Loading: retry()
304
- Success --> Idle: reset()
305
- }
306
- ```
307
-
308
- **Store Visualization:**
309
- ```mermaid
310
- graph TB
311
- subgraph GlobalState[Global State - Zustand]
312
- AuthStore[Auth Store]
313
- UIStore[UI Store]
314
- UserStore[User Store]
315
- end
316
-
317
- subgraph ServerState[Server State - React Query]
318
- UsersQuery[Users Query]
319
- PostsQuery[Posts Query]
320
- CommentsQuery[Comments Query]
321
- end
322
-
323
- subgraph LocalState[Local State - useState]
324
- FormState[Form State]
325
- ModalState[Modal State]
326
- FilterState[Filter State]
327
- end
328
-
329
- AuthStore --> UsersQuery
330
- UserStore --> PostsQuery
331
- PostsQuery --> CommentsQuery
332
- ```
333
-
334
- ---
335
-
336
- ### 7. Sequence Diagram
337
-
338
- Show interaction flow for specific features.
339
-
340
- ```mermaid
341
- sequenceDiagram
342
- participant U as User
343
- participant C as Component
344
- participant H as useAuth Hook
345
- participant S as AuthService
346
- participant A as API
347
- participant D as Database
348
-
349
- U->>C: Click Login
350
- C->>H: login(email, password)
351
- H->>S: authService.login()
352
- S->>A: POST /api/auth/login
353
- A->>D: Query user
354
- D-->>A: User data
355
- A->>A: Verify password
356
- A->>A: Generate tokens
357
- A-->>S: { user, accessToken, refreshToken }
358
- S->>S: Store tokens
359
- S-->>H: User object
360
- H->>H: Update auth state
361
- H-->>C: { user, isAuthenticated: true }
362
- C-->>U: Redirect to dashboard
363
- ```
364
-
365
- ---
366
-
367
- ### 8. Deployment Architecture Diagram
368
-
369
- Visualize infrastructure and deployment.
370
-
371
- ```mermaid
372
- graph TB
373
- subgraph Client
374
- Browser[Browser]
375
- Mobile[Mobile App]
376
- end
377
-
378
- subgraph CDN
379
- CloudFront[CloudFront]
380
- Assets[Static Assets]
381
- end
382
-
383
- subgraph Vercel
384
- NextApp[Next.js App]
385
- ServerlessAPI[Serverless Functions]
386
- end
387
-
388
- subgraph AWS
389
- RDS[(PostgreSQL RDS)]
390
- S3[S3 Bucket]
391
- Redis[ElastiCache Redis]
392
- end
393
-
394
- subgraph External
395
- Auth0[Auth0]
396
- Stripe[Stripe]
397
- SendGrid[SendGrid]
398
- end
399
-
400
- Browser --> CloudFront
401
- Mobile --> CloudFront
402
- CloudFront --> Assets
403
- CloudFront --> NextApp
404
-
405
- NextApp --> ServerlessAPI
406
- ServerlessAPI --> RDS
407
- ServerlessAPI --> Redis
408
- ServerlessAPI --> S3
409
-
410
- ServerlessAPI --> Auth0
411
- ServerlessAPI --> Stripe
412
- ServerlessAPI --> SendGrid
413
- ```
414
-
415
- ---
416
-
417
- ## Generation Process
418
-
419
- ### Step 1: Code Analysis
420
-
421
- ```yaml
422
- analysis:
423
- scan:
424
- - component_imports
425
- - module_dependencies
426
- - database_schema
427
- - api_routes
428
- - state_management
429
- - type_definitions
430
- ```
431
-
432
- ### Step 2: Relationship Extraction
433
-
434
- ```yaml
435
- relationships:
436
- components:
437
- - parent_child
438
- - imports
439
- - props_passing
440
-
441
- modules:
442
- - dependencies
443
- - exports
444
- - shared_types
445
-
446
- data:
447
- - api_calls
448
- - state_updates
449
- - event_handlers
450
- ```
451
-
452
- ### Step 3: Diagram Generation
453
-
454
- ```yaml
455
- generation:
456
- format: "mermaid" # mermaid | plantuml | ascii | svg
457
-
458
- options:
459
- group_by_module: true
460
- show_external_deps: false
461
- highlight_critical_paths: true
462
- max_depth: 3
463
- ```
464
-
465
- ---
466
-
467
- ## Output Formats
468
-
469
- ### Mermaid (Default)
470
-
471
- ```markdown
472
- ```mermaid
473
- graph TB
474
- A --> B
475
- B --> C
476
- ```
477
- ```
478
-
479
- **Best for:** GitHub, GitLab, Notion, Obsidian
480
-
481
- ### PlantUML
482
-
483
- ```
484
- @startuml
485
- A --> B
486
- B --> C
487
- @enduml
488
- ```
489
-
490
- **Best for:** Confluence, enterprise documentation
491
-
492
- ### ASCII Art
493
-
494
- ```
495
- ┌─────┐ ┌─────┐ ┌─────┐
496
- │ A │────▶│ B │────▶│ C │
497
- └─────┘ └─────┘ └─────┘
498
- ```
499
-
500
- **Best for:** Terminal, plain text docs
501
-
502
- ### SVG/PNG Export
503
-
504
- For embedding in presentations, wikis, or external tools.
505
-
506
- ---
507
-
508
- ## Configuration
509
-
510
- ```yaml
511
- # proagents.config.yaml
512
-
513
- reverse_engineering:
514
- diagrams:
515
- enabled: true
516
-
517
- default_format: "mermaid"
518
-
519
- types:
520
- - component_hierarchy
521
- - module_dependency
522
- - data_flow
523
- - database_schema
524
- - api_routes
525
- - state_management
526
- - sequence_diagrams
527
-
528
- options:
529
- theme: "default" # default | dark | forest | neutral
530
- direction: "TB" # TB | BT | LR | RL
531
- max_nodes: 50 # Limit for readability
532
- group_threshold: 5 # Group if more than N items
533
-
534
- output:
535
- directory: "docs/diagrams/"
536
- formats: ["mermaid", "svg"]
537
-
538
- auto_generate:
539
- on_analysis: true
540
- on_feature_complete: false
541
- ```
542
-
543
- ---
544
-
545
- ## Interactive Diagram Features
546
-
547
- ### Zoom & Filter
548
-
549
- ```yaml
550
- interactive:
551
- zoom:
552
- enabled: true
553
- min: 0.5
554
- max: 3.0
555
-
556
- filter:
557
- by_module: true
558
- by_type: true
559
- hide_external: true
560
-
561
- highlight:
562
- on_hover: true
563
- show_details: true
564
- ```
565
-
566
- ### Click-Through Navigation
567
-
568
- Clicking a node in the diagram navigates to:
569
- - Source file for that component/module
570
- - Related documentation
571
- - API reference
572
-
573
- ---
574
-
575
- ## Commands
576
-
577
- | Command | Description |
578
- |---------|-------------|
579
- | `pa:re-diagrams` | Generate all diagrams |
580
- | `pa:re-diagrams --type components` | Component hierarchy only |
581
- | `pa:re-diagrams --type dependencies` | Module dependencies only |
582
- | `pa:re-diagrams --type database` | Database schema only |
583
- | `pa:re-diagrams --type api` | API routes only |
584
- | `pa:re-diagrams --type flow` | Data flow diagrams |
585
- | `pa:re-diagrams --format svg` | Export as SVG |
586
- | `pa:re-diagrams --module auth` | Diagrams for specific module |