slackhive 0.1.10 → 0.1.11

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.
@@ -258,6 +258,7 @@ function runDockerBuild(cwd, displayDir) {
258
258
  }, 80);
259
259
  let stdoutBuf = '';
260
260
  let stderrBuf = '';
261
+ const errorLines = [];
261
262
  proc.stdout.on('data', (chunk) => {
262
263
  stdoutBuf += chunk.toString();
263
264
  const lines = stdoutBuf.split('\n');
@@ -279,6 +280,8 @@ function runDockerBuild(cwd, displayDir) {
279
280
  const m = /\[([^\]]+)\] (.+)/.exec(line.trim());
280
281
  if (m)
281
282
  currentStep = `${m[1]} — ${m[2].slice(0, 40)}`;
283
+ if (/error/i.test(line) && line.trim())
284
+ errorLines.push(line.trim());
282
285
  });
283
286
  });
284
287
  proc.on('close', (code) => {
@@ -290,8 +293,14 @@ function runDockerBuild(cwd, displayDir) {
290
293
  }
291
294
  else {
292
295
  console.log(' ' + chalk_1.default.red('✗') + ' Failed to start services');
293
- console.log(chalk_1.default.gray(` Try manually: cd ${displayDir} && docker compose up -d --build`));
294
- reject(new Error(`docker compose exited with code ${code}`));
296
+ if (errorLines.length > 0) {
297
+ console.log('');
298
+ console.log(chalk_1.default.gray(' Error details:'));
299
+ errorLines.slice(-5).forEach(l => console.log(chalk_1.default.red(' ' + l)));
300
+ }
301
+ console.log('');
302
+ console.log(chalk_1.default.gray(` To retry: cd ${displayDir} && docker compose up -d --build`));
303
+ resolve(); // don't reject — let init finish gracefully
295
304
  }
296
305
  });
297
306
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slackhive",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "CLI to install and manage SlackHive — AI agent teams on Slack",
5
5
  "bin": {
6
6
  "slackhive": "./dist/index.js"