@infersec/conduit 1.66.0 → 1.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,8 @@
1
- import type { LLMEngine, ULID } from "@infersec/definitions";
1
+ import type { ULID } from "@infersec/definitions";
2
2
  import type { Logger } from "@infersec/logger";
3
3
  export interface ConduitConnectionOptions {
4
4
  apiKey: string;
5
5
  apiURL: string;
6
- engine: LLMEngine;
7
6
  enginePort: number;
8
7
  logger: Logger;
9
8
  port: number;
@@ -7,6 +7,7 @@ export declare function loadBFCLProblems(): Promise<{
7
7
  export declare function evaluateBFCL(options: {
8
8
  apiKey: string;
9
9
  answers: Map<string, BFCLAnswer>;
10
+ checkpointDir?: string;
10
11
  completionEndpoint: string;
11
12
  concurrency: number;
12
13
  endpointID: string;
@@ -0,0 +1,7 @@
1
+ export interface Checkpoint<T> {
2
+ completedIndices: number[];
3
+ results: Array<T | null>;
4
+ }
5
+ export declare function loadCheckpoint<T>(filePath: string): Promise<Checkpoint<T> | null>;
6
+ export declare function saveCheckpoint<T>(filePath: string, checkpoint: Checkpoint<T>): Promise<void>;
7
+ export declare function removeCheckpoint(filePath: string): Promise<void>;
@@ -9,6 +9,7 @@ interface ProblemResult {
9
9
  }
10
10
  export declare function evaluateCodeCompletion(options: {
11
11
  apiKey: string;
12
+ checkpointDir?: string;
12
13
  completionEndpoint: string;
13
14
  concurrency: number;
14
15
  endpointID: string;
@@ -2,6 +2,7 @@ import type { BenchmarkStats, MBPPPlusProblem } from "../types.js";
2
2
  export declare function loadMBPPPlusProblems(): Promise<MBPPPlusProblem[]>;
3
3
  export declare function evaluateMBPPPlus(options: {
4
4
  apiKey: string;
5
+ checkpointDir?: string;
5
6
  completionEndpoint: string;
6
7
  concurrency: number;
7
8
  endpointID: string;