@yuxilabs/gptp-core
Version:
Core validation, formatting and execution logic for the GPTP file format.
15 lines • 582 B
TypeScript
import type { GPTPDocument } from '@/types/gptpTypes';
/**
* Computes a shallow diff between two GPTP prompts.
* Returns a list of changed top-level keys.
*/
export declare function diffPromptKeys(a: GPTPDocument, b: GPTPDocument): string[];
/**
* Performs a recursive diff between two GPTP documents.
* Returns a map of changed key paths with their `from` and `to` values.
*/
export declare function diffPromptDeep(a: Record<string, any>, b: Record<string, any>, pathPrefix?: string): Record<string, {
from: any;
to: any;
}>;
//# sourceMappingURL=diffPrompts.d.ts.map