@morebeans/cli 2.0.2 → 2.0.4

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 (2) hide show
  1. package/index.ts +27 -3
  2. package/package.json +1 -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.0.2";
18
+ const VERSION = "2.0.4";
19
19
  const BEANS_HOME = join(homedir(), ".beans");
20
20
  const BEANS_CONFIG = join(BEANS_HOME, "config.json");
21
21
 
@@ -174,6 +174,24 @@ async function cmdInit() {
174
174
  success("Agents installed");
175
175
  }
176
176
 
177
+ // Create commands symlinks (Claude Code discovers commands here)
178
+ info("Registering commands...");
179
+ const commandsDir = join(cwd, ".claude/commands");
180
+ mkdirSync(commandsDir, { recursive: true });
181
+
182
+ // Symlink main /beans command
183
+ const beansCmd = join(pluginSource, "commands/beans.md");
184
+ if (existsSync(beansCmd)) {
185
+ await $`ln -sf ${beansCmd} ${join(commandsDir, "beans.md")}`.nothrow();
186
+ }
187
+
188
+ // Symlink CLAUDE.md for project docs
189
+ const claudeMd = join(pluginSource, "CLAUDE.md");
190
+ if (existsSync(claudeMd)) {
191
+ await $`ln -sf ${claudeMd} ${join(cwd, ".claude/CLAUDE.md")}`.nothrow();
192
+ }
193
+ success("Commands registered");
194
+
177
195
  // Track installation
178
196
  config.installed_at = config.installed_at || [];
179
197
  if (!config.installed_at.includes(cwd)) {
@@ -276,8 +294,8 @@ async function cmdDoctor() {
276
294
 
277
295
  // Check directories
278
296
  log(`\n${c.bold}Directories${c.reset}`);
279
- const dirs = [".claude/plugins/beans", ".beads", ".claude/agents"];
280
- for (const dir of dirs) {
297
+ const requiredDirs = [".claude/plugins/beans", ".beans", ".claude/agents"];
298
+ for (const dir of requiredDirs) {
281
299
  if (existsSync(join(cwd, dir))) {
282
300
  success(dir);
283
301
  } else {
@@ -285,6 +303,12 @@ async function cmdDoctor() {
285
303
  issues++;
286
304
  }
287
305
  }
306
+ // Optional: .beads (created by bd init)
307
+ if (existsSync(join(cwd, ".beads"))) {
308
+ success(".beads (beads issue tracker)");
309
+ } else {
310
+ warn(".beads not initialized (run 'bd init' to enable issue tracking)");
311
+ }
288
312
 
289
313
  // Check config
290
314
  log(`\n${c.bold}Configuration${c.reset}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morebeans/cli",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "BEANS CLI - Setup and configure autonomous development for Claude Code",
5
5
  "type": "module",
6
6
  "main": "index.ts",