mlclaw 0.4.2 → 0.4.4
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/Dockerfile +3 -3
- package/README.md +9 -3
- package/dist/mlclaw-space-runtime.js +21 -0
- package/dist/mlclaw.mjs +2 -2
- package/package.json +6 -6
package/Dockerfile
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
ARG OPENCLAW_VERSION=2026.7.1
|
|
2
2
|
ARG OPENCLAW_BASE_IMAGE=ghcr.io/openclaw/openclaw:${OPENCLAW_VERSION}
|
|
3
|
-
ARG BROKERKIT_PLUGIN_VERSION=0.3.
|
|
4
|
-
ARG BROKERKIT_VERSION=hf-broker/v0.
|
|
5
|
-
ARG MLCLAW_RUNTIME_IMAGE=ghcr.io/osolmaz/mlclaw:0.4.
|
|
3
|
+
ARG BROKERKIT_PLUGIN_VERSION=0.3.1
|
|
4
|
+
ARG BROKERKIT_VERSION=hf-broker/v0.4.0
|
|
5
|
+
ARG MLCLAW_RUNTIME_IMAGE=ghcr.io/osolmaz/mlclaw:0.4.4-openclaw-2026.7.1
|
|
6
6
|
|
|
7
7
|
FROM golang:1.26.5-bookworm AS hf-broker-build
|
|
8
8
|
ARG BROKERKIT_VERSION
|
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="https://raw.githubusercontent.com/
|
|
2
|
+
<img src="https://raw.githubusercontent.com/huggingface/mlclaw/main/assets/mlclaw.svg" alt="ML Claw" width="180">
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
# ML Claw
|
|
@@ -30,13 +30,13 @@ Without Node.js, the launcher fetches a pinned Node runtime into your user
|
|
|
30
30
|
cache and runs the same npm package:
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
bash <(curl -fsSL https://raw.githubusercontent.com/
|
|
33
|
+
bash <(curl -fsSL https://raw.githubusercontent.com/huggingface/mlclaw/main/mlclaw.sh)
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
On Windows:
|
|
37
37
|
|
|
38
38
|
```powershell
|
|
39
|
-
irm https://raw.githubusercontent.com/
|
|
39
|
+
irm https://raw.githubusercontent.com/huggingface/mlclaw/main/mlclaw.ps1 | iex
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
You need a Hugging Face account and a token available through `HF_TOKEN`,
|
|
@@ -386,6 +386,12 @@ Local gateways pass the broad credential only to the trusted state-sync
|
|
|
386
386
|
supervisor for bucket I/O and to the trusted MCP integration proxy through a
|
|
387
387
|
protected token file. Neither path passes it to OpenClaw.
|
|
388
388
|
|
|
389
|
+
## Related
|
|
390
|
+
|
|
391
|
+
[ml-intern](https://github.com/huggingface/ml-intern) is Hugging Face's
|
|
392
|
+
open-source ML engineer for reading papers, training models, and shipping
|
|
393
|
+
models.
|
|
394
|
+
|
|
389
395
|
## Costs
|
|
390
396
|
|
|
391
397
|
- Browser Space gateway: `cpu-basic` is enough for the default browser gateway.
|
|
@@ -9481,6 +9481,16 @@ var CONTROL_BRANDING_SCRIPT = `(function () {
|
|
|
9481
9481
|
frame.contentWindow.postMessage({ type: "brokerkit.operator-ui.invalidate", version: 1 }, "*");
|
|
9482
9482
|
}
|
|
9483
9483
|
}
|
|
9484
|
+
var lastRebootstrapAt = 0;
|
|
9485
|
+
function rebootstrapFrame() {
|
|
9486
|
+
var now = Date.now();
|
|
9487
|
+
if (now - lastRebootstrapAt < 30000) return;
|
|
9488
|
+
lastRebootstrapAt = now;
|
|
9489
|
+
frame.removeAttribute("src");
|
|
9490
|
+
if (!popover.hidden) {
|
|
9491
|
+
window.setTimeout(function () { frame.setAttribute("src", frame.getAttribute("data-src")); }, 0);
|
|
9492
|
+
}
|
|
9493
|
+
}
|
|
9484
9494
|
function setOpen(open) {
|
|
9485
9495
|
popover.hidden = !open;
|
|
9486
9496
|
button.setAttribute("aria-expanded", open ? "true" : "false");
|
|
@@ -9499,6 +9509,17 @@ var CONTROL_BRANDING_SCRIPT = `(function () {
|
|
|
9499
9509
|
});
|
|
9500
9510
|
window.addEventListener("message", function (event) {
|
|
9501
9511
|
var data = event.data;
|
|
9512
|
+
if (
|
|
9513
|
+
event.source === frame.contentWindow &&
|
|
9514
|
+
data &&
|
|
9515
|
+
typeof data === "object" &&
|
|
9516
|
+
Object.keys(data).sort().join(",") === "type,version" &&
|
|
9517
|
+
data.type === "brokerkit.delegated-web.rebootstrap" &&
|
|
9518
|
+
data.version === 1
|
|
9519
|
+
) {
|
|
9520
|
+
rebootstrapFrame();
|
|
9521
|
+
return;
|
|
9522
|
+
}
|
|
9502
9523
|
if (
|
|
9503
9524
|
event.source !== frame.contentWindow ||
|
|
9504
9525
|
!data ||
|
package/dist/mlclaw.mjs
CHANGED
|
@@ -15375,8 +15375,8 @@ import fs12 from "node:fs";
|
|
|
15375
15375
|
import path13 from "node:path";
|
|
15376
15376
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
15377
15377
|
var DEFAULT_OPENCLAW_VERSION = "2026.7.1";
|
|
15378
|
-
var DEFAULT_BROKERKIT_PLUGIN_VERSION = "0.3.
|
|
15379
|
-
var DEFAULT_BROKERKIT_VERSION = "hf-broker/v0.
|
|
15378
|
+
var DEFAULT_BROKERKIT_PLUGIN_VERSION = "0.3.1";
|
|
15379
|
+
var DEFAULT_BROKERKIT_VERSION = "hf-broker/v0.4.0";
|
|
15380
15380
|
var DEFAULT_RUNTIME_IMAGE_REPOSITORY = "ghcr.io/osolmaz/mlclaw";
|
|
15381
15381
|
var PACKAGE_METADATA = readPackageMetadata();
|
|
15382
15382
|
var PACKAGE_VERSION = packageString("version", "unknown");
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mlclaw",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"config": {
|
|
6
6
|
"openclawVersion": "2026.7.1",
|
|
7
|
-
"brokerkitVersion": "hf-broker/v0.
|
|
8
|
-
"brokerkitPluginVersion": "0.3.
|
|
7
|
+
"brokerkitVersion": "hf-broker/v0.4.0",
|
|
8
|
+
"brokerkitPluginVersion": "0.3.1",
|
|
9
9
|
"runtimeImageRepository": "ghcr.io/osolmaz/mlclaw"
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"url": "https://github.com/
|
|
13
|
+
"url": "https://github.com/huggingface/mlclaw"
|
|
14
14
|
},
|
|
15
|
-
"homepage": "https://github.com/
|
|
15
|
+
"homepage": "https://github.com/huggingface/mlclaw#readme",
|
|
16
16
|
"bugs": {
|
|
17
|
-
"url": "https://github.com/
|
|
17
|
+
"url": "https://github.com/huggingface/mlclaw/issues"
|
|
18
18
|
},
|
|
19
19
|
"type": "module",
|
|
20
20
|
"bin": {
|