Follow Discord
Sweep 03 Nov 2026 · 22:27Z Build v2.1.318 536 read Stable v2.1.311 Latest v2.1.318 Next v2.1.318 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Agent SDK reference - TypeScript changedagent-sdk/typescript

Nearest release: v2.1.318, published an hour before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 3 Nov 2026 23:05 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 3 Nov 2026 23:07 UTC.

Upstream edited
Recorded here
Lines+4added
Lines−0removed
From line 2,179 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits128to this page, all time

The whole hunk

from line 2179, old and new numbered
/
lines

This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.

from line 2179
21792179 level: "info" | "notice" | "suggestion" | "warning";
21802180 tool_use_id?: string;
21812181 prevent_continuation?: boolean;
2182 tag?: string;
21822183 uuid: UUID;
21832184 session_id: string;
21842185};
from line 2555
25542555 matcher?: string;
25552556 hooks: HookCallback[];
25562557 timeout?: number; // Timeout in seconds for all hooks in this matcher
2558 onFailure?: "continue" | "block"; // "block" blocks the action when a callback fails
25572559}
25582560```
25592561 
2562To decide what `onFailure` covers, see [Block the action when a callback fails](https://code.claude.com/docs/en/agent-sdk/hooks.md#block-the-action-when-a-callback-fails).
2563 
25602564### `HookInput`
25612565 
25622566Union type of all hook input types.
from line 4793
47894793type PushNotificationOutput = {
47904794 message: string;
47914795 pushSent?: boolean;
4792 localSent?: boolean;
4793 disabledReason?: "config_off" | "user_present" | "no_transport";
4794 sentAt?: string;
4795};
4796```
4797 
4798Returns delivery details, including whether a push or local notification was sent and why delivery was skipped.
4799 
4800### ReportFindings
4801 
4802**Tool name:** `ReportFindings`
4803 
4804``
4796 localSe
Feedback