newo
Version:
NEWO CLI: Professional command-line tool with modular architecture for NEWO AI Agent development. Features account migration, integration management, webhook automation, AKB knowledge base, project attributes, sandbox testing, IDN-based file management, r
43 lines • 1.74 kB
TypeScript
import type { RunnerType } from '../types.js';
export interface SkillFile {
filePath: string;
fileName: string;
extension: string;
content: string;
}
export interface SkillFileValidation {
isValid: boolean;
files: SkillFile[];
warnings: string[];
errors: string[];
}
/**
* Get the correct file extension for a runner type
*/
export declare function getExtensionForRunner(runnerType: RunnerType): string;
/**
* Generate IDN-based script file path
*/
export declare function getIdnBasedScriptPath(customerIdn: string, projectIdn: string, agentIdn: string, flowIdn: string, skillIdn: string, runnerType: RunnerType): string;
/**
* Find all script files in a skill folder
*/
export declare function findSkillScriptFiles(skillFolderPath: string): Promise<SkillFile[]>;
/**
* Validate skill folder has exactly one script file
*/
export declare function validateSkillFolder(customerIdn: string, projectIdn: string, agentIdn: string, flowIdn: string, skillIdn: string): Promise<SkillFileValidation>;
/**
* Get the single skill script file (if valid)
*/
export declare function getSingleSkillFile(customerIdn: string, projectIdn: string, agentIdn: string, flowIdn: string, skillIdn: string): Promise<SkillFile | null>;
/**
* Check if skill script content is different from target content
*/
export declare function isContentDifferent(existingContent: string, newContent: string): boolean;
export type OverwriteChoice = 'yes' | 'no' | 'all' | 'quit';
/**
* Interactive overwrite confirmation with content diff
*/
export declare function askForOverwrite(skillIdn: string, existingContent: string, newContent: string, fileName: string): Promise<OverwriteChoice>;
//# sourceMappingURL=skill-files.d.ts.map