diff --git a/cli/package.json b/cli/package.json index 7b84f85a..7f31dc6a 100644 --- a/cli/package.json +++ b/cli/package.json @@ -1,6 +1,6 @@ { "name": "@openrouter/spawn", - "version": "0.2.37", + "version": "0.2.38", "type": "module", "bin": { "spawn": "cli.js" diff --git a/cli/src/__tests__/dispatch-extra-args.test.ts b/cli/src/__tests__/dispatch-extra-args.test.ts index 2444eb97..4f3c3c07 100644 --- a/cli/src/__tests__/dispatch-extra-args.test.ts +++ b/cli/src/__tests__/dispatch-extra-args.test.ts @@ -368,9 +368,12 @@ describe("dispatchCommand routing", () => { describe("showVersion output format", () => { // Replica of the showVersion output structure function formatVersionOutput(version: string, binaryPath: string | undefined): string[] { + const runtime = process.versions.bun ? "bun" : "node"; + const runtimeVersion = process.versions.bun ?? process.versions.node; return [ `spawn v${version}`, ` ${binaryPath ?? "unknown path"}`, + ` ${runtime} ${runtimeVersion} ${process.platform} ${process.arch}`, ` Run spawn update to check for updates.`, ]; } @@ -390,9 +393,15 @@ describe("showVersion output format", () => { expect(lines[1]).toContain("unknown path"); }); + it("should include runtime and platform info", () => { + const lines = formatVersionOutput("0.2.15", "/usr/local/bin/spawn"); + expect(lines[2]).toContain(process.platform); + expect(lines[2]).toContain(process.arch); + }); + it("should suggest spawn update", () => { const lines = formatVersionOutput("0.2.15", "/usr/local/bin/spawn"); - expect(lines[2]).toContain("spawn update"); + expect(lines[3]).toContain("spawn update"); }); }); diff --git a/cli/src/commands.ts b/cli/src/commands.ts index 7db53b17..c844e4e4 100644 --- a/cli/src/commands.ts +++ b/cli/src/commands.ts @@ -647,7 +647,7 @@ export async function cmdList(): Promise { const total = agents.length * clouds.length; console.log(); if (isCompact) { - console.log(`${pc.green("N/N")} all clouds ${pc.yellow("N/N")} some missing`); + console.log(`Color: ${pc.green("green")} = all clouds ${pc.yellow("yellow")} = some missing`); } else { console.log(`${pc.green("+")} implemented ${pc.dim("-")} not yet available`); } diff --git a/cli/src/index.ts b/cli/src/index.ts index eac8e2e7..a79bcb63 100644 --- a/cli/src/index.ts +++ b/cli/src/index.ts @@ -250,6 +250,7 @@ async function handleNoCommand(prompt: string | undefined): Promise { function showVersion(): void { console.log(`spawn v${VERSION}`); console.log(pc.dim(` ${process.argv[1] ?? "unknown path"}`)); + console.log(pc.dim(` ${process.versions.bun ? "bun" : "node"} ${process.versions.bun ?? process.versions.node} ${process.platform} ${process.arch}`)); console.log(pc.dim(` Run ${pc.cyan("spawn update")} to check for updates.`)); }