import { t as createWebSearchProviderContractFields } from "./provider-web-search-contract-vmITpMTy.js";
//#region extensions/parallel/src/parallel-free-web-search-provider.shared.ts
const PARALLEL_FREE_ONBOARDING_SCOPES = ["text-inference"];
function createParallelFreeWebSearchProviderBase() {
	return {
		id: "parallel-free",
		label: "Parallel 搜索（免费）",
		hint: "通过 Parallel 托管的 Search MCP 免费网页搜索，无需 API 密钥",
		onboardingScopes: [...PARALLEL_FREE_ONBOARDING_SCOPES],
		requiresCredential: false,
		envVars: [],
		placeholder: "（无需密钥）",
		signupUrl: "https://parallel.ai",
		docsUrl: "https://docs.openclaw.ai/tools/parallel-search",
		autoDetectOrder: 76,
		credentialPath: "",
		...createWebSearchProviderContractFields({
			credentialPath: "",
			searchCredential: {
				type: "scoped",
				scopeId: "parallel-free"
			},
			selectionPluginId: "parallel"
		})
	};
}
//#endregion
//#region extensions/parallel/src/parallel-web-search-provider.shared.ts
const PARALLEL_CREDENTIAL_PATH = "plugins.entries.parallel.config.webSearch.apiKey";
const PARALLEL_ONBOARDING_SCOPES = ["text-inference"];
function createParallelWebSearchProviderBase() {
	return {
		id: "parallel",
		label: "Parallel 搜索",
		hint: "面向 LLM 优化的网页来源密集摘要",
		onboardingScopes: [...PARALLEL_ONBOARDING_SCOPES],
		credentialLabel: "Parallel API 密钥",
		envVars: ["PARALLEL_API_KEY"],
		placeholder: "par-...",
		signupUrl: "https://platform.parallel.ai",
		docsUrl: "https://docs.openclaw.ai/tools/parallel-search",
		autoDetectOrder: 75,
		credentialPath: PARALLEL_CREDENTIAL_PATH,
		...createWebSearchProviderContractFields({
			credentialPath: PARALLEL_CREDENTIAL_PATH,
			searchCredential: {
				type: "scoped",
				scopeId: "parallel"
			},
			configuredCredential: { pluginId: "parallel" },
			selectionPluginId: "parallel"
		})
	};
}
//#endregion
export { createParallelFreeWebSearchProviderBase as n, createParallelWebSearchProviderBase as t };
