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

47 lines 1.71 kB
/** * Local Cache Adapter * * Lists and resolves packages already present in the local package cache * (~/.cache/aiwg/packages/) and registered in ~/.aiwg/packages.yaml. * * Used by `aiwg use <name>` to check installed packages before falling back * to the bundled npm package. * * @implements #557 */ import type { PackageRef, PackageSource, PackageRegistryAdapter, FetchOptions, PackageInfo } from '../types.js'; /** * LocalCacheAdapter * * Does not fetch — only resolves already-cached packages. */ export declare class LocalCacheAdapter implements PackageRegistryAdapter { readonly id = "local-cache"; readonly name = "Local Package Cache"; /** * Can resolve any ref that matches a key in the local registry. * This is checked by the registry coordinator after parsing the ref, * so canResolve is always false (resolution happens via list()). */ canResolve(_ref: string): boolean; resolve(_ref: PackageRef): Promise<PackageSource | null>; /** * No-op — local cache adapter never fetches */ fetch(_source: PackageSource, _options?: FetchOptions): Promise<string>; /** * List all packages in the local registry */ list(): Promise<PackageInfo[]>; /** * Look up a package by name (partial match on key or name component) * Returns the PackageInfo if found and the cache path still exists. */ lookupByName(name: string): Promise<PackageInfo | undefined>; /** * Look up cache path for a package by name. * Returns the cache path if installed and present on disk. */ resolveCachePath(name: string): Promise<string | undefined>; } //# sourceMappingURL=local-cache.d.ts.map