MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / findEntryIndexById

Function findEntryIndexById

shared/thread-history.ts:130–138  ·  view source on GitHub ↗
(pathEntries: SessionPathEntry[], entryId: string)

Source from the content-addressed store, hash-verified

128}
129
130function findEntryIndexById(pathEntries: SessionPathEntry[], entryId: string) {
131 for (let index = 0; index < pathEntries.length; index += 1) {
132 if (pathEntries[index]?.id === entryId) {
133 return index
134 }
135 }
136
137 return -1
138}
139
140export function buildThreadHistorySlice(
141 pathEntries: SessionPathEntry[],

Callers 1

buildThreadHistorySliceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected