diff --git a/mise.toml b/mise.toml index 4f882f77c..65ff31c10 100644 --- a/mise.toml +++ b/mise.toml @@ -4,7 +4,7 @@ # Then `cd` into this repo; `node`, `npm`, and `go` come from mise. [tools] node = "22" -go = "1.25.8" +go = "1.26.0" [env] _.file = ".env.local" diff --git a/skills/analyze-transcript/analyze-transcript.py b/skills/analyze-transcript/analyze-transcript.py index 8e4074e1d..09015abf0 100755 --- a/skills/analyze-transcript/analyze-transcript.py +++ b/skills/analyze-transcript/analyze-transcript.py @@ -8,6 +8,7 @@ import sys from collections import Counter from datetime import datetime +from typing import TypedDict # Prevent BrokenPipeError when output is piped through head/tail. signal.signal(signal.SIGPIPE, signal.SIG_DFL) @@ -243,8 +244,13 @@ def cmd_conversation(args): print() +class ToolStats(TypedDict): + count: int + lines: list[int] + + def cmd_tools(args): - tool_data = {} + tool_data: dict[str, ToolStats] = {} for i, role, msg, _raw in iter_messages(args.file, args.line_range): if role != "assistant":