Commit 97fab75
committed
refactor: eliminate duplicate toolProtocol detection logic and make parameter required
- Extract toolProtocol variable once at protocol detection point (line 288)
- Remove duplicate detection logic at telemetry capture point (line 434)
- Make toolProtocol parameter required (not optional) in TelemetryService.captureToolUsage()
- Ensures consistent protocol detection and required telemetry data1 parent 218eb81 commit 97fab75
File tree
2 files changed
+2
-4
lines changed- packages/telemetry/src
- src/core/assistant-message
2 files changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| 288 | + | |
288 | 289 | | |
289 | 290 | | |
290 | 291 | | |
| |||
430 | 431 | | |
431 | 432 | | |
432 | 433 | | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | 434 | | |
437 | 435 | | |
438 | 436 | | |
| |||
0 commit comments