The Swift Package Index logo.Swift Package Index

Build Information

Failed to build StarCraftKit, reference master (b36215), with Swift 6.1 for Wasm on 14 Jul 2026 19:25:46 UTC.

Build Command

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

Build Log

2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 42 |             baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
 43 |             retryConfiguration: RetryConfiguration = .default,
 44 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 45 |         ) {
 46 |             self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 36 |         public let baseURL: URL
 37 |         public let retryConfiguration: RetryConfiguration
 38 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 39 |
 40 |         public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:55:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 |     public init(configuration: Configuration) {
 54 |         self.configuration = configuration
 55 |         let session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 56 |         self.networkingClient = NetworkingClient(
 57 |             baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
 87 |         headers: [String: String] = [:],
 88 |         body: Data? = nil
 89 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 90 |         let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
 91 |         guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:172:22: error: cannot infer contextual base in reference to member 'get'
170 |         let request = try await networkingClient.buildRequest(
171 |             path: path,
172 |             method: .get,
    |                      `- error: cannot infer contextual base in reference to member 'get'
173 |             queryParameters: queryParams
174 |         )
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 |     func send(
131 |         client: NetworkingClient,
132 |         request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
133 |     ) async throws -> (data: Data, headers: [String: String]) {
134 |         try await execute {
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 | public actor BlizzardClient {
 18 |     private let credentials: BlizzardCredentials
 19 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |     private let networkingClient: NetworkingClient
 21 |     private let retryHandler: RetryHandler
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/StarCraftKit/Blizzard/BlizzardClient.swift:32:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |         public let oauthURL: URL
 31 |         public let retryConfiguration: RetryConfiguration
 32 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |
 34 |         public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |             oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
 37 |             retryConfiguration: RetryConfiguration = .default,
 38 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |         ) {
 40 |             self.credentials = credentials
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 36 |             oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
 37 |             retryConfiguration: RetryConfiguration = .default,
 38 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 39 |         ) {
 40 |             self.credentials = credentials
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:32:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 30 |         public let oauthURL: URL
 31 |         public let retryConfiguration: RetryConfiguration
 32 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 33 |
 34 |         public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:50:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 48 |         self.credentials = configuration.credentials
 49 |         self.oauthURL = configuration.oauthURL
 50 |         self.session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 51 |         self.networkingClient = NetworkingClient(
 52 |             baseURL: URL(string: "https://us.api.blizzard.com")!,
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:118:23: error: cannot find 'URLRequest' in scope
116 |             throw APIError.invalidRequest(reason: "Invalid Blizzard path: \(path)")
117 |         }
118 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
119 |         request.httpMethod = "GET"
120 |         request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:137:23: error: cannot find 'URLRequest' in scope
135 |
136 |     private func fetchToken() async throws -> BlizzardToken {
137 |         var request = URLRequest(url: oauthURL)
    |                       `- error: cannot find 'URLRequest' in scope
138 |         request.httpMethod = "POST"
139 |         let basic = Data("\(credentials.clientId):\(credentials.clientSecret)".utf8).base64EncodedString()
[73/120] Compiling StarCraftKit TeamEndpoint.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[74/120] Compiling StarCraftKit TournamentEndpoint.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[75/120] Compiling StarCraftKit League.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[76/120] Compiling StarCraftKit Match.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
[3/3] Compiling plugin GenerateManual
[4/4] Compiling plugin GenerateDoccReference
Building for debugging...
[4/12] Write swift-version-24593BA9C3E375BF.txt
[6/25] Compiling Logging LoggingSystem.swift
[7/26] Compiling Logging MetadataProvider.swift
[8/26] Compiling Logging SwiftLogNoOpLogHandler.swift
[9/26] Compiling Logging Locks.swift
[10/26] Compiling Logging LogEvent.swift
[11/26] Compiling Logging LogHandler.swift
[12/26] Compiling Logging Logger+Attributes.swift
[13/26] Compiling Logging Logger.swift
[14/26] Compiling Logging Logger+With.swift
unable to find node: pound
unable to find node: pound
[15/26] Emitting module Logging
unable to find node: pound
unable to find node: pound
[16/26] Compiling Logging MultiplexLogHandler.swift
[17/26] Compiling Logging StreamLogHandler.swift
[19/56] Emitting module ArgumentParserToolInfo
[20/56] Compiling ArgumentParserToolInfo ToolInfo.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[22/56] Emitting module StarCraftKit
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |         public let baseURL: URL
 37 |         public let retryConfiguration: RetryConfiguration
 38 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |
 40 |         public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |             baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
 43 |             retryConfiguration: RetryConfiguration = .default,
 44 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |         ) {
 46 |             self.apiKey = apiKey
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 42 |             baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
 43 |             retryConfiguration: RetryConfiguration = .default,
 44 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 45 |         ) {
 46 |             self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 36 |         public let baseURL: URL
 37 |         public let retryConfiguration: RetryConfiguration
 38 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 39 |
 40 |         public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:55:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 |     public init(configuration: Configuration) {
 54 |         self.configuration = configuration
 55 |         let session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 56 |         self.networkingClient = NetworkingClient(
 57 |             baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 | public actor BlizzardClient {
 18 |     private let credentials: BlizzardCredentials
 19 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |     private let networkingClient: NetworkingClient
 21 |     private let retryHandler: RetryHandler
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/StarCraftKit/Blizzard/BlizzardClient.swift:32:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |         public let oauthURL: URL
 31 |         public let retryConfiguration: RetryConfiguration
 32 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |
 34 |         public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |             oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
 37 |             retryConfiguration: RetryConfiguration = .default,
 38 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |         ) {
 40 |             self.credentials = credentials
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 36 |             oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
 37 |             retryConfiguration: RetryConfiguration = .default,
 38 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 39 |         ) {
 40 |             self.credentials = credentials
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:32:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 30 |         public let oauthURL: URL
 31 |         public let retryConfiguration: RetryConfiguration
 32 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 33 |
 34 |         public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:50:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 48 |         self.credentials = configuration.credentials
 49 |         self.oauthURL = configuration.oauthURL
 50 |         self.session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 51 |         self.networkingClient = NetworkingClient(
 52 |             baseURL: URL(string: "https://us.api.blizzard.com")!,
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 | /// store the original response bytes (avoiding an `Encodable` round-trip).
 12 | public actor NetworkingClient {
 13 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |     private let logger: Logger
 15 |     private let baseURL: URL
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/StarCraftKit/Core/Networking/NetworkingClient.swift:24:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     public init(
 23 |         baseURL: URL,
 24 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |         defaultHeaders: [String: String] = [:],
 26 |         logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
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/StarCraftKit/Core/Networking/NetworkingClient.swift:24:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |     public init(
 23 |         baseURL: URL,
 24 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 25 |         defaultHeaders: [String: String] = [:],
 26 |         logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:35:33: error: cannot find type 'URLRequest' in scope
 33 |
 34 |     /// Execute a request and return the validated raw response body and headers.
 35 |     public func send(_ request: URLRequest) async throws -> (data: Data, headers: [String: String]) {
    |                                 `- error: cannot find type 'URLRequest' in scope
 36 |         logger.debug("Executing request: \(request.url?.absoluteString ?? "unknown")")
 37 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
 87 |         headers: [String: String] = [:],
 88 |         body: Data? = nil
 89 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 90 |         let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
 91 |         guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:135:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |     }
134 |
135 |     private func updateRateLimitInfo(from response: HTTPURLResponse) {
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |         if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
137 |            let remaining = Int(remainingString) {
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/StarCraftKit/Core/Networking/NetworkingClient.swift:148:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 |     }
147 |
148 |     private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 |         switch response.statusCode {
150 |         case 200...299:
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/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 |     func send(
131 |         client: NetworkingClient,
132 |         request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
133 |     ) async throws -> (data: Data, headers: [String: String]) {
134 |         try await execute {
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:33:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |         public let userAgent: String
 32 |         public let retryConfiguration: RetryConfiguration
 33 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |
 35 |         public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |             userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
 38 |             retryConfiguration: RetryConfiguration = .default,
 39 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         ) {
 41 |             self.baseURL = baseURL
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 37 |             userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
 38 |             retryConfiguration: RetryConfiguration = .default,
 39 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 40 |         ) {
 41 |             self.baseURL = baseURL
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:33:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 31 |         public let userAgent: String
 32 |         public let retryConfiguration: RetryConfiguration
 33 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 34 |
 35 |         public init(
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:50:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 48 |     public init(configuration: Configuration = Configuration()) {
 49 |         self.configuration = configuration
 50 |         let session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 51 |         self.networkingClient = NetworkingClient(
 52 |             baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:72:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         public let retryConfiguration: RetryConfiguration
 71 |         public let cacheConfiguration: CacheConfiguration
 72 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |
 74 |         /// The API token (alias for ``apiKey``).
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |             retryConfiguration: RetryConfiguration = .default,
 97 |             cacheConfiguration: CacheConfiguration = CacheConfiguration(),
 98 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 |         ) {
100 |             self.apiKey = apiKey
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 96 |             retryConfiguration: RetryConfiguration = .default,
 97 |             cacheConfiguration: CacheConfiguration = CacheConfiguration(),
 98 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 99 |         ) {
100 |             self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:72:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 70 |         public let retryConfiguration: RetryConfiguration
 71 |         public let cacheConfiguration: CacheConfiguration
 72 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 73 |
 74 |         /// The API token (alias for ``apiKey``).
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:275:23: error: cannot find type 'URLRequest' in scope
273 |         for request: any APIRequest,
274 |         overridingQuery: [String: QueryValue]?
275 |     ) async throws -> URLRequest {
    |                       `- error: cannot find type 'URLRequest' in scope
276 |         var queryParams = overridingQuery ?? request.queryParameters
277 |         if configuration.authMethod == .queryParameter {
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:119:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
117 |         }
118 |
119 |         let session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
120 |
121 |         self.networkingClient = NetworkingClient(
[23/73] Compiling ArgumentParser ArgumentDiscussion.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 | /// store the original response bytes (avoiding an `Encodable` round-trip).
 12 | public actor NetworkingClient {
 13 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |     private let logger: Logger
 15 |     private let baseURL: URL
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/StarCraftKit/Core/Networking/NetworkingClient.swift:24:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     public init(
 23 |         baseURL: URL,
 24 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |         defaultHeaders: [String: String] = [:],
 26 |         logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
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/StarCraftKit/Core/Networking/NetworkingClient.swift:24:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |     public init(
 23 |         baseURL: URL,
 24 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 25 |         defaultHeaders: [String: String] = [:],
 26 |         logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:35:33: error: cannot find type 'URLRequest' in scope
 33 |
 34 |     /// Execute a request and return the validated raw response body and headers.
 35 |     public func send(_ request: URLRequest) async throws -> (data: Data, headers: [String: String]) {
    |                                 `- error: cannot find type 'URLRequest' in scope
 36 |         logger.debug("Executing request: \(request.url?.absoluteString ?? "unknown")")
 37 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
 87 |         headers: [String: String] = [:],
 88 |         body: Data? = nil
 89 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 90 |         let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
 91 |         guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:135:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |     }
134 |
135 |     private func updateRateLimitInfo(from response: HTTPURLResponse) {
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |         if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
137 |            let remaining = Int(remainingString) {
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/StarCraftKit/Core/Networking/NetworkingClient.swift:148:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 |     }
147 |
148 |     private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 |         switch response.statusCode {
150 |         case 200...299:
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/StarCraftKit/Core/Networking/NetworkingClient.swift:39:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |
 38 |         let data: Data
 39 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         do {
 41 |             #if canImport(FoundationNetworking)
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/StarCraftKit/Core/Networking/NetworkingClient.swift:55:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 53 |             }
 54 |             #else
 55 |             (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 56 |             #endif
 57 |         } catch let error as APIError {
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:65:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 63 |         }
 64 |
 65 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 66 |             throw APIError.networkError(underlying: URLError(.badServerResponse))
 67 |         }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:65:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |         }
 64 |
 65 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |             throw APIError.networkError(underlying: URLError(.badServerResponse))
 67 |         }
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/StarCraftKit/Core/Networking/NetworkingClient.swift:71:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 69 |         updateRateLimitInfo(from: httpResponse)
 70 |
 71 |         let headers = httpResponse.allHeaderFields.reduce(into: [String: String]()) { result, header in
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 72 |             if let key = header.key as? String, let value = header.value as? String {
 73 |                 result[key.lowercased()] = value
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:111:23: error: cannot find 'URLRequest' in scope
109 |         }
110 |
111 |         var request = URLRequest(url: finalURL)
    |                       `- error: cannot find 'URLRequest' in scope
112 |         request.httpMethod = method.rawValue
113 |         request.httpBody = body
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:136:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
134 |
135 |     private func updateRateLimitInfo(from response: HTTPURLResponse) {
136 |         if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 |            let remaining = Int(remainingString) {
138 |             rateLimitRemaining = remaining
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:149:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
147 |
148 |     private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
149 |         switch response.statusCode {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
150 |         case 200...299:
151 |             return
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:162:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
160 |             throw APIError.forbidden(message: errorResponse?.message ?? "Plan does not support requested URL")
161 |         case 404:
162 |             throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
    |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
163 |         case 429:
164 |             let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:164:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
162 |             throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
163 |         case 429:
164 |             let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
    |                                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
165 |             let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
166 |             throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:165:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
163 |         case 429:
164 |             let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
165 |             let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
    |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
166 |             throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
167 |         case 500...599:
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:169:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
167 |         case 500...599:
168 |             let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
169 |             throw APIError.serverError(statusCode: response.statusCode, message: errorResponse?.message)
    |                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
170 |         default:
171 |             let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:172:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
170 |         default:
171 |             let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
172 |             throw APIError.httpError(statusCode: response.statusCode, response: errorResponse)
    |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
173 |         }
174 |     }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 |     func send(
131 |         client: NetworkingClient,
132 |         request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
133 |     ) async throws -> (data: Data, headers: [String: String]) {
134 |         try await execute {
[24/73] Compiling ArgumentParser ArgumentHelp.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 | /// store the original response bytes (avoiding an `Encodable` round-trip).
 12 | public actor NetworkingClient {
 13 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |     private let logger: Logger
 15 |     private let baseURL: URL
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/StarCraftKit/Core/Networking/NetworkingClient.swift:24:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     public init(
 23 |         baseURL: URL,
 24 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |         defaultHeaders: [String: String] = [:],
 26 |         logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
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/StarCraftKit/Core/Networking/NetworkingClient.swift:24:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |     public init(
 23 |         baseURL: URL,
 24 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 25 |         defaultHeaders: [String: String] = [:],
 26 |         logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:35:33: error: cannot find type 'URLRequest' in scope
 33 |
 34 |     /// Execute a request and return the validated raw response body and headers.
 35 |     public func send(_ request: URLRequest) async throws -> (data: Data, headers: [String: String]) {
    |                                 `- error: cannot find type 'URLRequest' in scope
 36 |         logger.debug("Executing request: \(request.url?.absoluteString ?? "unknown")")
 37 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
 87 |         headers: [String: String] = [:],
 88 |         body: Data? = nil
 89 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 90 |         let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
 91 |         guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:135:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |     }
134 |
135 |     private func updateRateLimitInfo(from response: HTTPURLResponse) {
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |         if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
137 |            let remaining = Int(remainingString) {
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/StarCraftKit/Core/Networking/NetworkingClient.swift:148:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 |     }
147 |
148 |     private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 |         switch response.statusCode {
150 |         case 200...299:
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/StarCraftKit/Core/Networking/NetworkingClient.swift:39:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |
 38 |         let data: Data
 39 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         do {
 41 |             #if canImport(FoundationNetworking)
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/StarCraftKit/Core/Networking/NetworkingClient.swift:55:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 53 |             }
 54 |             #else
 55 |             (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 56 |             #endif
 57 |         } catch let error as APIError {
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:65:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 63 |         }
 64 |
 65 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 66 |             throw APIError.networkError(underlying: URLError(.badServerResponse))
 67 |         }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:65:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |         }
 64 |
 65 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |             throw APIError.networkError(underlying: URLError(.badServerResponse))
 67 |         }
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/StarCraftKit/Core/Networking/NetworkingClient.swift:71:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 69 |         updateRateLimitInfo(from: httpResponse)
 70 |
 71 |         let headers = httpResponse.allHeaderFields.reduce(into: [String: String]()) { result, header in
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 72 |             if let key = header.key as? String, let value = header.value as? String {
 73 |                 result[key.lowercased()] = value
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:111:23: error: cannot find 'URLRequest' in scope
109 |         }
110 |
111 |         var request = URLRequest(url: finalURL)
    |                       `- error: cannot find 'URLRequest' in scope
112 |         request.httpMethod = method.rawValue
113 |         request.httpBody = body
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:136:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
134 |
135 |     private func updateRateLimitInfo(from response: HTTPURLResponse) {
136 |         if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 |            let remaining = Int(remainingString) {
138 |             rateLimitRemaining = remaining
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:149:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
147 |
148 |     private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
149 |         switch response.statusCode {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
150 |         case 200...299:
151 |             return
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:162:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
160 |             throw APIError.forbidden(message: errorResponse?.message ?? "Plan does not support requested URL")
161 |         case 404:
162 |             throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
    |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
163 |         case 429:
164 |             let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:164:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
162 |             throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
163 |         case 429:
164 |             let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
    |                                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
165 |             let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
166 |             throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:165:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
163 |         case 429:
164 |             let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
165 |             let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
    |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
166 |             throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
167 |         case 500...599:
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:169:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
167 |         case 500...599:
168 |             let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
169 |             throw APIError.serverError(statusCode: response.statusCode, message: errorResponse?.message)
    |                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
170 |         default:
171 |             let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:172:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
170 |         default:
171 |             let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
172 |             throw APIError.httpError(statusCode: response.statusCode, response: errorResponse)
    |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
173 |         }
174 |     }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 |     func send(
131 |         client: NetworkingClient,
132 |         request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
133 |     ) async throws -> (data: Data, headers: [String: String]) {
134 |         try await execute {
[25/73] Compiling ArgumentParser ParentCommand.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 | /// store the original response bytes (avoiding an `Encodable` round-trip).
 12 | public actor NetworkingClient {
 13 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |     private let logger: Logger
 15 |     private let baseURL: URL
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/StarCraftKit/Core/Networking/NetworkingClient.swift:24:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     public init(
 23 |         baseURL: URL,
 24 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |         defaultHeaders: [String: String] = [:],
 26 |         logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
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/StarCraftKit/Core/Networking/NetworkingClient.swift:24:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |     public init(
 23 |         baseURL: URL,
 24 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 25 |         defaultHeaders: [String: String] = [:],
 26 |         logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:35:33: error: cannot find type 'URLRequest' in scope
 33 |
 34 |     /// Execute a request and return the validated raw response body and headers.
 35 |     public func send(_ request: URLRequest) async throws -> (data: Data, headers: [String: String]) {
    |                                 `- error: cannot find type 'URLRequest' in scope
 36 |         logger.debug("Executing request: \(request.url?.absoluteString ?? "unknown")")
 37 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
 87 |         headers: [String: String] = [:],
 88 |         body: Data? = nil
 89 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 90 |         let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
 91 |         guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:135:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |     }
134 |
135 |     private func updateRateLimitInfo(from response: HTTPURLResponse) {
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |         if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
137 |            let remaining = Int(remainingString) {
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/StarCraftKit/Core/Networking/NetworkingClient.swift:148:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 |     }
147 |
148 |     private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 |         switch response.statusCode {
150 |         case 200...299:
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/StarCraftKit/Core/Networking/NetworkingClient.swift:39:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |
 38 |         let data: Data
 39 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         do {
 41 |             #if canImport(FoundationNetworking)
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/StarCraftKit/Core/Networking/NetworkingClient.swift:55:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 53 |             }
 54 |             #else
 55 |             (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 56 |             #endif
 57 |         } catch let error as APIError {
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:65:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 63 |         }
 64 |
 65 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 66 |             throw APIError.networkError(underlying: URLError(.badServerResponse))
 67 |         }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:65:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |         }
 64 |
 65 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |             throw APIError.networkError(underlying: URLError(.badServerResponse))
 67 |         }
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/StarCraftKit/Core/Networking/NetworkingClient.swift:71:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 69 |         updateRateLimitInfo(from: httpResponse)
 70 |
 71 |         let headers = httpResponse.allHeaderFields.reduce(into: [String: String]()) { result, header in
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 72 |             if let key = header.key as? String, let value = header.value as? String {
 73 |                 result[key.lowercased()] = value
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:111:23: error: cannot find 'URLRequest' in scope
109 |         }
110 |
111 |         var request = URLRequest(url: finalURL)
    |                       `- error: cannot find 'URLRequest' in scope
112 |         request.httpMethod = method.rawValue
113 |         request.httpBody = body
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:136:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
134 |
135 |     private func updateRateLimitInfo(from response: HTTPURLResponse) {
136 |         if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 |            let remaining = Int(remainingString) {
138 |             rateLimitRemaining = remaining
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:149:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
147 |
148 |     private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
149 |         switch response.statusCode {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
150 |         case 200...299:
151 |             return
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:162:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
160 |             throw APIError.forbidden(message: errorResponse?.message ?? "Plan does not support requested URL")
161 |         case 404:
162 |             throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
    |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
163 |         case 429:
164 |             let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:164:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
162 |             throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
163 |         case 429:
164 |             let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
    |                                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
165 |             let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
166 |             throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:165:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
163 |         case 429:
164 |             let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
165 |             let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
    |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
166 |             throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
167 |         case 500...599:
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:169:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
167 |         case 500...599:
168 |             let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
169 |             throw APIError.serverError(statusCode: response.statusCode, message: errorResponse?.message)
    |                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
170 |         default:
171 |             let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:172:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
170 |         default:
171 |             let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
172 |             throw APIError.httpError(statusCode: response.statusCode, response: errorResponse)
    |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
173 |         }
174 |     }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 |     func send(
131 |         client: NetworkingClient,
132 |         request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
133 |     ) async throws -> (data: Data, headers: [String: String]) {
134 |         try await execute {
[26/78] Compiling ArgumentParser AsyncParsableCommand.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 | /// store the original response bytes (avoiding an `Encodable` round-trip).
 12 | public actor NetworkingClient {
 13 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |     private let logger: Logger
 15 |     private let baseURL: URL
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/StarCraftKit/Core/Networking/NetworkingClient.swift:24:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     public init(
 23 |         baseURL: URL,
 24 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |         defaultHeaders: [String: String] = [:],
 26 |         logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
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/StarCraftKit/Core/Networking/NetworkingClient.swift:24:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |     public init(
 23 |         baseURL: URL,
 24 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 25 |         defaultHeaders: [String: String] = [:],
 26 |         logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:35:33: error: cannot find type 'URLRequest' in scope
 33 |
 34 |     /// Execute a request and return the validated raw response body and headers.
 35 |     public func send(_ request: URLRequest) async throws -> (data: Data, headers: [String: String]) {
    |                                 `- error: cannot find type 'URLRequest' in scope
 36 |         logger.debug("Executing request: \(request.url?.absoluteString ?? "unknown")")
 37 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
 87 |         headers: [String: String] = [:],
 88 |         body: Data? = nil
 89 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 90 |         let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
 91 |         guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:135:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |     }
134 |
135 |     private func updateRateLimitInfo(from response: HTTPURLResponse) {
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |         if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
137 |            let remaining = Int(remainingString) {
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/StarCraftKit/Core/Networking/NetworkingClient.swift:148:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 |     }
147 |
148 |     private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 |         switch response.statusCode {
150 |         case 200...299:
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/StarCraftKit/Core/Networking/NetworkingClient.swift:39:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |
 38 |         let data: Data
 39 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         do {
 41 |             #if canImport(FoundationNetworking)
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/StarCraftKit/Core/Networking/NetworkingClient.swift:55:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 53 |             }
 54 |             #else
 55 |             (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 56 |             #endif
 57 |         } catch let error as APIError {
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:65:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 63 |         }
 64 |
 65 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 66 |             throw APIError.networkError(underlying: URLError(.badServerResponse))
 67 |         }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:65:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |         }
 64 |
 65 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |             throw APIError.networkError(underlying: URLError(.badServerResponse))
 67 |         }
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/StarCraftKit/Core/Networking/NetworkingClient.swift:71:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 69 |         updateRateLimitInfo(from: httpResponse)
 70 |
 71 |         let headers = httpResponse.allHeaderFields.reduce(into: [String: String]()) { result, header in
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 72 |             if let key = header.key as? String, let value = header.value as? String {
 73 |                 result[key.lowercased()] = value
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:111:23: error: cannot find 'URLRequest' in scope
109 |         }
110 |
111 |         var request = URLRequest(url: finalURL)
    |                       `- error: cannot find 'URLRequest' in scope
112 |         request.httpMethod = method.rawValue
113 |         request.httpBody = body
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:136:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
134 |
135 |     private func updateRateLimitInfo(from response: HTTPURLResponse) {
136 |         if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 |            let remaining = Int(remainingString) {
138 |             rateLimitRemaining = remaining
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:149:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
147 |
148 |     private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
149 |         switch response.statusCode {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
150 |         case 200...299:
151 |             return
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:162:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
160 |             throw APIError.forbidden(message: errorResponse?.message ?? "Plan does not support requested URL")
161 |         case 404:
162 |             throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
    |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
163 |         case 429:
164 |             let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:164:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
162 |             throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
163 |         case 429:
164 |             let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
    |                                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
165 |             let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
166 |             throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:165:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
163 |         case 429:
164 |             let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
165 |             let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
    |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
166 |             throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
167 |         case 500...599:
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:169:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
167 |         case 500...599:
168 |             let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
169 |             throw APIError.serverError(statusCode: response.statusCode, message: errorResponse?.message)
    |                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
170 |         default:
171 |             let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:172:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
170 |         default:
171 |             let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
172 |             throw APIError.httpError(statusCode: response.statusCode, response: errorResponse)
    |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
173 |         }
174 |     }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 |     func send(
131 |         client: NetworkingClient,
132 |         request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
133 |     ) async throws -> (data: Data, headers: [String: String]) {
134 |         try await execute {
[27/107] Compiling ArgumentParser CommandConfiguration.swift
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:33:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |         public let userAgent: String
 32 |         public let retryConfiguration: RetryConfiguration
 33 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |
 35 |         public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |             userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
 38 |             retryConfiguration: RetryConfiguration = .default,
 39 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         ) {
 41 |             self.baseURL = baseURL
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 37 |             userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
 38 |             retryConfiguration: RetryConfiguration = .default,
 39 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 40 |         ) {
 41 |             self.baseURL = baseURL
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:33:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 31 |         public let userAgent: String
 32 |         public let retryConfiguration: RetryConfiguration
 33 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 34 |
 35 |         public init(
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:50:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 48 |     public init(configuration: Configuration = Configuration()) {
 49 |         self.configuration = configuration
 50 |         let session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 51 |         self.networkingClient = NetworkingClient(
 52 |             baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
 87 |         headers: [String: String] = [:],
 88 |         body: Data? = nil
 89 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 90 |         let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
 91 |         guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:177:84: error: cannot infer contextual base in reference to member 'get'
175 |
176 |     private func fetch(path: String, query: [String: QueryValue]) async throws -> (Data, [String: String]) {
177 |         let request = try await networkingClient.buildRequest(path: path, method: .get, queryParameters: query)
    |                                                                                    `- error: cannot infer contextual base in reference to member 'get'
178 |         return try await retryHandler.send(client: networkingClient, request: request)
179 |     }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 |     func send(
131 |         client: NetworkingClient,
132 |         request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
133 |     ) async throws -> (data: Data, headers: [String: String]) {
134 |         try await execute {
[28/107] Compiling ArgumentParser CommandGroup.swift
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:33:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |         public let userAgent: String
 32 |         public let retryConfiguration: RetryConfiguration
 33 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |
 35 |         public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |             userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
 38 |             retryConfiguration: RetryConfiguration = .default,
 39 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         ) {
 41 |             self.baseURL = baseURL
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 37 |             userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
 38 |             retryConfiguration: RetryConfiguration = .default,
 39 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 40 |         ) {
 41 |             self.baseURL = baseURL
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:33:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 31 |         public let userAgent: String
 32 |         public let retryConfiguration: RetryConfiguration
 33 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 34 |
 35 |         public init(
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:50:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 48 |     public init(configuration: Configuration = Configuration()) {
 49 |         self.configuration = configuration
 50 |         let session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 51 |         self.networkingClient = NetworkingClient(
 52 |             baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
 87 |         headers: [String: String] = [:],
 88 |         body: Data? = nil
 89 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 90 |         let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
 91 |         guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:177:84: error: cannot infer contextual base in reference to member 'get'
175 |
176 |     private func fetch(path: String, query: [String: QueryValue]) async throws -> (Data, [String: String]) {
177 |         let request = try await networkingClient.buildRequest(path: path, method: .get, queryParameters: query)
    |                                                                                    `- error: cannot infer contextual base in reference to member 'get'
178 |         return try await retryHandler.send(client: networkingClient, request: request)
179 |     }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 |     func send(
131 |         client: NetworkingClient,
132 |         request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
133 |     ) async throws -> (data: Data, headers: [String: String]) {
134 |         try await execute {
[29/107] Compiling ArgumentParser EnumerableFlag.swift
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:33:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |         public let userAgent: String
 32 |         public let retryConfiguration: RetryConfiguration
 33 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |
 35 |         public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |             userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
 38 |             retryConfiguration: RetryConfiguration = .default,
 39 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         ) {
 41 |             self.baseURL = baseURL
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 37 |             userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
 38 |             retryConfiguration: RetryConfiguration = .default,
 39 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 40 |         ) {
 41 |             self.baseURL = baseURL
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:33:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 31 |         public let userAgent: String
 32 |         public let retryConfiguration: RetryConfiguration
 33 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 34 |
 35 |         public init(
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:50:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 48 |     public init(configuration: Configuration = Configuration()) {
 49 |         self.configuration = configuration
 50 |         let session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 51 |         self.networkingClient = NetworkingClient(
 52 |             baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
 87 |         headers: [String: String] = [:],
 88 |         body: Data? = nil
 89 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 90 |         let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
 91 |         guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:177:84: error: cannot infer contextual base in reference to member 'get'
175 |
176 |     private func fetch(path: String, query: [String: QueryValue]) async throws -> (Data, [String: String]) {
177 |         let request = try await networkingClient.buildRequest(path: path, method: .get, queryParameters: query)
    |                                                                                    `- error: cannot infer contextual base in reference to member 'get'
178 |         return try await retryHandler.send(client: networkingClient, request: request)
179 |     }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 |     func send(
131 |         client: NetworkingClient,
132 |         request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
133 |     ) async throws -> (data: Data, headers: [String: String]) {
134 |         try await execute {
[30/107] Compiling ArgumentParser ExpressibleByArgument.swift
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:33:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |         public let userAgent: String
 32 |         public let retryConfiguration: RetryConfiguration
 33 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |
 35 |         public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |             userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
 38 |             retryConfiguration: RetryConfiguration = .default,
 39 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         ) {
 41 |             self.baseURL = baseURL
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 37 |             userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
 38 |             retryConfiguration: RetryConfiguration = .default,
 39 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 40 |         ) {
 41 |             self.baseURL = baseURL
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:33:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 31 |         public let userAgent: String
 32 |         public let retryConfiguration: RetryConfiguration
 33 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 34 |
 35 |         public init(
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:50:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 48 |     public init(configuration: Configuration = Configuration()) {
 49 |         self.configuration = configuration
 50 |         let session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 51 |         self.networkingClient = NetworkingClient(
 52 |             baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
 87 |         headers: [String: String] = [:],
 88 |         body: Data? = nil
 89 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 90 |         let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
 91 |         guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:177:84: error: cannot infer contextual base in reference to member 'get'
175 |
176 |     private func fetch(path: String, query: [String: QueryValue]) async throws -> (Data, [String: String]) {
177 |         let request = try await networkingClient.buildRequest(path: path, method: .get, queryParameters: query)
    |                                                                                    `- error: cannot infer contextual base in reference to member 'get'
178 |         return try await retryHandler.send(client: networkingClient, request: request)
179 |     }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 |     func send(
131 |         client: NetworkingClient,
132 |         request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
133 |     ) async throws -> (data: Data, headers: [String: String]) {
134 |         try await execute {
[31/107] Compiling ArgumentParser ParsableArguments.swift
[32/107] Compiling ArgumentParser ArgumentVisibility.swift
[33/107] Compiling ArgumentParser CompletionKind.swift
[34/107] Compiling ArgumentParser Errors.swift
[35/107] Compiling ArgumentParser BashCompletionsGenerator.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |         public let baseURL: URL
 37 |         public let retryConfiguration: RetryConfiguration
 38 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |
 40 |         public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |             baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
 43 |             retryConfiguration: RetryConfiguration = .default,
 44 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |         ) {
 46 |             self.apiKey = apiKey
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 42 |             baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
 43 |             retryConfiguration: RetryConfiguration = .default,
 44 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 45 |         ) {
 46 |             self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 36 |         public let baseURL: URL
 37 |         public let retryConfiguration: RetryConfiguration
 38 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 39 |
 40 |         public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:55:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 |     public init(configuration: Configuration) {
 54 |         self.configuration = configuration
 55 |         let session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 56 |         self.networkingClient = NetworkingClient(
 57 |             baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
 87 |         headers: [String: String] = [:],
 88 |         body: Data? = nil
 89 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 90 |         let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
 91 |         guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:172:22: error: cannot infer contextual base in reference to member 'get'
170 |         let request = try await networkingClient.buildRequest(
171 |             path: path,
172 |             method: .get,
    |                      `- error: cannot infer contextual base in reference to member 'get'
173 |             queryParameters: queryParams
174 |         )
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 |     func send(
131 |         client: NetworkingClient,
132 |         request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
133 |     ) async throws -> (data: Data, headers: [String: String]) {
134 |         try await execute {
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 | public actor BlizzardClient {
 18 |     private let credentials: BlizzardCredentials
 19 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |     private let networkingClient: NetworkingClient
 21 |     private let retryHandler: RetryHandler
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/StarCraftKit/Blizzard/BlizzardClient.swift:32:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |         public let oauthURL: URL
 31 |         public let retryConfiguration: RetryConfiguration
 32 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |
 34 |         public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |             oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
 37 |             retryConfiguration: RetryConfiguration = .default,
 38 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |         ) {
 40 |             self.credentials = credentials
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 36 |             oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
 37 |             retryConfiguration: RetryConfiguration = .default,
 38 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 39 |         ) {
 40 |             self.credentials = credentials
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:32:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 30 |         public let oauthURL: URL
 31 |         public let retryConfiguration: RetryConfiguration
 32 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 33 |
 34 |         public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:50:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 48 |         self.credentials = configuration.credentials
 49 |         self.oauthURL = configuration.oauthURL
 50 |         self.session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 51 |         self.networkingClient = NetworkingClient(
 52 |             baseURL: URL(string: "https://us.api.blizzard.com")!,
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:118:23: error: cannot find 'URLRequest' in scope
116 |             throw APIError.invalidRequest(reason: "Invalid Blizzard path: \(path)")
117 |         }
118 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
119 |         request.httpMethod = "GET"
120 |         request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:137:23: error: cannot find 'URLRequest' in scope
135 |
136 |     private func fetchToken() async throws -> BlizzardToken {
137 |         var request = URLRequest(url: oauthURL)
    |                       `- error: cannot find 'URLRequest' in scope
138 |         request.httpMethod = "POST"
139 |         let basic = Data("\(credentials.clientId):\(credentials.clientSecret)".utf8).base64EncodedString()
[36/107] Compiling ArgumentParser CompletionsGenerator.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |         public let baseURL: URL
 37 |         public let retryConfiguration: RetryConfiguration
 38 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |
 40 |         public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |             baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
 43 |             retryConfiguration: RetryConfiguration = .default,
 44 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |         ) {
 46 |             self.apiKey = apiKey
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 42 |             baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
 43 |             retryConfiguration: RetryConfiguration = .default,
 44 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 45 |         ) {
 46 |             self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 36 |         public let baseURL: URL
 37 |         public let retryConfiguration: RetryConfiguration
 38 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 39 |
 40 |         public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:55:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 |     public init(configuration: Configuration) {
 54 |         self.configuration = configuration
 55 |         let session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 56 |         self.networkingClient = NetworkingClient(
 57 |             baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
 87 |         headers: [String: String] = [:],
 88 |         body: Data? = nil
 89 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 90 |         let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
 91 |         guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:172:22: error: cannot infer contextual base in reference to member 'get'
170 |         let request = try await networkingClient.buildRequest(
171 |             path: path,
172 |             method: .get,
    |                      `- error: cannot infer contextual base in reference to member 'get'
173 |             queryParameters: queryParams
174 |         )
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 |     func send(
131 |         client: NetworkingClient,
132 |         request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
133 |     ) async throws -> (data: Data, headers: [String: String]) {
134 |         try await execute {
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 | public actor BlizzardClient {
 18 |     private let credentials: BlizzardCredentials
 19 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |     private let networkingClient: NetworkingClient
 21 |     private let retryHandler: RetryHandler
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/StarCraftKit/Blizzard/BlizzardClient.swift:32:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |         public let oauthURL: URL
 31 |         public let retryConfiguration: RetryConfiguration
 32 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |
 34 |         public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |             oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
 37 |             retryConfiguration: RetryConfiguration = .default,
 38 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |         ) {
 40 |             self.credentials = credentials
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 36 |             oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
 37 |             retryConfiguration: RetryConfiguration = .default,
 38 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 39 |         ) {
 40 |             self.credentials = credentials
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:32:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 30 |         public let oauthURL: URL
 31 |         public let retryConfiguration: RetryConfiguration
 32 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 33 |
 34 |         public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:50:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 48 |         self.credentials = configuration.credentials
 49 |         self.oauthURL = configuration.oauthURL
 50 |         self.session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 51 |         self.networkingClient = NetworkingClient(
 52 |             baseURL: URL(string: "https://us.api.blizzard.com")!,
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:118:23: error: cannot find 'URLRequest' in scope
116 |             throw APIError.invalidRequest(reason: "Invalid Blizzard path: \(path)")
117 |         }
118 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
119 |         request.httpMethod = "GET"
120 |         request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:137:23: error: cannot find 'URLRequest' in scope
135 |
136 |     private func fetchToken() async throws -> BlizzardToken {
137 |         var request = URLRequest(url: oauthURL)
    |                       `- error: cannot find 'URLRequest' in scope
138 |         request.httpMethod = "POST"
139 |         let basic = Data("\(credentials.clientId):\(credentials.clientSecret)".utf8).base64EncodedString()
[37/107] Compiling ArgumentParser FishCompletionsGenerator.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |         public let baseURL: URL
 37 |         public let retryConfiguration: RetryConfiguration
 38 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |
 40 |         public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |             baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
 43 |             retryConfiguration: RetryConfiguration = .default,
 44 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |         ) {
 46 |             self.apiKey = apiKey
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 42 |             baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
 43 |             retryConfiguration: RetryConfiguration = .default,
 44 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 45 |         ) {
 46 |             self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 36 |         public let baseURL: URL
 37 |         public let retryConfiguration: RetryConfiguration
 38 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 39 |
 40 |         public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:55:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 |     public init(configuration: Configuration) {
 54 |         self.configuration = configuration
 55 |         let session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 56 |         self.networkingClient = NetworkingClient(
 57 |             baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
 87 |         headers: [String: String] = [:],
 88 |         body: Data? = nil
 89 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 90 |         let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
 91 |         guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:172:22: error: cannot infer contextual base in reference to member 'get'
170 |         let request = try await networkingClient.buildRequest(
171 |             path: path,
172 |             method: .get,
    |                      `- error: cannot infer contextual base in reference to member 'get'
173 |             queryParameters: queryParams
174 |         )
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 |     func send(
131 |         client: NetworkingClient,
132 |         request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
133 |     ) async throws -> (data: Data, headers: [String: String]) {
134 |         try await execute {
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 | public actor BlizzardClient {
 18 |     private let credentials: BlizzardCredentials
 19 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |     private let networkingClient: NetworkingClient
 21 |     private let retryHandler: RetryHandler
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/StarCraftKit/Blizzard/BlizzardClient.swift:32:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |         public let oauthURL: URL
 31 |         public let retryConfiguration: RetryConfiguration
 32 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |
 34 |         public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |             oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
 37 |             retryConfiguration: RetryConfiguration = .default,
 38 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |         ) {
 40 |             self.credentials = credentials
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 36 |             oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
 37 |             retryConfiguration: RetryConfiguration = .default,
 38 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 39 |         ) {
 40 |             self.credentials = credentials
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:32:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 30 |         public let oauthURL: URL
 31 |         public let retryConfiguration: RetryConfiguration
 32 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 33 |
 34 |         public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:50:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 48 |         self.credentials = configuration.credentials
 49 |         self.oauthURL = configuration.oauthURL
 50 |         self.session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 51 |         self.networkingClient = NetworkingClient(
 52 |             baseURL: URL(string: "https://us.api.blizzard.com")!,
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:118:23: error: cannot find 'URLRequest' in scope
116 |             throw APIError.invalidRequest(reason: "Invalid Blizzard path: \(path)")
117 |         }
118 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
119 |         request.httpMethod = "GET"
120 |         request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:137:23: error: cannot find 'URLRequest' in scope
135 |
136 |     private func fetchToken() async throws -> BlizzardToken {
137 |         var request = URLRequest(url: oauthURL)
    |                       `- error: cannot find 'URLRequest' in scope
138 |         request.httpMethod = "POST"
139 |         let basic = Data("\(credentials.clientId):\(credentials.clientSecret)".utf8).base64EncodedString()
[38/107] Compiling ArgumentParser ZshCompletionsGenerator.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |         public let baseURL: URL
 37 |         public let retryConfiguration: RetryConfiguration
 38 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |
 40 |         public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |             baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
 43 |             retryConfiguration: RetryConfiguration = .default,
 44 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |         ) {
 46 |             self.apiKey = apiKey
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 42 |             baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
 43 |             retryConfiguration: RetryConfiguration = .default,
 44 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 45 |         ) {
 46 |             self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 36 |         public let baseURL: URL
 37 |         public let retryConfiguration: RetryConfiguration
 38 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 39 |
 40 |         public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:55:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 |     public init(configuration: Configuration) {
 54 |         self.configuration = configuration
 55 |         let session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 56 |         self.networkingClient = NetworkingClient(
 57 |             baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
 87 |         headers: [String: String] = [:],
 88 |         body: Data? = nil
 89 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 90 |         let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
 91 |         guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:172:22: error: cannot infer contextual base in reference to member 'get'
170 |         let request = try await networkingClient.buildRequest(
171 |             path: path,
172 |             method: .get,
    |                      `- error: cannot infer contextual base in reference to member 'get'
173 |             queryParameters: queryParams
174 |         )
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 |     func send(
131 |         client: NetworkingClient,
132 |         request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
133 |     ) async throws -> (data: Data, headers: [String: String]) {
134 |         try await execute {
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 | public actor BlizzardClient {
 18 |     private let credentials: BlizzardCredentials
 19 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |     private let networkingClient: NetworkingClient
 21 |     private let retryHandler: RetryHandler
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/StarCraftKit/Blizzard/BlizzardClient.swift:32:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |         public let oauthURL: URL
 31 |         public let retryConfiguration: RetryConfiguration
 32 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |
 34 |         public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |             oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
 37 |             retryConfiguration: RetryConfiguration = .default,
 38 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |         ) {
 40 |             self.credentials = credentials
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 36 |             oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
 37 |             retryConfiguration: RetryConfiguration = .default,
 38 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 39 |         ) {
 40 |             self.credentials = credentials
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:32:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 30 |         public let oauthURL: URL
 31 |         public let retryConfiguration: RetryConfiguration
 32 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 33 |
 34 |         public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:50:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 48 |         self.credentials = configuration.credentials
 49 |         self.oauthURL = configuration.oauthURL
 50 |         self.session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 51 |         self.networkingClient = NetworkingClient(
 52 |             baseURL: URL(string: "https://us.api.blizzard.com")!,
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:118:23: error: cannot find 'URLRequest' in scope
116 |             throw APIError.invalidRequest(reason: "Invalid Blizzard path: \(path)")
117 |         }
118 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
119 |         request.httpMethod = "GET"
120 |         request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:137:23: error: cannot find 'URLRequest' in scope
135 |
136 |     private func fetchToken() async throws -> BlizzardToken {
137 |         var request = URLRequest(url: oauthURL)
    |                       `- error: cannot find 'URLRequest' in scope
138 |         request.httpMethod = "POST"
139 |         let basic = Data("\(credentials.clientId):\(credentials.clientSecret)".utf8).base64EncodedString()
[39/107] Compiling ArgumentParser Argument.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |         public let baseURL: URL
 37 |         public let retryConfiguration: RetryConfiguration
 38 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |
 40 |         public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |             baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
 43 |             retryConfiguration: RetryConfiguration = .default,
 44 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |         ) {
 46 |             self.apiKey = apiKey
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 42 |             baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
 43 |             retryConfiguration: RetryConfiguration = .default,
 44 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 45 |         ) {
 46 |             self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 36 |         public let baseURL: URL
 37 |         public let retryConfiguration: RetryConfiguration
 38 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 39 |
 40 |         public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:55:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 |     public init(configuration: Configuration) {
 54 |         self.configuration = configuration
 55 |         let session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 56 |         self.networkingClient = NetworkingClient(
 57 |             baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
 87 |         headers: [String: String] = [:],
 88 |         body: Data? = nil
 89 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 90 |         let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
 91 |         guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:172:22: error: cannot infer contextual base in reference to member 'get'
170 |         let request = try await networkingClient.buildRequest(
171 |             path: path,
172 |             method: .get,
    |                      `- error: cannot infer contextual base in reference to member 'get'
173 |             queryParameters: queryParams
174 |         )
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 |     func send(
131 |         client: NetworkingClient,
132 |         request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
133 |     ) async throws -> (data: Data, headers: [String: String]) {
134 |         try await execute {
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 | public actor BlizzardClient {
 18 |     private let credentials: BlizzardCredentials
 19 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |     private let networkingClient: NetworkingClient
 21 |     private let retryHandler: RetryHandler
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/StarCraftKit/Blizzard/BlizzardClient.swift:32:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |         public let oauthURL: URL
 31 |         public let retryConfiguration: RetryConfiguration
 32 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |
 34 |         public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |             oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
 37 |             retryConfiguration: RetryConfiguration = .default,
 38 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |         ) {
 40 |             self.credentials = credentials
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 36 |             oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
 37 |             retryConfiguration: RetryConfiguration = .default,
 38 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 39 |         ) {
 40 |             self.credentials = credentials
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:32:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 30 |         public let oauthURL: URL
 31 |         public let retryConfiguration: RetryConfiguration
 32 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 33 |
 34 |         public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:50:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 48 |         self.credentials = configuration.credentials
 49 |         self.oauthURL = configuration.oauthURL
 50 |         self.session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 51 |         self.networkingClient = NetworkingClient(
 52 |             baseURL: URL(string: "https://us.api.blizzard.com")!,
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:118:23: error: cannot find 'URLRequest' in scope
116 |             throw APIError.invalidRequest(reason: "Invalid Blizzard path: \(path)")
117 |         }
118 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
119 |         request.httpMethod = "GET"
120 |         request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:137:23: error: cannot find 'URLRequest' in scope
135 |
136 |     private func fetchToken() async throws -> BlizzardToken {
137 |         var request = URLRequest(url: oauthURL)
    |                       `- error: cannot find 'URLRequest' in scope
138 |         request.httpMethod = "POST"
139 |         let basic = Data("\(credentials.clientId):\(credentials.clientSecret)".utf8).base64EncodedString()
[40/107] Compiling ArgumentParser CollectionExtensions.swift
[41/107] Compiling ArgumentParser Foundation.swift
[42/107] Compiling ArgumentParser Name.swift
[43/107] Compiling ArgumentParser Parsed.swift
[44/107] Compiling ArgumentParser ParsedValues.swift
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:72:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         public let retryConfiguration: RetryConfiguration
 71 |         public let cacheConfiguration: CacheConfiguration
 72 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |
 74 |         /// The API token (alias for ``apiKey``).
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |             retryConfiguration: RetryConfiguration = .default,
 97 |             cacheConfiguration: CacheConfiguration = CacheConfiguration(),
 98 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 |         ) {
100 |             self.apiKey = apiKey
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 96 |             retryConfiguration: RetryConfiguration = .default,
 97 |             cacheConfiguration: CacheConfiguration = CacheConfiguration(),
 98 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 99 |         ) {
100 |             self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:72:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 70 |         public let retryConfiguration: RetryConfiguration
 71 |         public let cacheConfiguration: CacheConfiguration
 72 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 73 |
 74 |         /// The API token (alias for ``apiKey``).
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:275:23: error: cannot find type 'URLRequest' in scope
273 |         for request: any APIRequest,
274 |         overridingQuery: [String: QueryValue]?
275 |     ) async throws -> URLRequest {
    |                       `- error: cannot find type 'URLRequest' in scope
276 |         var queryParams = overridingQuery ?? request.queryParameters
277 |         if configuration.authMethod == .queryParameter {
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:119:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
117 |         }
118 |
119 |         let session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
120 |
121 |         self.networkingClient = NetworkingClient(
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:248:83: error: 'nil' requires a contextual type
246 |         }
247 |
248 |         let urlRequest = try await buildURLRequest(for: request, overridingQuery: nil)
    |                                                                                   `- error: 'nil' requires a contextual type
249 |         let (data, headers) = try await retryHandler.send(client: networkingClient, request: urlRequest)
250 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 |     func send(
131 |         client: NetworkingClient,
132 |         request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
133 |     ) async throws -> (data: Data, headers: [String: String]) {
134 |         try await execute {
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 37 |             userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
 38 |             retryConfiguration: RetryConfiguration = .default,
 39 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 40 |         ) {
 41 |             self.baseURL = baseURL
[45/107] Compiling ArgumentParser ParserError.swift
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:72:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         public let retryConfiguration: RetryConfiguration
 71 |         public let cacheConfiguration: CacheConfiguration
 72 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |
 74 |         /// The API token (alias for ``apiKey``).
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |             retryConfiguration: RetryConfiguration = .default,
 97 |             cacheConfiguration: CacheConfiguration = CacheConfiguration(),
 98 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 |         ) {
100 |             self.apiKey = apiKey
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 96 |             retryConfiguration: RetryConfiguration = .default,
 97 |             cacheConfiguration: CacheConfiguration = CacheConfiguration(),
 98 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 99 |         ) {
100 |             self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:72:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 70 |         public let retryConfiguration: RetryConfiguration
 71 |         public let cacheConfiguration: CacheConfiguration
 72 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 73 |
 74 |         /// The API token (alias for ``apiKey``).
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:275:23: error: cannot find type 'URLRequest' in scope
273 |         for request: any APIRequest,
274 |         overridingQuery: [String: QueryValue]?
275 |     ) async throws -> URLRequest {
    |                       `- error: cannot find type 'URLRequest' in scope
276 |         var queryParams = overridingQuery ?? request.queryParameters
277 |         if configuration.authMethod == .queryParameter {
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:119:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
117 |         }
118 |
119 |         let session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
120 |
121 |         self.networkingClient = NetworkingClient(
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:248:83: error: 'nil' requires a contextual type
246 |         }
247 |
248 |         let urlRequest = try await buildURLRequest(for: request, overridingQuery: nil)
    |                                                                                   `- error: 'nil' requires a contextual type
249 |         let (data, headers) = try await retryHandler.send(client: networkingClient, request: urlRequest)
250 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 |     func send(
131 |         client: NetworkingClient,
132 |         request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
133 |     ) async throws -> (data: Data, headers: [String: String]) {
134 |         try await execute {
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 37 |             userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
 38 |             retryConfiguration: RetryConfiguration = .default,
 39 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 40 |         ) {
 41 |             self.baseURL = baseURL
[46/107] Compiling ArgumentParser SplitArguments.swift
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:72:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         public let retryConfiguration: RetryConfiguration
 71 |         public let cacheConfiguration: CacheConfiguration
 72 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |
 74 |         /// The API token (alias for ``apiKey``).
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |             retryConfiguration: RetryConfiguration = .default,
 97 |             cacheConfiguration: CacheConfiguration = CacheConfiguration(),
 98 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 |         ) {
100 |             self.apiKey = apiKey
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 96 |             retryConfiguration: RetryConfiguration = .default,
 97 |             cacheConfiguration: CacheConfiguration = CacheConfiguration(),
 98 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 99 |         ) {
100 |             self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:72:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 70 |         public let retryConfiguration: RetryConfiguration
 71 |         public let cacheConfiguration: CacheConfiguration
 72 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 73 |
 74 |         /// The API token (alias for ``apiKey``).
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:275:23: error: cannot find type 'URLRequest' in scope
273 |         for request: any APIRequest,
274 |         overridingQuery: [String: QueryValue]?
275 |     ) async throws -> URLRequest {
    |                       `- error: cannot find type 'URLRequest' in scope
276 |         var queryParams = overridingQuery ?? request.queryParameters
277 |         if configuration.authMethod == .queryParameter {
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:119:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
117 |         }
118 |
119 |         let session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
120 |
121 |         self.networkingClient = NetworkingClient(
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:248:83: error: 'nil' requires a contextual type
246 |         }
247 |
248 |         let urlRequest = try await buildURLRequest(for: request, overridingQuery: nil)
    |                                                                                   `- error: 'nil' requires a contextual type
249 |         let (data, headers) = try await retryHandler.send(client: networkingClient, request: urlRequest)
250 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 |     func send(
131 |         client: NetworkingClient,
132 |         request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
133 |     ) async throws -> (data: Data, headers: [String: String]) {
134 |         try await execute {
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 37 |             userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
 38 |             retryConfiguration: RetryConfiguration = .default,
 39 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 40 |         ) {
 41 |             self.baseURL = baseURL
[47/107] Compiling ArgumentParser DumpHelpGenerator.swift
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:72:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         public let retryConfiguration: RetryConfiguration
 71 |         public let cacheConfiguration: CacheConfiguration
 72 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |
 74 |         /// The API token (alias for ``apiKey``).
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |             retryConfiguration: RetryConfiguration = .default,
 97 |             cacheConfiguration: CacheConfiguration = CacheConfiguration(),
 98 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 |         ) {
100 |             self.apiKey = apiKey
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 96 |             retryConfiguration: RetryConfiguration = .default,
 97 |             cacheConfiguration: CacheConfiguration = CacheConfiguration(),
 98 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 99 |         ) {
100 |             self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:72:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 70 |         public let retryConfiguration: RetryConfiguration
 71 |         public let cacheConfiguration: CacheConfiguration
 72 |         public let urlSessionConfiguration: URLSessionConfiguration
    |                    `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'URLSessionConfiguration' (aka 'AnyObject')
 73 |
 74 |         /// The API token (alias for ``apiKey``).
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:275:23: error: cannot find type 'URLRequest' in scope
273 |         for request: any APIRequest,
274 |         overridingQuery: [String: QueryValue]?
275 |     ) async throws -> URLRequest {
    |                       `- error: cannot find type 'URLRequest' in scope
276 |         var queryParams = overridingQuery ?? request.queryParameters
277 |         if configuration.authMethod == .queryParameter {
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:119:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
117 |         }
118 |
119 |         let session = URLSession(configuration: configuration.urlSessionConfiguration)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
120 |
121 |         self.networkingClient = NetworkingClient(
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:248:83: error: 'nil' requires a contextual type
246 |         }
247 |
248 |         let urlRequest = try await buildURLRequest(for: request, overridingQuery: nil)
    |                                                                                   `- error: 'nil' requires a contextual type
249 |         let (data, headers) = try await retryHandler.send(client: networkingClient, request: urlRequest)
250 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 |     func send(
131 |         client: NetworkingClient,
132 |         request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
133 |     ) async throws -> (data: Data, headers: [String: String]) {
134 |         try await execute {
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 37 |             userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
 38 |             retryConfiguration: RetryConfiguration = .default,
 39 |             urlSessionConfiguration: URLSessionConfiguration = .default
    |                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 40 |         ) {
 41 |             self.baseURL = baseURL
[48/107] Compiling ArgumentParser Flag.swift
[49/107] Compiling ArgumentParser NameSpecification.swift
[50/107] Compiling ArgumentParser Option.swift
[51/107] Compiling ArgumentParser OptionGroup.swift
[52/107] Compiling ArgumentParser HelpCommand.swift
[53/107] Compiling ArgumentParser HelpGenerator.swift
[54/107] Compiling ArgumentParser MessageInfo.swift
[55/107] Compiling ArgumentParser UsageGenerator.swift
[56/107] Emitting module ArgumentParser
BUILD FAILURE 6.1 wasm