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

Method saveAll

packages/sync/src/data-source-manager.ts:80–87  ·  view source on GitHub ↗
(sources: DataSource[])

Source from the content-addressed store, hash-verified

78 }
79
80 private saveAll(sources: DataSource[]): void {
81 try {
82 this.ensureDir()
83 fs.writeFileSync(this.getConfigPath(), JSON.stringify(sources, null, 2), 'utf-8')
84 } catch (err) {
85 this.logger.error('[DataSource] Failed to save config', err)
86 }
87 }
88
89 // ==================== DataSource CRUD ====================
90

Callers 6

addMethod · 0.95
updateMethod · 0.95
deleteMethod · 0.95
addSessionsMethod · 0.95
removeSessionMethod · 0.95
updateSessionMethod · 0.95

Calls 3

ensureDirMethod · 0.95
getConfigPathMethod · 0.95
errorMethod · 0.65

Tested by

no test coverage detected