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

Function createPathProvider

apps/cli/src/import/stream-import.test.ts:22–35  ·  view source on GitHub ↗
(root: string)

Source from the content-addressed store, hash-verified

20}
21
22function createPathProvider(root: string): PathProvider {
23 return {
24 getSystemDir: () => root,
25 getUserDataDir: () => path.join(root, 'data'),
26 getDatabaseDir: () => path.join(root, 'data', 'databases'),
27 getVectorDir: () => path.join(root, 'data', 'vector'),
28 getAiDataDir: () => path.join(root, 'ai'),
29 getSettingsDir: () => path.join(root, 'settings'),
30 getCacheDir: () => path.join(root, 'cache'),
31 getTempDir: () => path.join(root, 'temp'),
32 getLogsDir: () => path.join(root, 'logs'),
33 getDownloadsDir: () => path.join(root, 'downloads'),
34 }
35}
36
37function writeIncrementalJsonl(filePath: string): void {
38 const rows = [

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected