Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
type RootPathIntent = "read" | "write" | "create" | "delete" | "stat";
export type RootPathAliasPolicy = {
allowFinalSymlinkForUnlink?: boolean;
allowFinalHardlinkForUnlink?: boolean;
};
export declare const ROOT_PATH_ALIAS_POLICIES: {
readonly strict: Readonly<{
allowFinalSymlinkForUnlink: false;
allowFinalHardlinkForUnlink: false;
}>;
readonly unlinkTarget: Readonly<{
allowFinalSymlinkForUnlink: true;
allowFinalHardlinkForUnlink: true;
}>;
};
type ResolveRootPathParams = {
absolutePath: string;
rootPath: string;
boundaryLabel: string;
intent?: RootPathIntent;
policy?: RootPathAliasPolicy;
skipLexicalRootCheck?: boolean;
rootCanonicalPath?: string;
};
type ResolvedRootPathKind = "missing" | "file" | "directory" | "symlink" | "other";
export type ResolvedRootPath = {
absolutePath: string;
canonicalPath: string;
rootPath: string;
rootCanonicalPath: string;
relativePath: string;
exists: boolean;
kind: ResolvedRootPathKind;
};
export declare function resolveRootPath(params: ResolveRootPathParams): Promise<ResolvedRootPath>;
export declare function resolveRootPathSync(params: ResolveRootPathParams): ResolvedRootPath;
export declare function resolvePathViaExistingAncestorSync(targetPath: string): string;
export {};
//# sourceMappingURL=root-path.d.ts.map