diff --git a/clients/swift/Sources/Clawdforge/ForgeClient+Sessions.swift b/clients/swift/Sources/Clawdforge/ForgeClient+Sessions.swift index f1f60c9..683d71e 100644 --- a/clients/swift/Sources/Clawdforge/ForgeClient+Sessions.swift +++ b/clients/swift/Sources/Clawdforge/ForgeClient+Sessions.swift @@ -17,10 +17,10 @@ // `withSession(_:_:)` wraps create + work + auto-close (on success and on // throw). -@preconcurrency import Foundation +import Foundation #if canImport(FoundationNetworking) -@preconcurrency import FoundationNetworking +import FoundationNetworking #endif extension ForgeClient { diff --git a/clients/swift/Sources/Clawdforge/ForgeClient.swift b/clients/swift/Sources/Clawdforge/ForgeClient.swift index 4ec6850..d1dbf6e 100644 --- a/clients/swift/Sources/Clawdforge/ForgeClient.swift +++ b/clients/swift/Sources/Clawdforge/ForgeClient.swift @@ -37,7 +37,7 @@ extension URLSession { /// Async `(Data, URLResponse)` for a request — uses the native API on /// Apple, bridges the callback API on Linux. Behaves identically. - fileprivate func forgeData(for request: URLRequest) async throws -> (Data, URLResponse) { + internal func forgeData(for request: URLRequest) async throws -> (Data, URLResponse) { #if canImport(FoundationNetworking) return try await withCheckedThrowingContinuation { cont in let task = self.dataTask(with: request) { data, response, error in @@ -56,7 +56,7 @@ extension URLSession { /// Async upload from a file — uses the native API on Apple, bridges /// the callback API on Linux. - fileprivate func forgeUpload(for request: URLRequest, fromFile fileURL: URL) async throws -> (Data, URLResponse) { + internal func forgeUpload(for request: URLRequest, fromFile fileURL: URL) async throws -> (Data, URLResponse) { #if canImport(FoundationNetworking) return try await withCheckedThrowingContinuation { cont in let task = self.uploadTask(with: request, fromFile: fileURL) { data, response, error in