feat(cli): stateful welcome screen + v0.1.4 bump
Running \`claudemesh\` with no args now detects install state and prints context-appropriate guidance: suggests \`install\` if MCP not registered, \`join\` if no meshes, \`launch\` if ready. Replaces the static HELP dump with a first-run wizard that meets users where they are. Static HELP still available via --help. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -18,6 +18,7 @@ import { runHook } from "./commands/hook";
|
||||
import { runLaunch } from "./commands/launch";
|
||||
import { runStatus } from "./commands/status";
|
||||
import { runDoctor } from "./commands/doctor";
|
||||
import { runWelcome } from "./commands/welcome";
|
||||
import { VERSION } from "./version";
|
||||
|
||||
const HELP = `claudemesh v${VERSION} — peer mesh for Claude Code sessions
|
||||
@@ -94,9 +95,11 @@ async function main(): Promise<void> {
|
||||
case "--help":
|
||||
case "-h":
|
||||
case "help":
|
||||
case undefined:
|
||||
console.log(HELP);
|
||||
return;
|
||||
case undefined:
|
||||
runWelcome();
|
||||
return;
|
||||
default:
|
||||
console.error(`Unknown command: ${cmd}`);
|
||||
console.error("Run `claudemesh --help` for usage.");
|
||||
|
||||
Reference in New Issue
Block a user