@morebeans/cli 2.0.5 → 2.1.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/index.ts +14 -10
- package/package.json +2 -1
package/index.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
|
15
15
|
import { join, resolve } from "path";
|
|
16
16
|
import { homedir } from "os";
|
|
17
17
|
|
|
18
|
-
const VERSION = "2.
|
|
18
|
+
const VERSION = "2.1.2";
|
|
19
19
|
const BEANS_HOME = join(homedir(), ".beans");
|
|
20
20
|
const BEANS_CONFIG = join(BEANS_HOME, "config.json");
|
|
21
21
|
|
|
@@ -193,6 +193,13 @@ async function cmdInit() {
|
|
|
193
193
|
if (existsSync(claudeMd)) {
|
|
194
194
|
await $`ln -sf ${claudeMd} ${join(cwd, ".claude/CLAUDE.md")}`.nothrow();
|
|
195
195
|
}
|
|
196
|
+
|
|
197
|
+
// Copy settings.json if not exists
|
|
198
|
+
const settingsSrc = join(pluginSource, "settings.json");
|
|
199
|
+
const settingsDest = join(cwd, ".claude/settings.json");
|
|
200
|
+
if (existsSync(settingsSrc) && !existsSync(settingsDest)) {
|
|
201
|
+
await $`cp ${settingsSrc} ${settingsDest}`.nothrow();
|
|
202
|
+
}
|
|
196
203
|
success("Commands registered (3 BEANS commands)");
|
|
197
204
|
|
|
198
205
|
// Track installation
|
|
@@ -345,15 +352,12 @@ async function cmdDoctor() {
|
|
|
345
352
|
const commands = join(pluginPath, "commands");
|
|
346
353
|
const agents = join(pluginPath, "agents");
|
|
347
354
|
if (existsSync(commands)) {
|
|
348
|
-
const
|
|
349
|
-
|
|
350
|
-
const ralphCount = existsSync(join(commands, "ralph")) ?
|
|
351
|
-
(await $`ls ${join(commands, "ralph")}`.text()).split("\n").filter(Boolean).length : 0;
|
|
352
|
-
log(` Commands: ${bdCount} bd, ${ralphCount} ralph`);
|
|
355
|
+
const cmdCount = (await $`ls ${commands}/*.md 2>/dev/null`.text().catch(() => "")).split("\n").filter(Boolean).length;
|
|
356
|
+
log(` Commands: ${cmdCount} (/beans, /beans:status, /beans:land)`);
|
|
353
357
|
}
|
|
354
358
|
if (existsSync(agents)) {
|
|
355
359
|
const agentCount = (await $`ls ${agents}`.text()).split("\n").filter(Boolean).length;
|
|
356
|
-
log(` Agents: ${agentCount}`);
|
|
360
|
+
log(` Agents: ${agentCount} subagents`);
|
|
357
361
|
}
|
|
358
362
|
} else {
|
|
359
363
|
error("Plugin not installed");
|
|
@@ -388,9 +392,9 @@ ${c.bold}Commands:${c.reset}
|
|
|
388
392
|
${c.bold}In Claude Code:${c.reset}
|
|
389
393
|
${c.cyan}/beans${c.reset} List ready issues
|
|
390
394
|
${c.cyan}/beans "Add feature"${c.reset} Full autonomous flow
|
|
391
|
-
${c.cyan}/beans task-001${c.reset}
|
|
392
|
-
${c.cyan}/
|
|
393
|
-
${c.cyan}/
|
|
395
|
+
${c.cyan}/beans task-001${c.reset} Continue existing issue
|
|
396
|
+
${c.cyan}/beans:status${c.reset} Check progress
|
|
397
|
+
${c.cyan}/beans:land${c.reset} Commit, push, close
|
|
394
398
|
|
|
395
399
|
${c.bold}Environment:${c.reset}
|
|
396
400
|
Config stored at: ${c.dim}~/.beans/config.json${c.reset}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morebeans/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "BEANS CLI - Setup and configure autonomous development for Claude Code",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|
|
@@ -44,3 +44,4 @@
|
|
|
44
44
|
"access": "public"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
+
|