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

Function makeTempDir

apps/cli/src/runtime-compat-startup.test.ts:9–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7import { initMcpRuntime } from './mcp'
8
9function makeTempDir(): string {
10 const baseDir = fs.existsSync('/private/tmp') ? '/private/tmp' : os.tmpdir()
11 return fs.mkdtempSync(path.join(baseDir, 'chatlab-cli-startup-'))
12}
13
14function writeIncompatibleMeta(userDataDir: string): void {
15 fs.mkdirSync(userDataDir, { recursive: true })

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected