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,363 +0,0 @@
1
- # Dependency Update Automation
2
-
3
- Automate dependency updates in CI/CD pipelines.
4
-
5
- ---
6
-
7
- ## CI/CD Integration
8
-
9
- ### GitHub Actions
10
-
11
- ```yaml
12
- # .github/workflows/dependencies.yml
13
- name: Dependency Updates
14
-
15
- on:
16
- schedule:
17
- - cron: '0 6 * * 1' # Weekly on Monday
18
- workflow_dispatch:
19
-
20
- jobs:
21
- update-dependencies:
22
- runs-on: ubuntu-latest
23
- steps:
24
- - uses: actions/checkout@v4
25
-
26
- - name: Setup Node
27
- uses: actions/setup-node@v4
28
- with:
29
- node-version: '20'
30
-
31
- - name: Check for updates
32
- id: check
33
- run: |
34
- proagents deps check --ci --output updates.json
35
-
36
- - name: Run updates
37
- if: steps.check.outputs.has_updates == 'true'
38
- run: |
39
- proagents deps update --ci
40
-
41
- - name: Run tests
42
- run: npm test
43
-
44
- - name: Create PR
45
- if: success()
46
- run: |
47
- proagents deps create-pr \
48
- --title "chore(deps): weekly dependency updates" \
49
- --body-file updates.json
50
- ```
51
-
52
- ### GitLab CI
53
-
54
- ```yaml
55
- # .gitlab-ci.yml
56
- dependency-update:
57
- stage: maintenance
58
- rules:
59
- - if: $CI_PIPELINE_SOURCE == "schedule"
60
- script:
61
- - proagents deps check --ci
62
- - proagents deps update --ci
63
- - npm test
64
- after_script:
65
- - proagents deps create-mr
66
- ```
67
-
68
- ---
69
-
70
- ## Automation Configuration
71
-
72
- ### Update Schedule
73
-
74
- ```yaml
75
- dependencies:
76
- automation:
77
- schedule:
78
- # Check frequency
79
- check: "0 6 * * *" # Daily at 6 AM
80
-
81
- # Update frequency by type
82
- apply:
83
- patch: "0 2 * * *" # Daily at 2 AM
84
- minor: "0 2 * * 1" # Weekly Monday
85
- major: "manual" # Manual only
86
-
87
- # Time windows
88
- windows:
89
- allowed:
90
- - days: ["mon", "tue", "wed", "thu"]
91
- hours: "02:00-06:00"
92
- blocked:
93
- - reason: "Release freeze"
94
- dates: "2024-03-01 to 2024-03-15"
95
- ```
96
-
97
- ### Automated Actions
98
-
99
- ```yaml
100
- dependencies:
101
- automation:
102
- actions:
103
- # On update available
104
- on_update_available:
105
- - check_compatibility
106
- - run_security_scan
107
-
108
- # On patch update
109
- on_patch:
110
- - run_tests
111
- - auto_merge_if_passing
112
- - notify_on_failure
113
-
114
- # On minor update
115
- on_minor:
116
- - run_tests
117
- - create_pr
118
- - request_review
119
-
120
- # On major update
121
- on_major:
122
- - run_compatibility_check
123
- - generate_migration_guide
124
- - create_pr
125
- - require_approval
126
- ```
127
-
128
- ---
129
-
130
- ## PR Management
131
-
132
- ### Auto-Create PRs
133
-
134
- ```yaml
135
- dependencies:
136
- automation:
137
- pull_requests:
138
- enabled: true
139
-
140
- # Branch naming
141
- branch_format: "deps/{{update_type}}-{{date}}"
142
-
143
- # PR template
144
- title: "chore(deps): {{summary}}"
145
- body_template: |
146
- ## Dependency Updates
147
-
148
- This PR updates the following dependencies:
149
-
150
- {{#each updates}}
151
- ### {{this.name}}: {{this.from}} → {{this.to}}
152
-
153
- - Type: {{this.type}}
154
- - Changelog: {{this.changelog_url}}
155
- {{#if this.breaking_changes}}
156
- - ⚠️ Breaking changes detected
157
- {{/if}}
158
- {{/each}}
159
-
160
- ## Checks
161
- - [ ] Tests passing
162
- - [ ] No breaking changes
163
- - [ ] Security scan clean
164
-
165
- # Labels
166
- labels:
167
- - "dependencies"
168
- - "automated"
169
-
170
- # Reviewers
171
- reviewers:
172
- - "@team/maintainers"
173
- ```
174
-
175
- ### Auto-Merge
176
-
177
- ```yaml
178
- dependencies:
179
- automation:
180
- auto_merge:
181
- enabled: true
182
-
183
- # Conditions
184
- conditions:
185
- - all_checks_pass: true
186
- - no_breaking_changes: true
187
- - security_scan_clean: true
188
-
189
- # Wait time
190
- wait_before_merge: "1h"
191
-
192
- # Merge method
193
- method: "squash"
194
-
195
- # Only for
196
- types:
197
- - "patch"
198
- ```
199
-
200
- ---
201
-
202
- ## Testing Automation
203
-
204
- ### Test Pipeline
205
-
206
- ```yaml
207
- dependencies:
208
- automation:
209
- testing:
210
- # Test stages
211
- stages:
212
- - name: "unit"
213
- command: "npm test"
214
- required: true
215
-
216
- - name: "integration"
217
- command: "npm run test:integration"
218
- required: true
219
- for_types: ["minor", "major"]
220
-
221
- - name: "e2e"
222
- command: "npm run test:e2e"
223
- required: false
224
- for_types: ["major"]
225
-
226
- # Retry on failure
227
- retry:
228
- enabled: true
229
- max_attempts: 3
230
-
231
- # Timeout
232
- timeout: "30m"
233
- ```
234
-
235
- ### Test Matrix
236
-
237
- ```yaml
238
- dependencies:
239
- automation:
240
- testing:
241
- matrix:
242
- # Test across Node versions
243
- node_versions:
244
- - "18"
245
- - "20"
246
- - "22"
247
-
248
- # Test across OS
249
- os:
250
- - "ubuntu-latest"
251
- - "macos-latest"
252
- ```
253
-
254
- ---
255
-
256
- ## Rollback Automation
257
-
258
- ### Auto-Rollback
259
-
260
- ```yaml
261
- dependencies:
262
- automation:
263
- rollback:
264
- # Auto-rollback on failure
265
- on_failure:
266
- enabled: true
267
- triggers:
268
- - "tests_failed"
269
- - "build_failed"
270
- - "deploy_failed"
271
-
272
- # Create rollback PR
273
- create_pr: true
274
-
275
- # Notify
276
- notify:
277
- - "slack:#dependencies"
278
- ```
279
-
280
- ### Rollback Commands
281
-
282
- ```bash
283
- # Rollback last update
284
- proagents deps rollback
285
-
286
- # Rollback specific package
287
- proagents deps rollback axios
288
-
289
- # Rollback to specific version
290
- proagents deps rollback axios@1.5.0
291
- ```
292
-
293
- ---
294
-
295
- ## Notifications
296
-
297
- ### Notification Configuration
298
-
299
- ```yaml
300
- dependencies:
301
- automation:
302
- notifications:
303
- # On update available
304
- on_available:
305
- channels: ["slack:#deps"]
306
- summary: true
307
-
308
- # On PR created
309
- on_pr_created:
310
- channels: ["slack:#deps"]
311
- mention_reviewers: true
312
-
313
- # On auto-merge
314
- on_auto_merge:
315
- channels: ["slack:#deps"]
316
-
317
- # On failure
318
- on_failure:
319
- channels: ["slack:#deps-alerts"]
320
- priority: "high"
321
- ```
322
-
323
- ---
324
-
325
- ## Monitoring
326
-
327
- ### Update Metrics
328
-
329
- ```bash
330
- proagents deps metrics
331
-
332
- # Output:
333
- ┌─────────────────────────────────────────────────────────────┐
334
- │ Dependency Update Metrics - Last 30 Days │
335
- ├─────────────────────────────────────────────────────────────┤
336
- │ │
337
- │ Updates Processed: 45 │
338
- │ ├── Patches: 32 (auto-merged: 28) │
339
- │ ├── Minor: 10 (merged: 8, pending: 2) │
340
- │ └── Major: 3 (merged: 1, blocked: 2) │
341
- │ │
342
- │ Success Rate: 93% │
343
- │ Average PR Time: 4.2 hours │
344
- │ │
345
- │ Security Updates: 5 (all applied) │
346
- │ │
347
- │ Blocked Updates: │
348
- │ ├── react 19.0.0 - Breaking changes │
349
- │ └── webpack 6.0.0 - Requires migration │
350
- │ │
351
- └─────────────────────────────────────────────────────────────┘
352
- ```
353
-
354
- ---
355
-
356
- ## Best Practices
357
-
358
- 1. **Start Conservative**: Enable auto-merge for patches only
359
- 2. **Test Thoroughly**: Run full test suite before merge
360
- 3. **Monitor Metrics**: Track success rates and issues
361
- 4. **Review Majors**: Always manually review major updates
362
- 5. **Have Rollback Plan**: Auto-rollback on failures
363
- 6. **Notify Team**: Keep team informed of updates
@@ -1,319 +0,0 @@
1
- # Breaking Change Detection
2
-
3
- Detect and handle breaking changes in dependency updates.
4
-
5
- ---
6
-
7
- ## Detection Methods
8
-
9
- ### Semantic Version Analysis
10
-
11
- ```yaml
12
- dependencies:
13
- compatibility:
14
- semver:
15
- # Major version = potential breaking changes
16
- major_update:
17
- assume_breaking: true
18
- require_review: true
19
-
20
- # Check actual changes
21
- analyze_changelog: true
22
- analyze_types: true
23
- ```
24
-
25
- ### Type Checking
26
-
27
- ```yaml
28
- dependencies:
29
- compatibility:
30
- types:
31
- enabled: true
32
-
33
- # TypeScript type compatibility
34
- typescript:
35
- check_interfaces: true
36
- check_exports: true
37
- check_removed: true
38
-
39
- # Report level
40
- report:
41
- removed_exports: "error"
42
- changed_signatures: "warning"
43
- new_required_params: "error"
44
- ```
45
-
46
- ### API Analysis
47
-
48
- ```yaml
49
- dependencies:
50
- compatibility:
51
- api:
52
- enabled: true
53
-
54
- checks:
55
- - removed_functions
56
- - changed_signatures
57
- - removed_exports
58
- - changed_return_types
59
- - new_required_parameters
60
- ```
61
-
62
- ---
63
-
64
- ## Compatibility Report
65
-
66
- ### Generate Report
67
-
68
- ```bash
69
- proagents deps check-compatibility lodash@5.0.0
70
-
71
- # Output:
72
- ┌─────────────────────────────────────────────────────────────┐
73
- │ Compatibility Report: lodash 4.17.21 → 5.0.0 │
74
- ├─────────────────────────────────────────────────────────────┤
75
- │ │
76
- │ Breaking Changes Detected: 3 │
77
- │ │
78
- │ ❌ Removed Functions: │
79
- │ ├── _.pluck() - Use _.map() instead │
80
- │ └── _.where() - Use _.filter() instead │
81
- │ │
82
- │ ⚠️ Changed Signatures: │
83
- │ └── _.merge() - Now returns undefined for null inputs │
84
- │ │
85
- │ Your Usage: │
86
- │ ├── _.pluck() used in: src/utils/data.ts:45 │
87
- │ ├── _.where() used in: src/services/filter.ts:23 │
88
- │ └── _.merge() used in: 5 files │
89
- │ │
90
- │ Migration Effort: Medium │
91
- │ Estimated Changes: 8 files, ~20 lines │
92
- │ │
93
- │ [View Migration Guide] [Skip Update] [Auto-Fix] │
94
- │ │
95
- └─────────────────────────────────────────────────────────────┘
96
- ```
97
-
98
- ---
99
-
100
- ## Impact Analysis
101
-
102
- ### Code Impact
103
-
104
- ```yaml
105
- dependencies:
106
- compatibility:
107
- impact_analysis:
108
- enabled: true
109
-
110
- # Scan codebase for usage
111
- scan:
112
- - imports
113
- - function_calls
114
- - type_usage
115
-
116
- # Report affected files
117
- report_affected: true
118
-
119
- # Estimate effort
120
- estimate_effort: true
121
- ```
122
-
123
- ### Impact Report
124
-
125
- ```bash
126
- proagents deps impact axios@2.0.0
127
-
128
- # Output:
129
- ┌─────────────────────────────────────────────────────────────┐
130
- │ Impact Analysis: axios 1.6.0 → 2.0.0 │
131
- ├─────────────────────────────────────────────────────────────┤
132
- │ │
133
- │ Files Affected: 12 │
134
- │ │
135
- │ High Impact (requires changes): │
136
- │ ├── src/services/api.ts │
137
- │ │ └── axios.create() signature changed │
138
- │ ├── src/services/auth.ts │
139
- │ │ └── Interceptor API changed │
140
- │ └── src/utils/http.ts │
141
- │ └── Error handling changed │
142
- │ │
143
- │ Medium Impact (may require changes): │
144
- │ ├── src/hooks/useApi.ts │
145
- │ └── src/components/DataFetcher.tsx │
146
- │ │
147
- │ Low Impact (likely compatible): │
148
- │ └── 7 files with basic usage │
149
- │ │
150
- │ Total Effort: ~2-4 hours │
151
- │ │
152
- └─────────────────────────────────────────────────────────────┘
153
- ```
154
-
155
- ---
156
-
157
- ## Migration Guides
158
-
159
- ### Auto-Generated Guide
160
-
161
- ```yaml
162
- dependencies:
163
- compatibility:
164
- migration:
165
- # Generate migration guide
166
- auto_generate: true
167
-
168
- # Include code examples
169
- include_examples: true
170
-
171
- # Fetch from package docs
172
- fetch_official: true
173
- ```
174
-
175
- ### Migration Guide Output
176
-
177
- ```markdown
178
- # Migration Guide: axios 1.x → 2.x
179
-
180
- ## Breaking Changes
181
-
182
- ### 1. Create Instance
183
-
184
- **Before:**
185
- ```javascript
186
- const instance = axios.create({
187
- baseURL: 'https://api.example.com'
188
- });
189
- ```
190
-
191
- **After:**
192
- ```javascript
193
- const instance = axios.create({
194
- baseURL: 'https://api.example.com',
195
- adapter: 'fetch' // New required option
196
- });
197
- ```
198
-
199
- ### 2. Error Handling
200
-
201
- **Before:**
202
- ```javascript
203
- try {
204
- await axios.get('/api');
205
- } catch (error) {
206
- console.log(error.response.data);
207
- }
208
- ```
209
-
210
- **After:**
211
- ```javascript
212
- try {
213
- await axios.get('/api');
214
- } catch (error) {
215
- console.log(error.data); // Changed path
216
- }
217
- ```
218
-
219
- ## Affected Files in Your Project
220
-
221
- - `src/services/api.ts:15` - Update create() call
222
- - `src/services/auth.ts:42` - Update interceptor
223
- - `src/utils/http.ts:28` - Update error handling
224
- ```
225
-
226
- ---
227
-
228
- ## Auto-Migration
229
-
230
- ### Codemods
231
-
232
- ```yaml
233
- dependencies:
234
- compatibility:
235
- codemods:
236
- enabled: true
237
-
238
- # Run official codemods
239
- official:
240
- enabled: true
241
- packages:
242
- - "react"
243
- - "next"
244
-
245
- # Custom codemods
246
- custom:
247
- - package: "lodash"
248
- codemod: "scripts/codemods/lodash-5.js"
249
- ```
250
-
251
- ### Run Migration
252
-
253
- ```bash
254
- # Run codemod for package
255
- proagents deps migrate lodash@5.0.0
256
-
257
- # Dry run
258
- proagents deps migrate lodash@5.0.0 --dry-run
259
-
260
- # Specific files
261
- proagents deps migrate lodash@5.0.0 --files "src/utils/**"
262
- ```
263
-
264
- ---
265
-
266
- ## Compatibility Matrix
267
-
268
- ### Track Compatibility
269
-
270
- ```yaml
271
- dependencies:
272
- compatibility:
273
- matrix:
274
- # Track tested combinations
275
- track: true
276
-
277
- # Required versions
278
- required:
279
- node: ">=18.0.0"
280
- npm: ">=9.0.0"
281
-
282
- # Known compatible versions
283
- tested:
284
- - react: "18.x"
285
- react-dom: "18.x"
286
- typescript: "5.x"
287
- ```
288
-
289
- ### View Matrix
290
-
291
- ```bash
292
- proagents deps compatibility-matrix
293
-
294
- # Output:
295
- ┌─────────────────────────────────────────────────────────────┐
296
- │ Compatibility Matrix │
297
- ├─────────────────────────────────────────────────────────────┤
298
- │ │
299
- │ Package │ Current │ Latest │ Compatible │ Status │
300
- │────────────────┼─────────┼────────┼────────────┼───────────│
301
- │ react │ 18.2.0 │ 19.0.0 │ ❌ │ Breaking │
302
- │ typescript │ 5.2.0 │ 5.4.0 │ ✅ │ Safe │
303
- │ axios │ 1.6.0 │ 2.0.0 │ ⚠️ │ Review │
304
- │ lodash │ 4.17.21 │ 5.0.0 │ ❌ │ Breaking │
305
- │ tailwindcss │ 3.3.0 │ 3.4.0 │ ✅ │ Safe │
306
- │ │
307
- └─────────────────────────────────────────────────────────────┘
308
- ```
309
-
310
- ---
311
-
312
- ## Best Practices
313
-
314
- 1. **Check Before Update**: Always run compatibility check
315
- 2. **Read Changelogs**: Review official breaking changes
316
- 3. **Test Thoroughly**: Run full test suite after updates
317
- 4. **Use Codemods**: Leverage official migration tools
318
- 5. **Staged Rollout**: Update in staging first
319
- 6. **Document Changes**: Record migration steps taken