fix: 默认使用 AgentRun 固定 lane
This commit is contained in:
@@ -1028,8 +1028,10 @@ try {
|
||||
}
|
||||
|
||||
export function resolveAgentRunRestTarget(config: UniDeskConfig | null, options: AgentRunRestTargetOptions): AgentRunRestTarget | null {
|
||||
if (options.node === null && options.lane === null) return null;
|
||||
if (config === null) throw new AgentRunRestError("validation-failed", "--node/--lane resource queries require UniDesk config");
|
||||
if (config === null) {
|
||||
if (options.node === null && options.lane === null) return null;
|
||||
throw new AgentRunRestError("validation-failed", "--node/--lane resource queries require UniDesk config");
|
||||
}
|
||||
const { configPath, spec } = resolveAgentRunLaneTarget(options);
|
||||
return { config, configPath, spec };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user