@luckydraw/cumulus 0.27.24 → 0.27.26

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.
@@ -1235,10 +1235,10 @@
1235
1235
  });
1236
1236
 
1237
1237
  // Phase 2: Escape HTML in the non-code portions
1238
- // We need to escape line by line between tokens
1239
- var parts = processed.split(/(\x00CODEBLOCK_\d+\x00)/);
1238
+ // We need to escape line by line between tokens, preserving both codeblock and blex tokens
1239
+ var parts = processed.split(/(\x00CODEBLOCK_\d+\x00|\x00BLEX_\d+\x00)/);
1240
1240
  var escapedParts = parts.map(function (part) {
1241
- if (/^\x00CODEBLOCK_\d+\x00$/.test(part)) return part; // keep token as-is
1241
+ if (/^\x00(?:CODEBLOCK|BLEX)_\d+\x00$/.test(part)) return part; // keep token as-is
1242
1242
  return escapeHtml(part);
1243
1243
  });
1244
1244
  var html = escapedParts.join('');
@@ -1564,7 +1564,7 @@
1564
1564
  reconnectDelay = 1000;
1565
1565
  ws.send(JSON.stringify({ type: 'auth', apiKey: apiKey }));
1566
1566
  if (!skipHistory) {
1567
- ws.send(JSON.stringify({ type: 'history', threadName: sessionId, limit: 50 }));
1567
+ ws.send(JSON.stringify({ type: 'history', threadName: sessionId, limit: 200 }));
1568
1568
  }
1569
1569
  };
1570
1570
 
@@ -2167,7 +2167,7 @@
2167
2167
  renderMessages();
2168
2168
  // Reload history
2169
2169
  if (connection)
2170
- connection.send({ type: 'history', threadName: sessionId, limit: 50 });
2170
+ connection.send({ type: 'history', threadName: sessionId, limit: 200 });
2171
2171
  }
2172
2172
  embeddedStreamTimer = null;
2173
2173
  }, EMBEDDED_STREAM_TIMEOUT);
@@ -2442,7 +2442,7 @@
2442
2442
  // Reload history to get the real response if server completed
2443
2443
  s.historyLoaded = false;
2444
2444
  if (connection) {
2445
- connection.send({ type: 'history', threadName: threadName, limit: 50 });
2445
+ connection.send({ type: 'history', threadName: threadName, limit: 200 });
2446
2446
  }
2447
2447
  refreshThreadPanel(threadName);
2448
2448
  }
@@ -2961,7 +2961,7 @@
2961
2961
  var state = getThreadState(name);
2962
2962
  if (!state.historyLoaded && connection) {
2963
2963
  state.historyLoaded = true;
2964
- connection.send({ type: 'history', threadName: name, limit: 50 });
2964
+ connection.send({ type: 'history', threadName: name, limit: 200 });
2965
2965
  }
2966
2966
  }
2967
2967
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luckydraw/cumulus",
3
- "version": "0.27.24",
3
+ "version": "0.27.26",
4
4
  "description": "RLM-based CLI chat wrapper for Claude with external history context management",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",