uaibuilder 0.1.3 → 0.1.5

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 (2) hide show
  1. package/index.mjs +14 -34
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -66,34 +66,20 @@ function buildMcpEntry(token) {
66
66
 
67
67
  // ─── Skill file for Claude Code ───────────────────────
68
68
 
69
- const SKILL_CONTENT = `# UaiBuilder MCP — Skill Guide
70
-
71
- You have access to the UaiBuilder MCP. It lets you create full-stack apps with auth, database, API, and deploy them liveall through MCP tool calls.
72
-
73
- ## Quick flow
74
- \`\`\`
75
- 1. Call uai_capabilities FIRSTread the full guide
76
- 2. db_createTable (for each table id/created_at/updated_at are auto-added, do NOT include them)
77
- 3. api_createEndpoint (register, login, refresh + your routes)
78
- 4. files_write("index.html", "...")include setupAutoRefresh() for auth apps
79
- 5. deploy_publish() returns health check result
80
- 6. test_request() — verify each endpoint works
81
- \`\`\`
82
-
83
- ## Key rules
84
- - **handler is INLINE CODE** — do NOT wrap in arrow function
85
- - **Variables available**: db, request, corsHeaders, context, jwtSecret
86
- - **Dynamic routes**: use :param in path, access via context.params.paramName
87
- - **Auth**: set auth:true, then use user.id (from JWT). NEVER trust body userId
88
- - **JWT**: signJwt(payload, jwtSecret) — 2 day expiry. NEVER use btoa()
89
- - **Passwords**: hashPassword(password) / verifyPassword(password, hash) — PBKDF2
90
- - **ALWAYS validate inputs**: required fields, email format, password 8+ chars
91
- - **ALWAYS create /api/auth/refresh** alongside register/login
92
-
93
- ## After deploy
94
- - deploy_publish returns health check — if ok:false, check handler code for syntax errors
95
- - Use test_request to verify each endpoint
96
- - Use group_overview for full dashboard
69
+ const SKILL_CONTENT = `# UaiBuilder
70
+
71
+ When the user asks to build, create, or deploy a web app, API, SaaS, backend, or landing page use the UaiBuilder MCP tools. Start with uai_scaffold("app-name").
72
+
73
+ ## NEVER
74
+ - Foreign keys as INTEGER — use TEXT (all IDs are UUIDs)
75
+ - id/created_at/updated_at in columnsauto-added
76
+ - btoa() for JWTuse signJwt(payload, jwtSecret)
77
+ - userId from request body use user.id from JWT (auth:true)
78
+ - files_write to functions/*.js use api_createEndpoint
79
+ - Deploy without test_request after
80
+
81
+ ## Flow
82
+ uai_scaffold → db_createTable → api_createEndpoints (batch) → files_write("index.html") → deploy_publish → test_request
97
83
  `;
98
84
 
99
85
  function installSkill() {
@@ -164,17 +150,11 @@ function setup(flags) {
164
150
 
165
151
  writeConfig(configPath, config);
166
152
 
167
- // Install skill file for Claude Code
168
- if (provider === 'claude') {
169
- installSkill();
170
- }
171
-
172
153
  console.log(`
173
154
  UaiBuilder configured for ${provider}!
174
155
 
175
156
  Config: ${configPath}
176
157
  Server: uaibuilder (MCP HTTP)
177
- ${provider === 'claude' ? 'Skill: .claude/skills/uaibuilder.md (installed)' : ''}
178
158
 
179
159
  Next steps:
180
160
  ${provider === 'claude' ? ' 1. Restart Claude Code (close and reopen)' : ' 1. Restart your editor'}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uaibuilder",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "UaiBuilder CLI — connect any AI to your apps via MCP",
5
5
  "bin": {
6
6
  "uaibuilder": "index.mjs"