@promptbook/utils
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
28 lines (27 loc) • 1.06 kB
TypeScript
import type { Command as Program } from 'commander';
import { type CoderAgentRole } from './coderAgentRole';
/**
* Commander option bag for an optional Book agent used by coder commands.
*
* @private internal utility of `ptbk coder`
*/
export type CoderAgentCliOptions = {
readonly agent?: string;
};
/**
* Description shared by coder commands which accept an agent Book.
*
* @private internal utility of `ptbk coder`
*/
export declare const CODER_AGENT_OPTION_DESCRIPTION = "Book agent providing persona, instructions, identity and task routing; --harness selects the coding tool and --model selects its model";
/**
* Registers the shared `--agent` option for coder commands.
*
* @private internal utility of `ptbk coder`
*/
export declare function addCoderAgentOption(command: Program, defaultRole?: CoderAgentRole): void;
/**
* Registers the shared optional persona and context for single-agent execution or authoring.
* @private internal CLI registration helper
*/
export declare function addCoderExecutionOptions(command: Program): void;