codebakers 2.1.2 → 2.2.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/dist/index.js +1095 -1050
- package/package.json +1 -1
- package/src/commands/build.ts +34 -3
- package/src/commands/code.ts +28 -3
- package/src/commands/deploy.ts +36 -2
- package/src/commands/init.ts +11 -1
- package/src/commands/integrate.ts +464 -565
- package/src/commands/setup.ts +375 -357
- package/src/commands/website.ts +17 -2
- package/src/index.ts +29 -22
package/src/commands/website.ts
CHANGED
|
@@ -135,13 +135,28 @@ export async function websiteCommand(): Promise<void> {
|
|
|
135
135
|
const config = new Config();
|
|
136
136
|
|
|
137
137
|
if (!config.isConfigured()) {
|
|
138
|
-
|
|
138
|
+
console.log(chalk.yellow(`
|
|
139
|
+
⚠️ CodeBakers isn't set up yet.
|
|
140
|
+
|
|
141
|
+
Run this first:
|
|
142
|
+
${chalk.cyan('codebakers setup')}
|
|
143
|
+
`));
|
|
139
144
|
return;
|
|
140
145
|
}
|
|
141
146
|
|
|
142
147
|
const anthropicCreds = config.getCredentials('anthropic');
|
|
143
148
|
if (!anthropicCreds?.apiKey) {
|
|
144
|
-
|
|
149
|
+
console.log(chalk.yellow(`
|
|
150
|
+
⚠️ Anthropic API key not configured.
|
|
151
|
+
|
|
152
|
+
The website builder needs Claude AI to generate code.
|
|
153
|
+
|
|
154
|
+
Run this to add your API key:
|
|
155
|
+
${chalk.cyan('codebakers setup')}
|
|
156
|
+
|
|
157
|
+
Get an API key at:
|
|
158
|
+
${chalk.dim('https://console.anthropic.com/settings/keys')}
|
|
159
|
+
`));
|
|
145
160
|
return;
|
|
146
161
|
}
|
|
147
162
|
|
package/src/index.ts
CHANGED
|
@@ -29,7 +29,7 @@ import { integrateCommand, INTEGRATIONS } from './commands/integrate.js';
|
|
|
29
29
|
import { websiteCommand } from './commands/website.js';
|
|
30
30
|
import { parseNaturalLanguage, clarifyCommand, clarifyDeployTarget } from './utils/nlp.js';
|
|
31
31
|
|
|
32
|
-
const VERSION = '2.
|
|
32
|
+
const VERSION = '2.2.0';
|
|
33
33
|
|
|
34
34
|
// ASCII art logo
|
|
35
35
|
const logo = `
|
|
@@ -186,27 +186,34 @@ async function showMainMenu(): Promise<void> {
|
|
|
186
186
|
|
|
187
187
|
function showHelp(): void {
|
|
188
188
|
console.log(boxen(`
|
|
189
|
-
${chalk.bold('CodeBakers CLI')} — AI dev team that follows the rules
|
|
190
|
-
|
|
191
|
-
${chalk.bold('
|
|
192
|
-
${chalk.cyan('codebakers')}
|
|
193
|
-
${chalk.cyan('codebakers init')} Create a new project
|
|
194
|
-
${chalk.cyan('codebakers
|
|
195
|
-
${chalk.cyan('codebakers
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
${chalk.cyan('codebakers
|
|
199
|
-
${chalk.cyan('codebakers
|
|
200
|
-
${chalk.cyan('codebakers
|
|
201
|
-
${chalk.cyan('codebakers
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
${chalk.
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
${chalk.
|
|
209
|
-
${chalk.
|
|
189
|
+
${chalk.bold('CodeBakers CLI v' + VERSION)} — AI dev team that follows the rules
|
|
190
|
+
|
|
191
|
+
${chalk.bold.cyan('Getting Started:')}
|
|
192
|
+
${chalk.cyan('codebakers setup')} Connect your accounts (GitHub, Vercel, etc.)
|
|
193
|
+
${chalk.cyan('codebakers init')} Create a new project from scratch
|
|
194
|
+
${chalk.cyan('codebakers website')} Build a website by describing it
|
|
195
|
+
${chalk.cyan('codebakers build')} Build from PRD with parallel AI agents
|
|
196
|
+
|
|
197
|
+
${chalk.bold.cyan('Daily Development:')}
|
|
198
|
+
${chalk.cyan('codebakers code')} Chat with AI to build features
|
|
199
|
+
${chalk.cyan('codebakers check')} Check code quality & patterns
|
|
200
|
+
${chalk.cyan('codebakers fix')} Auto-fix errors with AI
|
|
201
|
+
${chalk.cyan('codebakers deploy')} Deploy to Vercel
|
|
202
|
+
|
|
203
|
+
${chalk.bold.cyan('Integrations:')}
|
|
204
|
+
${chalk.cyan('codebakers integrate')} 50+ one-click integrations (Stripe, Supabase, etc.)
|
|
205
|
+
${chalk.cyan('codebakers gateway')} Connect WhatsApp, Telegram, Discord, etc.
|
|
206
|
+
|
|
207
|
+
${chalk.bold.cyan('Planning:')}
|
|
208
|
+
${chalk.cyan('codebakers prd-maker')} Create PRD through interview (voice supported)
|
|
209
|
+
${chalk.cyan('codebakers advisors')} Consult AI experts (CEO, CTO, Designer, etc.)
|
|
210
|
+
|
|
211
|
+
${chalk.bold.cyan('Tips:')}
|
|
212
|
+
• Type naturally: ${chalk.dim('codebakers "add a contact form"')}
|
|
213
|
+
• Voice input: Type ${chalk.yellow('"v"')} at any prompt
|
|
214
|
+
• Clipboard: Type ${chalk.yellow('"clip"')} to paste from clipboard
|
|
215
|
+
|
|
216
|
+
${chalk.bold('Docs:')} ${chalk.dim('https://codebakers.dev/docs')}
|
|
210
217
|
`, { padding: 1, borderColor: 'cyan', borderStyle: 'round' }));
|
|
211
218
|
}
|
|
212
219
|
|