@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
21 lines • 1.47 kB
TypeScript
/**
* The project `.agents/skills` directories for `cwd`, nearest first: one per folder from cwd up to
* the git root (or the filesystem root), stopping below the user's home. Home and every folder
* above it are never a project; `~/.agents/skills` is the user's own global skills. The ONE walk
* both the trust check and the loader use, over the same spelling and the same git root (#3420
* review): paths stay as spelled (resources are compared as strings), and each folder's real path
* decides whether it is home or above, so a symlink can't carry the walk past home either way.
*/
export declare function projectAgentsSkillDirs(cwd: string): string[];
/**
* Returns true when cwd has project-local resources that must be gated by
* project trust: trust-requiring entries under the project config dir or the
* legacy cwd/.pi dir (whose resources are also discovered), or a project
* `.agents/skills` (`projectAgentsSkillDirs`, the same walk the loader uses).
* The user's home and every folder above it are never a project: their config
* dirs and .agents/skills are the user's own global resources (#2465).
*/
export declare function hasTrustRequiringProjectResources(cwd: string): boolean;
/** `hasTrustRequiringProjectResources` without blocking: the same walk, answered through `node:fs/promises`. */
export declare function hasTrustRequiringProjectResourcesAsync(cwd: string): Promise<boolean>;
//# sourceMappingURL=trust-requiring-resources.d.ts.map