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,423 +0,0 @@
1
- # Sensitive Data in Logs
2
-
3
- Protecting PII and secrets from appearing in logs.
4
-
5
- ---
6
-
7
- ## What Is Sensitive Data?
8
-
9
- | Category | Examples | Risk Level |
10
- |----------|----------|------------|
11
- | **Credentials** | Passwords, API keys, tokens | Critical |
12
- | **PII** | Names, emails, phone numbers | High |
13
- | **Financial** | Credit cards, bank accounts | Critical |
14
- | **Health** | Medical records, conditions | High |
15
- | **Location** | GPS coordinates, addresses | Medium |
16
- | **Business** | Trade secrets, internal metrics | Variable |
17
-
18
- ---
19
-
20
- ## Data Classification
21
-
22
- ### Classification Configuration
23
-
24
- ```yaml
25
- # proagents.config.yaml
26
- logging:
27
- sensitive_data:
28
- classification:
29
- critical:
30
- patterns:
31
- - name: "password"
32
- regex: '(?i)(password|passwd|pwd|secret)["\s:=]+["\']?[\w\S]+'
33
-
34
- - name: "api_key"
35
- regex: '(?i)(api[_-]?key|apikey|api[_-]?secret)["\s:=]+["\']?[\w\S]+'
36
-
37
- - name: "credit_card"
38
- regex: '\b\d{4}[\s-]?\d{4}[\s-]?\d{4}[\s-]?\d{4}\b'
39
-
40
- - name: "jwt"
41
- regex: 'eyJ[A-Za-z0-9-_=]+\.eyJ[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*'
42
-
43
- high:
44
- patterns:
45
- - name: "email"
46
- regex: '\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b'
47
-
48
- - name: "phone"
49
- regex: '\b\d{3}[-.]?\d{3}[-.]?\d{4}\b'
50
-
51
- - name: "ssn"
52
- regex: '\b\d{3}-\d{2}-\d{4}\b'
53
-
54
- medium:
55
- patterns:
56
- - name: "ip_address"
57
- regex: '\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b'
58
-
59
- - name: "uuid"
60
- regex: '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
61
- ```
62
-
63
- ### Field Classification
64
-
65
- ```yaml
66
- logging:
67
- sensitive_data:
68
- fields:
69
- # Always redact
70
- always_redact:
71
- - "password"
72
- - "secret"
73
- - "token"
74
- - "api_key"
75
- - "authorization"
76
- - "cookie"
77
- - "credit_card"
78
- - "cvv"
79
- - "ssn"
80
-
81
- # Mask partially
82
- partial_mask:
83
- - field: "email"
84
- show_chars: 3
85
- mask_domain: false
86
-
87
- - field: "phone"
88
- show_chars: 4
89
- position: "end"
90
-
91
- - field: "ip_address"
92
- show_octets: 2
93
-
94
- # Hash for correlation
95
- hash:
96
- - field: "user_id"
97
- algorithm: "sha256"
98
- salt: "${HASH_SALT}"
99
- ```
100
-
101
- ---
102
-
103
- ## Redaction Strategies
104
-
105
- ### Full Redaction
106
-
107
- ```yaml
108
- logging:
109
- sensitive_data:
110
- redaction:
111
- full:
112
- # Replace with placeholder
113
- placeholder: "[REDACTED]"
114
-
115
- # Fields to fully redact
116
- fields:
117
- - "password"
118
- - "secret"
119
- - "private_key"
120
-
121
- # Patterns to fully redact
122
- patterns:
123
- - '(?i)bearer\s+[A-Za-z0-9-._~+/]+'
124
- - 'sk_live_[A-Za-z0-9]+'
125
- ```
126
-
127
- ### Partial Masking
128
-
129
- ```yaml
130
- logging:
131
- sensitive_data:
132
- redaction:
133
- partial:
134
- # Email: show first 3 chars and domain
135
- email:
136
- pattern: '([^@]{3})[^@]*(@.*)'
137
- replacement: '$1***$2'
138
- # john.doe@example.com → joh***@example.com
139
-
140
- # Phone: show last 4 digits
141
- phone:
142
- pattern: '(\d{3})[-.]?(\d{3})[-.]?(\d{4})'
143
- replacement: '***-***-$3'
144
- # 555-123-4567 → ***-***-4567
145
-
146
- # Credit card: show last 4
147
- credit_card:
148
- pattern: '(\d{4})[\s-]?(\d{4})[\s-]?(\d{4})[\s-]?(\d{4})'
149
- replacement: '****-****-****-$4'
150
- # 1234-5678-9012-3456 → ****-****-****-3456
151
-
152
- # IP: show first two octets
153
- ip:
154
- pattern: '(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})'
155
- replacement: '$1.$2.xxx.xxx'
156
- ```
157
-
158
- ### Hashing for Correlation
159
-
160
- ```yaml
161
- logging:
162
- sensitive_data:
163
- redaction:
164
- hash:
165
- # Hash user ID for privacy but maintain correlation
166
- user_id:
167
- algorithm: "sha256"
168
- truncate: 12
169
- prefix: "user:"
170
- # user-123 → user:a1b2c3d4e5f6
171
-
172
- # Hash with salt for added security
173
- email:
174
- algorithm: "sha256"
175
- salt_env: "LOG_HASH_SALT"
176
- truncate: 16
177
- ```
178
-
179
- ---
180
-
181
- ## Implementation
182
-
183
- ### Automatic Redaction
184
-
185
- ```yaml
186
- logging:
187
- sensitive_data:
188
- automatic:
189
- enabled: true
190
-
191
- # Scan all log fields
192
- scan_all_fields: true
193
-
194
- # Performance optimization
195
- max_field_length: 10000
196
- max_depth: 5
197
-
198
- # Cache compiled patterns
199
- cache_patterns: true
200
-
201
- # Fail-safe behavior
202
- on_error: "redact_entire_message"
203
- ```
204
-
205
- ### Code Integration
206
-
207
- ```typescript
208
- // Automatic redaction via logger
209
- import { createLogger, sensitiveFields } from '@proagents/logging';
210
-
211
- const logger = createLogger({
212
- sensitiveData: {
213
- // Fields to automatically redact
214
- fields: ['password', 'token', 'apiKey'],
215
-
216
- // Custom redactors
217
- redactors: {
218
- email: (value) => maskEmail(value),
219
- creditCard: (value) => maskCreditCard(value),
220
- },
221
- },
222
- });
223
-
224
- // Safe to log - sensitive data automatically redacted
225
- logger.info('User login', {
226
- email: 'user@example.com', // Will be masked
227
- password: 'secret123', // Will be [REDACTED]
228
- action: 'login', // Not redacted
229
- });
230
- ```
231
-
232
- ### Validation
233
-
234
- ```yaml
235
- logging:
236
- sensitive_data:
237
- validation:
238
- # Pre-commit hook
239
- pre_commit:
240
- enabled: true
241
- scan_for:
242
- - "hardcoded_secrets"
243
- - "logging_sensitive_fields"
244
-
245
- # CI check
246
- ci_check:
247
- enabled: true
248
- fail_on: "high_or_above"
249
-
250
- # Runtime monitoring
251
- runtime:
252
- sample_rate: 0.01
253
- alert_on_detection: true
254
- ```
255
-
256
- ---
257
-
258
- ## Compliance
259
-
260
- ### GDPR
261
-
262
- ```yaml
263
- logging:
264
- sensitive_data:
265
- compliance:
266
- gdpr:
267
- enabled: true
268
-
269
- # PII fields
270
- pii_fields:
271
- - "name"
272
- - "email"
273
- - "phone"
274
- - "address"
275
- - "ip_address"
276
-
277
- # Actions
278
- actions:
279
- production:
280
- - "hash_pii"
281
- - "limit_retention"
282
-
283
- development:
284
- - "redact_pii"
285
-
286
- # Retention
287
- retention:
288
- pii_logs: "30d"
289
- anonymized_logs: "2y"
290
- ```
291
-
292
- ### HIPAA
293
-
294
- ```yaml
295
- logging:
296
- sensitive_data:
297
- compliance:
298
- hipaa:
299
- enabled: true
300
-
301
- # PHI fields
302
- phi_fields:
303
- - "patient_id"
304
- - "medical_record"
305
- - "diagnosis"
306
- - "treatment"
307
-
308
- # Requirements
309
- requirements:
310
- - "encrypt_at_rest"
311
- - "encrypt_in_transit"
312
- - "access_logging"
313
- - "audit_trail"
314
- ```
315
-
316
- ### PCI-DSS
317
-
318
- ```yaml
319
- logging:
320
- sensitive_data:
321
- compliance:
322
- pci_dss:
323
- enabled: true
324
-
325
- # Card data
326
- card_fields:
327
- - "card_number"
328
- - "cvv"
329
- - "expiry"
330
- - "cardholder_name"
331
-
332
- # Requirements
333
- requirements:
334
- never_log:
335
- - "cvv"
336
- - "pin"
337
- - "full_card_number"
338
-
339
- mask_required:
340
- - "card_number" # Show only last 4
341
- ```
342
-
343
- ---
344
-
345
- ## Monitoring & Alerts
346
-
347
- ### Detection Alerts
348
-
349
- ```yaml
350
- logging:
351
- sensitive_data:
352
- monitoring:
353
- # Alert on potential leaks
354
- alerts:
355
- - name: "Potential Secret Leak"
356
- pattern: '(?i)(password|secret|key)["\s:=]+["\']?[A-Za-z0-9/+=]+'
357
- severity: "critical"
358
- notify: ["security@company.com", "#security-alerts"]
359
-
360
- - name: "Potential PII Leak"
361
- pattern: '\b\d{3}-\d{2}-\d{4}\b' # SSN pattern
362
- severity: "high"
363
- notify: ["compliance@company.com"]
364
-
365
- # Metrics
366
- metrics:
367
- - name: "sensitive_data_detections"
368
- type: "counter"
369
- labels: ["type", "severity"]
370
- ```
371
-
372
- ### Audit Logging
373
-
374
- ```yaml
375
- logging:
376
- sensitive_data:
377
- audit:
378
- # Log redaction events
379
- log_redactions: true
380
-
381
- # Track access to sensitive logs
382
- access_logging:
383
- enabled: true
384
- log_queries: true
385
- log_exports: true
386
-
387
- # Retention
388
- retention: "2y"
389
- ```
390
-
391
- ---
392
-
393
- ## Commands
394
-
395
- ```bash
396
- # Scan logs for sensitive data
397
- proagents logs scan --type secrets
398
-
399
- # Validate redaction rules
400
- proagents logs validate-redaction
401
-
402
- # Test redaction on sample
403
- proagents logs test-redact --input sample.log
404
-
405
- # Generate compliance report
406
- proagents logs compliance-report --standard gdpr
407
-
408
- # Audit log access
409
- proagents logs audit --last 30d
410
- ```
411
-
412
- ---
413
-
414
- ## Best Practices
415
-
416
- 1. **Never Log Secrets**: No passwords, API keys, or tokens
417
- 2. **Mask PII**: Email, phone, addresses should be masked
418
- 3. **Hash for Correlation**: Use hashing when you need to correlate
419
- 4. **Validate Automatically**: Use pre-commit hooks and CI checks
420
- 5. **Monitor for Leaks**: Alert on potential sensitive data
421
- 6. **Regular Audits**: Review logs periodically for compliance
422
- 7. **Retention Policies**: Delete logs containing sensitive data
423
- 8. **Encryption**: Encrypt logs at rest and in transit