The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Swollama, reference master (72dc85), with Swift 6.1 for Wasm on 21 Jul 2026 16:03:13 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

 95 |         #else
 96 |
 97 |             let (bytes, response) = try await session.bytes(for: request)
    |                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 98 |             let stream = AsyncThrowingStream<Data, Error> { continuation in
 99 |                 let task = Task {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:139:20: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
137 |         ) {
138 |             if challenge.protectionSpace.authenticationMethod
139 |                 == NSURLAuthenticationMethodServerTrust,
    |                    `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
140 |                 let trust = challenge.protectionSpace.serverTrust
141 |             {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:138:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
136 |                 @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
137 |         ) {
138 |             if challenge.protectionSpace.authenticationMethod
    |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
139 |                 == NSURLAuthenticationMethodServerTrust,
140 |                 let trust = challenge.protectionSpace.serverTrust
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:140:39: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
138 |             if challenge.protectionSpace.authenticationMethod
139 |                 == NSURLAuthenticationMethodServerTrust,
140 |                 let trust = challenge.protectionSpace.serverTrust
    |                                       `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
141 |             {
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:36: error: cannot infer contextual base in reference to member 'useCredential'
140 |                 let trust = challenge.protectionSpace.serverTrust
141 |             {
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
    |                                    `- error: cannot infer contextual base in reference to member 'useCredential'
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:51: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
140 |                 let trust = challenge.protectionSpace.serverTrust
141 |             {
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
    |                                                   `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:36: error: cannot infer contextual base in reference to member 'performDefaultHandling'
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
    |                                    `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
145 |             }
146 |         }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:60: error: 'nil' requires a contextual type
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
    |                                                            `- error: 'nil' requires a contextual type
145 |             }
146 |         }
[18/46] Compiling Swollama OllamaClient+Generation.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:11:22: error: cannot find type 'URLRequest' in scope
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
 11 |         for request: URLRequest,
    |                      `- error: cannot find type 'URLRequest' in scope
 12 |         configuration: OllamaConfiguration
 13 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:10:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         for request: URLRequest,
 12 |         configuration: OllamaConfiguration
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:13:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         for request: URLRequest,
 12 |         configuration: OllamaConfiguration
 13 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         #if os(Linux)
 15 |             return try await curlStreamTask(for: request, configuration: configuration)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:70:22: error: cannot find type 'URLRequest' in scope
 68 |     static func streamTask(
 69 |         session: URLSession,
 70 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 71 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
 72 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:12:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |
 11 |     static func createSession(
 12 |         configuration: URLSessionConfiguration,
    |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |         allowsInsecureConnections: Bool = false
 14 |     ) -> URLSession {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:14:10: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |         configuration: URLSessionConfiguration,
 13 |         allowsInsecureConnections: Bool = false
 14 |     ) -> URLSession {
    |          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |         #if !os(Linux)
 16 |             if allowsInsecureConnections {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:27:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |     }
 26 |
 27 |     static func createDefaultConfiguration() -> URLSessionConfiguration {
    |                                                 `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |         let config = URLSessionConfiguration.default
 29 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:44:22: error: cannot find type 'URLRequest' in scope
 42 |     static func dataTask(
 43 |         session: URLSession,
 44 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 45 |     ) async throws -> (Data, URLResponse) {
 46 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:43:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |
 42 |     static func dataTask(
 43 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         for request: URLRequest
 45 |     ) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:45:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |         session: URLSession,
 44 |         for request: URLRequest
 45 |     ) async throws -> (Data, URLResponse) {
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |         #if canImport(FoundationNetworking)
 47 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:69:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |
 68 |     static func streamTask(
 69 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         for request: URLRequest
 71 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:71:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         session: URLSession,
 70 |         for request: URLRequest
 71 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         #if canImport(FoundationNetworking)
 73 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:131:50: error: cannot find type 'URLSessionDelegate' in scope
129 |     ///
130 |     /// Installed only when ``OllamaConfiguration/allowsInsecureConnections`` is `true`.
131 |     final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
    |                                                  `- error: cannot find type 'URLSessionDelegate' in scope
132 |         func urlSession(
133 |             _ session: URLSession,
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:136:39: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
134 |             didReceive challenge: URLAuthenticationChallenge,
135 |             completionHandler:
136 |                 @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                       `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
137 |         ) {
138 |             if challenge.protectionSpace.authenticationMethod
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:133:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |     final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
132 |         func urlSession(
133 |             _ session: URLSession,
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 |             didReceive challenge: URLAuthenticationChallenge,
135 |             completionHandler:
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:134:35: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 |         func urlSession(
133 |             _ session: URLSession,
134 |             didReceive challenge: URLAuthenticationChallenge,
    |                                   `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |             completionHandler:
136 |                 @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:17:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 15 |         #if !os(Linux)
 16 |             if allowsInsecureConnections {
 17 |                 return URLSession(
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 18 |                     configuration: configuration,
 19 |                     delegate: InsecureTrustDelegate(),
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:20:36: error: 'nil' requires a contextual type
 18 |                     configuration: configuration,
 19 |                     delegate: InsecureTrustDelegate(),
 20 |                     delegateQueue: nil
    |                                    `- error: 'nil' requires a contextual type
 21 |                 )
 22 |             }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:24:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 22 |             }
 23 |         #endif
 24 |         return URLSession(configuration: configuration)
    |                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 25 |     }
 26 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:28:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 26 |
 27 |     static func createDefaultConfiguration() -> URLSessionConfiguration {
 28 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 29 |
 30 |         config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:31:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 29 |
 30 |         config.urlCache = nil
 31 |         config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
    |                                      `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 32 |
 33 |         #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:64:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 62 |         #else
 63 |
 64 |             return try await session.data(for: request)
    |                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 65 |         #endif
 66 |     }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:97:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 95 |         #else
 96 |
 97 |             let (bytes, response) = try await session.bytes(for: request)
    |                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 98 |             let stream = AsyncThrowingStream<Data, Error> { continuation in
 99 |                 let task = Task {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:139:20: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
137 |         ) {
138 |             if challenge.protectionSpace.authenticationMethod
139 |                 == NSURLAuthenticationMethodServerTrust,
    |                    `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
140 |                 let trust = challenge.protectionSpace.serverTrust
141 |             {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:138:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
136 |                 @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
137 |         ) {
138 |             if challenge.protectionSpace.authenticationMethod
    |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
139 |                 == NSURLAuthenticationMethodServerTrust,
140 |                 let trust = challenge.protectionSpace.serverTrust
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:140:39: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
138 |             if challenge.protectionSpace.authenticationMethod
139 |                 == NSURLAuthenticationMethodServerTrust,
140 |                 let trust = challenge.protectionSpace.serverTrust
    |                                       `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
141 |             {
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:36: error: cannot infer contextual base in reference to member 'useCredential'
140 |                 let trust = challenge.protectionSpace.serverTrust
141 |             {
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
    |                                    `- error: cannot infer contextual base in reference to member 'useCredential'
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:51: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
140 |                 let trust = challenge.protectionSpace.serverTrust
141 |             {
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
    |                                                   `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:36: error: cannot infer contextual base in reference to member 'performDefaultHandling'
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
    |                                    `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
145 |             }
146 |         }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:60: error: 'nil' requires a contextual type
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
    |                                                            `- error: 'nil' requires a contextual type
145 |             }
146 |         }
[19/46] Compiling Swollama GenerationOptions.swift
[20/46] Compiling Swollama ChatRequest.swift
[21/46] Compiling Swollama ChatResponse.swift
[22/46] Compiling Swollama CreateModelRequest.swift
[23/46] Compiling Swollama EmbeddingRequest.swift
[24/46] Compiling Swollama EmbeddingResponse.swift
[25/46] Compiling Swollama GenerateRequest.swift
[26/46] Compiling Swollama GenerateResponse.swift
[27/46] Compiling Swollama JSONValue.swift
[28/46] Compiling Swollama LegacyEmbedding.swift
[29/46] Compiling Swollama Logprob.swift
[30/46] Compiling Swollama ModelInformation.swift
[31/46] Compiling Swollama ModelsResponse.swift
[32/46] Compiling Swollama OllamaDate.swift
[33/46] Compiling Swollama OllamaModelName.swift
[34/46] Compiling Swollama OperationProgress.swift
[35/46] Compiling Swollama RunningModelsResponse.swift
[36/46] Compiling Swollama ShowModelRequest.swift
[37/46] Compiling Swollama ThinkingMode.swift
[38/46] Compiling Swollama ToolCall.swift
[39/46] Compiling Swollama OllamaProtocol+Convenience.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:44:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     private let apiKey: String
 43 |     private let baseURL: URL
 44 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// Creates a new Ollama web search client.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     ) {
 57 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:96:23: error: cannot find 'URLRequest' in scope
 94 |     ) async throws -> R {
 95 |         let url = baseURL.appendingPathComponent(path)
 96 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 97 |         request.httpMethod = "POST"
 98 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:102:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 |         request.httpBody = try JSONEncoder().encode(body)
101 |
102 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
103 |
104 |         guard let httpResponse = response as? HTTPURLResponse else {
[40/46] Compiling Swollama OllamaProtocol.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:44:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     private let apiKey: String
 43 |     private let baseURL: URL
 44 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// Creates a new Ollama web search client.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     ) {
 57 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:96:23: error: cannot find 'URLRequest' in scope
 94 |     ) async throws -> R {
 95 |         let url = baseURL.appendingPathComponent(path)
 96 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 97 |         request.httpMethod = "POST"
 98 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:102:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 |         request.httpBody = try JSONEncoder().encode(body)
101 |
102 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
103 |
104 |         guard let httpResponse = response as? HTTPURLResponse else {
[41/46] Compiling Swollama OllamaWebSearchClient.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:44:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     private let apiKey: String
 43 |     private let baseURL: URL
 44 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// Creates a new Ollama web search client.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     ) {
 57 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:96:23: error: cannot find 'URLRequest' in scope
 94 |     ) async throws -> R {
 95 |         let url = baseURL.appendingPathComponent(path)
 96 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 97 |         request.httpMethod = "POST"
 98 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:102:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 |         request.httpBody = try JSONEncoder().encode(body)
101 |
102 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
103 |
104 |         guard let httpResponse = response as? HTTPURLResponse else {
[42/46] Compiling Swollama WebSearchModels.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:44:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     private let apiKey: String
 43 |     private let baseURL: URL
 44 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// Creates a new Ollama web search client.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     ) {
 57 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:96:23: error: cannot find 'URLRequest' in scope
 94 |     ) async throws -> R {
 95 |         let url = baseURL.appendingPathComponent(path)
 96 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 97 |         request.httpMethod = "POST"
 98 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:102:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 |         request.httpBody = try JSONEncoder().encode(body)
101 |
102 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
103 |
104 |         guard let httpResponse = response as? HTTPURLResponse else {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/40] Emitting module Swollama
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:11:22: error: cannot find type 'URLRequest' in scope
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
 11 |         for request: URLRequest,
    |                      `- error: cannot find type 'URLRequest' in scope
 12 |         configuration: OllamaConfiguration
 13 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:10:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         for request: URLRequest,
 12 |         configuration: OllamaConfiguration
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:13:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         for request: URLRequest,
 12 |         configuration: OllamaConfiguration
 13 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         #if os(Linux)
 15 |             return try await curlStreamTask(for: request, configuration: configuration)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:12:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |
 11 |     static func createSession(
 12 |         configuration: URLSessionConfiguration,
    |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |         allowsInsecureConnections: Bool = false
 14 |     ) -> URLSession {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:14:10: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |         configuration: URLSessionConfiguration,
 13 |         allowsInsecureConnections: Bool = false
 14 |     ) -> URLSession {
    |          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |         #if !os(Linux)
 16 |             if allowsInsecureConnections {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:27:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |     }
 26 |
 27 |     static func createDefaultConfiguration() -> URLSessionConfiguration {
    |                                                 `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |         let config = URLSessionConfiguration.default
 29 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:44:22: error: cannot find type 'URLRequest' in scope
 42 |     static func dataTask(
 43 |         session: URLSession,
 44 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 45 |     ) async throws -> (Data, URLResponse) {
 46 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:43:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |
 42 |     static func dataTask(
 43 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         for request: URLRequest
 45 |     ) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:45:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |         session: URLSession,
 44 |         for request: URLRequest
 45 |     ) async throws -> (Data, URLResponse) {
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |         #if canImport(FoundationNetworking)
 47 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:70:22: error: cannot find type 'URLRequest' in scope
 68 |     static func streamTask(
 69 |         session: URLSession,
 70 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 71 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
 72 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:69:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |
 68 |     static func streamTask(
 69 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         for request: URLRequest
 71 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:71:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         session: URLSession,
 70 |         for request: URLRequest
 71 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         #if canImport(FoundationNetworking)
 73 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:131:50: error: cannot find type 'URLSessionDelegate' in scope
129 |     ///
130 |     /// Installed only when ``OllamaConfiguration/allowsInsecureConnections`` is `true`.
131 |     final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
    |                                                  `- error: cannot find type 'URLSessionDelegate' in scope
132 |         func urlSession(
133 |             _ session: URLSession,
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:136:39: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
134 |             didReceive challenge: URLAuthenticationChallenge,
135 |             completionHandler:
136 |                 @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                       `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
137 |         ) {
138 |             if challenge.protectionSpace.authenticationMethod
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:133:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |     final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
132 |         func urlSession(
133 |             _ session: URLSession,
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 |             didReceive challenge: URLAuthenticationChallenge,
135 |             completionHandler:
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:134:35: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 |         func urlSession(
133 |             _ session: URLSession,
134 |             didReceive challenge: URLAuthenticationChallenge,
    |                                   `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |             completionHandler:
136 |                 @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:55:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |     public nonisolated let configuration: OllamaConfiguration
 54 |
 55 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     let decoder: JSONDecoder
 57 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:100:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         baseURL: URL,
 99 |         configuration: OllamaConfiguration,
100 |         session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     ) {
102 |         self.baseURL = baseURL
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:124:61: error: cannot find type 'URLRequest' in scope
122 |     }
123 |
124 |     nonisolated func applyStandardHeaders(to request: inout URLRequest, hasBody: Bool) {
    |                                                             `- error: cannot find type 'URLRequest' in scope
125 |         if hasBody {
126 |             request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:199:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 |
198 |     /// Parses a numeric `Retry-After` header into seconds.
199 |     static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
    |                                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 |         guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
201 |         return TimeInterval(value.trimmingCharacters(in: .whitespaces))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:72:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 70 |
 71 |         let config = NetworkingSupport.createDefaultConfiguration()
 72 |         config.timeoutIntervalForRequest = configuration.timeoutInterval
    |                `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 73 |
 74 |         self.session = NetworkingSupport.createSession(
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:44:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     private let apiKey: String
 43 |     private let baseURL: URL
 44 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// Creates a new Ollama web search client.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     ) {
 57 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
[3/44] Compiling Swollama OllamaClient+ModelManagement.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:55:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |     public nonisolated let configuration: OllamaConfiguration
 54 |
 55 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     let decoder: JSONDecoder
 57 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:100:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         baseURL: URL,
 99 |         configuration: OllamaConfiguration,
100 |         session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     ) {
102 |         self.baseURL = baseURL
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:124:61: error: cannot find type 'URLRequest' in scope
122 |     }
123 |
124 |     nonisolated func applyStandardHeaders(to request: inout URLRequest, hasBody: Bool) {
    |                                                             `- error: cannot find type 'URLRequest' in scope
125 |         if hasBody {
126 |             request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:199:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 |
198 |     /// Parses a numeric `Retry-After` header into seconds.
199 |     static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
    |                                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 |         guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
201 |         return TimeInterval(value.trimmingCharacters(in: .whitespaces))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:72:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 70 |
 71 |         let config = NetworkingSupport.createDefaultConfiguration()
 72 |         config.timeoutIntervalForRequest = configuration.timeoutInterval
    |                `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 73 |
 74 |         self.session = NetworkingSupport.createSession(
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:139:23: error: cannot find 'URLRequest' in scope
137 |     ) async throws -> Data {
138 |         let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
139 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
140 |         request.httpMethod = method
141 |         request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:44:22: error: cannot find type 'URLRequest' in scope
 42 |     static func dataTask(
 43 |         session: URLSession,
 44 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 45 |     ) async throws -> (Data, URLResponse) {
 46 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:200:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
198 |     /// Parses a numeric `Retry-After` header into seconds.
199 |     static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
200 |         guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
201 |         return TimeInterval(value.trimmingCharacters(in: .whitespaces))
202 |     }
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:201:59: error: cannot infer contextual base in reference to member 'whitespaces'
199 |     static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
200 |         guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
201 |         return TimeInterval(value.trimmingCharacters(in: .whitespaces))
    |                                                           `- error: cannot infer contextual base in reference to member 'whitespaces'
202 |     }
203 |
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:222:35: error: cannot find 'URLRequest' in scope
220 |                         endpoint
221 |                     )
222 |                     var request = URLRequest(url: url)
    |                                   `- error: cannot find 'URLRequest' in scope
223 |                     request.httpMethod = method
224 |                     request.httpBody = body
[4/44] Compiling Swollama OllamaClient.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:55:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |     public nonisolated let configuration: OllamaConfiguration
 54 |
 55 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     let decoder: JSONDecoder
 57 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:100:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         baseURL: URL,
 99 |         configuration: OllamaConfiguration,
100 |         session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     ) {
102 |         self.baseURL = baseURL
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:124:61: error: cannot find type 'URLRequest' in scope
122 |     }
123 |
124 |     nonisolated func applyStandardHeaders(to request: inout URLRequest, hasBody: Bool) {
    |                                                             `- error: cannot find type 'URLRequest' in scope
125 |         if hasBody {
126 |             request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:199:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 |
198 |     /// Parses a numeric `Retry-After` header into seconds.
199 |     static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
    |                                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 |         guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
201 |         return TimeInterval(value.trimmingCharacters(in: .whitespaces))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:72:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 70 |
 71 |         let config = NetworkingSupport.createDefaultConfiguration()
 72 |         config.timeoutIntervalForRequest = configuration.timeoutInterval
    |                `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 73 |
 74 |         self.session = NetworkingSupport.createSession(
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:139:23: error: cannot find 'URLRequest' in scope
137 |     ) async throws -> Data {
138 |         let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
139 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
140 |         request.httpMethod = method
141 |         request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:44:22: error: cannot find type 'URLRequest' in scope
 42 |     static func dataTask(
 43 |         session: URLSession,
 44 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 45 |     ) async throws -> (Data, URLResponse) {
 46 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:200:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
198 |     /// Parses a numeric `Retry-After` header into seconds.
199 |     static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
200 |         guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
201 |         return TimeInterval(value.trimmingCharacters(in: .whitespaces))
202 |     }
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:201:59: error: cannot infer contextual base in reference to member 'whitespaces'
199 |     static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
200 |         guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
201 |         return TimeInterval(value.trimmingCharacters(in: .whitespaces))
    |                                                           `- error: cannot infer contextual base in reference to member 'whitespaces'
202 |     }
203 |
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:222:35: error: cannot find 'URLRequest' in scope
220 |                         endpoint
221 |                     )
222 |                     var request = URLRequest(url: url)
    |                                   `- error: cannot find 'URLRequest' in scope
223 |                     request.httpMethod = method
224 |                     request.httpBody = body
[5/44] Compiling Swollama OllamaConfiguration.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:55:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |     public nonisolated let configuration: OllamaConfiguration
 54 |
 55 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     let decoder: JSONDecoder
 57 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:100:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         baseURL: URL,
 99 |         configuration: OllamaConfiguration,
100 |         session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     ) {
102 |         self.baseURL = baseURL
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:124:61: error: cannot find type 'URLRequest' in scope
122 |     }
123 |
124 |     nonisolated func applyStandardHeaders(to request: inout URLRequest, hasBody: Bool) {
    |                                                             `- error: cannot find type 'URLRequest' in scope
125 |         if hasBody {
126 |             request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:199:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 |
198 |     /// Parses a numeric `Retry-After` header into seconds.
199 |     static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
    |                                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 |         guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
201 |         return TimeInterval(value.trimmingCharacters(in: .whitespaces))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:72:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 70 |
 71 |         let config = NetworkingSupport.createDefaultConfiguration()
 72 |         config.timeoutIntervalForRequest = configuration.timeoutInterval
    |                `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 73 |
 74 |         self.session = NetworkingSupport.createSession(
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:139:23: error: cannot find 'URLRequest' in scope
137 |     ) async throws -> Data {
138 |         let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
139 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
140 |         request.httpMethod = method
141 |         request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:44:22: error: cannot find type 'URLRequest' in scope
 42 |     static func dataTask(
 43 |         session: URLSession,
 44 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 45 |     ) async throws -> (Data, URLResponse) {
 46 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:200:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
198 |     /// Parses a numeric `Retry-After` header into seconds.
199 |     static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
200 |         guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
201 |         return TimeInterval(value.trimmingCharacters(in: .whitespaces))
202 |     }
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:201:59: error: cannot infer contextual base in reference to member 'whitespaces'
199 |     static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
200 |         guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
201 |         return TimeInterval(value.trimmingCharacters(in: .whitespaces))
    |                                                           `- error: cannot infer contextual base in reference to member 'whitespaces'
202 |     }
203 |
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:222:35: error: cannot find 'URLRequest' in scope
220 |                         endpoint
221 |                     )
222 |                     var request = URLRequest(url: url)
    |                                   `- error: cannot find 'URLRequest' in scope
223 |                     request.httpMethod = method
224 |                     request.httpBody = body
[6/44] Compiling Swollama OllamaError.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:55:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |     public nonisolated let configuration: OllamaConfiguration
 54 |
 55 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     let decoder: JSONDecoder
 57 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:100:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         baseURL: URL,
 99 |         configuration: OllamaConfiguration,
100 |         session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     ) {
102 |         self.baseURL = baseURL
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:124:61: error: cannot find type 'URLRequest' in scope
122 |     }
123 |
124 |     nonisolated func applyStandardHeaders(to request: inout URLRequest, hasBody: Bool) {
    |                                                             `- error: cannot find type 'URLRequest' in scope
125 |         if hasBody {
126 |             request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:199:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 |
198 |     /// Parses a numeric `Retry-After` header into seconds.
199 |     static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
    |                                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 |         guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
201 |         return TimeInterval(value.trimmingCharacters(in: .whitespaces))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:72:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 70 |
 71 |         let config = NetworkingSupport.createDefaultConfiguration()
 72 |         config.timeoutIntervalForRequest = configuration.timeoutInterval
    |                `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 73 |
 74 |         self.session = NetworkingSupport.createSession(
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:139:23: error: cannot find 'URLRequest' in scope
137 |     ) async throws -> Data {
138 |         let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
139 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
140 |         request.httpMethod = method
141 |         request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:44:22: error: cannot find type 'URLRequest' in scope
 42 |     static func dataTask(
 43 |         session: URLSession,
 44 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 45 |     ) async throws -> (Data, URLResponse) {
 46 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:200:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
198 |     /// Parses a numeric `Retry-After` header into seconds.
199 |     static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
200 |         guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
201 |         return TimeInterval(value.trimmingCharacters(in: .whitespaces))
202 |     }
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:201:59: error: cannot infer contextual base in reference to member 'whitespaces'
199 |     static func retryAfterSeconds(from response: HTTPURLResponse) -> TimeInterval? {
200 |         guard let value = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
201 |         return TimeInterval(value.trimmingCharacters(in: .whitespaces))
    |                                                           `- error: cannot infer contextual base in reference to member 'whitespaces'
202 |     }
203 |
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:222:35: error: cannot find 'URLRequest' in scope
220 |                         endpoint
221 |                     )
222 |                     var request = URLRequest(url: url)
    |                                   `- error: cannot find 'URLRequest' in scope
223 |                     request.httpMethod = method
224 |                     request.httpBody = body
[7/44] Compiling Swollama OllamaProtocol+Convenience.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:44:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     private let apiKey: String
 43 |     private let baseURL: URL
 44 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// Creates a new Ollama web search client.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     ) {
 57 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:96:23: error: cannot find 'URLRequest' in scope
 94 |     ) async throws -> R {
 95 |         let url = baseURL.appendingPathComponent(path)
 96 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 97 |         request.httpMethod = "POST"
 98 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:102:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 |         request.httpBody = try JSONEncoder().encode(body)
101 |
102 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
103 |
104 |         guard let httpResponse = response as? HTTPURLResponse else {
[8/44] Compiling Swollama OllamaProtocol.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:44:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     private let apiKey: String
 43 |     private let baseURL: URL
 44 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// Creates a new Ollama web search client.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     ) {
 57 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:96:23: error: cannot find 'URLRequest' in scope
 94 |     ) async throws -> R {
 95 |         let url = baseURL.appendingPathComponent(path)
 96 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 97 |         request.httpMethod = "POST"
 98 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:102:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 |         request.httpBody = try JSONEncoder().encode(body)
101 |
102 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
103 |
104 |         guard let httpResponse = response as? HTTPURLResponse else {
[9/44] Compiling Swollama OllamaWebSearchClient.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:44:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     private let apiKey: String
 43 |     private let baseURL: URL
 44 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// Creates a new Ollama web search client.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     ) {
 57 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:96:23: error: cannot find 'URLRequest' in scope
 94 |     ) async throws -> R {
 95 |         let url = baseURL.appendingPathComponent(path)
 96 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 97 |         request.httpMethod = "POST"
 98 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:102:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 |         request.httpBody = try JSONEncoder().encode(body)
101 |
102 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
103 |
104 |         guard let httpResponse = response as? HTTPURLResponse else {
[10/44] Compiling Swollama WebSearchModels.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:44:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     private let apiKey: String
 43 |     private let baseURL: URL
 44 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// Creates a new Ollama web search client.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     ) {
 57 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:96:23: error: cannot find 'URLRequest' in scope
 94 |     ) async throws -> R {
 95 |         let url = baseURL.appendingPathComponent(path)
 96 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 97 |         request.httpMethod = "POST"
 98 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:102:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 |         request.httpBody = try JSONEncoder().encode(body)
101 |
102 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
103 |
104 |         guard let httpResponse = response as? HTTPURLResponse else {
[11/44] Compiling Swollama OperationProgress.swift
[12/44] Compiling Swollama RunningModelsResponse.swift
[13/44] Compiling Swollama ShowModelRequest.swift
[14/44] Compiling Swollama ThinkingMode.swift
[15/44] Compiling Swollama ToolCall.swift
[16/44] Compiling Swollama ToolDefinition.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:11:22: error: cannot find type 'URLRequest' in scope
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
 11 |         for request: URLRequest,
    |                      `- error: cannot find type 'URLRequest' in scope
 12 |         configuration: OllamaConfiguration
 13 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:10:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         for request: URLRequest,
 12 |         configuration: OllamaConfiguration
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:13:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         for request: URLRequest,
 12 |         configuration: OllamaConfiguration
 13 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         #if os(Linux)
 15 |             return try await curlStreamTask(for: request, configuration: configuration)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:70:22: error: cannot find type 'URLRequest' in scope
 68 |     static func streamTask(
 69 |         session: URLSession,
 70 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 71 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
 72 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:12:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |
 11 |     static func createSession(
 12 |         configuration: URLSessionConfiguration,
    |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |         allowsInsecureConnections: Bool = false
 14 |     ) -> URLSession {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:14:10: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |         configuration: URLSessionConfiguration,
 13 |         allowsInsecureConnections: Bool = false
 14 |     ) -> URLSession {
    |          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |         #if !os(Linux)
 16 |             if allowsInsecureConnections {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:27:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |     }
 26 |
 27 |     static func createDefaultConfiguration() -> URLSessionConfiguration {
    |                                                 `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |         let config = URLSessionConfiguration.default
 29 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:44:22: error: cannot find type 'URLRequest' in scope
 42 |     static func dataTask(
 43 |         session: URLSession,
 44 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 45 |     ) async throws -> (Data, URLResponse) {
 46 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:43:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |
 42 |     static func dataTask(
 43 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         for request: URLRequest
 45 |     ) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:45:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |         session: URLSession,
 44 |         for request: URLRequest
 45 |     ) async throws -> (Data, URLResponse) {
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |         #if canImport(FoundationNetworking)
 47 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:69:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |
 68 |     static func streamTask(
 69 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         for request: URLRequest
 71 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:71:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         session: URLSession,
 70 |         for request: URLRequest
 71 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         #if canImport(FoundationNetworking)
 73 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:131:50: error: cannot find type 'URLSessionDelegate' in scope
129 |     ///
130 |     /// Installed only when ``OllamaConfiguration/allowsInsecureConnections`` is `true`.
131 |     final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
    |                                                  `- error: cannot find type 'URLSessionDelegate' in scope
132 |         func urlSession(
133 |             _ session: URLSession,
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:136:39: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
134 |             didReceive challenge: URLAuthenticationChallenge,
135 |             completionHandler:
136 |                 @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                       `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
137 |         ) {
138 |             if challenge.protectionSpace.authenticationMethod
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:133:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |     final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
132 |         func urlSession(
133 |             _ session: URLSession,
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 |             didReceive challenge: URLAuthenticationChallenge,
135 |             completionHandler:
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:134:35: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 |         func urlSession(
133 |             _ session: URLSession,
134 |             didReceive challenge: URLAuthenticationChallenge,
    |                                   `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |             completionHandler:
136 |                 @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:17:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 15 |         #if !os(Linux)
 16 |             if allowsInsecureConnections {
 17 |                 return URLSession(
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 18 |                     configuration: configuration,
 19 |                     delegate: InsecureTrustDelegate(),
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:20:36: error: 'nil' requires a contextual type
 18 |                     configuration: configuration,
 19 |                     delegate: InsecureTrustDelegate(),
 20 |                     delegateQueue: nil
    |                                    `- error: 'nil' requires a contextual type
 21 |                 )
 22 |             }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:24:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 22 |             }
 23 |         #endif
 24 |         return URLSession(configuration: configuration)
    |                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 25 |     }
 26 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:28:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 26 |
 27 |     static func createDefaultConfiguration() -> URLSessionConfiguration {
 28 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 29 |
 30 |         config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:31:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 29 |
 30 |         config.urlCache = nil
 31 |         config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
    |                                      `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 32 |
 33 |         #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:64:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 62 |         #else
 63 |
 64 |             return try await session.data(for: request)
    |                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 65 |         #endif
 66 |     }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:97:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 95 |         #else
 96 |
 97 |             let (bytes, response) = try await session.bytes(for: request)
    |                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 98 |             let stream = AsyncThrowingStream<Data, Error> { continuation in
 99 |                 let task = Task {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:139:20: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
137 |         ) {
138 |             if challenge.protectionSpace.authenticationMethod
139 |                 == NSURLAuthenticationMethodServerTrust,
    |                    `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
140 |                 let trust = challenge.protectionSpace.serverTrust
141 |             {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:138:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
136 |                 @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
137 |         ) {
138 |             if challenge.protectionSpace.authenticationMethod
    |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
139 |                 == NSURLAuthenticationMethodServerTrust,
140 |                 let trust = challenge.protectionSpace.serverTrust
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:140:39: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
138 |             if challenge.protectionSpace.authenticationMethod
139 |                 == NSURLAuthenticationMethodServerTrust,
140 |                 let trust = challenge.protectionSpace.serverTrust
    |                                       `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
141 |             {
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:36: error: cannot infer contextual base in reference to member 'useCredential'
140 |                 let trust = challenge.protectionSpace.serverTrust
141 |             {
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
    |                                    `- error: cannot infer contextual base in reference to member 'useCredential'
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:51: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
140 |                 let trust = challenge.protectionSpace.serverTrust
141 |             {
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
    |                                                   `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:36: error: cannot infer contextual base in reference to member 'performDefaultHandling'
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
    |                                    `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
145 |             }
146 |         }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:60: error: 'nil' requires a contextual type
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
    |                                                            `- error: 'nil' requires a contextual type
145 |             }
146 |         }
[17/44] Compiling Swollama VersionResponse.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:11:22: error: cannot find type 'URLRequest' in scope
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
 11 |         for request: URLRequest,
    |                      `- error: cannot find type 'URLRequest' in scope
 12 |         configuration: OllamaConfiguration
 13 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:10:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         for request: URLRequest,
 12 |         configuration: OllamaConfiguration
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:13:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         for request: URLRequest,
 12 |         configuration: OllamaConfiguration
 13 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         #if os(Linux)
 15 |             return try await curlStreamTask(for: request, configuration: configuration)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:70:22: error: cannot find type 'URLRequest' in scope
 68 |     static func streamTask(
 69 |         session: URLSession,
 70 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 71 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
 72 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:12:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |
 11 |     static func createSession(
 12 |         configuration: URLSessionConfiguration,
    |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |         allowsInsecureConnections: Bool = false
 14 |     ) -> URLSession {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:14:10: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |         configuration: URLSessionConfiguration,
 13 |         allowsInsecureConnections: Bool = false
 14 |     ) -> URLSession {
    |          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |         #if !os(Linux)
 16 |             if allowsInsecureConnections {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:27:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |     }
 26 |
 27 |     static func createDefaultConfiguration() -> URLSessionConfiguration {
    |                                                 `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |         let config = URLSessionConfiguration.default
 29 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:44:22: error: cannot find type 'URLRequest' in scope
 42 |     static func dataTask(
 43 |         session: URLSession,
 44 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 45 |     ) async throws -> (Data, URLResponse) {
 46 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:43:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |
 42 |     static func dataTask(
 43 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         for request: URLRequest
 45 |     ) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:45:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |         session: URLSession,
 44 |         for request: URLRequest
 45 |     ) async throws -> (Data, URLResponse) {
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |         #if canImport(FoundationNetworking)
 47 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:69:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |
 68 |     static func streamTask(
 69 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         for request: URLRequest
 71 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:71:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         session: URLSession,
 70 |         for request: URLRequest
 71 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         #if canImport(FoundationNetworking)
 73 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:131:50: error: cannot find type 'URLSessionDelegate' in scope
129 |     ///
130 |     /// Installed only when ``OllamaConfiguration/allowsInsecureConnections`` is `true`.
131 |     final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
    |                                                  `- error: cannot find type 'URLSessionDelegate' in scope
132 |         func urlSession(
133 |             _ session: URLSession,
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:136:39: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
134 |             didReceive challenge: URLAuthenticationChallenge,
135 |             completionHandler:
136 |                 @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                       `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
137 |         ) {
138 |             if challenge.protectionSpace.authenticationMethod
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:133:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |     final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
132 |         func urlSession(
133 |             _ session: URLSession,
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 |             didReceive challenge: URLAuthenticationChallenge,
135 |             completionHandler:
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:134:35: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 |         func urlSession(
133 |             _ session: URLSession,
134 |             didReceive challenge: URLAuthenticationChallenge,
    |                                   `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |             completionHandler:
136 |                 @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:17:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 15 |         #if !os(Linux)
 16 |             if allowsInsecureConnections {
 17 |                 return URLSession(
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 18 |                     configuration: configuration,
 19 |                     delegate: InsecureTrustDelegate(),
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:20:36: error: 'nil' requires a contextual type
 18 |                     configuration: configuration,
 19 |                     delegate: InsecureTrustDelegate(),
 20 |                     delegateQueue: nil
    |                                    `- error: 'nil' requires a contextual type
 21 |                 )
 22 |             }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:24:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 22 |             }
 23 |         #endif
 24 |         return URLSession(configuration: configuration)
    |                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 25 |     }
 26 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:28:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 26 |
 27 |     static func createDefaultConfiguration() -> URLSessionConfiguration {
 28 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 29 |
 30 |         config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:31:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 29 |
 30 |         config.urlCache = nil
 31 |         config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
    |                                      `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 32 |
 33 |         #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:64:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 62 |         #else
 63 |
 64 |             return try await session.data(for: request)
    |                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 65 |         #endif
 66 |     }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:97:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 95 |         #else
 96 |
 97 |             let (bytes, response) = try await session.bytes(for: request)
    |                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 98 |             let stream = AsyncThrowingStream<Data, Error> { continuation in
 99 |                 let task = Task {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:139:20: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
137 |         ) {
138 |             if challenge.protectionSpace.authenticationMethod
139 |                 == NSURLAuthenticationMethodServerTrust,
    |                    `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
140 |                 let trust = challenge.protectionSpace.serverTrust
141 |             {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:138:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
136 |                 @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
137 |         ) {
138 |             if challenge.protectionSpace.authenticationMethod
    |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
139 |                 == NSURLAuthenticationMethodServerTrust,
140 |                 let trust = challenge.protectionSpace.serverTrust
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:140:39: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
138 |             if challenge.protectionSpace.authenticationMethod
139 |                 == NSURLAuthenticationMethodServerTrust,
140 |                 let trust = challenge.protectionSpace.serverTrust
    |                                       `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
141 |             {
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:36: error: cannot infer contextual base in reference to member 'useCredential'
140 |                 let trust = challenge.protectionSpace.serverTrust
141 |             {
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
    |                                    `- error: cannot infer contextual base in reference to member 'useCredential'
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:51: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
140 |                 let trust = challenge.protectionSpace.serverTrust
141 |             {
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
    |                                                   `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:36: error: cannot infer contextual base in reference to member 'performDefaultHandling'
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
    |                                    `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
145 |             }
146 |         }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:60: error: 'nil' requires a contextual type
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
    |                                                            `- error: 'nil' requires a contextual type
145 |             }
146 |         }
[18/44] Compiling Swollama NetworkingSupport+Streaming.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:11:22: error: cannot find type 'URLRequest' in scope
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
 11 |         for request: URLRequest,
    |                      `- error: cannot find type 'URLRequest' in scope
 12 |         configuration: OllamaConfiguration
 13 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:10:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         for request: URLRequest,
 12 |         configuration: OllamaConfiguration
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:13:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         for request: URLRequest,
 12 |         configuration: OllamaConfiguration
 13 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         #if os(Linux)
 15 |             return try await curlStreamTask(for: request, configuration: configuration)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:70:22: error: cannot find type 'URLRequest' in scope
 68 |     static func streamTask(
 69 |         session: URLSession,
 70 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 71 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
 72 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:12:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |
 11 |     static func createSession(
 12 |         configuration: URLSessionConfiguration,
    |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |         allowsInsecureConnections: Bool = false
 14 |     ) -> URLSession {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:14:10: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |         configuration: URLSessionConfiguration,
 13 |         allowsInsecureConnections: Bool = false
 14 |     ) -> URLSession {
    |          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |         #if !os(Linux)
 16 |             if allowsInsecureConnections {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:27:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |     }
 26 |
 27 |     static func createDefaultConfiguration() -> URLSessionConfiguration {
    |                                                 `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |         let config = URLSessionConfiguration.default
 29 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:44:22: error: cannot find type 'URLRequest' in scope
 42 |     static func dataTask(
 43 |         session: URLSession,
 44 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 45 |     ) async throws -> (Data, URLResponse) {
 46 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:43:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |
 42 |     static func dataTask(
 43 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         for request: URLRequest
 45 |     ) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:45:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |         session: URLSession,
 44 |         for request: URLRequest
 45 |     ) async throws -> (Data, URLResponse) {
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |         #if canImport(FoundationNetworking)
 47 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:69:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |
 68 |     static func streamTask(
 69 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         for request: URLRequest
 71 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:71:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         session: URLSession,
 70 |         for request: URLRequest
 71 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         #if canImport(FoundationNetworking)
 73 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:131:50: error: cannot find type 'URLSessionDelegate' in scope
129 |     ///
130 |     /// Installed only when ``OllamaConfiguration/allowsInsecureConnections`` is `true`.
131 |     final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
    |                                                  `- error: cannot find type 'URLSessionDelegate' in scope
132 |         func urlSession(
133 |             _ session: URLSession,
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:136:39: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
134 |             didReceive challenge: URLAuthenticationChallenge,
135 |             completionHandler:
136 |                 @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                       `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
137 |         ) {
138 |             if challenge.protectionSpace.authenticationMethod
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:133:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |     final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
132 |         func urlSession(
133 |             _ session: URLSession,
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 |             didReceive challenge: URLAuthenticationChallenge,
135 |             completionHandler:
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:134:35: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 |         func urlSession(
133 |             _ session: URLSession,
134 |             didReceive challenge: URLAuthenticationChallenge,
    |                                   `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |             completionHandler:
136 |                 @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:17:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 15 |         #if !os(Linux)
 16 |             if allowsInsecureConnections {
 17 |                 return URLSession(
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 18 |                     configuration: configuration,
 19 |                     delegate: InsecureTrustDelegate(),
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:20:36: error: 'nil' requires a contextual type
 18 |                     configuration: configuration,
 19 |                     delegate: InsecureTrustDelegate(),
 20 |                     delegateQueue: nil
    |                                    `- error: 'nil' requires a contextual type
 21 |                 )
 22 |             }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:24:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 22 |             }
 23 |         #endif
 24 |         return URLSession(configuration: configuration)
    |                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 25 |     }
 26 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:28:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 26 |
 27 |     static func createDefaultConfiguration() -> URLSessionConfiguration {
 28 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 29 |
 30 |         config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:31:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 29 |
 30 |         config.urlCache = nil
 31 |         config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
    |                                      `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 32 |
 33 |         #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:64:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 62 |         #else
 63 |
 64 |             return try await session.data(for: request)
    |                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 65 |         #endif
 66 |     }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:97:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 95 |         #else
 96 |
 97 |             let (bytes, response) = try await session.bytes(for: request)
    |                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 98 |             let stream = AsyncThrowingStream<Data, Error> { continuation in
 99 |                 let task = Task {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:139:20: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
137 |         ) {
138 |             if challenge.protectionSpace.authenticationMethod
139 |                 == NSURLAuthenticationMethodServerTrust,
    |                    `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
140 |                 let trust = challenge.protectionSpace.serverTrust
141 |             {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:138:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
136 |                 @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
137 |         ) {
138 |             if challenge.protectionSpace.authenticationMethod
    |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
139 |                 == NSURLAuthenticationMethodServerTrust,
140 |                 let trust = challenge.protectionSpace.serverTrust
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:140:39: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
138 |             if challenge.protectionSpace.authenticationMethod
139 |                 == NSURLAuthenticationMethodServerTrust,
140 |                 let trust = challenge.protectionSpace.serverTrust
    |                                       `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
141 |             {
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:36: error: cannot infer contextual base in reference to member 'useCredential'
140 |                 let trust = challenge.protectionSpace.serverTrust
141 |             {
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
    |                                    `- error: cannot infer contextual base in reference to member 'useCredential'
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:51: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
140 |                 let trust = challenge.protectionSpace.serverTrust
141 |             {
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
    |                                                   `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:36: error: cannot infer contextual base in reference to member 'performDefaultHandling'
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
    |                                    `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
145 |             }
146 |         }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:60: error: 'nil' requires a contextual type
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
    |                                                            `- error: 'nil' requires a contextual type
145 |             }
146 |         }
[19/44] Compiling Swollama NetworkingSupport.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:11:22: error: cannot find type 'URLRequest' in scope
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
 11 |         for request: URLRequest,
    |                      `- error: cannot find type 'URLRequest' in scope
 12 |         configuration: OllamaConfiguration
 13 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:10:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         for request: URLRequest,
 12 |         configuration: OllamaConfiguration
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:13:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         for request: URLRequest,
 12 |         configuration: OllamaConfiguration
 13 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         #if os(Linux)
 15 |             return try await curlStreamTask(for: request, configuration: configuration)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:70:22: error: cannot find type 'URLRequest' in scope
 68 |     static func streamTask(
 69 |         session: URLSession,
 70 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 71 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
 72 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:12:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |
 11 |     static func createSession(
 12 |         configuration: URLSessionConfiguration,
    |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |         allowsInsecureConnections: Bool = false
 14 |     ) -> URLSession {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:14:10: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |         configuration: URLSessionConfiguration,
 13 |         allowsInsecureConnections: Bool = false
 14 |     ) -> URLSession {
    |          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |         #if !os(Linux)
 16 |             if allowsInsecureConnections {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:27:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |     }
 26 |
 27 |     static func createDefaultConfiguration() -> URLSessionConfiguration {
    |                                                 `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |         let config = URLSessionConfiguration.default
 29 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:44:22: error: cannot find type 'URLRequest' in scope
 42 |     static func dataTask(
 43 |         session: URLSession,
 44 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 45 |     ) async throws -> (Data, URLResponse) {
 46 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:43:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |
 42 |     static func dataTask(
 43 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         for request: URLRequest
 45 |     ) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:45:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |         session: URLSession,
 44 |         for request: URLRequest
 45 |     ) async throws -> (Data, URLResponse) {
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |         #if canImport(FoundationNetworking)
 47 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:69:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |
 68 |     static func streamTask(
 69 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         for request: URLRequest
 71 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:71:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         session: URLSession,
 70 |         for request: URLRequest
 71 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         #if canImport(FoundationNetworking)
 73 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:131:50: error: cannot find type 'URLSessionDelegate' in scope
129 |     ///
130 |     /// Installed only when ``OllamaConfiguration/allowsInsecureConnections`` is `true`.
131 |     final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
    |                                                  `- error: cannot find type 'URLSessionDelegate' in scope
132 |         func urlSession(
133 |             _ session: URLSession,
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:136:39: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
134 |             didReceive challenge: URLAuthenticationChallenge,
135 |             completionHandler:
136 |                 @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                       `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
137 |         ) {
138 |             if challenge.protectionSpace.authenticationMethod
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:133:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |     final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
132 |         func urlSession(
133 |             _ session: URLSession,
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 |             didReceive challenge: URLAuthenticationChallenge,
135 |             completionHandler:
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:134:35: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 |         func urlSession(
133 |             _ session: URLSession,
134 |             didReceive challenge: URLAuthenticationChallenge,
    |                                   `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |             completionHandler:
136 |                 @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:17:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 15 |         #if !os(Linux)
 16 |             if allowsInsecureConnections {
 17 |                 return URLSession(
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 18 |                     configuration: configuration,
 19 |                     delegate: InsecureTrustDelegate(),
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:20:36: error: 'nil' requires a contextual type
 18 |                     configuration: configuration,
 19 |                     delegate: InsecureTrustDelegate(),
 20 |                     delegateQueue: nil
    |                                    `- error: 'nil' requires a contextual type
 21 |                 )
 22 |             }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:24:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 22 |             }
 23 |         #endif
 24 |         return URLSession(configuration: configuration)
    |                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 25 |     }
 26 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:28:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 26 |
 27 |     static func createDefaultConfiguration() -> URLSessionConfiguration {
 28 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 29 |
 30 |         config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:31:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 29 |
 30 |         config.urlCache = nil
 31 |         config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
    |                                      `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 32 |
 33 |         #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:64:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 62 |         #else
 63 |
 64 |             return try await session.data(for: request)
    |                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 65 |         #endif
 66 |     }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:97:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 95 |         #else
 96 |
 97 |             let (bytes, response) = try await session.bytes(for: request)
    |                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 98 |             let stream = AsyncThrowingStream<Data, Error> { continuation in
 99 |                 let task = Task {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:139:20: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
137 |         ) {
138 |             if challenge.protectionSpace.authenticationMethod
139 |                 == NSURLAuthenticationMethodServerTrust,
    |                    `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
140 |                 let trust = challenge.protectionSpace.serverTrust
141 |             {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:138:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
136 |                 @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
137 |         ) {
138 |             if challenge.protectionSpace.authenticationMethod
    |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
139 |                 == NSURLAuthenticationMethodServerTrust,
140 |                 let trust = challenge.protectionSpace.serverTrust
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:140:39: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
138 |             if challenge.protectionSpace.authenticationMethod
139 |                 == NSURLAuthenticationMethodServerTrust,
140 |                 let trust = challenge.protectionSpace.serverTrust
    |                                       `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
141 |             {
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:36: error: cannot infer contextual base in reference to member 'useCredential'
140 |                 let trust = challenge.protectionSpace.serverTrust
141 |             {
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
    |                                    `- error: cannot infer contextual base in reference to member 'useCredential'
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:51: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
140 |                 let trust = challenge.protectionSpace.serverTrust
141 |             {
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
    |                                                   `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:36: error: cannot infer contextual base in reference to member 'performDefaultHandling'
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
    |                                    `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
145 |             }
146 |         }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:60: error: 'nil' requires a contextual type
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
    |                                                            `- error: 'nil' requires a contextual type
145 |             }
146 |         }
[20/44] Compiling Swollama OllamaClient+Generation.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:11:22: error: cannot find type 'URLRequest' in scope
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
 11 |         for request: URLRequest,
    |                      `- error: cannot find type 'URLRequest' in scope
 12 |         configuration: OllamaConfiguration
 13 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:10:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         for request: URLRequest,
 12 |         configuration: OllamaConfiguration
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:13:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         for request: URLRequest,
 12 |         configuration: OllamaConfiguration
 13 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         #if os(Linux)
 15 |             return try await curlStreamTask(for: request, configuration: configuration)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:70:22: error: cannot find type 'URLRequest' in scope
 68 |     static func streamTask(
 69 |         session: URLSession,
 70 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 71 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
 72 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:12:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |
 11 |     static func createSession(
 12 |         configuration: URLSessionConfiguration,
    |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |         allowsInsecureConnections: Bool = false
 14 |     ) -> URLSession {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:14:10: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |         configuration: URLSessionConfiguration,
 13 |         allowsInsecureConnections: Bool = false
 14 |     ) -> URLSession {
    |          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |         #if !os(Linux)
 16 |             if allowsInsecureConnections {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:27:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |     }
 26 |
 27 |     static func createDefaultConfiguration() -> URLSessionConfiguration {
    |                                                 `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |         let config = URLSessionConfiguration.default
 29 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:44:22: error: cannot find type 'URLRequest' in scope
 42 |     static func dataTask(
 43 |         session: URLSession,
 44 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 45 |     ) async throws -> (Data, URLResponse) {
 46 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:43:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |
 42 |     static func dataTask(
 43 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         for request: URLRequest
 45 |     ) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:45:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |         session: URLSession,
 44 |         for request: URLRequest
 45 |     ) async throws -> (Data, URLResponse) {
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |         #if canImport(FoundationNetworking)
 47 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:69:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |
 68 |     static func streamTask(
 69 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         for request: URLRequest
 71 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:71:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         session: URLSession,
 70 |         for request: URLRequest
 71 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         #if canImport(FoundationNetworking)
 73 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:131:50: error: cannot find type 'URLSessionDelegate' in scope
129 |     ///
130 |     /// Installed only when ``OllamaConfiguration/allowsInsecureConnections`` is `true`.
131 |     final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
    |                                                  `- error: cannot find type 'URLSessionDelegate' in scope
132 |         func urlSession(
133 |             _ session: URLSession,
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:136:39: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
134 |             didReceive challenge: URLAuthenticationChallenge,
135 |             completionHandler:
136 |                 @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                       `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
137 |         ) {
138 |             if challenge.protectionSpace.authenticationMethod
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:133:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |     final class InsecureTrustDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {
132 |         func urlSession(
133 |             _ session: URLSession,
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 |             didReceive challenge: URLAuthenticationChallenge,
135 |             completionHandler:
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:134:35: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 |         func urlSession(
133 |             _ session: URLSession,
134 |             didReceive challenge: URLAuthenticationChallenge,
    |                                   `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |             completionHandler:
136 |                 @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:17:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 15 |         #if !os(Linux)
 16 |             if allowsInsecureConnections {
 17 |                 return URLSession(
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 18 |                     configuration: configuration,
 19 |                     delegate: InsecureTrustDelegate(),
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:20:36: error: 'nil' requires a contextual type
 18 |                     configuration: configuration,
 19 |                     delegate: InsecureTrustDelegate(),
 20 |                     delegateQueue: nil
    |                                    `- error: 'nil' requires a contextual type
 21 |                 )
 22 |             }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:24:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 22 |             }
 23 |         #endif
 24 |         return URLSession(configuration: configuration)
    |                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 25 |     }
 26 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:28:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 26 |
 27 |     static func createDefaultConfiguration() -> URLSessionConfiguration {
 28 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 29 |
 30 |         config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:31:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 29 |
 30 |         config.urlCache = nil
 31 |         config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
    |                                      `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 32 |
 33 |         #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:64:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 62 |         #else
 63 |
 64 |             return try await session.data(for: request)
    |                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 65 |         #endif
 66 |     }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:97:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 95 |         #else
 96 |
 97 |             let (bytes, response) = try await session.bytes(for: request)
    |                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 98 |             let stream = AsyncThrowingStream<Data, Error> { continuation in
 99 |                 let task = Task {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:139:20: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
137 |         ) {
138 |             if challenge.protectionSpace.authenticationMethod
139 |                 == NSURLAuthenticationMethodServerTrust,
    |                    `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
140 |                 let trust = challenge.protectionSpace.serverTrust
141 |             {
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:138:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
136 |                 @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
137 |         ) {
138 |             if challenge.protectionSpace.authenticationMethod
    |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
139 |                 == NSURLAuthenticationMethodServerTrust,
140 |                 let trust = challenge.protectionSpace.serverTrust
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:140:39: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
138 |             if challenge.protectionSpace.authenticationMethod
139 |                 == NSURLAuthenticationMethodServerTrust,
140 |                 let trust = challenge.protectionSpace.serverTrust
    |                                       `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
141 |             {
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:36: error: cannot infer contextual base in reference to member 'useCredential'
140 |                 let trust = challenge.protectionSpace.serverTrust
141 |             {
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
    |                                    `- error: cannot infer contextual base in reference to member 'useCredential'
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:142:51: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
140 |                 let trust = challenge.protectionSpace.serverTrust
141 |             {
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
    |                                                   `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:36: error: cannot infer contextual base in reference to member 'performDefaultHandling'
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
    |                                    `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
145 |             }
146 |         }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:144:60: error: 'nil' requires a contextual type
142 |                 completionHandler(.useCredential, URLCredential(trust: trust))
143 |             } else {
144 |                 completionHandler(.performDefaultHandling, nil)
    |                                                            `- error: 'nil' requires a contextual type
145 |             }
146 |         }
[21/44] Compiling Swollama Logprob.swift
[22/44] Compiling Swollama ModelInformation.swift
[23/44] Compiling Swollama ModelsResponse.swift
[24/44] Compiling Swollama OllamaDate.swift
[25/44] Compiling Swollama OllamaModelName.swift
[26/44] Compiling Swollama AgentConfiguration.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
[27/44] Compiling Swollama AgentEvent.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
[28/44] Compiling Swollama OllamaAgent.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
[29/44] Compiling Swollama ChatOptions.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
[30/44] Compiling Swollama EmbeddingOptions.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
[31/44] Compiling Swollama GenerationOptions.swift
[32/44] Compiling Swollama ChatRequest.swift
[33/44] Compiling Swollama ChatResponse.swift
[34/44] Compiling Swollama CreateModelRequest.swift
[35/44] Compiling Swollama EmbeddingRequest.swift
[36/44] Compiling Swollama EmbeddingResponse.swift
[37/44] Compiling Swollama GenerateRequest.swift
[38/44] Compiling Swollama GenerateResponse.swift
[39/44] Compiling Swollama JSONValue.swift
[40/44] Compiling Swollama LegacyEmbedding.swift
BUILD FAILURE 6.1 wasm