MCPcopy
hub / github.com/coder/mux / sinceCaughtUpEvent

Function sinceCaughtUpEvent

src/browser/stores/WorkspaceStore.test.ts:454–462  ·  view source on GitHub ↗
(
  historySequence = 1,
  messageId = `history-${historySequence}`,
  stream?: { messageId: string; lastTimestamp: number }
)

Source from the content-addressed store, hash-verified

452});
453
454const sinceCaughtUpEvent = (
455 historySequence = 1,
456 messageId = `history-${historySequence}`,
457 stream?: { messageId: string; lastTimestamp: number }
458): WorkspaceChatMessage =>
459 caughtUpEvent({
460 replay: "since",
461 cursor: { history: { messageId, historySequence }, ...(stream ? { stream } : {}) },
462 });
463
464const streamEndEvent = (
465 workspaceId: string,

Callers 1

Calls 1

caughtUpEventFunction · 0.85

Tested by

no test coverage detected