fix: auth-cli.ts 修复 HOME 路径解析 + shell wrapper 兼容

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ywkj 2026-03-20 18:31:06 +08:00
parent 47d3711f43
commit 2f4f8d4030
1 changed files with 2 additions and 1 deletions

View File

@ -18,8 +18,9 @@ import { spawnSync } from 'child_process';
import * as path from 'path'; import * as path from 'path';
import * as os from 'os'; import * as os from 'os';
const home = process.env.HOME || os.homedir();
const AUTH_RT_BIN = process.env.AUTH_RT_BIN const AUTH_RT_BIN = process.env.AUTH_RT_BIN
|| path.join(os.homedir(), '.openclaw', 'bin', 'auth-rt'); || path.join(home, '.openclaw', 'bin', 'auth-rt');
export interface ApiResponse { export interface ApiResponse {
status: number; status: number;