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

Method updateSession

packages/sync/src/data-source-manager.ts:180–189  ·  view source on GitHub ↗
(sourceId: string, sessionId: string, updates: Partial<ImportSession>)

Source from the content-addressed store, hash-verified

178 }
179
180 updateSession(sourceId: string, sessionId: string, updates: Partial<ImportSession>): ImportSession | null {
181 const sources = this.loadAll()
182 const ds = sources.find((s) => s.id === sourceId)
183 if (!ds) return null
184 const sess = ds.sessions.find((s) => s.id === sessionId)
185 if (!sess) return null
186 Object.assign(sess, updates, { id: sessionId })
187 this.saveAll(sources)
188 return sess
189 }
190}

Callers 2

executePullSessionMethod · 0.80
routes.test.tsFile · 0.80

Calls 2

loadAllMethod · 0.95
saveAllMethod · 0.95

Tested by

no test coverage detected