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.61 kB
TypeScript
/**
* Package Registry
*
* Manages ~/.aiwg/packages.yaml — the local registry of installed remote
* packages (frameworks, addons, extensions installed via `aiwg install`).
*
* @implements #557
*/
import type { PackageEntry, PackageDeployRecord, PackageInfo, PackageRegistryFile } from './types.js';
/**
* Get the path to packages.yaml
*/
export declare function getPackagesFilePath(configDir?: string): string;
/**
* Read packages.yaml, returning an empty registry if the file does not exist
*/
export declare function readPackageRegistry(configDir?: string): Promise<PackageRegistryFile>;
/**
* Write packages.yaml, creating ~/.aiwg/ if needed
*/
export declare function writePackageRegistry(registry: PackageRegistryFile, configDir?: string): Promise<void>;
/**
* Get a single package entry by key (e.g. "roko/ring-methodology")
*/
export declare function getPackageEntry(key: string, configDir?: string): Promise<PackageEntry | undefined>;
/**
* Upsert a package entry
*/
export declare function setPackageEntry(key: string, entry: PackageEntry, configDir?: string): Promise<void>;
/**
* Remove a package entry
*/
export declare function removePackageEntry(key: string, configDir?: string): Promise<boolean>;
/**
* Record a deployment against an existing package entry
*/
export declare function recordDeployment(key: string, record: PackageDeployRecord, configDir?: string): Promise<void>;
/**
* List all installed packages as PackageInfo summaries
*/
export declare function listPackages(configDir?: string): Promise<PackageInfo[]>;
//# sourceMappingURL=package-registry.d.ts.map