@ai-ecoverse/mcpcat 0.29.1 → 0.29.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.
- package/dist/host/mcpcat.mjs +7 -2
- package/dist/kernel/mcpcat.mjs +7 -2
- package/package.json +1 -1
package/dist/host/mcpcat.mjs
CHANGED
|
@@ -8560,13 +8560,18 @@ function within(promise, ms) {
|
|
|
8560
8560
|
});
|
|
8561
8561
|
return Promise.race([promise, stale]).finally(() => clearTimeout(timer));
|
|
8562
8562
|
}
|
|
8563
|
+
var LIVENESS = /* @__PURE__ */ new Set([
|
|
8564
|
+
"notifications/events/active",
|
|
8565
|
+
"notifications/events/event",
|
|
8566
|
+
"notifications/events/heartbeat"
|
|
8567
|
+
]);
|
|
8563
8568
|
function idleClock(onMessage, idleMs) {
|
|
8564
8569
|
let deadline = Date.now() + idleMs;
|
|
8565
8570
|
return {
|
|
8566
8571
|
left: () => Math.max(0, deadline - Date.now()),
|
|
8567
8572
|
onMessage: async (method, params) => {
|
|
8568
8573
|
const out = await onMessage(method, params);
|
|
8569
|
-
deadline = Date.now() + idleMs;
|
|
8574
|
+
if (LIVENESS.has(method)) deadline = Date.now() + idleMs;
|
|
8570
8575
|
return out;
|
|
8571
8576
|
}
|
|
8572
8577
|
};
|
|
@@ -20584,5 +20589,5 @@ try {
|
|
|
20584
20589
|
});
|
|
20585
20590
|
} catch {
|
|
20586
20591
|
}
|
|
20587
|
-
var code = await run(platform, "0.29.
|
|
20592
|
+
var code = await run(platform, "0.29.2", args);
|
|
20588
20593
|
process.exit(code);
|
package/dist/kernel/mcpcat.mjs
CHANGED
|
@@ -8181,13 +8181,18 @@ function within(promise, ms) {
|
|
|
8181
8181
|
});
|
|
8182
8182
|
return Promise.race([promise, stale]).finally(() => clearTimeout(timer));
|
|
8183
8183
|
}
|
|
8184
|
+
var LIVENESS = /* @__PURE__ */ new Set([
|
|
8185
|
+
"notifications/events/active",
|
|
8186
|
+
"notifications/events/event",
|
|
8187
|
+
"notifications/events/heartbeat"
|
|
8188
|
+
]);
|
|
8184
8189
|
function idleClock(onMessage, idleMs) {
|
|
8185
8190
|
let deadline = Date.now() + idleMs;
|
|
8186
8191
|
return {
|
|
8187
8192
|
left: () => Math.max(0, deadline - Date.now()),
|
|
8188
8193
|
onMessage: async (method, params) => {
|
|
8189
8194
|
const out = await onMessage(method, params);
|
|
8190
|
-
deadline = Date.now() + idleMs;
|
|
8195
|
+
if (LIVENESS.has(method)) deadline = Date.now() + idleMs;
|
|
8191
8196
|
return out;
|
|
8192
8197
|
}
|
|
8193
8198
|
};
|
|
@@ -19811,7 +19816,7 @@ async function main(ctx) {
|
|
|
19811
19816
|
packageDir: "/node_modules/@ai-ecoverse/mcpcat"
|
|
19812
19817
|
});
|
|
19813
19818
|
const args = ctx.argv.slice(1);
|
|
19814
|
-
return run(platform2, "0.29.
|
|
19819
|
+
return run(platform2, "0.29.2", args);
|
|
19815
19820
|
}
|
|
19816
19821
|
export {
|
|
19817
19822
|
main as default
|