pi-mono/packages/coding-agent/src
G a8a0f4b9fb feat(coding-agent): type ToolCallEvent.input per tool
Matches ToolResultEvent pattern with typed inputs via discriminated union.

- Export *ToolInput types from tool schemas
- Add *ToolCallEvent interfaces for each built-in tool
- Add isToolCallEventType() guard with overloads for built-ins

Direct narrowing (event.toolName === "bash") doesn't work due to
CustomToolCallEvent.toolName: string overlapping with literals.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 19:13:52 +01:00
..
cli feat(coding-agent): add named-only filter toggle to /resume picker (#1128) 2026-02-01 19:03:38 +01:00
core feat(coding-agent): type ToolCallEvent.input per tool 2026-02-01 19:13:52 +01:00
modes feat(coding-agent): add named-only filter toggle to /resume picker (#1128) 2026-02-01 19:03:38 +01:00
utils fix(coding-agent): convert clipboard BMP images to PNG on paste 2026-01-31 23:24:10 +01:00
cli.ts Set coding agent CLI process title (#742) 2026-01-15 13:14:14 +01:00
config.ts feat(config): add PI_PACKAGE_DIR env var to override package path (#1153) 2026-02-01 17:52:44 +01:00
index.ts feat(coding-agent): type ToolCallEvent.input per tool 2026-02-01 19:13:52 +01:00
main.ts fix(coding-agent): improve thinking defaults in footer 2026-01-29 00:33:45 +01:00
migrations.ts chore: remove deprecation comment from getToolsDir, add changelog entry for #470 2026-01-05 20:26:48 +01:00