@anthropic-ai/claude-agent-sdk 0.3.248 → 0.3.251

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
@@ -160,10 +160,17 @@ export type AttachBridgeSessionOptions = {
160
160
  onStopTask?: (taskId: string) => Promise<void>;
161
161
  onSetModel?: (model: string | undefined) => {
162
162
  ok: true;
163
+ notices?: string[];
163
164
  } | {
164
165
  ok: false;
165
166
  error: string;
166
- } | void;
167
+ } | void | Promise<{
168
+ ok: true;
169
+ notices?: string[];
170
+ } | {
171
+ ok: false;
172
+ error: string;
173
+ }>;
167
174
  onSetMaxThinkingTokens?: (tokens: number | null | undefined, thinkingDisplay?: 'summarized' | 'omitted' | null) => void;
168
175
  /**
169
176
  * `set_permission_mode` from claude.ai. Return an error verdict to send