Files
gabrielvidalandClaude Opus 5.5 e94deb8174 feat(parse): neutral tool names in the readers, the fold and the buckets (parser v45)
The readers put the neutral name in a tool_call's `tool` and the record's
own in `native` (readers/toolnames.py): Bash → shell, Read → read,
Agent/Task → agent, the five task tools → todo, CronCreate →
claude:CronCreate; a converter-written legacy file namespaces its own
tools under its entrypoint (agy:manage_task, opencode:execute), an
unstamped one's lowercase names are pi's. MCP names are untouched.

The fold, the cost buckets (bash → shell, task → todo; TaskOutput /
TaskStop now count as shell, TaskGet / TaskList as todo), taskevents, the
resource miner, the lifecycle / deploy / worktree detection, tree.py's
agent cards, spawned children, the scaffold and the bgtasks route key on
the neutral names only. The `todo` calls are told apart by their input
(tools.todo_op). A tool card carries `native` when it differs.

PARSER_VERSION 45 (a full re-index). docs/transcript-format.md gets the
"Tool names" table with the agy column filled from sidecar/agy_tools.py;
the v1 fixtures use the neutral names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 18:14:14 +01:00

25 lines
2.6 KiB
JSON

{"t": "session", "v": 1, "id": "22222222-aaaa-4bbb-8ccc-000000000002", "harness": "pi", "cwd": "/home/synth/homelab", "branch": "main", "at": "2026-01-05T10:00:00.000Z"}
{"t": "prompt", "at": "2026-01-05T10:00:00.000Z", "origin": "user", "text": "List the files, then say « terminé »."}
{"t": "call", "at": "2026-01-05T10:00:08.296Z", "id": "pi-1", "model": "ggml-org/qwen3.8-27b"}
{"t": "tool_call", "at": "2026-01-05T10:00:08.296Z", "call": "pi-1", "id": "pi_call_01", "tool": "shell", "native": "bash", "input": {"command": "ls -la"}}
{"t": "usage", "at": "2026-01-05T10:00:08.296Z", "call": "pi-1", "input": 1457, "output": 28, "cost": {"usd": 0, "source": "provider"}}
{"t": "tool_result", "at": "2026-01-05T10:00:09.333Z", "toolCall": "pi_call_01", "ok": true, "text": "total 0\n-rw-r--r-- 1 synth synth 0 notes.md"}
{"t": "call", "at": "2026-01-05T10:00:31.147Z", "id": "pi-2", "model": "ggml-org/qwen3.8-27b"}
{"t": "thinking", "at": "2026-01-05T10:00:31.147Z", "call": "pi-2", "text": "One file."}
{"t": "text", "at": "2026-01-05T10:00:31.147Z", "call": "pi-2", "text": "One file: notes.md — terminé ✅"}
{"t": "usage", "at": "2026-01-05T10:00:31.147Z", "call": "pi-2", "input": 49, "output": 173, "cacheRead": 1484, "cost": {"usd": 0, "source": "provider"}}
{"t": "turn_end", "at": "2026-01-05T10:00:31.147Z", "reason": "done"}
{"t": "prompt", "at": "2026-01-05T10:01:00.220Z", "origin": "user", "text": "Same on OpenRouter."}
{"t": "call", "at": "2026-01-05T10:01:04.368Z", "id": "pi-3", "model": "qwen/qwen3-coder"}
{"t": "text", "at": "2026-01-05T10:01:04.368Z", "call": "pi-3", "text": "Still one file."}
{"t": "usage", "at": "2026-01-05T10:01:04.368Z", "call": "pi-3", "input": 2100, "output": 40, "cacheRead": 1500, "cost": {"usd": 0.00123, "source": "provider"}}
{"t": "turn_end", "at": "2026-01-05T10:01:04.368Z", "reason": "done"}
{"t": "prompt", "at": "2026-01-05T10:01:30.330Z", "origin": "user", "text": "Again."}
{"t": "call", "at": "2026-01-05T10:01:32.404Z", "id": "pi-4", "failed": true}
{"t": "error", "at": "2026-01-05T10:01:32.404Z", "call": "pi-4", "kind": "unknown", "text": "API Error (qwen/qwen3.8-27b): the model call failed — this run didn't record why (pi runner before 2026-11-06)"}
{"t": "turn_end", "at": "2026-01-05T10:01:32.404Z", "reason": "error"}
{"t": "call", "at": "2026-01-05T10:02:00.440Z", "id": "pi-5", "failed": true}
{"t": "error", "at": "2026-01-05T10:02:00.440Z", "call": "pi-5", "kind": "api_key", "text": "API Error (qwen/qwen3-coder): 401 User not found"}
{"t": "turn_end", "at": "2026-01-05T10:02:00.440Z", "reason": "error"}
{"t": "turn_end", "at": "2026-01-05T10:02:00.440Z", "reason": "done"}