import { resolveAwsSdkEnvVarName } from "@agentai2027/openclaw-zh/plugin-sdk/provider-auth-runtime";
//#region extensions/amazon-bedrock/discovery-shared.ts
function resolveBedrockConfigApiKey(env = process.env) {
	return resolveAwsSdkEnvVarName(env);
}
function mergeImplicitBedrockProvider(params) {
	const { existing, implicit } = params;
	if (!existing) return implicit;
	return {
		...implicit,
		...existing,
		models: Array.isArray(existing.models) && existing.models.length > 0 ? existing.models : implicit.models
	};
}
//#endregion
export { mergeImplicitBedrockProvider, resolveBedrockConfigApiKey };
