mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-27 11:42:52 +00:00
* Add metrics collection and terminal performance tests * feat: add loop, schedule, and chat commands with slash-namespaced RPC Introduce three new server-side features with CLI command groups: - `paseo loop` — iterative agent execution with verify-check/verify-prompt - `paseo schedule` — recurring tasks on interval or cron cadence - `paseo chat` — chat rooms for agent-to-agent coordination All features use new slash-namespaced RPC methods (e.g. `loop/run`, `schedule/create`, `chat/post`) instead of flat message types, backed by file-based persistence and wired through the existing WebSocket session dispatch. * test: stabilize loop schedule chat rollout
35 lines
1.2 KiB
TypeScript
35 lines
1.2 KiB
TypeScript
import { Command } from "commander";
|
|
import { withOutput } from "../../output/index.js";
|
|
import { addJsonAndDaemonHostOptions, addDaemonHostOption } from "../../utils/command-options.js";
|
|
import { addLoopRunOptions, runLoopRunCommand } from "./run.js";
|
|
import { addLoopLsOptions, runLoopLsCommand } from "./ls.js";
|
|
import { addLoopInspectOptions, runLoopInspectCommand } from "./inspect.js";
|
|
import { addLoopLogsOptions, runLoopLogsCommand } from "./logs.js";
|
|
import { addLoopStopOptions, runLoopStopCommand } from "./stop.js";
|
|
|
|
export function createLoopCommand(): Command {
|
|
const loop = new Command("loop").description("Run iterative worker loops");
|
|
|
|
addJsonAndDaemonHostOptions(
|
|
addLoopRunOptions(loop.command("run")),
|
|
).action(withOutput(runLoopRunCommand));
|
|
|
|
addJsonAndDaemonHostOptions(
|
|
addLoopLsOptions(loop.command("ls")),
|
|
).action(withOutput(runLoopLsCommand));
|
|
|
|
addJsonAndDaemonHostOptions(
|
|
addLoopInspectOptions(loop.command("inspect")),
|
|
).action(withOutput(runLoopInspectCommand));
|
|
|
|
addDaemonHostOption(
|
|
addLoopLogsOptions(loop.command("logs")),
|
|
).action(runLoopLogsCommand);
|
|
|
|
addJsonAndDaemonHostOptions(
|
|
addLoopStopOptions(loop.command("stop")),
|
|
).action(withOutput(runLoopStopCommand));
|
|
|
|
return loop;
|
|
}
|