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
27 lines • 1.14 kB
TypeScript
/**
* Canonical hook source loader.
*
* Reads HookSource YAML/JSON files from a known directory layout. Per the
* orchestrator wiring in `src/cli/handlers/use.ts`, the operator opts in to
* cross-provider hook translation via `--enable-cross-provider-hooks`; when
* the flag is set, this loader gathers the canonical source files and the
* `bridgeAll()` API translates them.
*
* Source location convention: `agentic/code/addons/aiwg-hooks/canonical/*.yaml`
* Each file declares one HookSource per the schema in `types.ts`.
*
* The loader is forgiving: missing directory yields an empty source list
* (not an error) so operators can opt in to the flag without authoring
* any sources first.
*/
import type { HookSource } from './types.js';
/**
* Load all canonical hook sources from `<frameworkRoot>/agentic/code/addons/
* aiwg-hooks/canonical/`. Returns the parsed sources plus any rejections so
* the orchestrator can warn operators about malformed files.
*/
export declare function loadHookSources(frameworkRoot: string): Promise<{
sources: HookSource[];
errors: string[];
}>;
//# sourceMappingURL=loader.d.ts.map