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
18 lines • 788 B
TypeScript
/**
* Shared helper: walk up from a starting directory to find AIWG's package root
* (the directory containing the package.json with name === 'aiwg').
*
* Required because the compiled layout (dist/src/<area>/<file>.js) and the
* source layout (src/<area>/<file>.ts) are different depths from the package
* root, so fixed `../../` walks break in one of the two modes. Walking up to
* the `aiwg` package.json works in both.
*
* @issue #1261
*/
/**
* Walk up from `startDir` looking for a `package.json` with `name === 'aiwg'`.
* Returns the directory containing that package.json, or `null` if not found
* within `maxDepth` levels.
*/
export declare function findPackageRoot(startDir: string, maxDepth?: number): string | null;
//# sourceMappingURL=find-package-root.d.ts.map