@anthropic-ai/claude-agent-sdk 0.3.278 → 0.3.281
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 +11 -1
- package/bridge.mjs +100 -159
- package/browser-sdk.js +54 -94
- package/manifest.json +23 -23
- package/manifest.zst.json +27 -27
- package/package.json +10 -10
- package/sdk-tools.d.ts +6 -6
- package/sdk.d.ts +139 -12
- package/sdk.mjs +85 -161
package/bridge.d.ts
CHANGED
|
@@ -181,7 +181,17 @@ export type AttachBridgeSessionOptions = {
|
|
|
181
181
|
ok: false;
|
|
182
182
|
error: string;
|
|
183
183
|
}>;
|
|
184
|
-
onSetMaxThinkingTokens?: (tokens: number | null | undefined, thinkingDisplay?: 'summarized' | 'omitted' | 'highlights' | null) =>
|
|
184
|
+
onSetMaxThinkingTokens?: (tokens: number | null | undefined, thinkingDisplay?: 'summarized' | 'omitted' | 'highlights' | null) => {
|
|
185
|
+
ok: true;
|
|
186
|
+
} | {
|
|
187
|
+
ok: false;
|
|
188
|
+
error: string;
|
|
189
|
+
} | void | Promise<{
|
|
190
|
+
ok: true;
|
|
191
|
+
} | {
|
|
192
|
+
ok: false;
|
|
193
|
+
error: string;
|
|
194
|
+
} | void>;
|
|
185
195
|
/**
|
|
186
196
|
* `set_permission_mode` from claude.ai. Return an error verdict to send
|
|
187
197
|
* an error control_response (vs silently false-succeeding). Omit if
|