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 1.0.1 (90d8e1), with Swift 6.1 for Wasm on 13 Jul 2025 11:22:13 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/guitaripod/AnthropicKit.git
Reference: 1.0.1
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
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at 90d8e17 Improve docs
Cloned https://github.com/guitaripod/AnthropicKit.git
Revision (git rev-parse @):
90d8e1779a003615a3729f6b5132b311c018c0a6
SUCCESS checkout https://github.com/guitaripod/AnthropicKit.git at 1.0.1
========================================
Build
========================================
Selected platform:         wasm
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-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-argument-parser.git
[1/2094] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.46s)
[1/15524] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.90s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.5 (4.54s)
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.42s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.05s)
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.55s)
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/35] Wrapping AST for ArgumentParserToolInfo for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/77] Emitting module ArgumentParser
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[15/83] Compiling ArgumentParser BashCompletionsGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[16/83] Compiling ArgumentParser CompletionsGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[17/83] Compiling ArgumentParser FishCompletionsGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[18/83] Compiling ArgumentParser ZshCompletionsGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[19/83] Compiling ArgumentParser Argument.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[20/83] Compiling ArgumentParser ArgumentDiscussion.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[21/83] Compiling ArgumentParser ArgumentHelp.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[22/83] Compiling ArgumentParser UsageGenerator.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
[23/83] Compiling ArgumentParser OptionGroup.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
[24/84] Compiling ArgumentParser InputKey.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[25/84] Compiling ArgumentParser InputOrigin.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[26/84] Compiling ArgumentParser Name.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[27/84] Compiling ArgumentParser Parsed.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[28/84] Compiling ArgumentParser ParsedValues.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[29/84] Compiling ArgumentParser ParserError.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[30/84] Compiling ArgumentParser CollectionExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[31/84] Compiling ArgumentParser Mutex.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[32/84] Compiling ArgumentParser Platform.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[33/84] Compiling ArgumentParser SequenceExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[34/84] Compiling ArgumentParser StringExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[35/84] Compiling ArgumentParser SwiftExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
error: emit-module command failed with exit code 1 (use -v to see invocation)
[36/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:
/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)
[40/84] Compiling ArgumentParser SplitArguments.swift
[41/84] Compiling ArgumentParser Tree.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[42/84] Compiling ArgumentParser CodingKeyValidator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[43/84] Compiling ArgumentParser NonsenseFlagsValidator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[44/84] Compiling ArgumentParser ParsableArgumentsValidation.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[45/84] Compiling ArgumentParser PositionalArgumentsValidator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[46/84] Compiling ArgumentParser UniqueNamesValidator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[47/84] Compiling AnthropicKit URLSessionHTTPClient.swift
[48/84] Compiling ArgumentParser HelpGenerator.swift
[49/84] Compiling ArgumentParser MessageInfo.swift
[50/84] Compiling ArgumentParser DumpHelpGenerator.swift
[51/84] Compiling ArgumentParser HelpCommand.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin 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 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
[9/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
[10/29] Compiling AnthropicKit URLSessionHTTPClient.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/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:
[12/29] Compiling AnthropicKit Organization.swift
[13/29] Compiling AnthropicKit CURLHTTPClient.swift
[14/29] Compiling ArgumentParserToolInfo ToolInfo.swift
[15/29] Emitting module ArgumentParserToolInfo
[17/73] Compiling ArgumentParser CollectionExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[18/73] Compiling ArgumentParser Mutex.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[19/73] Compiling ArgumentParser Platform.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[20/73] Compiling ArgumentParser SequenceExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[21/73] Compiling ArgumentParser StringExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[22/73] Compiling ArgumentParser SwiftExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[23/79] Compiling ArgumentParser Argument.swift
[24/79] Compiling ArgumentParser ArgumentDiscussion.swift
[25/79] Compiling ArgumentParser FishCompletionsGenerator.swift
[26/79] Compiling ArgumentParser ZshCompletionsGenerator.swift
[27/79] Compiling ArgumentParser ArgumentHelp.swift
[28/79] Compiling ArgumentParser ParsableArguments.swift
[29/79] Compiling ArgumentParser BashCompletionsGenerator.swift
[30/79] Compiling ArgumentParser CompletionsGenerator.swift
[31/79] Compiling ArgumentParser ArgumentVisibility.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[32/79] Compiling ArgumentParser CompletionKind.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[33/79] Compiling ArgumentParser Errors.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[34/79] Compiling ArgumentParser Flag.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[35/79] Compiling ArgumentParser NameSpecification.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[36/79] Compiling ArgumentParser Option.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
error: emit-module command failed with exit code 1 (use -v to see invocation)
[37/79] Emitting module ArgumentParser
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[46/79] Compiling ArgumentParser ParsableCommand.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[47/79] Compiling ArgumentParser ArgumentDecoder.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[48/79] Compiling ArgumentParser ArgumentDefinition.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[49/79] Compiling ArgumentParser ArgumentSet.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[50/79] Compiling ArgumentParser CommandParser.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[51/79] Compiling ArgumentParser OptionGroup.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[52/79] Compiling ArgumentParser AsyncParsableCommand.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[53/79] Compiling ArgumentParser CommandConfiguration.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[54/79] Compiling ArgumentParser CommandGroup.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[55/79] Compiling ArgumentParser EnumerableFlag.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[56/79] Compiling ArgumentParser ExpressibleByArgument.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[57/79] Compiling ArgumentParser Tree.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[58/79] Compiling ArgumentParser CodingKeyValidator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[59/79] Compiling ArgumentParser NonsenseFlagsValidator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[60/79] Compiling ArgumentParser ParsableArgumentsValidation.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[61/79] Compiling ArgumentParser PositionalArgumentsValidator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[62/79] Compiling ArgumentParser UniqueNamesValidator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[63/79] Compiling ArgumentParser InputKey.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[64/79] Compiling ArgumentParser InputOrigin.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[65/79] Compiling ArgumentParser Name.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[66/79] Compiling ArgumentParser Parsed.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[67/79] Compiling ArgumentParser ParsedValues.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[68/79] Compiling ArgumentParser ParserError.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[69/79] Compiling ArgumentParser SplitArguments.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[70/79] Compiling ArgumentParser DumpHelpGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[71/79] Compiling ArgumentParser HelpCommand.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[72/79] Compiling ArgumentParser HelpGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[73/79] Compiling ArgumentParser MessageInfo.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[74/79] Compiling ArgumentParser UsageGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
BUILD FAILURE 6.1 wasm