@morebeans/cli 2.0.3 → 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 +19 -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.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)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morebeans/cli",
3
- "version": "2.0.3",
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",