Add top-level paseo archive as alias for paseo agent archive

This commit is contained in:
Mohamed Boudra
2026-03-25 17:46:32 +07:00
parent a65f4c1465
commit 5567652c6c
3 changed files with 15 additions and 7 deletions
+8 -1
View File
@@ -1,4 +1,4 @@
import type { Command } from "commander";
import { Command } from "commander";
import { connectToDaemon, getDaemonHost, resolveAgentId } from "../../utils/client.js";
import type {
CommandOptions,
@@ -24,6 +24,13 @@ export const archiveSchema: OutputSchema<AgentArchiveResult> = {
],
};
export function addArchiveOptions(cmd: Command): Command {
return cmd
.description('Archive an agent (soft-delete)')
.argument("<id>", "Agent ID, prefix, or name")
.option("--force", "Force archive running agent (interrupts active run first)");
}
export interface AgentArchiveOptions extends CommandOptions {
force?: boolean;
host?: string;