@bobsworkshop/cli 0.1.0 → 0.1.1
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/bin/{analyse-auto-OBCDWYWX.js → analyse-auto-KKWLMLHZ.js} +2 -1
- package/dist/bin/{analyse-results-QSOD3KVC.js → analyse-results-N5QLJNND.js} +2 -1
- package/dist/bin/bob.js +4 -3
- package/dist/bin/{chunk-LHWBSCJ4.js → chunk-WEHSNZKO.js} +2 -0
- package/package.json +11 -5
- package/bin/bob.ts +0 -74
- package/dist/bin/analyse-auto-AAWSETKY.js +0 -540
- package/dist/bin/analyse-auto-FQ62GYPV.js +0 -533
- package/dist/bin/analyse-auto-JAD24IQ5.js +0 -511
- package/dist/bin/analyse-auto-R4MZA7SX.js +0 -511
- package/dist/bin/analyse-auto-V3SH4MS7.js +0 -524
- package/dist/bin/analyse-auto-WQUK5YPO.js +0 -531
- package/dist/bin/analyse-auto-WVAY6467.js +0 -280
- package/dist/bin/analyse-results-3NSD6MAY.js +0 -363
- package/dist/bin/analyse-results-B7LONUXU.js +0 -265
- package/dist/bin/analyse-results-E6NBAVDB.js +0 -265
- package/dist/bin/analyse-results-FIDS4635.js +0 -9
- package/dist/bin/analyse-results-LMGVKAUX.js +0 -342
- package/dist/bin/analyse-results-LSMLUEIB.js +0 -338
- package/dist/bin/analyse-results-MOCLBCD7.js +0 -326
- package/dist/bin/analyse-results-NLAEAOOP.js +0 -10
- package/dist/bin/analyse-results-PYQIKWYL.js +0 -9
- package/dist/bin/analyse-results-R3MG5H7G.js +0 -329
- package/dist/bin/analyse-results-UYZZSBHB.js +0 -9
- package/dist/bin/analyse-results-YYGHIK2Q.js +0 -9
- package/dist/bin/analysis-tracker-N5VANTLH.js +0 -12
- package/dist/bin/chunk-3RSDDQE2.js +0 -420
- package/dist/bin/chunk-6KWC4HDO.js +0 -97
- package/dist/bin/chunk-6W7WDF4Q.js +0 -589
- package/dist/bin/chunk-7CXM3RLM.js +0 -287
- package/dist/bin/chunk-FGYL6SWO.js +0 -465
- package/dist/bin/chunk-J4BSKFCW.js +0 -624
- package/dist/bin/chunk-KWOQFI6L.js +0 -287
- package/dist/bin/chunk-OOGLZ2QB.js +0 -322
- package/dist/bin/chunk-TEVQLSGD.js +0 -287
- package/dist/bin/chunk-VUS7R7SO.js +0 -479
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
import {
|
|
2
3
|
callLocalModel,
|
|
3
4
|
getConfig,
|
|
4
5
|
loadLocalSuggestions,
|
|
5
6
|
markSuggestionStatus,
|
|
6
7
|
readFileContent
|
|
7
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WEHSNZKO.js";
|
|
8
9
|
|
|
9
10
|
// src/commands/analyse-auto.ts
|
|
10
11
|
import chalk from "chalk";
|
package/dist/bin/bob.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
#!/usr/bin/env node
|
|
2
3
|
import {
|
|
3
4
|
buildLocalContext,
|
|
4
5
|
callCloudFunction,
|
|
@@ -13,7 +14,7 @@ import {
|
|
|
13
14
|
registerLoginCommand,
|
|
14
15
|
setConfigValue,
|
|
15
16
|
stripCodeBlockFromResponse
|
|
16
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WEHSNZKO.js";
|
|
17
18
|
|
|
18
19
|
// bin/bob.ts
|
|
19
20
|
import { Command } from "commander";
|
|
@@ -2204,7 +2205,7 @@ function registerAnalyseCommand(program2) {
|
|
|
2204
2205
|
program2.command("analyse").description("Analyse the current project for bugs, features, improvements, and upgrades").option("--results", "Show analysis dashboard or filtered list").option("--bugs", "Show bugs list (interactive)").option("--features", "Show features list (interactive)").option("--improvements", "Show improvements list (interactive)").option("--upgrades", "Show upgrades list (interactive)").option("--sort <method>", "Sort by: priority (default) or file").option("--search <query>", "Filter results by keyword").option("--status", "Show current analysis job status").option("--auto", "Auto-fix mode: Bob triages and MiniBob implements").option("--confidence <number>", "Confidence gate for auto-fix (default: 90)", "90").option("--priority <level>", "Priority gate for auto-fix: critical, high, medium, low (default: critical)", "critical").action(async (options) => {
|
|
2205
2206
|
const config = getConfig();
|
|
2206
2207
|
if (options.auto) {
|
|
2207
|
-
const { runAutoFix } = await import("./analyse-auto-
|
|
2208
|
+
const { runAutoFix } = await import("./analyse-auto-KKWLMLHZ.js");
|
|
2208
2209
|
const category = options.bugs ? "bugs" : options.features ? "features" : options.improvements ? "improvements" : options.upgrades ? "upgrades" : void 0;
|
|
2209
2210
|
await runAutoFix({
|
|
2210
2211
|
category,
|
|
@@ -2214,7 +2215,7 @@ function registerAnalyseCommand(program2) {
|
|
|
2214
2215
|
return;
|
|
2215
2216
|
}
|
|
2216
2217
|
if (options.bugs || options.features || options.improvements || options.upgrades) {
|
|
2217
|
-
const { showInteractiveResults } = await import("./analyse-results-
|
|
2218
|
+
const { showInteractiveResults } = await import("./analyse-results-N5QLJNND.js");
|
|
2218
2219
|
const category = options.bugs ? "bugs" : options.features ? "features" : options.improvements ? "improvements" : "upgrades";
|
|
2219
2220
|
await showInteractiveResults(config, category, options.sort, options.search);
|
|
2220
2221
|
return;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bobsworkshop/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Bob's CLI — AI coding assistant and Forge orchestrator",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"files": ["dist"
|
|
6
|
+
"files": ["dist"],
|
|
7
7
|
"bin": {
|
|
8
8
|
"bob": "./dist/bin/bob.js"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
|
-
"build": "tsup bin/bob.ts --format esm --out-dir dist/bin",
|
|
11
|
+
"build": "tsup bin/bob.ts --format esm --out-dir dist/bin --banner.js \"#!/usr/bin/env node\"",
|
|
12
12
|
"dev": "node --loader ts-node/esm bin/bob.ts",
|
|
13
13
|
"test": "vitest"
|
|
14
14
|
},
|
|
@@ -19,12 +19,18 @@
|
|
|
19
19
|
"cli",
|
|
20
20
|
"ai",
|
|
21
21
|
"coding-assistant",
|
|
22
|
-
"workshop"
|
|
22
|
+
"workshop",
|
|
23
|
+
"bob",
|
|
24
|
+
"terminal",
|
|
25
|
+
"developer-tools"
|
|
23
26
|
],
|
|
24
27
|
"author": "Kemone Phillips",
|
|
25
28
|
"license": "MIT",
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "https://github.com/bobsworkshop/bob-cli"
|
|
32
|
+
},
|
|
26
33
|
"dependencies": {
|
|
27
|
-
"@bobsworkshop/cli": "link:",
|
|
28
34
|
"axios": "^1.17.0",
|
|
29
35
|
"chalk": "^5.6.2",
|
|
30
36
|
"cli-table3": "^0.6.5",
|
package/bin/bob.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { Command } from 'commander';
|
|
4
|
-
import chalk from 'chalk';
|
|
5
|
-
import * as path from 'path';
|
|
6
|
-
import { getConfig } from '../src/core/config-store.js';
|
|
7
|
-
import { registerConfigCommand } from '../src/commands/config.js';
|
|
8
|
-
import { registerChatCommand } from '../src/commands/chat.js';
|
|
9
|
-
import { registerConsultCommand } from '../src/commands/consult.js';
|
|
10
|
-
import { registerIndexCommand } from '../src/commands/index.js';
|
|
11
|
-
import { registerLoginCommand } from '../src/commands/login.js';
|
|
12
|
-
import { registerPushCommand } from '../src/commands/push.js';
|
|
13
|
-
import { registerByokCommand } from '../src/commands/byok.js';
|
|
14
|
-
import { registerConversationsCommand } from '../src/commands/conversations.js';
|
|
15
|
-
import { registerForkCommand } from '../src/commands/fork.js';
|
|
16
|
-
import { registerDeepDiveCommand } from '../src/commands/deepdive.js';
|
|
17
|
-
import { registerAnalyseCommand } from '../src/commands/analyse.js';
|
|
18
|
-
import { registerAutonomyCommand } from '../src/commands/autonomy.js';
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
const program = new Command();
|
|
23
|
-
|
|
24
|
-
program
|
|
25
|
-
.name('bob')
|
|
26
|
-
.description('Bob\'s CLI — AI coding assistant and Forge orchestrator')
|
|
27
|
-
.version('0.1.0');
|
|
28
|
-
|
|
29
|
-
// ═══════════════════════════════════════════
|
|
30
|
-
// WHOAMI
|
|
31
|
-
// ═══════════════════════════════════════════
|
|
32
|
-
program
|
|
33
|
-
.command('whoami')
|
|
34
|
-
.description('Show current authentication status and configuration')
|
|
35
|
-
.action(() => {
|
|
36
|
-
const config = getConfig();
|
|
37
|
-
const projectName = path.basename(process.cwd());
|
|
38
|
-
|
|
39
|
-
console.log('');
|
|
40
|
-
console.log(chalk.bold(' 🤖 Bob\'s CLI'));
|
|
41
|
-
console.log(chalk.gray(' ─────────────────────────'));
|
|
42
|
-
console.log(` ${chalk.cyan('Status:')} ${config.loggedIn ? chalk.green('Logged in as ' + config.email) : 'Not logged in'}`);
|
|
43
|
-
console.log(` ${chalk.cyan('Tier:')} ${config.tier === 'platform' ? 'Platform (Tier 3)' : 'Local-first (Tier 1)'}`);
|
|
44
|
-
console.log(` ${chalk.cyan('Provider:')} ${config.provider || 'Not configured'}`);
|
|
45
|
-
console.log(` ${chalk.cyan('Mode:')} ${config.personalizationMode ? 'Personalized' : config.consultantMode ? 'Consultant' : 'Standard'}`);
|
|
46
|
-
console.log(` ${chalk.cyan('IDRP:')} ${config.idrp ? 'Enabled' : 'Disabled'}`);
|
|
47
|
-
console.log(` ${chalk.cyan('Project:')} ${projectName} (${process.cwd()})`);
|
|
48
|
-
console.log(` ${chalk.cyan('Session:')} ${config.conversationId ? config.conversationId.slice(0, 20) + '...' : 'None'}`);
|
|
49
|
-
console.log('');
|
|
50
|
-
if (!config.loggedIn) {
|
|
51
|
-
console.log(chalk.gray(' Run `bob login` to authenticate.'));
|
|
52
|
-
console.log('');
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
// ═══════════════════════════════════════════
|
|
57
|
-
// REGISTER COMMANDS
|
|
58
|
-
// ═══════════════════════════════════════════
|
|
59
|
-
registerConfigCommand(program);
|
|
60
|
-
registerChatCommand(program);
|
|
61
|
-
registerConsultCommand(program);
|
|
62
|
-
registerIndexCommand(program);
|
|
63
|
-
registerLoginCommand(program);
|
|
64
|
-
registerPushCommand(program);
|
|
65
|
-
registerByokCommand(program);
|
|
66
|
-
registerConversationsCommand(program);
|
|
67
|
-
registerForkCommand(program);
|
|
68
|
-
registerDeepDiveCommand(program);
|
|
69
|
-
registerAnalyseCommand(program);
|
|
70
|
-
registerAutonomyCommand(program);
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
program.parse();
|