Open existing agents from links and the CLI (#2324)
* feat(desktop): open existing agents from links Register a stable agent deep link and route it through the existing Desktop window. Add a matching CLI command that resolves the local server and activates the requested agent without creating or messaging it. * fix(desktop): recover agent link delivery
This commit is contained in:
@@ -14,6 +14,7 @@ import { addReloadOptions, runReloadCommand } from "./reload.js";
|
||||
import { addImportOptions, runImportCommand } from "./import.js";
|
||||
import { runUpdateCommand } from "./update.js";
|
||||
import { runDetachCommand } from "./detach.js";
|
||||
import { addOpenOptions, runOpenCommand } from "./open.js";
|
||||
import { withOutput } from "../../output/index.js";
|
||||
import {
|
||||
addDaemonHostOption,
|
||||
@@ -39,6 +40,10 @@ export function createAgentCommand(): Command {
|
||||
|
||||
addDaemonHostOption(addLogsOptions(agent.command("logs"))).action(runLogsCommand);
|
||||
|
||||
addJsonAndDaemonHostOptions(addOpenOptions(agent.command("open"))).action(
|
||||
withOutput(runOpenCommand),
|
||||
);
|
||||
|
||||
addJsonAndDaemonHostOptions(addStopOptions(agent.command("stop"))).action(
|
||||
withOutput(runStopCommand),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user