proagents 1.6.17 → 1.6.18

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 (168) hide show
  1. package/.claude/settings.local.json +169 -0
  2. package/COMMANDS.md +595 -0
  3. package/README.md +13 -23
  4. package/package.json +2 -7
  5. package/.proagents/ai-models/README.md +0 -141
  6. package/.proagents/ai-models/cost-management.md +0 -362
  7. package/.proagents/ai-models/fallbacks.md +0 -342
  8. package/.proagents/ai-models/model-config.md +0 -318
  9. package/.proagents/ai-models/task-routing.md +0 -503
  10. package/.proagents/ai-training/README.md +0 -155
  11. package/.proagents/ai-training/continuous-learning.md +0 -413
  12. package/.proagents/ai-training/domain-knowledge.md +0 -378
  13. package/.proagents/ai-training/pattern-learning.md +0 -455
  14. package/.proagents/ai-training/training-data.md +0 -337
  15. package/.proagents/ai-training/user-preferences.md +0 -346
  16. package/.proagents/approval-workflows/README.md +0 -146
  17. package/.proagents/approval-workflows/approval-config.md +0 -332
  18. package/.proagents/approval-workflows/approval-stages.md +0 -503
  19. package/.proagents/approval-workflows/emergency-bypass.md +0 -351
  20. package/.proagents/approval-workflows/examples.md +0 -859
  21. package/.proagents/approval-workflows/notifications.md +0 -320
  22. package/.proagents/compliance/README.md +0 -206
  23. package/.proagents/compliance/access-control.md +0 -310
  24. package/.proagents/compliance/audit-logging.md +0 -444
  25. package/.proagents/compliance/compliance-frameworks.md +0 -429
  26. package/.proagents/compliance/reports.md +0 -491
  27. package/.proagents/compliance/retention-policies.md +0 -454
  28. package/.proagents/config-versioning/README.md +0 -120
  29. package/.proagents/config-versioning/changelog.md +0 -300
  30. package/.proagents/config-versioning/rollback.md +0 -283
  31. package/.proagents/config-versioning/versioning.md +0 -330
  32. package/.proagents/contract-testing/README.md +0 -223
  33. package/.proagents/contract-testing/contract-testing.md +0 -614
  34. package/.proagents/contract-testing/pact-integration.md +0 -507
  35. package/.proagents/contract-testing/schema-validation.md +0 -565
  36. package/.proagents/dependency-management/README.md +0 -140
  37. package/.proagents/dependency-management/automation.md +0 -363
  38. package/.proagents/dependency-management/compatibility.md +0 -319
  39. package/.proagents/dependency-management/security-scanning.md +0 -413
  40. package/.proagents/dependency-management/update-policies.md +0 -374
  41. package/.proagents/disaster-recovery/README.md +0 -247
  42. package/.proagents/disaster-recovery/automation.md +0 -366
  43. package/.proagents/disaster-recovery/backup-recovery.md +0 -571
  44. package/.proagents/disaster-recovery/incident-response.md +0 -565
  45. package/.proagents/disaster-recovery/rollback-procedures.md +0 -499
  46. package/.proagents/disaster-recovery/runbooks.md +0 -603
  47. package/.proagents/disaster-recovery/scenarios.md +0 -892
  48. package/.proagents/disaster-recovery/testing.md +0 -438
  49. package/.proagents/environments/README.md +0 -244
  50. package/.proagents/environments/configuration.md +0 -437
  51. package/.proagents/environments/promotion.md +0 -434
  52. package/.proagents/environments/setup.md +0 -420
  53. package/.proagents/examples/README.md +0 -55
  54. package/.proagents/examples/backend-nodejs/README.md +0 -188
  55. package/.proagents/examples/backend-nodejs/complete-conversation.md +0 -601
  56. package/.proagents/examples/backend-nodejs/proagents.config.yaml +0 -415
  57. package/.proagents/examples/backend-nodejs/workflow-example.md +0 -909
  58. package/.proagents/examples/fullstack-nextjs/README.md +0 -155
  59. package/.proagents/examples/fullstack-nextjs/complete-conversation.md +0 -604
  60. package/.proagents/examples/fullstack-nextjs/proagents.config.yaml +0 -287
  61. package/.proagents/examples/fullstack-nextjs/workflow-example.md +0 -553
  62. package/.proagents/examples/mobile-react-native/README.md +0 -171
  63. package/.proagents/examples/mobile-react-native/complete-conversation.md +0 -825
  64. package/.proagents/examples/mobile-react-native/proagents.config.yaml +0 -330
  65. package/.proagents/examples/mobile-react-native/workflow-example.md +0 -723
  66. package/.proagents/examples/web-frontend-react/README.md +0 -125
  67. package/.proagents/examples/web-frontend-react/complete-conversation.md +0 -556
  68. package/.proagents/examples/web-frontend-react/proagents.config.yaml +0 -183
  69. package/.proagents/examples/web-frontend-react/workflow-example.md +0 -603
  70. package/.proagents/existing-projects/README.md +0 -65
  71. package/.proagents/existing-projects/challenges.md +0 -861
  72. package/.proagents/existing-projects/coexistence-mode.md +0 -483
  73. package/.proagents/existing-projects/compatibility-assessment.md +0 -541
  74. package/.proagents/existing-projects/gradual-adoption.md +0 -515
  75. package/.proagents/existing-projects/migration-strategies.md +0 -788
  76. package/.proagents/existing-projects/pattern-reconciliation.md +0 -489
  77. package/.proagents/existing-projects/team-onboarding.md +0 -617
  78. package/.proagents/existing-projects/technical-debt-handling.md +0 -644
  79. package/.proagents/feature-flags/README.md +0 -263
  80. package/.proagents/feature-flags/ab-testing.md +0 -413
  81. package/.proagents/feature-flags/configuration.md +0 -420
  82. package/.proagents/feature-flags/kill-switches.md +0 -444
  83. package/.proagents/feature-flags/rollout-strategies.md +0 -392
  84. package/.proagents/history.log +0 -12
  85. package/.proagents/i18n/README.md +0 -133
  86. package/.proagents/i18n/extraction.md +0 -433
  87. package/.proagents/i18n/tms-integration.md +0 -332
  88. package/.proagents/i18n/translation-workflow.md +0 -413
  89. package/.proagents/i18n/validation.md +0 -355
  90. package/.proagents/logging/README.md +0 -276
  91. package/.proagents/logging/aggregation.md +0 -475
  92. package/.proagents/logging/log-levels.md +0 -376
  93. package/.proagents/logging/sensitive-data.md +0 -423
  94. package/.proagents/logging/structured-logging.md +0 -406
  95. package/.proagents/metrics/README.md +0 -69
  96. package/.proagents/metrics/code-quality-kpis.md +0 -461
  97. package/.proagents/metrics/deployment-metrics.md +0 -517
  98. package/.proagents/metrics/developer-productivity.md +0 -368
  99. package/.proagents/metrics/learning-effectiveness.md +0 -478
  100. package/.proagents/migrations/README.md +0 -77
  101. package/.proagents/migrations/from-claude-projects.md +0 -313
  102. package/.proagents/migrations/from-cursor-rules.md +0 -345
  103. package/.proagents/migrations/from-custom-workflows.md +0 -410
  104. package/.proagents/monitoring/README.md +0 -308
  105. package/.proagents/monitoring/alerting.md +0 -449
  106. package/.proagents/monitoring/dashboards.md +0 -454
  107. package/.proagents/monitoring/health-checks.md +0 -436
  108. package/.proagents/monitoring/metrics.md +0 -434
  109. package/.proagents/multi-project/README.md +0 -170
  110. package/.proagents/multi-project/coordinated-deploy.md +0 -510
  111. package/.proagents/multi-project/cross-project-deps.md +0 -395
  112. package/.proagents/multi-project/unified-changelog.md +0 -477
  113. package/.proagents/multi-project/walkthroughs/monorepo-setup.md +0 -787
  114. package/.proagents/multi-project/workspace-config.md +0 -408
  115. package/.proagents/notifications/README.md +0 -151
  116. package/.proagents/notifications/channels.md +0 -457
  117. package/.proagents/notifications/preferences.md +0 -415
  118. package/.proagents/notifications/routing.md +0 -449
  119. package/.proagents/notifications/scheduling.md +0 -425
  120. package/.proagents/notifications/templates.md +0 -446
  121. package/.proagents/offline-mode/README.md +0 -145
  122. package/.proagents/offline-mode/caching.md +0 -344
  123. package/.proagents/offline-mode/offline-operations.md +0 -312
  124. package/.proagents/offline-mode/queue-specifications.md +0 -679
  125. package/.proagents/offline-mode/sync.md +0 -475
  126. package/.proagents/parallel-features/README.md +0 -85
  127. package/.proagents/parallel-features/conflict-detection.md +0 -226
  128. package/.proagents/parallel-features/dependency-management.md +0 -392
  129. package/.proagents/parallel-features/merge-coordination.md +0 -506
  130. package/.proagents/parallel-features/tracking-system.md +0 -416
  131. package/.proagents/performance/README.md +0 -59
  132. package/.proagents/performance/bundle-analysis.md +0 -375
  133. package/.proagents/performance/load-testing.md +0 -563
  134. package/.proagents/performance/runtime-metrics.md +0 -489
  135. package/.proagents/performance/web-vitals.md +0 -425
  136. package/.proagents/plugins/README.md +0 -139
  137. package/.proagents/plugins/creating-plugins.md +0 -504
  138. package/.proagents/plugins/plugin-api.md +0 -467
  139. package/.proagents/plugins/plugin-registry.md +0 -276
  140. package/.proagents/reporting/README.md +0 -158
  141. package/.proagents/reporting/dashboards.md +0 -366
  142. package/.proagents/reporting/exports.md +0 -524
  143. package/.proagents/reporting/quality-metrics.md +0 -385
  144. package/.proagents/reporting/templates/README.md +0 -56
  145. package/.proagents/reporting/templates/dashboard-config.json +0 -187
  146. package/.proagents/reporting/templates/metrics-queries.md +0 -427
  147. package/.proagents/reporting/templates/react-dashboard.tsx +0 -544
  148. package/.proagents/reporting/templates/widgets.md +0 -451
  149. package/.proagents/reporting/velocity-metrics.md +0 -340
  150. package/.proagents/reverse-engineering/README.md +0 -151
  151. package/.proagents/reverse-engineering/architecture-extraction.md +0 -325
  152. package/.proagents/reverse-engineering/code-analysis.md +0 -377
  153. package/.proagents/reverse-engineering/dependency-mapping.md +0 -567
  154. package/.proagents/reverse-engineering/diagram-generation.md +0 -586
  155. package/.proagents/reverse-engineering/documentation-generation.md +0 -468
  156. package/.proagents/reverse-engineering/pattern-detection.md +0 -569
  157. package/.proagents/reverse-engineering/quality-assessment.md +0 -733
  158. package/.proagents/secrets/README.md +0 -278
  159. package/.proagents/secrets/access-control.md +0 -443
  160. package/.proagents/secrets/rotation.md +0 -403
  161. package/.proagents/secrets/scanning.md +0 -487
  162. package/.proagents/secrets/storage.md +0 -394
  163. package/.proagents/webhooks/README.md +0 -126
  164. package/.proagents/webhooks/endpoints.md +0 -298
  165. package/.proagents/webhooks/events.md +0 -316
  166. package/.proagents/webhooks/payloads.md +0 -325
  167. package/.proagents/webhooks/reliability.md +0 -363
  168. package/.proagents/webhooks/security.md +0 -380
