create-ai-chat-context-experimental
Version:
Phase 2: TypeScript rewrite - AI Chat Context & Memory System with conversation extraction and AICF format support (powered by aicf-core v2.1.0).
45 lines • 1.57 kB
TypeScript
/**
* This file is part of create-ai-chat-context-experimental.
* Licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later).
* See LICENSE file for details.
*/
/**
* Get the centralized test output directory
* All test artifacts should be created within this directory
*/
export declare function getTestOutputDir(): string;
/**
* Create a temporary test directory within the centralized test output folder
* @param prefix - Prefix for the temporary directory name
* @returns Path to the created temporary directory
*/
export declare function createTestDir(prefix?: string): string;
/**
* Clean up a test directory with retry logic
* @param testDir - Path to the test directory to clean up
* @param maxAttempts - Maximum number of cleanup attempts (default: 3)
*/
export declare function cleanupTestDir(testDir: string, maxAttempts?: number): void;
/**
* Create a test directory manager that tracks all created directories
* and provides automatic cleanup
*/
export declare class TestDirManager {
private testDirs;
/**
* Create a new test directory
* @param prefix - Prefix for the temporary directory name
* @returns Path to the created temporary directory
*/
create(prefix?: string): string;
/**
* Clean up a specific test directory
* @param testDir - Path to the test directory to clean up
*/
cleanup(testDir: string): void;
/**
* Clean up all test directories created by this manager
*/
cleanupAll(): void;
}
//# sourceMappingURL=test-helpers.d.ts.map