rapidkit 0.37.0 → 0.38.0

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 (65) hide show
  1. package/README.md +166 -147
  2. package/contracts/create-planner-capabilities.v1.json +251 -0
  3. package/contracts/runtime-command-surface.v1.json +52 -0
  4. package/dist/autopilot-release-SBPGNGAB.js +1 -0
  5. package/dist/chunk-2ED6SPXP.js +1 -0
  6. package/dist/chunk-3R7UJAX5.js +1 -0
  7. package/dist/{chunk-RUUDLAKJ.js → chunk-5NBYSXOZ.js} +1 -1
  8. package/dist/chunk-7XW2I6MP.js +13 -0
  9. package/dist/{chunk-U6QUN6V2.js → chunk-ABPDGFVD.js} +1 -1
  10. package/dist/chunk-IW3KLQXE.js +2 -0
  11. package/dist/{chunk-7VSYTOOG.js → chunk-NKNMGWAZ.js} +1 -1
  12. package/dist/{chunk-IOIWVHRO.js → chunk-TVIOAZ6E.js} +13 -13
  13. package/dist/chunk-XESEBTPE.js +1 -0
  14. package/dist/{create-HN5HOGQ4.js → create-Y3XJOKL5.js} +1 -1
  15. package/dist/index.js +150 -144
  16. package/dist/{pipeline-BOU4KETN.js → pipeline-C4UCLETO.js} +1 -1
  17. package/dist/{workspace-2AL5C3QZ.js → workspace-WBKFXH4Z.js} +1 -1
  18. package/dist/{workspace-agent-sync-V2H6NTGD.js → workspace-agent-sync-3FFFJYKF.js} +1 -1
  19. package/dist/{workspace-context-KCKNV5VQ.js → workspace-context-V4UGIHSC.js} +1 -1
  20. package/dist/{workspace-foundation-L6ZBGMVE.js → workspace-foundation-T45HAWKL.js} +1 -1
  21. package/dist/{workspace-intelligence-3TWXJQ7Y.js → workspace-intelligence-MGL3Z25K.js} +1 -1
  22. package/dist/{workspace-model-NQVZN5W4.js → workspace-model-IKMGY2BX.js} +1 -1
  23. package/dist/workspace-run-HOR56FON.js +1 -0
  24. package/dist/workspace-verify-A3J6D7T2.js +1 -0
  25. package/docs/AI_DYNAMIC_INTEGRATION.md +440 -0
  26. package/docs/AI_EXAMPLES.md +419 -0
  27. package/docs/AI_FEATURES.md +460 -0
  28. package/docs/AI_QUICKSTART.md +245 -0
  29. package/docs/DEVELOPMENT.md +88 -0
  30. package/docs/From Code to Shared Understanding.png +0 -0
  31. package/docs/OPEN_SOURCE_USER_SCENARIOS.md +170 -0
  32. package/docs/OPTIMIZATION_GUIDE.md +504 -0
  33. package/docs/PACKAGE_MANAGER_POLICY.md +25 -0
  34. package/docs/README.md +121 -0
  35. package/docs/SECURITY.md +63 -0
  36. package/docs/SETUP.md +107 -0
  37. package/docs/UTILITIES.md +221 -0
  38. package/docs/WORKSPACE_MARKER_SPEC.md +276 -0
  39. package/docs/ci-workflows.md +56 -0
  40. package/docs/commands-reference.md +136 -0
  41. package/docs/config-file-guide.md +295 -0
  42. package/docs/contracts/ARTIFACT_CATALOG.md +111 -0
  43. package/docs/contracts/COMMAND_OWNERSHIP_MATRIX.md +138 -0
  44. package/docs/contracts/README.md +71 -0
  45. package/docs/contracts/RUNTIME_ACCEPTANCE_MATRIX.md +98 -0
  46. package/docs/contracts/RUNTIME_SUPPORT_MATRIX.md +74 -0
  47. package/docs/contracts/rapidkit-cli-contracts.json +239 -0
  48. package/docs/create-planner-capabilities.md +81 -0
  49. package/docs/doctor-command.md +263 -0
  50. package/docs/examples/ci-agent-grounding.yml +62 -0
  51. package/docs/from-code-to-shared-understanding.md +46 -0
  52. package/docs/governance-policy.enterprise.example.json +40 -0
  53. package/docs/mirror-config.enterprise.example.json +60 -0
  54. package/docs/policies.workspace.example.yml +23 -0
  55. package/docs/workspace-operations.md +160 -0
  56. package/docs/workspace-run.md +80 -0
  57. package/package.json +3 -2
  58. package/dist/autopilot-release-AUXP2ZIF.js +0 -1
  59. package/dist/chunk-C7OVQQXT.js +0 -1
  60. package/dist/chunk-EJGKBFV4.js +0 -2
  61. package/dist/chunk-UXKB4KGZ.js +0 -13
  62. package/dist/chunk-YJ24EV3P.js +0 -1
  63. package/dist/workspace-run-DEXI52KO.js +0 -1
  64. package/dist/workspace-verify-HBCQNNGU.js +0 -1
  65. /package/dist/{chunk-D23L2GFT.js → chunk-6E5TBB2C.js} +0 -0
