feat(config): 支持多层级企业配置发现、读写分离安全落盘与路径诊断并发布 v0.4.1
🚀 Release / 🚀 Build & Publish Multi-Platform Binaries (push) Has been cancelled

This commit is contained in:
gitea committed 2026-09-03 11:34:29 +08:00
1 parent 9e20caf4a3
commit cf44c7dcdf
10 files changed
+331 -54

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
import readline from "readline";
import { loadCorpConfigs, loadGlobalConfig } from "../core/config/loader.js";
import { loadCorpConfigs, loadGlobalConfig, getEnterprisesDirCandidates } from "../core/config/loader.js";
import { CorpContext, resolveCorpConfig } from "../core/config/manager.js";
import { CorpConfig } from "../core/config/types.js";
import { createEkbClient } from "../core/auth/ekb.js";
@@ -31,7 +31,7 @@ export function initCorpRuntime(
let selectedCorp: CorpConfig | null = null;
try {
selectedCorp = corpContext.resolve(options.corpId);
selectedCorp = corpContext.resolve(options.corpId, getEnterprisesDirCandidates());
} catch {
selectedCorp = null;
}