@automagik/omni 2.260803.1 → 2.260803.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/index.js +1 -1
- package/dist/server/index.js +11 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -128149,7 +128149,7 @@ import { fileURLToPath } from "url";
|
|
|
128149
128149
|
// package.json
|
|
128150
128150
|
var package_default = {
|
|
128151
128151
|
name: "@automagik/omni",
|
|
128152
|
-
version: "2.260803.
|
|
128152
|
+
version: "2.260803.2",
|
|
128153
128153
|
description: "LLM-optimized CLI for Omni",
|
|
128154
128154
|
type: "module",
|
|
128155
128155
|
bin: {
|
package/dist/server/index.js
CHANGED
|
@@ -242831,7 +242831,7 @@ var init_sentry_scrub = __esm(() => {
|
|
|
242831
242831
|
var require_package7 = __commonJS((exports, module) => {
|
|
242832
242832
|
module.exports = {
|
|
242833
242833
|
name: "@omni/api",
|
|
242834
|
-
version: "2.260803.
|
|
242834
|
+
version: "2.260803.2",
|
|
242835
242835
|
type: "module",
|
|
242836
242836
|
exports: {
|
|
242837
242837
|
".": {
|
|
@@ -348104,6 +348104,7 @@ class MessageDebouncer {
|
|
|
348104
348104
|
timers = new Map;
|
|
348105
348105
|
inFlight = new Set;
|
|
348106
348106
|
firstBufferedAt = new Map;
|
|
348107
|
+
lastConfig = new Map;
|
|
348107
348108
|
onFlush;
|
|
348108
348109
|
now;
|
|
348109
348110
|
constructor(onFlush, now = Date.now) {
|
|
@@ -348120,6 +348121,7 @@ class MessageDebouncer {
|
|
|
348120
348121
|
this.buffers.set(chatKey, buffer3);
|
|
348121
348122
|
if (!this.firstBufferedAt.has(chatKey))
|
|
348122
348123
|
this.firstBufferedAt.set(chatKey, this.now());
|
|
348124
|
+
this.lastConfig.set(chatKey, config4);
|
|
348123
348125
|
if (this.inFlight.has(chatKey))
|
|
348124
348126
|
return;
|
|
348125
348127
|
this.restartTimer(chatKey, config4);
|
|
@@ -348191,7 +348193,14 @@ class MessageDebouncer {
|
|
|
348191
348193
|
this.inFlight.delete(chatKey);
|
|
348192
348194
|
const pending = this.buffers.get(chatKey);
|
|
348193
348195
|
if (pending?.length) {
|
|
348194
|
-
|
|
348196
|
+
const config4 = this.lastConfig.get(chatKey);
|
|
348197
|
+
if (config4) {
|
|
348198
|
+
this.restartTimer(chatKey, config4, true);
|
|
348199
|
+
} else {
|
|
348200
|
+
setTimeout(() => this.flush(chatKey), 0);
|
|
348201
|
+
}
|
|
348202
|
+
} else {
|
|
348203
|
+
this.lastConfig.delete(chatKey);
|
|
348195
348204
|
}
|
|
348196
348205
|
}
|
|
348197
348206
|
}
|