()
| 245 | * Create an empty attribution state for a new session. |
| 246 | */ |
| 247 | export function createEmptyAttributionState(): AttributionState { |
| 248 | return { |
| 249 | fileStates: new Map(), |
| 250 | sessionBaselines: new Map(), |
| 251 | surface: getClientSurface(), |
| 252 | startingHeadSha: null, |
| 253 | promptCount: 0, |
| 254 | promptCountAtLastCommit: 0, |
| 255 | permissionPromptCount: 0, |
| 256 | permissionPromptCountAtLastCommit: 0, |
| 257 | escapeCount: 0, |
| 258 | escapeCountAtLastCommit: 0, |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | /** |
| 263 | * Compute the character contribution for a file modification. |
no test coverage detected