@juspay/neurolink
Version:
The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002
19 lines (18 loc) • 1.61 kB
TypeScript
import type { ProxyPackageBaseline, ProxyPackagePolyfillReport, ProxyPackageSelection } from "../types/index.js";
/** Locate the package without importing its executable or provider graph. */
export declare function proxyPackageRoot(entryScript: string): string;
/** Bounded baseline of shipped proxy code; operator config and dependencies are excluded. */
export declare function snapshotProxyPackage(selection: ProxyPackageSelection): ProxyPackageBaseline;
/** Invalid or missing baseline must never be silently replaced with edited files. */
export declare function readProxyPackageBaseline(selection: ProxyPackageSelection): ProxyPackageBaseline | null;
export declare function writeProxyPackageBaseline(selection: ProxyPackageSelection, baseline: ProxyPackageBaseline): void;
/** Operator supplies the pristine base for a legacy local build; this does not activate it. */
export declare function captureProxyPackageBaseline(base: ProxyPackageSelection, patched: ProxyPackageSelection): string[];
export declare function changedProxyRuntimeFiles(base: ProxyPackageBaseline, current: ProxyPackageBaseline): string[];
/** Apply exact local hunks, leaving independent upstream changes intact. */
export declare function reconcileProxyPackagePolyfills(base: ProxyPackageBaseline, local: ProxyPackageBaseline, candidate: ProxyPackageBaseline): {
files: Record<string, string | null>;
report: ProxyPackagePolyfillReport;
};
/** Writes are confined to a new staged copy, never the serving package. */
export declare function writeProxyPolyfilledFile(root: string, path: string, content: string): void;