feat: 新增租户 active 状态与统一禁用闸门
This commit is contained in:
1 parent
634f0e2b78
commit
0ff3d9a313
21 files changed
+855
-14
No files matched your search
@@ -35,6 +35,9 @@ export async function handleCorpOverview(
|
||||
}
|
||||
|
||||
const corpId = stringOption(args.options.corp);
|
||||
// Deliberately NOT filtered by `active`: disabling a tenant gates command
|
||||
// execution at corp resolution, never discovery. Keep disabled enterprises
|
||||
// searchable for both `hose` and `seal` sources and just surface the flag.
|
||||
const allCorps = loadCorpConfigs();
|
||||
const globalConfig = loadGlobalConfig();
|
||||
const currentCorpId = corpId ?? (
|
||||
@@ -88,6 +91,7 @@ export async function handleCorpOverview(
|
||||
printJson(displayList.map((item) => ({
|
||||
id: item.id,
|
||||
name: item.name,
|
||||
active: item.active ?? true,
|
||||
environment: item.environment ?? "production",
|
||||
sourceType: item.source.type,
|
||||
provider: (item.source as any).provider ?? item.source.type,
|
||||
@@ -113,6 +117,7 @@ export async function handleCorpOverview(
|
||||
printJson({
|
||||
id: corp.id,
|
||||
name: corp.name,
|
||||
active: corp.active ?? true,
|
||||
environment: corp.environment ?? "production",
|
||||
configFile,
|
||||
seal: {
|
||||
@@ -139,6 +144,7 @@ export async function handleCorpOverview(
|
||||
printJson({
|
||||
id: corp.id,
|
||||
name: corp.name,
|
||||
active: corp.active ?? true,
|
||||
environment: corp.environment ?? "production",
|
||||
sourceType: corp.source.type,
|
||||
provider: (corp.source as any).provider ?? corp.source.type,
|
||||
|
||||
Reference in new issue
Block a user