UNPKG

aiwg

Version:

Deployment tool and support utility for AI context. Copies agents, skills, commands, rules, and behaviors into the paths each AI platform reads (Claude Code, Codex, Copilot, Cursor, Warp, OpenClaw, and 6 more) so one source of truth works across 10 platfo

42 lines 1.38 kB
/** * Marketplace Local Cache * * Manages the ~/.aiwg/marketplace-cache/ directory that stores fetched plugins. * * Layout: ~/.aiwg/marketplace-cache/<source>/<packageId>/<version>/ * * @implements #787 */ import type { MarketplaceSourceId, PackageBundle, PackageMetadata } from './types.js'; /** * Resolve the cache root. Supports AIWG_CACHE_DIR override for testing. */ export declare function getCacheRoot(): string; /** * Resolve the path for a specific package version */ export declare function getPackagePath(source: MarketplaceSourceId, packageId: string, version: string): string; /** * Check whether a package version is cached */ export declare function isCached(source: MarketplaceSourceId, packageId: string, version: string): boolean; /** * Write a package bundle to the cache */ export declare function cachePackage(bundle: PackageBundle): string; /** * List all cached packages. */ export interface CachedPackageEntry { source: MarketplaceSourceId; packageId: string; version: string; cachedAt: Date; metadata: PackageMetadata; } export declare function listCachedPackages(): CachedPackageEntry[]; /** * Remove a specific cached package (all versions or a specific one) */ export declare function uncachePackage(source: MarketplaceSourceId, packageId: string, version?: string): boolean; //# sourceMappingURL=cache.d.ts.map