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.
Files changed (2) hide show
  1. package/bin/bh.mjs +5 -0
  2. 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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "botrun-horse",
3
- "version": "2.34.0",
3
+ "version": "2.35.0",
4
4
  "description": "多專案文件處理系統 CLI — AI 技能管理、文件擷取、公文撰寫",
5
5
  "type": "module",
6
6
  "bin": {