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 DeepSeekKit, reference master (4d5758), with Swift 6.1 for Wasm on 13 Jul 2025 11:13:20 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/guitaripod/DeepSeekKit.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/guitaripod/DeepSeekKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 4d5758f Update GitHub username from marcusziade to guitaripod
Cloned https://github.com/guitaripod/DeepSeekKit.git
Revision (git rev-parse @):
4d5758f6a3c4e724eaa83dab8d91ef579d9a3bb3
SUCCESS checkout https://github.com/guitaripod/DeepSeekKit.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/guitaripod/DeepSeekKit.git
https://github.com/guitaripod/DeepSeekKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.5.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "DeepSeekKit",
  "name" : "DeepSeekKit",
  "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"
    },
    {
      "name" : "maccatalyst",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "DeepSeekKit",
      "targets" : [
        "DeepSeekKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "deepseek-cli",
      "targets" : [
        "DeepSeekCLI"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DeepSeekKitTests",
      "module_type" : "SwiftTarget",
      "name" : "DeepSeekKitTests",
      "path" : "Tests/DeepSeekKitTests",
      "sources" : [
        "Builders/FunctionBuilderTests.swift",
        "Errors/DeepSeekErrorTests.swift",
        "Models/ChatCompletionRequestTests.swift",
        "Models/ChatMessageTests.swift",
        "Models/CompletionRequestTests.swift",
        "Models/ResponseTests.swift",
        "Models/ToolTests.swift",
        "Networking/RequestBuilderTests.swift"
      ],
      "target_dependencies" : [
        "DeepSeekKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DeepSeekKit",
      "module_type" : "SwiftTarget",
      "name" : "DeepSeekKit",
      "path" : "Sources/DeepSeekKit",
      "product_memberships" : [
        "DeepSeekKit",
        "deepseek-cli"
      ],
      "sources" : [
        "Core/BalanceServiceProtocol.swift",
        "Core/ChatServiceProtocol.swift",
        "Core/DeepSeekProtocol.swift",
        "Core/ModelServiceProtocol.swift",
        "Core/NetworkingProtocol.swift",
        "DeepSeekClient.swift",
        "DeepSeekKit.swift",
        "Errors/DeepSeekError.swift",
        "Extensions/ChatMessage+Convenience.swift",
        "Extensions/FunctionBuilder.swift",
        "Models/BalanceResponse.swift",
        "Models/ChatCompletionChunk.swift",
        "Models/ChatCompletionRequest.swift",
        "Models/ChatCompletionResponse.swift",
        "Models/ChatMessage.swift",
        "Models/CompletionRequest.swift",
        "Models/CompletionResponse.swift",
        "Models/Model.swift",
        "Models/Tool.swift",
        "Networking/RequestBuilder.swift",
        "Networking/URLSessionNetworking.swift",
        "Services/BalanceService.swift",
        "Services/ChatService.swift",
        "Services/ModelService.swift",
        "Streaming/CURLStreamingHandler.swift",
        "Streaming/StreamingHandler.swift",
        "Streaming/URLSessionStreamingHandler.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "DeepSeekCLI",
      "module_type" : "SwiftTarget",
      "name" : "DeepSeekCLI",
      "path" : "Sources/DeepSeekCLI",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "deepseek-cli"
      ],
      "sources" : [
        "Commands/Balance.swift",
        "Commands/Chat.swift",
        "Commands/Complete.swift",
        "Commands/FunctionCall.swift",
        "Commands/JSONMode.swift",
        "Commands/Models.swift",
        "Commands/Reasoning.swift",
        "Commands/Stream.swift",
        "DeepSeekCLI.swift",
        "TestAll.swift"
      ],
      "target_dependencies" : [
        "DeepSeekKit"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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-argument-parser
Fetching https://github.com/apple/swift-docc-plugin
[1/2094] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.39s)
[1/15524] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.85s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.5 (3.00s)
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.38s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.94s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.6.1 (0.51s)
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
Working copy of https://github.com/apple/swift-argument-parser 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/42] Emitting module ArgumentParserToolInfo
[11/42] Compiling ArgumentParserToolInfo ToolInfo.swift
[12/43] Wrapping AST for ArgumentParserToolInfo for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/87] 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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/93] Emitting module DeepSeekKit
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |     ) {
44 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 |     ) {
44 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:70:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 68 |
 69 |     /// The parameters schema in JSON Schema format. Defines the structure and validation rules for function parameters.
 70 |     public let parameters: [String: Any]
    |                `- warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 71 |
 72 |     /// Creates a new function definition.
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:19:76: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Creates a request for the chat completions endpoint.
19 |     func chatCompletionRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
   |                                                                            `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL.appendingPathComponent("chat/completions")
21 |         return try createPOSTRequest(url: url, body: request)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:25:68: error: cannot find type 'URLRequest' in scope
23 |
24 |     /// Creates a request for the completions endpoint (beta).
25 |     func completionRequest(_ request: CompletionRequest) throws -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
26 |         let betaURL = URL(string: "https://api.deepseek.com/beta")!
27 |         let url = betaURL.appendingPathComponent("completions")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:32:33: error: cannot find type 'URLRequest' in scope
30 |
31 |     /// Creates a request to list models.
32 |     func listModelsRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
33 |         let url = baseURL.appendingPathComponent("models")
34 |         return createGETRequest(url: url)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:38:33: error: cannot find type 'URLRequest' in scope
36 |
37 |     /// Creates a request to get user balance.
38 |     func getBalanceRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
39 |         // Balance endpoint uses the root API URL without /v1
40 |         let balanceURL = URL(string: "https://api.deepseek.com/user/balance")!
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:46:48: error: cannot find type 'URLRequest' in scope
44 |     // MARK: - Private Methods
45 |
46 |     private func createGETRequest(url: URL) -> URLRequest {
   |                                                `- error: cannot find type 'URLRequest' in scope
47 |         var request = URLRequest(url: url)
48 |         request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:54:79: error: cannot find type 'URLRequest' in scope
52 |     }
53 |
54 |     private func createPOSTRequest<T: Encodable>(url: URL, body: T) throws -> URLRequest {
   |                                                                               `- error: cannot find type 'URLRequest' in scope
55 |         var request = URLRequest(url: url)
56 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:22:43: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T {
   |                                           `- error: cannot find type 'URLRequest' in scope
23 |         let data = try await performRaw(request)
24 |
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:45:32: error: cannot find type 'URLRequest' in scope
43 |     }
44 |
45 |     func performRaw(_ request: URLRequest) async throws -> Data {
   |                                `- error: cannot find type 'URLRequest' in scope
46 |         do {
47 |             return try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
[16/96] 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
[17/96] 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
[18/96] 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
[19/96] 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
[20/96] 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
[21/96] 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
[22/96] Compiling DeepSeekKit CURLStreamingHandler.swift
[23/96] Compiling DeepSeekKit StreamingHandler.swift
[24/96] Compiling DeepSeekKit URLSessionStreamingHandler.swift
[25/96] Compiling ArgumentParser ArgumentDecoder.swift
[26/96] Compiling ArgumentParser ArgumentDefinition.swift
[27/96] Compiling ArgumentParser ArgumentSet.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:38:33: error: cannot find type 'URLRequest' in scope
36 |
37 |     /// Creates a request to get user balance.
38 |     func getBalanceRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
39 |         // Balance endpoint uses the root API URL without /v1
40 |         let balanceURL = URL(string: "https://api.deepseek.com/user/balance")!
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:19:76: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Creates a request for the chat completions endpoint.
19 |     func chatCompletionRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
   |                                                                            `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL.appendingPathComponent("chat/completions")
21 |         return try createPOSTRequest(url: url, body: request)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:25:68: error: cannot find type 'URLRequest' in scope
23 |
24 |     /// Creates a request for the completions endpoint (beta).
25 |     func completionRequest(_ request: CompletionRequest) throws -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
26 |         let betaURL = URL(string: "https://api.deepseek.com/beta")!
27 |         let url = betaURL.appendingPathComponent("completions")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:32:33: error: cannot find type 'URLRequest' in scope
30 |
31 |     /// Creates a request to list models.
32 |     func listModelsRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
33 |         let url = baseURL.appendingPathComponent("models")
34 |         return createGETRequest(url: url)
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:38:33: error: cannot find type 'URLRequest' in scope
36 |
37 |     /// Creates a request to get user balance.
38 |     func getBalanceRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
39 |         // Balance endpoint uses the root API URL without /v1
40 |         let balanceURL = URL(string: "https://api.deepseek.com/user/balance")!
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:19:76: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Creates a request for the chat completions endpoint.
19 |     func chatCompletionRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
   |                                                                            `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL.appendingPathComponent("chat/completions")
21 |         return try createPOSTRequest(url: url, body: request)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:25:68: error: cannot find type 'URLRequest' in scope
23 |
24 |     /// Creates a request for the completions endpoint (beta).
25 |     func completionRequest(_ request: CompletionRequest) throws -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
26 |         let betaURL = URL(string: "https://api.deepseek.com/beta")!
27 |         let url = betaURL.appendingPathComponent("completions")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:32:33: error: cannot find type 'URLRequest' in scope
30 |
31 |     /// Creates a request to list models.
32 |     func listModelsRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
33 |         let url = baseURL.appendingPathComponent("models")
34 |         return createGETRequest(url: url)
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:38:33: error: cannot find type 'URLRequest' in scope
36 |
37 |     /// Creates a request to get user balance.
38 |     func getBalanceRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
39 |         // Balance endpoint uses the root API URL without /v1
40 |         let balanceURL = URL(string: "https://api.deepseek.com/user/balance")!
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:19:76: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Creates a request for the chat completions endpoint.
19 |     func chatCompletionRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
   |                                                                            `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL.appendingPathComponent("chat/completions")
21 |         return try createPOSTRequest(url: url, body: request)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:25:68: error: cannot find type 'URLRequest' in scope
23 |
24 |     /// Creates a request for the completions endpoint (beta).
25 |     func completionRequest(_ request: CompletionRequest) throws -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
26 |         let betaURL = URL(string: "https://api.deepseek.com/beta")!
27 |         let url = betaURL.appendingPathComponent("completions")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:32:33: error: cannot find type 'URLRequest' in scope
30 |
31 |     /// Creates a request to list models.
32 |     func listModelsRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
33 |         let url = baseURL.appendingPathComponent("models")
34 |         return createGETRequest(url: url)
[31/96] Compiling ArgumentParser ParsableArguments.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[32/96] 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
/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
[39/96] 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
[40/96] 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
[41/96] 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
[42/96] 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
[43/96] Compiling ArgumentParser ArgumentVisibility.swift
[44/96] 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
[45/96] Compiling ArgumentParser CompletionKind.swift
[46/96] 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
[47/96] 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
[48/96] 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
[49/96] 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
[50/96] 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
[51/96] Compiling ArgumentParser Errors.swift
[52/96] Compiling ArgumentParser Flag.swift
[53/96] 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
[54/96] 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
[55/96] 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
[56/96] 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
[57/96] 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
[58/96] 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
[62/96] Compiling ArgumentParser ArgumentDiscussion.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |     ) {
44 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 |     ) {
44 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:55:28: error: cannot find 'URLSessionStreamingHandler' in scope
53 |         streamingHandler = CURLStreamingHandler()
54 |         #else
55 |         streamingHandler = URLSessionStreamingHandler()
   |                            `- error: cannot find 'URLSessionStreamingHandler' in scope
56 |         #endif
57 |
[63/96] Compiling ArgumentParser ArgumentHelp.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |     ) {
44 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 |     ) {
44 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:55:28: error: cannot find 'URLSessionStreamingHandler' in scope
53 |         streamingHandler = CURLStreamingHandler()
54 |         #else
55 |         streamingHandler = URLSessionStreamingHandler()
   |                            `- error: cannot find 'URLSessionStreamingHandler' in scope
56 |         #endif
57 |
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |     ) {
44 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 |     ) {
44 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:55:28: error: cannot find 'URLSessionStreamingHandler' in scope
53 |         streamingHandler = CURLStreamingHandler()
54 |         #else
55 |         streamingHandler = URLSessionStreamingHandler()
   |                            `- error: cannot find 'URLSessionStreamingHandler' in scope
56 |         #endif
57 |
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |     ) {
44 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 |     ) {
44 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:55:28: error: cannot find 'URLSessionStreamingHandler' in scope
53 |         streamingHandler = CURLStreamingHandler()
54 |         #else
55 |         streamingHandler = URLSessionStreamingHandler()
   |                            `- error: cannot find 'URLSessionStreamingHandler' in scope
56 |         #endif
57 |
[66/96] Compiling ArgumentParser NameSpecification.swift
[67/96] Compiling ArgumentParser Option.swift
[68/96] Compiling ArgumentParser BashCompletionsGenerator.swift
[69/96] Compiling ArgumentParser CompletionsGenerator.swift
[70/96] Compiling ArgumentParser FishCompletionsGenerator.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:70:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 68 |
 69 |     /// The parameters schema in JSON Schema format. Defines the structure and validation rules for function parameters.
 70 |     public let parameters: [String: Any]
    |                `- warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 71 |
 72 |     /// Creates a new function definition.
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:231:16: error: cannot find 'CFBooleanGetTypeID' in scope
229 |         return boolID == "c" || boolID == "B"
230 |         #else
231 |         return CFBooleanGetTypeID() == CFGetTypeID(self)
    |                `- error: cannot find 'CFBooleanGetTypeID' in scope
232 |         #endif
233 |     }
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:231:40: error: cannot find 'CFGetTypeID' in scope
229 |         return boolID == "c" || boolID == "B"
230 |         #else
231 |         return CFBooleanGetTypeID() == CFGetTypeID(self)
    |                                        `- error: cannot find 'CFGetTypeID' in scope
232 |         #endif
233 |     }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:19:76: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Creates a request for the chat completions endpoint.
19 |     func chatCompletionRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
   |                                                                            `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL.appendingPathComponent("chat/completions")
21 |         return try createPOSTRequest(url: url, body: request)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:25:68: error: cannot find type 'URLRequest' in scope
23 |
24 |     /// Creates a request for the completions endpoint (beta).
25 |     func completionRequest(_ request: CompletionRequest) throws -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
26 |         let betaURL = URL(string: "https://api.deepseek.com/beta")!
27 |         let url = betaURL.appendingPathComponent("completions")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:32:33: error: cannot find type 'URLRequest' in scope
30 |
31 |     /// Creates a request to list models.
32 |     func listModelsRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
33 |         let url = baseURL.appendingPathComponent("models")
34 |         return createGETRequest(url: url)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:38:33: error: cannot find type 'URLRequest' in scope
36 |
37 |     /// Creates a request to get user balance.
38 |     func getBalanceRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
39 |         // Balance endpoint uses the root API URL without /v1
40 |         let balanceURL = URL(string: "https://api.deepseek.com/user/balance")!
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:46:48: error: cannot find type 'URLRequest' in scope
44 |     // MARK: - Private Methods
45 |
46 |     private func createGETRequest(url: URL) -> URLRequest {
   |                                                `- error: cannot find type 'URLRequest' in scope
47 |         var request = URLRequest(url: url)
48 |         request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:54:79: error: cannot find type 'URLRequest' in scope
52 |     }
53 |
54 |     private func createPOSTRequest<T: Encodable>(url: URL, body: T) throws -> URLRequest {
   |                                                                               `- error: cannot find type 'URLRequest' in scope
55 |         var request = URLRequest(url: url)
56 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:47:23: error: cannot find 'URLRequest' in scope
45 |
46 |     private func createGETRequest(url: URL) -> URLRequest {
47 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
48 |         request.httpMethod = "GET"
49 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:55:23: error: cannot find 'URLRequest' in scope
53 |
54 |     private func createPOSTRequest<T: Encodable>(url: URL, body: T) throws -> URLRequest {
55 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
56 |         request.httpMethod = "POST"
57 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:22:43: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T {
   |                                           `- error: cannot find type 'URLRequest' in scope
23 |         let data = try await performRaw(request)
24 |
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:45:32: error: cannot find type 'URLRequest' in scope
43 |     }
44 |
45 |     func performRaw(_ request: URLRequest) async throws -> Data {
   |                                `- error: cannot find type 'URLRequest' in scope
46 |         do {
47 |             return try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:48:36: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
46 |         do {
47 |             return try await withCheckedThrowingContinuation { continuation in
48 |                 let task = session.dataTask(with: request) { data, response, error in
   |                                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
49 |                     if let error = error {
50 |                         continuation.resume(throwing: DeepSeekError.networkError(error))
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:60:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
58 |                     }
59 |
60 |                     switch httpResponse.statusCode {
   |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |                     case 200...299:
62 |                         // Check for empty response which might indicate endpoint not available
[71/96] Compiling ArgumentParser ZshCompletionsGenerator.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:70:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 68 |
 69 |     /// The parameters schema in JSON Schema format. Defines the structure and validation rules for function parameters.
 70 |     public let parameters: [String: Any]
    |                `- warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 71 |
 72 |     /// Creates a new function definition.
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:231:16: error: cannot find 'CFBooleanGetTypeID' in scope
229 |         return boolID == "c" || boolID == "B"
230 |         #else
231 |         return CFBooleanGetTypeID() == CFGetTypeID(self)
    |                `- error: cannot find 'CFBooleanGetTypeID' in scope
232 |         #endif
233 |     }
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:231:40: error: cannot find 'CFGetTypeID' in scope
229 |         return boolID == "c" || boolID == "B"
230 |         #else
231 |         return CFBooleanGetTypeID() == CFGetTypeID(self)
    |                                        `- error: cannot find 'CFGetTypeID' in scope
232 |         #endif
233 |     }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:19:76: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Creates a request for the chat completions endpoint.
19 |     func chatCompletionRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
   |                                                                            `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL.appendingPathComponent("chat/completions")
21 |         return try createPOSTRequest(url: url, body: request)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:25:68: error: cannot find type 'URLRequest' in scope
23 |
24 |     /// Creates a request for the completions endpoint (beta).
25 |     func completionRequest(_ request: CompletionRequest) throws -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
26 |         let betaURL = URL(string: "https://api.deepseek.com/beta")!
27 |         let url = betaURL.appendingPathComponent("completions")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:32:33: error: cannot find type 'URLRequest' in scope
30 |
31 |     /// Creates a request to list models.
32 |     func listModelsRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
33 |         let url = baseURL.appendingPathComponent("models")
34 |         return createGETRequest(url: url)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:38:33: error: cannot find type 'URLRequest' in scope
36 |
37 |     /// Creates a request to get user balance.
38 |     func getBalanceRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
39 |         // Balance endpoint uses the root API URL without /v1
40 |         let balanceURL = URL(string: "https://api.deepseek.com/user/balance")!
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:46:48: error: cannot find type 'URLRequest' in scope
44 |     // MARK: - Private Methods
45 |
46 |     private func createGETRequest(url: URL) -> URLRequest {
   |                                                `- error: cannot find type 'URLRequest' in scope
47 |         var request = URLRequest(url: url)
48 |         request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:54:79: error: cannot find type 'URLRequest' in scope
52 |     }
53 |
54 |     private func createPOSTRequest<T: Encodable>(url: URL, body: T) throws -> URLRequest {
   |                                                                               `- error: cannot find type 'URLRequest' in scope
55 |         var request = URLRequest(url: url)
56 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:47:23: error: cannot find 'URLRequest' in scope
45 |
46 |     private func createGETRequest(url: URL) -> URLRequest {
47 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
48 |         request.httpMethod = "GET"
49 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:55:23: error: cannot find 'URLRequest' in scope
53 |
54 |     private func createPOSTRequest<T: Encodable>(url: URL, body: T) throws -> URLRequest {
55 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
56 |         request.httpMethod = "POST"
57 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:22:43: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T {
   |                                           `- error: cannot find type 'URLRequest' in scope
23 |         let data = try await performRaw(request)
24 |
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:45:32: error: cannot find type 'URLRequest' in scope
43 |     }
44 |
45 |     func performRaw(_ request: URLRequest) async throws -> Data {
   |                                `- error: cannot find type 'URLRequest' in scope
46 |         do {
47 |             return try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:48:36: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
46 |         do {
47 |             return try await withCheckedThrowingContinuation { continuation in
48 |                 let task = session.dataTask(with: request) { data, response, error in
   |                                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
49 |                     if let error = error {
50 |                         continuation.resume(throwing: DeepSeekError.networkError(error))
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:60:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
58 |                     }
59 |
60 |                     switch httpResponse.statusCode {
   |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |                     case 200...299:
62 |                         // Check for empty response which might indicate endpoint not available
[72/96] Compiling ArgumentParser Argument.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:70:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 68 |
 69 |     /// The parameters schema in JSON Schema format. Defines the structure and validation rules for function parameters.
 70 |     public let parameters: [String: Any]
    |                `- warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 71 |
 72 |     /// Creates a new function definition.
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:231:16: error: cannot find 'CFBooleanGetTypeID' in scope
229 |         return boolID == "c" || boolID == "B"
230 |         #else
231 |         return CFBooleanGetTypeID() == CFGetTypeID(self)
    |                `- error: cannot find 'CFBooleanGetTypeID' in scope
232 |         #endif
233 |     }
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:231:40: error: cannot find 'CFGetTypeID' in scope
229 |         return boolID == "c" || boolID == "B"
230 |         #else
231 |         return CFBooleanGetTypeID() == CFGetTypeID(self)
    |                                        `- error: cannot find 'CFGetTypeID' in scope
232 |         #endif
233 |     }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:19:76: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Creates a request for the chat completions endpoint.
19 |     func chatCompletionRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
   |                                                                            `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL.appendingPathComponent("chat/completions")
21 |         return try createPOSTRequest(url: url, body: request)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:25:68: error: cannot find type 'URLRequest' in scope
23 |
24 |     /// Creates a request for the completions endpoint (beta).
25 |     func completionRequest(_ request: CompletionRequest) throws -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
26 |         let betaURL = URL(string: "https://api.deepseek.com/beta")!
27 |         let url = betaURL.appendingPathComponent("completions")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:32:33: error: cannot find type 'URLRequest' in scope
30 |
31 |     /// Creates a request to list models.
32 |     func listModelsRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
33 |         let url = baseURL.appendingPathComponent("models")
34 |         return createGETRequest(url: url)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:38:33: error: cannot find type 'URLRequest' in scope
36 |
37 |     /// Creates a request to get user balance.
38 |     func getBalanceRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
39 |         // Balance endpoint uses the root API URL without /v1
40 |         let balanceURL = URL(string: "https://api.deepseek.com/user/balance")!
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:46:48: error: cannot find type 'URLRequest' in scope
44 |     // MARK: - Private Methods
45 |
46 |     private func createGETRequest(url: URL) -> URLRequest {
   |                                                `- error: cannot find type 'URLRequest' in scope
47 |         var request = URLRequest(url: url)
48 |         request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:54:79: error: cannot find type 'URLRequest' in scope
52 |     }
53 |
54 |     private func createPOSTRequest<T: Encodable>(url: URL, body: T) throws -> URLRequest {
   |                                                                               `- error: cannot find type 'URLRequest' in scope
55 |         var request = URLRequest(url: url)
56 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:47:23: error: cannot find 'URLRequest' in scope
45 |
46 |     private func createGETRequest(url: URL) -> URLRequest {
47 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
48 |         request.httpMethod = "GET"
49 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:55:23: error: cannot find 'URLRequest' in scope
53 |
54 |     private func createPOSTRequest<T: Encodable>(url: URL, body: T) throws -> URLRequest {
55 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
56 |         request.httpMethod = "POST"
57 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:22:43: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T {
   |                                           `- error: cannot find type 'URLRequest' in scope
23 |         let data = try await performRaw(request)
24 |
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:45:32: error: cannot find type 'URLRequest' in scope
43 |     }
44 |
45 |     func performRaw(_ request: URLRequest) async throws -> Data {
   |                                `- error: cannot find type 'URLRequest' in scope
46 |         do {
47 |             return try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:48:36: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
46 |         do {
47 |             return try await withCheckedThrowingContinuation { continuation in
48 |                 let task = session.dataTask(with: request) { data, response, error in
   |                                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
49 |                     if let error = error {
50 |                         continuation.resume(throwing: DeepSeekError.networkError(error))
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:60:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
58 |                     }
59 |
60 |                     switch httpResponse.statusCode {
   |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |                     case 200...299:
62 |                         // Check for empty response which might indicate endpoint not available
[73/96] 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
[74/96] 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
[75/96] 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
[76/96] 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
[77/96] 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
[78/96] 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
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin 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/38] Compiling DeepSeekKit BalanceServiceProtocol.swift
[7/38] Compiling DeepSeekKit ChatServiceProtocol.swift
[8/38] Compiling DeepSeekKit DeepSeekProtocol.swift
[9/38] Compiling DeepSeekKit ModelServiceProtocol.swift
[10/41] Compiling DeepSeekKit CURLStreamingHandler.swift
[11/41] Compiling DeepSeekKit StreamingHandler.swift
[12/41] Compiling DeepSeekKit URLSessionStreamingHandler.swift
[13/41] Compiling DeepSeekKit Tool.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:70:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 68 |
 69 |     /// The parameters schema in JSON Schema format. Defines the structure and validation rules for function parameters.
 70 |     public let parameters: [String: Any]
    |                `- warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 71 |
 72 |     /// Creates a new function definition.
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:231:16: error: cannot find 'CFBooleanGetTypeID' in scope
229 |         return boolID == "c" || boolID == "B"
230 |         #else
231 |         return CFBooleanGetTypeID() == CFGetTypeID(self)
    |                `- error: cannot find 'CFBooleanGetTypeID' in scope
232 |         #endif
233 |     }
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:231:40: error: cannot find 'CFGetTypeID' in scope
229 |         return boolID == "c" || boolID == "B"
230 |         #else
231 |         return CFBooleanGetTypeID() == CFGetTypeID(self)
    |                                        `- error: cannot find 'CFGetTypeID' in scope
232 |         #endif
233 |     }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:19:76: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Creates a request for the chat completions endpoint.
19 |     func chatCompletionRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
   |                                                                            `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL.appendingPathComponent("chat/completions")
21 |         return try createPOSTRequest(url: url, body: request)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:25:68: error: cannot find type 'URLRequest' in scope
23 |
24 |     /// Creates a request for the completions endpoint (beta).
25 |     func completionRequest(_ request: CompletionRequest) throws -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
26 |         let betaURL = URL(string: "https://api.deepseek.com/beta")!
27 |         let url = betaURL.appendingPathComponent("completions")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:32:33: error: cannot find type 'URLRequest' in scope
30 |
31 |     /// Creates a request to list models.
32 |     func listModelsRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
33 |         let url = baseURL.appendingPathComponent("models")
34 |         return createGETRequest(url: url)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:38:33: error: cannot find type 'URLRequest' in scope
36 |
37 |     /// Creates a request to get user balance.
38 |     func getBalanceRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
39 |         // Balance endpoint uses the root API URL without /v1
40 |         let balanceURL = URL(string: "https://api.deepseek.com/user/balance")!
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:46:48: error: cannot find type 'URLRequest' in scope
44 |     // MARK: - Private Methods
45 |
46 |     private func createGETRequest(url: URL) -> URLRequest {
   |                                                `- error: cannot find type 'URLRequest' in scope
47 |         var request = URLRequest(url: url)
48 |         request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:54:79: error: cannot find type 'URLRequest' in scope
52 |     }
53 |
54 |     private func createPOSTRequest<T: Encodable>(url: URL, body: T) throws -> URLRequest {
   |                                                                               `- error: cannot find type 'URLRequest' in scope
55 |         var request = URLRequest(url: url)
56 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:47:23: error: cannot find 'URLRequest' in scope
45 |
46 |     private func createGETRequest(url: URL) -> URLRequest {
47 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
48 |         request.httpMethod = "GET"
49 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:55:23: error: cannot find 'URLRequest' in scope
53 |
54 |     private func createPOSTRequest<T: Encodable>(url: URL, body: T) throws -> URLRequest {
55 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
56 |         request.httpMethod = "POST"
57 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:22:43: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T {
   |                                           `- error: cannot find type 'URLRequest' in scope
23 |         let data = try await performRaw(request)
24 |
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:45:32: error: cannot find type 'URLRequest' in scope
43 |     }
44 |
45 |     func performRaw(_ request: URLRequest) async throws -> Data {
   |                                `- error: cannot find type 'URLRequest' in scope
46 |         do {
47 |             return try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:48:36: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
46 |         do {
47 |             return try await withCheckedThrowingContinuation { continuation in
48 |                 let task = session.dataTask(with: request) { data, response, error in
   |                                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
49 |                     if let error = error {
50 |                         continuation.resume(throwing: DeepSeekError.networkError(error))
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:60:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
58 |                     }
59 |
60 |                     switch httpResponse.statusCode {
   |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |                     case 200...299:
62 |                         // Check for empty response which might indicate endpoint not available
[14/41] Compiling DeepSeekKit RequestBuilder.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:70:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 68 |
 69 |     /// The parameters schema in JSON Schema format. Defines the structure and validation rules for function parameters.
 70 |     public let parameters: [String: Any]
    |                `- warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 71 |
 72 |     /// Creates a new function definition.
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:231:16: error: cannot find 'CFBooleanGetTypeID' in scope
229 |         return boolID == "c" || boolID == "B"
230 |         #else
231 |         return CFBooleanGetTypeID() == CFGetTypeID(self)
    |                `- error: cannot find 'CFBooleanGetTypeID' in scope
232 |         #endif
233 |     }
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:231:40: error: cannot find 'CFGetTypeID' in scope
229 |         return boolID == "c" || boolID == "B"
230 |         #else
231 |         return CFBooleanGetTypeID() == CFGetTypeID(self)
    |                                        `- error: cannot find 'CFGetTypeID' in scope
232 |         #endif
233 |     }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:19:76: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Creates a request for the chat completions endpoint.
19 |     func chatCompletionRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
   |                                                                            `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL.appendingPathComponent("chat/completions")
21 |         return try createPOSTRequest(url: url, body: request)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:25:68: error: cannot find type 'URLRequest' in scope
23 |
24 |     /// Creates a request for the completions endpoint (beta).
25 |     func completionRequest(_ request: CompletionRequest) throws -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
26 |         let betaURL = URL(string: "https://api.deepseek.com/beta")!
27 |         let url = betaURL.appendingPathComponent("completions")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:32:33: error: cannot find type 'URLRequest' in scope
30 |
31 |     /// Creates a request to list models.
32 |     func listModelsRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
33 |         let url = baseURL.appendingPathComponent("models")
34 |         return createGETRequest(url: url)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:38:33: error: cannot find type 'URLRequest' in scope
36 |
37 |     /// Creates a request to get user balance.
38 |     func getBalanceRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
39 |         // Balance endpoint uses the root API URL without /v1
40 |         let balanceURL = URL(string: "https://api.deepseek.com/user/balance")!
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:46:48: error: cannot find type 'URLRequest' in scope
44 |     // MARK: - Private Methods
45 |
46 |     private func createGETRequest(url: URL) -> URLRequest {
   |                                                `- error: cannot find type 'URLRequest' in scope
