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.
Files changed (81) hide show
  1. package/README.md +275 -60
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.js +3999 -0
  4. package/install.bat +9 -0
  5. package/package.json +71 -115
  6. package/src/channels/discord.ts +5 -0
  7. package/src/channels/slack.ts +5 -0
  8. package/src/channels/sms.ts +4 -0
  9. package/src/channels/telegram.ts +5 -0
  10. package/src/channels/whatsapp.ts +7 -0
  11. package/src/commands/check.ts +365 -0
  12. package/src/commands/code.ts +684 -0
  13. package/src/commands/connect.ts +12 -0
  14. package/src/commands/deploy.ts +414 -0
  15. package/src/commands/fix.ts +20 -0
  16. package/src/commands/gateway.ts +604 -0
  17. package/src/commands/generate.ts +178 -0
  18. package/src/commands/init.ts +574 -0
  19. package/src/commands/learn.ts +36 -0
  20. package/src/commands/security.ts +102 -0
  21. package/src/commands/setup.ts +448 -0
  22. package/src/commands/status.ts +56 -0
  23. package/src/index.ts +268 -0
  24. package/src/patterns/loader.ts +337 -0
  25. package/src/services/github.ts +61 -0
  26. package/src/services/supabase.ts +147 -0
  27. package/src/services/vercel.ts +61 -0
  28. package/src/utils/claude-md.ts +287 -0
  29. package/src/utils/config.ts +282 -0
  30. package/src/utils/updates.ts +27 -0
  31. package/tsconfig.json +17 -10
  32. package/.vscodeignore +0 -18
  33. package/LICENSE +0 -21
  34. package/codebakers-1.0.0.vsix +0 -0
  35. package/codebakers-1.0.10.vsix +0 -0
  36. package/codebakers-1.0.11.vsix +0 -0
  37. package/codebakers-1.0.12.vsix +0 -0
  38. package/codebakers-1.0.13.vsix +0 -0
  39. package/codebakers-1.0.14.vsix +0 -0
  40. package/codebakers-1.0.15.vsix +0 -0
  41. package/codebakers-1.0.16.vsix +0 -0
  42. package/codebakers-1.0.17.vsix +0 -0
  43. package/codebakers-1.0.18.vsix +0 -0
  44. package/codebakers-1.0.19.vsix +0 -0
  45. package/codebakers-1.0.20.vsix +0 -0
  46. package/codebakers-1.0.21.vsix +0 -0
  47. package/codebakers-1.0.22.vsix +0 -0
  48. package/codebakers-1.0.23.vsix +0 -0
  49. package/codebakers-1.0.24.vsix +0 -0
  50. package/codebakers-1.0.25.vsix +0 -0
  51. package/codebakers-1.0.26.vsix +0 -0
  52. package/codebakers-1.0.27.vsix +0 -0
  53. package/codebakers-1.0.28.vsix +0 -0
  54. package/codebakers-1.0.29.vsix +0 -0
  55. package/codebakers-1.0.30.vsix +0 -0
  56. package/codebakers-1.0.31.vsix +0 -0
  57. package/codebakers-1.0.32.vsix +0 -0
  58. package/codebakers-1.0.35.vsix +0 -0
  59. package/codebakers-1.0.36.vsix +0 -0
  60. package/codebakers-1.0.37.vsix +0 -0
  61. package/codebakers-1.0.38.vsix +0 -0
  62. package/codebakers-1.0.39.vsix +0 -0
  63. package/codebakers-1.0.40.vsix +0 -0
  64. package/codebakers-1.0.41.vsix +0 -0
  65. package/codebakers-1.0.42.vsix +0 -0
  66. package/codebakers-1.0.43.vsix +0 -0
  67. package/codebakers-1.0.44.vsix +0 -0
  68. package/codebakers-1.0.45.vsix +0 -0
  69. package/dist/extension.js +0 -1394
  70. package/esbuild.js +0 -63
  71. package/media/icon.png +0 -0
  72. package/media/icon.svg +0 -7
  73. package/nul +0 -1
  74. package/preview.html +0 -547
  75. package/src/ChatPanelProvider.ts +0 -1815
  76. package/src/ChatViewProvider.ts +0 -749
  77. package/src/CodeBakersClient.ts +0 -1146
  78. package/src/CodeValidator.ts +0 -645
  79. package/src/FileOperations.ts +0 -410
  80. package/src/ProjectContext.ts +0 -526
  81. package/src/extension.ts +0 -332
package/README.md CHANGED
@@ -1,88 +1,303 @@
1
- # CodeBakers - Stop Fixing AI Mistakes
1
+ # CodeBakers CLI
2
2
 
3
- **Cursor and Claude Code ignore your standards. CodeBakers enforces them.**
3
+ **AI dev team that follows YOUR rules.**
4
4
 
5
- Save 20+ hours per project. Get production-ready code the first time not code you have to fix.
5
+ Build apps from your terminal, phone, or anywhere with pattern enforcement, auto-provisioning, and intelligent assistance.
6
6
 
