@morebeans/cli 2.0.3 → 2.0.5

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 +22 -1
  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.3";
18
+ const VERSION = "2.0.5";
19
19
  const BEANS_HOME = join(homedir(), ".beans");
20
20
  const BEANS_CONFIG = join(BEANS_HOME, "config.json");
21
21
 
@@ -174,6 +174,27 @@ 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
+ // Register only the clean BEANS commands (not all 44 underlying commands)
183
+ const beansCommands = ["beans.md", "beans-status.md", "beans-land.md"];
184
+ for (const cmd of beansCommands) {
185
+ const src = join(pluginSource, "commands", cmd);
186
+ if (existsSync(src)) {
187
+ await $`ln -sf ${src} ${join(commandsDir, cmd)}`.nothrow();
188
+ }
189
+ }
190
+
191
+ // Symlink CLAUDE.md for project docs
192
+ const claudeMd = join(pluginSource, "CLAUDE.md");
193
+ if (existsSync(claudeMd)) {
194
+ await $`ln -sf ${claudeMd} ${join(cwd, ".claude/CLAUDE.md")}`.nothrow();
195
+ }
196
+ success("Commands registered (3 BEANS commands)");
197
+
177
198
  // Track installation
178
199
  config.installed_at = config.installed_at || [];
179
200
  if (!config.installed_at.includes(cwd)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morebeans/cli",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "BEANS CLI - Setup and configure autonomous development for Claude Code",
5
5
  "type": "module",
6
6
  "main": "index.ts",