@theopenbee/engine-pi 0.2.1 → 0.2.2

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.
Files changed (2) hide show
  1. package/dist/pi.js +2 -3
  2. package/package.json +2 -2
package/dist/pi.js CHANGED
@@ -1,9 +1,8 @@
1
- import { execFile } from "node:child_process";
2
1
  import { createReadStream, mkdirSync, readFileSync, readdirSync, statSync } from "node:fs";
3
2
  import { basename, join } from "node:path";
4
3
  import { createInterface } from "node:readline";
5
4
  import { fileURLToPath } from "node:url";
6
- import { cliVersion, findCli, log, spawnCli } from "@theopenbee/engine-sdk";
5
+ import { cliVersion, execCli, findCli, log, spawnCli } from "@theopenbee/engine-sdk";
7
6
  const EXTENSION_PATH = fileURLToPath(new URL("../assets/openbee-mcp.js", import.meta.url));
8
7
  const MODELS_TIMEOUT_MS = 20_000;
9
8
  const MODELS_MAX_BUFFER = 64 * 1024 * 1024;
@@ -253,7 +252,7 @@ export function parseModels(output) {
253
252
  }
254
253
  function listModels(command) {
255
254
  return new Promise((resolve, reject) => {
256
- execFile(command, ["--list-models"], { timeout: MODELS_TIMEOUT_MS, killSignal: "SIGKILL", maxBuffer: MODELS_MAX_BUFFER, windowsHide: true }, (err, stdout, stderr) => {
255
+ execCli(command, ["--list-models"], { timeout: MODELS_TIMEOUT_MS, killSignal: "SIGKILL", maxBuffer: MODELS_MAX_BUFFER, windowsHide: true }, (err, stdout, stderr) => {
257
256
  if (!err) {
258
257
  resolve(String(stdout));
259
258
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theopenbee/engine-pi",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "pi engine plugin for openbee",
5
5
  "keywords": [
6
6
  "openbee",
@@ -38,7 +38,7 @@
38
38
  "prepare": "npm run build"
39
39
  },
40
40
  "dependencies": {
41
- "@theopenbee/engine-sdk": "^0.2.0"
41
+ "@theopenbee/engine-sdk": "^0.3.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^22.10.0",