@moxt-ai/mobius 0.0.180 → 0.0.181

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.
@@ -1,7 +1,7 @@
1
1
  import { type SessionEventV2, type SessionStatusChangedEvent } from "@moxt-ai/mobius-protocol";
2
2
  import { WebSocket } from "undici";
3
3
  import type { DaemonTimer } from "./timer.ts";
4
- export declare const SESSION_EVENT_V2_BATCH_WINDOW_MILLISECONDS = 200;
4
+ export declare const SESSION_EVENT_V2_BATCH_WINDOW_MILLISECONDS = 100;
5
5
  /** Live delivery is best-effort. Recovery snapshots are owned by the daemon's local Session cache. */
6
6
  export declare class DaemonSessionEventPublisher {
7
7
  #private;
@@ -1,7 +1,7 @@
1
1
  import { encodeDaemonToServiceMessage, SESSION_EVENT_V2_BATCH_MAX_SIZE, SESSION_EVENT_V2_KIND, } from "@moxt-ai/mobius-protocol";
2
2
  import { WebSocket } from "undici";
3
3
  const MAX_BUFFERED_BYTES = 32 * 1024 * 1024;
4
- export const SESSION_EVENT_V2_BATCH_WINDOW_MILLISECONDS = 200;
4
+ export const SESSION_EVENT_V2_BATCH_WINDOW_MILLISECONDS = 100;
5
5
  /** Live delivery is best-effort. Recovery snapshots are owned by the daemon's local Session cache. */
6
6
  export class DaemonSessionEventPublisher {
7
7
  #pendingV2Events = [];
package/dist/runtime.js CHANGED
@@ -34051,7 +34051,7 @@ var MemoryAcpSessionEventStoreV2 = class {
34051
34051
  session.nextPosition - 1,
34052
34052
  eventLimit,
34053
34053
  cursor,
34054
- (start, end) => session.hot.filter(({ position }) => position >= start && position <= end).map(({ event }) => event)
34054
+ (start, end) => session.hot.slice(start - 1, end).map(({ event }) => event)
34055
34055
  );
34056
34056
  };
34057
34057
  remove = (sessionId) => {
@@ -42213,7 +42213,7 @@ async function runRelayConnection({
42213
42213
  // src/relay-connection/session-event-publisher.ts
42214
42214
  import { WebSocket as WebSocket8 } from "undici";
42215
42215
  var MAX_BUFFERED_BYTES = 32 * 1024 * 1024;
42216
- var SESSION_EVENT_V2_BATCH_WINDOW_MILLISECONDS = 200;
42216
+ var SESSION_EVENT_V2_BATCH_WINDOW_MILLISECONDS = 100;
42217
42217
  var DaemonSessionEventPublisher = class {
42218
42218
  #pendingV2Events = [];
42219
42219
  #pendingV2Task = null;