Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openrouter/spawn",
"version": "1.0.15",
"version": "1.0.16",
"type": "module",
"bin": {
"spawn": "cli.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/__tests__/orchestrate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ describe("runOrchestration", () => {

await runOrchestrationSafe(cloud, agent, "testagent");

// launchCmd should be called (to save it for later `spawn connect`)
// launchCmd should be called (to save it for later `spawn last`)
expect(agent.launchCmd).toHaveBeenCalledTimes(1);
expect(cloud.interactiveSession).toHaveBeenCalledTimes(0);
expect(capturedExitCode).toBe(0);
Expand Down
7 changes: 1 addition & 6 deletions packages/cli/src/commands/connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,7 @@ export async function cmdConnect(connection: VMConnection, agentKey?: string): P
p.log.step(`Connecting to Daytona sandbox ${pc.bold(connection.server_name || connection.server_id)}...`);
const { buildInteractiveSshArgs } = await import("../daytona/daytona.js");
const args = await buildInteractiveSshArgs(connection.server_id);
return runInteractiveCommand(
args[0],
args.slice(1),
"Daytona SSH connection failed",
`spawn connect ${connection.server_name || connection.server_id}`,
);
return runInteractiveCommand(args[0], args.slice(1), "Daytona SSH connection failed", "spawn last");
}

// Handle SSH connections
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ export async function handleRecordAction(
if (!conn.deleted) {
const reconnectHint =
conn.cloud === "daytona"
? `spawn connect ${conn.server_name || conn.server_id || conn.ip}`
? "spawn last"
: conn.ip === "sprite-console"
? `sprite console -s ${conn.server_name}`
: `ssh ${conn.user}@${conn.ip}`;
Expand Down
Loading