botrun-horse 2.34.0 → 2.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/bh.mjs +5 -0
- package/package.json +1 -1
package/bin/bh.mjs
CHANGED
|
@@ -8,6 +8,11 @@
|
|
|
8
8
|
//
|
|
9
9
|
// 所有指令皆支援 --project=<名稱>、--format=json、stdin pipe、--quiet、--print0
|
|
10
10
|
|
|
11
|
+
import path from 'path';
|
|
12
|
+
import { loadEnv } from '../modules/_core/env.mjs';
|
|
13
|
+
loadEnv(); // 載入專案根目錄 .env
|
|
14
|
+
loadEnv(path.join(process.cwd(), '.env'), { override: false }); // 載入使用者 cwd/.env(npx 情境)
|
|
15
|
+
|
|
11
16
|
import { setupHttpProxy } from '../modules/_core/proxy.mjs';
|
|
12
17
|
setupHttpProxy(); // 必須在所有 fetch 呼叫之前執行(含 @google/genai、Anthropic SDK)
|
|
13
18
|
|