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,378 +0,0 @@
1
- # Domain Knowledge Learning
2
-
3
- Learn business terminology, domain entities, and project-specific concepts.
4
-
5
- ---
6
-
7
- ## Overview
8
-
9
- Domain knowledge helps the AI understand your business context for more accurate suggestions.
10
-
11
- ```
12
- ┌─────────────────────────────────────────────────────────────┐
13
- │ Domain Knowledge │
14
- ├─────────────────────────────────────────────────────────────┤
15
- │ │
16
- │ Sources: │
17
- │ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
18
- │ │ Code │ │ Docs │ │ Glossary │ │
19
- │ │ Comments │ │ & READMEs │ │ Files │ │
20
- │ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ │
21
- │ │ │ │ │
22
- │ └────────────────┼────────────────┘ │
23
- │ │ │
24
- │ ▼ │
25
- │ ┌─────────────────────┐ │
26
- │ │ Domain Model │ │
27
- │ ├─────────────────────┤ │
28
- │ │ • Entities │ │
29
- │ │ • Relationships │ │
30
- │ │ • Business Rules │ │
31
- │ │ • Terminology │ │
32
- │ └─────────────────────┘ │
33
- │ │
34
- └─────────────────────────────────────────────────────────────┘
35
- ```
36
-
37
- ---
38
-
39
- ## Domain Configuration
40
-
41
- ### Define Domain
42
-
43
- ```yaml
44
- # proagents.config.yaml
45
-
46
- learning:
47
- domain:
48
- enabled: true
49
-
50
- # Domain type
51
- type: "ecommerce" # fintech, healthcare, saas, etc.
52
-
53
- # Custom glossary
54
- glossary_file: "docs/glossary.yaml"
55
-
56
- # Entity definitions
57
- entities_file: "docs/entities.yaml"
58
-
59
- # Business rules
60
- rules_file: "docs/business-rules.yaml"
61
- ```
62
-
63
- ### Glossary File
64
-
65
- ```yaml
66
- # docs/glossary.yaml
67
-
68
- terms:
69
- # Customer terminology
70
- user:
71
- definition: "A registered customer with an account"
72
- synonyms: ["customer", "member", "account holder"]
73
- not_to_confuse_with: ["visitor", "guest"]
74
-
75
- visitor:
76
- definition: "An unregistered person browsing the site"
77
- synonyms: ["guest", "anonymous user"]
78
-
79
- # Product terminology
80
- sku:
81
- definition: "Stock Keeping Unit - unique product identifier"
82
- format: "XXX-YYYY-ZZZ"
83
- example: "ELC-1234-BLK"
84
-
85
- # Order terminology
86
- order:
87
- definition: "A confirmed purchase by a user"
88
- states: ["pending", "processing", "shipped", "delivered", "cancelled"]
89
-
90
- cart:
91
- definition: "Temporary collection of items before checkout"
92
- synonyms: ["basket", "shopping cart"]
93
-
94
- # Business terms
95
- gmv:
96
- definition: "Gross Merchandise Value - total sales value"
97
- formula: "sum of all order totals before returns"
98
-
99
- aov:
100
- definition: "Average Order Value"
101
- formula: "GMV / number of orders"
102
- ```
103
-
104
- ---
105
-
106
- ## Entity Definitions
107
-
108
- ### Entity Schema
109
-
110
- ```yaml
111
- # docs/entities.yaml
112
-
113
- entities:
114
- User:
115
- description: "Registered customer account"
116
- attributes:
117
- id: "Unique identifier (UUID)"
118
- email: "Primary contact email"
119
- profile: "User profile information"
120
- addresses: "Shipping and billing addresses"
121
- orders: "Order history"
122
- relationships:
123
- - "User has many Orders"
124
- - "User has many Addresses"
125
- - "User has one Profile"
126
- business_rules:
127
- - "Email must be unique"
128
- - "Must verify email before first purchase"
129
-
130
- Order:
131
- description: "Purchase transaction"
132
- attributes:
133
- id: "Order identifier"
134
- user_id: "Reference to User"
135
- items: "Ordered products"
136
- total: "Order total amount"
137
- status: "Current order status"
138
- relationships:
139
- - "Order belongs to User"
140
- - "Order has many OrderItems"
141
- - "Order has one Payment"
142
- states:
143
- pending: "Order created, awaiting payment"
144
- processing: "Payment received, preparing shipment"
145
- shipped: "Order shipped, in transit"
146
- delivered: "Order received by customer"
147
- cancelled: "Order cancelled"
148
- business_rules:
149
- - "Cannot cancel after shipping"
150
- - "Refund within 30 days only"
151
-
152
- Product:
153
- description: "Item available for sale"
154
- attributes:
155
- id: "Product identifier"
156
- sku: "Stock keeping unit"
157
- name: "Product name"
158
- price: "Current price"
159
- inventory: "Stock count"
160
- relationships:
161
- - "Product belongs to Category"
162
- - "Product has many Variants"
163
- business_rules:
164
- - "Price must be positive"
165
- - "Cannot sell if inventory is 0"
166
- ```
167
-
168
- ---
169
-
170
- ## Business Rules
171
-
172
- ### Rule Definitions
173
-
174
- ```yaml
175
- # docs/business-rules.yaml
176
-
177
- rules:
178
- # Pricing rules
179
- pricing:
180
- - id: "minimum_order"
181
- description: "Minimum order value for free shipping"
182
- condition: "order.total < 50"
183
- action: "Add shipping fee"
184
- fee: 5.99
185
-
186
- - id: "bulk_discount"
187
- description: "Discount for bulk orders"
188
- condition: "order.items.count >= 10"
189
- action: "Apply 10% discount"
190
- discount: 0.10
191
-
192
- # Inventory rules
193
- inventory:
194
- - id: "low_stock_alert"
195
- description: "Alert when stock is low"
196
- condition: "product.inventory < 10"
197
- action: "Send alert to inventory team"
198
-
199
- - id: "prevent_oversell"
200
- description: "Cannot sell more than available"
201
- condition: "order.quantity > product.inventory"
202
- action: "Reject order"
203
- error: "Insufficient stock"
204
-
205
- # User rules
206
- user:
207
- - id: "email_verification"
208
- description: "Verify email before purchase"
209
- condition: "user.email_verified == false"
210
- action: "Block checkout"
211
- message: "Please verify your email"
212
-
213
- - id: "account_suspension"
214
- description: "Suspend after chargebacks"
215
- condition: "user.chargebacks >= 3"
216
- action: "Suspend account"
217
- ```
218
-
219
- ---
220
-
221
- ## Learning from Code
222
-
223
- ### Automatic Entity Detection
224
-
225
- ProAgents analyzes code to discover entities:
226
-
227
- ```typescript
228
- // Detected from: src/models/User.ts
229
- interface User {
230
- id: string;
231
- email: string;
232
- name: string;
233
- createdAt: Date;
234
- }
235
-
236
- // ProAgents learns:
237
- // - User entity exists
238
- // - Has id, email, name, createdAt fields
239
- // - Types: string, string, string, Date
240
- ```
241
-
242
- ### Comment Analysis
243
-
244
- ```typescript
245
- /**
246
- * Process a refund for an order.
247
- *
248
- * Business Rule: Refunds are only allowed within 30 days
249
- * of delivery date. Partial refunds are supported.
250
- *
251
- * @param orderId - The order to refund
252
- * @param amount - Refund amount (max: order total)
253
- */
254
- async function processRefund(orderId: string, amount: number) {
255
- // ...
256
- }
257
-
258
- // ProAgents learns:
259
- // - Refund rule: 30 days from delivery
260
- // - Partial refunds supported
261
- // - Amount cannot exceed order total
262
- ```
263
-
264
- ---
265
-
266
- ## Domain Application
267
-
268
- ### In Requirements
269
-
270
- ```
271
- User Request: "Add ability for customers to cancel their purchase"
272
-
273
- Without Domain Knowledge:
274
- AI: "Add a cancel button"
275
-
276
- With Domain Knowledge:
277
- AI: "Based on your business rules, orders can only be cancelled
278
- before shipping. I'll implement:
279
- 1. Cancel button (visible only for pending/processing orders)
280
- 2. Check order status before cancellation
281
- 3. Process refund according to your refund policy
282
- 4. Update inventory for cancelled items"
283
- ```
284
-
285
- ### In Code Generation
286
-
287
- ```
288
- Without Domain Knowledge:
289
- if (user.type === "customer") { ... }
290
-
291
- With Domain Knowledge:
292
- // Using learned terminology
293
- if (user.isRegistered && user.emailVerified) {
294
- // Registered user with verified email can make purchases
295
- }
296
- ```
297
-
298
- ### In Code Review
299
-
300
- ```
301
- Code: order.cancel()
302
-
303
- Review Without Domain Knowledge:
304
- "Looks fine"
305
-
306
- Review With Domain Knowledge:
307
- "Warning: This allows cancellation without checking order status.
308
- Your business rules state orders cannot be cancelled after shipping.
309
- Suggested fix: Add status check before cancellation."
310
- ```
311
-
312
- ---
313
-
314
- ## Domain Commands
315
-
316
- ```bash
317
- # View learned domain knowledge
318
- proagents learning domain
319
-
320
- # Add glossary term
321
- proagents learning add-term "churn" "Customer who cancelled subscription"
322
-
323
- # Add entity
324
- proagents learning add-entity "Subscription" --file entities.yaml
325
-
326
- # View business rules
327
- proagents learning rules
328
-
329
- # Validate against business rules
330
- proagents learning validate --file src/services/OrderService.ts
331
- ```
332
-
333
- ---
334
-
335
- ## Domain Reports
336
-
337
- ```bash
338
- proagents learning domain
339
-
340
- # Output:
341
- ┌─────────────────────────────────────────────────────────────┐
342
- │ Domain Knowledge │
343
- ├─────────────────────────────────────────────────────────────┤
344
- │ Domain Type: E-commerce │
345
- ├─────────────────────────────────────────────────────────────┤
346
- │ │
347
- │ Entities (12): │
348
- │ ├── User (8 attributes, 3 relationships) │
349
- │ ├── Order (6 attributes, 4 states) │
350
- │ ├── Product (5 attributes, 2 relationships) │
351
- │ └── ... 9 more │
352
- │ │
353
- │ Glossary Terms (34): │
354
- │ ├── Business: GMV, AOV, churn, retention │
355
- │ ├── Product: SKU, variant, category │
356
- │ └── Process: checkout, fulfillment, refund │
357
- │ │
358
- │ Business Rules (18): │
359
- │ ├── Pricing: 4 rules │
360
- │ ├── Inventory: 3 rules │
361
- │ ├── Orders: 6 rules │
362
- │ └── Users: 5 rules │
363
- │ │
364
- │ Coverage: 85% of codebase mapped to domain │
365
- │ │
366
- └─────────────────────────────────────────────────────────────┘
367
- ```
368
-
369
- ---
370
-
371
- ## Best Practices
372
-
373
- 1. **Start with Glossary**: Define key terms first
374
- 2. **Document Entities**: Map your data model
375
- 3. **Capture Rules**: Document business logic
376
- 4. **Review Regularly**: Update as business evolves
377
- 5. **Use Comments**: Add context in code comments
378
- 6. **Validate Suggestions**: Ensure AI respects business rules