UNPKG

@promptbook/remote-server

Version:

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

21 lines (20 loc) 691 B
import type { Command as Program } from 'commander'; /** * Type describing action callback function. */ type actionCallbackFunction = Parameters<Program['action']>[0]; /** * Options controlling CLI process-exit behavior after one command action finishes. * * @private internal helper type for CLI commands */ type HandleActionErrorsOptions = { readonly isExitingOnSuccess?: boolean; }; /** * Wraps action to handle error console logging and exit process with error code. * * @private internal helper function for CLI commands */ export declare function handleActionErrors(action: actionCallbackFunction, options?: HandleActionErrorsOptions): actionCallbackFunction; export {};