@openclaw/onnx 2026.10.10-beta.4 → 2026.10.10-beta.5
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/.setup/{artifacts-Du35Uk5d.mjs → artifacts-CD0XZUIN.mjs} +1 -1
- package/dist/.setup/{cli-lLSGmoHu.mjs → cli-Bs1V3EDP.mjs} +1 -1
- package/dist/.setup/{model-loader-D-w2BLGm.mjs → model-loader-C6GHyZWy.mjs} +1 -1
- package/dist/.source-module-urls/c006b803da4ad0d774d12fd121a0790ab987a6423243e5bb28b74c5ce87a8b57.json +1 -1
- package/dist/index.js +1 -1
- package/dist/src/inference.worker.js +1 -1
- package/package.json +4 -4
|
@@ -30,7 +30,7 @@ const ExportSchema = Type.Object({
|
|
|
30
30
|
async function withModelFile(file, maxBytes, consume) {
|
|
31
31
|
let handle;
|
|
32
32
|
try {
|
|
33
|
-
handle = await fs.open(file,
|
|
33
|
+
handle = await fs.open(file, fs.constants.O_RDONLY | fs.constants.O_NONBLOCK);
|
|
34
34
|
const stat = await handle.stat();
|
|
35
35
|
if (!stat.isFile() || stat.size < 1 || stat.size > maxBytes) throw new OnnxWorkerError("model-integrity");
|
|
36
36
|
return await consume(handle, stat.size);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as findModel, t as MODELS } from "./catalog-Bgbx4LHv.mjs";
|
|
2
2
|
import { n as createOnnxProvider, t as InferenceWorkerClient } from "./worker-client-DUApeDD4.mjs";
|
|
3
|
-
import { i as verifyModel, t as downloadModel } from "./artifacts-
|
|
3
|
+
import { i as verifyModel, t as downloadModel } from "./artifacts-CD0XZUIN.mjs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
//#region extensions/onnx/src/cli.ts
|
|
6
6
|
function registerOnnxCli({ program }, settings, workerUrl, resolvePath) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as findModel } from "./catalog-Bgbx4LHv.mjs";
|
|
2
2
|
import { i as UnsupportedInputError, t as OnnxWorkerError } from "./protocol-lN8zQ8J3.mjs";
|
|
3
|
-
import { n as readModelArtifact, r as resolveModelFiles } from "./artifacts-
|
|
3
|
+
import { n as readModelArtifact, r as resolveModelFiles } from "./artifacts-CD0XZUIN.mjs";
|
|
4
4
|
import { Tokenizer } from "@huggingface/tokenizers";
|
|
5
5
|
import { InferenceSession, Tensor } from "onnxruntime-node";
|
|
6
6
|
//#region extensions/onnx/src/models/tokenize.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"entries":[{"output":"index.js","source":"extensions/onnx/index.ts"},{"output":"src/inference.worker.js","source":"extensions/onnx/src/inference.worker.ts"}],"chunks":[{"output":".setup/artifacts-
|
|
1
|
+
{"version":3,"entries":[{"output":"index.js","source":"extensions/onnx/index.ts"},{"output":"src/inference.worker.js","source":"extensions/onnx/src/inference.worker.ts"}],"chunks":[{"output":".setup/artifacts-CD0XZUIN.mjs","sha256":"0b4af4ea808a90241051b7b2ca1938eed44e4440ee49a8020a68c243fb1edd4b","facadeSource":null,"sources":["extensions/onnx/src/artifacts.ts"]},{"output":".setup/catalog-Bgbx4LHv.mjs","sha256":"3addae3dd13691729e61cdfe3c9c1b7cee3e9bdcd94a41e9bc916fa42b8ffbf4","facadeSource":null,"sources":["extensions/onnx/src/catalog.ts"]},{"output":".setup/cli-Bs1V3EDP.mjs","sha256":"2fee89081e41c4cdf637da400e8bac83fa49dab2bfaf663ceb110f46f71d5120","facadeSource":"extensions/onnx/src/cli.ts","sources":["extensions/onnx/src/cli.ts"]},{"output":".setup/model-loader-C6GHyZWy.mjs","sha256":"e679ceb41aba9d3e47f77016111571c98d586663f353a6699b1bec7c316378e3","facadeSource":"extensions/onnx/src/model-loader.ts","sources":["extensions/onnx/src/model-loader.ts","extensions/onnx/src/models/deberta.ts","extensions/onnx/src/models/gliclass.ts","extensions/onnx/src/models/gliner.ts","extensions/onnx/src/models/tokenize.ts"]},{"output":".setup/protocol-lN8zQ8J3.mjs","sha256":"775b5769507b723fa8002fd53b693165e185a9d0d2fe75d798056521b77e7e87","facadeSource":null,"sources":["extensions/onnx/src/models/types.ts","extensions/onnx/src/protocol.ts"]},{"output":".setup/worker-client-DUApeDD4.mjs","sha256":"8ff4743a4247b9d2f4b8f410b2b5b4468b0dff8af6daa6ecc069882c873199d5","facadeSource":null,"sources":["extensions/onnx/src/decisions.ts","extensions/onnx/src/worker-client.ts"]},{"output":"index.js","sha256":"472a9602d262ca1229dc46d7032d1b55e41a5c02804d8dd0aa4be61f6d3784b9","facadeSource":"extensions/onnx/index.ts","sources":["extensions/onnx/index.ts","extensions/onnx/src/config.ts"]},{"output":"src/inference.worker.js","sha256":"c8fa27f549491d1a0118e0c1137b5670f1b03ea0464813ed6693222d824dbea8","facadeSource":"extensions/onnx/src/inference.worker.ts","sources":["extensions/onnx/src/inference.worker.ts"]}],"unrenderedSources":[]}
|
package/dist/index.js
CHANGED
|
@@ -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-Bs1V3EDP.mjs");
|
|
76
76
|
registerOnnxCli(context, config, workerUrl, api.resolvePath);
|
|
77
77
|
}, { descriptors: [{
|
|
78
78
|
name: "onnx",
|
|
@@ -53,7 +53,7 @@ async function handle(value) {
|
|
|
53
53
|
if (!cache) {
|
|
54
54
|
let implementation;
|
|
55
55
|
try {
|
|
56
|
-
implementation = await import("../.setup/model-loader-
|
|
56
|
+
implementation = await import("../.setup/model-loader-C6GHyZWy.mjs");
|
|
57
57
|
} catch {
|
|
58
58
|
throw new OnnxWorkerError("dependency-unavailable");
|
|
59
59
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/onnx",
|
|
3
|
-
"version": "2026.10.10-beta.
|
|
3
|
+
"version": "2026.10.10-beta.5",
|
|
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.10-beta.
|
|
31
|
+
"pluginApi": ">=2026.10.10-beta.5"
|
|
32
32
|
},
|
|
33
33
|
"build": {
|
|
34
34
|
"bundledDist": false,
|
|
35
|
-
"openclawVersion": "2026.10.10-beta.
|
|
35
|
+
"openclawVersion": "2026.10.10-beta.5",
|
|
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.10-beta.
|
|
63
|
+
"openclaw": ">=2026.10.10-beta.5"
|
|
64
64
|
},
|
|
65
65
|
"peerDependenciesMeta": {
|
|
66
66
|
"openclaw": {
|