atlas-mcp-server
Version:
ATLAS (Adaptive Task & Logic Automation System): An MCP server enabling LLM agents to manage projects, tasks, and knowledge via a Neo4j-backed, three-tier architecture. Facilitates complex workflow automation and project management through LLM Agents.
18 lines (17 loc) • 824 B
TypeScript
/**
* @fileoverview Provides utility functions for the backup and restore service,
* including secure path resolution and backup rotation management.
* @module src/services/neo4j/backupRestoreService/backupUtils
*/
export declare const validatedBackupRoot: string;
/**
* Securely resolves a path against a base directory and ensures it stays within that base.
* @param basePath The absolute, validated base path.
* @param targetPath The relative or absolute path to resolve.
* @returns The resolved absolute path if it's within the base path, otherwise null.
*/
export declare const secureResolve: (basePath: string, targetPath: string) => string | null;
/**
* Manages backup rotation, deleting the oldest backups if the count exceeds the limit.
*/
export declare const manageBackupRotation: () => Promise<void>;