From 51ab3477e49f8883ff1d1bd186c0f18673bd6901 Mon Sep 17 00:00:00 2001 From: Arihant Daga Date: Wed, 10 Jun 2026 12:25:09 +0530 Subject: [PATCH] Bump swift-sdk to 0.12 to fix build under Swift 6.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit swift-sdk 0.10.2 fails to compile on the Swift 6.3 toolchain — its NetworkTransport captures a var across an actor boundary, which 6.3's strict-concurrency checker now treats as a hard error. 0.12 fixes the race upstream. Adapts the one Tool.Content.text destructuring site to the new tuple-shaped API and raises the manifest floor to match. Co-Authored-By: Claude Opus 4.8 (1M context) --- Package.resolved | 4 ++-- Package.swift | 2 +- Sources/EngramKit/MemoryTools+Core.swift | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Package.resolved b/Package.resolved index 0ab59d0..75a06a5 100644 --- a/Package.resolved +++ b/Package.resolved @@ -348,8 +348,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/modelcontextprotocol/swift-sdk.git", "state" : { - "revision" : "c0407a0b52677cb395d824cac2879b963075ba8c", - "version" : "0.10.2" + "revision" : "a0ae212ebf6eab5f754c3129608bc5557637e605", + "version" : "0.12.1" } }, { diff --git a/Package.swift b/Package.swift index ea76ca9..9d340f0 100644 --- a/Package.swift +++ b/Package.swift @@ -16,7 +16,7 @@ let package = Package( .library(name: "EngramModels", targets: ["EngramModels"]), ], dependencies: [ - .package(url: "https://github.com/modelcontextprotocol/swift-sdk.git", from: "0.10.0"), + .package(url: "https://github.com/modelcontextprotocol/swift-sdk.git", from: "0.12.0"), .package(url: "https://github.com/jsflax/lattice", from: "0.4.1"), .package(url: "https://github.com/jsflax/SwiftLM.git", branch: "main"), .package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.5.0"), diff --git a/Sources/EngramKit/MemoryTools+Core.swift b/Sources/EngramKit/MemoryTools+Core.swift index e3394cb..b475494 100644 --- a/Sources/EngramKit/MemoryTools+Core.swift +++ b/Sources/EngramKit/MemoryTools+Core.swift @@ -19,7 +19,7 @@ extension MemoryTools { // Extract text from the CallTool.Result guard let textContent = result.content.first else { return nil } switch textContent { - case .text(let text): + case .text(let text, _, _): return text == "No memories found." ? nil : text default: return nil