@luckydraw/cumulus 0.27.15 → 0.27.16

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.
@@ -3352,14 +3352,12 @@
3352
3352
  var filePath = addInput.value.trim();
3353
3353
  if (!filePath) return;
3354
3354
  connection &&
3355
- connection.send(
3356
- JSON.stringify({
3357
- type: 'include_add',
3358
- threadName: threadName,
3359
- filePath: filePath,
3360
- scope: currentScope,
3361
- })
3362
- );
3355
+ connection.send({
3356
+ type: 'include_add',
3357
+ threadName: threadName,
3358
+ filePath: filePath,
3359
+ scope: currentScope,
3360
+ });
3363
3361
  addInput.value = '';
3364
3362
  });
3365
3363
 
@@ -3383,7 +3381,7 @@
3383
3381
 
3384
3382
  // Request the list
3385
3383
  connection &&
3386
- connection.send(JSON.stringify({ type: 'include_list', threadName: threadName }));
3384
+ connection.send({ type: 'include_list', threadName: threadName });
3387
3385
  }
3388
3386
 
3389
3387
  function renderIncludeList(panel, threadName, files) {
@@ -3420,13 +3418,11 @@
3420
3418
  removeBtn.setAttribute('title', 'Remove');
3421
3419
  removeBtn.addEventListener('click', function () {
3422
3420
  connection &&
3423
- connection.send(
3424
- JSON.stringify({
3425
- type: 'include_remove',
3426
- threadName: threadName,
3427
- filePath: f.path,
3428
- })
3429
- );
3421
+ connection.send({
3422
+ type: 'include_remove',
3423
+ threadName: threadName,
3424
+ filePath: f.path,
3425
+ });
3430
3426
  });
3431
3427
  item.appendChild(removeBtn);
3432
3428
 
@@ -3472,7 +3468,7 @@
3472
3468
 
3473
3469
  // Request the turn list
3474
3470
  connection &&
3475
- connection.send(JSON.stringify({ type: 'revert_list', threadName: threadName }));
3471
+ connection.send({ type: 'revert_list', threadName: threadName });
3476
3472
  }
3477
3473
 
3478
3474
  function renderRevertList(panel, threadName, turns) {
@@ -3552,7 +3548,7 @@
3552
3548
  cancelBtn.addEventListener('click', function () {
3553
3549
  // Re-request list
3554
3550
  connection &&
3555
- connection.send(JSON.stringify({ type: 'revert_list', threadName: threadName }));
3551
+ connection.send({ type: 'revert_list', threadName: threadName });
3556
3552
  });
3557
3553
  actions.appendChild(cancelBtn);
3558
3554
 
@@ -3564,13 +3560,11 @@
3564
3560
  revertBtn.disabled = true;
3565
3561
  revertBtn.textContent = 'Reverting\u2026';
3566
3562
  connection &&
3567
- connection.send(
3568
- JSON.stringify({
3569
- type: 'revert_execute',
3570
- threadName: threadName,
3571
- targetMessageId: turn.userMessageId,
3572
- })
3573
- );
3563
+ connection.send({
3564
+ type: 'revert_execute',
3565
+ threadName: threadName,
3566
+ targetMessageId: turn.userMessageId,
3567
+ });
3574
3568
  });
3575
3569
  actions.appendChild(revertBtn);
3576
3570
 
@@ -3806,13 +3800,11 @@
3806
3800
  tState.historyLoaded = false;
3807
3801
  // Re-request history
3808
3802
  connection &&
3809
- connection.send(
3810
- JSON.stringify({
3811
- type: 'history',
3812
- threadName: data.threadName,
3813
- limit: 200,
3814
- })
3815
- );
3803
+ connection.send({
3804
+ type: 'history',
3805
+ threadName: data.threadName,
3806
+ limit: 200,
3807
+ });
3816
3808
  if (overlay) overlay.remove();
3817
3809
  } else {
3818
3810
  // Show error in overlay
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luckydraw/cumulus",
3
- "version": "0.27.15",
3
+ "version": "0.27.16",
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",