code-agent: inherit child profile via env

This commit is contained in:
Codex Agent
2026-06-08 08:18:13 +08:00
parent 7408ba9da7
commit 6d1b1fd7ea
5 changed files with 43 additions and 11 deletions
@@ -67,7 +67,7 @@ async function main() {
process.stderr.write(JSON.stringify({
ok: false,
usage: {
spawn: "bun scripts/hwlab-code-agent-cli.ts spawn --message '...' [--profile deepseek]",
spawn: "HWLAB_CODE_AGENT_PROVIDER_PROFILE=PROFILE bun scripts/hwlab-code-agent-cli.ts spawn --message '...' [--profile PROFILE]",
poll: "bun scripts/hwlab-code-agent-cli.ts poll <traceId> [--timeout 600000]",
result: "bun scripts/hwlab-code-agent-cli.ts result <traceId>",
trace: "bun scripts/hwlab-code-agent-cli.ts trace <traceId> [--full]"