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

Function syncShellIndex

desktop/pi-threads/shell-index.ts:13–22  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

11}
12
13async function syncShellIndex(cwd: string): Promise<ShellIndexSyncResult> {
14 const { sessions, partialFailure } = await listAllSessionsStrict()
15
16 syncSessionSummaries(
17 cwd,
18 sessions.map((session) => mapSessionSummaryToRecord(cwd, session)),
19 )
20
21 return { complete: !partialFailure, didSync: true }
22}
23
24function startShellIndexSync(
25 cwd: string,

Callers 1

startShellIndexSyncFunction · 0.85

Calls 3

listAllSessionsStrictFunction · 0.90
syncSessionSummariesFunction · 0.90

Tested by

no test coverage detected