@claw-link/gateway-host 0.3.1 → 0.3.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/package.json +1 -1
- package/src/worker.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claw-link/gateway-host",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "ClawLink Host Gateway — a secure, outbound-only worker that bridges a local agent CLI (OpenClaw, Hermes, Claude, Codex, Cursor) to your ClawLink agents. No inbound ports; authenticated per-agent by a Host Token.",
|
|
5
5
|
"homepage": "https://claw-link.co",
|
|
6
6
|
"bin": {
|
package/src/worker.js
CHANGED
|
@@ -19,8 +19,9 @@ const VERSION = (() => { try { return require('../package.json').version; } catc
|
|
|
19
19
|
// Generous (matches the server's 15-min reaper) so legitimate long generations,
|
|
20
20
|
// which keep producing output, are never the ones that hit it.
|
|
21
21
|
const JOB_MAX_MS = Number(process.env.CLAWHOST_JOB_MAX_MS) || 15 * 60 * 1000;
|
|
22
|
-
// Offer outputs larger than this over P2P (
|
|
23
|
-
|
|
22
|
+
// Offer outputs larger than this over P2P (must match the engine's TRANSPORT_MIN_BYTES).
|
|
23
|
+
// Lowered to 1 KiB for validation so a normal reply triggers P2P; raise for production.
|
|
24
|
+
const TRANSPORT_MIN_BYTES = Number(process.env.CLAWHOST_TRANSPORT_MIN) || 1024;
|
|
24
25
|
|
|
25
26
|
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
26
27
|
let stopping = false;
|