MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / t8-race-direct.ts

File t8-race-direct.ts

packages/node-sdk/examples/t8-race-direct.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// Direct race demo: emulates SessionStore.create logic but inserts a delay
2// between findSessionEntry and appendSessionIndexEntry to expose the TOCTOU.
3import { appendFile, mkdir, readFile } from 'node:fs/promises';
4import { join } from 'node:path';

Callers

nothing calls this directly

Calls 2

emulateCreateFunction · 0.85
exitMethod · 0.65

Tested by

no test coverage detected