Commit fc7a6de
authored
Export EffortLevel type alias (#951)
## Summary
- add a public `EffortLevel` type alias for Claude effort string levels
- reuse the alias in `AgentDefinition` and `ClaudeAgentOptions`
- export the alias from the package root for downstream SDK wrappers
Closes #938
## Testing
- `.venv/bin/python -m pytest tests/test_types.py -q`
- `.venv/bin/python -m ruff check src/claude_agent_sdk/types.py
src/claude_agent_sdk/__init__.py tests/test_types.py`
- `.venv/bin/python -m ruff format --check src/claude_agent_sdk/types.py
src/claude_agent_sdk/__init__.py tests/test_types.py`
- `git diff --check`1 parent 1a72b69 commit fc7a6de
3 files changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
528 | 529 | | |
529 | 530 | | |
530 | 531 | | |
| 532 | + | |
531 | 533 | | |
532 | 534 | | |
533 | 535 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
99 | | - | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
1864 | 1865 | | |
1865 | 1866 | | |
1866 | 1867 | | |
1867 | | - | |
| 1868 | + | |
1868 | 1869 | | |
1869 | 1870 | | |
1870 | 1871 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
27 | 35 | | |
28 | 36 | | |
29 | 37 | | |
| |||
0 commit comments