( state: AttributionState, filePath: string, content: string, mtime: number = Date.now(), )
| 437 | * Used when Claude creates a new file through a non-tracked mechanism. |
| 438 | */ |
| 439 | export function trackFileCreation( |
| 440 | state: AttributionState, |
| 441 | filePath: string, |
| 442 | content: string, |
| 443 | mtime: number = Date.now(), |
| 444 | ): AttributionState { |
| 445 | // A creation is simply a modification from empty to the new content |
| 446 | return trackFileModification(state, filePath, '', content, false, mtime) |
| 447 | } |
| 448 | |
| 449 | /** |
| 450 | * Track a file deletion by Claude (e.g., via bash rm command). |
nothing calls this directly
no test coverage detected