@openclaw/onnx 2026.10.2 → 2026.10.5-beta.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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as findModel, t as MODELS } from "./catalog-Bgbx4LHv.mjs";
|
|
2
|
-
import { n as createOnnxProvider, t as InferenceWorkerClient } from "./worker-client-
|
|
2
|
+
import { n as createOnnxProvider, t as InferenceWorkerClient } from "./worker-client-wmsjADm-.mjs";
|
|
3
3
|
import { i as verifyModel, t as downloadModel } from "./artifacts-Du35Uk5d.mjs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
//#region extensions/onnx/src/cli.ts
|
|
6
6
|
function registerOnnxCli({ program }, settings, workerUrl, resolvePath) {
|
|
7
|
-
const root = program.command("onnx").description("Download, verify, and
|
|
7
|
+
const root = program.command("onnx").description("Download, verify, and check local ONNX decision models");
|
|
8
8
|
const config = (options) => ({
|
|
9
9
|
...settings,
|
|
10
10
|
...options.modelDir === void 0 ? {} : { modelDir: path.resolve(resolvePath(options.modelDir)) }
|
|
@@ -85,7 +85,7 @@ function registerOnnxCli({ program }, settings, workerUrl, resolvePath) {
|
|
|
85
85
|
inferenceMs: performance.now() - warmed,
|
|
86
86
|
outcome
|
|
87
87
|
}, null, 2));
|
|
88
|
-
if (outcome.status !== "ok") throw new Error(`ONNX
|
|
88
|
+
if (outcome.status !== "ok") throw new Error(`ONNX check failed: ${outcome.reason}`);
|
|
89
89
|
} finally {
|
|
90
90
|
await client.stop();
|
|
91
91
|
}
|
|
@@ -253,12 +253,11 @@ var InferenceWorkerClient = class {
|
|
|
253
253
|
};
|
|
254
254
|
this.worker = worker;
|
|
255
255
|
child.on("message", (message) => this.receive(worker, message));
|
|
256
|
-
|
|
256
|
+
const onFailure = () => {
|
|
257
257
|
if (this.worker === worker) this.retire(new OnnxWorkerError("runtime"));
|
|
258
|
-
}
|
|
259
|
-
child.
|
|
260
|
-
|
|
261
|
-
});
|
|
258
|
+
};
|
|
259
|
+
child.on("error", onFailure);
|
|
260
|
+
child.once("disconnect", onFailure);
|
|
262
261
|
child.once("close", () => {
|
|
263
262
|
if (this.worker === worker) {
|
|
264
263
|
this.worker = void 0;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as findModel } from "./.setup/catalog-Bgbx4LHv.mjs";
|
|
2
|
-
import { n as createOnnxProvider, t as InferenceWorkerClient } from "./.setup/worker-client-
|
|
2
|
+
import { n as createOnnxProvider, t as InferenceWorkerClient } from "./.setup/worker-client-wmsjADm-.mjs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
5
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
@@ -72,7 +72,7 @@ var onnx_default = definePluginEntry({
|
|
|
72
72
|
});
|
|
73
73
|
api.lifecycle?.onDispose?.(() => client.stop());
|
|
74
74
|
api.registerCli(async (context) => {
|
|
75
|
-
const { registerOnnxCli } = await import("./.setup/cli-
|
|
75
|
+
const { registerOnnxCli } = await import("./.setup/cli-BF6QsLdC.mjs");
|
|
76
76
|
registerOnnxCli(context, config, workerUrl, api.resolvePath);
|
|
77
77
|
}, { descriptors: [{
|
|
78
78
|
name: "onnx",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/onnx",
|
|
3
|
-
"version": "2026.10.2",
|
|
3
|
+
"version": "2026.10.5-beta.2",
|
|
4
4
|
"description": "Local ONNX decision models for OpenClaw",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"minHostVersion": ">=2026.9.6"
|
|
29
29
|
},
|
|
30
30
|
"compat": {
|
|
31
|
-
"pluginApi": ">=2026.10.2"
|
|
31
|
+
"pluginApi": ">=2026.10.5-beta.2"
|
|
32
32
|
},
|
|
33
33
|
"build": {
|
|
34
34
|
"bundledDist": false,
|
|
35
|
-
"openclawVersion": "2026.10.2",
|
|
35
|
+
"openclawVersion": "2026.10.5-beta.2",
|
|
36
36
|
"workerEntries": [
|
|
37
37
|
"./src/inference.worker.ts"
|
|
38
38
|
],
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"assets/activity.svg"
|
|
61
61
|
],
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"openclaw": ">=2026.10.2"
|
|
63
|
+
"openclaw": ">=2026.10.5-beta.2"
|
|
64
64
|
},
|
|
65
65
|
"peerDependenciesMeta": {
|
|
66
66
|
"openclaw": {
|