7
- ## The Problem with AI Coding Tools
7
+ ```
8
+ ██████╗ ██████╗ ██████╗ ███████╗██████╗ █████╗ ██╗ ██╗███████╗██████╗ ███████╗
9
+ ██╔════╝██╔═══██╗██╔══██╗██╔════╝██╔══██╗██╔══██╗██║ ██╔╝██╔════╝██╔══██╗██╔════╝
10
+ ██║ ██║ ██║██║ ██║█████╗ ██████╔╝███████║█████╔╝ █████╗ ██████╔╝███████╗
11
+ ██║ ██║ ██║██║ ██║██╔══╝ ██╔══██╗██╔══██║██╔═██╗ ██╔══╝ ██╔══██╗╚════██║
12
+ ╚██████╗╚██████╔╝██████╔╝███████╗██████╔╝██║ ██║██║ ██╗███████╗██║ ██║███████║
13
+ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚══════╝
14
+ ```
8
15
 
9
- You've tried Cursor. You've tried Claude Code. They're fast, but:
16
+ ## Why CodeBakers?
10
17
 
11
- - They **ignore your coding standards** and write inconsistent code
12
- - They **skip error handling** and leave you debugging in production
13
- - They **forget your context** mid-conversation and repeat mistakes
14
- - They **say "done" without tests** and you ship broken features
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
- **You end up spending hours fixing AI-generated code.** That's not saving time — that's shifting work.
27
+ ## Quick Start
17
28
 
18
- ## How CodeBakers is Different
29
+ ```bash
30
+ # Install
31
+ npm install -g codebakers
19
32
 
20
- | Cursor / Claude Code | CodeBakers |
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
- ## Real Results
36
+ # Create a new project
37
+ codebakers init
29
38
 
30
- - **20+ hours saved** per project (no more fixing AI mistakes)
31
- - **95%+ pattern compliance** (vs ~30% with CLAUDE.md alone)
32
- - **10x ROI** on your first build
33
- - **Zero token limits** — unlimited Claude API usage
39
+ # Start coding with AI
40
+ codebakers code
41
+ ```
34
42
 
35
- ## What's Included
43
+ ## Commands
36
44
 
37
- ### Guaranteed Enforcement
38
- - Patterns loaded **before** every response (not suggested, enforced)
39
- - Two-gate validation: patterns in, tests out
40
- - Guardian system auto-detects broken imports and type errors
45
+ ### Interactive Mode
46
+ ```bash
47
+ codebakers # Opens interactive menu
48
+ ```
41
49
 
42
- ### 40+ Production Modules
43
- - **Auth** — OAuth, 2FA, sessions, password reset
44
- - **Database** Drizzle, migrations, queries, transactions
45
- - **API** Validation, rate limiting, error handling
46
- - **Payments** Stripe subscriptions, webhooks, refunds
47
- - **Testing** Playwright, Vitest, CI/CD
48
- - **And 35 more** — Frontend, integrations, performance, security
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
- ### Perfect Recall
51
- Your context **never gets lost**, even in long sessions:
52
- - Project state persisted to `.codebakers.json`
53
- - Development log in `.codebakers/DEVLOG.md`
54
- - Blockers tracked in `.codebakers/BLOCKED.md`
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
- ## Pricing
70
+ ### Services
71
+ ```bash
72
+ codebakers connect # Connect external services
73
+ codebakers setup # Configure credentials
74
+ ```
57
75
 
58
- **$99/month** Unlimited usage, unlimited projects, no token limits.
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
- **14-day free trial** — Full access, no credit card required.
83
+ ### Security & Quality
84
+ ```bash
85
+ codebakers security # Run security audit
86
+ codebakers check --fix # Auto-fix pattern violations
87
+ ```
61
88
 
62
- Compare to the cost of:
63
- - 20 hours of your time fixing AI code @ $100/hr = **$2,000**
64
- - CodeBakers for a year = **$1,188**
89
+ ### Learning
90
+ ```bash
91
+ codebakers learn # View learned preferences
92
+ codebakers learn --reset # Reset all learning
93
+ ```
65
94
 
66
- **ROI: 1,682% in year one.**
95
+ ## Features
67
96
 
68
- ## Getting Started
97
+ ### 🤖 AI Coding Agent
69
98
 
70
- 1. Install "CodeBakers" from VS Code extensions
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
- ## Stop Fixing. Start Shipping.
101
+ ```
102
+ > codebakers code
103
+ ? What do you want to build?
104
+ > Add a contact form that sends emails via Resend
76
105
 
77
- Cursor and Claude Code are tools. CodeBakers is a **guarantee**.
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
- Your code will follow your standards. Your tests will exist. Your context won't disappear.
113
+ ? Execute this plan? Yes
80
114
 
81
- **Try free for 14 days** — no credit card required.
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
- - Website: [codebakers.ai](https://codebakers.ai)
86
- - Support: support@codebakers.ai
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
- MIT License CodeBakers / BotMakers Software
303
+ Built with ❤️ by BotMakers Inc.
@@ -0,0 +1 @@
1
+ #!/usr/bin/env node