@axiom-lattice/core 2.1.9 → 2.1.11
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 +3 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1793,10 +1793,8 @@ var AgentManager = class _AgentManager {
|
|
|
1793
1793
|
if (return_agent_state) {
|
|
1794
1794
|
event_bus_default.subscribeOnce(callback_event, (data) => {
|
|
1795
1795
|
if (data.success) {
|
|
1796
|
-
console.log("AgentManager callAgentInQueue success", data);
|
|
1797
1796
|
resolve(data.state);
|
|
1798
1797
|
} else {
|
|
1799
|
-
console.log("AgentManager callAgentInQueue error", data);
|
|
1800
1798
|
reject(data.error);
|
|
1801
1799
|
}
|
|
1802
1800
|
});
|
|
@@ -2978,7 +2976,7 @@ var InMemoryChunkBuffer = class extends ChunkBuffer {
|
|
|
2978
2976
|
this.config = {
|
|
2979
2977
|
ttl: config?.ttl ?? 60 * 60 * 1e3,
|
|
2980
2978
|
cleanupInterval: config?.cleanupInterval ?? 0,
|
|
2981
|
-
maxChunks: config?.maxChunks ??
|
|
2979
|
+
maxChunks: config?.maxChunks ?? 1e5
|
|
2982
2980
|
// Default max chunks per thread
|
|
2983
2981
|
};
|
|
2984
2982
|
if (this.config.cleanupInterval > 0) {
|
|
@@ -3032,9 +3030,7 @@ var InMemoryChunkBuffer = class extends ChunkBuffer {
|
|
|
3032
3030
|
const now = Date.now();
|
|
3033
3031
|
buffer = {
|
|
3034
3032
|
threadId,
|
|
3035
|
-
chunks$: new import_rxjs.ReplaySubject(
|
|
3036
|
-
this.config.maxChunks ?? 1e5
|
|
3037
|
-
),
|
|
3033
|
+
chunks$: new import_rxjs.ReplaySubject(this.config.maxChunks),
|
|
3038
3034
|
status: "active" /* ACTIVE */,
|
|
3039
3035
|
createdAt: now,
|
|
3040
3036
|
updatedAt: now,
|
|
@@ -3044,9 +3040,7 @@ var InMemoryChunkBuffer = class extends ChunkBuffer {
|
|
|
3044
3040
|
}
|
|
3045
3041
|
if (buffer.status !== "active" /* ACTIVE */) {
|
|
3046
3042
|
buffer.status = "active" /* ACTIVE */;
|
|
3047
|
-
buffer.chunks$ = new import_rxjs.ReplaySubject(
|
|
3048
|
-
this.config.maxChunks ?? 1e5
|
|
3049
|
-
);
|
|
3043
|
+
buffer.chunks$ = new import_rxjs.ReplaySubject(this.config.maxChunks);
|
|
3050
3044
|
buffer.updatedAt = Date.now();
|
|
3051
3045
|
buffer.expiresAt = Date.now() + this.config.ttl;
|
|
3052
3046
|
}
|