@anthropic-ai/claude-agent-sdk 0.3.173 → 0.3.175

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bridge.d.ts CHANGED
@@ -134,7 +134,12 @@ export type AttachBridgeSessionOptions = {
134
134
  onPermissionResponse?: (res: SDKControlResponse) => void;
135
135
  /** `interrupt` control_request from claude.ai. Already auto-replied-to. */
136
136
  onInterrupt?: () => void;
137
- onSetModel?: (model: string | undefined) => void;
137
+ onSetModel?: (model: string | undefined) => {
138
+ ok: true;
139
+ } | {
140
+ ok: false;
141
+ error: string;
142
+ } | void;
138
143
  onSetMaxThinkingTokens?: (tokens: number | null) => void;
139
144
  /**
140
145
  * `set_permission_mode` from claude.ai. Return an error verdict to send