The Swift Package Index logo.Swift Package Index

Build Information

Failed to build GeminiKit, reference 1.0.0 (63827c), with Swift 6.1 for Wasm on 13 Jul 2025 11:11:52 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

    |                                                                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 98 |                 let error = GeminiError.apiError(
 99 |                     code: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:99:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |                 let errorMessage = String(data: errorResponseData, encoding: .utf8) ?? "HTTP \(httpResponse.statusCode)"
 98 |                 let error = GeminiError.apiError(
 99 |                     code: httpResponse.statusCode,
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
100 |                     message: errorMessage,
101 |                     details: nil
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:112:33: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
    |                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
113 |
114 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:112:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 |
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/GeminiKit/Networking/URLSessionHTTPClient.swift:116:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
114 |
115 |         // Check if we got an HTTP error response
116 |         if let httpResponse = response as? Foundation.HTTPURLResponse, httpResponse.statusCode >= 400 {
    |                                        `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
117 |             // Allow the request to continue so we can collect the error body
118 |             completionHandler(.allow)
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:116:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |
115 |         // Check if we got an HTTP error response
116 |         if let httpResponse = response as? Foundation.HTTPURLResponse, httpResponse.statusCode >= 400 {
    |                                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |             // Allow the request to continue so we can collect the error body
118 |             completionHandler(.allow)
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/GeminiKit/Networking/URLSessionHTTPClient.swift:116:85: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 |
115 |         // Check if we got an HTTP error response
116 |         if let httpResponse = response as? Foundation.HTTPURLResponse, httpResponse.statusCode >= 400 {
    |                                                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
117 |             // Allow the request to continue so we can collect the error body
118 |             completionHandler(.allow)
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:118:32: error: cannot infer contextual base in reference to member 'allow'
116 |         if let httpResponse = response as? Foundation.HTTPURLResponse, httpResponse.statusCode >= 400 {
117 |             // Allow the request to continue so we can collect the error body
118 |             completionHandler(.allow)
    |                                `- error: cannot infer contextual base in reference to member 'allow'
119 |         } else {
120 |             completionHandler(.allow)
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:120:32: error: cannot infer contextual base in reference to member 'allow'
118 |             completionHandler(.allow)
119 |         } else {
120 |             completionHandler(.allow)
    |                                `- error: cannot infer contextual base in reference to member 'allow'
121 |         }
122 |     }
[25/87] Compiling ArgumentParser ParsableArguments.swift
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:6:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  4 | /// URLSession-based HTTP client for Apple platforms
  5 | public final class URLSessionHTTPClient: HTTPClient, @unchecked Sendable {
  6 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 |
  8 |     public init(session: URLSession = .shared) {
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/GeminiKit/Networking/URLSessionHTTPClient.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     private let session: URLSession
  7 |
  8 |     public init(session: URLSession = .shared) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |         self.session = session
 10 |     }
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/GeminiKit/Networking/URLSessionHTTPClient.swift:8:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  6 |     private let session: URLSession
  7 |
  8 |     public init(session: URLSession = .shared) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  9 |         self.session = session
 10 |     }
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:12:35: error: cannot find type 'URLRequest' in scope
 10 |     }
 11 |
 12 |     public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                   `- error: cannot find type 'URLRequest' in scope
 13 |         try await session.data(for: request)
 14 |     }
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:12:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |     }
 11 |
 12 |     public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |         try await session.data(for: request)
 14 |     }
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/GeminiKit/Networking/URLSessionHTTPClient.swift:16:37: error: cannot find type 'URLRequest' in scope
 14 |     }
 15 |
 16 |     public func stream(for request: URLRequest) async throws -> AsyncThrowingStream<Data, Error> {
    |                                     `- error: cannot find type 'URLRequest' in scope
 17 |         AsyncThrowingStream { continuation in
 18 |             let delegate = StreamingDelegate(continuation: continuation)
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:33:37: error: cannot find type 'URLRequest' in scope
 31 |     }
 32 |
 33 |     public func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse) {
    |                                     `- error: cannot find type 'URLRequest' in scope
 34 |         try await session.upload(for: request, from: data)
 35 |     }
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:33:89: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     }
 32 |
 33 |     public func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse) {
    |                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         try await session.upload(for: request, from: data)
 35 |     }
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/GeminiKit/Networking/HTTPClient.swift:12:28: error: cannot find type 'URLRequest' in scope
10 |     ///   - request: The URL request to perform
11 |     /// - Returns: The response data and URL response
12 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |     /// Performs a streaming request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:18:30: error: cannot find type 'URLRequest' in scope
16 |     ///   - request: The URL request to perform
17 |     /// - Returns: An async stream of data chunks
18 |     func stream(for request: URLRequest) async throws -> AsyncThrowingStream<Data, Error>
   |                              `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Uploads data with a request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:25:30: error: cannot find type 'URLRequest' in scope
23 |     ///   - data: The data to upload
24 |     /// - Returns: The response data and URL response
25 |     func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse)
   |                              `- error: cannot find type 'URLRequest' in scope
26 | }
27 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:39:50: error: cannot find type 'URLSessionDataDelegate' in scope
 37 |
 38 | /// URLSession delegate for handling streaming responses
 39 | private final class StreamingDelegate: NSObject, URLSessionDataDelegate {
    |                                                  `- error: cannot find type 'URLSessionDataDelegate' in scope
 40 |     let continuation: AsyncThrowingStream<Data, Error>.Continuation
 41 |     private var errorResponseData = Data()
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:42:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |     let continuation: AsyncThrowingStream<Data, Error>.Continuation
 41 |     private var errorResponseData = Data()
 42 |     private var httpResponse: Foundation.HTTPURLResponse?
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |     private var session: URLSession?
 44 |
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/GeminiKit/Networking/URLSessionHTTPClient.swift:43:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     private var errorResponseData = Data()
 42 |     private var httpResponse: Foundation.HTTPURLResponse?
 43 |     private var session: URLSession?
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |
 45 |     init(continuation: AsyncThrowingStream<Data, Error>.Continuation) {
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/GeminiKit/Networking/URLSessionHTTPClient.swift:50:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |     }
 49 |
 50 |     func setSession(_ session: URLSession) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |         self.session = session
 52 |     }
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/GeminiKit/Networking/URLSessionHTTPClient.swift:54:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 52 |     }
 53 |
 54 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |         // If we have an error response, accumulate the data
 56 |         if let httpResponse = httpResponse, httpResponse.statusCode >= 400 {
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/GeminiKit/Networking/URLSessionHTTPClient.swift:54:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 52 |     }
 53 |
 54 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |         // If we have an error response, accumulate the data
 56 |         if let httpResponse = httpResponse, httpResponse.statusCode >= 400 {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:63:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     }
 62 |
 63 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |         if let error = error {
 65 |             continuation.finish(throwing: error)
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/GeminiKit/Networking/URLSessionHTTPClient.swift:63:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     }
 62 |
 63 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |         if let error = error {
 65 |             continuation.finish(throwing: error)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:110:149: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
108 |     }
109 |
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                                                                                                                                     `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:110:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
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/GeminiKit/Networking/URLSessionHTTPClient.swift:110:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:110:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
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/GeminiKit/Networking/URLSessionHTTPClient.swift:13:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 11 |
 12 |     public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
 13 |         try await session.data(for: request)
    |                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 14 |     }
 15 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:19:35: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 17 |         AsyncThrowingStream { continuation in
 18 |             let delegate = StreamingDelegate(continuation: continuation)
 19 |             let delegateSession = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
    |                                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 20 |             delegate.setSession(delegateSession)
 21 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:19:62: error: cannot infer contextual base in reference to member 'default'
 17 |         AsyncThrowingStream { continuation in
 18 |             let delegate = StreamingDelegate(continuation: continuation)
 19 |             let delegateSession = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
    |                                                              `- error: cannot infer contextual base in reference to member 'default'
 20 |             delegate.setSession(delegateSession)
 21 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:19:106: error: 'nil' requires a contextual type
 17 |         AsyncThrowingStream { continuation in
 18 |             let delegate = StreamingDelegate(continuation: continuation)
 19 |             let delegateSession = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
    |                                                                                                          `- error: 'nil' requires a contextual type
 20 |             delegate.setSession(delegateSession)
 21 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:34:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
 32 |
 33 |     public func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse) {
 34 |         try await session.upload(for: request, from: data)
    |                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
 35 |     }
 36 | }
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:56:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 54 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
 55 |         // If we have an error response, accumulate the data
 56 |         if let httpResponse = httpResponse, httpResponse.statusCode >= 400 {
    |                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 57 |             errorResponseData.append(data)
 58 |         } else {
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:66:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 64 |         if let error = error {
 65 |             continuation.finish(throwing: error)
 66 |         } else if let httpResponse = httpResponse, httpResponse.statusCode >= 400 {
    |                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 67 |             // Try to parse JSON error response
 68 |             if let errorData = errorResponseData.isEmpty ? nil : errorResponseData,
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:73:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 71 |                let message = errorInfo["message"] as? String {
 72 |
 73 |                 let code = errorInfo["code"] as? Int ?? httpResponse.statusCode
    |                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |                 let status = errorInfo["status"] as? String
 75 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:78:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 76 |                 // Map to appropriate GeminiError
 77 |                 let geminiError: GeminiError
 78 |                 if httpResponse.statusCode == 401 || httpResponse.statusCode == 403 {
    |                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 79 |                     geminiError = .authenticationFailed(message)
 80 |                 } else if httpResponse.statusCode == 429 {
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:78:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 76 |                 // Map to appropriate GeminiError
 77 |                 let geminiError: GeminiError
 78 |                 if httpResponse.statusCode == 401 || httpResponse.statusCode == 403 {
    |                                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 79 |                     geminiError = .authenticationFailed(message)
 80 |                 } else if httpResponse.statusCode == 429 {
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:80:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 78 |                 if httpResponse.statusCode == 401 || httpResponse.statusCode == 403 {
 79 |                     geminiError = .authenticationFailed(message)
 80 |                 } else if httpResponse.statusCode == 429 {
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 81 |                     geminiError = .rateLimitExceeded
 82 |                 } else if message.contains("quota") {
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:97:109: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 95 |             } else {
 96 |                 // Fallback to generic error
 97 |                 let errorMessage = String(data: errorResponseData, encoding: .utf8) ?? "HTTP \(httpResponse.statusCode)"
    |                                                                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 98 |                 let error = GeminiError.apiError(
 99 |                     code: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:99:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |                 let errorMessage = String(data: errorResponseData, encoding: .utf8) ?? "HTTP \(httpResponse.statusCode)"
 98 |                 let error = GeminiError.apiError(
 99 |                     code: httpResponse.statusCode,
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
100 |                     message: errorMessage,
101 |                     details: nil
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:112:33: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
    |                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
113 |
114 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:112:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 |
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/GeminiKit/Networking/URLSessionHTTPClient.swift:116:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
114 |
115 |         // Check if we got an HTTP error response
116 |         if let httpResponse = response as? Foundation.HTTPURLResponse, httpResponse.statusCode >= 400 {
    |                                        `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
117 |             // Allow the request to continue so we can collect the error body
118 |             completionHandler(.allow)
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:116:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |
115 |         // Check if we got an HTTP error response
116 |         if let httpResponse = response as? Foundation.HTTPURLResponse, httpResponse.statusCode >= 400 {
    |                                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |             // Allow the request to continue so we can collect the error body
118 |             completionHandler(.allow)
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/GeminiKit/Networking/URLSessionHTTPClient.swift:116:85: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 |
115 |         // Check if we got an HTTP error response
116 |         if let httpResponse = response as? Foundation.HTTPURLResponse, httpResponse.statusCode >= 400 {
    |                                                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
117 |             // Allow the request to continue so we can collect the error body
118 |             completionHandler(.allow)
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:118:32: error: cannot infer contextual base in reference to member 'allow'
116 |         if let httpResponse = response as? Foundation.HTTPURLResponse, httpResponse.statusCode >= 400 {
117 |             // Allow the request to continue so we can collect the error body
118 |             completionHandler(.allow)
    |                                `- error: cannot infer contextual base in reference to member 'allow'
119 |         } else {
120 |             completionHandler(.allow)
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:120:32: error: cannot infer contextual base in reference to member 'allow'
118 |             completionHandler(.allow)
119 |         } else {
120 |             completionHandler(.allow)
    |                                `- error: cannot infer contextual base in reference to member 'allow'
121 |         }
122 |     }
[27/87] Compiling ArgumentParser OptionGroup.swift
[28/87] Compiling ArgumentParser AsyncParsableCommand.swift
[29/87] Compiling ArgumentParser ExpressibleByArgument.swift
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:12:28: error: cannot find type 'URLRequest' in scope
10 |     ///   - request: The URL request to perform
11 |     /// - Returns: The response data and URL response
12 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |     /// Performs a streaming request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:12:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |     ///   - request: The URL request to perform
11 |     /// - Returns: The response data and URL response
12 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     /// Performs a streaming request
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/GeminiKit/Networking/HTTPClient.swift:18:30: error: cannot find type 'URLRequest' in scope
16 |     ///   - request: The URL request to perform
17 |     /// - Returns: An async stream of data chunks
18 |     func stream(for request: URLRequest) async throws -> AsyncThrowingStream<Data, Error>
   |                              `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Uploads data with a request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:25:30: error: cannot find type 'URLRequest' in scope
23 |     ///   - data: The data to upload
24 |     /// - Returns: The response data and URL response
25 |     func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse)
   |                              `- error: cannot find type 'URLRequest' in scope
26 | }
27 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:25:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     ///   - data: The data to upload
24 |     /// - Returns: The response data and URL response
25 |     func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse)
   |                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | }
27 |
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/GeminiKit/Networking/HTTPClient.swift:29:37: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 | /// HTTP response for non-URLSession implementations
29 | public final class HTTPURLResponse: URLResponse, @unchecked Sendable {
   |                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |     public let statusCode: Int
31 |     public let headers: [String: String]
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/GeminiKit/Networking/HTTPClient.swift:36:9: error: 'super' cannot be used in class 'HTTPURLResponse' because it has no superclass
34 |         self.statusCode = statusCode
35 |         self.headers = headers
36 |         super.init(url: url, mimeType: nil, expectedContentLength: -1, textEncodingName: nil)
   |         `- error: 'super' cannot be used in class 'HTTPURLResponse' because it has no superclass
37 |     }
38 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:36:40: error: 'nil' requires a contextual type
34 |         self.statusCode = statusCode
35 |         self.headers = headers
36 |         super.init(url: url, mimeType: nil, expectedContentLength: -1, textEncodingName: nil)
   |                                        `- error: 'nil' requires a contextual type
37 |     }
38 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:36:90: error: 'nil' requires a contextual type
34 |         self.statusCode = statusCode
35 |         self.headers = headers
36 |         super.init(url: url, mimeType: nil, expectedContentLength: -1, textEncodingName: nil)
   |                                                                                          `- error: 'nil' requires a contextual type
37 |     }
38 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:8:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  6 |     private let session: URLSession
  7 |
  8 |     public init(session: URLSession = .shared) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  9 |         self.session = session
 10 |     }
[30/87] Compiling ArgumentParser ArgumentVisibility.swift
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:12:28: error: cannot find type 'URLRequest' in scope
10 |     ///   - request: The URL request to perform
11 |     /// - Returns: The response data and URL response
12 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |     /// Performs a streaming request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:12:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |     ///   - request: The URL request to perform
11 |     /// - Returns: The response data and URL response
12 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     /// Performs a streaming request
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/GeminiKit/Networking/HTTPClient.swift:18:30: error: cannot find type 'URLRequest' in scope
16 |     ///   - request: The URL request to perform
17 |     /// - Returns: An async stream of data chunks
18 |     func stream(for request: URLRequest) async throws -> AsyncThrowingStream<Data, Error>
   |                              `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Uploads data with a request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:25:30: error: cannot find type 'URLRequest' in scope
23 |     ///   - data: The data to upload
24 |     /// - Returns: The response data and URL response
25 |     func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse)
   |                              `- error: cannot find type 'URLRequest' in scope
26 | }
27 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:25:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     ///   - data: The data to upload
24 |     /// - Returns: The response data and URL response
25 |     func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse)
   |                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | }
27 |
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/GeminiKit/Networking/HTTPClient.swift:29:37: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 | /// HTTP response for non-URLSession implementations
29 | public final class HTTPURLResponse: URLResponse, @unchecked Sendable {
   |                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |     public let statusCode: Int
31 |     public let headers: [String: String]
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/GeminiKit/Networking/HTTPClient.swift:36:9: error: 'super' cannot be used in class 'HTTPURLResponse' because it has no superclass
34 |         self.statusCode = statusCode
35 |         self.headers = headers
36 |         super.init(url: url, mimeType: nil, expectedContentLength: -1, textEncodingName: nil)
   |         `- error: 'super' cannot be used in class 'HTTPURLResponse' because it has no superclass
37 |     }
38 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:36:40: error: 'nil' requires a contextual type
34 |         self.statusCode = statusCode
35 |         self.headers = headers
36 |         super.init(url: url, mimeType: nil, expectedContentLength: -1, textEncodingName: nil)
   |                                        `- error: 'nil' requires a contextual type
37 |     }
38 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:36:90: error: 'nil' requires a contextual type
34 |         self.statusCode = statusCode
35 |         self.headers = headers
36 |         super.init(url: url, mimeType: nil, expectedContentLength: -1, textEncodingName: nil)
   |                                                                                          `- error: 'nil' requires a contextual type
37 |     }
38 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:8:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  6 |     private let session: URLSession
  7 |
  8 |     public init(session: URLSession = .shared) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  9 |         self.session = session
 10 |     }
[31/87] Compiling ArgumentParser CompletionKind.swift
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:12:28: error: cannot find type 'URLRequest' in scope
10 |     ///   - request: The URL request to perform
11 |     /// - Returns: The response data and URL response
12 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |     /// Performs a streaming request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:18:30: error: cannot find type 'URLRequest' in scope
16 |     ///   - request: The URL request to perform
17 |     /// - Returns: An async stream of data chunks
18 |     func stream(for request: URLRequest) async throws -> AsyncThrowingStream<Data, Error>
   |                              `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Uploads data with a request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:25:30: error: cannot find type 'URLRequest' in scope
23 |     ///   - data: The data to upload
24 |     /// - Returns: The response data and URL response
25 |     func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse)
   |                              `- error: cannot find type 'URLRequest' in scope
26 | }
27 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/APIClient.swift:40:23: error: cannot find 'URLRequest' in scope
 38 |     ) async throws -> Response {
 39 |         let url = buildURL(endpoint: endpoint, useOpenAI: useOpenAI)
 40 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 41 |         request.httpMethod = method
 42 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/APIClient.swift:160:23: error: cannot find 'URLRequest' in scope
158 |     ) async throws -> AsyncThrowingStream<Response, Error> {
159 |         let url = buildURL(endpoint: endpoint + "?alt=sse", useOpenAI: useOpenAI)
160 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
161 |         request.httpMethod = "POST"
162 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/APIClient.swift:347:27: error: cannot find 'URLRequest' in scope
345 |         // Step 1: Initialize resumable upload
346 |         let initURL = buildURL(endpoint: "/files", useUpload: true)
347 |         var initRequest = URLRequest(url: initURL)
    |                           `- error: cannot find 'URLRequest' in scope
348 |         initRequest.httpMethod = "POST"
349 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/APIClient.swift:384:29: error: cannot find 'URLRequest' in scope
382 |
383 |         // Step 2: Upload file data
384 |         var uploadRequest = URLRequest(url: uploadURL)
    |                             `- error: cannot find 'URLRequest' in scope
385 |         uploadRequest.httpMethod = "PUT"
386 |
[32/87] Compiling ArgumentParser Errors.swift
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:12:28: error: cannot find type 'URLRequest' in scope
10 |     ///   - request: The URL request to perform
11 |     /// - Returns: The response data and URL response
12 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |     /// Performs a streaming request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:18:30: error: cannot find type 'URLRequest' in scope
16 |     ///   - request: The URL request to perform
17 |     /// - Returns: An async stream of data chunks
18 |     func stream(for request: URLRequest) async throws -> AsyncThrowingStream<Data, Error>
   |                              `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Uploads data with a request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:25:30: error: cannot find type 'URLRequest' in scope
23 |     ///   - data: The data to upload
24 |     /// - Returns: The response data and URL response
25 |     func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse)
   |                              `- error: cannot find type 'URLRequest' in scope
26 | }
27 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/APIClient.swift:40:23: error: cannot find 'URLRequest' in scope
 38 |     ) async throws -> Response {
 39 |         let url = buildURL(endpoint: endpoint, useOpenAI: useOpenAI)
 40 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 41 |         request.httpMethod = method
 42 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/APIClient.swift:160:23: error: cannot find 'URLRequest' in scope
158 |     ) async throws -> AsyncThrowingStream<Response, Error> {
159 |         let url = buildURL(endpoint: endpoint + "?alt=sse", useOpenAI: useOpenAI)
160 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
161 |         request.httpMethod = "POST"
162 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/APIClient.swift:347:27: error: cannot find 'URLRequest' in scope
345 |         // Step 1: Initialize resumable upload
346 |         let initURL = buildURL(endpoint: "/files", useUpload: true)
347 |         var initRequest = URLRequest(url: initURL)
    |                           `- error: cannot find 'URLRequest' in scope
348 |         initRequest.httpMethod = "POST"
349 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/APIClient.swift:384:29: error: cannot find 'URLRequest' in scope
382 |
383 |         // Step 2: Upload file data
384 |         var uploadRequest = URLRequest(url: uploadURL)
    |                             `- error: cannot find 'URLRequest' in scope
385 |         uploadRequest.httpMethod = "PUT"
386 |
[33/87] Compiling ArgumentParser Flag.swift
[34/87] Compiling ArgumentParser NameSpecification.swift
[35/87] Compiling ArgumentParser CollectionExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[36/87] Compiling ArgumentParser Mutex.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[37/87] Compiling ArgumentParser Platform.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[38/87] Compiling ArgumentParser SequenceExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[39/87] Compiling ArgumentParser StringExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[40/87] Compiling ArgumentParser SwiftExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[44/87] Compiling ArgumentParser CommandConfiguration.swift
[45/87] Compiling ArgumentParser CommandGroup.swift
[46/87] Compiling ArgumentParser EnumerableFlag.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[48/87] Compiling ArgumentParser ParsableCommand.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[49/87] Compiling ArgumentParser ArgumentDecoder.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[50/87] Compiling ArgumentParser ArgumentDefinition.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[51/87] Compiling ArgumentParser ArgumentSet.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[52/87] Compiling ArgumentParser CommandParser.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[65/87] Compiling ArgumentParser InputKey.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[66/87] Compiling ArgumentParser InputOrigin.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[67/87] Compiling ArgumentParser Name.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[68/87] Compiling ArgumentParser Parsed.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[69/87] Compiling ArgumentParser ParsedValues.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[70/87] Compiling ArgumentParser ParserError.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[71/87] Compiling ArgumentParser SplitArguments.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[72/87] Compiling ArgumentParser DumpHelpGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[73/87] Compiling ArgumentParser HelpCommand.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[74/87] Compiling ArgumentParser HelpGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[75/87] Compiling ArgumentParser MessageInfo.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[76/87] Compiling ArgumentParser UsageGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/9] Write swift-version-24593BA9C3E375BF.txt
[4/30] Compiling GeminiKit CURLHTTPClient.swift
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:12:28: error: cannot find type 'URLRequest' in scope
10 |     ///   - request: The URL request to perform
11 |     /// - Returns: The response data and URL response
12 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |     /// Performs a streaming request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:12:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |     ///   - request: The URL request to perform
11 |     /// - Returns: The response data and URL response
12 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     /// Performs a streaming request
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/GeminiKit/Networking/HTTPClient.swift:18:30: error: cannot find type 'URLRequest' in scope
16 |     ///   - request: The URL request to perform
17 |     /// - Returns: An async stream of data chunks
18 |     func stream(for request: URLRequest) async throws -> AsyncThrowingStream<Data, Error>
   |                              `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Uploads data with a request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:25:30: error: cannot find type 'URLRequest' in scope
