@ouro.bot/cli 0.1.0-alpha.1373 → 0.1.0-alpha.1375
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/changelog.json +12 -0
- package/deploy/unraid/sanctuary.ouro/bundle-meta.json +1 -1
- package/deploy/unraid/sanctuary.xml +1 -1
- package/dist/heart/core.js +51 -19
- package/dist/heart/providers/anthropic.js +19 -2
- package/dist/heart/turn-execution-lease.js +52 -4
- package/dist/repertoire/tool-catalog.js +97 -3
- package/dist/senses/bluebubbles/active-turns.js +27 -2
- package/dist/senses/bluebubbles/entry.js +4 -15
- package/dist/senses/bluebubbles/index.js +297 -52
- package/dist/senses/bluebubbles/latest-turn.js +33 -2
- package/dist/senses/pipeline.js +1 -1
- package/dist/senses/sense-shutdown.js +72 -0
- package/dist/senses/shepherd-entry.js +8 -9
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/repertoire/deferred-tools.js +0 -129
|
@@ -34,7 +34,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.BB_IN_FLIGHT_MAX_AGE_MS = exports.BLUEBUBBLES_SEMANTIC_GENERATION_RETENTION_MS = void 0;
|
|
37
|
+
exports.drainBlueBubblesTurns = drainBlueBubblesTurns;
|
|
37
38
|
exports.pruneBlueBubblesSemanticObservationGenerations = pruneBlueBubblesSemanticObservationGenerations;
|
|
39
|
+
exports.auditBlueBubblesObservationOwnership = auditBlueBubblesObservationOwnership;
|
|
38
40
|
exports.tokenizeForDedupe = tokenizeForDedupe;
|
|
39
41
|
exports.jaccardSimilarity = jaccardSimilarity;
|
|
40
42
|
exports.isBlueBubblesMessageInFlight = isBlueBubblesMessageInFlight;
|
|
@@ -55,6 +57,7 @@ exports.recoverMissedBlueBubblesMessages = recoverMissedBlueBubblesMessages;
|
|
|
55
57
|
exports.createBlueBubblesWebhookHandler = createBlueBubblesWebhookHandler;
|
|
56
58
|
exports.sendProactiveBlueBubblesMessageToSession = sendProactiveBlueBubblesMessageToSession;
|
|
57
59
|
exports.drainAndSendPendingBlueBubbles = drainAndSendPendingBlueBubbles;
|
|
60
|
+
exports.stopBlueBubblesApp = stopBlueBubblesApp;
|
|
58
61
|
exports.startBlueBubblesApp = startBlueBubblesApp;
|
|
59
62
|
const fs = __importStar(require("node:fs"));
|
|
60
63
|
const http = __importStar(require("node:http"));
|
|
@@ -100,7 +103,22 @@ const context_packet_1 = require("./context-packet");
|
|
|
100
103
|
const autonomy_budget_1 = require("../../heart/autonomy-budget");
|
|
101
104
|
const outbound_state_1 = require("./outbound-state");
|
|
102
105
|
const bbFailoverStates = new Map();
|
|
106
|
+
const inFlightBlueBubblesWork = new Set();
|
|
107
|
+
function trackBlueBubblesTurn(work) {
|
|
108
|
+
inFlightBlueBubblesWork.add(work);
|
|
109
|
+
const forget = () => { inFlightBlueBubblesWork.delete(work); };
|
|
110
|
+
void work.then(forget, forget);
|
|
111
|
+
}
|
|
112
|
+
/** Resolves once every queued webhook turn and recovery pass this process started has ended. */
|
|
113
|
+
async function drainBlueBubblesTurns() {
|
|
114
|
+
const work = [...inFlightBlueBubblesWork];
|
|
115
|
+
await Promise.allSettled(work);
|
|
116
|
+
return work.length;
|
|
117
|
+
}
|
|
103
118
|
const activeSemanticHandlingSlots = new Map();
|
|
119
|
+
// Turns that timed out without a reply, per capture, in this process. Each one
|
|
120
|
+
// stays pending for replay until it reaches the delivery attempt cap.
|
|
121
|
+
const unfinishedTurnAttempts = new Map();
|
|
104
122
|
const semanticObservationGenerations = new Map();
|
|
105
123
|
const BLUEBUBBLES_VISIBLE_OUTBOUND_STATUSES = new Set([
|
|
106
124
|
"accepted",
|
|
@@ -114,11 +132,19 @@ const BLUEBUBBLES_REPLY_DELIVERY_MAX_ATTEMPTS = 3;
|
|
|
114
132
|
// A timed-out send may still land, so wait before checking the chat and retrying.
|
|
115
133
|
const BLUEBUBBLES_REPLY_RETRY_DELAY_MS = 10 * 60_000;
|
|
116
134
|
exports.BLUEBUBBLES_SEMANTIC_GENERATION_RETENTION_MS = 15 * 60_000;
|
|
117
|
-
|
|
135
|
+
/**
|
|
136
|
+
* A retained generation fences older replies in its chat only while its capture
|
|
137
|
+
* still waits for recovery. Once the capture has an outcome (or after the
|
|
138
|
+
* retention window), nothing owns the fence, so release it.
|
|
139
|
+
*/
|
|
140
|
+
function pruneBlueBubblesSemanticObservationGenerations(nowMs = Date.now(), pendingKeyHashes) {
|
|
118
141
|
let pruned = 0;
|
|
119
142
|
for (const [keyHash, generation] of semanticObservationGenerations) {
|
|
120
|
-
if (generation.retainedAtMs === null
|
|
121
|
-
|
|
143
|
+
if (generation.retainedAtMs === null)
|
|
144
|
+
continue;
|
|
145
|
+
const expired = nowMs - generation.retainedAtMs >= exports.BLUEBUBBLES_SEMANTIC_GENERATION_RETENTION_MS;
|
|
146
|
+
const resolved = pendingKeyHashes !== undefined && !pendingKeyHashes.has(keyHash);
|
|
147
|
+
if (!expired && !resolved)
|
|
122
148
|
continue;
|
|
123
149
|
(0, latest_turn_1.clearPending)(generation.reservation);
|
|
124
150
|
semanticObservationGenerations.delete(keyHash);
|
|
@@ -126,6 +152,69 @@ function pruneBlueBubblesSemanticObservationGenerations(nowMs = Date.now()) {
|
|
|
126
152
|
}
|
|
127
153
|
return pruned;
|
|
128
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* Owns the observation reservations one call makes. Every reservation is
|
|
157
|
+
* settled when the scope closes unless a live semantic generation has taken it
|
|
158
|
+
* over, so no code path can leave a fence behind by returning or throwing early.
|
|
159
|
+
*/
|
|
160
|
+
class BlueBubblesObservationScope {
|
|
161
|
+
owned = [];
|
|
162
|
+
constructor() {
|
|
163
|
+
openObservationScopes.add(this);
|
|
164
|
+
}
|
|
165
|
+
own(reservation) {
|
|
166
|
+
this.owned.push(reservation);
|
|
167
|
+
return reservation;
|
|
168
|
+
}
|
|
169
|
+
owns(reservation) {
|
|
170
|
+
return this.owned.includes(reservation);
|
|
171
|
+
}
|
|
172
|
+
close() {
|
|
173
|
+
openObservationScopes.delete(this);
|
|
174
|
+
for (const reservation of this.owned.splice(0)) {
|
|
175
|
+
if (!isGenerationReservation(reservation))
|
|
176
|
+
(0, latest_turn_1.clearPending)(reservation);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
const openObservationScopes = new Set();
|
|
181
|
+
/**
|
|
182
|
+
* Runs `work` with a scope that settles its reservations once `work` ends.
|
|
183
|
+
* Returns `work`'s own promise so callers see no extra await.
|
|
184
|
+
*/
|
|
185
|
+
function withObservationScope(work) {
|
|
186
|
+
const scope = new BlueBubblesObservationScope();
|
|
187
|
+
const running = work(scope);
|
|
188
|
+
const close = () => scope.close();
|
|
189
|
+
void running.then(close, close);
|
|
190
|
+
return running;
|
|
191
|
+
}
|
|
192
|
+
function isGenerationReservation(reservation) {
|
|
193
|
+
for (const generation of semanticObservationGenerations.values()) {
|
|
194
|
+
if (generation.reservation === reservation)
|
|
195
|
+
return true;
|
|
196
|
+
}
|
|
197
|
+
return false;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Test and diagnostics audit: pending observations that nothing owns. A
|
|
201
|
+
* reservation is owned while its scope is open, or while it is the reservation
|
|
202
|
+
* of a generation that is in flight or whose capture still waits for recovery.
|
|
203
|
+
*/
|
|
204
|
+
function auditBlueBubblesObservationOwnership(pendingKeyHashes) {
|
|
205
|
+
const owners = new Map();
|
|
206
|
+
for (const [keyHash, generation] of semanticObservationGenerations) {
|
|
207
|
+
owners.set(generation.reservation, keyHash);
|
|
208
|
+
}
|
|
209
|
+
return (0, latest_turn_1.listPendingObservationsForAudit)().filter((reservation) => {
|
|
210
|
+
if ([...openObservationScopes].some((scope) => scope.owns(reservation)))
|
|
211
|
+
return false;
|
|
212
|
+
const keyHash = owners.get(reservation);
|
|
213
|
+
if (keyHash === undefined)
|
|
214
|
+
return true;
|
|
215
|
+
return !activeSemanticHandlingSlots.has(keyHash) && !pendingKeyHashes.has(keyHash);
|
|
216
|
+
});
|
|
217
|
+
}
|
|
129
218
|
function adoptBlueBubblesSemanticObservation(keyHash, observedReservation, activate) {
|
|
130
219
|
pruneBlueBubblesSemanticObservationGenerations();
|
|
131
220
|
const existing = semanticObservationGenerations.get(keyHash);
|
|
@@ -158,6 +247,7 @@ function suspendBlueBubblesSemanticObservation(generation) {
|
|
|
158
247
|
function completeBlueBubblesSemanticObservation(keyHash, generation) {
|
|
159
248
|
(0, latest_turn_1.clearPending)(generation.reservation);
|
|
160
249
|
semanticObservationGenerations.delete(keyHash);
|
|
250
|
+
unfinishedTurnAttempts.delete(keyHash);
|
|
161
251
|
}
|
|
162
252
|
async function acquireBlueBubblesSemanticHandlingSlot(keyHash, generation) {
|
|
163
253
|
const active = activeSemanticHandlingSlots.get(keyHash);
|
|
@@ -1062,12 +1152,15 @@ function createBlueBubblesCallbacks(client, chat, replyTarget, isGroupChat, onVi
|
|
|
1062
1152
|
}
|
|
1063
1153
|
if (!await canRunOutbound())
|
|
1064
1154
|
return;
|
|
1155
|
+
// Count the message as seen once it is handed to the transport: a send
|
|
1156
|
+
// still in flight, or one that timed out, may reach the friend anyway, and
|
|
1157
|
+
// a turn that ends now must not be replayed into repeating it.
|
|
1158
|
+
recordVisibleActivity();
|
|
1065
1159
|
await client.sendText({
|
|
1066
1160
|
chat,
|
|
1067
1161
|
text: trimmed,
|
|
1068
1162
|
replyToMessageGuid: replyTarget.getReplyToMessageGuid(),
|
|
1069
1163
|
});
|
|
1070
|
-
recordVisibleActivity();
|
|
1071
1164
|
// Note: do NOT call client.setTyping(chat, false) here — the agent is
|
|
1072
1165
|
// still mid-turn, so the typing indicator stays ACTIVE.
|
|
1073
1166
|
(0, runtime_1.emitNervesEvent)({
|
|
@@ -1502,6 +1595,54 @@ function promoteAcceptedBlueBubblesAncillaryState(input) {
|
|
|
1502
1595
|
function hasObservedBlueBubblesDirection(event) {
|
|
1503
1596
|
return typeof event.fromMe === "boolean";
|
|
1504
1597
|
}
|
|
1598
|
+
/**
|
|
1599
|
+
* Waits for permission to send. After a minute it marks the live turn as
|
|
1600
|
+
* stalled, so `ouro status` reports it, and clears the mark once it resumes.
|
|
1601
|
+
*/
|
|
1602
|
+
async function awaitBlueBubblesDeliveryAdmission(agentName, turnId, event, capability, signal) {
|
|
1603
|
+
const waitingSince = Date.now();
|
|
1604
|
+
let stalled = false;
|
|
1605
|
+
const stalledTimer = setTimeout(() => {
|
|
1606
|
+
stalled = true;
|
|
1607
|
+
(0, active_turns_1.noteBlueBubblesActiveTurnAdmissionWait)(agentName, turnId, new Date(waitingSince).toISOString());
|
|
1608
|
+
(0, runtime_1.emitNervesEvent)({
|
|
1609
|
+
level: "warn",
|
|
1610
|
+
component: "senses",
|
|
1611
|
+
event: "senses.bluebubbles_delivery_admission_stalled",
|
|
1612
|
+
message: "bluebubbles reply has waited over a minute for permission to send",
|
|
1613
|
+
meta: {
|
|
1614
|
+
messageGuid: event.messageGuid,
|
|
1615
|
+
sessionKey: event.chat.sessionKey,
|
|
1616
|
+
waitedMs: Date.now() - waitingSince,
|
|
1617
|
+
},
|
|
1618
|
+
});
|
|
1619
|
+
}, active_turns_1.BLUEBUBBLES_DELIVERY_ADMISSION_STALLED_MS);
|
|
1620
|
+
/* v8 ignore next -- timer handles expose unref only in some runtimes @preserve */
|
|
1621
|
+
if (typeof stalledTimer.unref === "function") {
|
|
1622
|
+
stalledTimer.unref();
|
|
1623
|
+
}
|
|
1624
|
+
try {
|
|
1625
|
+
return await (0, latest_turn_1.awaitDeliveryAdmission)(capability, signal);
|
|
1626
|
+
}
|
|
1627
|
+
finally {
|
|
1628
|
+
clearTimeout(stalledTimer);
|
|
1629
|
+
if (stalled)
|
|
1630
|
+
(0, active_turns_1.noteBlueBubblesActiveTurnAdmissionWait)(agentName, turnId, null);
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
function emitBlueBubblesDeliveryAdmissionTimeout(event, source) {
|
|
1634
|
+
(0, runtime_1.emitNervesEvent)({
|
|
1635
|
+
level: "error",
|
|
1636
|
+
component: "senses",
|
|
1637
|
+
event: "senses.bluebubbles_delivery_admission_timeout",
|
|
1638
|
+
message: "bluebubbles turn gave up waiting for permission to send; the message stays pending for recovery",
|
|
1639
|
+
meta: {
|
|
1640
|
+
messageGuid: event.messageGuid,
|
|
1641
|
+
sessionKey: event.chat.sessionKey,
|
|
1642
|
+
source,
|
|
1643
|
+
},
|
|
1644
|
+
});
|
|
1645
|
+
}
|
|
1505
1646
|
async function handleBlueBubblesNormalizedEvent(event, resolvedDeps, source, options) {
|
|
1506
1647
|
options.lifecycleSignal?.throwIfAborted();
|
|
1507
1648
|
const client = resolvedDeps.createClient();
|
|
@@ -1609,14 +1750,33 @@ async function handleBlueBubblesNormalizedEvent(event, resolvedDeps, source, opt
|
|
|
1609
1750
|
content: buildInboundContent(event),
|
|
1610
1751
|
};
|
|
1611
1752
|
resolvedDeps.saveSession(sessPath, [...structuredClone(sessionMessages), structuredClone(userMessage)], existing?.lastUsage, existing?.state);
|
|
1612
|
-
|
|
1613
|
-
|
|
1753
|
+
const liveTurnId = (0, active_turns_1.beginBlueBubblesActiveTurn)(agentName, event);
|
|
1754
|
+
activeTurnId = liveTurnId;
|
|
1755
|
+
// Waiting for permission to send is bounded by the turn deadline and shutdown.
|
|
1756
|
+
const admissionDeadline = new AbortController();
|
|
1757
|
+
const admissionDeadlineTimer = setTimeout(() => {
|
|
1758
|
+
admissionDeadline.abort(new Error("delivery_admission_timeout"));
|
|
1759
|
+
}, options.timeoutMs ?? BLUEBUBBLES_TURN_TIMEOUT_MS);
|
|
1760
|
+
let admitted;
|
|
1761
|
+
try {
|
|
1762
|
+
admitted = await awaitBlueBubblesDeliveryAdmission(agentName, liveTurnId, event, options.latestTurnCapability, options.lifecycleSignal
|
|
1763
|
+
? AbortSignal.any([options.lifecycleSignal, admissionDeadline.signal])
|
|
1764
|
+
: admissionDeadline.signal);
|
|
1765
|
+
}
|
|
1766
|
+
catch (error) {
|
|
1767
|
+
if (options.lifecycleSignal?.aborted)
|
|
1768
|
+
throw error;
|
|
1769
|
+
emitBlueBubblesDeliveryAdmissionTimeout(event, source);
|
|
1770
|
+
return { handled: true, notifiedAgent: false, kind: event.kind, reason: "delivery_admission_timeout" };
|
|
1771
|
+
}
|
|
1772
|
+
finally {
|
|
1773
|
+
clearTimeout(admissionDeadlineTimer);
|
|
1774
|
+
}
|
|
1775
|
+
if (!admitted || !(0, latest_turn_1.isCurrent)(options.latestTurnCapability)) {
|
|
1614
1776
|
return { handled: true, notifiedAgent: false, kind: event.kind, reason: "superseded" };
|
|
1615
1777
|
}
|
|
1616
1778
|
options.lifecycleSignal?.throwIfAborted();
|
|
1617
1779
|
const mcpOwner = { agentName, agentRoot: (0, identity_1.getAgentRoot)(agentName) };
|
|
1618
|
-
const liveTurnId = (0, active_turns_1.beginBlueBubblesActiveTurn)(agentName, event);
|
|
1619
|
-
activeTurnId = liveTurnId;
|
|
1620
1780
|
const mcpManager = await (0, mcp_manager_1.getSharedMcpManager)(mcpOwner) ?? undefined;
|
|
1621
1781
|
if (event.chat.isGroup) {
|
|
1622
1782
|
await (0, friends_1.upsertGroupContextParticipants)({
|
|
@@ -1666,12 +1826,14 @@ async function handleBlueBubblesNormalizedEvent(event, resolvedDeps, source, opt
|
|
|
1666
1826
|
let finalTransportAccepted = false;
|
|
1667
1827
|
let spokeBeforeFinalTransport = false;
|
|
1668
1828
|
const outboundRuntimeConfig = (0, config_1.getBlueBubblesConfig)();
|
|
1829
|
+
// Aborted on the turn deadline, supersession and shutdown before the final send.
|
|
1830
|
+
const controller = new AbortController();
|
|
1669
1831
|
const callbacks = createBlueBubblesCallbacks(client, event.chat, replyTarget, event.chat.isGroup, () => {
|
|
1670
1832
|
spokeBeforeFinalTransport = true;
|
|
1671
1833
|
(0, active_turns_1.noteBlueBubblesActiveTurnVisibleActivity)(agentName, liveTurnId);
|
|
1672
1834
|
}, {
|
|
1673
1835
|
admitOutbound: async () => (!options.lifecycleSignal?.aborted
|
|
1674
|
-
&& await (
|
|
1836
|
+
&& await awaitBlueBubblesDeliveryAdmission(agentName, liveTurnId, event, options.latestTurnCapability, controller.signal)
|
|
1675
1837
|
&& !options.lifecycleSignal?.aborted),
|
|
1676
1838
|
isOutboundCurrent: () => (!options.lifecycleSignal?.aborted
|
|
1677
1839
|
&& (0, latest_turn_1.isCurrent)(options.latestTurnCapability)),
|
|
@@ -1692,7 +1854,6 @@ async function handleBlueBubblesNormalizedEvent(event, resolvedDeps, source, opt
|
|
|
1692
1854
|
},
|
|
1693
1855
|
},
|
|
1694
1856
|
});
|
|
1695
|
-
const controller = new AbortController();
|
|
1696
1857
|
const lifecycleSignal = options.lifecycleSignal;
|
|
1697
1858
|
let rejectLifecycle;
|
|
1698
1859
|
const lifecyclePromise = new Promise((_resolve, reject) => {
|
|
@@ -1720,7 +1881,15 @@ async function handleBlueBubblesNormalizedEvent(event, resolvedDeps, source, opt
|
|
|
1720
1881
|
if (!finalTransportInvoked) {
|
|
1721
1882
|
const reason = lifecycleSignal.reason;
|
|
1722
1883
|
controller.abort(reason);
|
|
1723
|
-
|
|
1884
|
+
// A turn the friend already heard from must not replay in the next
|
|
1885
|
+
// process; end it with a result so it is recorded instead.
|
|
1886
|
+
if (spokeBeforeFinalTransport && resolveTimeout) {
|
|
1887
|
+
options.publishSpokenTurnEnded("shutdown");
|
|
1888
|
+
resolveTimeout({ handled: true, notifiedAgent: false, kind: event.kind, reason: "shutdown", spokeBeforeEnd: true });
|
|
1889
|
+
}
|
|
1890
|
+
else {
|
|
1891
|
+
rejectLifecycle(reason);
|
|
1892
|
+
}
|
|
1724
1893
|
}
|
|
1725
1894
|
};
|
|
1726
1895
|
lifecycleSignal?.addEventListener("abort", cancelForShutdown, { once: true });
|
|
@@ -1783,11 +1952,14 @@ async function handleBlueBubblesNormalizedEvent(event, resolvedDeps, source, opt
|
|
|
1783
1952
|
const reason = new BlueBubblesRecoveryTurnTimeoutError(timeoutMs);
|
|
1784
1953
|
recoveryTimedOut = true;
|
|
1785
1954
|
if (!finalTransportInvoked) {
|
|
1955
|
+
if (spokeBeforeFinalTransport)
|
|
1956
|
+
options.publishSpokenTurnEnded("turn_timeout");
|
|
1786
1957
|
resolveTimeout?.({
|
|
1787
1958
|
handled: true,
|
|
1788
1959
|
notifiedAgent: false,
|
|
1789
1960
|
kind: event.kind,
|
|
1790
1961
|
reason: "turn_timeout",
|
|
1962
|
+
spokeBeforeEnd: spokeBeforeFinalTransport,
|
|
1791
1963
|
});
|
|
1792
1964
|
}
|
|
1793
1965
|
callbacks.cancelOutbound("turn_timeout");
|
|
@@ -1934,6 +2106,9 @@ async function handleBlueBubblesNormalizedEvent(event, resolvedDeps, source, opt
|
|
|
1934
2106
|
};
|
|
1935
2107
|
},
|
|
1936
2108
|
signal: controller.signal,
|
|
2109
|
+
// The deadline, supersession and shutdown handlers record this
|
|
2110
|
+
// turn's outcome, so a turn they cancel need not wait its turn.
|
|
2111
|
+
stopQueueWaitOnAbort: true,
|
|
1937
2112
|
runAgentOptions: {
|
|
1938
2113
|
mcpManager,
|
|
1939
2114
|
orientationFrame,
|
|
@@ -2014,6 +2189,10 @@ async function handleBlueBubblesNormalizedEvent(event, resolvedDeps, source, opt
|
|
|
2014
2189
|
delivery = await callbacks.flush({ signal: controller.signal });
|
|
2015
2190
|
}
|
|
2016
2191
|
catch (error) {
|
|
2192
|
+
// Aborted before the transport ran: the deadline, supersession or
|
|
2193
|
+
// shutdown handler already decided this turn's result.
|
|
2194
|
+
if (controller.signal.aborted && !finalTransportInvoked)
|
|
2195
|
+
throw error;
|
|
2017
2196
|
(0, runtime_1.emitNervesEvent)({
|
|
2018
2197
|
level: "warn",
|
|
2019
2198
|
component: "senses",
|
|
@@ -2561,6 +2740,21 @@ async function handleCapturedBlueBubblesSemanticEvent(captured, resolvedDeps, so
|
|
|
2561
2740
|
publishTerminalReceipt("message_completed");
|
|
2562
2741
|
acceptedReceiptPublished = true;
|
|
2563
2742
|
};
|
|
2743
|
+
let spokenTurnEndPublished = false;
|
|
2744
|
+
const publishSpokenTurnEnded = (reason) => {
|
|
2745
|
+
if (spokenTurnEndPublished)
|
|
2746
|
+
return;
|
|
2747
|
+
spokenTurnEndPublished = true;
|
|
2748
|
+
semanticHandlingCompleted = true;
|
|
2749
|
+
try {
|
|
2750
|
+
publishTerminalReceipt("message_observed", `${reason}_after_visible_speech`);
|
|
2751
|
+
/* v8 ignore start -- a failed write already kept the claim live and was logged, which also stops a replay @preserve */
|
|
2752
|
+
}
|
|
2753
|
+
catch {
|
|
2754
|
+
// Nothing more to do here.
|
|
2755
|
+
}
|
|
2756
|
+
/* v8 ignore stop */
|
|
2757
|
+
};
|
|
2564
2758
|
try {
|
|
2565
2759
|
options.lifecycleSignal?.throwIfAborted();
|
|
2566
2760
|
if (captured.capture.event.fromMe) {
|
|
@@ -2705,6 +2899,7 @@ async function handleCapturedBlueBubblesSemanticEvent(captured, resolvedDeps, so
|
|
|
2705
2899
|
orientationEvidence: captured.capture.event,
|
|
2706
2900
|
orientationConversationKind: canonicalEvent.chat.isGroup ? "group" : "one_to_one",
|
|
2707
2901
|
publishAcceptedReceipt,
|
|
2902
|
+
publishSpokenTurnEnded,
|
|
2708
2903
|
...(interaction?.mutationType === "reaction" ? { isReactionSignal: true } : {}),
|
|
2709
2904
|
};
|
|
2710
2905
|
let failedReplyVisible = false;
|
|
@@ -2745,6 +2940,35 @@ async function handleCapturedBlueBubblesSemanticEvent(captured, resolvedDeps, so
|
|
|
2745
2940
|
// Leave it pending so a later recovery pass retries it once the block lifts.
|
|
2746
2941
|
if (result.reason === "autonomy_budget_blocked")
|
|
2747
2942
|
return result;
|
|
2943
|
+
if (result.reason === "turn_timeout" || result.reason === "delivery_admission_timeout" || result.reason === "shutdown") {
|
|
2944
|
+
// The turn ended without a reply or a chosen silence. Leave it pending so
|
|
2945
|
+
// recovery replays it, unless the friend already saw part of it or it
|
|
2946
|
+
// keeps failing; then record a visible failure instead.
|
|
2947
|
+
const attempts = (unfinishedTurnAttempts.get(identity.keyHash) ?? 0) + 1;
|
|
2948
|
+
unfinishedTurnAttempts.set(identity.keyHash, attempts);
|
|
2949
|
+
if (!result.spokeBeforeEnd && attempts < BLUEBUBBLES_REPLY_DELIVERY_MAX_ATTEMPTS)
|
|
2950
|
+
return result;
|
|
2951
|
+
(0, runtime_1.emitNervesEvent)({
|
|
2952
|
+
level: "error",
|
|
2953
|
+
component: "senses",
|
|
2954
|
+
event: "senses.bluebubbles_turn_abandoned",
|
|
2955
|
+
message: "gave up replaying a bluebubbles turn that kept ending without a reply",
|
|
2956
|
+
meta: {
|
|
2957
|
+
messageGuid: captured.normalized.messageGuid,
|
|
2958
|
+
reason: result.reason,
|
|
2959
|
+
attempts,
|
|
2960
|
+
spokeBeforeEnd: result.spokeBeforeEnd === true,
|
|
2961
|
+
},
|
|
2962
|
+
});
|
|
2963
|
+
if (result.spokeBeforeEnd) {
|
|
2964
|
+
publishSpokenTurnEnded(result.reason);
|
|
2965
|
+
}
|
|
2966
|
+
else {
|
|
2967
|
+
publishTerminalReceipt("message_observed", `${result.reason}_retries_exhausted`);
|
|
2968
|
+
semanticHandlingCompleted = true;
|
|
2969
|
+
}
|
|
2970
|
+
return result;
|
|
2971
|
+
}
|
|
2748
2972
|
if (result.reason === "delivery_failed") {
|
|
2749
2973
|
// The reply never reached the chat. Leave the message pending so a later
|
|
2750
2974
|
// recovery pass sends it, until the per-message attempt cap is reached.
|
|
@@ -2825,22 +3049,20 @@ async function handleBlueBubblesEvent(payload, deps = {}) {
|
|
|
2825
3049
|
}
|
|
2826
3050
|
throw error;
|
|
2827
3051
|
}
|
|
2828
|
-
const
|
|
2829
|
-
let captured;
|
|
3052
|
+
const scope = new BlueBubblesObservationScope();
|
|
2830
3053
|
try {
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
3054
|
+
const observationReservation = scope.own(reserveBlueBubblesObservation(normalized));
|
|
3055
|
+
const captured = await captureBlueBubblesSemanticEvent(normalized, resolvedDeps, "webhook", observationReservation);
|
|
3056
|
+
if (captured.status === "audit_only") {
|
|
3057
|
+
return { handled: true, notifiedAgent: false, kind: normalized.kind, reason: "ignored" };
|
|
3058
|
+
}
|
|
3059
|
+
return await handleCapturedBlueBubblesSemanticEvent(captured, resolvedDeps, "webhook", {
|
|
3060
|
+
observationReservation,
|
|
3061
|
+
});
|
|
2836
3062
|
}
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
return { handled: true, notifiedAgent: false, kind: normalized.kind, reason: "ignored" };
|
|
3063
|
+
finally {
|
|
3064
|
+
scope.close();
|
|
2840
3065
|
}
|
|
2841
|
-
return handleCapturedBlueBubblesSemanticEvent(captured, resolvedDeps, "webhook", {
|
|
2842
|
-
observationReservation,
|
|
2843
|
-
});
|
|
2844
3066
|
}
|
|
2845
3067
|
function parseTimestampMs(value) {
|
|
2846
3068
|
if (!value)
|
|
@@ -2858,14 +3080,20 @@ function resolveBlueBubblesCatchUpSince(previousState, nowMs = Date.now()) {
|
|
|
2858
3080
|
}
|
|
2859
3081
|
return nowMs - BLUEBUBBLES_FIRST_CATCHUP_LOOKBACK_MS;
|
|
2860
3082
|
}
|
|
2861
|
-
function formatBlueBubblesRuntimeDetail(
|
|
3083
|
+
function formatBlueBubblesRuntimeDetail(pending, failed, active) {
|
|
3084
|
+
const queued = pending.pendingRecoveryCount;
|
|
3085
|
+
if (active.admissionStalledTurnCount > 0) {
|
|
3086
|
+
return `iMessage reply stalled; ${active.admissionStalledTurnCount} turn(s) waiting for permission to send for ${Math.round(active.oldestAdmissionWaitAgeMs / 1000)}s`;
|
|
3087
|
+
}
|
|
2862
3088
|
if (active.stalledTurnCount > 0) {
|
|
2863
3089
|
return `iMessage live turn appears stalled; ${active.stalledTurnCount} active turn(s) older than ${BLUEBUBBLES_LIVE_TURN_STALLED_MS}ms`;
|
|
2864
3090
|
}
|
|
2865
3091
|
if (active.activeTurnCount > 0)
|
|
2866
3092
|
return `upstream reachable; ${active.activeTurnCount} live turn(s) active`;
|
|
2867
|
-
if (queued > 0)
|
|
2868
|
-
|
|
3093
|
+
if (queued > 0) {
|
|
3094
|
+
/* v8 ignore next -- every capture this sense writes carries a parseable capturedAt @preserve */
|
|
3095
|
+
return `upstream reachable but iMessage is not caught up; ${queued} message(s) without a reply or recorded outcome, oldest ${Math.round((pending.oldestPendingRecoveryAgeMs ?? 0) / 1000)}s`;
|
|
3096
|
+
}
|
|
2869
3097
|
if (failed > 0)
|
|
2870
3098
|
return `${failed} message(s) unrecoverable this cycle; upstream ok`;
|
|
2871
3099
|
return "upstream reachable";
|
|
@@ -2891,7 +3119,7 @@ async function syncBlueBubblesRuntime(deps = {}, options = {}) {
|
|
|
2891
3119
|
// Allocate before the first health-probe await. Any live webhook accepted
|
|
2892
3120
|
// while that probe is pending must remain causally newer than this pass.
|
|
2893
3121
|
const catchUpObservationBatch = options.catchUpObservationBatch ?? (0, latest_turn_1.beginObservationBatch)(BLUEBUBBLES_CATCHUP_PAGE_SIZE * BLUEBUBBLES_CATCHUP_MAX_PAGES);
|
|
2894
|
-
pruneBlueBubblesSemanticObservationGenerations();
|
|
3122
|
+
pruneBlueBubblesSemanticObservationGenerations(Date.now(), new Set((0, semantic_receipts_1.listPendingBlueBubblesSemanticCaptures)(agentName).map((capture) => capture.keyHash)));
|
|
2895
3123
|
const client = resolvedDeps.createClient();
|
|
2896
3124
|
const checkedAt = new Date().toISOString();
|
|
2897
3125
|
const previousState = (0, runtime_state_1.readBlueBubblesRuntimeState)(agentName);
|
|
@@ -2926,7 +3154,7 @@ async function syncBlueBubblesRuntime(deps = {}, options = {}) {
|
|
|
2926
3154
|
// while this field stays scoped to upstream transport reachability.
|
|
2927
3155
|
(0, runtime_state_1.writeBlueBubblesRuntimeState)(agentName, {
|
|
2928
3156
|
upstreamStatus: "ok",
|
|
2929
|
-
detail: formatBlueBubblesRuntimeDetail(
|
|
3157
|
+
detail: formatBlueBubblesRuntimeDetail(pendingAfterCatchup, failed, activeAfterCatchup),
|
|
2930
3158
|
lastCheckedAt: checkedAt,
|
|
2931
3159
|
proofMethod: "bluebubbles.checkHealth",
|
|
2932
3160
|
...pendingAfterCatchup,
|
|
@@ -2992,7 +3220,7 @@ async function recoverQueuedBlueBubblesMessages(deps = {}, options = {}) {
|
|
|
2992
3220
|
const activeSnapshot = (0, active_turns_1.snapshotBlueBubblesActiveTurns)(agentName, BLUEBUBBLES_LIVE_TURN_STALLED_MS);
|
|
2993
3221
|
(0, runtime_state_1.writeBlueBubblesRuntimeState)(agentName, {
|
|
2994
3222
|
upstreamStatus: "ok",
|
|
2995
|
-
detail: formatBlueBubblesRuntimeDetail(
|
|
3223
|
+
detail: formatBlueBubblesRuntimeDetail(pendingSnapshot, failed, activeSnapshot),
|
|
2996
3224
|
lastCheckedAt: checkedAt,
|
|
2997
3225
|
proofMethod: "bluebubbles.checkHealth",
|
|
2998
3226
|
...pendingSnapshot,
|
|
@@ -3019,7 +3247,10 @@ async function recoverQueuedBlueBubblesMessages(deps = {}, options = {}) {
|
|
|
3019
3247
|
}
|
|
3020
3248
|
return { recovered, skipped, failed, pendingRecoveryCount };
|
|
3021
3249
|
}
|
|
3022
|
-
|
|
3250
|
+
function catchUpMissedBlueBubblesMessages(deps = {}, previousState, options = {}) {
|
|
3251
|
+
return withObservationScope((scope) => catchUpMissedBlueBubblesMessagesInScope(scope, deps, previousState, options));
|
|
3252
|
+
}
|
|
3253
|
+
async function catchUpMissedBlueBubblesMessagesInScope(scope, deps, previousState, options) {
|
|
3023
3254
|
options.lifecycleSignal?.throwIfAborted();
|
|
3024
3255
|
const resolvedDeps = { ...defaultDeps, ...deps };
|
|
3025
3256
|
const agentName = resolvedDeps.getAgentName();
|
|
@@ -3096,10 +3327,10 @@ async function catchUpMissedBlueBubblesMessages(deps = {}, previousState, option
|
|
|
3096
3327
|
preparedCandidates.push({
|
|
3097
3328
|
status: "ready",
|
|
3098
3329
|
event,
|
|
3099
|
-
observationReservation: (0, latest_turn_1.reserveObservationFromBatch)(observationBatch, page * BLUEBUBBLES_CATCHUP_PAGE_SIZE + pageIndex, {
|
|
3330
|
+
observationReservation: scope.own((0, latest_turn_1.reserveObservationFromBatch)(observationBatch, page * BLUEBUBBLES_CATCHUP_PAGE_SIZE + pageIndex, {
|
|
3100
3331
|
chatGuid: event.chat.chatGuid,
|
|
3101
3332
|
chatIdentifier: event.chat.chatIdentifier,
|
|
3102
|
-
}),
|
|
3333
|
+
})),
|
|
3103
3334
|
});
|
|
3104
3335
|
}
|
|
3105
3336
|
if (pageEvents.length < BLUEBUBBLES_CATCHUP_PAGE_SIZE)
|
|
@@ -3133,12 +3364,10 @@ async function catchUpMissedBlueBubblesMessages(deps = {}, previousState, option
|
|
|
3133
3364
|
await Promise.all(groupBlueBubblesObservationsByLane(readyCandidates).map(async (lane) => {
|
|
3134
3365
|
for (const prepared of lane) {
|
|
3135
3366
|
const { event, observationReservation } = prepared;
|
|
3136
|
-
let semanticGenerationOwned = false;
|
|
3137
3367
|
try {
|
|
3138
3368
|
options.lifecycleSignal?.throwIfAborted();
|
|
3139
3369
|
const captured = await captureBlueBubblesSemanticEvent(event, resolvedDeps, "upstream-catchup", observationReservation);
|
|
3140
3370
|
if (captured.status === "audit_only") {
|
|
3141
|
-
(0, latest_turn_1.clearPending)(observationReservation);
|
|
3142
3371
|
result.skipped++;
|
|
3143
3372
|
continue;
|
|
3144
3373
|
}
|
|
@@ -3148,12 +3377,10 @@ async function catchUpMissedBlueBubblesMessages(deps = {}, previousState, option
|
|
|
3148
3377
|
&& !pendingCaptureKeyHashes().has(captured.capture.keyHash)) {
|
|
3149
3378
|
// Already has an outcome. Fencing it again would hold every older
|
|
3150
3379
|
// reply in this chat behind a message nobody will process.
|
|
3151
|
-
(0, latest_turn_1.clearPending)(observationReservation);
|
|
3152
3380
|
result.skipped++;
|
|
3153
3381
|
continue;
|
|
3154
3382
|
}
|
|
3155
3383
|
const generation = adoptBlueBubblesSemanticObservation(captured.capture.keyHash, observationReservation, false);
|
|
3156
|
-
semanticGenerationOwned = true;
|
|
3157
3384
|
if (captured.writeResult === "semantic_capture_duplicate") {
|
|
3158
3385
|
if (!activeSemanticHandlingSlots.has(captured.capture.keyHash)) {
|
|
3159
3386
|
suspendBlueBubblesSemanticObservation(generation);
|
|
@@ -3175,7 +3402,6 @@ async function catchUpMissedBlueBubblesMessages(deps = {}, previousState, option
|
|
|
3175
3402
|
}
|
|
3176
3403
|
continue;
|
|
3177
3404
|
}
|
|
3178
|
-
semanticGenerationOwned = true;
|
|
3179
3405
|
const handled = await handleCapturedBlueBubblesSemanticEvent(captured, resolvedDeps, "upstream-catchup", {
|
|
3180
3406
|
timeoutMs: BLUEBUBBLES_TURN_TIMEOUT_MS,
|
|
3181
3407
|
autonomyBudgetTrigger: "recovery",
|
|
@@ -3197,8 +3423,6 @@ async function catchUpMissedBlueBubblesMessages(deps = {}, previousState, option
|
|
|
3197
3423
|
}
|
|
3198
3424
|
}
|
|
3199
3425
|
catch (error) {
|
|
3200
|
-
if (!semanticGenerationOwned)
|
|
3201
|
-
(0, latest_turn_1.clearPending)(observationReservation);
|
|
3202
3426
|
if (options.lifecycleSignal?.aborted)
|
|
3203
3427
|
throw options.lifecycleSignal.reason;
|
|
3204
3428
|
recordBlueBubblesRecoveryFailureForBudget(agentName, event, "upstream-catchup");
|
|
@@ -3226,7 +3450,10 @@ async function catchUpMissedBlueBubblesMessages(deps = {}, previousState, option
|
|
|
3226
3450
|
}
|
|
3227
3451
|
return result;
|
|
3228
3452
|
}
|
|
3229
|
-
|
|
3453
|
+
function recoverCapturedBlueBubblesInboundMessages(deps = {}, options = {}) {
|
|
3454
|
+
return withObservationScope((scope) => recoverCapturedBlueBubblesInboundMessagesInScope(scope, deps, options));
|
|
3455
|
+
}
|
|
3456
|
+
async function recoverCapturedBlueBubblesInboundMessagesInScope(scope, deps, options) {
|
|
3230
3457
|
options.lifecycleSignal?.throwIfAborted();
|
|
3231
3458
|
const resolvedDeps = { ...defaultDeps, ...deps };
|
|
3232
3459
|
const agentName = resolvedDeps.getAgentName();
|
|
@@ -3257,7 +3484,7 @@ async function recoverCapturedBlueBubblesInboundMessages(deps = {}, options = {}
|
|
|
3257
3484
|
status: "ready",
|
|
3258
3485
|
capture,
|
|
3259
3486
|
normalized,
|
|
3260
|
-
observationReservation: seededObservationReservation(capture.keyHash, reserveBlueBubblesObservation(normalized)),
|
|
3487
|
+
observationReservation: seededObservationReservation(capture.keyHash, scope.own(reserveBlueBubblesObservation(normalized))),
|
|
3261
3488
|
});
|
|
3262
3489
|
}
|
|
3263
3490
|
for (const prepared of preparedCandidates) {
|
|
@@ -3449,13 +3676,15 @@ function createBlueBubblesWebhookHandler(deps = {}, options = {}) {
|
|
|
3449
3676
|
return;
|
|
3450
3677
|
}
|
|
3451
3678
|
const resolvedDeps = { ...defaultDeps, ...deps };
|
|
3452
|
-
|
|
3679
|
+
// The scope outlives this request: it closes when the queued turn ends.
|
|
3680
|
+
const scope = new BlueBubblesObservationScope();
|
|
3681
|
+
const observationReservation = scope.own(reserveBlueBubblesObservation(normalized));
|
|
3453
3682
|
let captured;
|
|
3454
3683
|
try {
|
|
3455
3684
|
captured = await captureBlueBubblesSemanticEvent(normalized, resolvedDeps, "webhook", observationReservation);
|
|
3456
3685
|
}
|
|
3457
3686
|
catch (error) {
|
|
3458
|
-
|
|
3687
|
+
scope.close();
|
|
3459
3688
|
(0, runtime_1.emitNervesEvent)({
|
|
3460
3689
|
level: "error",
|
|
3461
3690
|
component: "senses",
|
|
@@ -3470,7 +3699,7 @@ function createBlueBubblesWebhookHandler(deps = {}, options = {}) {
|
|
|
3470
3699
|
return;
|
|
3471
3700
|
}
|
|
3472
3701
|
if (captured.status === "audit_only") {
|
|
3473
|
-
|
|
3702
|
+
scope.close();
|
|
3474
3703
|
writeJson(res, 200, {
|
|
3475
3704
|
handled: true,
|
|
3476
3705
|
notifiedAgent: false,
|
|
@@ -3489,10 +3718,10 @@ function createBlueBubblesWebhookHandler(deps = {}, options = {}) {
|
|
|
3489
3718
|
});
|
|
3490
3719
|
setTimeout(() => {
|
|
3491
3720
|
if (options.lifecycleSignal?.aborted) {
|
|
3492
|
-
|
|
3721
|
+
scope.close();
|
|
3493
3722
|
return;
|
|
3494
3723
|
}
|
|
3495
|
-
|
|
3724
|
+
trackBlueBubblesTurn(handleCapturedBlueBubblesSemanticEvent(captured, resolvedDeps, "webhook", {
|
|
3496
3725
|
observationReservation,
|
|
3497
3726
|
lifecycleSignal: options.lifecycleSignal,
|
|
3498
3727
|
}).catch((error) => {
|
|
@@ -3507,7 +3736,7 @@ function createBlueBubblesWebhookHandler(deps = {}, options = {}) {
|
|
|
3507
3736
|
reason: error instanceof Error ? error.message : String(error),
|
|
3508
3737
|
},
|
|
3509
3738
|
});
|
|
3510
|
-
});
|
|
3739
|
+
}).finally(() => scope.close()));
|
|
3511
3740
|
}, 0);
|
|
3512
3741
|
};
|
|
3513
3742
|
}
|
|
@@ -3972,6 +4201,18 @@ async function drainAndSendPendingBlueBubbles(deps = {}, pendingRoot) {
|
|
|
3972
4201
|
}
|
|
3973
4202
|
return result;
|
|
3974
4203
|
}
|
|
4204
|
+
const runningBlueBubblesApps = new WeakMap();
|
|
4205
|
+
/**
|
|
4206
|
+
* Stop the sense now. Aborting first ends every in-flight turn (each leaves its
|
|
4207
|
+
* inbound pending for the next process to replay) instead of letting
|
|
4208
|
+
* server.close() wait on them. Resolves with how many turns were still running.
|
|
4209
|
+
*/
|
|
4210
|
+
async function stopBlueBubblesApp(server) {
|
|
4211
|
+
runningBlueBubblesApps.get(server)?.();
|
|
4212
|
+
server.close();
|
|
4213
|
+
server.closeAllConnections();
|
|
4214
|
+
return drainBlueBubblesTurns();
|
|
4215
|
+
}
|
|
3975
4216
|
function startBlueBubblesApp(deps = {}) {
|
|
3976
4217
|
const resolvedDeps = { ...defaultDeps, ...deps };
|
|
3977
4218
|
const lifecycleController = new AbortController();
|
|
@@ -3996,7 +4237,7 @@ function startBlueBubblesApp(deps = {}) {
|
|
|
3996
4237
|
if (recoveryPassRunning)
|
|
3997
4238
|
return;
|
|
3998
4239
|
recoveryPassRunning = true;
|
|
3999
|
-
|
|
4240
|
+
trackBlueBubblesTurn(recoverQueuedBlueBubblesMessages(resolvedDeps, {
|
|
4000
4241
|
lifecycleSignal: lifecycleController.signal,
|
|
4001
4242
|
})
|
|
4002
4243
|
/* v8 ignore start -- defensive wrapper; expected per-message failures are handled inside recovery helpers @preserve */
|
|
@@ -4014,7 +4255,7 @@ function startBlueBubblesApp(deps = {}) {
|
|
|
4014
4255
|
/* v8 ignore stop */
|
|
4015
4256
|
.finally(() => {
|
|
4016
4257
|
recoveryPassRunning = false;
|
|
4017
|
-
});
|
|
4258
|
+
}));
|
|
4018
4259
|
}
|
|
4019
4260
|
function scheduleRecoveryPass() {
|
|
4020
4261
|
if (closed)
|
|
@@ -4058,7 +4299,9 @@ function startBlueBubblesApp(deps = {}) {
|
|
|
4058
4299
|
triggerRuntimeSync();
|
|
4059
4300
|
}, BLUEBUBBLES_RUNTIME_SYNC_INTERVAL_MS);
|
|
4060
4301
|
const recoveryTimer = setInterval(triggerRecoveryPass, BLUEBUBBLES_RECOVERY_PASS_INTERVAL_MS);
|
|
4061
|
-
|
|
4302
|
+
function shutdown() {
|
|
4303
|
+
if (closed)
|
|
4304
|
+
return;
|
|
4062
4305
|
closed = true;
|
|
4063
4306
|
webhookReconciler?.close();
|
|
4064
4307
|
webhookReconciler = null;
|
|
@@ -4069,7 +4312,9 @@ function startBlueBubblesApp(deps = {}) {
|
|
|
4069
4312
|
clearTimeout(recoveryDelayTimer);
|
|
4070
4313
|
recoveryDelayTimer = null;
|
|
4071
4314
|
}
|
|
4072
|
-
}
|
|
4315
|
+
}
|
|
4316
|
+
server.on?.("close", shutdown);
|
|
4317
|
+
runningBlueBubblesApps.set(server, shutdown);
|
|
4073
4318
|
server.listen(channelConfig.port, () => {
|
|
4074
4319
|
const blueBubblesConfig = (0, config_1.getBlueBubblesConfig)();
|
|
4075
4320
|
webhookReconciler = (0, webhook_registration_1.createBlueBubblesWebhookReconciler)({
|