auto-gpt-ts
Version:
my take of Auto-GPT in typescript
15 lines (14 loc) • 541 B
TypeScript
/// <reference types="node" />
import { PathLike } from 'fs';
import { Loggable } from '../logging';
export declare class Workspace extends Loggable {
private static readonly NULL_BYTES;
private _root;
private _restrictToWorkspace;
constructor(workspaceRoot: PathLike, restrictToWorkspace: boolean);
get root(): string;
get restrictToWorkspace(): boolean;
static makeWorkspace(workspaceDirectory: PathLike, ...args: any[]): string;
getPath(relativePath: PathLike): string;
private static _sanitizePath;
}