MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / makeTempDir

Function makeTempDir

packages/node-sdk/test/session-prompt-events.test.ts:73–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71});
72
73async function makeTempDir(): Promise<string> {
74 const dir = await mkdtemp(join(tmpdir(), 'kimi-sdk-prompt-'));
75 tempDirs.push(dir);
76 return dir;
77}
78
79async function removeTempDir(dir: string): Promise<void> {
80 for (let attempt = 0; attempt < 10; attempt += 1) {

Callers 1

Calls 2

mkdtempFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected