fix: 默认使用 AgentRun 固定 lane
This commit is contained in:
@@ -18,6 +18,8 @@ bun scripts/cli.ts agentrun result <task>
|
|||||||
bun scripts/cli.ts agentrun send <session> --prompt-stdin
|
bun scripts/cli.ts agentrun send <session> --prompt-stdin
|
||||||
```
|
```
|
||||||
|
|
||||||
|
资源命令未传 `--node/--lane` 时固定使用 `config/agentrun.yaml#controlPlane.default`,当前为 `NC01/nc01-v02`;只有查询非默认 lane 时才显式传目标参数。主机 direct HTTP auth 只保留独立诊断,固定 Secret 文件路径为 `/root/.unidesk/.env/agentrun.env`,不得回退到 worktree 或旧 `/root/.config/hwlab-*` 路径。
|
||||||
|
|
||||||
AipodSpec/Artificer、task manifest 和 queue 渐进披露见 [references/resources.md](references/resources.md);session 控制、HWLAB Code Agent 整合、trace/output 分页、judge、中断/取消见 [references/sessions.md](references/sessions.md);旧队列归档见 [references/legacy.md](references/legacy.md)。
|
AipodSpec/Artificer、task manifest 和 queue 渐进披露见 [references/resources.md](references/resources.md);session 控制、HWLAB Code Agent 整合、trace/output 分页、judge、中断/取消见 [references/sessions.md](references/sessions.md);旧队列归档见 [references/legacy.md](references/legacy.md)。
|
||||||
|
|
||||||
## P0 边界
|
## P0 边界
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ publicExposure:
|
|||||||
responseHeaderTimeoutSeconds: 60
|
responseHeaderTimeoutSeconds: 60
|
||||||
auth:
|
auth:
|
||||||
env: HWLAB_API_KEY
|
env: HWLAB_API_KEY
|
||||||
file: /root/.config/hwlab-v02/master-server-admin-api-key.env
|
file: /root/.unidesk/.env/agentrun.env
|
||||||
header: Authorization
|
header: Authorization
|
||||||
scheme: Bearer
|
scheme: Bearer
|
||||||
client:
|
client:
|
||||||
|
|||||||
@@ -1028,8 +1028,10 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function resolveAgentRunRestTarget(config: UniDeskConfig | null, options: AgentRunRestTargetOptions): AgentRunRestTarget | null {
|
export function resolveAgentRunRestTarget(config: UniDeskConfig | null, options: AgentRunRestTargetOptions): AgentRunRestTarget | null {
|
||||||
if (options.node === null && options.lane === null) return null;
|
if (config === null) {
|
||||||
if (config === null) throw new AgentRunRestError("validation-failed", "--node/--lane resource queries require UniDesk config");
|
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);
|
const { configPath, spec } = resolveAgentRunLaneTarget(options);
|
||||||
return { config, configPath, spec };
|
return { config, configPath, spec };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user