UNPKG

vibe-tools

Version:
31 lines (30 loc) 1.09 kB
/** * Represents an asset reference in a test scenario */ export interface AssetReference { type: AssetType; name: string; content?: string; path?: string; } /** * Types of asset references */ export declare enum AssetType { INLINE = "inline", PATH = "path" } /** * Resolves asset references in the task description of a test scenario. * Loads inline assets and resolves paths for path assets. * * @param taskDescription - The task description string containing asset references. * @param filePath - The path to the feature behavior file (used to resolve relative asset paths). * @returns An object containing: * - processedDescription: The task description with inline asset references replaced by their content, and path references replaced by their absolute paths. * - assets: A record of AssetReference objects for each asset found in the description. */ export declare function resolveAssetsInDescription(taskDescription: string, filePath: string): Promise<{ processedDescription: string; assets: Record<string, AssetReference>; }>;