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

Function makeTempDir

packages/node-runtime/src/cache/session-cache.test.ts:27–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25const nativeBinding = path.resolve('apps/cli/native/better_sqlite3.node')
26
27function makeTempDir(): string {
28 const baseDir = fs.existsSync('/private/tmp') ? '/private/tmp' : os.tmpdir()
29 return fs.mkdtempSync(path.join(baseDir, 'chatlab-session-cache-'))
30}
31
32/**
33 * Create an in-memory (or temp-file) chat DB with schema and one member so

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected