slackhive 0.1.4 → 0.1.6

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.
@@ -35,7 +35,7 @@ async function init(opts) {
35
35
  console.log('');
36
36
  // ── Check prerequisites ────────────────────────────────────────────────────
37
37
  const checks = [
38
- { name: 'Docker', cmd: 'docker --version' },
38
+ { name: 'Docker', cmd: 'docker info' },
39
39
  { name: 'Docker Compose', cmd: 'docker compose version' },
40
40
  { name: 'Git', cmd: 'git --version' },
41
41
  ];
@@ -45,7 +45,12 @@ async function init(opts) {
45
45
  console.log(chalk_1.default.green(' ✓') + ` ${check.name} found`);
46
46
  }
47
47
  catch {
48
- console.log(chalk_1.default.red(` ✗ ${check.name} not found. Please install it first.`));
48
+ if (check.name === 'Docker') {
49
+ console.log(chalk_1.default.red(' ✗ Docker daemon is not running. Please start Docker Desktop and try again.'));
50
+ }
51
+ else {
52
+ console.log(chalk_1.default.red(` ✗ ${check.name} not found. Please install it first.`));
53
+ }
49
54
  process.exit(1);
50
55
  }
51
56
  }
@@ -103,6 +108,20 @@ async function init(opts) {
103
108
  process.exit(1);
104
109
  }
105
110
  console.log(chalk_1.default.green(' ✓') + ' Found ~/.claude credentials');
111
+ // Find claude binary
112
+ let claudeBinDefault = '/usr/local/bin/claude';
113
+ try {
114
+ const found = (0, child_process_1.execSync)('which claude', { encoding: 'utf-8' }).trim();
115
+ if (found)
116
+ claudeBinDefault = found;
117
+ }
118
+ catch { /* use default */ }
119
+ questions.push({
120
+ type: 'text',
121
+ name: 'claudeBin',
122
+ message: 'Path to claude binary',
123
+ initial: claudeBinDefault,
124
+ });
106
125
  }
107
126
  questions.push({
108
127
  type: 'text',
@@ -140,7 +159,8 @@ async function init(opts) {
140
159
  envContent += `ANTHROPIC_API_KEY=${response.anthropicKey}\n`;
141
160
  }
142
161
  else {
143
- envContent += `# Using Claude Code subscription — credentials from ~/.claude\n`;
162
+ envContent += `# Claude Code subscription — credentials from ~/.claude\n`;
163
+ envContent += `CLAUDE_BIN=${response.claudeBin}\n`;
144
164
  }
145
165
  envContent += `\nPOSTGRES_DB=slackhive\n`;
146
166
  envContent += `POSTGRES_USER=slackhive\n`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slackhive",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "CLI to install and manage SlackHive — AI agent teams on Slack",
5
5
  "bin": {
6
6
  "slackhive": "./dist/index.js"