23 |     ///   - data: The data to upload
24 |     /// - Returns: The response data and URL response
25 |     func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse)
   |                              `- error: cannot find type 'URLRequest' in scope
26 | }
27 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:25:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     ///   - data: The data to upload
24 |     /// - Returns: The response data and URL response
25 |     func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse)
   |                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | }
27 |
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/GeminiKit/Networking/HTTPClient.swift:29:37: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 | /// HTTP response for non-URLSession implementations
29 | public final class HTTPURLResponse: URLResponse, @unchecked Sendable {
   |                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |     public let statusCode: Int
31 |     public let headers: [String: String]
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/GeminiKit/Networking/HTTPClient.swift:36:9: error: 'super' cannot be used in class 'HTTPURLResponse' because it has no superclass
34 |         self.statusCode = statusCode
35 |         self.headers = headers
36 |         super.init(url: url, mimeType: nil, expectedContentLength: -1, textEncodingName: nil)
   |         `- error: 'super' cannot be used in class 'HTTPURLResponse' because it has no superclass
37 |     }
38 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:36:40: error: 'nil' requires a contextual type
34 |         self.statusCode = statusCode
35 |         self.headers = headers
36 |         super.init(url: url, mimeType: nil, expectedContentLength: -1, textEncodingName: nil)
   |                                        `- error: 'nil' requires a contextual type
37 |     }
38 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:36:90: error: 'nil' requires a contextual type
34 |         self.statusCode = statusCode
35 |         self.headers = headers
36 |         super.init(url: url, mimeType: nil, expectedContentLength: -1, textEncodingName: nil)
   |                                                                                          `- error: 'nil' requires a contextual type
37 |     }
38 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:8:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  6 |     private let session: URLSession
  7 |
  8 |     public init(session: URLSession = .shared) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  9 |         self.session = session
 10 |     }
[5/30] Compiling GeminiKit HTTPClient.swift
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:12:28: error: cannot find type 'URLRequest' in scope
10 |     ///   - request: The URL request to perform
11 |     /// - Returns: The response data and URL response
12 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |     /// Performs a streaming request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:12:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |     ///   - request: The URL request to perform
11 |     /// - Returns: The response data and URL response
12 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     /// Performs a streaming request
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/GeminiKit/Networking/HTTPClient.swift:18:30: error: cannot find type 'URLRequest' in scope
16 |     ///   - request: The URL request to perform
17 |     /// - Returns: An async stream of data chunks
18 |     func stream(for request: URLRequest) async throws -> AsyncThrowingStream<Data, Error>
   |                              `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Uploads data with a request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:25:30: error: cannot find type 'URLRequest' in scope
23 |     ///   - data: The data to upload
24 |     /// - Returns: The response data and URL response
25 |     func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse)
   |                              `- error: cannot find type 'URLRequest' in scope
26 | }
27 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:25:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     ///   - data: The data to upload
24 |     /// - Returns: The response data and URL response
25 |     func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse)
   |                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | }
27 |
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/GeminiKit/Networking/HTTPClient.swift:29:37: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 | /// HTTP response for non-URLSession implementations
29 | public final class HTTPURLResponse: URLResponse, @unchecked Sendable {
   |                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |     public let statusCode: Int
31 |     public let headers: [String: String]
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/GeminiKit/Networking/HTTPClient.swift:36:9: error: 'super' cannot be used in class 'HTTPURLResponse' because it has no superclass
34 |         self.statusCode = statusCode
35 |         self.headers = headers
36 |         super.init(url: url, mimeType: nil, expectedContentLength: -1, textEncodingName: nil)
   |         `- error: 'super' cannot be used in class 'HTTPURLResponse' because it has no superclass
37 |     }
38 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:36:40: error: 'nil' requires a contextual type
34 |         self.statusCode = statusCode
35 |         self.headers = headers
36 |         super.init(url: url, mimeType: nil, expectedContentLength: -1, textEncodingName: nil)
   |                                        `- error: 'nil' requires a contextual type
37 |     }
38 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:36:90: error: 'nil' requires a contextual type
34 |         self.statusCode = statusCode
35 |         self.headers = headers
36 |         super.init(url: url, mimeType: nil, expectedContentLength: -1, textEncodingName: nil)
   |                                                                                          `- error: 'nil' requires a contextual type
37 |     }
38 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:8:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  6 |     private let session: URLSession
  7 |
  8 |     public init(session: URLSession = .shared) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  9 |         self.session = session
 10 |     }
[6/32] Compiling GeminiKit URLSessionHTTPClient.swift
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:6:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  4 | /// URLSession-based HTTP client for Apple platforms
  5 | public final class URLSessionHTTPClient: HTTPClient, @unchecked Sendable {
  6 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 |
  8 |     public init(session: URLSession = .shared) {
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/GeminiKit/Networking/URLSessionHTTPClient.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     private let session: URLSession
  7 |
  8 |     public init(session: URLSession = .shared) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |         self.session = session
 10 |     }
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/GeminiKit/Networking/URLSessionHTTPClient.swift:8:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  6 |     private let session: URLSession
  7 |
  8 |     public init(session: URLSession = .shared) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  9 |         self.session = session
 10 |     }
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:12:35: error: cannot find type 'URLRequest' in scope
 10 |     }
 11 |
 12 |     public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                   `- error: cannot find type 'URLRequest' in scope
 13 |         try await session.data(for: request)
 14 |     }
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:12:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |     }
 11 |
 12 |     public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |         try await session.data(for: request)
 14 |     }
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/GeminiKit/Networking/URLSessionHTTPClient.swift:16:37: error: cannot find type 'URLRequest' in scope
 14 |     }
 15 |
 16 |     public func stream(for request: URLRequest) async throws -> AsyncThrowingStream<Data, Error> {
    |                                     `- error: cannot find type 'URLRequest' in scope
 17 |         AsyncThrowingStream { continuation in
 18 |             let delegate = StreamingDelegate(continuation: continuation)
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:33:37: error: cannot find type 'URLRequest' in scope
 31 |     }
 32 |
 33 |     public func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse) {
    |                                     `- error: cannot find type 'URLRequest' in scope
 34 |         try await session.upload(for: request, from: data)
 35 |     }
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:33:89: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     }
 32 |
 33 |     public func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse) {
    |                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         try await session.upload(for: request, from: data)
 35 |     }
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/GeminiKit/Networking/HTTPClient.swift:12:28: error: cannot find type 'URLRequest' in scope
10 |     ///   - request: The URL request to perform
11 |     /// - Returns: The response data and URL response
12 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |     /// Performs a streaming request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:18:30: error: cannot find type 'URLRequest' in scope
16 |     ///   - request: The URL request to perform
17 |     /// - Returns: An async stream of data chunks
18 |     func stream(for request: URLRequest) async throws -> AsyncThrowingStream<Data, Error>
   |                              `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Uploads data with a request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:25:30: error: cannot find type 'URLRequest' in scope
23 |     ///   - data: The data to upload
24 |     /// - Returns: The response data and URL response
25 |     func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse)
   |                              `- error: cannot find type 'URLRequest' in scope
