MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / tempConfigPath

Function tempConfigPath

packages/node-runtime/src/semantic-index/config.test.ts:14–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12} from './config'
13
14function tempConfigPath(): string {
15 const baseDir = fs.existsSync('/private/tmp') ? '/private/tmp' : os.tmpdir()
16 const dir = fs.mkdtempSync(path.join(baseDir, 'chatlab-si-config-'))
17 return path.join(dir, 'ai', 'semantic-index-config.json')
18}
19
20test('default config is enabled with no model preselected', () => {
21 const store = new SemanticIndexConfigStore(tempConfigPath())

Callers 1

config.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected