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

Function createEmptyAttributionState

src/utils/commitAttribution.ts:307–320  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

305 * Create an empty attribution state for a new session.
306 */
307export function createEmptyAttributionState(): AttributionState {
308 return {
309 fileStates: new Map(),
310 sessionBaselines: new Map(),
311 surface: getClientSurface(),
312 startingHeadSha: null,
313 promptCount: 0,
314 promptCountAtLastCommit: 0,
315 permissionPromptCount: 0,
316 permissionPromptCountAtLastCommit: 0,
317 escapeCount: 0,
318 escapeCountAtLastCommit: 0,
319 }
320}
321
322/**
323 * Compute the character contribution for a file modification.

Callers 4

runFunction · 0.85
clearConversationFunction · 0.85
getDefaultAppStateFunction · 0.85

Calls 1

getClientSurfaceFunction · 0.85

Tested by

no test coverage detected