slackhive 0.1.12 → 0.1.14

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.
@@ -57,7 +57,7 @@ async function init(opts) {
57
57
  console.log(chalk_1.default.bold.hex('#D97757')(' [2/4]') + chalk_1.default.bold(' Getting SlackHive'));
58
58
  console.log('');
59
59
  if ((0, fs_1.existsSync)(dir)) {
60
- console.log(chalk_1.default.yellow(` Directory ${opts.dir} already exists — using existing`));
60
+ console.log(chalk_1.default.yellow(` note: Directory ${opts.dir} already exists — using existing`));
61
61
  }
62
62
  else {
63
63
  const spinner = (0, ora_1.default)(' Cloning repository...').start();
@@ -101,7 +101,7 @@ async function init(opts) {
101
101
  else {
102
102
  const claudeDir = (0, path_1.join)(process.env.HOME || '~', '.claude');
103
103
  if (!(0, fs_1.existsSync)(claudeDir)) {
104
- console.log(chalk_1.default.yellow('\n ~/.claude not found. Run `claude login` first, then re-run `slackhive init`.'));
104
+ console.log(chalk_1.default.yellow('\n warning: ~/.claude not found. Run `claude login` first, then re-run `slackhive init`.'));
105
105
  process.exit(1);
106
106
  }
107
107
  console.log(chalk_1.default.green(' ✓') + ' Found ~/.claude credentials');
@@ -157,7 +157,7 @@ async function init(opts) {
157
157
  if (!envContents.includes('AUTH_SECRET='))
158
158
  missingKeys.push('AUTH_SECRET');
159
159
  if (missingKeys.length > 0) {
160
- console.log(chalk_1.default.yellow(` .env is missing: ${missingKeys.join(', ')} — patching...`));
160
+ console.log(chalk_1.default.yellow(` warning: .env is missing: ${missingKeys.join(', ')} — patching...`));
161
161
  let patch = '';
162
162
  if (!envContents.includes('REDIS_PASSWORD='))
163
163
  patch += `\nREDIS_PASSWORD=${randomSecret().slice(0, 16)}\n`;
@@ -167,7 +167,7 @@ async function init(opts) {
167
167
  console.log(chalk_1.default.green(' ✓') + ' .env patched');
168
168
  }
169
169
  else {
170
- console.log(chalk_1.default.yellow(' .env already exists — skipping configuration'));
170
+ console.log(chalk_1.default.yellow(' note: .env already exists — skipping configuration'));
171
171
  }
172
172
  console.log('');
173
173
  }
@@ -182,14 +182,14 @@ async function init(opts) {
182
182
  void dfOut; // just checking it runs without error
183
183
  }
184
184
  catch {
185
- console.log(chalk_1.default.yellow(' Could not check Docker disk usage — continuing anyway'));
185
+ console.log(chalk_1.default.yellow(' note: Could not check Docker disk usage — continuing anyway'));
186
186
  }
187
187
  // Pre-flight: warn if low disk space on host
188
188
  try {
189
189
  const df = (0, child_process_1.execSync)('df -k . | tail -1', { encoding: 'utf-8' }).trim();
190
190
  const available = parseInt(df.split(/\s+/)[3]);
191
191
  if (!isNaN(available) && available < 3 * 1024 * 1024) {
192
- console.log(chalk_1.default.yellow(` ↳ Warning: less than 3GB disk space available. Build may fail.`));
192
+ console.log(chalk_1.default.yellow(` warning: less than 3GB disk space available. Build may fail.`));
193
193
  console.log('');
194
194
  }
195
195
  }
@@ -219,8 +219,8 @@ async function init(opts) {
219
219
  console.log('');
220
220
  console.log(' ' + chalk_1.default.bgHex('#D97757').black.bold(' SlackHive is ready! '));
221
221
  console.log('');
222
- console.log(` ${chalk_1.default.bold('Open:')} ${chalk_1.default.cyan('http://localhost:3001')}`);
223
- console.log(` ${chalk_1.default.bold('Dir:')} ${chalk_1.default.gray(dir)}`);
222
+ console.log(` ${chalk_1.default.bold('Open:')} ${chalk_1.default.cyan('http://localhost:3001')}`);
223
+ console.log(` ${chalk_1.default.bold('Dir:')} ${chalk_1.default.gray(dir)}`);
224
224
  console.log('');
225
225
  console.log(chalk_1.default.gray(' Useful commands:'));
226
226
  console.log(chalk_1.default.gray(' slackhive start — Start services'));
@@ -253,7 +253,7 @@ function runDockerBuild(cwd, displayDir) {
253
253
  return;
254
254
  const stepMatch = stepPattern.exec(trimmed);
255
255
  if (stepMatch) {
256
- const label = ` ${chalk_1.default.gray('▸')} ${chalk_1.default.dim(stepMatch[1])} ${stepMatch[2]}`;
256
+ const label = ` ${chalk_1.default.dim(stepMatch[1])} ${stepMatch[2]}`;
257
257
  if (label !== lastStep) {
258
258
  process.stdout.write('\r\x1b[K' + label.slice(0, process.stdout.columns - 2));
259
259
  lastStep = label;
@@ -334,7 +334,7 @@ function runDockerBuild(cwd, displayDir) {
334
334
  }
335
335
  else if (allErrors.includes('memory') || allErrors.includes('oom')) {
336
336
  console.log(chalk_1.default.yellow(' Cause: Docker ran out of memory.'));
337
- console.log(chalk_1.default.gray(' Fix: Increase Docker Desktop memory in Settings Resources (4GB+ recommended).'));
337
+ console.log(chalk_1.default.gray(' Fix: Increase Docker Desktop memory in Settings Resources (4GB+ recommended).'));
338
338
  }
339
339
  else if (errorLines.length > 0) {
340
340
  console.log(chalk_1.default.gray(' Error details:'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slackhive",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "description": "CLI to install and manage SlackHive — AI agent teams on Slack",
5
5
  "bin": {
6
6
  "slackhive": "./dist/index.js"