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