@anthropic-ai/claude-agent-sdk 0.3.174 → 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/assistant.mjs +4 -4
- package/bridge.d.ts +6 -1
- package/bridge.mjs +75 -75
- package/browser-sdk.js +1 -1
- package/manifest.json +19 -19
- package/manifest.zst.json +23 -23
- package/package.json +10 -10
- package/sdk.d.ts +4 -0
- package/sdk.mjs +40 -40
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) =>
|
|
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
|