proagents 1.6.17 → 1.6.19

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 (185) hide show
  1. package/.claude/settings.local.json +169 -0
  2. package/.proagents/AGENTS.md +2 -0
  3. package/.proagents/AI_INSTRUCTIONS.md +13 -0
  4. package/.proagents/ANTIGRAVITY.md +2 -0
  5. package/.proagents/BOLT.md +2 -0
  6. package/.proagents/CHATGPT.md +2 -0
  7. package/.proagents/CLAUDE.md +2 -0
  8. package/.proagents/GEMINI.md +2 -0
  9. package/.proagents/GROQ.md +2 -0
  10. package/.proagents/KIRO.md +2 -0
  11. package/.proagents/LOVABLE.md +2 -0
  12. package/.proagents/PROAGENTS.md +2 -0
  13. package/.proagents/REPLIT.md +2 -0
  14. package/.proagents/prompts/00-project-setup.md +878 -0
  15. package/.proagents/prompts/04-planning.md +38 -0
  16. package/.proagents/prompts/12-rnd.md +957 -0
  17. package/.proagents/workflow-modes/entry-modes.md +27 -0
  18. package/.proagents/worklog/_context.template.md +47 -0
  19. package/COMMANDS.md +654 -0
  20. package/README.md +16 -24
  21. package/package.json +2 -7
  22. package/.proagents/ai-models/README.md +0 -141
  23. package/.proagents/ai-models/cost-management.md +0 -362
  24. package/.proagents/ai-models/fallbacks.md +0 -342
  25. package/.proagents/ai-models/model-config.md +0 -318
  26. package/.proagents/ai-models/task-routing.md +0 -503
  27. package/.proagents/ai-training/README.md +0 -155
  28. package/.proagents/ai-training/continuous-learning.md +0 -413
  29. package/.proagents/ai-training/domain-knowledge.md +0 -378
  30. package/.proagents/ai-training/pattern-learning.md +0 -455
  31. package/.proagents/ai-training/training-data.md +0 -337
  32. package/.proagents/ai-training/user-preferences.md +0 -346
  33. package/.proagents/approval-workflows/README.md +0 -146
  34. package/.proagents/approval-workflows/approval-config.md +0 -332
  35. package/.proagents/approval-workflows/approval-stages.md +0 -503
  36. package/.proagents/approval-workflows/emergency-bypass.md +0 -351
  37. package/.proagents/approval-workflows/examples.md +0 -859
  38. package/.proagents/approval-workflows/notifications.md +0 -320
  39. package/.proagents/compliance/README.md +0 -206
  40. package/.proagents/compliance/access-control.md +0 -310
  41. package/.proagents/compliance/audit-logging.md +0 -444
  42. package/.proagents/compliance/compliance-frameworks.md +0 -429
  43. package/.proagents/compliance/reports.md +0 -491
  44. package/.proagents/compliance/retention-policies.md +0 -454
  45. package/.proagents/config-versioning/README.md +0 -120
  46. package/.proagents/config-versioning/changelog.md +0 -300
  47. package/.proagents/config-versioning/rollback.md +0 -283
  48. package/.proagents/config-versioning/versioning.md +0 -330
  49. package/.proagents/contract-testing/README.md +0 -223
  50. package/.proagents/contract-testing/contract-testing.md +0 -614
  51. package/.proagents/contract-testing/pact-integration.md +0 -507
  52. package/.proagents/contract-testing/schema-validation.md +0 -565
  53. package/.proagents/dependency-management/README.md +0 -140
  54. package/.proagents/dependency-management/automation.md +0 -363
  55. package/.proagents/dependency-management/compatibility.md +0 -319
  56. package/.proagents/dependency-management/security-scanning.md +0 -413
  57. package/.proagents/dependency-management/update-policies.md +0 -374
  58. package/.proagents/disaster-recovery/README.md +0 -247
  59. package/.proagents/disaster-recovery/automation.md +0 -366
  60. package/.proagents/disaster-recovery/backup-recovery.md +0 -571
  61. package/.proagents/disaster-recovery/incident-response.md +0 -565
  62. package/.proagents/disaster-recovery/rollback-procedures.md +0 -499
  63. package/.proagents/disaster-recovery/runbooks.md +0 -603
  64. package/.proagents/disaster-recovery/scenarios.md +0 -892
  65. package/.proagents/disaster-recovery/testing.md +0 -438
  66. package/.proagents/environments/README.md +0 -244
  67. package/.proagents/environments/configuration.md +0 -437
  68. package/.proagents/environments/promotion.md +0 -434
  69. package/.proagents/environments/setup.md +0 -420
  70. package/.proagents/examples/README.md +0 -55
  71. package/.proagents/examples/backend-nodejs/README.md +0 -188
  72. package/.proagents/examples/backend-nodejs/complete-conversation.md +0 -601
  73. package/.proagents/examples/backend-nodejs/proagents.config.yaml +0 -415
  74. package/.proagents/examples/backend-nodejs/workflow-example.md +0 -909
  75. package/.proagents/examples/fullstack-nextjs/README.md +0 -155
  76. package/.proagents/examples/fullstack-nextjs/complete-conversation.md +0 -604
  77. package/.proagents/examples/fullstack-nextjs/proagents.config.yaml +0 -287
  78. package/.proagents/examples/fullstack-nextjs/workflow-example.md +0 -553
  79. package/.proagents/examples/mobile-react-native/README.md +0 -171
  80. package/.proagents/examples/mobile-react-native/complete-conversation.md +0 -825
  81. package/.proagents/examples/mobile-react-native/proagents.config.yaml +0 -330
  82. package/.proagents/examples/mobile-react-native/workflow-example.md +0 -723
  83. package/.proagents/examples/web-frontend-react/README.md +0 -125
  84. package/.proagents/examples/web-frontend-react/complete-conversation.md +0 -556
  85. package/.proagents/examples/web-frontend-react/proagents.config.yaml +0 -183
  86. package/.proagents/examples/web-frontend-react/workflow-example.md +0 -603
  87. package/.proagents/existing-projects/README.md +0 -65
  88. package/.proagents/existing-projects/challenges.md +0 -861
  89. package/.proagents/existing-projects/coexistence-mode.md +0 -483
  90. package/.proagents/existing-projects/compatibility-assessment.md +0 -541
  91. package/.proagents/existing-projects/gradual-adoption.md +0 -515
  92. package/.proagents/existing-projects/migration-strategies.md +0 -788
  93. package/.proagents/existing-projects/pattern-reconciliation.md +0 -489
  94. package/.proagents/existing-projects/team-onboarding.md +0 -617
  95. package/.proagents/existing-projects/technical-debt-handling.md +0 -644
  96. package/.proagents/feature-flags/README.md +0 -263
  97. package/.proagents/feature-flags/ab-testing.md +0 -413
  98. package/.proagents/feature-flags/configuration.md +0 -420
  99. package/.proagents/feature-flags/kill-switches.md +0 -444
  100. package/.proagents/feature-flags/rollout-strategies.md +0 -392
  101. package/.proagents/history.log +0 -12
  102. package/.proagents/i18n/README.md +0 -133
  103. package/.proagents/i18n/extraction.md +0 -433
  104. package/.proagents/i18n/tms-integration.md +0 -332
  105. package/.proagents/i18n/translation-workflow.md +0 -413
  106. package/.proagents/i18n/validation.md +0 -355
  107. package/.proagents/logging/README.md +0 -276
  108. package/.proagents/logging/aggregation.md +0 -475
  109. package/.proagents/logging/log-levels.md +0 -376
  110. package/.proagents/logging/sensitive-data.md +0 -423
  111. package/.proagents/logging/structured-logging.md +0 -406
  112. package/.proagents/metrics/README.md +0 -69
  113. package/.proagents/metrics/code-quality-kpis.md +0 -461
  114. package/.proagents/metrics/deployment-metrics.md +0 -517
  115. package/.proagents/metrics/developer-productivity.md +0 -368
  116. package/.proagents/metrics/learning-effectiveness.md +0 -478
  117. package/.proagents/migrations/README.md +0 -77
  118. package/.proagents/migrations/from-claude-projects.md +0 -313
  119. package/.proagents/migrations/from-cursor-rules.md +0 -345
  120. package/.proagents/migrations/from-custom-workflows.md +0 -410
  121. package/.proagents/monitoring/README.md +0 -308
  122. package/.proagents/monitoring/alerting.md +0 -449
  123. package/.proagents/monitoring/dashboards.md +0 -454
  124. package/.proagents/monitoring/health-checks.md +0 -436
  125. package/.proagents/monitoring/metrics.md +0 -434
  126. package/.proagents/multi-project/README.md +0 -170
  127. package/.proagents/multi-project/coordinated-deploy.md +0 -510
  128. package/.proagents/multi-project/cross-project-deps.md +0 -395
  129. package/.proagents/multi-project/unified-changelog.md +0 -477
  130. package/.proagents/multi-project/walkthroughs/monorepo-setup.md +0 -787
  131. package/.proagents/multi-project/workspace-config.md +0 -408
  132. package/.proagents/notifications/README.md +0 -151
  133. package/.proagents/notifications/channels.md +0 -457
  134. package/.proagents/notifications/preferences.md +0 -415
  135. package/.proagents/notifications/routing.md +0 -449
  136. package/.proagents/notifications/scheduling.md +0 -425
  137. package/.proagents/notifications/templates.md +0 -446
  138. package/.proagents/offline-mode/README.md +0 -145
  139. package/.proagents/offline-mode/caching.md +0 -344
  140. package/.proagents/offline-mode/offline-operations.md +0 -312
  141. package/.proagents/offline-mode/queue-specifications.md +0 -679
  142. package/.proagents/offline-mode/sync.md +0 -475
  143. package/.proagents/parallel-features/README.md +0 -85
  144. package/.proagents/parallel-features/conflict-detection.md +0 -226
  145. package/.proagents/parallel-features/dependency-management.md +0 -392
  146. package/.proagents/parallel-features/merge-coordination.md +0 -506
  147. package/.proagents/parallel-features/tracking-system.md +0 -416
  148. package/.proagents/performance/README.md +0 -59
  149. package/.proagents/performance/bundle-analysis.md +0 -375
  150. package/.proagents/performance/load-testing.md +0 -563
  151. package/.proagents/performance/runtime-metrics.md +0 -489
  152. package/.proagents/performance/web-vitals.md +0 -425
  153. package/.proagents/plugins/README.md +0 -139
  154. package/.proagents/plugins/creating-plugins.md +0 -504
  155. package/.proagents/plugins/plugin-api.md +0 -467
  156. package/.proagents/plugins/plugin-registry.md +0 -276
  157. package/.proagents/reporting/README.md +0 -158
  158. package/.proagents/reporting/dashboards.md +0 -366
  159. package/.proagents/reporting/exports.md +0 -524
  160. package/.proagents/reporting/quality-metrics.md +0 -385
  161. package/.proagents/reporting/templates/README.md +0 -56
  162. package/.proagents/reporting/templates/dashboard-config.json +0 -187
  163. package/.proagents/reporting/templates/metrics-queries.md +0 -427
  164. package/.proagents/reporting/templates/react-dashboard.tsx +0 -544
  165. package/.proagents/reporting/templates/widgets.md +0 -451
  166. package/.proagents/reporting/velocity-metrics.md +0 -340
  167. package/.proagents/reverse-engineering/README.md +0 -151
  168. package/.proagents/reverse-engineering/architecture-extraction.md +0 -325
  169. package/.proagents/reverse-engineering/code-analysis.md +0 -377
  170. package/.proagents/reverse-engineering/dependency-mapping.md +0 -567
  171. package/.proagents/reverse-engineering/diagram-generation.md +0 -586
  172. package/.proagents/reverse-engineering/documentation-generation.md +0 -468
  173. package/.proagents/reverse-engineering/pattern-detection.md +0 -569
  174. package/.proagents/reverse-engineering/quality-assessment.md +0 -733
  175. package/.proagents/secrets/README.md +0 -278
  176. package/.proagents/secrets/access-control.md +0 -443
  177. package/.proagents/secrets/rotation.md +0 -403
  178. package/.proagents/secrets/scanning.md +0 -487
  179. package/.proagents/secrets/storage.md +0 -394
  180. package/.proagents/webhooks/README.md +0 -126
  181. package/.proagents/webhooks/endpoints.md +0 -298
  182. package/.proagents/webhooks/events.md +0 -316
  183. package/.proagents/webhooks/payloads.md +0 -325
  184. package/.proagents/webhooks/reliability.md +0 -363
  185. 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