@infersec/conduit 1.79.0 → 1.80.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.
package/dist/cli.js CHANGED
@@ -58,7 +58,6 @@ import require$$0$j from 'child_process';
58
58
  import { setTimeout as setTimeout$1, scheduler, setImmediate as setImmediate$1 } from 'node:timers/promises';
59
59
  import { serialize } from 'node:v8';
60
60
  import si from 'systeminformation';
61
- import Docker from 'dockerode';
62
61
 
63
62
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
64
63
 
@@ -116785,7 +116784,7 @@ async function downloadFileWithRange({ accessToken, filePath, fileSize, modelSlu
116785
116784
  }
116786
116785
 
116787
116786
  const EXLLAMAV3_EXECUTABLE = process.env.EXLLAMAV3_EXECUTABLE ?? "python3";
116788
- const SERVER_SCRIPT = join(import.meta.dirname, "server.py");
116787
+ const SERVER_SCRIPT = join(dirname(fileURLToPath(import.meta.url)), "server.py");
116789
116788
  const DEFAULT_EXLLAMAV3_CONTEXT_LENGTH = 4096;
116790
116789
  async function startExllamav3({ enginePort, targetDirectory }) {
116791
116790
  const contextLength = Math.max(1, this.contextLength ?? DEFAULT_EXLLAMAV3_CONTEXT_LENGTH);
@@ -156136,6 +156135,7 @@ function buildCodePrompt(problemPrompt) {
156136
156135
  }
156137
156136
  async function evaluateCodeCompletion(options) {
156138
156137
  const { apiKey, checkpointDir, completionEndpoint, concurrency, endpointID, onProgress, problems } = options;
156138
+ const { default: Docker } = await import('dockerode');
156139
156139
  const docker = new Docker();
156140
156140
  const effectiveConcurrency = Math.max(1, concurrency);
156141
156141
  const cpFile = checkpointDir ? resolve(checkpointDir, ".checkpoint-humanevalplus.json") : null;
@@ -156353,6 +156353,7 @@ function buildMBPPPrompt(problem) {
156353
156353
  }
156354
156354
  async function evaluateMBPPPlus(options) {
156355
156355
  const { apiKey, checkpointDir, completionEndpoint, concurrency, endpointID, onProgress, problems } = options;
156356
+ const { default: Docker } = await import('dockerode');
156356
156357
  const docker = new Docker();
156357
156358
  const effectiveConcurrency = Math.max(1, concurrency);
156358
156359
  const cpFile = checkpointDir ? resolve(checkpointDir, ".checkpoint-mbppplus.json") : null;