proagents 1.6.16 → 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 (170) hide show
  1. package/.claude/settings.local.json +169 -0
  2. package/COMMANDS.md +595 -0
  3. package/README.md +22 -64
  4. package/bin/proagents.js +0 -2
  5. package/lib/commands/init.js +4 -174
  6. package/package.json +2 -7
  7. package/.proagents/ai-models/README.md +0 -141
  8. package/.proagents/ai-models/cost-management.md +0 -362
  9. package/.proagents/ai-models/fallbacks.md +0 -342
  10. package/.proagents/ai-models/model-config.md +0 -318
  11. package/.proagents/ai-models/task-routing.md +0 -503
  12. package/.proagents/ai-training/README.md +0 -155
  13. package/.proagents/ai-training/continuous-learning.md +0 -413
  14. package/.proagents/ai-training/domain-knowledge.md +0 -378
  15. package/.proagents/ai-training/pattern-learning.md +0 -455
  16. package/.proagents/ai-training/training-data.md +0 -337
  17. package/.proagents/ai-training/user-preferences.md +0 -346
  18. package/.proagents/approval-workflows/README.md +0 -146
  19. package/.proagents/approval-workflows/approval-config.md +0 -332
  20. package/.proagents/approval-workflows/approval-stages.md +0 -503
  21. package/.proagents/approval-workflows/emergency-bypass.md +0 -351
  22. package/.proagents/approval-workflows/examples.md +0 -859
  23. package/.proagents/approval-workflows/notifications.md +0 -320
  24. package/.proagents/compliance/README.md +0 -206
  25. package/.proagents/compliance/access-control.md +0 -310
  26. package/.proagents/compliance/audit-logging.md +0 -444
  27. package/.proagents/compliance/compliance-frameworks.md +0 -429
  28. package/.proagents/compliance/reports.md +0 -491
  29. package/.proagents/compliance/retention-policies.md +0 -454
  30. package/.proagents/config-versioning/README.md +0 -120
  31. package/.proagents/config-versioning/changelog.md +0 -300
  32. package/.proagents/config-versioning/rollback.md +0 -283
  33. package/.proagents/config-versioning/versioning.md +0 -330
  34. package/.proagents/contract-testing/README.md +0 -223
  35. package/.proagents/contract-testing/contract-testing.md +0 -614
  36. package/.proagents/contract-testing/pact-integration.md +0 -507
  37. package/.proagents/contract-testing/schema-validation.md +0 -565
  38. package/.proagents/dependency-management/README.md +0 -140
  39. package/.proagents/dependency-management/automation.md +0 -363
  40. package/.proagents/dependency-management/compatibility.md +0 -319
  41. package/.proagents/dependency-management/security-scanning.md +0 -413
  42. package/.proagents/dependency-management/update-policies.md +0 -374
  43. package/.proagents/disaster-recovery/README.md +0 -247
  44. package/.proagents/disaster-recovery/automation.md +0 -366
  45. package/.proagents/disaster-recovery/backup-recovery.md +0 -571
  46. package/.proagents/disaster-recovery/incident-response.md +0 -565
  47. package/.proagents/disaster-recovery/rollback-procedures.md +0 -499
  48. package/.proagents/disaster-recovery/runbooks.md +0 -603
  49. package/.proagents/disaster-recovery/scenarios.md +0 -892
  50. package/.proagents/disaster-recovery/testing.md +0 -438
  51. package/.proagents/environments/README.md +0 -244
  52. package/.proagents/environments/configuration.md +0 -437
  53. package/.proagents/environments/promotion.md +0 -434
  54. package/.proagents/environments/setup.md +0 -420
  55. package/.proagents/examples/README.md +0 -55
  56. package/.proagents/examples/backend-nodejs/README.md +0 -188
  57. package/.proagents/examples/backend-nodejs/complete-conversation.md +0 -601
  58. package/.proagents/examples/backend-nodejs/proagents.config.yaml +0 -415
  59. package/.proagents/examples/backend-nodejs/workflow-example.md +0 -909
  60. package/.proagents/examples/fullstack-nextjs/README.md +0 -155
  61. package/.proagents/examples/fullstack-nextjs/complete-conversation.md +0 -604
  62. package/.proagents/examples/fullstack-nextjs/proagents.config.yaml +0 -287
  63. package/.proagents/examples/fullstack-nextjs/workflow-example.md +0 -553
  64. package/.proagents/examples/mobile-react-native/README.md +0 -171
  65. package/.proagents/examples/mobile-react-native/complete-conversation.md +0 -825
  66. package/.proagents/examples/mobile-react-native/proagents.config.yaml +0 -330
  67. package/.proagents/examples/mobile-react-native/workflow-example.md +0 -723
  68. package/.proagents/examples/web-frontend-react/README.md +0 -125
  69. package/.proagents/examples/web-frontend-react/complete-conversation.md +0 -556
  70. package/.proagents/examples/web-frontend-react/proagents.config.yaml +0 -183
  71. package/.proagents/examples/web-frontend-react/workflow-example.md +0 -603
  72. package/.proagents/existing-projects/README.md +0 -65
  73. package/.proagents/existing-projects/challenges.md +0 -861
  74. package/.proagents/existing-projects/coexistence-mode.md +0 -483
  75. package/.proagents/existing-projects/compatibility-assessment.md +0 -541
  76. package/.proagents/existing-projects/gradual-adoption.md +0 -515
  77. package/.proagents/existing-projects/migration-strategies.md +0 -788
  78. package/.proagents/existing-projects/pattern-reconciliation.md +0 -489
  79. package/.proagents/existing-projects/team-onboarding.md +0 -617
  80. package/.proagents/existing-projects/technical-debt-handling.md +0 -644
  81. package/.proagents/feature-flags/README.md +0 -263
  82. package/.proagents/feature-flags/ab-testing.md +0 -413
  83. package/.proagents/feature-flags/configuration.md +0 -420
  84. package/.proagents/feature-flags/kill-switches.md +0 -444
  85. package/.proagents/feature-flags/rollout-strategies.md +0 -392
  86. package/.proagents/history.log +0 -12
  87. package/.proagents/i18n/README.md +0 -133
  88. package/.proagents/i18n/extraction.md +0 -433
  89. package/.proagents/i18n/tms-integration.md +0 -332
  90. package/.proagents/i18n/translation-workflow.md +0 -413
  91. package/.proagents/i18n/validation.md +0 -355
  92. package/.proagents/logging/README.md +0 -276
  93. package/.proagents/logging/aggregation.md +0 -475
  94. package/.proagents/logging/log-levels.md +0 -376
  95. package/.proagents/logging/sensitive-data.md +0 -423
  96. package/.proagents/logging/structured-logging.md +0 -406
  97. package/.proagents/metrics/README.md +0 -69
  98. package/.proagents/metrics/code-quality-kpis.md +0 -461
  99. package/.proagents/metrics/deployment-metrics.md +0 -517
  100. package/.proagents/metrics/developer-productivity.md +0 -368
  101. package/.proagents/metrics/learning-effectiveness.md +0 -478
  102. package/.proagents/migrations/README.md +0 -77
  103. package/.proagents/migrations/from-claude-projects.md +0 -313
  104. package/.proagents/migrations/from-cursor-rules.md +0 -345
  105. package/.proagents/migrations/from-custom-workflows.md +0 -410
  106. package/.proagents/monitoring/README.md +0 -308
  107. package/.proagents/monitoring/alerting.md +0 -449
  108. package/.proagents/monitoring/dashboards.md +0 -454
  109. package/.proagents/monitoring/health-checks.md +0 -436
  110. package/.proagents/monitoring/metrics.md +0 -434
  111. package/.proagents/multi-project/README.md +0 -170
  112. package/.proagents/multi-project/coordinated-deploy.md +0 -510
  113. package/.proagents/multi-project/cross-project-deps.md +0 -395
  114. package/.proagents/multi-project/unified-changelog.md +0 -477
  115. package/.proagents/multi-project/walkthroughs/monorepo-setup.md +0 -787
  116. package/.proagents/multi-project/workspace-config.md +0 -408
  117. package/.proagents/notifications/README.md +0 -151
  118. package/.proagents/notifications/channels.md +0 -457
  119. package/.proagents/notifications/preferences.md +0 -415
  120. package/.proagents/notifications/routing.md +0 -449
  121. package/.proagents/notifications/scheduling.md +0 -425
  122. package/.proagents/notifications/templates.md +0 -446
  123. package/.proagents/offline-mode/README.md +0 -145
  124. package/.proagents/offline-mode/caching.md +0 -344
  125. package/.proagents/offline-mode/offline-operations.md +0 -312
  126. package/.proagents/offline-mode/queue-specifications.md +0 -679
  127. package/.proagents/offline-mode/sync.md +0 -475
  128. package/.proagents/parallel-features/README.md +0 -85
  129. package/.proagents/parallel-features/conflict-detection.md +0 -226
  130. package/.proagents/parallel-features/dependency-management.md +0 -392
  131. package/.proagents/parallel-features/merge-coordination.md +0 -506
  132. package/.proagents/parallel-features/tracking-system.md +0 -416
  133. package/.proagents/performance/README.md +0 -59
  134. package/.proagents/performance/bundle-analysis.md +0 -375
  135. package/.proagents/performance/load-testing.md +0 -563
  136. package/.proagents/performance/runtime-metrics.md +0 -489
  137. package/.proagents/performance/web-vitals.md +0 -425
  138. package/.proagents/plugins/README.md +0 -139
  139. package/.proagents/plugins/creating-plugins.md +0 -504
  140. package/.proagents/plugins/plugin-api.md +0 -467
  141. package/.proagents/plugins/plugin-registry.md +0 -276
  142. package/.proagents/reporting/README.md +0 -158
  143. package/.proagents/reporting/dashboards.md +0 -366
  144. package/.proagents/reporting/exports.md +0 -524
  145. package/.proagents/reporting/quality-metrics.md +0 -385
  146. package/.proagents/reporting/templates/README.md +0 -56
  147. package/.proagents/reporting/templates/dashboard-config.json +0 -187
  148. package/.proagents/reporting/templates/metrics-queries.md +0 -427
  149. package/.proagents/reporting/templates/react-dashboard.tsx +0 -544
  150. package/.proagents/reporting/templates/widgets.md +0 -451
  151. package/.proagents/reporting/velocity-metrics.md +0 -340
  152. package/.proagents/reverse-engineering/README.md +0 -151
  153. package/.proagents/reverse-engineering/architecture-extraction.md +0 -325
  154. package/.proagents/reverse-engineering/code-analysis.md +0 -377
  155. package/.proagents/reverse-engineering/dependency-mapping.md +0 -567
  156. package/.proagents/reverse-engineering/diagram-generation.md +0 -586
  157. package/.proagents/reverse-engineering/documentation-generation.md +0 -468
  158. package/.proagents/reverse-engineering/pattern-detection.md +0 -569
  159. package/.proagents/reverse-engineering/quality-assessment.md +0 -733
  160. package/.proagents/secrets/README.md +0 -278
  161. package/.proagents/secrets/access-control.md +0 -443
  162. package/.proagents/secrets/rotation.md +0 -403
  163. package/.proagents/secrets/scanning.md +0 -487
  164. package/.proagents/secrets/storage.md +0 -394
  165. package/.proagents/webhooks/README.md +0 -126
  166. package/.proagents/webhooks/endpoints.md +0 -298
  167. package/.proagents/webhooks/events.md +0 -316
  168. package/.proagents/webhooks/payloads.md +0 -325
  169. package/.proagents/webhooks/reliability.md +0 -363
  170. package/.proagents/webhooks/security.md +0 -380
