UNPKG

mcard-js

Version:

MCard - Content-addressable storage with cryptographic hashing, handle resolution, and vector search for Node.js and browsers

29 lines 1.02 kB
/** * Utility functions for CLM execution. */ import type { CLMSpec, ExecutionResult } from './types.js'; /** * Compare two values with floating-point tolerance for numeric types. */ export declare function resultsEqual(a: unknown, b: unknown, tolerance?: number): boolean; /** * Safely convert input to object. */ export declare function asObject(input: unknown): Record<string, any>; /** * Build base context for execution. */ export declare function buildBaseContext(clm: CLMSpec, input: unknown): Record<string, any>; /** * Build execution result object. */ export declare function buildExecutionResult(success: boolean, result: unknown, startTime: number, clm: CLMSpec, error?: string, boundary?: string): ExecutionResult; /** * Check if runtime name indicates a recursive CLM. */ export declare function isRecursiveCLM(runtimeName: string): boolean; /** * Check if CLM has multi-runtime configuration. */ export declare function isMultiRuntime(clm: CLMSpec): boolean; //# sourceMappingURL=utils.d.ts.map