claude-home 1.2.0 → 1.2.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.
Files changed (3) hide show
  1. package/README.md +1 -0
  2. package/bin/cli.js +14 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -86,6 +86,7 @@ claude-home [options]
86
86
  Commands:
87
87
  setup-hook Add SessionStart hook + /claude-home slash command
88
88
  remove-hook Remove SessionStart hook + /claude-home slash command
89
+ stop Stop the running claude-home server
89
90
  ```
90
91
 
91
92
  ---
package/bin/cli.js CHANGED
@@ -45,10 +45,24 @@ if (args.includes('--help') || args.includes('-h')) {
45
45
  Commands:
46
46
  setup-hook Add SessionStart hook and /claude-home slash command
47
47
  remove-hook Remove SessionStart hook and /claude-home slash command
48
+ stop Stop the running claude-home server
48
49
  `);
49
50
  process.exit(0);
50
51
  }
51
52
 
53
+ // ─── Stop subcommand ─────────────────────────────────────────────────────────
54
+
55
+ if (subcommand === 'stop') {
56
+ const { execSync } = require('child_process');
57
+ try {
58
+ const pid = execSync(`lsof -ti:${port}`, { encoding: 'utf8' }).trim();
59
+ if (!pid) { console.log(`No claude-home process found on port ${port}`); process.exit(0); }
60
+ execSync(`kill ${pid}`);
61
+ console.log(`✓ claude-home stopped (pid ${pid})`);
62
+ } catch { console.log(`No claude-home process found on port ${port}`); }
63
+ process.exit(0);
64
+ }
65
+
52
66
  // ─── Setup-hook / remove-hook subcommands ────────────────────────────────────
53
67
 
54
68
  if (subcommand === 'setup-hook') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-home",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Web dashboard for Claude Code — browse sessions, manage skills, hooks, commands, and agents",
5
5
  "main": "server.js",
6
6
  "bin": {