()
| 304 | * Create an empty attribution state for a new session. |
| 305 | */ |
| 306 | export 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. |
no test coverage detected