UNPKG

@nestbox-ai/cli

Version:

The cli tools that helps developers to build agents

20 lines (19 loc) 962 B
import { DocProcApiInstances } from './apiUtils'; export interface CommonDocProcOptions { project?: string; instance?: string; json?: boolean; [key: string]: unknown; } export interface ResolvedDocProcContext { projectId: string; projectName: string; instanceId: string; } export declare function resolveDocProcContext(apis: DocProcApiInstances, options: CommonDocProcOptions): Promise<ResolvedDocProcContext>; export declare function maybePrintJson(data: unknown, json?: boolean): boolean; export declare function getResponseData(response: unknown): any; export declare function printSimpleTable(headers: string[], rows: Array<Array<string | number | boolean>>): void; export declare function ensureFileExists(filePath: string): void; export declare function writeTemplateFile(outputPath: string, contents: string, force?: boolean): void; export declare function withDocProcErrorHandling(action: () => Promise<void>): Promise<void>;