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

Function createEmptyAttributionState

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

Source from the content-addressed store, hash-verified

304 * Create an empty attribution state for a new session.
305 */
306export function createEmptyAttributionState(): AttributionState {
307 return {
308 fileStates: new Map(),
309 sessionBaselines: new Map(),
310 surface: getClientSurface(),
311 startingHeadSha: null,
312 promptCount: 0,
313 promptCountAtLastCommit: 0,
314 permissionPromptCount: 0,
315 permissionPromptCountAtLastCommit: 0,
316 escapeCount: 0,
317 escapeCountAtLastCommit: 0,
318 }
319}
320
321/**
322 * 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