@promptbook/utils
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
13 lines (12 loc) • 664 B
TypeScript
/**
* Refuses to start one `ptbk coder` command when the disk which hosts the project is nearly full.
*
* A run which starts without enough free disk space fails somewhere in the middle, after the coding agent has
* already rewritten a part of the project, so it is stopped before it writes anything at all.
*
* Note: `$` is used to indicate that this function is not a pure function - it reads the state of the filesystem
*
* @throws {LimitReachedError} when there is not enough free disk space left to start
* @private internal utility of `promptbookCli`
*/
export declare function $assertSufficientFreeDiskSpace(inspectedPath: string): Promise<void>;