MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / fetchLatestEvents

Function fetchLatestEvents

source code/assistant/sessionHistory.ts:75–80  ·  view source on GitHub ↗
(
  ctx: HistoryAuthCtx,
  limit = HISTORY_PAGE_SIZE,
)

Source from the content-addressed store, hash-verified

73 * has_more=true means older events exist.
74 */
75export async function fetchLatestEvents(
76 ctx: HistoryAuthCtx,
77 limit = HISTORY_PAGE_SIZE,
78): Promise<HistoryPage | null> {
79 return fetchPage(ctx, { limit, anchor_to_latest: true }, 'fetchLatestEvents')
80}
81
82/** Older page: events immediately before `beforeId` cursor. */
83export async function fetchOlderEvents(

Callers 1

useAssistantHistoryFunction · 0.85

Calls 1

fetchPageFunction · 0.85

Tested by

no test coverage detected