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,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