@promptbook/remote-server
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
25 lines (24 loc) • 1.08 kB
TypeScript
import type { Command as Program } from 'commander';
import type { $side_effect } from '../../../utils/organization/$side_effect';
import { createAgentRunOptionsFromCliOptions } from './agentRunCliOptions';
/**
* Shared command-registration options for `ptbk agent` runner subcommands.
*
* @private internal utility of `ptbk agent`
*/
type InitializeAgentRunnerCommandOptions = {
readonly commandName: string;
readonly aliases?: ReadonlyArray<string>;
readonly summary: string;
readonly featureLines: ReadonlyArray<string>;
readonly isExitingOnSuccess?: boolean;
readonly configureCommand?: (command: Program) => void;
readonly loadExecutor: () => Promise<(runOptions: ReturnType<typeof createAgentRunOptionsFromCliOptions>) => Promise<unknown>>;
};
/**
* Registers one runner-backed `ptbk agent` subcommand with the shared option and error handling flow.
*
* @private internal utility of `ptbk agent`
*/
export declare function $initializeAgentRunnerCommand(program: Program, options: InitializeAgentRunnerCommandOptions): $side_effect;
export {};