(state: MutableProjectState)
| 328 | } |
| 329 | |
| 330 | function cloneProject(state: MutableProjectState): ExploreProjectState { |
| 331 | return { |
| 332 | projectRoot: state.projectRoot, |
| 333 | callCount: state.callCount, |
| 334 | responseBytes: state.responseBytes, |
| 335 | calls: state.calls.map((c) => ({ ...c, files: c.files.map((f) => ({ ...f, ranges: [...f.ranges] })) })), |
| 336 | }; |
| 337 | } |
| 338 | |
| 339 | /** |
| 340 | * Read the session view a caller injected into tool args, if any. Defensive: |