feat(cli): add paseo import --provider <name> <id> to resume existing sessions (#632)

Surfaces the daemon's existing resume-from-persistence capability through a
new top-level CLI command so users can pull existing Claude Code, Codex, or
OpenCode sessions into Paseo without losing history. Adds a new additive
`import_agent_request` WebSocket message; no existing schemas change.

Refs #611, #237, #492; partially addresses #268.
This commit is contained in:
Mohamed Boudra
2026-04-30 21:33:44 +08:00
committed by GitHub
parent 2025dee9d0
commit 4bcf98a9e3
8 changed files with 428 additions and 0 deletions
+5
View File
@@ -11,6 +11,7 @@ import { addInspectOptions, runInspectCommand } from "./inspect.js";
import { addWaitOptions, runWaitCommand } from "./wait.js";
import { addAttachOptions, runAttachCommand } from "./attach.js";
import { addReloadOptions, runReloadCommand } from "./reload.js";
import { addImportOptions, runImportCommand } from "./import.js";
import { runUpdateCommand } from "./update.js";
import { withOutput } from "../../output/index.js";
import {
@@ -29,6 +30,10 @@ export function createAgentCommand(): Command {
withOutput(runRunCommand),
);
addJsonAndDaemonHostOptions(addImportOptions(agent.command("import"))).action(
withOutput(runImportCommand),
);
addDaemonHostOption(addAttachOptions(agent.command("attach"))).action(runAttachCommand);
addDaemonHostOption(addLogsOptions(agent.command("logs"))).action(runLogsCommand);