slackhive 0.1.3 → 0.1.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.
@@ -26,11 +26,10 @@ async function init(opts) {
26
26
  const O = chalk_1.default.hex('#D97757').bold;
27
27
  const W = chalk_1.default.hex('#EBE6E0').bold;
28
28
  console.log('');
29
- console.log(' ' + W(' │ │ '));
30
- console.log(' ' + W('──┼─────┼──'));
31
- console.log(' ' + O(' >') + W('──') + O('█') + W(' │ '));
32
- console.log(' ' + W('──┼─────┼──'));
33
- console.log(' ' + W(' │ │ '));
29
+ console.log(' ' + W(' │ │ '));
30
+ console.log(' ' + W('──┼───┼──'));
31
+ console.log(' ' + O('>') + W(' │──') + O('█') + W('│ '));
32
+ console.log(' ' + W(' │ │ '));
34
33
  console.log('');
35
34
  console.log(chalk_1.default.bold(' SlackHive') + chalk_1.default.gray(' — AI agent teams on Slack'));
36
35
  console.log('');
@@ -104,6 +103,20 @@ async function init(opts) {
104
103
  process.exit(1);
105
104
  }
106
105
  console.log(chalk_1.default.green(' ✓') + ' Found ~/.claude credentials');
106
+ // Find claude binary
107
+ let claudeBinDefault = '/usr/local/bin/claude';
108
+ try {
109
+ const found = (0, child_process_1.execSync)('which claude', { encoding: 'utf-8' }).trim();
110
+ if (found)
111
+ claudeBinDefault = found;
112
+ }
113
+ catch { /* use default */ }
114
+ questions.push({
115
+ type: 'text',
116
+ name: 'claudeBin',
117
+ message: 'Path to claude binary',
118
+ initial: claudeBinDefault,
119
+ });
107
120
  }
108
121
  questions.push({
109
122
  type: 'text',
@@ -141,7 +154,8 @@ async function init(opts) {
141
154
  envContent += `ANTHROPIC_API_KEY=${response.anthropicKey}\n`;
142
155
  }
143
156
  else {
144
- envContent += `# Using Claude Code subscription — credentials from ~/.claude\n`;
157
+ envContent += `# Claude Code subscription — credentials from ~/.claude\n`;
158
+ envContent += `CLAUDE_BIN=${response.claudeBin}\n`;
145
159
  }
146
160
  envContent += `\nPOSTGRES_DB=slackhive\n`;
147
161
  envContent += `POSTGRES_USER=slackhive\n`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slackhive",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "CLI to install and manage SlackHive — AI agent teams on Slack",
5
5
  "bin": {
6
6
  "slackhive": "./dist/index.js"