@promptbook/utils
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
15 lines (14 loc) • 806 B
TypeScript
import type { HarnessDefinition } from './HarnessDefinition';
/**
* Finds out which file is really executed when the harness command runs.
*
* The lookup deliberately uses the very same `PATH` which runs the harness, so it reports the copy of the
* harness which Promptbook itself would use. Symbolic links are followed, because installers like the
* standalone OpenAI Codex installer only link their package into a directory on `PATH`.
*
* Note: `$` is used to indicate that this function is not a pure function - it runs a command in a shell
*
* @returns Resolved path of the harness command or `null` when the command is not available
* @private internal utility of `promptbookCli`
*/
export declare function $resolveHarnessCommandPath(definition: HarnessDefinition): Promise<string | null>;