@evident-ai/cli 3.0.1-dev.e64ea09 → 3.0.1-dev.e9b1720
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 +2 -29
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1918,15 +1918,6 @@ var ChannelDriver = class {
|
|
|
1918
1918
|
* the row leaves the processing list, exactly like `dontRedispatch`.
|
|
1919
1919
|
*/
|
|
1920
1920
|
doneUndeliverable = /* @__PURE__ */ new Set();
|
|
1921
|
-
/**
|
|
1922
|
-
* "Already emitted `readopt_poll_unresolved` for this row" (#229). The b1 /
|
|
1923
|
-
* unreadable-status re-evaluate leaf leaves the row UN-tracked so it is re-read
|
|
1924
|
-
* every ~2s drain until the status map becomes readable — but the server-visible
|
|
1925
|
-
* signal is an OUTCOME, so it must fire at most ONCE per row, not once per drain
|
|
1926
|
-
* (Bugbot "Re-adopt signals flood every drain"). Cleared when the row leaves the
|
|
1927
|
-
* processing list, exactly like `dontRedispatch`/`doneUndeliverable`.
|
|
1928
|
-
*/
|
|
1929
|
-
readoptPollUnresolvedSignalled = /* @__PURE__ */ new Set();
|
|
1930
1921
|
/**
|
|
1931
1922
|
* "A null-id re-adopt re-dispatch is in flight, awaiting its read-back" (WI-5
|
|
1932
1923
|
* Task 5.4, High-2). Since we no longer send a caller-supplied id, a re-dispatch
|
|
@@ -2740,17 +2731,12 @@ var ChannelDriver = class {
|
|
|
2740
2731
|
*/
|
|
2741
2732
|
async readoptProcessing() {
|
|
2742
2733
|
const rows = await this.getProcessingMessages();
|
|
2743
|
-
if (this.dontRedispatch.size > 0 || this.doneUndeliverable.size > 0
|
|
2734
|
+
if (this.dontRedispatch.size > 0 || this.doneUndeliverable.size > 0) {
|
|
2744
2735
|
const stillProcessing = new Set(rows.map((r) => r.id));
|
|
2745
|
-
for (const id of [
|
|
2746
|
-
...this.dontRedispatch,
|
|
2747
|
-
...this.doneUndeliverable,
|
|
2748
|
-
...this.readoptPollUnresolvedSignalled
|
|
2749
|
-
]) {
|
|
2736
|
+
for (const id of [...this.dontRedispatch, ...this.doneUndeliverable]) {
|
|
2750
2737
|
if (!stillProcessing.has(id)) {
|
|
2751
2738
|
const cleared = this.dontRedispatch.delete(id);
|
|
2752
2739
|
const clearedUndeliverable = this.doneUndeliverable.delete(id);
|
|
2753
|
-
this.readoptPollUnresolvedSignalled.delete(id);
|
|
2754
2740
|
if (cleared || clearedUndeliverable) {
|
|
2755
2741
|
this.log({
|
|
2756
2742
|
level: "info",
|
|
@@ -2869,7 +2855,6 @@ var ChannelDriver = class {
|
|
|
2869
2855
|
conversation_id: row.conversation_id,
|
|
2870
2856
|
message_id: row.id
|
|
2871
2857
|
});
|
|
2872
|
-
void this.postSignal(row.conversation_id, row.id, "readopt_undeliverable");
|
|
2873
2858
|
return;
|
|
2874
2859
|
}
|
|
2875
2860
|
this.log({
|
|
@@ -2881,7 +2866,6 @@ var ChannelDriver = class {
|
|
|
2881
2866
|
return;
|
|
2882
2867
|
}
|
|
2883
2868
|
this.dontRedispatch.delete(row.id);
|
|
2884
|
-
void this.postSignal(row.conversation_id, row.id, "readopt_done");
|
|
2885
2869
|
return;
|
|
2886
2870
|
}
|
|
2887
2871
|
if (state === "failed") {
|
|
@@ -2904,7 +2888,6 @@ var ChannelDriver = class {
|
|
|
2904
2888
|
conversation_id: row.conversation_id,
|
|
2905
2889
|
message_id: row.id
|
|
2906
2890
|
});
|
|
2907
|
-
void this.postSignal(row.conversation_id, row.id, "readopt_undeliverable");
|
|
2908
2891
|
return;
|
|
2909
2892
|
}
|
|
2910
2893
|
this.log({
|
|
@@ -2916,7 +2899,6 @@ var ChannelDriver = class {
|
|
|
2916
2899
|
return;
|
|
2917
2900
|
}
|
|
2918
2901
|
this.dontRedispatch.delete(row.id);
|
|
2919
|
-
void this.postSignal(row.conversation_id, row.id, "readopt_failed");
|
|
2920
2902
|
return;
|
|
2921
2903
|
}
|
|
2922
2904
|
if (this.dontRedispatch.has(row.id)) {
|
|
@@ -2959,10 +2941,6 @@ var ChannelDriver = class {
|
|
|
2959
2941
|
conversation_id: row.conversation_id,
|
|
2960
2942
|
message_id: row.id
|
|
2961
2943
|
});
|
|
2962
|
-
if (!this.readoptPollUnresolvedSignalled.has(row.id)) {
|
|
2963
|
-
this.readoptPollUnresolvedSignalled.add(row.id);
|
|
2964
|
-
void this.postSignal(row.conversation_id, row.id, "readopt_poll_unresolved");
|
|
2965
|
-
}
|
|
2966
2944
|
return;
|
|
2967
2945
|
}
|
|
2968
2946
|
this.log({
|
|
@@ -3006,7 +2984,6 @@ var ChannelDriver = class {
|
|
|
3006
2984
|
conversation_id: row.conversation_id,
|
|
3007
2985
|
message_id: row.id
|
|
3008
2986
|
});
|
|
3009
|
-
void this.postSignal(row.conversation_id, row.id, "readopt_reattached");
|
|
3010
2987
|
return;
|
|
3011
2988
|
}
|
|
3012
2989
|
await this.forceReadoptRun(sessionId, row);
|
|
@@ -3059,7 +3036,6 @@ var ChannelDriver = class {
|
|
|
3059
3036
|
conversation_id: row.conversation_id,
|
|
3060
3037
|
message_id: row.id
|
|
3061
3038
|
});
|
|
3062
|
-
void this.postSignal(row.conversation_id, row.id, "readopt_window_elapsed");
|
|
3063
3039
|
return;
|
|
3064
3040
|
}
|
|
3065
3041
|
const options = {
|
|
@@ -3088,7 +3064,6 @@ var ChannelDriver = class {
|
|
|
3088
3064
|
conversation_id: row.conversation_id,
|
|
3089
3065
|
message_id: row.id
|
|
3090
3066
|
});
|
|
3091
|
-
void this.postSignal(row.conversation_id, row.id, "readopt_orphan_unsent");
|
|
3092
3067
|
return;
|
|
3093
3068
|
}
|
|
3094
3069
|
if (ocId === null) {
|
|
@@ -3099,7 +3074,6 @@ var ChannelDriver = class {
|
|
|
3099
3074
|
conversation_id: row.conversation_id,
|
|
3100
3075
|
message_id: row.id
|
|
3101
3076
|
});
|
|
3102
|
-
void this.postSignal(row.conversation_id, row.id, "readopt_orphan_unsent");
|
|
3103
3077
|
return;
|
|
3104
3078
|
}
|
|
3105
3079
|
const conv = this.convForRow(sessionId, row);
|
|
@@ -3109,7 +3083,6 @@ var ChannelDriver = class {
|
|
|
3109
3083
|
this.readopted.add(row.id);
|
|
3110
3084
|
this.awaitingReadopt.delete(row.id);
|
|
3111
3085
|
this.ensureWatcherRunning(sessionId);
|
|
3112
|
-
void this.postSignal(row.conversation_id, row.id, "readopt_redispatched");
|
|
3113
3086
|
}
|
|
3114
3087
|
/**
|
|
3115
3088
|
* True if `evidentMessageId` is already being driven — either in the
|