@@ -0,0 +1,419 @@
1
+ # 🎯 AI Examples - Real-World Use Cases
2
+
3
+ Complete examples showing how to use RapidKit AI for different scenarios.
4
+
5
+ ## 📱 Example 1: Building a Social Media App
6
+
7
+ ### Requirements
8
+ - User authentication with social login
9
+ - User profiles with photos
10
+ - Real-time notifications
11
+ - Content moderation
12
+
13
+ ### Using AI to Find Modules
14
+
15
+ ```bash
16
+ # Step 1: Authentication
17
+ $ npx rapidkit ai recommend "social login with Google Facebook Twitter OAuth"
18
+
19
+ 📦 Recommended Modules:
20
+
21
+ 1. Authentication Core ⭐
22
+ Complete authentication with OAuth 2.0, social providers
23
+ Match: 96.8% - Matches: auth, oauth, social, login
24
+ Category: auth
25
+
26
+ 2. Users Core
27
+ User management with profiles, roles, permissions
28
+ Match: 91.2% - Matches: user, profile
29
+ Category: auth
30
+ Requires: authentication-core
31
+
32
+ 3. Session Management
33
+ Secure session handling with Redis storage
34
+ Match: 85.4% - Matches: session, secure
35
+ Category: auth
36
+ Requires: authentication-core, redis-cache
37
+ ```
38
+
39
+ ```bash
40
+ # Step 2: File Storage for Photos
41
+ $ npx rapidkit ai recommend "image upload storage S3 with thumbnails"
42
+
43
+ 📦 Recommended Modules:
44
+
45
+ 1. Storage ⭐
46
+ File storage with S3, local filesystem, image processing
47
+ Match: 94.3% - Matches: storage, image, s3, upload
48
+ Category: infrastructure
49
+
50
+ 2. Redis Cache
51
+ Redis caching for CDN URLs and metadata
52
+ Match: 78.1% - Matches: cache
53
+ Category: infrastructure
54
+ ```
55
+
56
+ ```bash
57
+ # Step 3: Real-time Notifications
58
+ $ npx rapidkit ai recommend "real-time push notifications websocket"
59
+
60
+ 📦 Recommended Modules:
61
+
62
+ 1. Notifications (if available)
63
+ Real-time notifications with WebSocket, push, email, SMS
64
+ Match: 95.7% - Matches: notification, realtime, websocket
65
+ Category: communication
66
+
67
+ 2. Redis Cache
68
+ For pub/sub and message queuing
69
+ Match: 82.3% - Matches: redis, pubsub
70
+ Category: infrastructure
71
+ ```
72
+
73
+ ### Installation
74
+
75
+ ```bash
76
+ # Install all recommended modules
77
+ npx rapidkit add module authentication-core users-core storage redis-cache
78
+ ```
79
+
80
+ ## 💳 Example 2: Building a SaaS Platform
81
+
82
+ ### Requirements
83
+ - User authentication
84
+ - Subscription billing (monthly/yearly)
85
+ - Payment processing
86
+ - Invoice generation
87
+ - Usage tracking
88
+
89
+ ### Using AI
90
+
91
+ ```bash
92
+ # Step 1: Authentication & Users
93
+ $ npx rapidkit ai recommend "user authentication with email password reset"
94
+
95
+ 📦 Recommended Modules:
96
+
97
+ 1. Authentication Core ⭐
98
+ Match: 97.2% - Matches: auth, email, password, user
99
+
100
+ 2. Users Core
101
+ Match: 92.8% - Matches: user
102
+ Requires: authentication-core
103
+
104
+ 3. Email
105
+ Match: 89.5% - Matches: email, password-reset
106
+ ```
107
+
108
+ ```bash
109
+ # Step 2: Subscription & Payments
110
+ $ npx rapidkit ai recommend "subscription billing monthly yearly Stripe webhooks"
111
+
112
+ 📦 Recommended Modules:
113
+
114
+ 1. Stripe Payment ⭐
115
+ Stripe integration with subscriptions, webhooks, customer portal
116
+ Match: 98.1% - Matches: stripe, subscription, billing, webhook
117
+ Category: payment
118
+
119
+ 2. Email
120
+ For invoice emails and payment receipts
121
+ Match: 81.3% - Matches: email, receipt
122
+ Category: communication
123
+ ```
124
+
125
+ ```bash
126
+ # Step 3: Background Jobs for Usage Tracking
127
+ $ npx rapidkit ai recommend "background jobs async tasks Celery"
128
+
129
+ 📦 Recommended Modules:
130
+
131
+ 1. Celery ⭐
132
+ Celery integration for async tasks, scheduled jobs
133
+ Match: 96.4% - Matches: celery, background, async, jobs
134
+ Category: infrastructure
135
+ Requires: redis-cache
136
+
137
+ 2. Redis Cache
138
+ Required for Celery broker and result backend
139
+ Match: 88.7% - Matches: redis, cache
140
+ Category: infrastructure
141
+ ```
142
+
143
+ ### Installation
144
+
145
+ ```bash
146
+ npx rapidkit add module authentication-core users-core stripe-payment email celery redis-cache
147
+ ```
148
+
149
+ ## 🛒 Example 3: Building an E-commerce Platform
150
+
151
+ ### Requirements
152
+ - Product catalog with search
153
+ - Shopping cart
154
+ - Payment processing
155
+ - Order management
156
+ - Email notifications
157
+ - Inventory tracking
158
+
159
+ ### Using AI
160
+
161
+ ```bash
162
+ # Step 1: Database with Search
163
+ $ npx rapidkit ai recommend "PostgreSQL database with full-text search"
164
+
165
+ 📦 Recommended Modules:
166
+
167
+ 1. PostgreSQL ⭐
168
+ PostgreSQL with SQLAlchemy, migrations, full-text search
169
+ Match: 95.3% - Matches: postgres, database, search
170
+ Category: database
171
+
172
+ 2. Redis Cache
173
+ For caching product catalog and search results
174
+ Match: 84.2% - Matches: cache
175
+ Category: infrastructure
176
+ ```
177
+
178
+ ```bash
179
+ # Step 2: Payments & Orders
180
+ $ npx rapidkit ai recommend "payment checkout Stripe with order management"
181
+
182
+ 📦 Recommended Modules:
183
+
184
+ 1. Stripe Payment ⭐
185
+ Payment intents, checkout sessions, webhooks
186
+ Match: 97.8% - Matches: stripe, payment, checkout
187
+ Category: payment
188
+
189
+ 2. Email
190
+ Order confirmations and shipping notifications
191
+ Match: 86.5% - Matches: email, notification
192
+ Category: communication
193
+ ```
194
+
195
+ ```bash
196
+ # Step 3: Background Jobs for Inventory
197
+ $ npx rapidkit ai recommend "background tasks for inventory sync cron"
198
+
199
+ 📦 Recommended Modules:
200
+
201
+ 1. Celery ⭐
202
+ Scheduled tasks for inventory updates
203
+ Match: 93.7% - Matches: celery, background, cron, scheduled
204
+ Category: infrastructure
205
+ Requires: redis-cache
206
+ ```
207
+
208
+ ### Installation
209
+
210
+ ```bash
211
+ npx rapidkit add module db-postgres redis-cache stripe-payment email celery
212
+ ```
213
+
214
+ ## 🏥 Example 4: Building a Healthcare API
215
+
216
+ ### Requirements
217
+ - Secure authentication (HIPAA compliant)
218
+ - Patient records database
219
+ - Audit logging
220
+ - Encrypted file storage
221
+ - SMS notifications for appointments
222
+
223
+ ### Using AI
224
+
225
+ ```bash
226
+ # Step 1: Secure Authentication
227
+ $ npx rapidkit ai recommend "secure authentication HIPAA compliant audit logging"
228
+
229
+ 📦 Recommended Modules:
230
+
231
+ 1. Authentication Core ⭐
232
+ PBKDF2 hashing, secure sessions, audit logs
233
+ Match: 96.2% - Matches: auth, secure, audit
234
+ Category: auth
235
+
236
+ 2. Session Management
237
+ Secure session rotation, device tracking
238
+ Match: 89.8% - Matches: session, secure, audit
239
+ Category: auth
240
+ Requires: authentication-core, redis-cache
241
+ ```
242
+
243
+ ```bash
244
+ # Step 2: Database with Encryption
245
+ $ npx rapidkit ai recommend "PostgreSQL with encryption for sensitive data"
246
+
247
+ 📦 Recommended Modules:
248
+
249
+ 1. PostgreSQL ⭐
250
+ PostgreSQL with field-level encryption support
251
+ Match: 94.7% - Matches: postgres, database, encryption
252
+ Category: database
253
+
254
+ 2. Storage
255
+ Encrypted file storage for medical records
256
+ Match: 87.3% - Matches: storage, encryption, file
257
+ Category: infrastructure
258
+ ```
259
+
260
+ ```bash
261
+ # Step 3: SMS Notifications
262
+ $ npx rapidkit ai recommend "SMS notifications Twilio appointment reminders"
263
+
264
+ 📦 Recommended Modules:
265
+
266
+ 1. SMS ⭐
267
+ Twilio SMS with templates and delivery tracking
268
+ Match: 98.5% - Matches: sms, twilio, notification
269
+ Category: communication
270
+
271
+ 2. Celery
272
+ Schedule appointment reminders
273
+ Match: 85.4% - Matches: schedule, reminder
274
+ Category: infrastructure
275
+ Requires: redis-cache
276
+ ```
277
+
278
+ ### Installation
279
+
280
+ ```bash
281
+ npx rapidkit add module authentication-core session-management db-postgres storage sms celery redis-cache
282
+ ```
283
+
284
+ ## 🎮 Example 5: Building a Gaming Backend
285
+
286
+ ### Requirements
287
+ - User accounts with avatars
288
+ - Leaderboards
289
+ - In-app purchases
290
+ - Real-time multiplayer
291
+ - Push notifications
292
+
293
+ ### Using AI
294
+
295
+ ```bash
296
+ # Step 1: User System
297
+ $ npx rapidkit ai recommend "user accounts with profiles avatars achievements"
298
+
299
+ 📦 Recommended Modules:
300
+
301
+ 1. Users Core ⭐
302
+ User profiles, custom fields, avatar URLs
303
+ Match: 95.8% - Matches: user, profile, avatar
304
+ Category: auth
305
+ Requires: authentication-core
306
+
307
+ 2. Authentication Core
308
+ Required for user accounts
309
+ Match: 88.2% - Matches: auth, user, account
310
+ Category: auth
311
+ ```
312
+
313
+ ```bash
314
+ # Step 2: Leaderboards & Caching
315
+ $ npx rapidkit ai recommend "leaderboards rankings Redis sorted sets"
316
+
317
+ 📦 Recommended Modules:
318
+
319
+ 1. Redis Cache ⭐
320
+ Redis sorted sets for leaderboards, caching
321
+ Match: 97.3% - Matches: redis, leaderboard, ranking, cache
322
+ Category: infrastructure
323
+
324
+ 2. Database (PostgreSQL/MongoDB)
325
+ Store persistent game data
326
+ Match: 84.6% - Matches: database, persistent
327
+ Category: database
328
+ ```
329
+
330
+ ```bash
331
+ # Step 3: In-App Purchases
332
+ $ npx rapidkit ai recommend "in-app purchases mobile payment Stripe"
333
+
334
+ 📦 Recommended Modules:
335
+
336
+ 1. Stripe Payment ⭐
337
+ Mobile payments, subscriptions, purchases
338
+ Match: 96.4% - Matches: stripe, payment, purchase, mobile
339
+ Category: payment
340
+ ```
341
+
342
+ ### Installation
343
+
344
+ ```bash
345
+ npx rapidkit add module authentication-core users-core redis-cache stripe-payment db-mongodb
346
+ ```
347
+
348
+ ## 💡 Tips for Better Results
349
+
350
+ ### 1. Combine Multiple Searches
351
+
352
+ Instead of one vague query, break it down:
353
+
354
+ ❌ Bad:
355
+ ```bash
356
+ npx rapidkit ai recommend "social media app"
357
+ ```
358
+
359
+ ✅ Good:
360
+ ```bash
361
+ npx rapidkit ai recommend "user authentication social login"
362
+ npx rapidkit ai recommend "image upload storage S3"
363
+ npx rapidkit ai recommend "real-time notifications"
364
+ ```
365
+
366
+ ### 2. Mention Specific Technologies
367
+
368
+ ```bash
369
+ # Generic
370
+ npx rapidkit ai recommend "database"
371
+
372
+ # Specific (better results!)
373
+ npx rapidkit ai recommend "PostgreSQL database with async support"
374
+ ```
375
+
376
+ ### 3. Describe Your Exact Use Case
377
+
378
+ ```bash
379
+ # Vague
380
+ npx rapidkit ai recommend "payments"
381
+
382
+ # Specific (much better!)
383
+ npx rapidkit ai recommend "subscription payments with monthly billing and invoices"
384
+ ```
385
+
386
+ ### 4. Use Natural Language
387
+
388
+ ```bash
389
+ # Don't just list keywords
390
+ npx rapidkit ai recommend "auth jwt oauth redis"
391
+
392
+ # Describe what you're building
393
+ npx rapidkit ai recommend "I need authentication with JWT tokens and Redis sessions for my API"
394
+ ```
395
+
396
+ ## 🚀 Next Steps
397
+
398
+ After finding modules with AI:
399
+
400
+ ```bash
401
+ # 1. Install modules
402
+ npx rapidkit add module <module-id-1> <module-id-2> ...
403
+
404
+ # 2. Configure modules
405
+ npx rapidkit modules configure <module-id>
406
+
407
+ # 3. Start development
408
+ npx rapidkit dev
409
+ ```
410
+
411
+ ## 📚 Learn More
412
+
413
+ - [AI Features Guide](AI_FEATURES.md) - Complete reference
414
+ - [AI Quick Start](AI_QUICKSTART.md) - Get started in 60 seconds
415
+ - [Technical Details](AI_DYNAMIC_INTEGRATION.md) - How it works
416
+
417
+ ---
418
+
419
+ **Need help?** Open an issue: https://github.com/rapidkitlabs/rapidkit-npm/issues