codebakers 2.0.0 → 2.0.2
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 +1277 -127
- package/package.json +1 -1
- package/src/commands/advisors.ts +699 -0
- package/src/commands/design.ts +298 -0
- package/src/commands/prd.ts +419 -0
- package/src/index.ts +33 -0
package/src/index.ts
CHANGED
|
@@ -19,6 +19,9 @@ import { learnCommand } from './commands/learn.js';
|
|
|
19
19
|
import { securityCommand } from './commands/security.js';
|
|
20
20
|
import { generateCommand } from './commands/generate.js';
|
|
21
21
|
import { fixCommand } from './commands/fix.js';
|
|
22
|
+
import { designCommand } from './commands/design.js';
|
|
23
|
+
import { prdCommand } from './commands/prd.js';
|
|
24
|
+
import { advisorsCommand } from './commands/advisors.js';
|
|
22
25
|
|
|
23
26
|
const VERSION = '1.0.0';
|
|
24
27
|
|
|
@@ -69,12 +72,17 @@ async function showMainMenu(): Promise<void> {
|
|
|
69
72
|
{ value: 'gateway', label: '📱 Channel gateway', hint: 'WhatsApp, Telegram, etc.' },
|
|
70
73
|
{ value: 'learn', label: '🧠 Learning settings', hint: 'view what I\'ve learned' },
|
|
71
74
|
{ value: 'security', label: '🔒 Security audit', hint: 'check for vulnerabilities' },
|
|
75
|
+
{ value: 'design', label: '🎨 Design system', hint: 'set profile, colors' },
|
|
72
76
|
{ value: 'separator2', label: '─────────────────────────' },
|
|
73
77
|
{ value: 'new', label: '🆕 Create new project' },
|
|
78
|
+
{ value: 'prd', label: '📄 Build from PRD', hint: 'upload a PRD document' },
|
|
79
|
+
{ value: 'advisors', label: '🌟 Dream Team Advisors', hint: 'consult with experts' },
|
|
74
80
|
{ value: 'settings', label: '⚙️ Settings' },
|
|
75
81
|
{ value: 'help', label: '❓ Help' },
|
|
76
82
|
] : [
|
|
77
83
|
{ value: 'new', label: '🆕 Create new project' },
|
|
84
|
+
{ value: 'prd', label: '📄 Build from PRD', hint: 'upload a PRD document' },
|
|
85
|
+
{ value: 'advisors', label: '🌟 Dream Team Advisors', hint: 'consult with experts' },
|
|
78
86
|
{ value: 'open', label: '📂 Open existing project' },
|
|
79
87
|
{ value: 'status', label: '📊 View all projects' },
|
|
80
88
|
{ value: 'separator1', label: '─────────────────────────' },
|
|
@@ -123,9 +131,18 @@ async function showMainMenu(): Promise<void> {
|
|
|
123
131
|
case 'security':
|
|
124
132
|
await securityCommand();
|
|
125
133
|
break;
|
|
134
|
+
case 'design':
|
|
135
|
+
await designCommand();
|
|
136
|
+
break;
|
|
126
137
|
case 'new':
|
|
127
138
|
await initCommand();
|
|
128
139
|
break;
|
|
140
|
+
case 'prd':
|
|
141
|
+
await prdCommand();
|
|
142
|
+
break;
|
|
143
|
+
case 'advisors':
|
|
144
|
+
await advisorsCommand();
|
|
145
|
+
break;
|
|
129
146
|
case 'settings':
|
|
130
147
|
await setupCommand();
|
|
131
148
|
break;
|
|
@@ -254,6 +271,22 @@ program
|
|
|
254
271
|
.option('--export', 'Export learned patterns')
|
|
255
272
|
.action(learnCommand);
|
|
256
273
|
|
|
274
|
+
program
|
|
275
|
+
.command('design [action]')
|
|
276
|
+
.description('Manage design system (profile, palette, check)')
|
|
277
|
+
.action(designCommand);
|
|
278
|
+
|
|
279
|
+
program
|
|
280
|
+
.command('prd [file]')
|
|
281
|
+
.description('Build entire project from a PRD document')
|
|
282
|
+
.action(prdCommand);
|
|
283
|
+
|
|
284
|
+
program
|
|
285
|
+
.command('advisors')
|
|
286
|
+
.alias('dream-team')
|
|
287
|
+
.description('Consult with the CodeBakers Dream Team advisory board')
|
|
288
|
+
.action(advisorsCommand);
|
|
289
|
+
|
|
257
290
|
// Parse args or show menu
|
|
258
291
|
const args = process.argv.slice(2);
|
|
259
292
|
|