@anthropic-ai/claude-agent-sdk 0.3.252 → 0.3.257

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
@@ -158,6 +158,16 @@ export type AttachBridgeSessionOptions = {
158
158
  * then answers with a "not supported in this context" error.
159
159
  */
160
160
  onStopTask?: (taskId: string) => Promise<void>;
161
+ /**
162
+ * `background_tasks` from claude.ai — the client's Ctrl+B. With a
163
+ * toolUseId, background the single foreground task that tool_use block
164
+ * started and return whether one was found; without, background every
165
+ * foreground task and return true. May answer asynchronously (e.g. by
166
+ * delegating to `Query.backgroundTasks()`); a rejection is sent as an
167
+ * error reply. Omit if the host has no task registry — the CLI then
168
+ * answers with a "not supported in this context" error.
169
+ */
170
+ onBackgroundTasks?: (toolUseId: string | undefined) => boolean | Promise<boolean>;
161
171
  onSetModel?: (model: string | undefined) => {
162
172
  ok: true;
163
173
  notices?: string[];