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

Function getInputHistoryFile

apps/kimi-code/src/utils/paths.ts:101–104  ·  view source on GitHub ↗
(workDir: string)

Source from the content-addressed store, hash-verified

99 * Layout: `<share_dir>/user-history/<md5(cwd)>.jsonl`.
100 */
101export function getInputHistoryFile(workDir: string): string {
102 const hash = createHash('md5').update(workDir, 'utf-8').digest('hex');
103 return join(getDataDir(), KIMI_CODE_INPUT_HISTORY_DIR_NAME, `${hash}.jsonl`);
104}

Callers 3

paths.test.tsFile · 0.90
persistInputHistoryMethod · 0.90

Calls 2

getDataDirFunction · 0.85
updateMethod · 0.65

Tested by

no test coverage detected