Vibeleaderboard
← All Intel
Intel / repo

claude-agent-sdk-typescript v0.3.307

Source
github.com
Publisher
Anthropic
Author
ashwin-antTop Viber
Date

Context

Version 0.3.307 of Anthropic's TypeScript Claude Agent SDK, whose releases track Claude Code's, makes two changes for applications, according to the release notes. When a scheduled wakeup or task starts, the started frame of its command_lifecycle messages now carries a wakeup_source , and a wakeup also carries scheduled_for. The notes say the purpose is to let a host tell which one fired. The change is listed under a capability named lifecycle_wakeup_source_v1.

The second change is in the browser version of the SDK. Its query() call takes a new supportedDialogKinds option, which is sent when the initializes. If a host passes a non-empty list, it must also provide an onUserDialog handler. The notes do not say which dialog kinds exist.

The release also brings the SDK to parity with Claude Code v2.1.307. One of that release's fixes applies directly to SDK hosts: model switches through the SDK's setModel() were refused when the took more than 5 seconds to confirm the model, and Claude Code now waits up to 15 seconds.

Terms in this piece · Glossary
  • Host — The computer on which a process runs.
  • Field — One named piece of a record, such as name or approved_on; a record is one entity's set of values, one per field.
  • Session — One conversation or piece of work as a harness keeps it: a record of messages, tool calls and observations that can be saved and resumed.
  • API — Application programming interface: the agreed set of operations, inputs and outputs through which one piece of software uses another.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

More from ashwin-ant
Recommended reads