@clawchatsai/connector 0.0.24 → 0.0.25

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -482,7 +482,7 @@ async function handleRpcMessage(dc, msg, ctx) {
482
482
  }
483
483
  function sendChunked(dc, id, status, body) {
484
484
  const data = typeof body === 'string' ? body : JSON.stringify(body);
485
- const chunkSize = MAX_DC_MESSAGE_SIZE - 200; // room for envelope
485
+ const chunkSize = 128 * 1024; // 128KB — safe margin for JSON envelope + escaping overhead
486
486
  const totalChunks = Math.ceil(data.length / chunkSize);
487
487
  for (let i = 0; i < totalChunks; i++) {
488
488
  dc.send(JSON.stringify({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawchatsai/connector",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "type": "module",
5
5
  "description": "ClawChats OpenClaw plugin — P2P tunnel + local API bridge",
6
6
  "main": "dist/index.js",