fix(cycles): bulk extract leaf type surfaces

This commit is contained in:
Vincent Koc
2026-04-11 13:07:05 +01:00
parent 1167093773
commit 74e7b8d47b
746 changed files with 18397 additions and 1242 deletions

View File

@@ -13,6 +13,7 @@ import { loadModelCatalog } from "../agents/model-catalog.js";
import { modelsAuthLoginCommand, modelsStatusCommand } from "../commands/models.js";
import { loadConfig } from "../config/config.js";
import { resolveAgentModelPrimaryValue } from "../config/model-input.js";
import type { OpenClawConfig } from "../config/types.openclaw.js";
import { callGateway, randomIdempotencyKey } from "../gateway/call.js";
import { buildGatewayConnectionDetailsWithResolvers } from "../gateway/connection-details.js";
import { isLoopbackHost } from "../gateway/net.js";
@@ -395,17 +396,14 @@ function resolveSelectedProviderFromModelRef(modelRef: string | undefined): stri
return resolveModelRefOverride(modelRef).provider;
}
function getAuthProfileIdsForProvider(
cfg: ReturnType<typeof loadConfig>,
providerId: string,
): string[] {
function getAuthProfileIdsForProvider(cfg: OpenClawConfig, providerId: string): string[] {
const agentDir = resolveAgentDir(cfg, resolveDefaultAgentId(cfg));
const store = loadAuthProfileStoreForRuntime(agentDir);
return listProfilesForProvider(store, providerId);
}
function providerHasGenericConfig(params: {
cfg: ReturnType<typeof loadConfig>;
cfg: OpenClawConfig;
providerId: string;
envVars?: string[];
}): boolean {