import { a as GitPluginSource, d as PluginEntry, m as PluginSource, n as DomainManifest, u as PluginCatalogEntry } from "./domains-DBNTBmuc.mjs"; import "./index-VwP66Rz7.mjs"; import { t as readPoConfigSourcesAsync } from "./index-CmNDXC15.mjs"; import { FileSystem } from "@agimon-ai/po-core/platform"; //#region src/services/pluginCatalog/parse.d.ts declare const MARKETPLACE_MANIFEST_RELATIVE_PATHS: readonly ['.agents/plugins/marketplace.json', '.agents/plugins/api_marketplace.json', '.claude-plugin/marketplace.json', '.cursor-plugin/marketplace.json']; declare function pluginDirectoryForSource(source: PluginSource, homePoDirectory: string): string; /** Private generated snapshot, never a user-owned marketplace manifest. */ declare function marketplaceSnapshotPath(homeDirectory: string, environment: Readonly>, origin: string): string; /** Validate the entire snapshot before admitting any remote entry. Local explicit entries still win. */ declare function marketplaceSnapshotEntries(text: string, origin: string): Record; declare function isRemotePluginSource(source: PluginSource): source is GitPluginSource | Extract; /** Host-owned receipt lookup is scope-bound, not origin-bound: changing authority must never hide an accepted pin. */ declare function marketplaceInstalledPath(homeDirectory: string, environment: Readonly>, origin: string, workspaceRoot?: string): string; /** Read only from marketplaceInstalledPath, never from plugins fields or repository-authored receipts. */ declare function marketplaceInstalledEntries(text: string, origin: string): Record; //#endregion //#region src/services/pluginCatalog/sync.d.ts /** * Matches Codex manifest precedence, including schema-gated root plugin.json. * @deprecated Node-only sync shim; use findPluginManifestPathAsync. Removed in M2. */ declare function findPluginManifestPath(pluginRoot: string): string | undefined; //#endregion //#region src/services/pluginCatalog/index.d.ts type Context = Parameters[1]; /** Matches Codex manifest precedence, including schema-gated root plugin.json. */ declare function findPluginManifestPathAsync(fs: FileSystem, pluginRoot: string, context: Context): Promise; //#endregion //#region src/services/domains/core.d.ts declare const PO_DOMAINS_ENV = "PO_DOMAINS"; declare const DEFAULT_DOMAIN = "default"; /** * Domains selected when the caller names none. * * Configuration keeps this axis independent of the preset. The * preset-derived choice is retained only as the compatibility fallback for * domains files that declare no defaultDomains. */ declare function defaultDomainsForPreset(preset: string, environment: NodeJS.ProcessEnv, defaultDomains?: readonly string[]): string[]; //#endregion //#region src/services/domains/sync.d.ts /** * Reads domains and plugin catalogs from global and repository configs. * * @deprecated Node-only sync shim; use loadDomainsAsync. Removed in M2. */ declare function loadDomains(repoRoot: string, homeDirectory?: string): DomainManifest; /** @deprecated Node-only sync shim; use listDomainNamesAsync. Removed in M2. */ declare function listDomainNames(repoRoot: string, homeDirectory?: string): string[]; /** @deprecated Node-only sync shim; use resolveSharedSkillsAsync. Removed in M2. */ declare function resolveSharedSkills(repoRoot: string, domainNames: string[], homeDirectory?: string): boolean; /** @deprecated Node-only sync shim; use resolvePluginEntriesAsync. Removed in M2. */ declare function resolvePluginEntries(repoRoot: string, domainNames: string[], explicitDirectories: string[], homeDirectory?: string): PluginEntry[]; /** @deprecated Node-only sync shim; use resolvePluginDirectoriesAsync. Removed in M2. */ declare function resolvePluginDirectories(repoRoot: string, domainNames: string[], explicitDirectories: string[], homeDirectory?: string): string[]; //#endregion //#region src/services/domains/index.d.ts type IoContext = Parameters[1]; /** * Reads domains and plugin catalogs from global and repository configs over a FileSystem. * * Named domains and explicit plugin entries are replaced by later repository * definitions. Configured roots accumulate, with exact marketplace manifests * deduplicated in discovery order. Explicit entries override discovered IDs. */ declare function loadDomainsAsync(fs: FileSystem, repoRoot: string, context: IoContext, homeDirectory?: string, environment?: Parameters[5]): Promise; declare function listDomainNamesAsync(fs: FileSystem, repoRoot: string, context: IoContext, homeDirectory?: string, environment?: Parameters[5]): Promise; /** * Whether to include .claude/skills as shared fallbacks. * * Shared skills are included unless every selected domain opts out, so mixing a * trimmed domain with an untrimmed one cannot strip the untrimmed one's skills. */ declare function resolveSharedSkillsAsync(fs: FileSystem, repoRoot: string, domainNames: string[], context: IoContext, homeDirectory?: string, environment?: Parameters[5]): Promise; /** Resolves named domain plugins while preserving each subset filter. */ declare function resolvePluginEntriesAsync(fs: FileSystem, repoRoot: string, domainNames: string[], explicitDirectories: string[], context: IoContext, homeDirectory?: string, environment?: Parameters[5]): Promise; declare function resolvePluginDirectoriesAsync(fs: FileSystem, repoRoot: string, domainNames: string[], explicitDirectories: string[], context: IoContext, homeDirectory?: string): Promise; //#endregion //#region src/services/domains/completion.d.ts /** Splits comma-joined selections and expands aliases into concrete domain names. */ declare function expandDomainNames(manifest: DomainManifest, domainNames: readonly string[]): string[]; declare function domainCompletionPrefix(textBeforeCursor: string): string | undefined; declare function domainCompletionItems(domainNames: string[], query: string): Array<{ value: string; label: string; }>; //#endregion export { marketplaceSnapshotEntries as C, marketplaceInstalledPath as S, pluginDirectoryForSource as T, findPluginManifestPathAsync as _, loadDomainsAsync as a, isRemotePluginSource as b, resolveSharedSkillsAsync as c, resolvePluginDirectories as d, resolvePluginEntries as f, defaultDomainsForPreset as g, PO_DOMAINS_ENV as h, listDomainNamesAsync as i, listDomainNames as l, DEFAULT_DOMAIN as m, domainCompletionPrefix as n, resolvePluginDirectoriesAsync as o, resolveSharedSkills as p, expandDomainNames as r, resolvePluginEntriesAsync as s, domainCompletionItems as t, loadDomains as u, findPluginManifestPath as v, marketplaceSnapshotPath as w, marketplaceInstalledEntries as x, MARKETPLACE_MANIFEST_RELATIVE_PATHS as y }; //# sourceMappingURL=completion-a6pdiAmw.d.mts.map