first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import * as DataModel from "./DataModel";
export interface FileWriterOptions {
append: boolean;
deleteOnExit: boolean;
sizeLimit: number;
renamePolicy: "rolling" | "overwrite" | "stop";
chmod: number;
}
export declare const homedir: any;
export declare class FileWriter implements DataModel.AgentLogger {
private _filepath;
private _filename;
callback: (_err: Error) => void;
private _ready;
private _options;
private static _fullpathsToDelete;
private static _listenerAttached;
private static DEFAULT_OPTIONS;
static isNodeVersionCompatible(): boolean;
constructor(_filepath: string, _filename: string, options?: Partial<FileWriterOptions>);
log(message: any): void;
error(message: any): void;
private _appendFile(message);
private _writeFile(message);
private static _addCloseHandler();
private _shouldRenameFile(callback?);
}