@okostream/mcp 0.12.13 → 0.12.14
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/server.js +7 -2
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -116291,7 +116291,7 @@ function sanitizeScopes(scopes) {
|
|
|
116291
116291
|
}
|
|
116292
116292
|
|
|
116293
116293
|
// build/version.js
|
|
116294
|
-
var OKO_MCP_VERSION = "0.12.
|
|
116294
|
+
var OKO_MCP_VERSION = "0.12.14";
|
|
116295
116295
|
|
|
116296
116296
|
// build/auth.js
|
|
116297
116297
|
var state = null;
|
|
@@ -120414,7 +120414,12 @@ function registerSessionTools(server2) {
|
|
|
120414
120414
|
const rtdbCleanupWarnings = [];
|
|
120415
120415
|
if (deleteRtdbData) {
|
|
120416
120416
|
try {
|
|
120417
|
-
await
|
|
120417
|
+
const livePointer = await get(ref(rtdb, `events/${eventId}/ctrl/activeSessionId`));
|
|
120418
|
+
if (livePointer.val() === sessionId) {
|
|
120419
|
+
rtdbCleanupWarnings.push("RTDB data kept: ctrl/activeSessionId still points at this session \u2014 deleting it would remove the only source CF49 can rebuild the report from");
|
|
120420
|
+
} else {
|
|
120421
|
+
await remove(ref(rtdb, `events/${eventId}/sessions/${sessionId}`));
|
|
120422
|
+
}
|
|
120418
120423
|
} catch (err) {
|
|
120419
120424
|
rtdbCleanupWarnings.push(err instanceof Error ? err.message : String(err));
|
|
120420
120425
|
}
|