ragent-cli 1.11.12 → 1.11.13
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/dist/index.js +23 -4
- package/dist/sbom.json +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var require_package = __commonJS({
|
|
|
31
31
|
"package.json"(exports2, module2) {
|
|
32
32
|
module2.exports = {
|
|
33
33
|
name: "ragent-cli",
|
|
34
|
-
version: "1.11.
|
|
34
|
+
version: "1.11.13",
|
|
35
35
|
description: "CLI agent for rAgent Live \u2014 browser-first terminal control plane for AI coding agents",
|
|
36
36
|
main: "dist/index.js",
|
|
37
37
|
bin: {
|
|
@@ -3538,6 +3538,7 @@ function discoverTranscriptFileImpl(sessionId, agentType) {
|
|
|
3538
3538
|
var MAX_PARTIAL_BUFFER = 256 * 1024;
|
|
3539
3539
|
var MAX_REPLAY_TURNS = 1e3;
|
|
3540
3540
|
var POLL_INTERVAL_MS = 800;
|
|
3541
|
+
var DOC_READ_DEBOUNCE_MS = 200;
|
|
3541
3542
|
var REDISCOVERY_INTERVAL_MS = 5e3;
|
|
3542
3543
|
var ENABLE_RETRY_DELAYS_MS = [1e3, 2e3, 5e3];
|
|
3543
3544
|
var TranscriptWatcher = class {
|
|
@@ -3554,6 +3555,7 @@ var TranscriptWatcher = class {
|
|
|
3554
3555
|
snapshot;
|
|
3555
3556
|
watcher = null;
|
|
3556
3557
|
pollTimer = null;
|
|
3558
|
+
docReadDebounceTimer = null;
|
|
3557
3559
|
stopped = false;
|
|
3558
3560
|
subscriberCount = 0;
|
|
3559
3561
|
documentFingerprint = "";
|
|
@@ -3608,6 +3610,10 @@ var TranscriptWatcher = class {
|
|
|
3608
3610
|
clearInterval(this.pollTimer);
|
|
3609
3611
|
this.pollTimer = null;
|
|
3610
3612
|
}
|
|
3613
|
+
if (this.docReadDebounceTimer) {
|
|
3614
|
+
clearTimeout(this.docReadDebounceTimer);
|
|
3615
|
+
this.docReadDebounceTimer = null;
|
|
3616
|
+
}
|
|
3611
3617
|
}
|
|
3612
3618
|
/** Get accumulated turns for replay (up to MAX_REPLAY_TURNS). */
|
|
3613
3619
|
getReplayTurns(fromSeq) {
|
|
@@ -3666,7 +3672,16 @@ var TranscriptWatcher = class {
|
|
|
3666
3672
|
startWatching() {
|
|
3667
3673
|
try {
|
|
3668
3674
|
this.watcher = fs2.watch(this.filePath, () => {
|
|
3669
|
-
if (
|
|
3675
|
+
if (this.stopped) return;
|
|
3676
|
+
if (this.parser.parseDocument) {
|
|
3677
|
+
if (this.docReadDebounceTimer) return;
|
|
3678
|
+
this.docReadDebounceTimer = setTimeout(() => {
|
|
3679
|
+
this.docReadDebounceTimer = null;
|
|
3680
|
+
if (!this.stopped) this.readNewData();
|
|
3681
|
+
}, DOC_READ_DEBOUNCE_MS);
|
|
3682
|
+
return;
|
|
3683
|
+
}
|
|
3684
|
+
this.readNewData();
|
|
3670
3685
|
});
|
|
3671
3686
|
this.watcher.on("error", () => {
|
|
3672
3687
|
this.watcher?.close();
|
|
@@ -3721,16 +3736,20 @@ var TranscriptWatcher = class {
|
|
|
3721
3736
|
}
|
|
3722
3737
|
}
|
|
3723
3738
|
readDocument(force) {
|
|
3724
|
-
let content;
|
|
3725
3739
|
let stat;
|
|
3726
3740
|
try {
|
|
3727
3741
|
stat = fs2.statSync(this.filePath);
|
|
3728
|
-
content = fs2.readFileSync(this.filePath, "utf-8");
|
|
3729
3742
|
} catch {
|
|
3730
3743
|
return;
|
|
3731
3744
|
}
|
|
3732
3745
|
const fingerprint = `${stat.mtimeMs}:${stat.size}`;
|
|
3733
3746
|
if (!force && fingerprint === this.documentFingerprint) return;
|
|
3747
|
+
let content;
|
|
3748
|
+
try {
|
|
3749
|
+
content = fs2.readFileSync(this.filePath, "utf-8");
|
|
3750
|
+
} catch {
|
|
3751
|
+
return;
|
|
3752
|
+
}
|
|
3734
3753
|
this.documentFingerprint = fingerprint;
|
|
3735
3754
|
const parsedTurns = this.parser.parseDocument?.(content) ?? [];
|
|
3736
3755
|
this.seq++;
|
package/dist/sbom.json
CHANGED
|
@@ -1299,8 +1299,8 @@
|
|
|
1299
1299
|
{
|
|
1300
1300
|
"type": "library",
|
|
1301
1301
|
"name": "ragent-cli",
|
|
1302
|
-
"version": "1.11.
|
|
1303
|
-
"bom-ref": "ragent-live|ragent-cli@1.11.
|
|
1302
|
+
"version": "1.11.13",
|
|
1303
|
+
"bom-ref": "ragent-live|ragent-cli@1.11.13",
|
|
1304
1304
|
"author": "Intellimetrics",
|
|
1305
1305
|
"description": "CLI agent for rAgent Live — browser-first terminal control plane for AI coding agents",
|
|
1306
1306
|
"licenses": [
|
|
@@ -1311,7 +1311,7 @@
|
|
|
1311
1311
|
}
|
|
1312
1312
|
}
|
|
1313
1313
|
],
|
|
1314
|
-
"purl": "pkg:npm/ragent-cli@1.11.
|
|
1314
|
+
"purl": "pkg:npm/ragent-cli@1.11.13",
|
|
1315
1315
|
"externalReferences": [
|
|
1316
1316
|
{
|
|
1317
1317
|
"url": "https://github.com/chadlindell/ragent-live/issues",
|
|
@@ -1436,7 +1436,7 @@
|
|
|
1436
1436
|
"ragent-live|@emnapi/wasi-threads@1.2.1",
|
|
1437
1437
|
"ragent-live|@pkgjs/parseargs@0.11.0",
|
|
1438
1438
|
"ragent-live|@tybys/wasm-util@0.10.1",
|
|
1439
|
-
"ragent-live|ragent-cli@1.11.
|
|
1439
|
+
"ragent-live|ragent-cli@1.11.13"
|
|
1440
1440
|
]
|
|
1441
1441
|
},
|
|
1442
1442
|
{
|
|
@@ -1584,7 +1584,7 @@
|
|
|
1584
1584
|
]
|
|
1585
1585
|
},
|
|
1586
1586
|
{
|
|
1587
|
-
"ref": "ragent-live|ragent-cli@1.11.
|
|
1587
|
+
"ref": "ragent-live|ragent-cli@1.11.13",
|
|
1588
1588
|
"dependsOn": [
|
|
1589
1589
|
"ragent-live|@azure/web-pubsub-client@1.0.4",
|
|
1590
1590
|
"ragent-live|@openai/codex-sdk@0.130.0",
|