The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build AnthropicKit, reference master (d0b75a), with Swift 6.1 for Android on 13 Jul 2025 11:23:05 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/guitaripod/AnthropicKit.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/guitaripod/AnthropicKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at d0b75a1 Update GitHub username from marcusziade to guitaripod
Cloned https://github.com/guitaripod/AnthropicKit.git
Revision (git rev-parse @):
d0b75a14c55bac4687643dff3563bb315c145349
SUCCESS checkout https://github.com/guitaripod/AnthropicKit.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/guitaripod/AnthropicKit.git
https://github.com/guitaripod/AnthropicKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser.git"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "AnthropicKit",
  "name" : "AnthropicKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "AnthropicKit",
      "targets" : [
        "AnthropicKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "anthropic-cli",
      "targets" : [
        "AnthropicKitCLI"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AnthropicKitTests",
      "module_type" : "SwiftTarget",
      "name" : "AnthropicKitTests",
      "path" : "Tests/AnthropicKitTests",
      "sources" : [
        "APIConfigurationTests.swift",
        "ErrorTests.swift",
        "MessageRequestTests.swift",
        "MessageTests.swift",
        "StreamEventParserTests.swift"
      ],
      "target_dependencies" : [
        "AnthropicKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AnthropicKitIntegrationTests",
      "module_type" : "SwiftTarget",
      "name" : "AnthropicKitIntegrationTests",
      "path" : "Tests/AnthropicKitIntegrationTests",
      "sources" : [
        "IntegrationTests.swift"
      ],
      "target_dependencies" : [
        "AnthropicKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AnthropicKitCLI",
      "module_type" : "SwiftTarget",
      "name" : "AnthropicKitCLI",
      "path" : "Sources/AnthropicKitCLI",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "anthropic-cli"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "AnthropicKit"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "AnthropicKit",
      "module_type" : "SwiftTarget",
      "name" : "AnthropicKit",
      "path" : "Sources/AnthropicKit",
      "product_memberships" : [
        "AnthropicKit",
        "anthropic-cli"
      ],
      "sources" : [
        "API/APIConfiguration.swift",
        "API/APIProtocol.swift",
        "API/AnthropicAPI.swift",
        "Models/APIError.swift",
        "Models/Batch.swift",
        "Models/File.swift",
        "Models/Message.swift",
        "Models/MessageRequest.swift",
        "Models/MessageResponse.swift",
        "Models/Model.swift",
        "Models/Organization.swift",
        "Networking/CURLHTTPClient.swift",
        "Networking/HTTPClient.swift",
        "Networking/StreamEventParser.swift",
        "Networking/URLSessionHTTPClient.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:873b43b7be6289c04a5a3fd4b2c372c2a5abf90643451079297d3dc6dc0b7d36
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/apple/swift-docc-plugin
[1/2094] Fetching swift-docc-plugin
[2095/17618] Fetching swift-docc-plugin, swift-argument-parser
Fetched https://github.com/apple/swift-docc-plugin from cache (0.51s)
[1553/15524] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.93s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.5 (3.43s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3425] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.44s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.83s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.6.1 (0.85s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.6.1
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.5
[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/15] Write sources
[8/15] Write swift-version-24593BA9C3E375BF.txt
[10/32] Emitting module ArgumentParserToolInfo
[11/32] Compiling ArgumentParserToolInfo ToolInfo.swift
[12/47] Wrapping AST for ArgumentParserToolInfo for debugging
[14/77] Emitting module ArgumentParser
[15/83] Compiling ArgumentParser OptionGroup.swift
[16/83] Compiling ArgumentParser AsyncParsableCommand.swift
[17/83] Compiling ArgumentParser CommandConfiguration.swift
[18/83] Compiling ArgumentParser CommandGroup.swift
[19/83] Compiling ArgumentParser EnumerableFlag.swift
[20/83] Compiling ArgumentParser ExpressibleByArgument.swift
[21/83] Compiling ArgumentParser Tree.swift
[22/83] Compiling ArgumentParser CodingKeyValidator.swift
[23/83] Compiling ArgumentParser NonsenseFlagsValidator.swift
[24/83] Compiling ArgumentParser ParsableArgumentsValidation.swift
[25/83] Compiling ArgumentParser PositionalArgumentsValidator.swift
[26/83] Compiling ArgumentParser UniqueNamesValidator.swift
[27/83] Compiling ArgumentParser BashCompletionsGenerator.swift
[28/83] Compiling ArgumentParser CompletionsGenerator.swift
[29/83] Compiling ArgumentParser FishCompletionsGenerator.swift
[30/83] Compiling ArgumentParser ZshCompletionsGenerator.swift
[31/83] Compiling ArgumentParser Argument.swift
[32/83] Compiling ArgumentParser ArgumentDiscussion.swift
[33/83] Compiling ArgumentParser ArgumentHelp.swift
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:13:29: error: cannot find type 'URLRequest' in scope
11 |     ///   - streaming: Whether this is a streaming request.
12 |     /// - Returns: The response data and HTTP response.
13 |     func perform(_ request: URLRequest, streaming: Bool) async throws -> (Data, HTTPURLResponse)
   |                             `- error: cannot find type 'URLRequest' in scope
14 |
15 |     /// Performs a streaming HTTP request.
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:13:81: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |     ///   - streaming: Whether this is a streaming request.
12 |     /// - Returns: The response data and HTTP response.
13 |     func perform(_ request: URLRequest, streaming: Bool) async throws -> (Data, HTTPURLResponse)
   |                                                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 |     /// Performs a streaming HTTP request.
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/AnthropicKit/Networking/HTTPClient.swift:18:38: error: cannot find type 'URLRequest' in scope
16 |     /// - Parameter request: The URL request to perform.
17 |     /// - Returns: An async stream of data chunks.
18 |     func performStreaming(_ request: URLRequest) async throws -> AsyncThrowingStream<Data, Error>
   |                                      `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Uploads a file.
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:27:32: error: cannot find type 'URLRequest' in scope
25 |     ///   - mimeType: The MIME type.
26 |     /// - Returns: The response data and HTTP response.
27 |     func uploadFile(_ request: URLRequest, fileData: Data, filename: String, mimeType: String) async throws -> (Data, HTTPURLResponse)
   |                                `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:27:119: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     ///   - mimeType: The MIME type.
26 |     /// - Returns: The response data and HTTP response.
27 |     func uploadFile(_ request: URLRequest, fileData: Data, filename: String, mimeType: String) async throws -> (Data, HTTPURLResponse)
   |                                                                                                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | }
29 |
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/AnthropicKit/Networking/HTTPClient.swift:49:11: error: cannot find type 'URLRequest' in scope
47 |
48 | /// Extension to create URL requests more easily.
49 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
50 |     /// Creates a new URL request with the given parameters.
51 |     /// - Parameters:
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:35:12: error: cannot find 'CURLHTTPClient' in scope
33 |     return URLSessionHTTPClient()
34 |     #else
35 |     return CURLHTTPClient()
   |            `- error: cannot find 'CURLHTTPClient' in scope
36 |     #endif
37 | }
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:64:10: error: cannot find type 'URLRequest' in scope
62 |         body: Data? = nil,
63 |         timeoutInterval: TimeInterval = 60
64 |     ) -> URLRequest {
   |          `- error: cannot find type 'URLRequest' in scope
65 |         var request = URLRequest(url: url, timeoutInterval: timeoutInterval)
66 |         request.httpMethod = method.rawValue
[35/83] Compiling ArgumentParser ArgumentVisibility.swift
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:13:29: error: cannot find type 'URLRequest' in scope
11 |     ///   - streaming: Whether this is a streaming request.
12 |     /// - Returns: The response data and HTTP response.
13 |     func perform(_ request: URLRequest, streaming: Bool) async throws -> (Data, HTTPURLResponse)
   |                             `- error: cannot find type 'URLRequest' in scope
14 |
15 |     /// Performs a streaming HTTP request.
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:13:81: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |     ///   - streaming: Whether this is a streaming request.
12 |     /// - Returns: The response data and HTTP response.
13 |     func perform(_ request: URLRequest, streaming: Bool) async throws -> (Data, HTTPURLResponse)
   |                                                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 |     /// Performs a streaming HTTP request.
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/AnthropicKit/Networking/HTTPClient.swift:18:38: error: cannot find type 'URLRequest' in scope
16 |     /// - Parameter request: The URL request to perform.
17 |     /// - Returns: An async stream of data chunks.
18 |     func performStreaming(_ request: URLRequest) async throws -> AsyncThrowingStream<Data, Error>
   |                                      `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Uploads a file.
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:27:32: error: cannot find type 'URLRequest' in scope
25 |     ///   - mimeType: The MIME type.
26 |     /// - Returns: The response data and HTTP response.
27 |     func uploadFile(_ request: URLRequest, fileData: Data, filename: String, mimeType: String) async throws -> (Data, HTTPURLResponse)
   |                                `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:27:119: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     ///   - mimeType: The MIME type.
26 |     /// - Returns: The response data and HTTP response.
27 |     func uploadFile(_ request: URLRequest, fileData: Data, filename: String, mimeType: String) async throws -> (Data, HTTPURLResponse)
   |                                                                                                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | }
29 |
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/AnthropicKit/Networking/HTTPClient.swift:49:11: error: cannot find type 'URLRequest' in scope
47 |
48 | /// Extension to create URL requests more easily.
49 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
50 |     /// Creates a new URL request with the given parameters.
51 |     /// - Parameters:
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:35:12: error: cannot find 'CURLHTTPClient' in scope
33 |     return URLSessionHTTPClient()
34 |     #else
35 |     return CURLHTTPClient()
   |            `- error: cannot find 'CURLHTTPClient' in scope
36 |     #endif
37 | }
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:64:10: error: cannot find type 'URLRequest' in scope
62 |         body: Data? = nil,
63 |         timeoutInterval: TimeInterval = 60
64 |     ) -> URLRequest {
   |          `- error: cannot find type 'URLRequest' in scope
65 |         var request = URLRequest(url: url, timeoutInterval: timeoutInterval)
66 |         request.httpMethod = method.rawValue
[42/84] Compiling ArgumentParser SplitArguments.swift
[43/84] Compiling ArgumentParser DumpHelpGenerator.swift
[44/84] Compiling ArgumentParser HelpCommand.swift
[45/84] Compiling ArgumentParser HelpGenerator.swift
[46/84] Compiling ArgumentParser MessageInfo.swift
[47/84] Compiling ArgumentParser UsageGenerator.swift
[48/84] Compiling ArgumentParser CollectionExtensions.swift
[49/84] Compiling ArgumentParser Mutex.swift
[50/84] Compiling ArgumentParser Platform.swift
[51/84] Compiling ArgumentParser SequenceExtensions.swift
[52/84] Compiling ArgumentParser StringExtensions.swift
[53/84] Compiling ArgumentParser SwiftExtensions.swift
[54/84] Compiling AnthropicKit URLSessionHTTPClient.swift
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:13:29: error: cannot find type 'URLRequest' in scope
11 |     ///   - streaming: Whether this is a streaming request.
12 |     /// - Returns: The response data and HTTP response.
13 |     func perform(_ request: URLRequest, streaming: Bool) async throws -> (Data, HTTPURLResponse)
   |                             `- error: cannot find type 'URLRequest' in scope
14 |
15 |     /// Performs a streaming HTTP request.
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:18:38: error: cannot find type 'URLRequest' in scope
16 |     /// - Parameter request: The URL request to perform.
17 |     /// - Returns: An async stream of data chunks.
18 |     func performStreaming(_ request: URLRequest) async throws -> AsyncThrowingStream<Data, Error>
   |                                      `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Uploads a file.
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:27:32: error: cannot find type 'URLRequest' in scope
25 |     ///   - mimeType: The MIME type.
26 |     /// - Returns: The response data and HTTP response.
27 |     func uploadFile(_ request: URLRequest, fileData: Data, filename: String, mimeType: String) async throws -> (Data, HTTPURLResponse)
   |                                `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:713:87: error: cannot find type 'URLRequest' in scope
711 |     // MARK: - Private Helpers
712 |
713 |     private func createURLRequest(url: URL, method: HTTPMethod, body: Data? = nil) -> URLRequest {
    |                                                                                       `- error: cannot find type 'URLRequest' in scope
714 |         var headers: [String: String] = [
715 |             "x-api-key": configuration.apiKey,
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:740:44: error: cannot find type 'URLRequest' in scope
738 |     }
739 |
740 |     private func performRequest(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                            `- error: cannot find type 'URLRequest' in scope
741 |         var lastError: Error?
742 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:740:79: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
738 |     }
739 |
740 |     private func performRequest(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
741 |         var lastError: Error?
742 |
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/AnthropicKit/API/AnthropicAPI.swift:277:62: error: cannot infer contextual base in reference to member 'post'
275 |
276 |         let requestData = try encoder.encode(modifiedRequest)
277 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
278 |
279 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:360:62: error: cannot infer contextual base in reference to member 'post'
358 |
359 |         let requestData = try encoder.encode(modifiedRequest)
360 |         var urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
361 |         urlRequest.setValue("text/event-stream", forHTTPHeaderField: "Accept")
362 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:413:62: error: cannot infer contextual base in reference to member 'post'
411 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/count_tokens")
412 |         let requestData = try encoder.encode(request)
413 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
414 |
415 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:424:62: error: cannot infer contextual base in reference to member 'post'
422 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/batches")
423 |         let requestData = try encoder.encode(request)
424 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
425 |
426 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:453:62: error: cannot infer contextual base in reference to member 'get'
451 |         }
452 |
453 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
454 |         let (data, _) = try await performRequest(urlRequest)
455 |         return try decoder.decode(ListBatchesResponse.self, from: data)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:460:62: error: cannot infer contextual base in reference to member 'get'
458 |     public func getBatch(id batchId: String) async throws -> Batch {
459 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/batches/\(batchId)")
460 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
461 |
462 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:468:62: error: cannot infer contextual base in reference to member 'get'
466 |     public func getBatchResults(id batchId: String) async throws -> AsyncThrowingStream<BatchResult, Error> {
467 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/batches/\(batchId)/results")
468 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
469 |
470 |         let stream = try await httpClient.performStreaming(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:495:62: error: cannot infer contextual base in reference to member 'post'
493 |     public func cancelBatch(id batchId: String) async throws -> Batch {
494 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/batches/\(batchId)/cancel")
495 |         let urlRequest = createURLRequest(url: url, method: .post)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
496 |
497 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:503:62: error: cannot infer contextual base in reference to member 'delete'
501 |     public func deleteBatch(id batchId: String) async throws {
502 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/batches/\(batchId)")
503 |         let urlRequest = createURLRequest(url: url, method: .delete)
    |                                                              `- error: cannot infer contextual base in reference to member 'delete'
504 |
505 |         _ = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:512:62: error: cannot infer contextual base in reference to member 'post'
510 |     public func uploadFile(data: Data, filename: String, mimeType: String) async throws -> File {
511 |         let url = configuration.baseURL.appendingPathComponent("/v1/files")
512 |         var urlRequest = createURLRequest(url: url, method: .post)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
513 |
514 |         // Add beta header for files API
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:552:62: error: cannot infer contextual base in reference to member 'get'
550 |         }
551 |
552 |         var urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
553 |         urlRequest.setValue("files-api-2025-04-14", forHTTPHeaderField: "anthropic-beta")
554 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:561:62: error: cannot infer contextual base in reference to member 'get'
559 |     public func getFile(id fileId: String) async throws -> File {
560 |         let url = configuration.baseURL.appendingPathComponent("/v1/files/\(fileId)")
561 |         var urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
562 |         urlRequest.setValue("files-api-2025-04-14", forHTTPHeaderField: "anthropic-beta")
563 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:570:62: error: cannot infer contextual base in reference to member 'get'
568 |     public func downloadFile(id fileId: String) async throws -> Data {
569 |         let url = configuration.baseURL.appendingPathComponent("/v1/files/\(fileId)/content")
570 |         var urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
571 |         urlRequest.setValue("files-api-2025-04-14", forHTTPHeaderField: "anthropic-beta")
572 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:579:62: error: cannot infer contextual base in reference to member 'delete'
577 |     public func deleteFile(id fileId: String) async throws {
578 |         let url = configuration.baseURL.appendingPathComponent("/v1/files/\(fileId)")
579 |         var urlRequest = createURLRequest(url: url, method: .delete)
    |                                                              `- error: cannot infer contextual base in reference to member 'delete'
580 |         urlRequest.setValue("files-api-2025-04-14", forHTTPHeaderField: "anthropic-beta")
581 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:589:62: error: cannot infer contextual base in reference to member 'get'
587 |     public func listModels() async throws -> ListModelsResponse {
588 |         let url = configuration.baseURL.appendingPathComponent("/v1/models")
589 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
590 |
591 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:597:62: error: cannot infer contextual base in reference to member 'get'
595 |     public func getModel(id modelId: String) async throws -> Model {
596 |         let url = configuration.baseURL.appendingPathComponent("/v1/models/\(modelId)")
597 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
598 |
599 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:628:62: error: cannot infer contextual base in reference to member 'get'
626 |         }
627 |
628 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
629 |         let (data, _) = try await performRequest(urlRequest)
630 |         return try decoder.decode(ListWorkspaceMembersResponse.self, from: data)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:635:62: error: cannot infer contextual base in reference to member 'get'
633 |     public func getWorkspaceMember(workspaceId: String, userId: String) async throws -> WorkspaceMember {
634 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/workspaces/\(workspaceId)/members/\(userId)")
635 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
636 |
637 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:644:62: error: cannot infer contextual base in reference to member 'post'
642 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/workspaces/\(workspaceId)/members")
643 |         let requestData = try encoder.encode(request)
644 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
645 |
646 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:653:62: error: cannot infer contextual base in reference to member 'post'
651 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/workspaces/\(workspaceId)/members/\(userId)")
652 |         let requestData = try encoder.encode(request)
653 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
654 |
655 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:661:62: error: cannot infer contextual base in reference to member 'delete'
659 |     public func removeWorkspaceMember(workspaceId: String, userId: String) async throws {
660 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/workspaces/\(workspaceId)/members/\(userId)")
661 |         let urlRequest = createURLRequest(url: url, method: .delete)
    |                                                              `- error: cannot infer contextual base in reference to member 'delete'
662 |
663 |         _ = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:689:62: error: cannot infer contextual base in reference to member 'get'
687 |         }
688 |
689 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
690 |         let (data, _) = try await performRequest(urlRequest)
691 |         return try decoder.decode(ListAPIKeysResponse.self, from: data)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:696:62: error: cannot infer contextual base in reference to member 'get'
694 |     public func getAPIKey(id keyId: String) async throws -> APIKey {
695 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/api_keys/\(keyId)")
696 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
697 |
698 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:705:62: error: cannot infer contextual base in reference to member 'post'
703 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/api_keys/\(keyId)")
704 |         let requestData = try encoder.encode(request)
705 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
706 |
707 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:13:29: error: cannot find type 'URLRequest' in scope
11 |     ///   - streaming: Whether this is a streaming request.
12 |     /// - Returns: The response data and HTTP response.
13 |     func perform(_ request: URLRequest, streaming: Bool) async throws -> (Data, HTTPURLResponse)
   |                             `- error: cannot find type 'URLRequest' in scope
14 |
15 |     /// Performs a streaming HTTP request.
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:18:38: error: cannot find type 'URLRequest' in scope
16 |     /// - Parameter request: The URL request to perform.
17 |     /// - Returns: An async stream of data chunks.
18 |     func performStreaming(_ request: URLRequest) async throws -> AsyncThrowingStream<Data, Error>
   |                                      `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Uploads a file.
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:27:32: error: cannot find type 'URLRequest' in scope
25 |     ///   - mimeType: The MIME type.
26 |     /// - Returns: The response data and HTTP response.
27 |     func uploadFile(_ request: URLRequest, fileData: Data, filename: String, mimeType: String) async throws -> (Data, HTTPURLResponse)
   |                                `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:713:87: error: cannot find type 'URLRequest' in scope
711 |     // MARK: - Private Helpers
712 |
713 |     private func createURLRequest(url: URL, method: HTTPMethod, body: Data? = nil) -> URLRequest {
    |                                                                                       `- error: cannot find type 'URLRequest' in scope
714 |         var headers: [String: String] = [
715 |             "x-api-key": configuration.apiKey,
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:740:44: error: cannot find type 'URLRequest' in scope
738 |     }
739 |
740 |     private func performRequest(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                            `- error: cannot find type 'URLRequest' in scope
741 |         var lastError: Error?
742 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:740:79: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
738 |     }
739 |
740 |     private func performRequest(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
741 |         var lastError: Error?
742 |
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/AnthropicKit/API/AnthropicAPI.swift:277:62: error: cannot infer contextual base in reference to member 'post'
275 |
276 |         let requestData = try encoder.encode(modifiedRequest)
277 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
278 |
279 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:360:62: error: cannot infer contextual base in reference to member 'post'
358 |
359 |         let requestData = try encoder.encode(modifiedRequest)
360 |         var urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
361 |         urlRequest.setValue("text/event-stream", forHTTPHeaderField: "Accept")
362 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:413:62: error: cannot infer contextual base in reference to member 'post'
411 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/count_tokens")
412 |         let requestData = try encoder.encode(request)
413 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
414 |
415 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:424:62: error: cannot infer contextual base in reference to member 'post'
422 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/batches")
423 |         let requestData = try encoder.encode(request)
424 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
425 |
426 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:453:62: error: cannot infer contextual base in reference to member 'get'
451 |         }
452 |
453 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
454 |         let (data, _) = try await performRequest(urlRequest)
455 |         return try decoder.decode(ListBatchesResponse.self, from: data)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:460:62: error: cannot infer contextual base in reference to member 'get'
458 |     public func getBatch(id batchId: String) async throws -> Batch {
459 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/batches/\(batchId)")
460 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
461 |
462 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:468:62: error: cannot infer contextual base in reference to member 'get'
466 |     public func getBatchResults(id batchId: String) async throws -> AsyncThrowingStream<BatchResult, Error> {
467 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/batches/\(batchId)/results")
468 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
469 |
470 |         let stream = try await httpClient.performStreaming(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:495:62: error: cannot infer contextual base in reference to member 'post'
493 |     public func cancelBatch(id batchId: String) async throws -> Batch {
494 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/batches/\(batchId)/cancel")
495 |         let urlRequest = createURLRequest(url: url, method: .post)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
496 |
497 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:503:62: error: cannot infer contextual base in reference to member 'delete'
501 |     public func deleteBatch(id batchId: String) async throws {
502 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/batches/\(batchId)")
503 |         let urlRequest = createURLRequest(url: url, method: .delete)
    |                                                              `- error: cannot infer contextual base in reference to member 'delete'
504 |
505 |         _ = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:512:62: error: cannot infer contextual base in reference to member 'post'
510 |     public func uploadFile(data: Data, filename: String, mimeType: String) async throws -> File {
511 |         let url = configuration.baseURL.appendingPathComponent("/v1/files")
512 |         var urlRequest = createURLRequest(url: url, method: .post)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
513 |
514 |         // Add beta header for files API
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:552:62: error: cannot infer contextual base in reference to member 'get'
550 |         }
551 |
552 |         var urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
553 |         urlRequest.setValue("files-api-2025-04-14", forHTTPHeaderField: "anthropic-beta")
554 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:561:62: error: cannot infer contextual base in reference to member 'get'
559 |     public func getFile(id fileId: String) async throws -> File {
560 |         let url = configuration.baseURL.appendingPathComponent("/v1/files/\(fileId)")
561 |         var urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
562 |         urlRequest.setValue("files-api-2025-04-14", forHTTPHeaderField: "anthropic-beta")
563 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:570:62: error: cannot infer contextual base in reference to member 'get'
568 |     public func downloadFile(id fileId: String) async throws -> Data {
569 |         let url = configuration.baseURL.appendingPathComponent("/v1/files/\(fileId)/content")
570 |         var urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
571 |         urlRequest.setValue("files-api-2025-04-14", forHTTPHeaderField: "anthropic-beta")
572 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:579:62: error: cannot infer contextual base in reference to member 'delete'
577 |     public func deleteFile(id fileId: String) async throws {
578 |         let url = configuration.baseURL.appendingPathComponent("/v1/files/\(fileId)")
579 |         var urlRequest = createURLRequest(url: url, method: .delete)
    |                                                              `- error: cannot infer contextual base in reference to member 'delete'
580 |         urlRequest.setValue("files-api-2025-04-14", forHTTPHeaderField: "anthropic-beta")
581 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:589:62: error: cannot infer contextual base in reference to member 'get'
587 |     public func listModels() async throws -> ListModelsResponse {
588 |         let url = configuration.baseURL.appendingPathComponent("/v1/models")
589 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
590 |
591 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:597:62: error: cannot infer contextual base in reference to member 'get'
595 |     public func getModel(id modelId: String) async throws -> Model {
596 |         let url = configuration.baseURL.appendingPathComponent("/v1/models/\(modelId)")
597 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
598 |
599 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:628:62: error: cannot infer contextual base in reference to member 'get'
626 |         }
627 |
628 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
629 |         let (data, _) = try await performRequest(urlRequest)
630 |         return try decoder.decode(ListWorkspaceMembersResponse.self, from: data)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:635:62: error: cannot infer contextual base in reference to member 'get'
633 |     public func getWorkspaceMember(workspaceId: String, userId: String) async throws -> WorkspaceMember {
634 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/workspaces/\(workspaceId)/members/\(userId)")
635 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
636 |
637 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:644:62: error: cannot infer contextual base in reference to member 'post'
642 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/workspaces/\(workspaceId)/members")
643 |         let requestData = try encoder.encode(request)
644 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
645 |
646 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:653:62: error: cannot infer contextual base in reference to member 'post'
651 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/workspaces/\(workspaceId)/members/\(userId)")
652 |         let requestData = try encoder.encode(request)
653 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
654 |
655 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:661:62: error: cannot infer contextual base in reference to member 'delete'
659 |     public func removeWorkspaceMember(workspaceId: String, userId: String) async throws {
660 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/workspaces/\(workspaceId)/members/\(userId)")
661 |         let urlRequest = createURLRequest(url: url, method: .delete)
    |                                                              `- error: cannot infer contextual base in reference to member 'delete'
662 |
663 |         _ = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:689:62: error: cannot infer contextual base in reference to member 'get'
687 |         }
688 |
689 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
690 |         let (data, _) = try await performRequest(urlRequest)
691 |         return try decoder.decode(ListAPIKeysResponse.self, from: data)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:696:62: error: cannot infer contextual base in reference to member 'get'
694 |     public func getAPIKey(id keyId: String) async throws -> APIKey {
695 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/api_keys/\(keyId)")
696 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
697 |
698 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:705:62: error: cannot infer contextual base in reference to member 'post'
703 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/api_keys/\(keyId)")
704 |         let requestData = try encoder.encode(request)
705 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
706 |
707 |         let (data, _) = try await performRequest(urlRequest)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[61/84] Emitting module AnthropicKit
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:13:29: error: cannot find type 'URLRequest' in scope
11 |     ///   - streaming: Whether this is a streaming request.
12 |     /// - Returns: The response data and HTTP response.
13 |     func perform(_ request: URLRequest, streaming: Bool) async throws -> (Data, HTTPURLResponse)
   |                             `- error: cannot find type 'URLRequest' in scope
14 |
15 |     /// Performs a streaming HTTP request.
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:18:38: error: cannot find type 'URLRequest' in scope
16 |     /// - Parameter request: The URL request to perform.
17 |     /// - Returns: An async stream of data chunks.
18 |     func performStreaming(_ request: URLRequest) async throws -> AsyncThrowingStream<Data, Error>
   |                                      `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Uploads a file.
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:27:32: error: cannot find type 'URLRequest' in scope
25 |     ///   - mimeType: The MIME type.
26 |     /// - Returns: The response data and HTTP response.
27 |     func uploadFile(_ request: URLRequest, fileData: Data, filename: String, mimeType: String) async throws -> (Data, HTTPURLResponse)
   |                                `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:713:87: error: cannot find type 'URLRequest' in scope
711 |     // MARK: - Private Helpers
712 |
713 |     private func createURLRequest(url: URL, method: HTTPMethod, body: Data? = nil) -> URLRequest {
    |                                                                                       `- error: cannot find type 'URLRequest' in scope
714 |         var headers: [String: String] = [
715 |             "x-api-key": configuration.apiKey,
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:740:44: error: cannot find type 'URLRequest' in scope
738 |     }
739 |
740 |     private func performRequest(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                            `- error: cannot find type 'URLRequest' in scope
741 |         var lastError: Error?
742 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:740:79: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
738 |     }
739 |
740 |     private func performRequest(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
741 |         var lastError: Error?
742 |
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/AnthropicKit/Networking/HTTPClient.swift:13:81: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |     ///   - streaming: Whether this is a streaming request.
12 |     /// - Returns: The response data and HTTP response.
13 |     func perform(_ request: URLRequest, streaming: Bool) async throws -> (Data, HTTPURLResponse)
   |                                                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 |     /// Performs a streaming HTTP request.
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/AnthropicKit/Networking/HTTPClient.swift:27:119: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     ///   - mimeType: The MIME type.
26 |     /// - Returns: The response data and HTTP response.
27 |     func uploadFile(_ request: URLRequest, fileData: Data, filename: String, mimeType: String) async throws -> (Data, HTTPURLResponse)
   |                                                                                                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | }
29 |
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/AnthropicKit/Networking/HTTPClient.swift:49:11: error: cannot find type 'URLRequest' in scope
47 |
48 | /// Extension to create URL requests more easily.
49 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
50 |     /// Creates a new URL request with the given parameters.
51 |     /// - Parameters:
[62/84] Compiling ArgumentParser InputKey.swift
[63/84] Compiling ArgumentParser InputOrigin.swift
[64/84] Compiling ArgumentParser Name.swift
[65/84] Compiling ArgumentParser Parsed.swift
[66/84] Compiling ArgumentParser ParsedValues.swift
[67/84] Compiling ArgumentParser ParserError.swift
[69/84] Compiling ArgumentParser CompletionKind.swift
[70/84] Compiling ArgumentParser Errors.swift
[71/84] Compiling ArgumentParser Flag.swift
[72/84] Compiling ArgumentParser NameSpecification.swift
[73/84] Compiling ArgumentParser Option.swift
[74/84] Compiling ArgumentParser ParsableArguments.swift
[75/84] Compiling ArgumentParser ParsableCommand.swift
[76/84] Compiling ArgumentParser ArgumentDecoder.swift
[77/84] Compiling ArgumentParser ArgumentDefinition.swift
[78/84] Compiling ArgumentParser ArgumentSet.swift
[79/84] Compiling ArgumentParser CommandParser.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:873b43b7be6289c04a5a3fd4b2c372c2a5abf90643451079297d3dc6dc0b7d36
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-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/11] Write swift-version-24593BA9C3E375BF.txt
[6/28] Compiling AnthropicKit AnthropicAPI.swift
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:13:29: error: cannot find type 'URLRequest' in scope
11 |     ///   - streaming: Whether this is a streaming request.
12 |     /// - Returns: The response data and HTTP response.
13 |     func perform(_ request: URLRequest, streaming: Bool) async throws -> (Data, HTTPURLResponse)
   |                             `- error: cannot find type 'URLRequest' in scope
14 |
15 |     /// Performs a streaming HTTP request.
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:18:38: error: cannot find type 'URLRequest' in scope
16 |     /// - Parameter request: The URL request to perform.
17 |     /// - Returns: An async stream of data chunks.
18 |     func performStreaming(_ request: URLRequest) async throws -> AsyncThrowingStream<Data, Error>
   |                                      `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Uploads a file.
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:27:32: error: cannot find type 'URLRequest' in scope
25 |     ///   - mimeType: The MIME type.
26 |     /// - Returns: The response data and HTTP response.
27 |     func uploadFile(_ request: URLRequest, fileData: Data, filename: String, mimeType: String) async throws -> (Data, HTTPURLResponse)
   |                                `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:713:87: error: cannot find type 'URLRequest' in scope
711 |     // MARK: - Private Helpers
712 |
713 |     private func createURLRequest(url: URL, method: HTTPMethod, body: Data? = nil) -> URLRequest {
    |                                                                                       `- error: cannot find type 'URLRequest' in scope
714 |         var headers: [String: String] = [
715 |             "x-api-key": configuration.apiKey,
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:740:44: error: cannot find type 'URLRequest' in scope
738 |     }
739 |
740 |     private func performRequest(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                            `- error: cannot find type 'URLRequest' in scope
741 |         var lastError: Error?
742 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:740:79: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
738 |     }
739 |
740 |     private func performRequest(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
741 |         var lastError: Error?
742 |
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/AnthropicKit/API/AnthropicAPI.swift:277:62: error: cannot infer contextual base in reference to member 'post'
275 |
276 |         let requestData = try encoder.encode(modifiedRequest)
277 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
278 |
279 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:360:62: error: cannot infer contextual base in reference to member 'post'
358 |
359 |         let requestData = try encoder.encode(modifiedRequest)
360 |         var urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
361 |         urlRequest.setValue("text/event-stream", forHTTPHeaderField: "Accept")
362 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:413:62: error: cannot infer contextual base in reference to member 'post'
411 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/count_tokens")
412 |         let requestData = try encoder.encode(request)
413 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
414 |
415 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:424:62: error: cannot infer contextual base in reference to member 'post'
422 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/batches")
423 |         let requestData = try encoder.encode(request)
424 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
425 |
426 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:453:62: error: cannot infer contextual base in reference to member 'get'
451 |         }
452 |
453 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
454 |         let (data, _) = try await performRequest(urlRequest)
455 |         return try decoder.decode(ListBatchesResponse.self, from: data)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:460:62: error: cannot infer contextual base in reference to member 'get'
458 |     public func getBatch(id batchId: String) async throws -> Batch {
459 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/batches/\(batchId)")
460 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
461 |
462 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:468:62: error: cannot infer contextual base in reference to member 'get'
466 |     public func getBatchResults(id batchId: String) async throws -> AsyncThrowingStream<BatchResult, Error> {
467 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/batches/\(batchId)/results")
468 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
469 |
470 |         let stream = try await httpClient.performStreaming(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:495:62: error: cannot infer contextual base in reference to member 'post'
493 |     public func cancelBatch(id batchId: String) async throws -> Batch {
494 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/batches/\(batchId)/cancel")
495 |         let urlRequest = createURLRequest(url: url, method: .post)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
496 |
497 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:503:62: error: cannot infer contextual base in reference to member 'delete'
501 |     public func deleteBatch(id batchId: String) async throws {
502 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/batches/\(batchId)")
503 |         let urlRequest = createURLRequest(url: url, method: .delete)
    |                                                              `- error: cannot infer contextual base in reference to member 'delete'
504 |
505 |         _ = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:512:62: error: cannot infer contextual base in reference to member 'post'
510 |     public func uploadFile(data: Data, filename: String, mimeType: String) async throws -> File {
511 |         let url = configuration.baseURL.appendingPathComponent("/v1/files")
512 |         var urlRequest = createURLRequest(url: url, method: .post)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
513 |
514 |         // Add beta header for files API
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:552:62: error: cannot infer contextual base in reference to member 'get'
550 |         }
551 |
552 |         var urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
553 |         urlRequest.setValue("files-api-2025-04-14", forHTTPHeaderField: "anthropic-beta")
554 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:561:62: error: cannot infer contextual base in reference to member 'get'
559 |     public func getFile(id fileId: String) async throws -> File {
560 |         let url = configuration.baseURL.appendingPathComponent("/v1/files/\(fileId)")
561 |         var urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
562 |         urlRequest.setValue("files-api-2025-04-14", forHTTPHeaderField: "anthropic-beta")
563 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:570:62: error: cannot infer contextual base in reference to member 'get'
568 |     public func downloadFile(id fileId: String) async throws -> Data {
569 |         let url = configuration.baseURL.appendingPathComponent("/v1/files/\(fileId)/content")
570 |         var urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
571 |         urlRequest.setValue("files-api-2025-04-14", forHTTPHeaderField: "anthropic-beta")
572 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:579:62: error: cannot infer contextual base in reference to member 'delete'
577 |     public func deleteFile(id fileId: String) async throws {
578 |         let url = configuration.baseURL.appendingPathComponent("/v1/files/\(fileId)")
579 |         var urlRequest = createURLRequest(url: url, method: .delete)
    |                                                              `- error: cannot infer contextual base in reference to member 'delete'
580 |         urlRequest.setValue("files-api-2025-04-14", forHTTPHeaderField: "anthropic-beta")
581 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:589:62: error: cannot infer contextual base in reference to member 'get'
587 |     public func listModels() async throws -> ListModelsResponse {
588 |         let url = configuration.baseURL.appendingPathComponent("/v1/models")
589 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
590 |
591 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:597:62: error: cannot infer contextual base in reference to member 'get'
595 |     public func getModel(id modelId: String) async throws -> Model {
596 |         let url = configuration.baseURL.appendingPathComponent("/v1/models/\(modelId)")
597 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
598 |
599 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:628:62: error: cannot infer contextual base in reference to member 'get'
626 |         }
627 |
628 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
629 |         let (data, _) = try await performRequest(urlRequest)
630 |         return try decoder.decode(ListWorkspaceMembersResponse.self, from: data)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:635:62: error: cannot infer contextual base in reference to member 'get'
633 |     public func getWorkspaceMember(workspaceId: String, userId: String) async throws -> WorkspaceMember {
634 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/workspaces/\(workspaceId)/members/\(userId)")
635 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
636 |
637 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:644:62: error: cannot infer contextual base in reference to member 'post'
642 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/workspaces/\(workspaceId)/members")
643 |         let requestData = try encoder.encode(request)
644 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
645 |
646 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:653:62: error: cannot infer contextual base in reference to member 'post'
651 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/workspaces/\(workspaceId)/members/\(userId)")
652 |         let requestData = try encoder.encode(request)
653 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
654 |
655 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:661:62: error: cannot infer contextual base in reference to member 'delete'
659 |     public func removeWorkspaceMember(workspaceId: String, userId: String) async throws {
660 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/workspaces/\(workspaceId)/members/\(userId)")
661 |         let urlRequest = createURLRequest(url: url, method: .delete)
    |                                                              `- error: cannot infer contextual base in reference to member 'delete'
662 |
663 |         _ = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:689:62: error: cannot infer contextual base in reference to member 'get'
687 |         }
688 |
689 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
690 |         let (data, _) = try await performRequest(urlRequest)
691 |         return try decoder.decode(ListAPIKeysResponse.self, from: data)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:696:62: error: cannot infer contextual base in reference to member 'get'
694 |     public func getAPIKey(id keyId: String) async throws -> APIKey {
695 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/api_keys/\(keyId)")
696 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
697 |
698 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:705:62: error: cannot infer contextual base in reference to member 'post'
703 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/api_keys/\(keyId)")
704 |         let requestData = try encoder.encode(request)
705 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
706 |
707 |         let (data, _) = try await performRequest(urlRequest)
[7/28] Compiling AnthropicKit APIError.swift
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:13:29: error: cannot find type 'URLRequest' in scope
11 |     ///   - streaming: Whether this is a streaming request.
12 |     /// - Returns: The response data and HTTP response.
13 |     func perform(_ request: URLRequest, streaming: Bool) async throws -> (Data, HTTPURLResponse)
   |                             `- error: cannot find type 'URLRequest' in scope
14 |
15 |     /// Performs a streaming HTTP request.
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:18:38: error: cannot find type 'URLRequest' in scope
16 |     /// - Parameter request: The URL request to perform.
17 |     /// - Returns: An async stream of data chunks.
18 |     func performStreaming(_ request: URLRequest) async throws -> AsyncThrowingStream<Data, Error>
   |                                      `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Uploads a file.
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:27:32: error: cannot find type 'URLRequest' in scope
25 |     ///   - mimeType: The MIME type.
26 |     /// - Returns: The response data and HTTP response.
27 |     func uploadFile(_ request: URLRequest, fileData: Data, filename: String, mimeType: String) async throws -> (Data, HTTPURLResponse)
   |                                `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:713:87: error: cannot find type 'URLRequest' in scope
711 |     // MARK: - Private Helpers
712 |
713 |     private func createURLRequest(url: URL, method: HTTPMethod, body: Data? = nil) -> URLRequest {
    |                                                                                       `- error: cannot find type 'URLRequest' in scope
714 |         var headers: [String: String] = [
715 |             "x-api-key": configuration.apiKey,
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:740:44: error: cannot find type 'URLRequest' in scope
738 |     }
739 |
740 |     private func performRequest(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                            `- error: cannot find type 'URLRequest' in scope
741 |         var lastError: Error?
742 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:740:79: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
738 |     }
739 |
740 |     private func performRequest(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
741 |         var lastError: Error?
742 |
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/AnthropicKit/API/AnthropicAPI.swift:277:62: error: cannot infer contextual base in reference to member 'post'
275 |
276 |         let requestData = try encoder.encode(modifiedRequest)
277 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
278 |
279 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:360:62: error: cannot infer contextual base in reference to member 'post'
358 |
359 |         let requestData = try encoder.encode(modifiedRequest)
360 |         var urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
361 |         urlRequest.setValue("text/event-stream", forHTTPHeaderField: "Accept")
362 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:413:62: error: cannot infer contextual base in reference to member 'post'
411 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/count_tokens")
412 |         let requestData = try encoder.encode(request)
413 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
414 |
415 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:424:62: error: cannot infer contextual base in reference to member 'post'
422 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/batches")
423 |         let requestData = try encoder.encode(request)
424 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
425 |
426 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:453:62: error: cannot infer contextual base in reference to member 'get'
451 |         }
452 |
453 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
454 |         let (data, _) = try await performRequest(urlRequest)
455 |         return try decoder.decode(ListBatchesResponse.self, from: data)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:460:62: error: cannot infer contextual base in reference to member 'get'
458 |     public func getBatch(id batchId: String) async throws -> Batch {
459 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/batches/\(batchId)")
460 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
461 |
462 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:468:62: error: cannot infer contextual base in reference to member 'get'
466 |     public func getBatchResults(id batchId: String) async throws -> AsyncThrowingStream<BatchResult, Error> {
467 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/batches/\(batchId)/results")
468 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
469 |
470 |         let stream = try await httpClient.performStreaming(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:495:62: error: cannot infer contextual base in reference to member 'post'
493 |     public func cancelBatch(id batchId: String) async throws -> Batch {
494 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/batches/\(batchId)/cancel")
495 |         let urlRequest = createURLRequest(url: url, method: .post)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
496 |
497 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:503:62: error: cannot infer contextual base in reference to member 'delete'
501 |     public func deleteBatch(id batchId: String) async throws {
502 |         let url = configuration.baseURL.appendingPathComponent("/v1/messages/batches/\(batchId)")
503 |         let urlRequest = createURLRequest(url: url, method: .delete)
    |                                                              `- error: cannot infer contextual base in reference to member 'delete'
504 |
505 |         _ = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:512:62: error: cannot infer contextual base in reference to member 'post'
510 |     public func uploadFile(data: Data, filename: String, mimeType: String) async throws -> File {
511 |         let url = configuration.baseURL.appendingPathComponent("/v1/files")
512 |         var urlRequest = createURLRequest(url: url, method: .post)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
513 |
514 |         // Add beta header for files API
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:552:62: error: cannot infer contextual base in reference to member 'get'
550 |         }
551 |
552 |         var urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
553 |         urlRequest.setValue("files-api-2025-04-14", forHTTPHeaderField: "anthropic-beta")
554 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:561:62: error: cannot infer contextual base in reference to member 'get'
559 |     public func getFile(id fileId: String) async throws -> File {
560 |         let url = configuration.baseURL.appendingPathComponent("/v1/files/\(fileId)")
561 |         var urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
562 |         urlRequest.setValue("files-api-2025-04-14", forHTTPHeaderField: "anthropic-beta")
563 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:570:62: error: cannot infer contextual base in reference to member 'get'
568 |     public func downloadFile(id fileId: String) async throws -> Data {
569 |         let url = configuration.baseURL.appendingPathComponent("/v1/files/\(fileId)/content")
570 |         var urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
571 |         urlRequest.setValue("files-api-2025-04-14", forHTTPHeaderField: "anthropic-beta")
572 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:579:62: error: cannot infer contextual base in reference to member 'delete'
577 |     public func deleteFile(id fileId: String) async throws {
578 |         let url = configuration.baseURL.appendingPathComponent("/v1/files/\(fileId)")
579 |         var urlRequest = createURLRequest(url: url, method: .delete)
    |                                                              `- error: cannot infer contextual base in reference to member 'delete'
580 |         urlRequest.setValue("files-api-2025-04-14", forHTTPHeaderField: "anthropic-beta")
581 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:589:62: error: cannot infer contextual base in reference to member 'get'
587 |     public func listModels() async throws -> ListModelsResponse {
588 |         let url = configuration.baseURL.appendingPathComponent("/v1/models")
589 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
590 |
591 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:597:62: error: cannot infer contextual base in reference to member 'get'
595 |     public func getModel(id modelId: String) async throws -> Model {
596 |         let url = configuration.baseURL.appendingPathComponent("/v1/models/\(modelId)")
597 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
598 |
599 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:628:62: error: cannot infer contextual base in reference to member 'get'
626 |         }
627 |
628 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
629 |         let (data, _) = try await performRequest(urlRequest)
630 |         return try decoder.decode(ListWorkspaceMembersResponse.self, from: data)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:635:62: error: cannot infer contextual base in reference to member 'get'
633 |     public func getWorkspaceMember(workspaceId: String, userId: String) async throws -> WorkspaceMember {
634 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/workspaces/\(workspaceId)/members/\(userId)")
635 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
636 |
637 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:644:62: error: cannot infer contextual base in reference to member 'post'
642 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/workspaces/\(workspaceId)/members")
643 |         let requestData = try encoder.encode(request)
644 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
645 |
646 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:653:62: error: cannot infer contextual base in reference to member 'post'
651 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/workspaces/\(workspaceId)/members/\(userId)")
652 |         let requestData = try encoder.encode(request)
653 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
654 |
655 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:661:62: error: cannot infer contextual base in reference to member 'delete'
659 |     public func removeWorkspaceMember(workspaceId: String, userId: String) async throws {
660 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/workspaces/\(workspaceId)/members/\(userId)")
661 |         let urlRequest = createURLRequest(url: url, method: .delete)
    |                                                              `- error: cannot infer contextual base in reference to member 'delete'
662 |
663 |         _ = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:689:62: error: cannot infer contextual base in reference to member 'get'
687 |         }
688 |
689 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
690 |         let (data, _) = try await performRequest(urlRequest)
691 |         return try decoder.decode(ListAPIKeysResponse.self, from: data)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:696:62: error: cannot infer contextual base in reference to member 'get'
694 |     public func getAPIKey(id keyId: String) async throws -> APIKey {
695 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/api_keys/\(keyId)")
696 |         let urlRequest = createURLRequest(url: url, method: .get)
    |                                                              `- error: cannot infer contextual base in reference to member 'get'
697 |
698 |         let (data, _) = try await performRequest(urlRequest)
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:705:62: error: cannot infer contextual base in reference to member 'post'
703 |         let url = configuration.baseURL.appendingPathComponent("/v1/organizations/api_keys/\(keyId)")
704 |         let requestData = try encoder.encode(request)
705 |         let urlRequest = createURLRequest(url: url, method: .post, body: requestData)
    |                                                              `- error: cannot infer contextual base in reference to member 'post'
706 |
707 |         let (data, _) = try await performRequest(urlRequest)
[8/29] Compiling AnthropicKit APIConfiguration.swift
[9/29] Compiling AnthropicKit APIProtocol.swift
[10/29] Compiling AnthropicKit HTTPClient.swift
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:13:29: error: cannot find type 'URLRequest' in scope
11 |     ///   - streaming: Whether this is a streaming request.
12 |     /// - Returns: The response data and HTTP response.
13 |     func perform(_ request: URLRequest, streaming: Bool) async throws -> (Data, HTTPURLResponse)
   |                             `- error: cannot find type 'URLRequest' in scope
14 |
15 |     /// Performs a streaming HTTP request.
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:13:81: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |     ///   - streaming: Whether this is a streaming request.
12 |     /// - Returns: The response data and HTTP response.
13 |     func perform(_ request: URLRequest, streaming: Bool) async throws -> (Data, HTTPURLResponse)
   |                                                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 |     /// Performs a streaming HTTP request.
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/AnthropicKit/Networking/HTTPClient.swift:18:38: error: cannot find type 'URLRequest' in scope
16 |     /// - Parameter request: The URL request to perform.
17 |     /// - Returns: An async stream of data chunks.
18 |     func performStreaming(_ request: URLRequest) async throws -> AsyncThrowingStream<Data, Error>
   |                                      `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Uploads a file.
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:27:32: error: cannot find type 'URLRequest' in scope
25 |     ///   - mimeType: The MIME type.
26 |     /// - Returns: The response data and HTTP response.
27 |     func uploadFile(_ request: URLRequest, fileData: Data, filename: String, mimeType: String) async throws -> (Data, HTTPURLResponse)
   |                                `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:27:119: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     ///   - mimeType: The MIME type.
26 |     /// - Returns: The response data and HTTP response.
27 |     func uploadFile(_ request: URLRequest, fileData: Data, filename: String, mimeType: String) async throws -> (Data, HTTPURLResponse)
   |                                                                                                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | }
29 |
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/AnthropicKit/Networking/HTTPClient.swift:49:11: error: cannot find type 'URLRequest' in scope
47 |
48 | /// Extension to create URL requests more easily.
49 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
50 |     /// Creates a new URL request with the given parameters.
51 |     /// - Parameters:
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:35:12: error: cannot find 'CURLHTTPClient' in scope
33 |     return URLSessionHTTPClient()
34 |     #else
35 |     return CURLHTTPClient()
   |            `- error: cannot find 'CURLHTTPClient' in scope
36 |     #endif
37 | }
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:64:10: error: cannot find type 'URLRequest' in scope
62 |         body: Data? = nil,
63 |         timeoutInterval: TimeInterval = 60
64 |     ) -> URLRequest {
   |          `- error: cannot find type 'URLRequest' in scope
65 |         var request = URLRequest(url: url, timeoutInterval: timeoutInterval)
66 |         request.httpMethod = method.rawValue
[11/29] Compiling AnthropicKit StreamEventParser.swift
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:13:29: error: cannot find type 'URLRequest' in scope
11 |     ///   - streaming: Whether this is a streaming request.
12 |     /// - Returns: The response data and HTTP response.
13 |     func perform(_ request: URLRequest, streaming: Bool) async throws -> (Data, HTTPURLResponse)
   |                             `- error: cannot find type 'URLRequest' in scope
14 |
15 |     /// Performs a streaming HTTP request.
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:13:81: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |     ///   - streaming: Whether this is a streaming request.
12 |     /// - Returns: The response data and HTTP response.
13 |     func perform(_ request: URLRequest, streaming: Bool) async throws -> (Data, HTTPURLResponse)
   |                                                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 |     /// Performs a streaming HTTP request.
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/AnthropicKit/Networking/HTTPClient.swift:18:38: error: cannot find type 'URLRequest' in scope
16 |     /// - Parameter request: The URL request to perform.
17 |     /// - Returns: An async stream of data chunks.
18 |     func performStreaming(_ request: URLRequest) async throws -> AsyncThrowingStream<Data, Error>
   |                                      `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Uploads a file.
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:27:32: error: cannot find type 'URLRequest' in scope
25 |     ///   - mimeType: The MIME type.
26 |     /// - Returns: The response data and HTTP response.
27 |     func uploadFile(_ request: URLRequest, fileData: Data, filename: String, mimeType: String) async throws -> (Data, HTTPURLResponse)
   |                                `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:27:119: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     ///   - mimeType: The MIME type.
26 |     /// - Returns: The response data and HTTP response.
27 |     func uploadFile(_ request: URLRequest, fileData: Data, filename: String, mimeType: String) async throws -> (Data, HTTPURLResponse)
   |                                                                                                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | }
29 |
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/AnthropicKit/Networking/HTTPClient.swift:49:11: error: cannot find type 'URLRequest' in scope
47 |
48 | /// Extension to create URL requests more easily.
49 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
50 |     /// Creates a new URL request with the given parameters.
51 |     /// - Parameters:
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:35:12: error: cannot find 'CURLHTTPClient' in scope
33 |     return URLSessionHTTPClient()
34 |     #else
35 |     return CURLHTTPClient()
   |            `- error: cannot find 'CURLHTTPClient' in scope
36 |     #endif
37 | }
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:64:10: error: cannot find type 'URLRequest' in scope
62 |         body: Data? = nil,
63 |         timeoutInterval: TimeInterval = 60
64 |     ) -> URLRequest {
   |          `- error: cannot find type 'URLRequest' in scope
65 |         var request = URLRequest(url: url, timeoutInterval: timeoutInterval)
66 |         request.httpMethod = method.rawValue
[12/29] Compiling AnthropicKit URLSessionHTTPClient.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/29] Emitting module AnthropicKit
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:13:29: error: cannot find type 'URLRequest' in scope
11 |     ///   - streaming: Whether this is a streaming request.
12 |     /// - Returns: The response data and HTTP response.
13 |     func perform(_ request: URLRequest, streaming: Bool) async throws -> (Data, HTTPURLResponse)
   |                             `- error: cannot find type 'URLRequest' in scope
14 |
15 |     /// Performs a streaming HTTP request.
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:18:38: error: cannot find type 'URLRequest' in scope
16 |     /// - Parameter request: The URL request to perform.
17 |     /// - Returns: An async stream of data chunks.
18 |     func performStreaming(_ request: URLRequest) async throws -> AsyncThrowingStream<Data, Error>
   |                                      `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Uploads a file.
/host/spi-builder-workspace/Sources/AnthropicKit/Networking/HTTPClient.swift:27:32: error: cannot find type 'URLRequest' in scope
25 |     ///   - mimeType: The MIME type.
26 |     /// - Returns: The response data and HTTP response.
27 |     func uploadFile(_ request: URLRequest, fileData: Data, filename: String, mimeType: String) async throws -> (Data, HTTPURLResponse)
   |                                `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:713:87: error: cannot find type 'URLRequest' in scope
711 |     // MARK: - Private Helpers
712 |
713 |     private func createURLRequest(url: URL, method: HTTPMethod, body: Data? = nil) -> URLRequest {
    |                                                                                       `- error: cannot find type 'URLRequest' in scope
714 |         var headers: [String: String] = [
715 |             "x-api-key": configuration.apiKey,
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:740:44: error: cannot find type 'URLRequest' in scope
738 |     }
739 |
740 |     private func performRequest(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                            `- error: cannot find type 'URLRequest' in scope
741 |         var lastError: Error?
742 |
/host/spi-builder-workspace/Sources/AnthropicKit/API/AnthropicAPI.swift:740:79: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
738 |     }
739 |
740 |     private func performRequest(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
741 |         var lastError: Error?
742 |
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/AnthropicKit/Networking/HTTPClient.swift:13:81: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |     ///   - streaming: Whether this is a streaming request.
12 |     /// - Returns: The response data and HTTP response.
13 |     func perform(_ request: URLRequest, streaming: Bool) async throws -> (Data, HTTPURLResponse)
   |                                                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 |     /// Performs a streaming HTTP request.
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/AnthropicKit/Networking/HTTPClient.swift:27:119: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     ///   - mimeType: The MIME type.
26 |     /// - Returns: The response data and HTTP response.
27 |     func uploadFile(_ request: URLRequest, fileData: Data, filename: String, mimeType: String) async throws -> (Data, HTTPURLResponse)
   |                                                                                                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | }
29 |
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/AnthropicKit/Networking/HTTPClient.swift:49:11: error: cannot find type 'URLRequest' in scope
47 |
48 | /// Extension to create URL requests more easily.
49 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
50 |     /// Creates a new URL request with the given parameters.
51 |     /// - Parameters:
[14/29] Compiling AnthropicKit Organization.swift
[15/29] Compiling AnthropicKit CURLHTTPClient.swift
[16/29] Emitting module ArgumentParserToolInfo
[17/29] Compiling ArgumentParserToolInfo ToolInfo.swift
[18/30] Compiling AnthropicKit Batch.swift
[19/30] Compiling AnthropicKit File.swift
[21/29] Compiling AnthropicKit MessageResponse.swift
[22/29] Compiling AnthropicKit Model.swift
[23/29] Compiling AnthropicKit Message.swift
[24/29] Compiling AnthropicKit MessageRequest.swift
BUILD FAILURE 6.1 android