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).
61 lines • 1.49 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.
*/
import type { Result } from '../types/result.js';
export interface DaemonStatus {
running: boolean;
pid?: number;
startTime?: Date;
uptime?: string;
lastSync?: Date;
platforms?: string[];
}
export interface DaemonInfo {
pid: number;
startTime: Date;
lastSync?: Date;
}
export declare class DaemonManager {
private pidFilePath;
private watcherConfigPath;
constructor(projectPath: string);
/**
* Write PID file with daemon information
*/
writePidFile(pid: number): Result<void>;
/**
* Read PID file and return daemon information
*/
readPidFile(): Result<DaemonInfo>;
/**
* Delete PID file
*/
deletePidFile(): Result<void>;
/**
* Check if process is running
*/
isProcessRunning(pid: number): boolean;
/**
* Get daemon status
*/
getStatus(): Result<DaemonStatus>;
/**
* Stop daemon by PID
*/
stopDaemon(): Result<void>;
/**
* Update last sync time in PID file
*/
updateLastSync(): Result<void>;
/**
* Format uptime in human-readable format
*/
private formatUptime;
/**
* Get enabled platforms from watcher config
*/
private getEnabledPlatforms;
}
//# sourceMappingURL=DaemonManager.d.ts.map