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,434 +0,0 @@
1
- # Environment Promotion
2
-
3
- Moving code and configuration safely between environments.
4
-
5
- ---
6
-
7
- ## Promotion Flow
8
-
9
- ```
10
- ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
11
- │ Development │ ─▶ │ Staging │ ─▶ │ Production │
12
- └──────────────┘ └──────────────┘ └──────────────┘
13
- │ │ │
14
- Auto Deploy Manual Gate Approval Gate
15
- On PR Merge + Tests Pass + Change Window
16
- ```
17
-
18
- ---
19
-
20
- ## Promotion Rules
21
-
22
- ### Configuration
23
-
24
- ```yaml
25
- # proagents.config.yaml
26
- promotion:
27
- # Development → Staging
28
- development_to_staging:
29
- trigger: "automatic"
30
- conditions:
31
- - "all_tests_pass"
32
- - "no_critical_security_issues"
33
- notifications:
34
- - slack: "#deployments"
35
-
36
- # Staging → Production
37
- staging_to_production:
38
- trigger: "manual"
39
- conditions:
40
- - "all_tests_pass"
41
- - "security_scan_pass"
42
- - "performance_baseline_met"
43
- - "staging_soak_time >= 4h"
44
- approvals:
45
- required: 2
46
- approvers:
47
- - role: "tech-lead"
48
- - role: "sre"
49
- change_window:
50
- days: ["tuesday", "wednesday", "thursday"]
51
- hours: ["10:00", "16:00"]
52
- timezone: "America/New_York"
53
- notifications:
54
- - slack: "#prod-deployments"
55
- - email: "engineering@company.com"
56
- ```
57
-
58
- ---
59
-
60
- ## Promotion Gates
61
-
62
- ### Quality Gates
63
-
64
- ```yaml
65
- promotion:
66
- gates:
67
- quality:
68
- # Test requirements
69
- tests:
70
- unit_coverage: ">= 80%"
71
- integration_tests: "pass"
72
- e2e_tests: "pass"
73
-
74
- # Code quality
75
- code_quality:
76
- linting: "no_errors"
77
- type_check: "pass"
78
- complexity: "<= 15"
79
-
80
- # Security
81
- security:
82
- vulnerability_scan: "no_critical"
83
- dependency_audit: "no_high"
84
- secrets_scan: "no_findings"
85
- ```
86
-
87
- ### Performance Gates
88
-
89
- ```yaml
90
- promotion:
91
- gates:
92
- performance:
93
- # Response times
94
- latency:
95
- p50: "<= 100ms"
96
- p95: "<= 300ms"
97
- p99: "<= 500ms"
98
-
99
- # Throughput
100
- throughput:
101
- min_rps: 1000
102
-
103
- # Resources
104
- resources:
105
- memory_increase: "<= 10%"
106
- cpu_increase: "<= 15%"
107
-
108
- # Bundle size (for frontend)
109
- bundle:
110
- size_increase: "<= 5%"
111
- ```
112
-
113
- ### Stability Gates
114
-
115
- ```yaml
116
- promotion:
117
- gates:
118
- stability:
119
- # Soak time in staging
120
- soak_time:
121
- minimum: "4h"
122
- error_rate: "< 0.1%"
123
-
124
- # Canary requirements
125
- canary:
126
- duration: "1h"
127
- traffic_percentage: 10
128
- success_rate: ">= 99.5%"
129
- ```
130
-
131
- ---
132
-
133
- ## Promotion Strategies
134
-
135
- ### Direct Promotion
136
-
137
- ```yaml
138
- promotion:
139
- strategies:
140
- direct:
141
- description: "Immediate full deployment"
142
- use_when: "low_risk_changes"
143
-
144
- steps:
145
- - deploy_to_target
146
- - run_smoke_tests
147
- - verify_health
148
- - update_traffic
149
- ```
150
-
151
- ### Canary Promotion
152
-
153
- ```yaml
154
- promotion:
155
- strategies:
156
- canary:
157
- description: "Gradual traffic shift"
158
- use_when: "medium_risk_changes"
159
-
160
- phases:
161
- - percentage: 5
162
- duration: "15m"
163
- evaluation:
164
- - "error_rate < 1%"
165
- - "latency_p99 < 500ms"
166
-
167
- - percentage: 25
168
- duration: "30m"
169
- evaluation:
170
- - "error_rate < 0.5%"
171
- - "latency_p99 < 400ms"
172
-
173
- - percentage: 50
174
- duration: "1h"
175
- evaluation:
176
- - "error_rate < 0.1%"
177
-
178
- - percentage: 100
179
- evaluation:
180
- - "error_rate < 0.1%"
181
- - "no_user_complaints"
182
- ```
183
-
184
- ### Blue-Green Promotion
185
-
186
- ```yaml
187
- promotion:
188
- strategies:
189
- blue_green:
190
- description: "Full parallel deployment with instant switch"
191
- use_when: "high_risk_changes"
192
-
193
- steps:
194
- - deploy_to_green
195
- - run_full_test_suite
196
- - warm_up_caches
197
- - switch_traffic
198
- - monitor: "15m"
199
- - decommission_blue_or_rollback
200
- ```
201
-
202
- ### Rolling Promotion
203
-
204
- ```yaml
205
- promotion:
206
- strategies:
207
- rolling:
208
- description: "Incremental instance replacement"
209
- use_when: "standard_deployments"
210
-
211
- configuration:
212
- max_unavailable: 1
213
- max_surge: 1
214
- health_check_grace_period: "30s"
215
-
216
- steps:
217
- - replace_instance
218
- - wait_healthy
219
- - repeat_until_complete
220
- ```
221
-
222
- ---
223
-
224
- ## Approval Workflow
225
-
226
- ### Approval Configuration
227
-
228
- ```yaml
229
- promotion:
230
- approvals:
231
- staging_to_production:
232
- # Required approvers
233
- required:
234
- count: 2
235
- from:
236
- - role: "tech-lead"
237
- - role: "sre"
238
- - team: "security"
239
-
240
- # Timeout
241
- timeout: "24h"
242
- escalation_after: "4h"
243
-
244
- # Auto-approval conditions
245
- auto_approve_if:
246
- - "change_type == 'config_only'"
247
- - "change_type == 'rollback'"
248
- - "emergency_flag == true AND approved_by_manager"
249
- ```
250
-
251
- ### Approval Request Template
252
-
253
- ```yaml
254
- promotion:
255
- approvals:
256
- request_template:
257
- title: "Promotion: ${source_env} → ${target_env}"
258
- body: |
259
- ## Change Summary
260
- **Version:** ${version}
261
- **Commits:** ${commit_count}
262
- **Authors:** ${authors}
263
-
264
- ## Changes
265
- ${change_summary}
266
-
267
- ## Test Results
268
- - Unit Tests: ${unit_test_status}
269
- - Integration: ${integration_test_status}
270
- - Security Scan: ${security_scan_status}
271
-
272
- ## Risk Assessment
273
- - Risk Level: ${risk_level}
274
- - Rollback Plan: ${rollback_plan}
275
-
276
- ## Checklist
277
- - [ ] Reviewed changes
278
- - [ ] Verified test results
279
- - [ ] Confirmed rollback plan
280
- ```
281
-
282
- ---
283
-
284
- ## Promotion Notifications
285
-
286
- ### Notification Configuration
287
-
288
- ```yaml
289
- promotion:
290
- notifications:
291
- # Before promotion
292
- pre_promotion:
293
- channels:
294
- - slack: "#deployments"
295
- - email: "team@company.com"
296
- message: "🚀 Starting promotion: ${source} → ${target}"
297
-
298
- # Success
299
- promotion_success:
300
- channels:
301
- - slack: "#deployments"
302
- message: "✅ Promotion complete: ${version} deployed to ${target}"
303
-
304
- # Failure
305
- promotion_failure:
306
- channels:
307
- - slack: "#incidents"
308
- - pagerduty: "deployments"
309
- message: "❌ Promotion failed: ${error_message}"
310
-
311
- # Rollback
312
- rollback:
313
- channels:
314
- - slack: "#incidents"
315
- - email: "engineering@company.com"
316
- message: "⚠️ Rollback initiated: ${reason}"
317
- ```
318
-
319
- ---
320
-
321
- ## Promotion History
322
-
323
- ### Tracking
324
-
325
- ```yaml
326
- promotion:
327
- history:
328
- # What to track
329
- capture:
330
- - version
331
- - commits
332
- - authors
333
- - approvers
334
- - duration
335
- - test_results
336
- - metrics_snapshot
337
-
338
- # Storage
339
- storage:
340
- type: "database"
341
- retention: "1 year"
342
-
343
- # Reports
344
- reports:
345
- - type: "weekly_summary"
346
- schedule: "monday 9am"
347
- recipients: ["engineering@company.com"]
348
- ```
349
-
350
- ### Viewing History
351
-
352
- ```bash
353
- # View promotion history
354
- proagents promote history
355
-
356
- # View specific promotion
357
- proagents promote show <promotion-id>
358
-
359
- # Compare promotions
360
- proagents promote diff <id1> <id2>
361
- ```
362
-
363
- ---
364
-
365
- ## Commands
366
-
367
- ```bash
368
- # Check promotion readiness
369
- proagents promote check --from staging --to production
370
-
371
- # Start promotion
372
- proagents promote start --from staging --to production
373
-
374
- # View promotion status
375
- proagents promote status
376
-
377
- # Cancel promotion
378
- proagents promote cancel
379
-
380
- # Request approval
381
- proagents promote request-approval --from staging --to production
382
-
383
- # Approve promotion
384
- proagents promote approve <promotion-id>
385
-
386
- # Reject promotion
387
- proagents promote reject <promotion-id> --reason "Failed security review"
388
-
389
- # Emergency promotion (bypasses normal gates)
390
- proagents promote emergency --from staging --to production \
391
- --reason "Critical security fix" \
392
- --approved-by manager@company.com
393
- ```
394
-
395
- ---
396
-
397
- ## Promotion Checklist
398
-
399
- ### Pre-Promotion
400
-
401
- - [ ] All tests passing
402
- - [ ] Security scan complete
403
- - [ ] Performance baseline met
404
- - [ ] Change documented
405
- - [ ] Rollback plan ready
406
- - [ ] Monitoring alerts configured
407
-
408
- ### During Promotion
409
-
410
- - [ ] Monitor error rates
411
- - [ ] Watch latency metrics
412
- - [ ] Check health endpoints
413
- - [ ] Monitor resource usage
414
- - [ ] Watch for user complaints
415
-
416
- ### Post-Promotion
417
-
418
- - [ ] Verify all services healthy
419
- - [ ] Run smoke tests
420
- - [ ] Update status page
421
- - [ ] Notify stakeholders
422
- - [ ] Document any issues
423
- - [ ] Schedule post-mortem if needed
424
-
425
- ---
426
-
427
- ## Best Practices
428
-
429
- 1. **Automate Gates**: Don't rely on manual checks
430
- 2. **Small Changes**: Promote frequently with small changes
431
- 3. **Clear Rollback**: Always have a tested rollback plan
432
- 4. **Monitor Closely**: Watch metrics during and after promotion
433
- 5. **Document Everything**: Track all promotions and outcomes
434
- 6. **Learn from Failures**: Post-mortem every failed promotion