UNPKG

@vfarcic/dot-ai

Version:

AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance

27 lines 1.07 kB
/** * Platform Utilities * * Shared utility functions for platform operations and tools. */ import { exec } from 'child_process'; export declare const execAsync: typeof exec.__promisify__; /** * Get the scripts directory path, works in both development and installed npm package */ export declare function getScriptsDir(): string; /** * Extract JSON object from AI response with robust parsing * Handles markdown code blocks and finds proper JSON boundaries */ export declare function extractJsonFromAIResponse(aiResponse: string): unknown; /** * Extract content from markdown code blocks in AI responses * Handles various code block formats: ```yaml, ```yml, ```json, or plain ``` */ export declare function extractContentFromMarkdownCodeBlocks(content: string, language?: string): string; /** * Extract JSON array from AI response with robust parsing * Handles markdown code blocks and finds proper array boundaries */ export declare function extractJsonArrayFromAIResponse(aiResponse: string): unknown[]; //# sourceMappingURL=platform-utils.d.ts.map