@@ -1,226 +0,0 @@
1
- # Parallel Feature Conflict Detection
2
-
3
- Detect and resolve conflicts when developing multiple features simultaneously.
4
-
5
- ---
6
-
7
- ## Overview
8
-
9
- When working on multiple features in parallel, conflicts can occur when:
10
- - Same files are modified
11
- - Same components are changed
12
- - Database schema changes overlap
13
- - API contracts conflict
14
-
15
- ---
16
-
17
- ## Conflict Types
18
-
19
- ### File-Level Conflicts
20
-
21
- **Detection:**
22
- ```
23
- Feature A modifies: [file1.ts, file2.ts, file3.ts]
24
- Feature B modifies: [file2.ts, file4.ts]
25
-
26
- ⚠️ CONFLICT: file2.ts
27
- ```
28
-
29
- **Risk Levels:**
30
- | Scenario | Risk | Action |
31
- |----------|------|--------|
32
- | Same file, different sections | Low | Proceed with caution |
33
- | Same file, same section | Medium | Coordinate changes |
34
- | Same function/component | High | Sequential development |
35
-
36
- ### Semantic Conflicts
37
-
38
- Beyond file-level, detect:
39
- - State management conflicts
40
- - API contract changes
41
- - Type definition conflicts
42
- - Route conflicts
43
-
44
- ---
45
-
46
- ## Conflict Detection Process
47
-
48
- ### 1. Pre-Development Check
49
-
50
- Before starting a new feature:
51
-
52
- ```
53
- pa:conflict-check "feature-name"
54
-
55
- Output:
56
- Feature: user-profile
57
- Files to modify: [UserCard.tsx, userService.ts, User.ts]
58
-
59
- Checking against active features...
60
-
61
- ⚠️ Potential Conflicts:
62
- - Feature 'user-settings' also modifies UserCard.tsx
63
- Risk: MEDIUM (same component, different sections)
64
-
65
- - Feature 'auth-refresh' modifies userService.ts
66
- Risk: LOW (different functions)
67
-
68
- Recommendation: Coordinate with user-settings feature owner
69
- ```
70
-
71
- ### 2. During Development
72
-
73
- Track file modifications:
74
-
75
- ```json
76
- {
77
- "feature": "user-profile",
78
- "files_modified": [
79
- {
80
- "path": "src/components/UserCard.tsx",
81
- "sections": ["header", "avatar"],
82
- "last_modified": "2024-01-15T10:30:00Z"
83
- }
84
- ],
85
- "conflicts_detected": [],
86
- "last_check": "2024-01-15T10:30:00Z"
87
- }
88
- ```
89
-
90
- ### 3. Pre-Merge Check
91
-
92
- ```
93
- pa:conflict-check-merge "feature-name"
94
-
95
- Checking feature-user-profile for merge conflicts...
96
-
97
- Files with potential conflicts:
98
- - UserCard.tsx: Modified by both feature-user-profile and feature-user-settings
99
- → Review needed before merge
100
-
101
- API changes:
102
- - No conflicting API changes detected
103
-
104
- Database changes:
105
- - No conflicting schema changes
106
-
107
- Recommended merge order:
108
- 1. feature-user-settings (PR #123)
109
- 2. feature-user-profile (this feature)
110
- ```
111
-
112
- ---
113
-
114
- ## Resolution Strategies
115
-
116
- ### Strategy 1: Rebase and Resolve
117
-
118
- ```bash
119
- # Update your branch with latest from develop
120
- git fetch origin
121
- git rebase origin/develop
122
-
123
- # Resolve conflicts file by file
124
- # For each conflict:
125
- # 1. Review both changes
126
- # 2. Combine or choose appropriate version
127
- # 3. Test the result
128
-
129
- git add .
130
- git rebase --continue
131
- ```
132
-
133
- ### Strategy 2: Feature Flag Isolation
134
-
135
- ```javascript
136
- // Both features can merge, but only one active
137
- if (featureFlags.userProfile) {
138
- return <NewUserProfile />;
139
- } else if (featureFlags.userSettings) {
140
- return <UserSettings />;
141
- } else {
142
- return <LegacyProfile />;
143
- }
144
- ```
145
-
146
- ### Strategy 3: Component Decomposition
147
-
148
- If two features need same component:
149
- 1. Extract shared logic to new component
150
- 2. Each feature uses shared + own additions
151
- 3. Reduces direct conflicts
152
-
153
- ### Strategy 4: Coordinated Development
154
-
155
- ```markdown
156
- ## Coordination Agreement
157
-
158
- Features: user-profile, user-settings
159
- Shared File: UserCard.tsx
160
-
161
- Agreement:
162
- - user-profile: Modifies header and avatar sections
163
- - user-settings: Modifies footer and settings button
164
- - Neither touches: card body
165
-
166
- Review: Both must review each other's PRs for this file
167
- ```
168
-
169
- ---
170
-
171
- ## Conflict Status Dashboard
172
-
173
- ```
174
- ┌─────────────────────────────────────────────────────────┐
175
- │ Parallel Feature Conflict Status │
176
- ├─────────────────────────────────────────────────────────┤
177
- │ Active Features: 3 │
178
- ├─────────────────────────────────────────────────────────┤
179
- │ Feature │ Files │ Conflicts │ Status │
180
- ├─────────────────────┼───────┼───────────┼───────────────┤
181
- │ user-profile │ 8 │ 1 │ ⚠️ Medium │
182
- │ user-settings │ 5 │ 1 │ ⚠️ Medium │
183
- │ dashboard-redesign │ 12 │ 0 │ ✅ Clear │
184
- ├─────────────────────────────────────────────────────────┤
185
- │ Conflict Details: │
186
- │ UserCard.tsx: user-profile ↔ user-settings │
187
- │ Recommended: Coordinate before merge │
188
- └─────────────────────────────────────────────────────────┘
189
- ```
190
-
191
- ---
192
-
193
- ## Configuration
194
-
195
- ```yaml
196
- # proagents.config.yaml
197
- parallel_features:
198
- conflict_detection:
199
- enabled: true
200
- check_on:
201
- - feature_start
202
- - file_save
203
- - pre_commit
204
- - pre_merge
205
-
206
- risk_thresholds:
207
- same_file_different_sections: "low"
208
- same_file_same_section: "medium"
209
- same_function: "high"
210
- api_contract_change: "high"
211
- schema_change: "high"
212
-
213
- alerts:
214
- notify_on: "medium"
215
- block_on: "high"
216
- ```
217
-
218
- ---
219
-
220
- ## Commands
221
-
222
- | Command | Description |
223
- |---------|-------------|
224
- | `pa:conflict-check` | Check for conflicts |
225
- | `pa:conflict-status` | Show conflict status |
226
- | `pa:conflict-resolve` | Help resolve conflicts |
@@ -1,392 +0,0 @@
1
- # Feature Dependency Management
2
-
3
- Manage dependencies between parallel features.
4
-
5
- ---
6
-
7
- ## Overview
8
-
9
- Dependency management ensures:
10
- - Clear dependency relationships
11
- - Correct development order
12
- - Blocker identification
13
- - Efficient resource allocation
14
-
15
- ---
16
-
17
- ## Dependency Types
18
-
19
- ### 1. Hard Dependencies
20
-
21
- Feature cannot proceed without dependency completion.
22
-
23
- ```yaml
24
- hard_dependency:
25
- feature: "feature-dashboard"
26
- depends_on: "feature-user-auth"
27
- type: "hard"
28
- reason: "Dashboard requires auth API for user data"
29
- required_phase: "implementation_complete"
30
- blocks_at_phase: "implementation"
31
- ```
32
-
33
- ### 2. Soft Dependencies
34
-
35
- Feature can proceed but will need integration later.
36
-
37
- ```yaml
38
- soft_dependency:
39
- feature: "feature-notifications"
40
- depends_on: "feature-dashboard"
41
- type: "soft"
42
- reason: "Notifications will integrate with dashboard"
43
- integration_phase: "testing"
44
- can_parallel: true
45
- ```
46
-
47
- ### 3. Shared Resource Dependencies
48
-
49
- Features share common code or resources.
50
-
51
- ```yaml
52
- shared_resource:
53
- resource: "src/lib/api.ts"
54
- features:
55
- - "feature-user-auth"
56
- - "feature-dashboard"
57
- conflict_risk: "medium"
58
- coordination: "required"
59
- ```
60
-
61
- ---
62
-
63
- ## Dependency Declaration
64
-
65
- ### In Feature Status
66
-
67
- ```json
68
- // feature-dashboard/dependencies.json
69
- {
70
- "feature_id": "feature-dashboard",
71
-
72
- "depends_on": [
73
- {
74
- "feature": "feature-user-auth",
75
- "type": "hard",
76
- "reason": "Requires auth context and user API",
77
- "required_phase": "implementation",
78
- "status": "waiting",
79
- "blocking_since": "2024-01-13T10:00:00Z"
80
- }
81
- ],
82
-
83
- "blocks": [
84
- {
85
- "feature": "feature-notifications",
86
- "type": "soft",
87
- "reason": "Notifications will use dashboard components",
88
- "unblock_at_phase": "implementation"
89
- }
90
- ],
91
-
92
- "shared_resources": [
93
- {
94
- "path": "src/lib/api.ts",
95
- "shared_with": ["feature-user-auth"],
96
- "sections_affected": ["interceptors", "error handling"],
97
- "coordination_status": "aligned"
98
- }
99
- ]
100
- }
101
- ```
102
-
103
- ---
104
-
105
- ## Dependency Graph
106
-
107
- ### Visual Representation
108
-
109
- ```
110
- ┌─────────────────────────────────────────────────────────────┐
111
- │ Feature Dependency Graph │
112
- ├─────────────────────────────────────────────────────────────┤
113
- │ │
114
- │ ┌──────────────┐ │
115
- │ │ user-auth │ ← No dependencies (can start) │
116
- │ │ [60%] 🔄 │ │
117
- │ └──────┬───────┘ │
118
- │ │ │
119
- │ │ hard │
120
- │ ▼ │
121
- │ ┌──────────────┐ │
122
- │ │ dashboard │ ← Blocked by user-auth │
123
- │ │ [30%] ⏸️ │ │
124
- │ └──────┬───────┘ │
125
- │ │ │
126
- │ │ soft │
127
- │ ▼ │
128
- │ ┌──────────────┐ │
129
- │ │notifications │ ← Can proceed, integrate later │
130
- │ │ [10%] 🔄 │ │
131
- │ └──────────────┘ │
132
- │ │
133
- │ Legend: │
134
- │ ─── hard dependency (blocks) │
135
- │ ··· soft dependency (integration needed) │
136
- │ 🔄 in progress ⏸️ blocked ✅ complete │
137
- │ │
138
- └─────────────────────────────────────────────────────────────┘
139
- ```
140
-
141
- ### Mermaid Diagram
142
-
143
- ```mermaid
144
- graph TD
145
- A[user-auth<br/>60% 🔄] -->|hard| B[dashboard<br/>30% ⏸️]
146
- B -->|soft| C[notifications<br/>10% 🔄]
147
- A -->|soft| D[settings<br/>0% ⏳]
148
-
149
- style A fill:#90EE90
150
- style B fill:#FFB6C1
151
- style C fill:#87CEEB
152
- style D fill:#F0F0F0
153
- ```
154
-
155
- ---
156
-
157
- ## Dependency Resolution
158
-
159
- ### Resolution Strategies
160
-
161
- ```yaml
162
- resolution_strategies:
163
- hard_dependency_blocked:
164
- actions:
165
- - "Notify blocking feature owner"
166
- - "Add to blocker dashboard"
167
- - "Track waiting time"
168
- - "Escalate if >24 hours"
169
-
170
- soft_dependency:
171
- actions:
172
- - "Allow parallel development"
173
- - "Schedule integration checkpoint"
174
- - "Create integration task"
175
-
176
- shared_resource_conflict:
177
- actions:
178
- - "Identify overlapping sections"
179
- - "Coordinate changes"
180
- - "Merge more frequently"
181
- - "Consider feature branches from feature branches"
182
- ```
183
-
184
- ### Unblocking Process
185
-
186
- ```typescript
187
- // Unblock dependent features when dependency completes
188
- async function onPhaseComplete(featureId: string, phase: string) {
189
- const blockedFeatures = await getBlockedBy(featureId);
190
-
191
- for (const blocked of blockedFeatures) {
192
- const dep = blocked.dependencies.find(d => d.feature === featureId);
193
-
194
- if (dep.required_phase === phase) {
195
- // Unblock the feature
196
- await unblockFeature(blocked.id, {
197
- unblocked_by: featureId,
198
- unblocked_at: new Date().toISOString(),
199
- });
200
-
201
- // Notify team
202
- await notify({
203
- type: 'feature_unblocked',
204
- feature: blocked.name,
205
- unblocked_by: featureId,
206
- });
207
- }
208
- }
209
- }
210
- ```
211
-
212
- ---
213
-
214
- ## Circular Dependency Detection
215
-
216
- ```typescript
217
- // Detect circular dependencies
218
- function detectCircularDependencies(features: Feature[]): Cycle[] {
219
- const cycles: Cycle[] = [];
220
- const visited = new Set<string>();
221
- const recursionStack = new Set<string>();
222
-
223
- function dfs(featureId: string, path: string[]): boolean {
224
- visited.add(featureId);
225
- recursionStack.add(featureId);
226
-
227
- const feature = features.find(f => f.id === featureId);
228
- if (!feature) return false;
229
-
230
- for (const dep of feature.depends_on) {
231
- if (!visited.has(dep.feature)) {
232
- if (dfs(dep.feature, [...path, featureId])) {
233
- return true;
234
- }
235
- } else if (recursionStack.has(dep.feature)) {
236
- // Cycle detected
237
- cycles.push({
238
- path: [...path, featureId, dep.feature],
239
- severity: 'error',
240
- });
241
- return true;
242
- }
243
- }
244
-
245
- recursionStack.delete(featureId);
246
- return false;
247
- }
248
-
249
- for (const feature of features) {
250
- if (!visited.has(feature.id)) {
251
- dfs(feature.id, []);
252
- }
253
- }
254
-
255
- return cycles;
256
- }
257
- ```
258
-
259
- **Alert on Circular Dependency:**
260
- ```
261
- ⛔ CIRCULAR DEPENDENCY DETECTED
262
-
263
- Path: user-auth → dashboard → user-settings → user-auth
264
-
265
- This creates a deadlock where no feature can proceed.
266
-
267
- Resolution Options:
268
- 1. Remove one of the dependencies
269
- 2. Break feature into smaller parts
270
- 3. Extract shared functionality to separate feature
271
- ```
272
-
273
- ---
274
-
275
- ## Dependency Impact Analysis
276
-
277
- ```yaml
278
- impact_analysis:
279
- feature: "feature-user-auth"
280
-
281
- if_delayed:
282
- directly_blocked:
283
- - "feature-dashboard"
284
- - "feature-settings"
285
- indirectly_affected:
286
- - "feature-notifications"
287
- total_impact_days: 5
288
-
289
- if_scope_changes:
290
- api_changes_affect:
291
- - "feature-dashboard": "API integration"
292
- - "feature-settings": "Auth context usage"
293
- notification_required: true
294
-
295
- completion_enables:
296
- immediate:
297
- - "feature-dashboard can proceed"
298
- subsequent:
299
- - "feature-notifications integration"
300
- ```
301
-
302
- ---
303
-
304
- ## Coordination Workflow
305
-
306
- ### Daily Dependency Check
307
-
308
- ```yaml
309
- daily_check:
310
- time: "09:00"
311
- actions:
312
- - "Check all blocked features"
313
- - "Update dependency status"
314
- - "Identify new blockers"
315
- - "Generate coordination report"
316
- - "Notify relevant teams"
317
- ```
318
-
319
- ### Coordination Report
320
-
321
- ```markdown
322
- # Daily Dependency Report - 2024-01-15
323
-
324
- ## Blocked Features: 2
325
-
326
- ### feature-dashboard
327
- - **Blocked by:** feature-user-auth
328
- - **Waiting since:** 2 days
329
- - **Expected unblock:** Today (user-auth at 60%)
330
- - **Action:** Monitor user-auth progress
331
-
332
- ### feature-reports
333
- - **Blocked by:** feature-dashboard
334
- - **Waiting since:** 2 days
335
- - **Expected unblock:** 3 days (cascading)
336
- - **Action:** Consider parallel design work
337
-
338
- ## Unblocked Today: 1
339
-
340
- ### feature-settings
341
- - **Was blocked by:** feature-user-auth
342
- - **Unblocked at:** 09:30
343
- - **Action:** Resume implementation
344
-
345
- ## Upcoming Dependencies
346
-
347
- | Feature | Depends On | Expected Resolution |
348
- |---------|------------|---------------------|
349
- | notifications | dashboard | 5 days |
350
- | analytics | user-auth | 1 day |
351
- ```
352
-
353
- ---
354
-
355
- ## Configuration
356
-
357
- ```yaml
358
- # proagents.config.yaml
359
-
360
- dependencies:
361
- enabled: true
362
-
363
- detection:
364
- circular: true
365
- alert_on_circular: true
366
-
367
- blocking:
368
- max_wait_time: "48h"
369
- escalate_after: "24h"
370
-
371
- coordination:
372
- daily_check: true
373
- check_time: "09:00"
374
- report_channel: "slack"
375
-
376
- visualization:
377
- generate_graph: true
378
- format: "mermaid"
379
- ```
380
-
381
- ---
382
-
383
- ## Commands
384
-
385
- | Command | Description |
386
- |---------|-------------|
387
- | `pa:deps` | View dependency graph |
388
- | `pa:deps [feature]` | View feature dependencies |
389
- | `pa:deps --blocked` | List blocked features |
390
- | `pa:deps --add [from] [to]` | Add dependency |
391
- | `pa:deps --remove [from] [to]` | Remove dependency |
392
- | `pa:deps --check` | Check for issues |