MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / makeEntry

Function makeEntry

src/utils/__tests__/fileStateCache.test.ts:8–16  ·  view source on GitHub ↗
(content: string, extra?: Partial<FileState>)

Source from the content-addressed store, hash-verified

6import type { FileState } from '../fileStateCache.js'
7
8function makeEntry(content: string, extra?: Partial<FileState>): FileState {
9 return {
10 content,
11 timestamp: Date.now(),
12 offset: undefined,
13 limit: undefined,
14 ...extra,
15 }
16}
17
18/**
19 * Mirrors coerceToolContentToString from queryHelpers.ts — not exported,

Callers 1

Calls 1

nowMethod · 0.80

Tested by

no test coverage detected