47 |         var request = URLRequest(url: url)
48 |         request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:54:79: error: cannot find type 'URLRequest' in scope
52 |     }
53 |
54 |     private func createPOSTRequest<T: Encodable>(url: URL, body: T) throws -> URLRequest {
   |                                                                               `- error: cannot find type 'URLRequest' in scope
55 |         var request = URLRequest(url: url)
56 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:47:23: error: cannot find 'URLRequest' in scope
45 |
46 |     private func createGETRequest(url: URL) -> URLRequest {
47 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
48 |         request.httpMethod = "GET"
49 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:55:23: error: cannot find 'URLRequest' in scope
53 |
54 |     private func createPOSTRequest<T: Encodable>(url: URL, body: T) throws -> URLRequest {
55 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
56 |         request.httpMethod = "POST"
57 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:22:43: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T {
   |                                           `- error: cannot find type 'URLRequest' in scope
23 |         let data = try await performRaw(request)
24 |
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:45:32: error: cannot find type 'URLRequest' in scope
43 |     }
44 |
45 |     func performRaw(_ request: URLRequest) async throws -> Data {
   |                                `- error: cannot find type 'URLRequest' in scope
46 |         do {
47 |             return try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:48:36: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
46 |         do {
47 |             return try await withCheckedThrowingContinuation { continuation in
48 |                 let task = session.dataTask(with: request) { data, response, error in
   |                                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
49 |                     if let error = error {
50 |                         continuation.resume(throwing: DeepSeekError.networkError(error))
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:60:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
58 |                     }
59 |
60 |                     switch httpResponse.statusCode {
   |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |                     case 200...299:
62 |                         // Check for empty response which might indicate endpoint not available
[15/41] Compiling DeepSeekKit URLSessionNetworking.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:70:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 68 |
 69 |     /// The parameters schema in JSON Schema format. Defines the structure and validation rules for function parameters.
 70 |     public let parameters: [String: Any]
    |                `- warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 71 |
 72 |     /// Creates a new function definition.
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:231:16: error: cannot find 'CFBooleanGetTypeID' in scope
229 |         return boolID == "c" || boolID == "B"
230 |         #else
231 |         return CFBooleanGetTypeID() == CFGetTypeID(self)
    |                `- error: cannot find 'CFBooleanGetTypeID' in scope
232 |         #endif
233 |     }
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:231:40: error: cannot find 'CFGetTypeID' in scope
229 |         return boolID == "c" || boolID == "B"
230 |         #else
231 |         return CFBooleanGetTypeID() == CFGetTypeID(self)
    |                                        `- error: cannot find 'CFGetTypeID' in scope
232 |         #endif
233 |     }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:19:76: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Creates a request for the chat completions endpoint.
19 |     func chatCompletionRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
   |                                                                            `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL.appendingPathComponent("chat/completions")
21 |         return try createPOSTRequest(url: url, body: request)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:25:68: error: cannot find type 'URLRequest' in scope
23 |
24 |     /// Creates a request for the completions endpoint (beta).
25 |     func completionRequest(_ request: CompletionRequest) throws -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
26 |         let betaURL = URL(string: "https://api.deepseek.com/beta")!
27 |         let url = betaURL.appendingPathComponent("completions")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:32:33: error: cannot find type 'URLRequest' in scope
30 |
31 |     /// Creates a request to list models.
32 |     func listModelsRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
33 |         let url = baseURL.appendingPathComponent("models")
34 |         return createGETRequest(url: url)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:38:33: error: cannot find type 'URLRequest' in scope
36 |
37 |     /// Creates a request to get user balance.
38 |     func getBalanceRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
39 |         // Balance endpoint uses the root API URL without /v1
40 |         let balanceURL = URL(string: "https://api.deepseek.com/user/balance")!
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:46:48: error: cannot find type 'URLRequest' in scope
44 |     // MARK: - Private Methods
45 |
46 |     private func createGETRequest(url: URL) -> URLRequest {
   |                                                `- error: cannot find type 'URLRequest' in scope
