Commit 2e4bdd4
committed
fix: use SDK SessionEvent type for forward compat with copilot-sdk 0.3.0
The auditor's session.on() handler used an inline type annotation
that is incompatible with the SessionEvent discriminated union in
@github/copilot-sdk 0.3.0. Import and use the SDK's SessionEvent
type instead — works with both 0.2.x and 0.3.x.
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>1 parent 7deaef6 commit 2e4bdd4
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
656 | 660 | | |
657 | 661 | | |
658 | 662 | | |
659 | | - | |
| 663 | + | |
660 | 664 | | |
661 | 665 | | |
662 | 666 | | |
| |||
0 commit comments