@@ -1,503 +0,0 @@
1
- # Approval Stages
2
-
3
- Define and configure multi-stage approval workflows.
4
-
5
- ---
6
-
7
- ## Stage Overview
8
-
9
- ```
10
- ┌─────────────────────────────────────────────────────────────┐
11
- │ Approval Pipeline │
12
- ├─────────────────────────────────────────────────────────────┤
13
- │ │
14
- │ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌────────┐ │
15
- │ │ Stage 1 │──▶│ Stage 2 │──▶│ Stage 3 │──▶│ Deploy │ │
16
- │ │ Review │ │ Security │ │ Manager │ │ │ │
17
- │ └──────────┘ └──────────┘ └──────────┘ └────────┘ │
18
- │ │
19
- │ Each stage can have: │
20
- │ • Required approvers │
21
- │ • Auto-approval rules │
22
- │ • Timeout settings │
23
- │ • Escalation paths │
24
- │ │
25
- └─────────────────────────────────────────────────────────────┘
26
- ```
27
-
28
- ---
29
-
30
- ## Stage Configuration
31
-
32
- ### Defining Stages
33
-
34
- ```yaml
35
- approvals:
36
- stages:
37
- # Stage 1: Code Review
38
- - name: "code_review"
39
- display_name: "Code Review"
40
- order: 1
41
-
42
- # Who can approve
43
- approvers:
44
- roles: ["senior_developer", "tech_lead"]
45
- teams: ["core-team"]
46
- minimum_approvals: 1
47
-
48
- # Conditions
49
- conditions:
50
- applies_to:
51
- - "all_features"
52
- - "all_bug_fixes"
53
-
54
- # Timing
55
- timeout: "24h"
56
- reminder_after: "4h"
57
-
58
- # Stage 2: Security Review
59
- - name: "security_review"
60
- display_name: "Security Review"
61
- order: 2
62
-
63
- approvers:
64
- roles: ["security_engineer"]
65
- teams: ["security-team"]
66
- minimum_approvals: 1
67
-
68
- conditions:
69
- applies_when:
70
- - "touches_auth_code"
71
- - "touches_payment_code"
72
- - "modifies_user_data"
73
- - "adds_dependencies"
74
-
75
- # Skip if not applicable
76
- skip_if_not_applicable: true
77
-
78
- # Stage 3: Manager Approval
79
- - name: "manager_approval"
80
- display_name: "Manager Approval"
81
- order: 3
82
-
83
- approvers:
84
- roles: ["engineering_manager", "director"]
85
- minimum_approvals: 1
86
-
87
- conditions:
88
- applies_when:
89
- - "production_deployment"
90
- - "breaking_change"
91
- - "large_feature"
92
- ```
93
-
94
- ---
95
-
96
- ## Stage Types
97
-
98
- ### Sequential Stages
99
-
100
- ```yaml
101
- approvals:
102
- flow: "sequential" # Stages must complete in order
103
-
104
- stages:
105
- - name: "review"
106
- order: 1
107
- # Must complete before stage 2
108
-
109
- - name: "security"
110
- order: 2
111
- depends_on: ["review"]
112
-
113
- - name: "manager"
114
- order: 3
115
- depends_on: ["security"]
116
- ```
117
-
118
- ### Parallel Stages
119
-
120
- ```yaml
121
- approvals:
122
- flow: "parallel" # Some stages can run simultaneously
123
-
124
- stages:
125
- - name: "code_review"
126
- order: 1
127
- parallel_group: "technical"
128
-
129
- - name: "security_review"
130
- order: 1
131
- parallel_group: "technical"
132
- # Runs in parallel with code_review
133
-
134
- - name: "manager_approval"
135
- order: 2
136
- depends_on: ["code_review", "security_review"]
137
- # Runs after both parallel stages complete
138
- ```
139
-
140
- ### Conditional Stages
141
-
142
- ```yaml
143
- approvals:
144
- stages:
145
- - name: "legal_review"
146
- display_name: "Legal Review"
147
-
148
- # Only applies under certain conditions
149
- conditional: true
150
-
151
- applies_when:
152
- any:
153
- - "changes_terms_of_service"
154
- - "changes_privacy_policy"
155
- - "adds_third_party_integration"
156
-
157
- file_patterns:
158
- - "src/legal/**"
159
- - "docs/legal/**"
160
- - "content/policies/**"
161
-
162
- # If conditions not met, skip stage
163
- skip_if_not_applicable: true
164
- ```
165
-
166
- ---
167
-
168
- ## Approver Rules
169
-
170
- ### Role-Based Approvers
171
-
172
- ```yaml
173
- approvals:
174
- stages:
175
- - name: "technical_review"
176
- approvers:
177
- # Require specific roles
178
- roles:
179
- - "senior_developer"
180
- - "tech_lead"
181
- - "architect"
182
-
183
- # Minimum approvals needed
184
- minimum_approvals: 2
185
-
186
- # All must approve
187
- require_all: false
188
-
189
- # Cannot approve own changes
190
- exclude_author: true
191
- ```
192
-
193
- ### Team-Based Approvers
194
-
195
- ```yaml
196
- approvals:
197
- stages:
198
- - name: "team_review"
199
- approvers:
200
- teams:
201
- - name: "frontend-team"
202
- applies_to: "src/frontend/**"
203
- - name: "backend-team"
204
- applies_to: "src/backend/**"
205
- - name: "devops-team"
206
- applies_to: "infrastructure/**"
207
-
208
- # At least one from applicable team
209
- minimum_approvals: 1
210
- ```
211
-
212
- ### Individual Approvers
213
-
214
- ```yaml
215
- approvals:
216
- stages:
217
- - name: "architect_review"
218
- approvers:
219
- individuals:
220
- - "alice@company.com"
221
- - "bob@company.com"
222
-
223
- # Require specific person
224
- require_specific:
225
- - user: "alice@company.com"
226
- when: "architecture_change"
227
- ```
228
-
229
- ### CODEOWNERS Integration
230
-
231
- ```yaml
232
- approvals:
233
- stages:
234
- - name: "codeowner_review"
235
- approvers:
236
- # Use CODEOWNERS file
237
- from_codeowners: true
238
-
239
- # Require codeowner approval
240
- codeowner_required: true
241
-
242
- # Additional approvers
243
- additional_roles:
244
- - "tech_lead"
245
- ```
246
-
247
- ---
248
-
249
- ## Auto-Approval Rules
250
-
251
- ### Automatic Approvals
252
-
253
- ```yaml
254
- approvals:
255
- stages:
256
- - name: "code_review"
257
-
258
- auto_approve:
259
- enabled: true
260
-
261
- conditions:
262
- all:
263
- - "all_tests_pass"
264
- - "no_security_issues"
265
- - "no_breaking_changes"
266
- - "coverage_meets_threshold"
267
-
268
- any:
269
- - "documentation_only"
270
- - "config_change_only"
271
- - "test_files_only"
272
-
273
- # File pattern rules
274
- file_patterns:
275
- auto_approve:
276
- - "*.md"
277
- - "docs/**"
278
- - "*.test.ts"
279
-
280
- never_auto_approve:
281
- - "src/auth/**"
282
- - "src/payments/**"
283
- - "*.env*"
284
- ```
285
-
286
- ### Bot Approvals
287
-
288
- ```yaml
289
- approvals:
290
- stages:
291
- - name: "automated_checks"
292
-
293
- bot_approvals:
294
- enabled: true
295
-
296
- bots:
297
- - name: "security-scanner"
298
- approves_when: "no_vulnerabilities"
299
-
300
- - name: "coverage-bot"
301
- approves_when: "coverage >= 80%"
302
-
303
- - name: "lint-bot"
304
- approves_when: "no_lint_errors"
305
- ```
306
-
307
- ---
308
-
309
- ## Timing & Escalation
310
-
311
- ### Timeout Configuration
312
-
313
- ```yaml
314
- approvals:
315
- stages:
316
- - name: "code_review"
317
-
318
- timing:
319
- # Maximum time for stage
320
- timeout: "24h"
321
-
322
- # Reminder before timeout
323
- reminder_at:
324
- - "4h"
325
- - "12h"
326
- - "20h"
327
-
328
- # Business hours only
329
- business_hours_only: true
330
- business_hours:
331
- start: "09:00"
332
- end: "18:00"
333
- timezone: "America/New_York"
334
- days: ["mon", "tue", "wed", "thu", "fri"]
335
- ```
336
-
337
- ### Escalation Rules
338
-
339
- ```yaml
340
- approvals:
341
- stages:
342
- - name: "manager_approval"
343
-
344
- escalation:
345
- enabled: true
346
-
347
- levels:
348
- - after: "24h"
349
- escalate_to: ["director"]
350
- action: "notify"
351
-
352
- - after: "48h"
353
- escalate_to: ["vp_engineering"]
354
- action: "notify"
355
-
356
- - after: "72h"
357
- escalate_to: ["cto"]
358
- action: "auto_approve_with_audit"
359
-
360
- # Escalation message
361
- message: |
362
- Approval pending for {{feature.name}}
363
- Awaiting since: {{pending_since}}
364
- Original approvers: {{original_approvers}}
365
- ```
366
-
367
- ---
368
-
369
- ## Stage Actions
370
-
371
- ### Pre-Stage Actions
372
-
373
- ```yaml
374
- approvals:
375
- stages:
376
- - name: "security_review"
377
-
378
- pre_actions:
379
- - type: "run_scan"
380
- command: "security-scan"
381
- must_pass: true
382
-
383
- - type: "generate_report"
384
- template: "security-report"
385
-
386
- - type: "notify"
387
- channel: "security-team"
388
- message: "Security review required for {{feature.name}}"
389
- ```
390
-
391
- ### Post-Stage Actions
392
-
393
- ```yaml
394
- approvals:
395
- stages:
396
- - name: "code_review"
397
-
398
- post_actions:
399
- on_approve:
400
- - type: "update_status"
401
- status: "review_complete"
402
- - type: "notify"
403
- message: "Code review approved"
404
-
405
- on_reject:
406
- - type: "update_status"
407
- status: "changes_requested"
408
- - type: "notify"
409
- message: "Changes requested in code review"
410
- - type: "assign_back"
411
- to: "author"
412
- ```
413
-
414
- ---
415
-
416
- ## Rejection Handling
417
-
418
- ### Rejection Flow
419
-
420
- ```yaml
421
- approvals:
422
- stages:
423
- - name: "code_review"
424
-
425
- rejection:
426
- # Require reason
427
- require_reason: true
428
-
429
- # Actions on rejection
430
- actions:
431
- - notify_author: true
432
- - reset_stage: true
433
- - create_task: true
434
-
435
- # Re-review after changes
436
- re_review:
437
- required: true
438
- same_reviewer: "preferred"
439
-
440
- # Maximum rejections
441
- max_rejections: 3
442
- on_max_rejections: "escalate_to_manager"
443
- ```
444
-
445
- ### Rejection Reasons
446
-
447
- ```yaml
448
- approvals:
449
- rejection_reasons:
450
- predefined:
451
- - id: "code_quality"
452
- label: "Code quality issues"
453
- - id: "missing_tests"
454
- label: "Missing or inadequate tests"
455
- - id: "security_concern"
456
- label: "Security concerns"
457
- - id: "architecture"
458
- label: "Architecture concerns"
459
- - id: "documentation"
460
- label: "Missing documentation"
461
- - id: "other"
462
- label: "Other (please specify)"
463
-
464
- require_comment: true
465
- ```
466
-
467
- ---
468
-
469
- ## Stage Dashboard
470
-
471
- ```
472
- ┌─────────────────────────────────────────────────────────────┐
473
- │ Feature: user-authentication │
474
- │ Status: Awaiting Approval │
475
- ├─────────────────────────────────────────────────────────────┤
476
- │ │
477
- │ Stage 1: Code Review │
478
- │ Status: ✅ Approved │
479
- │ Approved by: alice@company.com (2h ago) │
480
- │ │
481
- │ Stage 2: Security Review │
482
- │ Status: 🔄 Pending │
483
- │ Awaiting: security-team │
484
- │ Time remaining: 22h │
485
- │ │
486
- │ Stage 3: Manager Approval │
487
- │ Status: ⏳ Waiting for previous stage │
488
- │ │
489
- │ [Remind] [Escalate] [Skip (requires justification)] │
490
- │ │
491
- └─────────────────────────────────────────────────────────────┘
492
- ```
493
-
494
- ---
495
-
496
- ## Best Practices
497
-
498
- 1. **Minimize Stages**: Only add necessary approval stages
499
- 2. **Clear Criteria**: Define when each stage applies
500
- 3. **Reasonable Timeouts**: Set realistic time limits
501
- 4. **Auto-Approve When Possible**: Reduce manual overhead
502
- 5. **Escalation Paths**: Always have escalation defined
503
- 6. **Track Metrics**: Monitor approval times and bottlenecks