26 | }
27 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:39:50: error: cannot find type 'URLSessionDataDelegate' in scope
 37 |
 38 | /// URLSession delegate for handling streaming responses
 39 | private final class StreamingDelegate: NSObject, URLSessionDataDelegate {
    |                                                  `- error: cannot find type 'URLSessionDataDelegate' in scope
 40 |     let continuation: AsyncThrowingStream<Data, Error>.Continuation
 41 |     private var errorResponseData = Data()
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:42:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |     let continuation: AsyncThrowingStream<Data, Error>.Continuation
 41 |     private var errorResponseData = Data()
 42 |     private var httpResponse: Foundation.HTTPURLResponse?
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |     private var session: URLSession?
 44 |
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/GeminiKit/Networking/URLSessionHTTPClient.swift:43:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     private var errorResponseData = Data()
 42 |     private var httpResponse: Foundation.HTTPURLResponse?
 43 |     private var session: URLSession?
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |
 45 |     init(continuation: AsyncThrowingStream<Data, Error>.Continuation) {
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/GeminiKit/Networking/URLSessionHTTPClient.swift:50:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |     }
 49 |
 50 |     func setSession(_ session: URLSession) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |         self.session = session
 52 |     }
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/GeminiKit/Networking/URLSessionHTTPClient.swift:54:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 52 |     }
 53 |
 54 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |         // If we have an error response, accumulate the data
 56 |         if let httpResponse = httpResponse, httpResponse.statusCode >= 400 {
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/GeminiKit/Networking/URLSessionHTTPClient.swift:54:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 52 |     }
 53 |
 54 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |         // If we have an error response, accumulate the data
 56 |         if let httpResponse = httpResponse, httpResponse.statusCode >= 400 {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:63:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     }
 62 |
 63 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |         if let error = error {
 65 |             continuation.finish(throwing: error)
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/GeminiKit/Networking/URLSessionHTTPClient.swift:63:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     }
 62 |
 63 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |         if let error = error {
 65 |             continuation.finish(throwing: error)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:110:149: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
108 |     }
109 |
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                                                                                                                                     `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:110:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
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/GeminiKit/Networking/URLSessionHTTPClient.swift:110:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:110:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
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/GeminiKit/Networking/URLSessionHTTPClient.swift:13:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 11 |
 12 |     public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
 13 |         try await session.data(for: request)
    |                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 14 |     }
 15 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:19:35: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 17 |         AsyncThrowingStream { continuation in
 18 |             let delegate = StreamingDelegate(continuation: continuation)
 19 |             let delegateSession = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
    |                                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 20 |             delegate.setSession(delegateSession)
 21 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:19:62: error: cannot infer contextual base in reference to member 'default'
 17 |         AsyncThrowingStream { continuation in
 18 |             let delegate = StreamingDelegate(continuation: continuation)
 19 |             let delegateSession = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
    |                                                              `- error: cannot infer contextual base in reference to member 'default'
 20 |             delegate.setSession(delegateSession)
 21 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:19:106: error: 'nil' requires a contextual type
 17 |         AsyncThrowingStream { continuation in
 18 |             let delegate = StreamingDelegate(continuation: continuation)
 19 |             let delegateSession = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
    |                                                                                                          `- error: 'nil' requires a contextual type
 20 |             delegate.setSession(delegateSession)
 21 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:34:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
 32 |
 33 |     public func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse) {
 34 |         try await session.upload(for: request, from: data)
    |                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
 35 |     }
 36 | }
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:56:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 54 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
 55 |         // If we have an error response, accumulate the data
 56 |         if let httpResponse = httpResponse, httpResponse.statusCode >= 400 {
    |                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 57 |             errorResponseData.append(data)
 58 |         } else {
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:66:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 64 |         if let error = error {
 65 |             continuation.finish(throwing: error)
 66 |         } else if let httpResponse = httpResponse, httpResponse.statusCode >= 400 {
    |                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 67 |             // Try to parse JSON error response
 68 |             if let errorData = errorResponseData.isEmpty ? nil : errorResponseData,
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:73:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 71 |                let message = errorInfo["message"] as? String {
 72 |
 73 |                 let code = errorInfo["code"] as? Int ?? httpResponse.statusCode
    |                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |                 let status = errorInfo["status"] as? String
 75 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:78:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 76 |                 // Map to appropriate GeminiError
 77 |                 let geminiError: GeminiError
 78 |                 if httpResponse.statusCode == 401 || httpResponse.statusCode == 403 {
    |                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 79 |                     geminiError = .authenticationFailed(message)
 80 |                 } else if httpResponse.statusCode == 429 {
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:78:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 76 |                 // Map to appropriate GeminiError
 77 |                 let geminiError: GeminiError
 78 |                 if httpResponse.statusCode == 401 || httpResponse.statusCode == 403 {
    |                                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 79 |                     geminiError = .authenticationFailed(message)
 80 |                 } else if httpResponse.statusCode == 429 {
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:80:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 78 |                 if httpResponse.statusCode == 401 || httpResponse.statusCode == 403 {
 79 |                     geminiError = .authenticationFailed(message)
 80 |                 } else if httpResponse.statusCode == 429 {
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 81 |                     geminiError = .rateLimitExceeded
 82 |                 } else if message.contains("quota") {
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:97:109: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 95 |             } else {
 96 |                 // Fallback to generic error
 97 |                 let errorMessage = String(data: errorResponseData, encoding: .utf8) ?? "HTTP \(httpResponse.statusCode)"
    |                                                                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 98 |                 let error = GeminiError.apiError(
 99 |                     code: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:99:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |                 let errorMessage = String(data: errorResponseData, encoding: .utf8) ?? "HTTP \(httpResponse.statusCode)"
 98 |                 let error = GeminiError.apiError(
 99 |                     code: httpResponse.statusCode,
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
100 |                     message: errorMessage,
101 |                     details: nil
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:112:33: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
    |                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
113 |
114 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:112:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 |
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/GeminiKit/Networking/URLSessionHTTPClient.swift:116:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
114 |
115 |         // Check if we got an HTTP error response
116 |         if let httpResponse = response as? Foundation.HTTPURLResponse, httpResponse.statusCode >= 400 {
    |                                        `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
117 |             // Allow the request to continue so we can collect the error body
118 |             completionHandler(.allow)
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:116:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |
115 |         // Check if we got an HTTP error response
116 |         if let httpResponse = response as? Foundation.HTTPURLResponse, httpResponse.statusCode >= 400 {
    |                                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |             // Allow the request to continue so we can collect the error body
118 |             completionHandler(.allow)
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/GeminiKit/Networking/URLSessionHTTPClient.swift:116:85: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 |
115 |         // Check if we got an HTTP error response
116 |         if let httpResponse = response as? Foundation.HTTPURLResponse, httpResponse.statusCode >= 400 {
    |                                                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
117 |             // Allow the request to continue so we can collect the error body
118 |             completionHandler(.allow)
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:118:32: error: cannot infer contextual base in reference to member 'allow'
116 |         if let httpResponse = response as? Foundation.HTTPURLResponse, httpResponse.statusCode >= 400 {
117 |             // Allow the request to continue so we can collect the error body
118 |             completionHandler(.allow)
    |                                `- error: cannot infer contextual base in reference to member 'allow'
119 |         } else {
120 |             completionHandler(.allow)
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:120:32: error: cannot infer contextual base in reference to member 'allow'
118 |             completionHandler(.allow)
119 |         } else {
120 |             completionHandler(.allow)
    |                                `- error: cannot infer contextual base in reference to member 'allow'
121 |         }
122 |     }
[7/32] Compiling GeminiKit ToolBuilder.swift
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:6:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  4 | /// URLSession-based HTTP client for Apple platforms
  5 | public final class URLSessionHTTPClient: HTTPClient, @unchecked Sendable {
  6 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 |
  8 |     public init(session: URLSession = .shared) {
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/GeminiKit/Networking/URLSessionHTTPClient.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     private let session: URLSession
  7 |
  8 |     public init(session: URLSession = .shared) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |         self.session = session
 10 |     }
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/GeminiKit/Networking/URLSessionHTTPClient.swift:8:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  6 |     private let session: URLSession
  7 |
  8 |     public init(session: URLSession = .shared) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  9 |         self.session = session
 10 |     }
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:12:35: error: cannot find type 'URLRequest' in scope
 10 |     }
 11 |
 12 |     public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                   `- error: cannot find type 'URLRequest' in scope
 13 |         try await session.data(for: request)
 14 |     }
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:12:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |     }
 11 |
 12 |     public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |         try await session.data(for: request)
 14 |     }
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/GeminiKit/Networking/URLSessionHTTPClient.swift:16:37: error: cannot find type 'URLRequest' in scope
 14 |     }
 15 |
 16 |     public func stream(for request: URLRequest) async throws -> AsyncThrowingStream<Data, Error> {
    |                                     `- error: cannot find type 'URLRequest' in scope
 17 |         AsyncThrowingStream { continuation in
 18 |             let delegate = StreamingDelegate(continuation: continuation)
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:33:37: error: cannot find type 'URLRequest' in scope
 31 |     }
 32 |
 33 |     public func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse) {
    |                                     `- error: cannot find type 'URLRequest' in scope
 34 |         try await session.upload(for: request, from: data)
 35 |     }
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:33:89: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     }
 32 |
 33 |     public func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse) {
    |                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         try await session.upload(for: request, from: data)
 35 |     }
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/GeminiKit/Networking/HTTPClient.swift:12:28: error: cannot find type 'URLRequest' in scope
10 |     ///   - request: The URL request to perform
11 |     /// - Returns: The response data and URL response
12 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |     /// Performs a streaming request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:18:30: error: cannot find type 'URLRequest' in scope
16 |     ///   - request: The URL request to perform
17 |     /// - Returns: An async stream of data chunks
18 |     func stream(for request: URLRequest) async throws -> AsyncThrowingStream<Data, Error>
   |                              `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Uploads data with a request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:25:30: error: cannot find type 'URLRequest' in scope
23 |     ///   - data: The data to upload
24 |     /// - Returns: The response data and URL response
25 |     func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse)
   |                              `- error: cannot find type 'URLRequest' in scope
26 | }
27 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:39:50: error: cannot find type 'URLSessionDataDelegate' in scope
 37 |
 38 | /// URLSession delegate for handling streaming responses
 39 | private final class StreamingDelegate: NSObject, URLSessionDataDelegate {
    |                                                  `- error: cannot find type 'URLSessionDataDelegate' in scope
 40 |     let continuation: AsyncThrowingStream<Data, Error>.Continuation
 41 |     private var errorResponseData = Data()
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:42:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |     let continuation: AsyncThrowingStream<Data, Error>.Continuation
 41 |     private var errorResponseData = Data()
 42 |     private var httpResponse: Foundation.HTTPURLResponse?
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |     private var session: URLSession?
 44 |
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/GeminiKit/Networking/URLSessionHTTPClient.swift:43:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     private var errorResponseData = Data()
 42 |     private var httpResponse: Foundation.HTTPURLResponse?
 43 |     private var session: URLSession?
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |
 45 |     init(continuation: AsyncThrowingStream<Data, Error>.Continuation) {
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/GeminiKit/Networking/URLSessionHTTPClient.swift:50:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |     }
 49 |
 50 |     func setSession(_ session: URLSession) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |         self.session = session
 52 |     }
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/GeminiKit/Networking/URLSessionHTTPClient.swift:54:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 52 |     }
 53 |
 54 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |         // If we have an error response, accumulate the data
 56 |         if let httpResponse = httpResponse, httpResponse.statusCode >= 400 {
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/GeminiKit/Networking/URLSessionHTTPClient.swift:54:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 52 |     }
 53 |
 54 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |         // If we have an error response, accumulate the data
 56 |         if let httpResponse = httpResponse, httpResponse.statusCode >= 400 {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:63:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     }
 62 |
 63 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |         if let error = error {
 65 |             continuation.finish(throwing: error)
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/GeminiKit/Networking/URLSessionHTTPClient.swift:63:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     }
 62 |
 63 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |         if let error = error {
 65 |             continuation.finish(throwing: error)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:110:149: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
108 |     }
109 |
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                                                                                                                                     `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:110:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
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/GeminiKit/Networking/URLSessionHTTPClient.swift:110:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:110:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
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/GeminiKit/Networking/URLSessionHTTPClient.swift:13:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 11 |
 12 |     public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
 13 |         try await session.data(for: request)
    |                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 14 |     }
 15 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:19:35: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 17 |         AsyncThrowingStream { continuation in
 18 |             let delegate = StreamingDelegate(continuation: continuation)
 19 |             let delegateSession = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
    |                                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 20 |             delegate.setSession(delegateSession)
 21 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:19:62: error: cannot infer contextual base in reference to member 'default'
 17 |         AsyncThrowingStream { continuation in
 18 |             let delegate = StreamingDelegate(continuation: continuation)
 19 |             let delegateSession = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
    |                                                              `- error: cannot infer contextual base in reference to member 'default'
 20 |             delegate.setSession(delegateSession)
 21 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:19:106: error: 'nil' requires a contextual type
 17 |         AsyncThrowingStream { continuation in
 18 |             let delegate = StreamingDelegate(continuation: continuation)
 19 |             let delegateSession = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
    |                                                                                                          `- error: 'nil' requires a contextual type
 20 |             delegate.setSession(delegateSession)
 21 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:34:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
 32 |
 33 |     public func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse) {
 34 |         try await session.upload(for: request, from: data)
    |                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
 35 |     }
 36 | }
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:56:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 54 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
 55 |         // If we have an error response, accumulate the data
 56 |         if let httpResponse = httpResponse, httpResponse.statusCode >= 400 {
    |                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 57 |             errorResponseData.append(data)
 58 |         } else {
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:66:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 64 |         if let error = error {
 65 |             continuation.finish(throwing: error)
 66 |         } else if let httpResponse = httpResponse, httpResponse.statusCode >= 400 {
    |                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 67 |             // Try to parse JSON error response
 68 |             if let errorData = errorResponseData.isEmpty ? nil : errorResponseData,
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:73:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 71 |                let message = errorInfo["message"] as? String {
 72 |
 73 |                 let code = errorInfo["code"] as? Int ?? httpResponse.statusCode
    |                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |                 let status = errorInfo["status"] as? String
 75 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:78:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 76 |                 // Map to appropriate GeminiError
 77 |                 let geminiError: GeminiError
 78 |                 if httpResponse.statusCode == 401 || httpResponse.statusCode == 403 {
    |                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 79 |                     geminiError = .authenticationFailed(message)
 80 |                 } else if httpResponse.statusCode == 429 {
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:78:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 76 |                 // Map to appropriate GeminiError
 77 |                 let geminiError: GeminiError
 78 |                 if httpResponse.statusCode == 401 || httpResponse.statusCode == 403 {
    |                                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 79 |                     geminiError = .authenticationFailed(message)
 80 |                 } else if httpResponse.statusCode == 429 {
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:80:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 78 |                 if httpResponse.statusCode == 401 || httpResponse.statusCode == 403 {
 79 |                     geminiError = .authenticationFailed(message)
 80 |                 } else if httpResponse.statusCode == 429 {
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 81 |                     geminiError = .rateLimitExceeded
 82 |                 } else if message.contains("quota") {
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:97:109: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 95 |             } else {
 96 |                 // Fallback to generic error
 97 |                 let errorMessage = String(data: errorResponseData, encoding: .utf8) ?? "HTTP \(httpResponse.statusCode)"
    |                                                                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 98 |                 let error = GeminiError.apiError(
 99 |                     code: httpResponse.statusCode,
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:99:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |                 let errorMessage = String(data: errorResponseData, encoding: .utf8) ?? "HTTP \(httpResponse.statusCode)"
 98 |                 let error = GeminiError.apiError(
 99 |                     code: httpResponse.statusCode,
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
100 |                     message: errorMessage,
101 |                     details: nil
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:112:33: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
    |                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
113 |
114 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:112:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 |
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/GeminiKit/Networking/URLSessionHTTPClient.swift:116:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
114 |
115 |         // Check if we got an HTTP error response
116 |         if let httpResponse = response as? Foundation.HTTPURLResponse, httpResponse.statusCode >= 400 {
    |                                        `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
117 |             // Allow the request to continue so we can collect the error body
118 |             completionHandler(.allow)
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:116:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |
115 |         // Check if we got an HTTP error response
116 |         if let httpResponse = response as? Foundation.HTTPURLResponse, httpResponse.statusCode >= 400 {
    |                                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |             // Allow the request to continue so we can collect the error body
118 |             completionHandler(.allow)
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/GeminiKit/Networking/URLSessionHTTPClient.swift:116:85: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 |
115 |         // Check if we got an HTTP error response
116 |         if let httpResponse = response as? Foundation.HTTPURLResponse, httpResponse.statusCode >= 400 {
    |                                                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
117 |             // Allow the request to continue so we can collect the error body
118 |             completionHandler(.allow)
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:118:32: error: cannot infer contextual base in reference to member 'allow'
116 |         if let httpResponse = response as? Foundation.HTTPURLResponse, httpResponse.statusCode >= 400 {
117 |             // Allow the request to continue so we can collect the error body
118 |             completionHandler(.allow)
    |                                `- error: cannot infer contextual base in reference to member 'allow'
119 |         } else {
120 |             completionHandler(.allow)
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:120:32: error: cannot infer contextual base in reference to member 'allow'
118 |             completionHandler(.allow)
119 |         } else {
120 |             completionHandler(.allow)
    |                                `- error: cannot infer contextual base in reference to member 'allow'
121 |         }
122 |     }
[8/32] Compiling GeminiKit SpecializedModels.swift
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:12:28: error: cannot find type 'URLRequest' in scope
10 |     ///   - request: The URL request to perform
11 |     /// - Returns: The response data and URL response
12 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |     /// Performs a streaming request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:18:30: error: cannot find type 'URLRequest' in scope
16 |     ///   - request: The URL request to perform
17 |     /// - Returns: An async stream of data chunks
18 |     func stream(for request: URLRequest) async throws -> AsyncThrowingStream<Data, Error>
   |                              `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Uploads data with a request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:25:30: error: cannot find type 'URLRequest' in scope
23 |     ///   - data: The data to upload
24 |     /// - Returns: The response data and URL response
25 |     func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse)
   |                              `- error: cannot find type 'URLRequest' in scope
26 | }
27 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/APIClient.swift:40:23: error: cannot find 'URLRequest' in scope
 38 |     ) async throws -> Response {
 39 |         let url = buildURL(endpoint: endpoint, useOpenAI: useOpenAI)
 40 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 41 |         request.httpMethod = method
 42 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/APIClient.swift:160:23: error: cannot find 'URLRequest' in scope
158 |     ) async throws -> AsyncThrowingStream<Response, Error> {
159 |         let url = buildURL(endpoint: endpoint + "?alt=sse", useOpenAI: useOpenAI)
160 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
161 |         request.httpMethod = "POST"
162 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/APIClient.swift:347:27: error: cannot find 'URLRequest' in scope
345 |         // Step 1: Initialize resumable upload
346 |         let initURL = buildURL(endpoint: "/files", useUpload: true)
347 |         var initRequest = URLRequest(url: initURL)
    |                           `- error: cannot find 'URLRequest' in scope
348 |         initRequest.httpMethod = "POST"
349 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/APIClient.swift:384:29: error: cannot find 'URLRequest' in scope
382 |
383 |         // Step 2: Upload file data
384 |         var uploadRequest = URLRequest(url: uploadURL)
    |                             `- error: cannot find 'URLRequest' in scope
385 |         uploadRequest.httpMethod = "PUT"
386 |
[9/32] Compiling GeminiKit APIClient.swift
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:12:28: error: cannot find type 'URLRequest' in scope
10 |     ///   - request: The URL request to perform
11 |     /// - Returns: The response data and URL response
12 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |     /// Performs a streaming request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:18:30: error: cannot find type 'URLRequest' in scope
16 |     ///   - request: The URL request to perform
17 |     /// - Returns: An async stream of data chunks
18 |     func stream(for request: URLRequest) async throws -> AsyncThrowingStream<Data, Error>
   |                              `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Uploads data with a request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:25:30: error: cannot find type 'URLRequest' in scope
23 |     ///   - data: The data to upload
24 |     /// - Returns: The response data and URL response
25 |     func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse)
   |                              `- error: cannot find type 'URLRequest' in scope
26 | }
27 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/APIClient.swift:40:23: error: cannot find 'URLRequest' in scope
 38 |     ) async throws -> Response {
 39 |         let url = buildURL(endpoint: endpoint, useOpenAI: useOpenAI)
 40 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 41 |         request.httpMethod = method
 42 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/APIClient.swift:160:23: error: cannot find 'URLRequest' in scope
158 |     ) async throws -> AsyncThrowingStream<Response, Error> {
159 |         let url = buildURL(endpoint: endpoint + "?alt=sse", useOpenAI: useOpenAI)
160 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
161 |         request.httpMethod = "POST"
162 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/APIClient.swift:347:27: error: cannot find 'URLRequest' in scope
345 |         // Step 1: Initialize resumable upload
346 |         let initURL = buildURL(endpoint: "/files", useUpload: true)
347 |         var initRequest = URLRequest(url: initURL)
    |                           `- error: cannot find 'URLRequest' in scope
348 |         initRequest.httpMethod = "POST"
349 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/APIClient.swift:384:29: error: cannot find 'URLRequest' in scope
382 |
383 |         // Step 2: Upload file data
384 |         var uploadRequest = URLRequest(url: uploadURL)
    |                             `- error: cannot find 'URLRequest' in scope
385 |         uploadRequest.httpMethod = "PUT"
386 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/32] Emitting module GeminiKit
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:12:28: error: cannot find type 'URLRequest' in scope
10 |     ///   - request: The URL request to perform
11 |     /// - Returns: The response data and URL response
12 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |     /// Performs a streaming request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:18:30: error: cannot find type 'URLRequest' in scope
16 |     ///   - request: The URL request to perform
17 |     /// - Returns: An async stream of data chunks
18 |     func stream(for request: URLRequest) async throws -> AsyncThrowingStream<Data, Error>
   |                              `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Uploads data with a request
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:25:30: error: cannot find type 'URLRequest' in scope
23 |     ///   - data: The data to upload
24 |     /// - Returns: The response data and URL response
25 |     func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse)
   |                              `- error: cannot find type 'URLRequest' in scope
26 | }
27 |
/host/spi-builder-workspace/Sources/GeminiKit/Networking/HTTPClient.swift:12:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |     ///   - request: The URL request to perform
11 |     /// - Returns: The response data and URL response
12 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     /// Performs a streaming request
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/GeminiKit/Networking/HTTPClient.swift:25:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     ///   - data: The data to upload
24 |     /// - Returns: The response data and URL response
25 |     func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse)
   |                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | }
27 |
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/GeminiKit/Networking/HTTPClient.swift:29:37: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 | /// HTTP response for non-URLSession implementations
29 | public final class HTTPURLResponse: URLResponse, @unchecked Sendable {
   |                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |     public let statusCode: Int
31 |     public let headers: [String: String]
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/GeminiKit/Networking/URLSessionHTTPClient.swift:6:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  4 | /// URLSession-based HTTP client for Apple platforms
  5 | public final class URLSessionHTTPClient: HTTPClient, @unchecked Sendable {
  6 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 |
  8 |     public init(session: URLSession = .shared) {
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/GeminiKit/Networking/URLSessionHTTPClient.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     private let session: URLSession
  7 |
  8 |     public init(session: URLSession = .shared) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |         self.session = session
 10 |     }
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/GeminiKit/Networking/URLSessionHTTPClient.swift:8:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  6 |     private let session: URLSession
  7 |
  8 |     public init(session: URLSession = .shared) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  9 |         self.session = session
 10 |     }
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:12:35: error: cannot find type 'URLRequest' in scope
 10 |     }
 11 |
 12 |     public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                   `- error: cannot find type 'URLRequest' in scope
 13 |         try await session.data(for: request)
 14 |     }
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:12:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |     }
 11 |
 12 |     public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |         try await session.data(for: request)
 14 |     }
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/GeminiKit/Networking/URLSessionHTTPClient.swift:16:37: error: cannot find type 'URLRequest' in scope
 14 |     }
 15 |
 16 |     public func stream(for request: URLRequest) async throws -> AsyncThrowingStream<Data, Error> {
    |                                     `- error: cannot find type 'URLRequest' in scope
 17 |         AsyncThrowingStream { continuation in
 18 |             let delegate = StreamingDelegate(continuation: continuation)
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:33:37: error: cannot find type 'URLRequest' in scope
 31 |     }
 32 |
 33 |     public func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse) {
    |                                     `- error: cannot find type 'URLRequest' in scope
 34 |         try await session.upload(for: request, from: data)
 35 |     }
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:33:89: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     }
 32 |
 33 |     public func upload(for request: URLRequest, from data: Data) async throws -> (Data, URLResponse) {
    |                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         try await session.upload(for: request, from: data)
 35 |     }
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/GeminiKit/Networking/URLSessionHTTPClient.swift:39:50: error: cannot find type 'URLSessionDataDelegate' in scope
 37 |
 38 | /// URLSession delegate for handling streaming responses
 39 | private final class StreamingDelegate: NSObject, URLSessionDataDelegate {
    |                                                  `- error: cannot find type 'URLSessionDataDelegate' in scope
 40 |     let continuation: AsyncThrowingStream<Data, Error>.Continuation
 41 |     private var errorResponseData = Data()
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:42:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |     let continuation: AsyncThrowingStream<Data, Error>.Continuation
 41 |     private var errorResponseData = Data()
 42 |     private var httpResponse: Foundation.HTTPURLResponse?
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |     private var session: URLSession?
 44 |
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/GeminiKit/Networking/URLSessionHTTPClient.swift:43:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     private var errorResponseData = Data()
 42 |     private var httpResponse: Foundation.HTTPURLResponse?
 43 |     private var session: URLSession?
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |
 45 |     init(continuation: AsyncThrowingStream<Data, Error>.Continuation) {
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/GeminiKit/Networking/URLSessionHTTPClient.swift:50:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |     }
 49 |
 50 |     func setSession(_ session: URLSession) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |         self.session = session
 52 |     }
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/GeminiKit/Networking/URLSessionHTTPClient.swift:54:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 52 |     }
 53 |
 54 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |         // If we have an error response, accumulate the data
 56 |         if let httpResponse = httpResponse, httpResponse.statusCode >= 400 {
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/GeminiKit/Networking/URLSessionHTTPClient.swift:54:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 52 |     }
 53 |
 54 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |         // If we have an error response, accumulate the data
 56 |         if let httpResponse = httpResponse, httpResponse.statusCode >= 400 {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:63:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     }
 62 |
 63 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |         if let error = error {
 65 |             continuation.finish(throwing: error)
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/GeminiKit/Networking/URLSessionHTTPClient.swift:63:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     }
 62 |
 63 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |         if let error = error {
 65 |             continuation.finish(throwing: error)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:110:149: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
108 |     }
109 |
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                                                                                                                                     `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:110:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
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/GeminiKit/Networking/URLSessionHTTPClient.swift:110:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GeminiKit/Networking/URLSessionHTTPClient.swift:110:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         // Store the response
112 |         httpResponse = response as? Foundation.HTTPURLResponse
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
[11/32] Emitting module ArgumentParserToolInfo
[12/32] Compiling ArgumentParserToolInfo ToolInfo.swift
[14/32] Compiling GeminiKit SpecializedEndpoints.swift
[15/32] Compiling GeminiKit ToolExtensions.swift
[16/32] Compiling GeminiKit AnyCodable.swift
[17/76] Compiling ArgumentParser OptionGroup.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[18/76] Compiling ArgumentParser AsyncParsableCommand.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[19/76] Compiling ArgumentParser CommandConfiguration.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[20/76] Compiling ArgumentParser CommandGroup.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[21/76] Compiling ArgumentParser EnumerableFlag.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[22/76] Compiling ArgumentParser ExpressibleByArgument.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[23/82] Compiling ArgumentParser CollectionExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[24/82] Compiling ArgumentParser Mutex.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[25/82] Compiling ArgumentParser Platform.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[26/82] Compiling ArgumentParser SequenceExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[27/82] Compiling ArgumentParser StringExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[28/82] Compiling ArgumentParser SwiftExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[29/82] Compiling ArgumentParser Tree.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[30/82] Compiling ArgumentParser CodingKeyValidator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[31/82] Compiling ArgumentParser NonsenseFlagsValidator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[32/82] Compiling ArgumentParser ParsableArgumentsValidation.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[33/82] Compiling ArgumentParser PositionalArgumentsValidator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[34/82] Compiling ArgumentParser UniqueNamesValidator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
error: emit-module command failed with exit code 1 (use -v to see invocation)
[35/82] Emitting module ArgumentParser
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[36/82] Compiling ArgumentParser BashCompletionsGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[37/82] Compiling ArgumentParser CompletionsGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[38/82] Compiling ArgumentParser FishCompletionsGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[39/82] Compiling ArgumentParser ZshCompletionsGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[40/82] Compiling ArgumentParser Argument.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[41/82] Compiling ArgumentParser ArgumentDiscussion.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[42/82] Compiling ArgumentParser ArgumentHelp.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[43/82] Compiling ArgumentParser ArgumentVisibility.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[44/82] Compiling ArgumentParser CompletionKind.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[45/82] Compiling ArgumentParser Errors.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[46/82] Compiling ArgumentParser Flag.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[47/82] Compiling ArgumentParser NameSpecification.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[48/82] Compiling ArgumentParser Option.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[51/82] Compiling ArgumentParser InputKey.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[52/82] Compiling ArgumentParser InputOrigin.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[53/82] Compiling ArgumentParser Name.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[54/82] Compiling ArgumentParser Parsed.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[55/82] Compiling ArgumentParser ParsedValues.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[56/82] Compiling ArgumentParser ParserError.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[57/82] Compiling ArgumentParser SplitArguments.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[58/82] Compiling ArgumentParser DumpHelpGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[59/82] Compiling ArgumentParser HelpCommand.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[60/82] Compiling ArgumentParser HelpGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[61/82] Compiling ArgumentParser MessageInfo.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[62/82] Compiling ArgumentParser UsageGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[63/82] Compiling ArgumentParser ParsableArguments.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[64/82] Compiling ArgumentParser ParsableCommand.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[65/82] Compiling ArgumentParser ArgumentDecoder.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[66/82] Compiling ArgumentParser ArgumentDefinition.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[67/82] Compiling ArgumentParser ArgumentSet.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[68/82] Compiling ArgumentParser CommandParser.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
BUILD FAILURE 6.1 wasm