@bobsworkshop/cli 0.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.
Files changed (36) hide show
  1. package/bin/bob.ts +74 -0
  2. package/dist/bin/analyse-auto-AAWSETKY.js +540 -0
  3. package/dist/bin/analyse-auto-FQ62GYPV.js +533 -0
  4. package/dist/bin/analyse-auto-JAD24IQ5.js +511 -0
  5. package/dist/bin/analyse-auto-OBCDWYWX.js +529 -0
  6. package/dist/bin/analyse-auto-R4MZA7SX.js +511 -0
  7. package/dist/bin/analyse-auto-V3SH4MS7.js +524 -0
  8. package/dist/bin/analyse-auto-WQUK5YPO.js +531 -0
  9. package/dist/bin/analyse-auto-WVAY6467.js +280 -0
  10. package/dist/bin/analyse-results-3NSD6MAY.js +363 -0
  11. package/dist/bin/analyse-results-B7LONUXU.js +265 -0
  12. package/dist/bin/analyse-results-E6NBAVDB.js +265 -0
  13. package/dist/bin/analyse-results-FIDS4635.js +9 -0
  14. package/dist/bin/analyse-results-LMGVKAUX.js +342 -0
  15. package/dist/bin/analyse-results-LSMLUEIB.js +338 -0
  16. package/dist/bin/analyse-results-MOCLBCD7.js +326 -0
  17. package/dist/bin/analyse-results-NLAEAOOP.js +10 -0
  18. package/dist/bin/analyse-results-PYQIKWYL.js +9 -0
  19. package/dist/bin/analyse-results-QSOD3KVC.js +8 -0
  20. package/dist/bin/analyse-results-R3MG5H7G.js +329 -0
  21. package/dist/bin/analyse-results-UYZZSBHB.js +9 -0
  22. package/dist/bin/analyse-results-YYGHIK2Q.js +9 -0
  23. package/dist/bin/analysis-tracker-N5VANTLH.js +12 -0
  24. package/dist/bin/bob.js +3006 -0
  25. package/dist/bin/chunk-3RSDDQE2.js +420 -0
  26. package/dist/bin/chunk-6KWC4HDO.js +97 -0
  27. package/dist/bin/chunk-6W7WDF4Q.js +589 -0
  28. package/dist/bin/chunk-7CXM3RLM.js +287 -0
  29. package/dist/bin/chunk-FGYL6SWO.js +465 -0
  30. package/dist/bin/chunk-J4BSKFCW.js +624 -0
  31. package/dist/bin/chunk-KWOQFI6L.js +287 -0
  32. package/dist/bin/chunk-LHWBSCJ4.js +878 -0
  33. package/dist/bin/chunk-OOGLZ2QB.js +322 -0
  34. package/dist/bin/chunk-TEVQLSGD.js +287 -0
  35. package/dist/bin/chunk-VUS7R7SO.js +479 -0
  36. package/package.json +47 -0
