UNPKG

@promptbook/remote-server

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

28 lines (27 loc) 1.21 kB
/** * Stable root directory used for Promptbook-owned temporary files and caches. * * @private internal utility for Promptbook temporary folders */ export declare const PROMPTBOOK_TEMPORARY_DIRECTORY = ".promptbook"; /** * Builds one normalized project-relative path inside Promptbook's dedicated temporary root. * * The returned path intentionally uses `/` separators so the same helper can be reused from * Node.js and edge-safe code without depending on the Node `path` module. * * @private internal utility for Promptbook temporary folders */ export declare function getPromptbookTemporaryPath(...pathSegments: ReadonlyArray<string>): string; /** * Builds one repository-root `.gitignore` rule for a Promptbook temporary path. * * @private internal utility for Promptbook temporary folders */ export declare function getPromptbookTemporaryGitignoreRule(...pathSegments: ReadonlyArray<string>): string; /** * Resolves one absolute or base-relative path inside Promptbook's dedicated temporary root. * * @private internal utility for Promptbook temporary folders */ export declare function resolvePromptbookTemporaryPath(projectPath: string, ...pathSegments: ReadonlyArray<string>): string;