codebakers 1.0.45 → 2.0.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 +275 -60
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3999 -0
- package/install.bat +9 -0
- package/package.json +71 -115
- package/src/channels/discord.ts +5 -0
- package/src/channels/slack.ts +5 -0
- package/src/channels/sms.ts +4 -0
- package/src/channels/telegram.ts +5 -0
- package/src/channels/whatsapp.ts +7 -0
- package/src/commands/check.ts +365 -0
- package/src/commands/code.ts +684 -0
- package/src/commands/connect.ts +12 -0
- package/src/commands/deploy.ts +414 -0
- package/src/commands/fix.ts +20 -0
- package/src/commands/gateway.ts +604 -0
- package/src/commands/generate.ts +178 -0
- package/src/commands/init.ts +574 -0
- package/src/commands/learn.ts +36 -0
- package/src/commands/security.ts +102 -0
- package/src/commands/setup.ts +448 -0
- package/src/commands/status.ts +56 -0
- package/src/index.ts +268 -0
- package/src/patterns/loader.ts +337 -0
- package/src/services/github.ts +61 -0
- package/src/services/supabase.ts +147 -0
- package/src/services/vercel.ts +61 -0
- package/src/utils/claude-md.ts +287 -0
- package/src/utils/config.ts +282 -0
- package/src/utils/updates.ts +27 -0
- package/tsconfig.json +17 -10
- package/.vscodeignore +0 -18
- package/LICENSE +0 -21
- package/codebakers-1.0.0.vsix +0 -0
- package/codebakers-1.0.10.vsix +0 -0
- package/codebakers-1.0.11.vsix +0 -0
- package/codebakers-1.0.12.vsix +0 -0
- package/codebakers-1.0.13.vsix +0 -0
- package/codebakers-1.0.14.vsix +0 -0
- package/codebakers-1.0.15.vsix +0 -0
- package/codebakers-1.0.16.vsix +0 -0
- package/codebakers-1.0.17.vsix +0 -0
- package/codebakers-1.0.18.vsix +0 -0
- package/codebakers-1.0.19.vsix +0 -0
- package/codebakers-1.0.20.vsix +0 -0
- package/codebakers-1.0.21.vsix +0 -0
- package/codebakers-1.0.22.vsix +0 -0
- package/codebakers-1.0.23.vsix +0 -0
- package/codebakers-1.0.24.vsix +0 -0
- package/codebakers-1.0.25.vsix +0 -0
- package/codebakers-1.0.26.vsix +0 -0
- package/codebakers-1.0.27.vsix +0 -0
- package/codebakers-1.0.28.vsix +0 -0
- package/codebakers-1.0.29.vsix +0 -0
- package/codebakers-1.0.30.vsix +0 -0
- package/codebakers-1.0.31.vsix +0 -0
- package/codebakers-1.0.32.vsix +0 -0
- package/codebakers-1.0.35.vsix +0 -0
- package/codebakers-1.0.36.vsix +0 -0
- package/codebakers-1.0.37.vsix +0 -0
- package/codebakers-1.0.38.vsix +0 -0
- package/codebakers-1.0.39.vsix +0 -0
- package/codebakers-1.0.40.vsix +0 -0
- package/codebakers-1.0.41.vsix +0 -0
- package/codebakers-1.0.42.vsix +0 -0
- package/codebakers-1.0.43.vsix +0 -0
- package/codebakers-1.0.44.vsix +0 -0
- package/codebakers-1.0.45.vsix +0 -0
- package/dist/extension.js +0 -1394
- package/esbuild.js +0 -63
- package/media/icon.png +0 -0
- package/media/icon.svg +0 -7
- package/nul +0 -1
- package/preview.html +0 -547
- package/src/ChatPanelProvider.ts +0 -1815
- package/src/ChatViewProvider.ts +0 -749
- package/src/CodeBakersClient.ts +0 -1146
- package/src/CodeValidator.ts +0 -645
- package/src/FileOperations.ts +0 -410
- package/src/ProjectContext.ts +0 -526
- package/src/extension.ts +0 -332
package/README.md
CHANGED
|
@@ -1,88 +1,303 @@
|
|
|
1
|
-
# CodeBakers
|
|
1
|
+
# CodeBakers CLI
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**AI dev team that follows YOUR rules.**
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Build apps from your terminal, phone, or anywhere — with pattern enforcement, auto-provisioning, and intelligent assistance.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
```
|
|
8
|
+
██████╗ ██████╗ ██████╗ ███████╗██████╗ █████╗ ██╗ ██╗███████╗██████╗ ███████╗
|
|
9
|
+
██╔════╝██╔═══██╗██╔══██╗██╔════╝██╔══██╗██╔══██╗██║ ██╔╝██╔════╝██╔══██╗██╔════╝
|
|
10
|
+
██║ ██║ ██║██║ ██║█████╗ ██████╔╝███████║█████╔╝ █████╗ ██████╔╝███████╗
|
|
11
|
+
██║ ██║ ██║██║ ██║██╔══╝ ██╔══██╗██╔══██║██╔═██╗ ██╔══╝ ██╔══██╗╚════██║
|
|
12
|
+
╚██████╗╚██████╔╝██████╔╝███████╗██████╔╝██║ ██║██║ ██╗███████╗██║ ██║███████║
|
|
13
|
+
╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚══════╝
|
|
14
|
+
```
|
|
8
15
|
|
|
9
|
-
|
|
16
|
+
## Why CodeBakers?
|
|
10
17
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
18
|
+
| Problem | Claude Code / Cursor | CodeBakers |
|
|
19
|
+
|---------|---------------------|------------|
|
|
20
|
+
| AI follows YOUR patterns? | ❌ Generic output | ✅ Enforced rules |
|
|
21
|
+
| Auto-provisions infrastructure? | ❌ Manual setup | ✅ GitHub + Vercel + Supabase |
|
|
22
|
+
| Fixes deploy errors automatically? | ❌ | ✅ Auto-fix with AI |
|
|
23
|
+
| Build from phone? | ❌ | ✅ WhatsApp, Telegram, Discord |
|
|
24
|
+
| Pattern check before commit? | ❌ | ✅ Git hooks |
|
|
25
|
+
| Learns your preferences? | ❌ | ✅ Gets smarter over time |
|
|
15
26
|
|
|
16
|
-
|
|
27
|
+
## Quick Start
|
|
17
28
|
|
|
18
|
-
|
|
29
|
+
```bash
|
|
30
|
+
# Install
|
|
31
|
+
npm install -g codebakers
|
|
19
32
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
| Suggests patterns in CLAUDE.md | **Enforces patterns** — loads them before every response |
|
|
23
|
-
| Context lost when window compacts | **Perfect recall** — context persists automatically |
|
|
24
|
-
| Says "done" without validation | **Two-gate system** — won't complete without tests passing |
|
|
25
|
-
| Generates inconsistent code | **40+ production modules** — same quality, every time |
|
|
26
|
-
| You pay for tokens AND your time | **$99/mo unlimited** — save 20+ hours, pay for itself |
|
|
33
|
+
# First-time setup (connects GitHub, Vercel, Supabase, Anthropic)
|
|
34
|
+
codebakers setup
|
|
27
35
|
|
|
28
|
-
|
|
36
|
+
# Create a new project
|
|
37
|
+
codebakers init
|
|
29
38
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
- **Zero token limits** — unlimited Claude API usage
|
|
39
|
+
# Start coding with AI
|
|
40
|
+
codebakers code
|
|
41
|
+
```
|
|
34
42
|
|
|
35
|
-
##
|
|
43
|
+
## Commands
|
|
36
44
|
|
|
37
|
-
###
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
45
|
+
### Interactive Mode
|
|
46
|
+
```bash
|
|
47
|
+
codebakers # Opens interactive menu
|
|
48
|
+
```
|
|
41
49
|
|
|
42
|
-
###
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
50
|
+
### Project Commands
|
|
51
|
+
```bash
|
|
52
|
+
codebakers init # Create new project
|
|
53
|
+
codebakers code # AI coding agent
|
|
54
|
+
codebakers check # Run pattern enforcement
|
|
55
|
+
codebakers deploy # Deploy to production
|
|
56
|
+
codebakers fix # Auto-fix errors
|
|
57
|
+
codebakers status # View project health
|
|
58
|
+
```
|
|
49
59
|
|
|
50
|
-
###
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
60
|
+
### Generation
|
|
61
|
+
```bash
|
|
62
|
+
codebakers generate component # Generate React component
|
|
63
|
+
codebakers generate page # Generate Next.js page
|
|
64
|
+
codebakers generate api # Generate API route
|
|
65
|
+
codebakers generate hook # Generate custom hook
|
|
66
|
+
codebakers generate store # Generate Zustand store
|
|
67
|
+
codebakers generate form # Generate form with validation
|
|
68
|
+
```
|
|
55
69
|
|
|
56
|
-
|
|
70
|
+
### Services
|
|
71
|
+
```bash
|
|
72
|
+
codebakers connect # Connect external services
|
|
73
|
+
codebakers setup # Configure credentials
|
|
74
|
+
```
|
|
57
75
|
|
|
58
|
-
|
|
76
|
+
### Messaging Channels
|
|
77
|
+
```bash
|
|
78
|
+
codebakers gateway # Manage messaging channels
|
|
79
|
+
codebakers gateway --start # Start receiving messages
|
|
80
|
+
codebakers gateway --stop # Stop gateway
|
|
81
|
+
```
|
|
59
82
|
|
|
60
|
-
|
|
83
|
+
### Security & Quality
|
|
84
|
+
```bash
|
|
85
|
+
codebakers security # Run security audit
|
|
86
|
+
codebakers check --fix # Auto-fix pattern violations
|
|
87
|
+
```
|
|
61
88
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
89
|
+
### Learning
|
|
90
|
+
```bash
|
|
91
|
+
codebakers learn # View learned preferences
|
|
92
|
+
codebakers learn --reset # Reset all learning
|
|
93
|
+
```
|
|
65
94
|
|
|
66
|
-
|
|
95
|
+
## Features
|
|
67
96
|
|
|
68
|
-
|
|
97
|
+
### 🤖 AI Coding Agent
|
|
69
98
|
|
|
70
|
-
|
|
71
|
-
2. Click the CodeBakers icon in the sidebar
|
|
72
|
-
3. Login with GitHub
|
|
73
|
-
4. Start coding — patterns load automatically
|
|
99
|
+
Natural language to working code:
|
|
74
100
|
|
|
75
|
-
|
|
101
|
+
```
|
|
102
|
+
> codebakers code
|
|
103
|
+
? What do you want to build?
|
|
104
|
+
> Add a contact form that sends emails via Resend
|
|
76
105
|
|
|
77
|
-
|
|
106
|
+
📋 Plan:
|
|
107
|
+
1. Create ContactForm component with React Hook Form
|
|
108
|
+
2. Add Zod validation schema
|
|
109
|
+
3. Create API route /api/contact
|
|
110
|
+
4. Configure Resend email sending
|
|
111
|
+
5. Add success/error toasts
|
|
78
112
|
|
|
79
|
-
|
|
113
|
+
? Execute this plan? Yes
|
|
80
114
|
|
|
81
|
-
|
|
115
|
+
Building...
|
|
116
|
+
✓ Created src/components/forms/contact-form.tsx
|
|
117
|
+
✓ Created src/app/api/contact/route.ts
|
|
118
|
+
✓ Updated src/lib/validations.ts
|
|
82
119
|
|
|
83
|
-
|
|
120
|
+
🔍 Running CodeBakers check...
|
|
121
|
+
✓ All patterns satisfied
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### 📐 Pattern Enforcement
|
|
125
|
+
|
|
126
|
+
Your rules, enforced automatically:
|
|
127
|
+
|
|
128
|
+
- ✅ Every button has onClick handler
|
|
129
|
+
- ✅ Every form has Zod validation
|
|
130
|
+
- ✅ Every async operation has loading/error states
|
|
131
|
+
- ✅ Every list has empty state
|
|
132
|
+
- ✅ No `any` types
|
|
133
|
+
- ✅ No `@ts-ignore`
|
|
134
|
+
- ✅ No `console.log` in production
|
|
135
|
+
- ✅ No hardcoded secrets
|
|
136
|
+
|
|
137
|
+
### 🚀 Auto-Provisioning
|
|
138
|
+
|
|
139
|
+
One command sets up everything:
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
codebakers init my-app
|
|
143
|
+
|
|
144
|
+
✓ Created local project
|
|
145
|
+
✓ GitHub repo created: github.com/you/my-app
|
|
146
|
+
✓ Supabase project created
|
|
147
|
+
✓ Vercel project created
|
|
148
|
+
✓ Deployed: https://my-app.vercel.app
|
|
149
|
+
✓ CLAUDE.md generated
|
|
150
|
+
✓ Git hooks configured
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### 🔧 Auto-Fix
|
|
154
|
+
|
|
155
|
+
Deploy errors? Fixed automatically:
|
|
156
|
+
|
|
157
|
+
```
|
|
158
|
+
Deploying to production...
|
|
159
|
+
✗ Build failed: Type error in src/components/Button.tsx
|
|
160
|
+
|
|
161
|
+
? Attempt to fix with AI? Yes
|
|
162
|
+
|
|
163
|
+
Fixing...
|
|
164
|
+
✓ Fixed type error
|
|
165
|
+
✓ Build successful
|
|
166
|
+
✓ Deployed: https://my-app.vercel.app
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### 📱 Build From Anywhere
|
|
170
|
+
|
|
171
|
+
Connect messaging channels and code from your phone:
|
|
172
|
+
|
|
173
|
+
```
|
|
174
|
+
WhatsApp: "Create a landing page for a dog walking app with pricing"
|
|
175
|
+
|
|
176
|
+
CodeBakers: Building PupWalk...
|
|
177
|
+
✓ Created landing page
|
|
178
|
+
✓ Added pricing section
|
|
179
|
+
✓ Deployed to pupwalk.vercel.app
|
|
180
|
+
|
|
181
|
+
Here's your site: https://pupwalk.vercel.app
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
Supported channels:
|
|
185
|
+
- 💬 WhatsApp (via Baileys)
|
|
186
|
+
- ✈️ Telegram
|
|
187
|
+
- 🎮 Discord
|
|
188
|
+
- 💼 Slack
|
|
189
|
+
- 📱 SMS (via Twilio)
|
|
190
|
+
- 🍎 iMessage (macOS only)
|
|
191
|
+
|
|
192
|
+
### 🧠 Learning System
|
|
193
|
+
|
|
194
|
+
CodeBakers learns from you:
|
|
195
|
+
|
|
196
|
+
- Your framework preferences (Next.js, Remix, etc.)
|
|
197
|
+
- Your UI library choices (shadcn, Chakra, etc.)
|
|
198
|
+
- Your naming conventions
|
|
199
|
+
- Common shortcuts ("lp" → "login page")
|
|
200
|
+
- Things you don't want
|
|
201
|
+
- Workflows you repeat
|
|
202
|
+
|
|
203
|
+
```bash
|
|
204
|
+
codebakers learn
|
|
205
|
+
|
|
206
|
+
🧠 What CodeBakers has learned:
|
|
207
|
+
|
|
208
|
+
Preferences:
|
|
209
|
+
defaultFramework: nextjs (your usual choice)
|
|
210
|
+
defaultUI: shadcn
|
|
211
|
+
|
|
212
|
+
Shortcuts:
|
|
213
|
+
lp → login page
|
|
214
|
+
dash → dashboard
|
|
215
|
+
|
|
216
|
+
Rejections:
|
|
217
|
+
✗ Material UI
|
|
218
|
+
✗ Class components
|
|
219
|
+
```
|
|
84
220
|
|
|
85
|
-
|
|
86
|
-
|
|
221
|
+
### 🔒 Security
|
|
222
|
+
|
|
223
|
+
Built-in security scanning:
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
codebakers security
|
|
227
|
+
|
|
228
|
+
🔍 Scanning for security issues...
|
|
229
|
+
|
|
230
|
+
🔴 CRITICAL: Hardcoded Stripe key
|
|
231
|
+
src/lib/payments.ts:15
|
|
232
|
+
Stripe API key should be in environment variables
|
|
233
|
+
|
|
234
|
+
🟠 HIGH: dangerouslySetInnerHTML
|
|
235
|
+
src/components/Comment.tsx:23
|
|
236
|
+
Ensure content is sanitized with DOMPurify
|
|
237
|
+
|
|
238
|
+
Security Score: 65/100 Grade: D
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
## Configuration
|
|
242
|
+
|
|
243
|
+
### Global Config
|
|
244
|
+
|
|
245
|
+
Stored in `~/.codebakers/`:
|
|
246
|
+
|
|
247
|
+
```
|
|
248
|
+
~/.codebakers/
|
|
249
|
+
├── config.json # Settings
|
|
250
|
+
├── credentials.enc # Encrypted API keys
|
|
251
|
+
├── patterns/ # Global patterns
|
|
252
|
+
├── templates/ # Project templates
|
|
253
|
+
└── learning/ # Learned preferences
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
### Project Config
|
|
257
|
+
|
|
258
|
+
Stored in `.codebakers/`:
|
|
259
|
+
|
|
260
|
+
```
|
|
261
|
+
project/.codebakers/
|
|
262
|
+
├── config.json # Project settings
|
|
263
|
+
├── patterns/ # Project-specific patterns
|
|
264
|
+
└── memory.json # AI conversation context
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
## Supported Services
|
|
268
|
+
|
|
269
|
+
**Required (connected during setup):**
|
|
270
|
+
- GitHub
|
|
271
|
+
- Vercel
|
|
272
|
+
- Supabase
|
|
273
|
+
- Anthropic (Claude)
|
|
274
|
+
|
|
275
|
+
**Optional:**
|
|
276
|
+
- OpenAI
|
|
277
|
+
- Stripe
|
|
278
|
+
- Twilio
|
|
279
|
+
- VAPI
|
|
280
|
+
- Resend
|
|
281
|
+
- ElevenLabs
|
|
282
|
+
- Microsoft Graph
|
|
283
|
+
- Google APIs
|
|
284
|
+
|
|
285
|
+
## Requirements
|
|
286
|
+
|
|
287
|
+
- Node.js 18+
|
|
288
|
+
- pnpm (recommended) or npm
|
|
289
|
+
- Git
|
|
290
|
+
|
|
291
|
+
## License
|
|
292
|
+
|
|
293
|
+
MIT
|
|
294
|
+
|
|
295
|
+
## Links
|
|
296
|
+
|
|
297
|
+
- Website: https://codebakers.dev
|
|
298
|
+
- Documentation: https://codebakers.dev/docs
|
|
299
|
+
- Discord: https://discord.gg/codebakers
|
|
300
|
+
|
|
301
|
+
---
|
|
87
302
|
|
|
88
|
-
|
|
303
|
+
Built with ❤️ by BotMakers Inc.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|