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

Function fetchDataSources

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

Source from the content-addressed store, hash-verified

335 // ==================== 数据源管理 ====================
336
337 async function fetchDataSources() {
338 try {
339 dataSources.value = await transport.getDataSources()
340 } catch (err) {
341 console.error('[ApiServerStore] Failed to fetch data sources:', err)
342 }
343 }
344
345 async function addDataSource(partial: {
346 name?: string

Callers 7

refreshFunction · 0.85
addImportSessionsFunction · 0.85
pollDataSourceUpdatesFunction · 0.85
removeImportSessionFunction · 0.85
triggerPullFunction · 0.85
triggerPullAllFunction · 0.85
listenPullResultFunction · 0.85

Calls 2

getDataSourcesMethod · 0.80
errorMethod · 0.65

Tested by

no test coverage detected