codebakers 2.0.10 → 2.1.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 +1123 -247
- package/package.json +1 -1
- package/src/commands/integrate.ts +985 -0
- package/src/index.ts +14 -2
package/src/index.ts
CHANGED
|
@@ -25,9 +25,10 @@ import { advisorsCommand } from './commands/advisors.js';
|
|
|
25
25
|
import { migrateCommand } from './commands/migrate.js';
|
|
26
26
|
import { prdMakerCommand } from './commands/prd-maker.js';
|
|
27
27
|
import { buildCommand } from './commands/build.js';
|
|
28
|
+
import { integrateCommand, INTEGRATIONS } from './commands/integrate.js';
|
|
28
29
|
import { parseNaturalLanguage, clarifyCommand, clarifyDeployTarget } from './utils/nlp.js';
|
|
29
30
|
|
|
30
|
-
const VERSION = '2.0
|
|
31
|
+
const VERSION = '2.1.0';
|
|
31
32
|
|
|
32
33
|
// ASCII art logo
|
|
33
34
|
const logo = `
|
|
@@ -66,6 +67,7 @@ async function showMainMenu(): Promise<void> {
|
|
|
66
67
|
message: 'What do you want to do? (or type naturally)',
|
|
67
68
|
options: inProject ? [
|
|
68
69
|
{ value: 'code', label: '💬 Code with AI', hint: 'build features, fix bugs' },
|
|
70
|
+
{ value: 'integrate', label: '🔌 One-Click Integrations', hint: '50+ services, browser auth' },
|
|
69
71
|
{ value: 'check', label: '🔍 Check code quality', hint: 'run pattern enforcement' },
|
|
70
72
|
{ value: 'deploy', label: '🚀 Deploy', hint: 'deploy to Vercel' },
|
|
71
73
|
{ value: 'migrate', label: '🗄️ Database migrations', hint: 'push, generate, status' },
|
|
@@ -113,6 +115,9 @@ async function showMainMenu(): Promise<void> {
|
|
|
113
115
|
case 'code':
|
|
114
116
|
await codeCommand();
|
|
115
117
|
break;
|
|
118
|
+
case 'integrate':
|
|
119
|
+
await integrateCommand();
|
|
120
|
+
break;
|
|
116
121
|
case 'check':
|
|
117
122
|
await checkCommand();
|
|
118
123
|
break;
|
|
@@ -327,6 +332,12 @@ program
|
|
|
327
332
|
.option('--sequential', 'Disable parallel execution')
|
|
328
333
|
.action(buildCommand);
|
|
329
334
|
|
|
335
|
+
program
|
|
336
|
+
.command('integrate [integration]')
|
|
337
|
+
.alias('add')
|
|
338
|
+
.description('One-click integrations (50+ services with browser auth)')
|
|
339
|
+
.action(integrateCommand);
|
|
340
|
+
|
|
330
341
|
// Natural language processing for free-form input
|
|
331
342
|
async function handleNaturalLanguage(input: string): Promise<void> {
|
|
332
343
|
const config = new Config();
|
|
@@ -415,7 +426,8 @@ if (args.length === 0) {
|
|
|
415
426
|
const knownCommands = [
|
|
416
427
|
'setup', 'init', 'code', 'check', 'deploy', 'fix', 'generate',
|
|
417
428
|
'connect', 'status', 'gateway', 'security', 'learn', 'design',
|
|
418
|
-
'prd', 'advisors', 'migrate', 'prd-maker', 'build', 'swarm',
|
|
429
|
+
'prd', 'advisors', 'migrate', 'prd-maker', 'build', 'swarm',
|
|
430
|
+
'integrate', 'add', 'help'
|
|
419
431
|
];
|
|
420
432
|
|
|
421
433
|
const firstArg = args[0] as string;
|