fix(ux): add spawn link to help output and --fast to KNOWN_FLAGS (#2828)

spawn link is a fully implemented command (440 lines) that was
completely missing from `spawn help`. Users had no way to discover
it through the CLI's self-documentation.

Also adds --fast to the KNOWN_FLAGS set for consistency — it was
accepted by the CLI but not registered in the flag validation set.

Agent: ux-engineer

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
A 2026-03-20 08:49:26 -07:00 committed by GitHub
parent 21c0e1511c
commit f4e2cd80a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 1 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@openrouter/spawn",
"version": "0.25.4",
"version": "0.25.5",
"type": "module",
"bin": {
"spawn": "cli.js"

View file

@ -225,6 +225,7 @@ describe("KNOWN_FLAGS completeness", () => {
"-m",
"--config",
"--steps",
"--fast",
"--user",
"-u",
];

View file

@ -37,6 +37,9 @@ function getHelpUsageSection(): string {
spawn status --prune Remove gone servers from history
spawn fix Re-run agent setup on an existing VM (re-inject credentials, reinstall)
spawn fix <spawn-id> Fix a specific spawn by name or ID
spawn link <ip> Register an existing VM by IP (alias: reconnect)
spawn link <ip> --agent <agent> Specify the agent running on the VM
spawn link <ip> --cloud <cloud> Specify the cloud provider
spawn last Instantly rerun the most recent spawn (alias: rerun)
spawn matrix Full availability matrix (alias: m)
spawn agents List all agents with descriptions

View file

@ -35,6 +35,7 @@ export const KNOWN_FLAGS = new Set([
"-m",
"--config",
"--steps",
"--fast",
"--user",
"-u",
]);