MCPcopy Index your code
hub / github.com/codeaashu/claude-code / fetchLatestEvents

Function fetchLatestEvents

src/assistant/sessionHistory.ts:73–78  ·  view source on GitHub ↗
(
  ctx: HistoryAuthCtx,
  limit = HISTORY_PAGE_SIZE,
)

Source from the content-addressed store, hash-verified

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

Callers 1

useAssistantHistoryFunction · 0.85

Calls 1

fetchPageFunction · 0.85

Tested by

no test coverage detected