MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / generateIndexForAllSources

Function generateIndexForAllSources

src/stores/apiServer.ts:539–549  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

537 }
538
539 function generateIndexForAllSources() {
540 const indexService = useSessionIndexService()
541 const threshold = getSessionGapThreshold()
542 for (const ds of dataSources.value) {
543 for (const sess of ds.sessions) {
544 if (sess.targetSessionId) {
545 indexService.generateIncremental(sess.targetSessionId, threshold).catch(() => {})
546 }
547 }
548 }
549 }
550
551 async function fetchRemoteSessions(
552 baseUrl: string,

Callers 1

listenPullResultFunction · 0.85

Calls 3

useSessionIndexServiceFunction · 0.90
getSessionGapThresholdFunction · 0.90
generateIncrementalMethod · 0.65

Tested by

no test coverage detected