@promptbook/remote-server
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
39 lines (38 loc) • 1.44 kB
TypeScript
import type { Command as Program } from 'commander';
import type { NormalizedPromptRunnerSelectionCliOptions, PromptRunnerSelectionCliOptions } from '../common/promptRunnerCliOptions';
/**
* Commander option bag shared by `ptbk agent` subcommands.
*
* @private internal utility of `ptbk agent`
*/
export type AgentCommandCliOptions = PromptRunnerSelectionCliOptions & {
readonly agent?: string;
readonly context?: string;
readonly message?: string;
};
/**
* Normalized shared options used by local `ptbk agent` subcommands.
*
* @private internal utility of `ptbk agent`
*/
export type NormalizedAgentCommandRunnerOptions = NormalizedPromptRunnerSelectionCliOptions & {
readonly isVerbose: boolean;
};
/**
* Normalizes shared runner flags for local agent subcommands.
*
* @private internal utility of `ptbk agent`
*/
export declare function normalizeAgentCommandRunnerOptions(cliOptions: AgentCommandCliOptions, command: Program): NormalizedAgentCommandRunnerOptions;
/**
* Returns the required agent book path from Commander options.
*
* @private internal utility of `ptbk agent`
*/
export declare function resolveRequiredAgentPath(cliOptions: AgentCommandCliOptions): string;
/**
* Returns the required single-turn user message from Commander options.
*
* @private internal utility of `ptbk agent`
*/
export declare function resolveRequiredAgentMessage(cliOptions: AgentCommandCliOptions): string;