@@ -0,0 +1,479 @@
1
+ // src/core/config-store.ts
2
+ import Conf from "conf";
3
+
4
+ // src/types/config.ts
5
+ var DEFAULT_CONFIG = {
6
+ tier: "local",
7
+ loggedIn: false,
8
+ email: null,
9
+ uid: null,
10
+ authToken: null,
11
+ refreshToken: null,
12
+ provider: null,
13
+ providerKey: null,
14
+ localEndpoint: null,
15
+ personalizationMode: false,
16
+ consultantMode: false,
17
+ autoMode: false,
18
+ idrp: false,
19
+ idrpFilter: "free",
20
+ activeProject: null,
21
+ conversationId: null,
22
+ activePersona: null,
23
+ hasSeenWelcome: false
24
+ };
25
+
26
+ // src/core/config-store.ts
27
+ var store = new Conf({
28
+ projectName: "bob-cli",
29
+ defaults: DEFAULT_CONFIG
30
+ });
31
+ function getConfig() {
32
+ return {
33
+ tier: store.get("tier"),
34
+ loggedIn: store.get("loggedIn"),
35
+ email: store.get("email"),
36
+ uid: store.get("uid"),
37
+ authToken: store.get("authToken"),
38
+ refreshToken: store.get("refreshToken"),
39
+ provider: store.get("provider"),
40
+ providerKey: store.get("providerKey"),
41
+ localEndpoint: store.get("localEndpoint"),
42
+ personalizationMode: store.get("personalizationMode"),
43
+ consultantMode: store.get("consultantMode"),
44
+ idrp: store.get("idrp"),
45
+ idrpFilter: store.get("idrpFilter"),
46
+ activeProject: store.get("activeProject"),
47
+ conversationId: store.get("conversationId"),
48
+ activePersona: store.get("activePersona"),
49
+ hasSeenWelcome: store.get("hasSeenWelcome"),
50
+ autoMode: store.get("autoMode")
51
+ };
52
+ }
53
+ function setConfigValue(key, value) {
54
+ store.set(key, value);
55
+ }
56
+ function getConfigPath() {
57
+ return store.path;
58
+ }
59
+
60
+ // src/commands/login.ts
61
+ import chalk from "chalk";
62
+ import http from "http";
63
+ import open from "open";
64
+ import axios from "axios";
65
+ import { URL } from "url";
66
+ import * as readline from "readline";
67
+ var CLI_AUTH_URL = "https://bobs-workshop.web.app/cli-auth";
68
+ var CALLBACK_PORT = 9876;
69
+ var FIREBASE_API_KEY = "AIzaSyB-hUZEonRIzbExVDwuneJaDjJZBvHdIps";
70
+ function registerLoginCommand(program) {
71
+ program.command("login").description("Authenticate with Bob's Workshop via browser").action(async () => {
72
+ console.log("");
73
+ console.log(chalk.bold.cyan(" \u{1F510} Bob CLI \u2014 Login"));
74
+ console.log(chalk.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
75
+ console.log("");
76
+ console.log(chalk.yellow(" \u26A0\uFE0F Important:"));
77
+ console.log(chalk.gray(" \u2022 Local conversations (Tier 1) will NOT sync to the platform."));
78
+ console.log(chalk.gray(" \u2022 Only NEW conversations created after login will save to Firebase."));
79
+ console.log(chalk.gray(" \u2022 Your local history stays in ~/.bob/projects/ (backup via `bob backup`)."));
80
+ console.log(chalk.gray(" \u2022 Logging in upgrades you to Tier 3 (Platform) with full features."));
81
+ console.log("");
82
+ const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
83
+ const answer = await new Promise((resolve2) => {
84
+ rl.question(chalk.cyan(" Continue with login? (y/n): "), resolve2);
85
+ });
86
+ rl.close();
87
+ if (answer.toLowerCase() !== "y" && answer.toLowerCase() !== "yes") {
88
+ console.log("");
89
+ console.log(chalk.gray(" Login cancelled."));
90
+ console.log("");
91
+ return;
92
+ }
93
+ console.log("");
94
+ console.log(chalk.gray(" Opening browser for authentication..."));
95
+ console.log("");
96
+ try {
97
+ const result = await startAuthFlow();
98
+ if (result) {
99
+ const exchangeResult = await exchangeCustomToken(result.token);
100
+ setConfigValue("authToken", exchangeResult.idToken);
101
+ setConfigValue("refreshToken", exchangeResult.refreshToken);
102
+ setConfigValue("email", result.email);
103
+ setConfigValue("uid", result.uid);
104
+ setConfigValue("loggedIn", true);
105
+ setConfigValue("tier", "platform");
106
+ console.log("");
107
+ console.log(chalk.green(` \u2705 Logged in as ${result.email}`));
108
+ console.log(chalk.gray(" Tier: Platform (Tier 3)"));
109
+ console.log(chalk.gray(" All platform features are now available."));
110
+ console.log("");
111
+ }
112
+ } catch (error) {
113
+ console.log(chalk.red(` \u274C Login failed: ${error.message}`));
114
+ console.log("");
115
+ }
116
+ });
117
+ program.command("logout").description("Sign out and clear stored credentials").action(() => {
118
+ setConfigValue("authToken", null);
119
+ setConfigValue("refreshToken", null);
120
+ setConfigValue("email", null);
121
+ setConfigValue("uid", null);
122
+ setConfigValue("loggedIn", false);
123
+ setConfigValue("tier", "local");
124
+ console.log("");
125
+ console.log(chalk.gray(" \u{1F44B} Logged out. Switched to Tier 1 (local-first)."));
126
+ console.log("");
127
+ });
128
+ }
129
+ async function exchangeCustomToken(customToken) {
130
+ const url = `https://identitytoolkit.googleapis.com/v1/accounts:signInWithCustomToken?key=${FIREBASE_API_KEY}`;
131
+ const response = await axios.post(url, {
132
+ token: customToken,
133
+ returnSecureToken: true
134
+ });
135
+ if (!response.data?.idToken || !response.data?.refreshToken) {
136
+ throw new Error("Token exchange failed \u2014 no ID token returned.");
137
+ }
138
+ return {
139
+ idToken: response.data.idToken,
140
+ refreshToken: response.data.refreshToken
141
+ };
142
+ }
143
+ async function refreshAuthToken(refreshToken) {
144
+ const url = `https://securetoken.googleapis.com/v1/token?key=${FIREBASE_API_KEY}`;
145
+ const response = await axios.post(url, {
146
+ grant_type: "refresh_token",
147
+ refresh_token: refreshToken
148
+ });
149
+ if (!response.data?.id_token) {
150
+ throw new Error("Token refresh failed.");
151
+ }
152
+ setConfigValue("authToken", response.data.id_token);
153
+ return response.data.id_token;
154
+ }
155
+ function startAuthFlow() {
156
+ return new Promise((resolve2, reject) => {
157
+ const timeout = setTimeout(() => {
158
+ server.close();
159
+ reject(new Error("Login timed out after 120 seconds. Please try again."));
160
+ }, 12e4);
161
+ const server = http.createServer((req, res) => {
162
+ if (!req.url?.startsWith("/callback")) {
163
+ res.writeHead(404);
164
+ res.end("Not found");
165
+ return;
166
+ }
167
+ try {
168
+ const url = new URL(req.url, `http://localhost:${CALLBACK_PORT}`);
169
+ const token = url.searchParams.get("token");
170
+ const email = url.searchParams.get("email");
171
+ const uid = url.searchParams.get("uid");
172
+ if (!token || !email || !uid) {
173
+ res.writeHead(400);
174
+ res.end("Missing parameters");
175
+ reject(new Error("Invalid callback \u2014 missing token, email, or uid."));
176
+ return;
177
+ }
178
+ res.writeHead(200, { "Content-Type": "text/html" });
179
+ res.end(`
180
+ <html>
181
+ <body style="background: #0a0a0a; color: white; font-family: system-ui; display: flex; align-items: center; justify-content: center; height: 100vh; margin: 0;">
182
+ <div style="text-align: center;">
183
+ <h1>\u2705 Authenticated!</h1>
184
+ <p style="color: #888;">You can close this tab and return to your terminal.</p>
185
+ </div>
186
+ </body>
187
+ </html>
188
+ `);
189
+ clearTimeout(timeout);
190
+ server.close();
191
+ resolve2({ token, email, uid });
192
+ } catch (e) {
193
+ res.writeHead(500);
194
+ res.end("Error");
195
+ reject(e);
196
+ }
197
+ });
198
+ server.listen(CALLBACK_PORT, () => {
199
+ console.log(chalk.gray(` \u{1F310} Waiting for authentication (port ${CALLBACK_PORT})...`));
200
+ console.log(chalk.gray(" If your browser doesn't open, visit:"));
201
+ console.log(chalk.cyan(` ${CLI_AUTH_URL}`));
202
+ console.log("");
203
+ open(CLI_AUTH_URL).catch(() => {
204
+ });
205
+ });
206
+ server.on("error", (err) => {
207
+ clearTimeout(timeout);
208
+ if (err.code === "EADDRINUSE") {
209
+ reject(new Error("Port 9876 is already in use. Close other instances and try again."));
210
+ } else {
211
+ reject(err);
212
+ }
213
+ });
214
+ });
215
+ }
216
+
217
+ // src/core/api-client.ts
218
+ import axios2 from "axios";
219
+ var FUNCTIONS_BASE = "https://us-central1-seedlingapp.cloudfunctions.net";
220
+ async function callCloudFunction(functionName, data) {
221
+ const config = getConfig();
222
+ if (!config.authToken) {
223
+ throw new Error("Not authenticated. Run `bob login` first.");
224
+ }
225
+ try {
226
+ const response = await axios2.post(
227
+ `${FUNCTIONS_BASE}/${functionName}`,
228
+ { data },
229
+ {
230
+ headers: {
231
+ "Content-Type": "application/json",
232
+ "Authorization": `Bearer ${config.authToken}`
233
+ },
234
+ timeout: 18e4
235
+ }
236
+ );
237
+ return response.data?.result || response.data;
238
+ } catch (error) {
239
+ let status = void 0;
240
+ const hasResponse = typeof error === "object" && error !== null && "response" in error && typeof error.response === "object" && error.response !== null;
241
+ if (hasResponse) {
242
+ status = error.response?.status;
243
+ }
244
+ if (status === 401 && config.refreshToken) {
245
+ try {
246
+ const newToken = await refreshAuthToken(config.refreshToken);
247
+ const retryResponse = await axios2.post(
248
+ `${FUNCTIONS_BASE}/${functionName}`,
249
+ { data },
250
+ {
251
+ headers: {
252
+ "Content-Type": "application/json",
253
+ "Authorization": `Bearer ${newToken}`
254
+ },
255
+ timeout: 18e4
256
+ }
257
+ );
258
+ return retryResponse.data?.result || retryResponse.data;
259
+ } catch (refreshError) {
260
+ setConfigValue("loggedIn", false);
261
+ throw new Error("Session expired. Run `bob login` again.");
262
+ }
263
+ }
264
+ if (status === 404) {
265
+ throw new Error(`Function "${functionName}" not found. Is it deployed?`);
266
+ }
267
+ if (status === 403) {
268
+ throw new Error("Permission denied. You may not have access to this feature.");
269
+ }
270
+ if (status === 500) {
271
+ const safeError2 = error;
272
+ const serverMsg = safeError2.response?.data?.error?.message || safeError2.response?.data?.error || "Internal server error";
273
+ throw new Error(`Server error: ${serverMsg}`);
274
+ }
275
+ if (status === 429) {
276
+ throw new Error("Rate limited. Please wait a moment and try again.");
277
+ }
278
+ let errorMsg;
279
+ const safeError = error;
280
+ if (safeError.response?.data?.error?.message) {
281
+ errorMsg = safeError.response.data.error.message;
282
+ } else if (typeof error === "object" && error !== null && "message" in error) {
283
+ errorMsg = error.message;
284
+ } else {
285
+ errorMsg = `Request failed with status ${status ?? "unknown"}`;
286
+ }
287
+ throw new Error(errorMsg);
288
+ }
289
+ }
290
+
291
+ // src/ai/providers/local.ts
292
+ import axios3 from "axios";
293
+ async function callLocalModel(endpoint, messages) {
294
+ try {
295
+ const response = await axios3.post(
296
+ endpoint,
297
+ {
298
+ model: "bob-local-dna:latest",
299
+ messages,
300
+ stream: false
301
+ },
302
+ {
303
+ headers: { "Content-Type": "application/json" },
304
+ timeout: 18e4
305
+ }
306
+ );
307
+ if (response.data?.message?.content) {
308
+ return response.data.message.content;
309
+ }
310
+ const choice = response.data?.choices?.[0];
311
+ if (choice?.message?.content) {
312
+ return choice.message.content;
313
+ }
314
+ if (typeof response.data?.response === "string") {
315
+ return response.data.response;
316
+ }
317
+ return "No response received from local model.";
318
+ } catch (error) {
319
+ if (error.code === "ECONNREFUSED") {
320
+ throw new Error("Cannot connect to local model. Is Ollama running? Check your endpoint: " + endpoint);
321
+ }
322
+ throw new Error("Local model error: " + (error.response?.status ? `Status ${error.response.status}` : error.message));
323
+ }
324
+ }
325
+
326
+ // src/core/context-builder.ts
327
+ import * as fs from "fs";
328
+ import * as path from "path";
329
+ var IGNORE_DIRS = ["node_modules", ".git", "dist", "build", ".dart_tool", ".idea", ".gradle", ".pub-cache"];
330
+ var MAX_DEPTH = 3;
331
+ async function buildLocalContext(rootDir) {
332
+ const tree = await getDirectoryTree(rootDir, 0);
333
+ return `Working Directory: ${rootDir}
334
+
335
+ File Tree:
336
+ ${tree}`;
337
+ }
338
+ async function getDirectoryTree(dir, depth) {
339
+ if (depth >= MAX_DEPTH) return "";
340
+ let result = "";
341
+ try {
342
+ const entries = await fs.promises.readdir(dir, { withFileTypes: true });
343
+ for (const entry of entries) {
344
+ if (IGNORE_DIRS.includes(entry.name)) continue;
345
+ if (entry.name.startsWith(".") && depth === 0) continue;
346
+ const indent = " ".repeat(depth);
347
+ const fullPath = path.join(dir, entry.name);
348
+ if (entry.isDirectory()) {
349
+ result += `${indent}${entry.name}/
350
+ `;
351
+ result += await getDirectoryTree(fullPath, depth + 1);
352
+ } else {
353
+ result += `${indent}${entry.name}
354
+ `;
355
+ }
356
+ }
357
+ } catch (e) {
358
+ }
359
+ return result;
360
+ }
361
+ async function readFileContent(filePath) {
362
+ try {
363
+ return await fs.promises.readFile(path.resolve(filePath), "utf-8");
364
+ } catch (e) {
365
+ return null;
366
+ }
367
+ }
368
+
369
+ // src/core/file-writer.ts
370
+ import * as fs2 from "fs";
371
+ import * as path2 from "path";
372
+ import * as readline2 from "readline";
373
+ import chalk2 from "chalk";
374
+ function extractProposedFile(response) {
375
+ const codeBlockRegex = /```[\w]*\n([\s\S]*?)```/;
376
+ const match = response.match(codeBlockRegex);
377
+ if (!match) return null;
378
+ const codeContent = match[1].trim();
379
+ const lines = codeContent.split("\n");
380
+ if (lines.length === 0) return null;
381
+ const firstLine = lines[0].trim();
382
+ let filePathMatch = firstLine.match(/^\/\/\s*File:\s*(.+)$/);
383
+ if (!filePathMatch) {
384
+ filePathMatch = firstLine.match(/^\/\/\s*([\w\-\.\/\\]+\.\w+)\s*$/);
385
+ }
386
+ if (!filePathMatch) {
387
+ filePathMatch = firstLine.match(/^#\s*File:\s*(.+)$/);
388
+ }
389
+ if (!filePathMatch) {
390
+ filePathMatch = firstLine.match(/^#\s*([\w\-\.\/\\]+\.\w+)\s*$/);
391
+ }
392
+ if (!filePathMatch) return null;
393
+ const filePath = filePathMatch[1].trim();
394
+ if (!filePath.includes("/") && !filePath.includes("\\")) return null;
395
+ if (!filePath.includes(".")) return null;
396
+ const fileContent = lines.slice(1).join("\n").trim();
397
+ const absolutePath = path2.join(process.cwd(), filePath);
398
+ const isNew = !fs2.existsSync(absolutePath);
399
+ return {
400
+ filePath,
401
+ content: fileContent,
402
+ isNew
403
+ };
404
+ }
405
+ function stripCodeBlockFromResponse(response) {
406
+ return response.replace(/```[\w]*\n[\s\S]*?```/g, "").trim();
407
+ }
408
+ async function proposeAndWriteFile(proposed) {
409
+ const absolutePath = path2.join(process.cwd(), proposed.filePath);
410
+ const action = proposed.isNew ? "CREATE" : "UPDATE";
411
+ const icon = proposed.isNew ? "\u{1F4C4}" : "\u270F\uFE0F";
412
+ const color = proposed.isNew ? chalk2.green : chalk2.yellow;
413
+ const totalLines = proposed.content.split("\n").length;
414
+ console.log("");
415
+ console.log(color(` \u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510`));
416
+ console.log(color(` \u2502 ${icon} ${action}: ${proposed.filePath} (${totalLines} lines)`));
417
+ console.log(color(` \u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524`));
418
+ const previewLines = proposed.content.split("\n").slice(0, 6);
419
+ for (const line of previewLines) {
420
+ console.log(chalk2.gray(` \u2502 ${line}`));
421
+ }
422
+ if (totalLines > 6) {
423
+ console.log(chalk2.gray(` \u2502 ... (${totalLines - 6} more lines)`));
424
+ }
425
+ console.log(color(` \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518`));
426
+ console.log("");
427
+ const rl = readline2.createInterface({ input: process.stdin, output: process.stdout });
428
+ const answer = await new Promise((resolve2) => {
429
+ rl.question(chalk2.cyan(` \u{1F4BE} ${action === "CREATE" ? "Write this file" : "Apply changes"}? (y/n/path): `), resolve2);
430
+ });
431
+ rl.close();
432
+ const trimmed = answer.trim().toLowerCase();
433
+ if (trimmed === "n" || trimmed === "no") {
434
+ console.log(chalk2.gray(" \u23ED\uFE0F Skipped."));
435
+ return false;
436
+ }
437
+ let targetPath = absolutePath;
438
+ if (trimmed !== "y" && trimmed !== "yes" && trimmed.length > 0) {
439
+ targetPath = path2.join(process.cwd(), trimmed);
440
+ }
441
+ try {
442
+ const dir = path2.dirname(targetPath);
443
+ if (!fs2.existsSync(dir)) {
444
+ fs2.mkdirSync(dir, { recursive: true });
445
+ }
446
+ if (!proposed.isNew && fs2.existsSync(targetPath)) {
447
+ const backupDir = path2.join(process.cwd(), ".bob-backups");
448
+ if (!fs2.existsSync(backupDir)) fs2.mkdirSync(backupDir, { recursive: true });
449
+ const timestamp = Date.now();
450
+ const backupName = proposed.filePath.replace(/[\/\\]/g, "_") + `.${timestamp}.bak`;
451
+ fs2.copyFileSync(targetPath, path2.join(backupDir, backupName));
452
+ }
453
+ fs2.writeFileSync(targetPath, proposed.content, "utf-8");
454
+ const relativePath = path2.relative(process.cwd(), targetPath);
455
+ console.log(chalk2.green(` \u2705 Written: ${relativePath}`));
456
+ if (!proposed.isNew) {
457
+ console.log(chalk2.gray(` \u{1F4E6} Backup saved to .bob-backups/`));
458
+ }
459
+ console.log("");
460
+ return true;
461
+ } catch (error) {
462
+ console.log(chalk2.red(` \u274C Write failed: ${error.message}`));
463
+ return false;
464
+ }
465
+ }
466
+
467
+ export {
468
+ getConfig,
469
+ setConfigValue,
470
+ getConfigPath,
471
+ registerLoginCommand,
472
+ callCloudFunction,
473
+ callLocalModel,
474
+ buildLocalContext,
475
+ readFileContent,
476
+ extractProposedFile,
477
+ stripCodeBlockFromResponse,
478
+ proposeAndWriteFile
479
+ };
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@bobsworkshop/cli",
3
+ "version": "0.1.0",
4
+ "description": "Bob's CLI — AI coding assistant and Forge orchestrator",
5
+ "type": "module",
6
+ "files": ["dist", "bin"],
7
+ "bin": {
8
+ "bob": "./dist/bin/bob.js"
9
+ },
10
+ "scripts": {
11
+ "build": "tsup bin/bob.ts --format esm --out-dir dist/bin",
12
+ "dev": "node --loader ts-node/esm bin/bob.ts",
13
+ "test": "vitest"
14
+ },
15
+ "engines": {
16
+ "node": ">=18.0.0"
17
+ },
18
+ "keywords": [
19
+ "cli",
20
+ "ai",
21
+ "coding-assistant",
22
+ "workshop"
23
+ ],
24
+ "author": "Kemone Phillips",
25
+ "license": "MIT",
26
+ "dependencies": {
27
+ "@bobsworkshop/cli": "link:",
28
+ "axios": "^1.17.0",
29
+ "chalk": "^5.6.2",
30
+ "cli-table3": "^0.6.5",
31
+ "commander": "^15.0.0",
32
+ "conf": "^15.1.0",
33
+ "inquirer": "^14.0.2",
34
+ "marked": "^18.0.4",
35
+ "marked-terminal": "^7.3.0",
36
+ "open": "^11.0.0",
37
+ "ora": "^9.4.0",
38
+ "simple-git": "^3.36.0",
39
+ "ws": "^8.21.0"
40
+ },
41
+ "devDependencies": {
42
+ "@types/node": "^25.9.1",
43
+ "tsup": "^8.5.1",
44
+ "typescript": "^6.0.3",
45
+ "vitest": "^4.1.8"
46
+ }
47
+ }