import { d as PluginEntry } from "./domains-DBNTBmuc.mjs"; import { FileSystem } from "@agimon-ai/po-core/platform"; import { PoMcpAgentPluginProjectionSource, PoMcpProjectionSource } from "@agimon-ai/po-core/mcpProjection"; //#region src/services/agentPluginMcp/normalize.d.ts type JsonObject = Record; interface AgentPluginMcpConfigSource { path: string; format: 'internal'; cacheKey: string; } interface NormalizedAgentPluginMcpSource { /** Owner-only, content-addressed layer that bypasses Claude env interpolation. */ configSource?: AgentPluginMcpConfigSource; /** Claude-compatible definitions for an external merged config. */ claudeConfig: { mcpServers: Record; }; serverNames: string[]; droppedServers: string[]; diagnostics: string[]; } interface NormalizeAgentPluginMcpOptions { stagingDirectory: string; /** Empty and absent lists both mean keep every server. */ allowedServers?: readonly string[]; /** Po strips nested wrappers; external-only callers may opt out. */ stripProxyWrappers?: boolean; } //#endregion //#region src/services/agentPluginMcp/sync.d.ts /** * Validates one Agent Plugins v1 `mcp.json` and stages a native mcp-proxy layer. * * Server validation is isolated: one malformed server is diagnosed and skipped. * Document/schema, source identity, or plugin-boundary failures reject the whole * source. Only the two portable plugin placeholders are expanded; the staged * layer is tagged `internal`, so legacy `${ENV}` interpolation cannot run again. * * @deprecated Node-only sync shim; use normalizeAgentPluginMcpSourceAsync. Removed in M2. */ export declare function normalizeAgentPluginMcpSource(source: PoMcpAgentPluginProjectionSource, options: NormalizeAgentPluginMcpOptions): NormalizedAgentPluginMcpSource; /** One plugin's MCP config as a projection source, or nothing when it ships none. Shared by sync and settings. */ export declare function pluginMcpSource(entry: PluginEntry, pluginDataRoot: string): Promise; //#endregion //#region src/services/agentPluginMcp/index.d.ts type Context = Parameters[1]; /** * Validates one Agent Plugins v1 `mcp.json` and stages a native mcp-proxy layer, * reading and writing through the injected file system. * * Server validation is isolated: one malformed server is diagnosed and skipped. * Document/schema, source identity, or plugin-boundary failures reject the whole * source. Only the two portable plugin placeholders are expanded; the staged * layer is tagged `internal`, so legacy `${ENV}` interpolation cannot run again. */ export declare function normalizeAgentPluginMcpSourceAsync(fs: FileSystem, source: PoMcpAgentPluginProjectionSource, options: NormalizeAgentPluginMcpOptions, context: Context): Promise; //#endregion export type { AgentPluginMcpConfigSource, NormalizeAgentPluginMcpOptions, NormalizedAgentPluginMcpSource }; //# sourceMappingURL=agentPluginMcp.d.mts.map