workspai 0.46.0 → 0.48.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.
- package/README.md +225 -81
- package/contracts/agent-customization-pack.v1.json +11 -1
- package/contracts/bootstrap-compliance.v1.json +14 -0
- package/contracts/cli-runtime-command-inventory.v1.snapshot.json +4 -0
- package/contracts/extension-cli-compatibility.v1.json +13 -2
- package/contracts/mirror-ops.v1.json +16 -0
- package/contracts/published-contract-catalog.v1.json +59 -1
- package/contracts/runtime-command-surface.v1.json +294 -2
- package/contracts/transparency-evidence.v1.json +13 -0
- package/contracts/workspace-contract.v1.json +78 -0
- package/contracts/workspace-intelligence/model-usage-event.v1.json +82 -0
- package/contracts/workspace-intelligence/workspace-context.v1.json +20 -0
- package/contracts/workspace-intelligence/workspace-graph-token-efficiency.v1.json +72 -0
- package/contracts/workspace-intelligence/workspace-intelligence-evaluation-comparison.v1.json +53 -0
- package/contracts/workspace-intelligence/workspace-intelligence-evaluation.v1.json +120 -0
- package/contracts/workspace-intelligence/workspace-intelligence-run.v1.json +6 -1
- package/contracts/workspace-intelligence/workspace-knowledge-graph-change-overlay.v1.json +200 -0
- package/contracts/workspace-intelligence/workspace-knowledge-graph.v1.json +260 -0
- package/contracts/workspace-intelligence/workspace-knowledge-search.v1.json +60 -0
- package/contracts/workspace-intelligence-architecture.v1.json +37 -5
- package/contracts/workspace-intelligence-chain.v1.json +58 -6
- package/contracts/workspace-share-bundle.v1.json +16 -0
- package/dist/analyze-EEEU3MIF.js +1 -0
- package/dist/artifact-remediation-plan-SPOUHMK5.js +3 -0
- package/dist/autopilot-release-XGVXPOZI.js +1 -0
- package/dist/chunk-32OJDBIG.js +2 -0
- package/dist/chunk-37CVKXBD.js +1 -0
- package/dist/chunk-3NU32T4A.js +2 -0
- package/dist/chunk-3VFA7D5T.js +1 -0
- package/dist/chunk-4HDYADHT.js +13 -0
- package/dist/chunk-54EP5CEV.js +8 -0
- package/dist/chunk-5S3DJQEP.js +8 -0
- package/dist/chunk-AFL3ACCR.js +2 -0
- package/dist/{chunk-VFDM65IE.js → chunk-BFLJ2R4D.js} +22 -22
- package/dist/chunk-BGPXQQNY.js +4 -0
- package/dist/chunk-BMWFQXGW.js +1 -0
- package/dist/{chunk-UQWOVV6V.js → chunk-CRHYBQI3.js} +1 -1
- package/dist/chunk-CV5HKU4P.js +1 -0
- package/dist/chunk-ESLPI3XZ.js +1 -0
- package/dist/chunk-FB7SCXAZ.js +1 -0
- package/dist/{chunk-WPEEC5BX.js → chunk-HDXNIN4N.js} +1 -1
- package/dist/chunk-HZDXO65G.js +36 -0
- package/dist/{chunk-J5PIZCAU.js → chunk-I46XEIPL.js} +1 -1
- package/dist/chunk-J5ENLXDF.js +1 -0
- package/dist/chunk-KB44JP4M.js +2 -0
- package/dist/chunk-LHOZXC2M.js +2 -0
- package/dist/chunk-NAJCUQ4X.js +2 -0
- package/dist/chunk-OA537ZQ5.js +1 -0
- package/dist/chunk-OW42TZFB.js +1 -0
- package/dist/chunk-P3D5YQB2.js +1 -0
- package/dist/chunk-PHXQR6PX.js +2 -0
- package/dist/{chunk-ZKAI3PJE.js → chunk-PRTR2DQ2.js} +1 -1
- package/dist/{chunk-QA5BGEQW.js → chunk-QNONOO4F.js} +1 -1
- package/dist/chunk-RHQW3DTP.js +1 -0
- package/dist/chunk-T4YR4RAI.js +2 -0
- package/dist/chunk-THIOE2PB.js +2 -0
- package/dist/{chunk-4LGXSBCN.js → chunk-VU7NZHPM.js} +1 -1
- package/dist/chunk-WDKNMTJQ.js +1 -0
- package/dist/{chunk-YUATNVOT.js → chunk-Y5UJLPS4.js} +16 -16
- package/dist/{chunk-6IIZJQLV.js → chunk-YJZOMRAS.js} +1 -1
- package/dist/{create-WCV3L6XH.js → create-DBQNAMKP.js} +1 -1
- package/dist/{doctor-5BWM2EMJ.js → doctor-4NNUDNGZ.js} +1 -1
- package/dist/{dotnet-webapi-clean-6TVFBTVI.js → dotnet-webapi-clean-A6MVDYXX.js} +4 -4
- package/dist/{gofiber-standard-2BL7GWZB.js → gofiber-standard-I5YPQG5V.js} +1 -1
- package/dist/{gogin-standard-XGP3KBXA.js → gogin-standard-VY2L4QT5.js} +1 -1
- package/dist/index.d.ts +56 -14
- package/dist/index.js +322 -320
- package/dist/pipeline-TQM43A3K.js +5 -0
- package/dist/{springboot-standard-JJNUID6M.js → springboot-standard-55XKCBIZ.js} +4 -4
- package/dist/{workspace-7OXW5YTJ.js → workspace-NCWRINEF.js} +1 -1
- package/dist/{workspace-agent-sync-O4IA6VOA.js → workspace-agent-sync-662QHXGF.js} +1 -1
- package/dist/{workspace-archive-H74NBBNW.js → workspace-archive-P76EDIUG.js} +1 -1
- package/dist/{workspace-context-R7IPUBPG.js → workspace-context-23YYCUCP.js} +1 -1
- package/dist/workspace-contract-TU2I7GC2.js +1 -0
- package/dist/workspace-dependency-graph-BP4EXYQ5.js +1 -0
- package/dist/workspace-explain-MWUEN643.js +1 -0
- package/dist/workspace-explain-contract-ZPI3JXJU.js +1 -0
- package/dist/{workspace-feedback-REOS36ZZ.js → workspace-feedback-SUVH2LUJ.js} +1 -1
- package/dist/{workspace-foundation-KXT4QI5O.js → workspace-foundation-WXJ6I7ES.js} +1 -1
- package/dist/workspace-graph-token-efficiency-CFGFCJ5V.js +1 -0
- package/dist/{workspace-history-OGOVSKZG.js → workspace-history-BANOJRQ2.js} +1 -1
- package/dist/workspace-intelligence-MFJE7W67.js +1 -0
- package/dist/workspace-intelligence-evaluation-IPH7M3WV.js +1 -0
- package/dist/workspace-intelligence-runner-THYLHHMF.js +1 -0
- package/dist/workspace-knowledge-graph-ARDC6HHG.js +1 -0
- package/dist/workspace-knowledge-graph-change-overlay-XG6FC4IX.js +1 -0
- package/dist/workspace-knowledge-graph-export-UYAYFTWX.js +10 -0
- package/dist/workspace-knowledge-graph-query-VOSPPH4W.js +1 -0
- package/dist/workspace-mcp-serve-EZR6O76D.js +3 -0
- package/dist/workspace-model-7OU2M3LE.js +1 -0
- package/dist/workspace-model-hash-MHXK5MEI.js +1 -0
- package/dist/{workspace-registry-summary-SZ46R5PD.js → workspace-registry-summary-ORDK7A36.js} +1 -1
- package/dist/workspace-run-RLIYSOTN.js +1 -0
- package/dist/{workspace-verify-MFQ7IXGD.js → workspace-verify-EBVL7FWT.js} +1 -1
- package/dist/workspace-watch-3BPGLFLB.js +1 -0
- package/docs/AI_DYNAMIC_INTEGRATION.md +73 -428
- package/docs/AI_EXAMPLES.md +37 -395
- package/docs/AI_FEATURES.md +76 -456
- package/docs/AI_QUICKSTART.md +49 -212
- package/docs/GLOSSARY.md +64 -0
- package/docs/OPEN_SOURCE_USER_SCENARIOS.md +68 -7
- package/docs/README.md +70 -41
- package/docs/README_CONTENT_CONTRACT.md +154 -0
- package/docs/commands-reference.md +64 -4
- package/docs/config-file-guide.md +6 -2
- package/docs/contracts/ARTIFACT_CATALOG.md +76 -37
- package/docs/contracts/README.md +47 -8
- package/docs/graph-benchmark-methodology.md +121 -0
- package/docs/workspace-intelligence-evaluation.md +147 -0
- package/docs/workspace-knowledge-graph.md +316 -0
- package/docs/workspace-operations.md +49 -0
- package/package.json +2 -1
- package/dist/analyze-BEBEZSZK.js +0 -1
- package/dist/artifact-remediation-plan-FFQSESAM.js +0 -3
- package/dist/autopilot-release-WUR4CQIT.js +0 -1
- package/dist/chunk-2G7FASAO.js +0 -2
- package/dist/chunk-4EPHWD27.js +0 -8
- package/dist/chunk-CVHMUSRX.js +0 -1
- package/dist/chunk-DIPD72H4.js +0 -2
- package/dist/chunk-EFYHGCGX.js +0 -2
- package/dist/chunk-FWRXA435.js +0 -2
- package/dist/chunk-HDURFXW5.js +0 -2
- package/dist/chunk-HMUKBW2S.js +0 -4
- package/dist/chunk-K4WNYXKK.js +0 -33
- package/dist/chunk-LG6RFLPZ.js +0 -1
- package/dist/chunk-N7DV5L7C.js +0 -1
- package/dist/chunk-PRBVYW3T.js +0 -1
- package/dist/chunk-QZLIURER.js +0 -13
- package/dist/chunk-RIEF2DDX.js +0 -8
- package/dist/chunk-SXMTSV5M.js +0 -1
- package/dist/chunk-SXPY523X.js +0 -1
- package/dist/chunk-V3LRQZ36.js +0 -1
- package/dist/chunk-WYFPXTTS.js +0 -2
- package/dist/pipeline-ORIWVVYM.js +0 -5
- package/dist/workspace-contract-HKCMOMFE.js +0 -1
- package/dist/workspace-explain-GOPQYTPQ.js +0 -1
- package/dist/workspace-explain-contract-SVFJAAEI.js +0 -1
- package/dist/workspace-intelligence-7IESQSXY.js +0 -1
- package/dist/workspace-intelligence-runner-6GJ5M4HB.js +0 -1
- package/dist/workspace-mcp-serve-FRVWBO36.js +0 -3
- package/dist/workspace-model-PPYX7B4S.js +0 -1
- package/dist/workspace-run-V3KKHTVF.js +0 -1
- package/dist/workspace-watch-SOPZHRWA.js +0 -1
package/docs/AI_EXAMPLES.md
CHANGED
|
@@ -1,419 +1,61 @@
|
|
|
1
|
-
#
|
|
1
|
+
# AI Module Recommendation Examples
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
These examples show useful query wording. They intentionally omit fabricated
|
|
4
|
+
scores and module names because results depend on the active catalog, embedding
|
|
5
|
+
model, provider/mock mode, and catalog revision.
|
|
4
6
|
|
|
5
|
-
##
|
|
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 workspai 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 workspai 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 workspai 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 workspai 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 workspai 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 workspai 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 workspai 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 workspai 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 workspai 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 workspai 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 workspai 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 workspai 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 workspai 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 workspai 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 workspai 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 workspai 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
|
|
7
|
+
## Authentication
|
|
294
8
|
|
|
295
9
|
```bash
|
|
296
|
-
|
|
297
|
-
|
|
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 workspai 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 workspai 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 workspai add module authentication-core users-core redis-cache stripe-payment db-mongodb
|
|
10
|
+
npx workspai ai recommend \
|
|
11
|
+
"email and password authentication with OAuth login and session revocation" \
|
|
12
|
+
--number 5
|
|
346
13
|
```
|
|
347
14
|
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
15
|
+
Check whether returned modules cover identity storage, sessions, provider
|
|
16
|
+
integration, and required dependencies. A high similarity score does not prove
|
|
17
|
+
the implementation meets your security policy.
|
|
351
18
|
|
|
352
|
-
|
|
19
|
+
## SaaS billing
|
|
353
20
|
|
|
354
|
-
❌ Bad:
|
|
355
21
|
```bash
|
|
356
|
-
npx workspai ai recommend
|
|
22
|
+
npx workspai ai recommend \
|
|
23
|
+
"subscription billing with recurring payments, invoices, webhooks, and retries" \
|
|
24
|
+
--number 5 --json
|
|
357
25
|
```
|
|
358
26
|
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
npx workspai ai recommend "user authentication social login"
|
|
362
|
-
npx workspai ai recommend "image upload storage S3"
|
|
363
|
-
npx workspai ai recommend "real-time notifications"
|
|
364
|
-
```
|
|
27
|
+
Use JSON when another tool will filter or present the recommendations. Review
|
|
28
|
+
provider-specific operational requirements before installing a payment module.
|
|
365
29
|
|
|
366
|
-
|
|
30
|
+
## Data and caching
|
|
367
31
|
|
|
368
32
|
```bash
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
# Specific (better results!)
|
|
373
|
-
npx workspai ai recommend "PostgreSQL database with async support"
|
|
33
|
+
npx workspai ai recommend \
|
|
34
|
+
"PostgreSQL persistence with migrations and Redis caching" \
|
|
35
|
+
--number 5
|
|
374
36
|
```
|
|
375
37
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
```bash
|
|
379
|
-
# Vague
|
|
380
|
-
npx workspai ai recommend "payments"
|
|
381
|
-
|
|
382
|
-
# Specific (much better!)
|
|
383
|
-
npx workspai ai recommend "subscription payments with monthly billing and invoices"
|
|
384
|
-
```
|
|
38
|
+
Describe both the primary capability and important constraints. This gives the
|
|
39
|
+
embedding query more useful meaning than a keyword list such as `db cache`.
|
|
385
40
|
|
|
386
|
-
|
|
41
|
+
## Background processing
|
|
387
42
|
|
|
388
43
|
```bash
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
# Describe what you're building
|
|
393
|
-
npx workspai 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 workspai add module <module-id-1> <module-id-2> ...
|
|
403
|
-
|
|
404
|
-
# 2. Configure modules
|
|
405
|
-
npx workspai modules configure <module-id>
|
|
406
|
-
|
|
407
|
-
# 3. Start development
|
|
408
|
-
npx workspai dev
|
|
44
|
+
npx workspai ai recommend \
|
|
45
|
+
"scheduled background jobs with retries, dead-letter handling, and monitoring" \
|
|
46
|
+
--number 5
|
|
409
47
|
```
|
|
410
48
|
|
|
411
|
-
|
|
49
|
+
Dependencies shown by the command are catalog metadata. Verify the current
|
|
50
|
+
project runtime and Core capability before applying an installation.
|
|
412
51
|
|
|
413
|
-
|
|
414
|
-
- [AI Quick Start](AI_QUICKSTART.md) - Get started in 60 seconds
|
|
415
|
-
- [Technical Details](AI_DYNAMIC_INTEGRATION.md) - How it works
|
|
52
|
+
## A practical evaluation loop
|
|
416
53
|
|
|
417
|
-
|
|
54
|
+
1. Run the recommendation with a precise requirement.
|
|
55
|
+
2. Read the reason and declared dependencies, not only the score.
|
|
56
|
+
3. Compare the top candidates with project runtime and policy constraints.
|
|
57
|
+
4. Install only from a compatible, module-enabled project.
|
|
58
|
+
5. Run project tests and `workspai doctor project` after installation.
|
|
418
59
|
|
|
419
|
-
|
|
60
|
+
For testing a UI or script without provider usage, omit the API key and use mock
|
|
61
|
+
mode. Do not use mock rankings as production evidence.
|