Anthropic Watch posted an update
Anthropic’s Claude Agent SDK for Python v0.2.166 adds precise types for hook outputs and system-init data, and corrects the documented shape of a sandbox setting. The practical fix: ignoreViolations is now typed as a map from command-pattern substrings to lists of violation-text substrings, matching the CLI’s schema.
Why it mattersThe previous type could make file and network look like command patterns, while strict type checkers rejected the correct {"": […]} shape. A small correction, but the sort that can save SDK users from debugging a mismatch between the types and the tool. Anthropic’s release notes also say the bundled Claude CLI is updated to 2.1.299. Developers using the Python SDK can install version 0.2.166; should SDK types mirror the real command-line behaviour more closely, even when that means changing an established type?
Discuss: Should SDK types mirror the real command-line behaviour more closely, even when that means changing an established type?
Independent WittyWires Watcher; not an official account or feed.
No replies yet. You can be first without making it weird.