[PR #113] [MERGED] feat: upgrade claude-agent-sdk to 0.2.38 and adapt to new SDK types #124

Closed
opened 2026-02-27 08:09:22 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/KeygraphHQ/shannon/pull/113
Author: @ezl-keygraph
Created: 2/10/2026
Status: Merged
Merged: 2/10/2026
Merged by: @ezl-keygraph

Base: mainHead: feat/upgrade-claude-agent-sdk-0.2.38


📝 Commits (2)

  • 9b71ebc feat: upgrade claude-agent-sdk to 0.2.38 and adapt to new SDK types
  • a8729ed chore: remove CLAUDE_CODE_MAX_OUTPUT_TOKENS from all config and docs

📊 Changes

11 files changed (+278 additions, -33 deletions)

View changed files

📝 .env.example (+0 -3)
📝 CLAUDE.md (+0 -1)
📝 README.md (+0 -2)
📝 docker-compose.yml (+0 -1)
📝 mcp-server/package-lock.json (+88 -9)
📝 mcp-server/package.json (+2 -2)
📝 package-lock.json (+87 -12)
📝 package.json (+2 -2)
📝 src/ai/claude-executor.ts (+1 -0)
📝 src/ai/message-handlers.ts (+86 -1)
📝 src/ai/types.ts (+12 -0)

📄 Description

Fixes #65 #62

  • Bump @anthropic-ai/claude-agent-sdk from 0.1.x to 0.2.38 (both root and mcp-server)
  • Bump zod from 3.x to 4.x (SDK peer dependency)
  • Add allowDangerouslySkipPermissions to query options (required for bypassPermissions)
  • Suppress new SDK message types (tool_progress, tool_use_summary, auth_status)
  • Use structured error field on assistant messages instead of text-sniffing
  • Add stop_reason to result message handling for diagnostics
  • Add SDKAssistantMessageError type matching SDK's string literal union

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/KeygraphHQ/shannon/pull/113 **Author:** [@ezl-keygraph](https://github.com/ezl-keygraph) **Created:** 2/10/2026 **Status:** ✅ Merged **Merged:** 2/10/2026 **Merged by:** [@ezl-keygraph](https://github.com/ezl-keygraph) **Base:** `main` ← **Head:** `feat/upgrade-claude-agent-sdk-0.2.38` --- ### 📝 Commits (2) - [`9b71ebc`](https://github.com/KeygraphHQ/shannon/commit/9b71ebc9f223354cf0ac53aaa5f0ac0ecde81e41) feat: upgrade claude-agent-sdk to 0.2.38 and adapt to new SDK types - [`a8729ed`](https://github.com/KeygraphHQ/shannon/commit/a8729ed68148182c4227175307150b42074aaeb9) chore: remove CLAUDE_CODE_MAX_OUTPUT_TOKENS from all config and docs ### 📊 Changes **11 files changed** (+278 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+0 -3) 📝 `CLAUDE.md` (+0 -1) 📝 `README.md` (+0 -2) 📝 `docker-compose.yml` (+0 -1) 📝 `mcp-server/package-lock.json` (+88 -9) 📝 `mcp-server/package.json` (+2 -2) 📝 `package-lock.json` (+87 -12) 📝 `package.json` (+2 -2) 📝 `src/ai/claude-executor.ts` (+1 -0) 📝 `src/ai/message-handlers.ts` (+86 -1) 📝 `src/ai/types.ts` (+12 -0) </details> ### 📄 Description Fixes #65 #62 - Bump @anthropic-ai/claude-agent-sdk from 0.1.x to 0.2.38 (both root and mcp-server) - Bump zod from 3.x to 4.x (SDK peer dependency) - Add allowDangerouslySkipPermissions to query options (required for bypassPermissions) - Suppress new SDK message types (tool_progress, tool_use_summary, auth_status) - Use structured error field on assistant messages instead of text-sniffing - Add stop_reason to result message handling for diagnostics - Add SDKAssistantMessageError type matching SDK's string literal union --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 08:09:22 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shannon-KeygraphHQ#124
No description provided.