import { getRuntimeConfigSnapshot } from "../../config/runtime-snapshot.js"; import type { OpenClawConfig } from "../../config/types.openclaw.js"; import { coerceSecretRef } from "../../config/types.secrets.js";
function hasConfiguredSkillApiKeyRef(config?: OpenClawConfig): boolean { const entries = config?.skills?.entries; if (!entries || typeof entries !== "object") { returnfalse;
} for (const skillConfig of Object.values(entries)) { if (!skillConfig || typeof skillConfig !== "object") { continue;
} if (coerceSecretRef(skillConfig.apiKey) !== null) { returntrue;
}
} returnfalse;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.