mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-28 02:12:07 +00:00
15 lines
492 B
TypeScript
15 lines
492 B
TypeScript
import { CommandLane } from "../process/lanes.js";
|
|
|
|
export const AGENT_LANE_NESTED = CommandLane.Nested;
|
|
export const AGENT_LANE_SUBAGENT = CommandLane.Subagent;
|
|
|
|
export function resolveNestedAgentLane(lane?: string): string {
|
|
const trimmed = lane?.trim();
|
|
// Nested agent runs should not inherit the cron execution lane. Cron jobs
|
|
// already occupy that lane while they dispatch inner work.
|
|
if (!trimmed || trimmed === "cron") {
|
|
return AGENT_LANE_NESTED;
|
|
}
|
|
return trimmed;
|
|
}
|