47 |         var request = URLRequest(url: url)
48 |         request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:54:79: error: cannot find type 'URLRequest' in scope
52 |     }
53 |
54 |     private func createPOSTRequest<T: Encodable>(url: URL, body: T) throws -> URLRequest {
   |                                                                               `- error: cannot find type 'URLRequest' in scope
55 |         var request = URLRequest(url: url)
56 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:47:23: error: cannot find 'URLRequest' in scope
45 |
46 |     private func createGETRequest(url: URL) -> URLRequest {
47 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
48 |         request.httpMethod = "GET"
49 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:55:23: error: cannot find 'URLRequest' in scope
53 |
54 |     private func createPOSTRequest<T: Encodable>(url: URL, body: T) throws -> URLRequest {
55 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
56 |         request.httpMethod = "POST"
57 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:22:43: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T {
   |                                           `- error: cannot find type 'URLRequest' in scope
23 |         let data = try await performRaw(request)
24 |
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:45:32: error: cannot find type 'URLRequest' in scope
43 |     }
44 |
45 |     func performRaw(_ request: URLRequest) async throws -> Data {
   |                                `- error: cannot find type 'URLRequest' in scope
46 |         do {
47 |             return try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:48:36: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
46 |         do {
47 |             return try await withCheckedThrowingContinuation { continuation in
48 |                 let task = session.dataTask(with: request) { data, response, error in
   |                                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
49 |                     if let error = error {
50 |                         continuation.resume(throwing: DeepSeekError.networkError(error))
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:60:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
58 |                     }
59 |
60 |                     switch httpResponse.statusCode {
   |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |                     case 200...299:
62 |                         // Check for empty response which might indicate endpoint not available
[16/41] Compiling DeepSeekKit BalanceService.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:38:33: error: cannot find type 'URLRequest' in scope
36 |
37 |     /// Creates a request to get user balance.
38 |     func getBalanceRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
39 |         // Balance endpoint uses the root API URL without /v1
40 |         let balanceURL = URL(string: "https://api.deepseek.com/user/balance")!
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:19:76: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Creates a request for the chat completions endpoint.
19 |     func chatCompletionRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
   |                                                                            `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL.appendingPathComponent("chat/completions")
21 |         return try createPOSTRequest(url: url, body: request)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:25:68: error: cannot find type 'URLRequest' in scope
23 |
24 |     /// Creates a request for the completions endpoint (beta).
25 |     func completionRequest(_ request: CompletionRequest) throws -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
26 |         let betaURL = URL(string: "https://api.deepseek.com/beta")!
27 |         let url = betaURL.appendingPathComponent("completions")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:32:33: error: cannot find type 'URLRequest' in scope
30 |
31 |     /// Creates a request to list models.
32 |     func listModelsRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
33 |         let url = baseURL.appendingPathComponent("models")
34 |         return createGETRequest(url: url)
[17/41] Compiling DeepSeekKit ChatService.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:38:33: error: cannot find type 'URLRequest' in scope
36 |
37 |     /// Creates a request to get user balance.
38 |     func getBalanceRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
39 |         // Balance endpoint uses the root API URL without /v1
40 |         let balanceURL = URL(string: "https://api.deepseek.com/user/balance")!
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:19:76: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Creates a request for the chat completions endpoint.
19 |     func chatCompletionRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
   |                                                                            `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL.appendingPathComponent("chat/completions")
21 |         return try createPOSTRequest(url: url, body: request)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:25:68: error: cannot find type 'URLRequest' in scope
23 |
24 |     /// Creates a request for the completions endpoint (beta).
25 |     func completionRequest(_ request: CompletionRequest) throws -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
26 |         let betaURL = URL(string: "https://api.deepseek.com/beta")!
27 |         let url = betaURL.appendingPathComponent("completions")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:32:33: error: cannot find type 'URLRequest' in scope
30 |
31 |     /// Creates a request to list models.
32 |     func listModelsRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
33 |         let url = baseURL.appendingPathComponent("models")
34 |         return createGETRequest(url: url)
[18/41] Compiling DeepSeekKit ModelService.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:38:33: error: cannot find type 'URLRequest' in scope
36 |
37 |     /// Creates a request to get user balance.
38 |     func getBalanceRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
39 |         // Balance endpoint uses the root API URL without /v1
40 |         let balanceURL = URL(string: "https://api.deepseek.com/user/balance")!
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:19:76: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Creates a request for the chat completions endpoint.
19 |     func chatCompletionRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
   |                                                                            `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL.appendingPathComponent("chat/completions")
21 |         return try createPOSTRequest(url: url, body: request)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:25:68: error: cannot find type 'URLRequest' in scope
23 |
24 |     /// Creates a request for the completions endpoint (beta).
25 |     func completionRequest(_ request: CompletionRequest) throws -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
26 |         let betaURL = URL(string: "https://api.deepseek.com/beta")!
27 |         let url = betaURL.appendingPathComponent("completions")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:32:33: error: cannot find type 'URLRequest' in scope
30 |
31 |     /// Creates a request to list models.
32 |     func listModelsRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
33 |         let url = baseURL.appendingPathComponent("models")
34 |         return createGETRequest(url: url)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[19/41] Emitting module DeepSeekKit
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |     ) {
44 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 |     ) {
44 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:70:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 68 |
 69 |     /// The parameters schema in JSON Schema format. Defines the structure and validation rules for function parameters.
 70 |     public let parameters: [String: Any]
    |                `- warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 71 |
 72 |     /// Creates a new function definition.
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:19:76: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Creates a request for the chat completions endpoint.
19 |     func chatCompletionRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
   |                                                                            `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL.appendingPathComponent("chat/completions")
21 |         return try createPOSTRequest(url: url, body: request)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:25:68: error: cannot find type 'URLRequest' in scope
23 |
24 |     /// Creates a request for the completions endpoint (beta).
25 |     func completionRequest(_ request: CompletionRequest) throws -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
26 |         let betaURL = URL(string: "https://api.deepseek.com/beta")!
27 |         let url = betaURL.appendingPathComponent("completions")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:32:33: error: cannot find type 'URLRequest' in scope
30 |
31 |     /// Creates a request to list models.
32 |     func listModelsRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
33 |         let url = baseURL.appendingPathComponent("models")
34 |         return createGETRequest(url: url)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:38:33: error: cannot find type 'URLRequest' in scope
36 |
37 |     /// Creates a request to get user balance.
38 |     func getBalanceRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
39 |         // Balance endpoint uses the root API URL without /v1
40 |         let balanceURL = URL(string: "https://api.deepseek.com/user/balance")!
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:46:48: error: cannot find type 'URLRequest' in scope
44 |     // MARK: - Private Methods
45 |
46 |     private func createGETRequest(url: URL) -> URLRequest {
   |                                                `- error: cannot find type 'URLRequest' in scope
47 |         var request = URLRequest(url: url)
48 |         request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:54:79: error: cannot find type 'URLRequest' in scope
52 |     }
53 |
54 |     private func createPOSTRequest<T: Encodable>(url: URL, body: T) throws -> URLRequest {
   |                                                                               `- error: cannot find type 'URLRequest' in scope
55 |         var request = URLRequest(url: url)
56 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:22:43: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T {
   |                                           `- error: cannot find type 'URLRequest' in scope
23 |         let data = try await performRaw(request)
24 |
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:45:32: error: cannot find type 'URLRequest' in scope
43 |     }
44 |
45 |     func performRaw(_ request: URLRequest) async throws -> Data {
   |                                `- error: cannot find type 'URLRequest' in scope
46 |         do {
47 |             return try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
[20/41] Compiling DeepSeekKit CompletionRequest.swift
[21/41] Compiling DeepSeekKit CompletionResponse.swift
[22/41] Compiling DeepSeekKit Model.swift
[23/41] Compiling DeepSeekKit ChatMessage+Convenience.swift
[24/41] Compiling DeepSeekKit FunctionBuilder.swift
[25/41] Compiling DeepSeekKit BalanceResponse.swift
[26/41] Compiling DeepSeekKit ChatCompletionChunk.swift
[27/41] Compiling ArgumentParserToolInfo ToolInfo.swift
[28/41] Emitting module ArgumentParserToolInfo
[30/42] Compiling DeepSeekKit ChatCompletionRequest.swift
[31/42] Compiling DeepSeekKit ChatCompletionResponse.swift
[32/42] Compiling DeepSeekKit ChatMessage.swift
[33/42] Compiling DeepSeekKit NetworkingProtocol.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |     ) {
44 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 |     ) {
44 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:55:28: error: cannot find 'URLSessionStreamingHandler' in scope
53 |         streamingHandler = CURLStreamingHandler()
54 |         #else
55 |         streamingHandler = URLSessionStreamingHandler()
   |                            `- error: cannot find 'URLSessionStreamingHandler' in scope
56 |         #endif
57 |
[34/42] Compiling DeepSeekKit DeepSeekClient.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |     ) {
44 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 |     ) {
44 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:55:28: error: cannot find 'URLSessionStreamingHandler' in scope
53 |         streamingHandler = CURLStreamingHandler()
54 |         #else
55 |         streamingHandler = URLSessionStreamingHandler()
   |                            `- error: cannot find 'URLSessionStreamingHandler' in scope
56 |         #endif
57 |
[35/42] Compiling DeepSeekKit DeepSeekKit.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |     ) {
44 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 |     ) {
44 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:55:28: error: cannot find 'URLSessionStreamingHandler' in scope
53 |         streamingHandler = CURLStreamingHandler()
54 |         #else
55 |         streamingHandler = URLSessionStreamingHandler()
   |                            `- error: cannot find 'URLSessionStreamingHandler' in scope
56 |         #endif
57 |
[36/42] Compiling DeepSeekKit DeepSeekError.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |     ) {
44 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 |     ) {
44 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:55:28: error: cannot find 'URLSessionStreamingHandler' in scope
53 |         streamingHandler = CURLStreamingHandler()
54 |         #else
55 |         streamingHandler = URLSessionStreamingHandler()
   |                            `- error: cannot find 'URLSessionStreamingHandler' in scope
56 |         #endif
57 |
BUILD FAILURE 6.1 wasm