-
Notifications
You must be signed in to change notification settings - Fork 3
feat(core): bump claude-agent-sdk ^0.1.0 → ^0.3.x (fixes #303) #304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+282
−158
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| --- | ||
| "@herdctl/core": minor | ||
| --- | ||
|
|
||
| Bump `@anthropic-ai/claude-agent-sdk` from `^0.1.0` (resolved 0.1.77) to | ||
| `^0.3.0` (resolves 0.3.205). | ||
|
|
||
| The pinned `^0.1.0` range could not cross a `0.x` minor, freezing herdctl on a | ||
| stale SDK line whose bundled JS harness lacks the current agentic toolset | ||
| (`ScheduleWakeup`, `ToolSearch`, `Cron*`, `Monitor`, …). `0.3.x` drops the | ||
| bundled harness and instead extracts/runs the native Claude Code binary, which | ||
| carries those tools — unblocking cross-turn autonomy (e.g. a persistent | ||
| `openSession()` agent scheduling `ScheduleWakeup` and being re-invoked when it | ||
| fires). | ||
|
|
||
| Adapts the SDK adapter surface to the 0.3.x types: | ||
|
|
||
| - `Query.interrupt()` now resolves to an optional interrupt-receipt object | ||
| instead of `void`; the streaming `RuntimeSession.interrupt()` awaits and | ||
| discards it to keep its fire-and-forget `Promise<void>` contract. | ||
| - The SDK's `tool()` handler return type now uses a literal-typed MCP | ||
| `CallToolResult`; the injected-MCP adapter casts `InjectedMcpToolDef.handler` | ||
| at that boundary so the transport-agnostic tool definition stays SDK-free. | ||
|
|
||
| No `@herdctl/core` public API changes. `query()`, `createSdkMcpServer()`, | ||
| `tool()`, streaming-input `AsyncIterable<SDKUserMessage>`, and the `Query` | ||
| control methods (`interrupt`, `supportedCommands`, `setModel`) all remain | ||
| compatible. Note: the SDK peer-depends on `zod@^4`, while core stays on | ||
| `zod@^3`; the schemas passed to `tool()` remain structurally compatible and | ||
| typecheck/build/tests are green. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: edspencer/herdctl
Length of output: 378
🏁 Script executed:
Repository: edspencer/herdctl
Length of output: 50373
🏁 Script executed:
Repository: edspencer/herdctl
Length of output: 2852
Align
zodwith the SDK peer rangepackages/core/package.json:21-28@anthropic-ai/claude-agent-sdk@0.3.205requireszod@^4.0.0, but core still provideszod@^3.22.0. This leaves the package outside the SDK’s declared peer range and will trigger peer-dependency warnings; update core to zod 4 or use an SDK release that accepts zod 3.🤖 Prompt for AI Agents