Make the network MVP simple to operate: server start refuses a second instance on a port already serving AgentHub (single source of truth, prevents discovery split-brain); commands auto-discover a LAN server when run outside any project so the CLI works from any directory with zero config; walk up to the nearest .agenthub project (cwd-robust) and serve the project root; replace raw stack traces with actionable messages; add tests for findProjectRoot and the single-instance guard. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
3 lines
47 B
JavaScript
Executable File
3 lines
47 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
import '../dist/index.js';
|