@rallycry/conveyor-agent 7.2.1 → 7.2.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.
|
@@ -5505,6 +5505,9 @@ var QueryBridge = class {
|
|
|
5505
5505
|
get isDiscoveryCompleted() {
|
|
5506
5506
|
return this._discoveryCompleted;
|
|
5507
5507
|
}
|
|
5508
|
+
set isDiscoveryCompleted(val) {
|
|
5509
|
+
this._discoveryCompleted = val;
|
|
5510
|
+
}
|
|
5508
5511
|
get isParentTask() {
|
|
5509
5512
|
return this._isParentTask;
|
|
5510
5513
|
}
|
|
@@ -5804,14 +5807,21 @@ var SessionRunner = class _SessionRunner {
|
|
|
5804
5807
|
await this.run();
|
|
5805
5808
|
}
|
|
5806
5809
|
// ── Core loop ──────────────────────────────────────────────────────
|
|
5810
|
+
// oxlint-disable-next-line complexity -- dormant idle paths add branches but are tightly coupled to the loop
|
|
5807
5811
|
async coreLoop() {
|
|
5808
5812
|
while (!this.stopped) {
|
|
5809
5813
|
if (this.completedThisTurn) {
|
|
5810
5814
|
process.stderr.write(
|
|
5811
|
-
"[conveyor-agent] Completed \u2014
|
|
5815
|
+
"[conveyor-agent] Completed \u2014 entering dormant idle (staying connected)\n"
|
|
5812
5816
|
);
|
|
5813
|
-
this.
|
|
5814
|
-
|
|
5817
|
+
this.pendingMessages.length = 0;
|
|
5818
|
+
if (this._state !== "idle") await this.setState("idle");
|
|
5819
|
+
const dormantMsg = await this.waitForMessage();
|
|
5820
|
+
if (!dormantMsg) break;
|
|
5821
|
+
process.stderr.write("[conveyor-agent] Received message while dormant, resuming\n");
|
|
5822
|
+
this.completedThisTurn = false;
|
|
5823
|
+
this.pendingMessages.unshift(dormantMsg);
|
|
5824
|
+
continue;
|
|
5815
5825
|
}
|
|
5816
5826
|
if (this._state === "idle") {
|
|
5817
5827
|
this.lifecycle.startIdleTimer();
|
|
@@ -5834,10 +5844,19 @@ var SessionRunner = class _SessionRunner {
|
|
|
5834
5844
|
await this.executeQuery(msg.content);
|
|
5835
5845
|
if (this.queryBridge?.isDiscoveryCompleted) {
|
|
5836
5846
|
process.stderr.write(
|
|
5837
|
-
"[conveyor-agent] Discovery completed
|
|
5847
|
+
"[conveyor-agent] Discovery completed \u2014 entering dormant idle (staying connected)\n"
|
|
5838
5848
|
);
|
|
5839
|
-
this.
|
|
5840
|
-
|
|
5849
|
+
this.pendingMessages.length = 0;
|
|
5850
|
+
if (this._state !== "idle") await this.setState("idle");
|
|
5851
|
+
const discoveryMsg = await this.waitForMessage();
|
|
5852
|
+
if (!discoveryMsg) break;
|
|
5853
|
+
process.stderr.write(
|
|
5854
|
+
"[conveyor-agent] Received message while discovery-dormant, resuming\n"
|
|
5855
|
+
);
|
|
5856
|
+
this.queryBridge.isDiscoveryCompleted = false;
|
|
5857
|
+
this.completedThisTurn = false;
|
|
5858
|
+
this.pendingMessages.unshift(discoveryMsg);
|
|
5859
|
+
continue;
|
|
5841
5860
|
}
|
|
5842
5861
|
if (this.stopped) break;
|
|
5843
5862
|
if (this.interrupted) {
|
|
@@ -7683,4 +7702,4 @@ export {
|
|
|
7683
7702
|
loadForwardPorts,
|
|
7684
7703
|
loadConveyorConfig
|
|
7685
7704
|
};
|
|
7686
|
-
//# sourceMappingURL=chunk-
|
|
7705
|
+
//# sourceMappingURL=chunk-5HTCDNOK.js.map
|