feat: 支持同 run runner 多轮 command
This commit is contained in:
@@ -84,6 +84,11 @@ async function dispatch(args: ParsedArgs): Promise<JsonValue> {
|
||||
}
|
||||
if (codexCommand) options.codexCommand = codexCommand;
|
||||
if (codexHome) options.codexHome = codexHome;
|
||||
const idleTimeoutMs = optionalFlag(args, "idle-timeout-ms");
|
||||
const pollIntervalMs = optionalFlag(args, "poll-interval-ms");
|
||||
if (idleTimeoutMs) options.idleTimeoutMs = Number(idleTimeoutMs);
|
||||
if (pollIntervalMs) options.pollIntervalMs = Number(pollIntervalMs);
|
||||
if (args.flags.get("one-shot") === true) options.oneShot = true;
|
||||
return runOnce(options) as unknown as JsonValue;
|
||||
}
|
||||
if (group === "runner" && command === "job") return renderRunnerJob(args);
|
||||
|
||||
Reference in New Issue
Block a user