fix(cli): print init follow-up commands that work after npx

Merged
KJ
8d ago
+73-23

relay isn't on PATH after npx -y agent-relay@next init, but init printed relay agent list, relay message ..., relay init --hosted, relay workspace switch ... and similar. When the CLI runs from the npx cache, those hints now print the matching npx -y <package> ... command. Other runs keep relay ....

Detection reuses isEphemeralPath on process.argv[1], so a globally installed relay is unaffected.

init.test.ts passes 177/177 and lint has 0 errors. The worktree's packages aren't built, so tsc reported only unresolved workspace modules there; CI runs the full typecheck.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Agent Relay sessions

  • claude session af3f5bcf · opened via gh pr create · last active 2026-10-31