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