claude-code-sdk-python/.github/workflows
Ashwin Bhat e8d7e71a0a
Add missing hook output fields to match TypeScript SDK (#226)
Closes the gap between Python and TypeScript SDK hook output types by
adding:
- `reason` field for explaining decisions
- `continue_` field for controlling execution flow
- `suppressOutput` field for hiding stdout
- `stopReason` field for stop explanations
- `decision` now supports both "approve" and "block" (not just "block")
- `AsyncHookJSONOutput` type for deferred hook execution
- Proper typing for `hookSpecificOutput` with discriminated unions

Also adds comprehensive examples and tests:
- New examples in hooks.py demonstrating all new fields
- Unit tests in test_tool_callbacks.py for new output types
- E2E tests in e2e-tests/test_hooks.py with real API calls
- CI integration in .github/workflows/test.yml

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-09 18:13:23 -07:00
..
claude-code-review.yml Add Claude Code GitHub Workflow 2025-06-17 17:03:37 -07:00
claude-issue-triage.yml Add Claude issue triage workflow 2025-07-03 11:15:41 -07:00
claude.yml fix pytest allowed tool (#117) 2025-08-06 16:03:30 -07:00
create-release-tag.yml Rename claude_code to claude_agent (#188) 2025-09-28 14:52:53 -07:00
lint.yml Standardize GitHub workflow triggers (#155) 2025-09-07 18:31:38 -07:00
publish.yml feat: automate changelog updates in release workflow (#231) 2025-10-09 10:36:54 -07:00
test.yml Add missing hook output fields to match TypeScript SDK (#226) 2025-10-09 18:13:23 -07:00