@theopenbee/engine-codex 0.2.0 → 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.
- package/dist/codex.js +2 -3
- package/icon.svg +3 -0
- package/openbee.plugin.json +1 -0
- package/package.json +3 -2
package/dist/codex.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { execFile } from "node:child_process";
|
|
2
1
|
import { createReadStream, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
3
2
|
import { homedir } from "node:os";
|
|
4
3
|
import { join } from "node:path";
|
|
5
4
|
import { createInterface } from "node:readline";
|
|
6
|
-
import { cliVersion, findCli, log, spawnCli } from "@theopenbee/engine-sdk";
|
|
5
|
+
import { cliVersion, execCli, findCli, log, spawnCli } from "@theopenbee/engine-sdk";
|
|
7
6
|
const MODELS_TIMEOUT_MS = 20_000;
|
|
8
7
|
const MODELS_MAX_BUFFER = 64 * 1024 * 1024;
|
|
9
8
|
function isObject(value) {
|
|
@@ -382,7 +381,7 @@ export function parseModels(output) {
|
|
|
382
381
|
}
|
|
383
382
|
function listModels(command) {
|
|
384
383
|
return new Promise((resolve, reject) => {
|
|
385
|
-
|
|
384
|
+
execCli(command, ["debug", "models"], { timeout: MODELS_TIMEOUT_MS, killSignal: "SIGKILL", maxBuffer: MODELS_MAX_BUFFER, windowsHide: true }, (err, stdout, stderr) => {
|
|
386
385
|
if (!err) {
|
|
387
386
|
resolve(String(stdout));
|
|
388
387
|
return;
|
package/icon.svg
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill-rule="evenodd">
|
|
2
|
+
<path fill="currentColor" clip-rule="evenodd" d="M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z"/>
|
|
3
|
+
</svg>
|
package/openbee.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theopenbee/engine-codex",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Codex engine plugin for openbee",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"openbee",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"main": "./dist/index.js",
|
|
23
23
|
"files": [
|
|
24
24
|
"dist",
|
|
25
|
+
"icon.svg",
|
|
25
26
|
"openbee.plugin.json"
|
|
26
27
|
],
|
|
27
28
|
"engines": {
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
"prepare": "npm run build"
|
|
38
39
|
},
|
|
39
40
|
"dependencies": {
|
|
40
|
-
"@theopenbee/engine-sdk": "^0.
|
|
41
|
+
"@theopenbee/engine-sdk": "^0.3.0"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
44
|
"@types/node": "^22.10.0",
|