@sirmrmarty/n8n-nodes-tmux-orchestrator
Version:
n8n nodes for orchestrating Claude AI agents through tmux sessions
20 lines (19 loc) • 1.01 kB
TypeScript
export declare class PathResolver {
private packageRoot;
constructor();
getScriptPath(scriptName: string, externalDir?: string): Promise<string>;
getProjectBasePath(configuredPath?: string): string;
private findInNodeModulesAsync;
private findInNodeModules;
isScriptAvailableAsync(scriptPath: string): Promise<boolean>;
isScriptAvailable(scriptPath: string): boolean;
getAllScriptPathsAsync(externalDir?: string): Promise<Record<string, string | null>>;
getAllScriptPaths(externalDir?: string): Record<string, string | null>;
isPathSafe(targetPath: string, basePath: string): boolean;
private validatePathSecurity;
validateAndResolvePath(projectPath: string, relativePath: string): string;
safeCreateDirectoryAsync(projectPath: string, relativePath: string): Promise<string>;
safeCreateDirectory(projectPath: string, relativePath: string): string;
private fileExistsAsync;
getScriptPathSync(scriptName: string, externalDir?: string): string;
}