openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
19 lines (18 loc) • 609 B
TypeScript
import { type BoundaryPathAliasPolicy } from "./boundary-path.js";
export type PathAliasPolicy = BoundaryPathAliasPolicy;
export declare const PATH_ALIAS_POLICIES: {
readonly strict: Readonly<{
allowFinalSymlinkForUnlink: false;
allowFinalHardlinkForUnlink: false;
}>;
readonly unlinkTarget: Readonly<{
allowFinalSymlinkForUnlink: true;
allowFinalHardlinkForUnlink: true;
}>;
};
export declare function assertNoPathAliasEscape(params: {
absolutePath: string;
rootPath: string;
boundaryLabel: string;
policy?: PathAliasPolicy;
}): Promise<void>;