slackhive 0.1.27 → 0.1.30
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.
- package/README.md +1 -1
- package/dist/commands/init.js +22 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -216,7 +216,7 @@ Mount `~/.claude` into the runner container and leave `ANTHROPIC_API_KEY` unset.
|
|
|
216
216
|
- [x] Version control with diff view
|
|
217
217
|
- [x] Encrypted environment variables
|
|
218
218
|
- [x] Channel restrictions
|
|
219
|
-
- [
|
|
219
|
+
- [x] Multi-workspace support
|
|
220
220
|
- [ ] Webhook triggers (GitHub, Jira, PagerDuty → agent actions)
|
|
221
221
|
- [ ] Agent-to-agent direct messaging
|
|
222
222
|
- [ ] Analytics dashboard
|
package/dist/commands/init.js
CHANGED
|
@@ -307,6 +307,7 @@ async function init(opts) {
|
|
|
307
307
|
console.log('');
|
|
308
308
|
}
|
|
309
309
|
// ── Step 4: Build & start ─────────────────────────────────────────────────
|
|
310
|
+
let webReady = true;
|
|
310
311
|
if (!opts.skipStart) {
|
|
311
312
|
console.log(chalk_1.default.bold.hex('#D97757')(' [4/4]') + chalk_1.default.bold(' Building & starting services'));
|
|
312
313
|
console.log(chalk_1.default.gray(' This takes 3–5 minutes on first run while Docker builds images.'));
|
|
@@ -330,10 +331,15 @@ async function init(opts) {
|
|
|
330
331
|
}
|
|
331
332
|
catch { /* non-fatal */ }
|
|
332
333
|
await runDockerBuild(dir, opts.dir);
|
|
333
|
-
//
|
|
334
|
+
// If containers didn't come up during build, retry once silently
|
|
335
|
+
try {
|
|
336
|
+
(0, child_process_1.execSync)('docker compose up -d', { cwd: dir, stdio: 'ignore' });
|
|
337
|
+
}
|
|
338
|
+
catch { /* non-fatal */ }
|
|
339
|
+
// Wait for web UI — up to 3 minutes
|
|
334
340
|
const webSpinner = (0, ora_1.default)(' Waiting for web UI to be ready...').start();
|
|
335
341
|
let ready = false;
|
|
336
|
-
for (let i = 0; i <
|
|
342
|
+
for (let i = 0; i < 60; i++) {
|
|
337
343
|
try {
|
|
338
344
|
(0, child_process_1.execSync)('curl -sf http://localhost:3001/login', { stdio: 'ignore' });
|
|
339
345
|
ready = true;
|
|
@@ -347,14 +353,24 @@ async function init(opts) {
|
|
|
347
353
|
webSpinner.succeed('Web UI is ready');
|
|
348
354
|
}
|
|
349
355
|
else {
|
|
350
|
-
|
|
356
|
+
webReady = false;
|
|
357
|
+
webSpinner.stopAndPersist({ symbol: ' ' });
|
|
351
358
|
}
|
|
352
359
|
}
|
|
353
360
|
// ── Done ──────────────────────────────────────────────────────────────────
|
|
354
361
|
console.log('');
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
362
|
+
if (webReady) {
|
|
363
|
+
console.log(' ' + chalk_1.default.bgHex('#D97757').black.bold(' SlackHive is ready! '));
|
|
364
|
+
console.log('');
|
|
365
|
+
console.log(` ${chalk_1.default.bold('Open:')} ${chalk_1.default.cyan('http://localhost:3001')}`);
|
|
366
|
+
}
|
|
367
|
+
else {
|
|
368
|
+
console.log(' ' + chalk_1.default.bold('Setup complete!'));
|
|
369
|
+
console.log('');
|
|
370
|
+
console.log(chalk_1.default.gray(' Services are still starting. Once ready:'));
|
|
371
|
+
console.log(` ${chalk_1.default.bold('Run:')} ${chalk_1.default.cyan('slackhive start')}`);
|
|
372
|
+
console.log(` ${chalk_1.default.bold('Open:')} ${chalk_1.default.cyan('http://localhost:3001')}`);
|
|
373
|
+
}
|
|
358
374
|
console.log(` ${chalk_1.default.bold('Dir:')} ${chalk_1.default.gray(dir)}`);
|
|
359
375
|
console.log('');
|
|
360
376
|
console.log(chalk_1.default.gray(' Useful commands:'));
|