The Swift Package Index logo.Swift Package Index

Build Information

Failed to build HybridRouterKit, reference 0.11.0 (4e4033), with Swift 6.2 for Linux on 5 Nov 2026 06:55:37 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344846-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jaichaudhry/HybridRouter.git
Reference: 0.11.0
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/jaichaudhry/HybridRouter
 * tag               0.11.0     -> FETCH_HEAD
HEAD is now at 4e40339 Docs: private passages come with the question
Cloned https://github.com/jaichaudhry/HybridRouter.git
Revision (git rev-parse @):
4e40339fa4837d95a8a790564f058ce58b68f8d1
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/jaichaudhry/HybridRouter.git at 0.11.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/jaichaudhry/HybridRouter.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344846-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
linux-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:3b8ac581d32055e8615440d6f2242826e343275e8abdb3534700e4187075d534
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.2-latest
Fetching https://github.com/anthropics/ClaudeForFoundationModels
[1/416] Fetching claudeforfoundationmodels
Fetched https://github.com/anthropics/ClaudeForFoundationModels from cache (0.44s)
Computing version for https://github.com/anthropics/ClaudeForFoundationModels
Computed https://github.com/anthropics/ClaudeForFoundationModels at 0.2.3 (0.57s)
Creating working copy for https://github.com/anthropics/ClaudeForFoundationModels
Working copy of https://github.com/anthropics/ClaudeForFoundationModels resolved at 0.2.3
Building for debugging...
[0/8] Write sources
[0/8] Copying prices.json
[7/8] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/24] Emitting module ClaudeAPI
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:12:55: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |
 11 |   /// Production initializer — talks to the API over `URLSession`.
 12 |   package init(configuration: Configuration, session: URLSession = .shared) {
    |                                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     self.init(configuration: configuration, transport: URLSessionTransport(session: session))
 14 |   }
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/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:12:69: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 |
 11 |   /// Production initializer — talks to the API over `URLSession`.
 12 |   package init(configuration: Configuration, session: URLSession = .shared) {
    |                                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 13 |     self.init(configuration: configuration, transport: URLSessionTransport(session: session))
 14 |   }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:12:69: error: value of type '_' expected to be instance of class or class-constrained type
 10 |
 11 |   /// Production initializer — talks to the API over `URLSession`.
 12 |   package init(configuration: Configuration, session: URLSession = .shared) {
    |                                                                     `- error: value of type '_' expected to be instance of class or class-constrained type
 13 |     self.init(configuration: configuration, transport: URLSessionTransport(session: session))
 14 |   }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:104:15: error: cannot find type 'URLRequest' in scope
102 |     for body: MessagesRequest,
103 |     headers: [String: String]
104 |   ) throws -> URLRequest {
    |               `- error: cannot find type 'URLRequest' in scope
105 |     var req = URLRequest(url: configuration.baseURL.appending(path: "v1/messages"))
106 |     req.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:125:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |   }
124 |
125 |   private static func check(_ response: URLResponse, body: Data) throws {
    |                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 |     guard let http = response as? HTTPURLResponse else { return }
127 |     guard http.statusCode >= 400 else { return }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:12:26: error: cannot find type 'URLRequest' in scope
 10 | /// one — `AsyncBytes` can only be vended by a live `URLSession`.
 11 | package protocol HTTPTransport: Sendable {
 12 |   func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                          `- error: cannot find type 'URLRequest' in scope
 13 |   func bytes(
 14 |     for request: URLRequest
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:12:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 | /// one — `AsyncBytes` can only be vended by a live `URLSession`.
 11 | package protocol HTTPTransport: Sendable {
 12 |   func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |   func bytes(
 14 |     for request: URLRequest
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:14:18: error: cannot find type 'URLRequest' in scope
 12 |   func data(for request: URLRequest) async throws -> (Data, URLResponse)
 13 |   func bytes(
 14 |     for request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
 15 |   ) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
 16 | }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:15:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |   func bytes(
 14 |     for request: URLRequest
 15 |   ) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
    |                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 | }
 17 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:38:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 | /// `URLSession`-backed transport used in production.
 37 | package struct URLSessionTransport: HTTPTransport {
 38 |   private let session: URLSession
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |
 40 |   package init(session: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:40:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |   private let session: URLSession
 39 |
 40 |   package init(session: URLSession = .shared) {
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     self.session = session
 42 |   }
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/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:40:39: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 38 |   private let session: URLSession
 39 |
 40 |   package init(session: URLSession = .shared) {
    |                                       `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 41 |     self.session = session
 42 |   }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:40:39: error: value of type '_' expected to be instance of class or class-constrained type
 38 |   private let session: URLSession
 39 |
 40 |   package init(session: URLSession = .shared) {
    |                                       `- error: value of type '_' expected to be instance of class or class-constrained type
 41 |     self.session = session
 42 |   }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:44:34: error: cannot find type 'URLRequest' in scope
 42 |   }
 43 |
 44 |   package func data(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                  `- error: cannot find type 'URLRequest' in scope
 45 |     let redirects = RedirectPolicy(origin: request.url)
 46 |     let (data, response) = try await session.data(for: request, delegate: redirects)
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:44:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |   }
 43 |
 44 |   package func data(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     let redirects = RedirectPolicy(origin: request.url)
 46 |     let (data, response) = try await session.data(for: request, delegate: redirects)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:52:18: error: cannot find type 'URLRequest' in scope
 50 |
 51 |   package func bytes(
 52 |     for request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
 53 |   ) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse) {
 54 |     // `bytes(for:)` returns once headers arrive, so the caller can check the
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:53:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |   package func bytes(
 52 |     for request: URLRequest
 53 |   ) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse) {
    |                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |     // `bytes(for:)` returns once headers arrive, so the caller can check the
 55 |     // status before draining the body. Re-yield the bytes through a stream of
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:38:15: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
 36 | /// `URLSession`-backed transport used in production.
 37 | package struct URLSessionTransport: HTTPTransport {
 38 |   private let session: URLSession
    |               `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
 39 |
 40 |   package init(session: URLSession = .shared) {
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:85:39: error: cannot find type 'URLSessionTaskDelegate' in scope
 83 | /// response itself, which callers would otherwise take for a success, so the
 84 | /// refusal is recorded and ``checkRefused()`` turns it into an error.
 85 | final class RedirectPolicy: NSObject, URLSessionTaskDelegate, Sendable {
    |                                       `- error: cannot find type 'URLSessionTaskDelegate' in scope
 86 |   /// Nil when the request had no usable URL, in which case nothing is
 87 |   /// followed.
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:114:25: error: cannot find type 'URLRequest' in scope
112 |     task: URLSessionTask,
113 |     willPerformHTTPRedirection response: HTTPURLResponse,
114 |     newRequest request: URLRequest,
    |                         `- error: cannot find type 'URLRequest' in scope
115 |     completionHandler: @escaping @Sendable (URLRequest?) -> Void
116 |   ) {
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:115:45: error: cannot find type 'URLRequest' in scope
113 |     willPerformHTTPRedirection response: HTTPURLResponse,
114 |     newRequest request: URLRequest,
115 |     completionHandler: @escaping @Sendable (URLRequest?) -> Void
    |                                             `- error: cannot find type 'URLRequest' in scope
116 |   ) {
117 |     if let target = request.url, allowsRedirect(to: target) {
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:111:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 |
110 |   func urlSession(
111 |     _ session: URLSession,
    |                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 |     task: URLSessionTask,
113 |     willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:112:11: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |   func urlSession(
111 |     _ session: URLSession,
112 |     task: URLSessionTask,
    |           `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |     willPerformHTTPRedirection response: HTTPURLResponse,
114 |     newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:113:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |     _ session: URLSession,
112 |     task: URLSessionTask,
113 |     willPerformHTTPRedirection response: HTTPURLResponse,
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |     newRequest request: URLRequest,
115 |     completionHandler: @escaping @Sendable (URLRequest?) -> Void
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[10/26] Compiling ClaudeAPI StreamEvent.swift
[11/26] Compiling ClaudeAPI Telemetry.swift
[12/26] Compiling ClaudeAPI MessagesResponse.swift
[13/26] Compiling ClaudeAPI SSEParser.swift
[14/26] Compiling ClaudeAPI ThinkingConfig.swift
[15/26] Compiling ClaudeAPI ToolDefinition.swift
[16/26] Compiling ClaudeAPI ContentAssembler.swift
[17/26] Compiling ClaudeAPI ContentBlock.swift
[18/26] Compiling ClaudeAPI HeaderName.swift
[19/26] Compiling ClaudeAPI JSONValue.swift
[20/26] Compiling ClaudeAPI Message.swift
[21/26] Compiling ClaudeAPI MessagesRequest.swift
[22/26] Compiling ClaudeAPI Fallbacks.swift
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:12:26: error: cannot find type 'URLRequest' in scope
 10 | /// one — `AsyncBytes` can only be vended by a live `URLSession`.
 11 | package protocol HTTPTransport: Sendable {
 12 |   func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                          `- error: cannot find type 'URLRequest' in scope
 13 |   func bytes(
 14 |     for request: URLRequest
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:12:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 | /// one — `AsyncBytes` can only be vended by a live `URLSession`.
 11 | package protocol HTTPTransport: Sendable {
 12 |   func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |   func bytes(
 14 |     for request: URLRequest
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:14:18: error: cannot find type 'URLRequest' in scope
 12 |   func data(for request: URLRequest) async throws -> (Data, URLResponse)
 13 |   func bytes(
 14 |     for request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
 15 |   ) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
 16 | }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:15:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |   func bytes(
 14 |     for request: URLRequest
 15 |   ) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
    |                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 | }
 17 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:38:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 | /// `URLSession`-backed transport used in production.
 37 | package struct URLSessionTransport: HTTPTransport {
 38 |   private let session: URLSession
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |
 40 |   package init(session: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:40:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |   private let session: URLSession
 39 |
 40 |   package init(session: URLSession = .shared) {
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     self.session = session
 42 |   }
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/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:40:39: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 38 |   private let session: URLSession
 39 |
 40 |   package init(session: URLSession = .shared) {
    |                                       `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 41 |     self.session = session
 42 |   }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:40:39: error: value of type '_' expected to be instance of class or class-constrained type
 38 |   private let session: URLSession
 39 |
 40 |   package init(session: URLSession = .shared) {
    |                                       `- error: value of type '_' expected to be instance of class or class-constrained type
 41 |     self.session = session
 42 |   }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:44:34: error: cannot find type 'URLRequest' in scope
 42 |   }
 43 |
 44 |   package func data(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                  `- error: cannot find type 'URLRequest' in scope
 45 |     let redirects = RedirectPolicy(origin: request.url)
 46 |     let (data, response) = try await session.data(for: request, delegate: redirects)
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:44:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |   }
 43 |
 44 |   package func data(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     let redirects = RedirectPolicy(origin: request.url)
 46 |     let (data, response) = try await session.data(for: request, delegate: redirects)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:52:18: error: cannot find type 'URLRequest' in scope
 50 |
 51 |   package func bytes(
 52 |     for request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
 53 |   ) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse) {
 54 |     // `bytes(for:)` returns once headers arrive, so the caller can check the
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:53:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |   package func bytes(
 52 |     for request: URLRequest
 53 |   ) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse) {
    |                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |     // `bytes(for:)` returns once headers arrive, so the caller can check the
 55 |     // status before draining the body. Re-yield the bytes through a stream of
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:38:15: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
 36 | /// `URLSession`-backed transport used in production.
 37 | package struct URLSessionTransport: HTTPTransport {
 38 |   private let session: URLSession
    |               `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
 39 |
 40 |   package init(session: URLSession = .shared) {
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:85:39: error: cannot find type 'URLSessionTaskDelegate' in scope
 83 | /// response itself, which callers would otherwise take for a success, so the
 84 | /// refusal is recorded and ``checkRefused()`` turns it into an error.
 85 | final class RedirectPolicy: NSObject, URLSessionTaskDelegate, Sendable {
    |                                       `- error: cannot find type 'URLSessionTaskDelegate' in scope
 86 |   /// Nil when the request had no usable URL, in which case nothing is
 87 |   /// followed.
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:114:25: error: cannot find type 'URLRequest' in scope
112 |     task: URLSessionTask,
113 |     willPerformHTTPRedirection response: HTTPURLResponse,
114 |     newRequest request: URLRequest,
    |                         `- error: cannot find type 'URLRequest' in scope
115 |     completionHandler: @escaping @Sendable (URLRequest?) -> Void
116 |   ) {
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:115:45: error: cannot find type 'URLRequest' in scope
113 |     willPerformHTTPRedirection response: HTTPURLResponse,
114 |     newRequest request: URLRequest,
115 |     completionHandler: @escaping @Sendable (URLRequest?) -> Void
    |                                             `- error: cannot find type 'URLRequest' in scope
116 |   ) {
117 |     if let target = request.url, allowsRedirect(to: target) {
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:111:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 |
110 |   func urlSession(
111 |     _ session: URLSession,
    |                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 |     task: URLSessionTask,
113 |     willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:112:11: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |   func urlSession(
111 |     _ session: URLSession,
112 |     task: URLSessionTask,
    |           `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |     willPerformHTTPRedirection response: HTTPURLResponse,
114 |     newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:113:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |     _ session: URLSession,
112 |     task: URLSessionTask,
113 |     willPerformHTTPRedirection response: HTTPURLResponse,
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |     newRequest request: URLRequest,
115 |     completionHandler: @escaping @Sendable (URLRequest?) -> Void
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:46:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 44 |   package func data(for request: URLRequest) async throws -> (Data, URLResponse) {
 45 |     let redirects = RedirectPolicy(origin: request.url)
 46 |     let (data, response) = try await session.data(for: request, delegate: redirects)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 47 |     try redirects.checkRefused()
 48 |     return (data, response)
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:58:52: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 56 |     // the transport's vocabulary type.
 57 |     let redirects = RedirectPolicy(origin: request.url)
 58 |     let (asyncBytes, response) = try await session.bytes(for: request, delegate: redirects)
    |                                                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 59 |     // Redirects are decided before the response headers are delivered, so a
 60 |     // refusal is already recorded by the time `bytes(for:)` returns.
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:120:25: error: 'nil' requires a contextual type
118 |       completionHandler(request)
119 |     } else {
120 |       completionHandler(nil)
    |                         `- error: 'nil' requires a contextual type
121 |     }
122 |   }
[23/26] Compiling ClaudeAPI HTTPTransport.swift
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:12:26: error: cannot find type 'URLRequest' in scope
 10 | /// one — `AsyncBytes` can only be vended by a live `URLSession`.
 11 | package protocol HTTPTransport: Sendable {
 12 |   func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                          `- error: cannot find type 'URLRequest' in scope
 13 |   func bytes(
 14 |     for request: URLRequest
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:12:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 | /// one — `AsyncBytes` can only be vended by a live `URLSession`.
 11 | package protocol HTTPTransport: Sendable {
 12 |   func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |   func bytes(
 14 |     for request: URLRequest
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:14:18: error: cannot find type 'URLRequest' in scope
 12 |   func data(for request: URLRequest) async throws -> (Data, URLResponse)
 13 |   func bytes(
 14 |     for request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
 15 |   ) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
 16 | }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:15:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |   func bytes(
 14 |     for request: URLRequest
 15 |   ) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
    |                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 | }
 17 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:38:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 | /// `URLSession`-backed transport used in production.
 37 | package struct URLSessionTransport: HTTPTransport {
 38 |   private let session: URLSession
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |
 40 |   package init(session: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:40:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |   private let session: URLSession
 39 |
 40 |   package init(session: URLSession = .shared) {
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     self.session = session
 42 |   }
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/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:40:39: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 38 |   private let session: URLSession
 39 |
 40 |   package init(session: URLSession = .shared) {
    |                                       `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 41 |     self.session = session
 42 |   }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:40:39: error: value of type '_' expected to be instance of class or class-constrained type
 38 |   private let session: URLSession
 39 |
 40 |   package init(session: URLSession = .shared) {
    |                                       `- error: value of type '_' expected to be instance of class or class-constrained type
 41 |     self.session = session
 42 |   }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:44:34: error: cannot find type 'URLRequest' in scope
 42 |   }
 43 |
 44 |   package func data(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                  `- error: cannot find type 'URLRequest' in scope
 45 |     let redirects = RedirectPolicy(origin: request.url)
 46 |     let (data, response) = try await session.data(for: request, delegate: redirects)
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:44:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |   }
 43 |
 44 |   package func data(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     let redirects = RedirectPolicy(origin: request.url)
 46 |     let (data, response) = try await session.data(for: request, delegate: redirects)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:52:18: error: cannot find type 'URLRequest' in scope
 50 |
 51 |   package func bytes(
 52 |     for request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
 53 |   ) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse) {
 54 |     // `bytes(for:)` returns once headers arrive, so the caller can check the
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:53:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |   package func bytes(
 52 |     for request: URLRequest
 53 |   ) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse) {
    |                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |     // `bytes(for:)` returns once headers arrive, so the caller can check the
 55 |     // status before draining the body. Re-yield the bytes through a stream of
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:38:15: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
 36 | /// `URLSession`-backed transport used in production.
 37 | package struct URLSessionTransport: HTTPTransport {
 38 |   private let session: URLSession
    |               `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
 39 |
 40 |   package init(session: URLSession = .shared) {
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:85:39: error: cannot find type 'URLSessionTaskDelegate' in scope
 83 | /// response itself, which callers would otherwise take for a success, so the
 84 | /// refusal is recorded and ``checkRefused()`` turns it into an error.
 85 | final class RedirectPolicy: NSObject, URLSessionTaskDelegate, Sendable {
    |                                       `- error: cannot find type 'URLSessionTaskDelegate' in scope
 86 |   /// Nil when the request had no usable URL, in which case nothing is
 87 |   /// followed.
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:114:25: error: cannot find type 'URLRequest' in scope
112 |     task: URLSessionTask,
113 |     willPerformHTTPRedirection response: HTTPURLResponse,
114 |     newRequest request: URLRequest,
    |                         `- error: cannot find type 'URLRequest' in scope
115 |     completionHandler: @escaping @Sendable (URLRequest?) -> Void
116 |   ) {
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:115:45: error: cannot find type 'URLRequest' in scope
113 |     willPerformHTTPRedirection response: HTTPURLResponse,
114 |     newRequest request: URLRequest,
115 |     completionHandler: @escaping @Sendable (URLRequest?) -> Void
    |                                             `- error: cannot find type 'URLRequest' in scope
116 |   ) {
117 |     if let target = request.url, allowsRedirect(to: target) {
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:111:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 |
110 |   func urlSession(
111 |     _ session: URLSession,
    |                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 |     task: URLSessionTask,
113 |     willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:112:11: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |   func urlSession(
111 |     _ session: URLSession,
112 |     task: URLSessionTask,
    |           `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |     willPerformHTTPRedirection response: HTTPURLResponse,
114 |     newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:113:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |     _ session: URLSession,
112 |     task: URLSessionTask,
113 |     willPerformHTTPRedirection response: HTTPURLResponse,
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |     newRequest request: URLRequest,
115 |     completionHandler: @escaping @Sendable (URLRequest?) -> Void
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:46:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 44 |   package func data(for request: URLRequest) async throws -> (Data, URLResponse) {
 45 |     let redirects = RedirectPolicy(origin: request.url)
 46 |     let (data, response) = try await session.data(for: request, delegate: redirects)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 47 |     try redirects.checkRefused()
 48 |     return (data, response)
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:58:52: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 56 |     // the transport's vocabulary type.
 57 |     let redirects = RedirectPolicy(origin: request.url)
 58 |     let (asyncBytes, response) = try await session.bytes(for: request, delegate: redirects)
    |                                                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 59 |     // Redirects are decided before the response headers are delivered, so a
 60 |     // refusal is already recorded by the time `bytes(for:)` returns.
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:120:25: error: 'nil' requires a contextual type
118 |       completionHandler(request)
119 |     } else {
120 |       completionHandler(nil)
    |                         `- error: 'nil' requires a contextual type
121 |     }
122 |   }
[24/26] Compiling ClaudeAPI APIError.swift
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:12:55: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |
 11 |   /// Production initializer — talks to the API over `URLSession`.
 12 |   package init(configuration: Configuration, session: URLSession = .shared) {
    |                                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     self.init(configuration: configuration, transport: URLSessionTransport(session: session))
 14 |   }
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/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:12:69: error: value of type '_' expected to be instance of class or class-constrained type
 10 |
 11 |   /// Production initializer — talks to the API over `URLSession`.
 12 |   package init(configuration: Configuration, session: URLSession = .shared) {
    |                                                                     `- error: value of type '_' expected to be instance of class or class-constrained type
 13 |     self.init(configuration: configuration, transport: URLSessionTransport(session: session))
 14 |   }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:12:69: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 |
 11 |   /// Production initializer — talks to the API over `URLSession`.
 12 |   package init(configuration: Configuration, session: URLSession = .shared) {
    |                                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 13 |     self.init(configuration: configuration, transport: URLSessionTransport(session: session))
 14 |   }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:104:15: error: cannot find type 'URLRequest' in scope
102 |     for body: MessagesRequest,
103 |     headers: [String: String]
104 |   ) throws -> URLRequest {
    |               `- error: cannot find type 'URLRequest' in scope
105 |     var req = URLRequest(url: configuration.baseURL.appending(path: "v1/messages"))
106 |     req.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:125:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |   }
124 |
125 |   private static func check(_ response: URLResponse, body: Data) throws {
    |                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 |     guard let http = response as? HTTPURLResponse else { return }
127 |     guard http.statusCode >= 400 else { return }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:12:26: error: cannot find type 'URLRequest' in scope
 10 | /// one — `AsyncBytes` can only be vended by a live `URLSession`.
 11 | package protocol HTTPTransport: Sendable {
 12 |   func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                          `- error: cannot find type 'URLRequest' in scope
 13 |   func bytes(
 14 |     for request: URLRequest
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:14:18: error: cannot find type 'URLRequest' in scope
 12 |   func data(for request: URLRequest) async throws -> (Data, URLResponse)
 13 |   func bytes(
 14 |     for request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
 15 |   ) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
 16 | }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:105:15: error: cannot find 'URLRequest' in scope
103 |     headers: [String: String]
104 |   ) throws -> URLRequest {
105 |     var req = URLRequest(url: configuration.baseURL.appending(path: "v1/messages"))
    |               `- error: cannot find 'URLRequest' in scope
106 |     req.httpMethod = "POST"
107 |     req.setValue("application/json", forHTTPHeaderField: "content-type")
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:126:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |
125 |   private static func check(_ response: URLResponse, body: Data) throws {
126 |     guard let http = response as? HTTPURLResponse else { return }
    |                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 |     guard http.statusCode >= 400 else { return }
128 |     if let envelope = try? JSONDecoder().decode(APIErrorEnvelope.self, from: body) {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:127:16: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
125 |   private static func check(_ response: URLResponse, body: Data) throws {
126 |     guard let http = response as? HTTPURLResponse else { return }
127 |     guard http.statusCode >= 400 else { return }
    |                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 |     if let envelope = try? JSONDecoder().decode(APIErrorEnvelope.self, from: body) {
129 |       var err = envelope.error
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:132:17: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
130 |       err.requestID =
131 |         envelope.requestID
132 |         ?? http.value(forHTTPHeaderField: "request-id")
    |                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
133 |       throw err
134 |     }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:145:19: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
143 |     // with non-JSON bodies.
144 |     let kind: APIError.Kind =
145 |       switch http.statusCode {
    |                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
146 |       case 401: .authentication
147 |       case 403: .permission
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:156:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
154 |     throw APIError(
155 |       kind: kind,
156 |       message: "HTTP \(http.statusCode): \(excerpt)",
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
157 |       requestID: http.value(forHTTPHeaderField: "request-id")
158 |     )
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:157:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
155 |       kind: kind,
156 |       message: "HTTP \(http.statusCode): \(excerpt)",
157 |       requestID: http.value(forHTTPHeaderField: "request-id")
    |                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
158 |     )
159 |   }
[25/26] Compiling ClaudeAPI ClaudeClient.swift
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:12:55: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |
 11 |   /// Production initializer — talks to the API over `URLSession`.
 12 |   package init(configuration: Configuration, session: URLSession = .shared) {
    |                                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     self.init(configuration: configuration, transport: URLSessionTransport(session: session))
 14 |   }
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/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:12:69: error: value of type '_' expected to be instance of class or class-constrained type
 10 |
 11 |   /// Production initializer — talks to the API over `URLSession`.
 12 |   package init(configuration: Configuration, session: URLSession = .shared) {
    |                                                                     `- error: value of type '_' expected to be instance of class or class-constrained type
 13 |     self.init(configuration: configuration, transport: URLSessionTransport(session: session))
 14 |   }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:12:69: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 |
 11 |   /// Production initializer — talks to the API over `URLSession`.
 12 |   package init(configuration: Configuration, session: URLSession = .shared) {
    |                                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 13 |     self.init(configuration: configuration, transport: URLSessionTransport(session: session))
 14 |   }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:104:15: error: cannot find type 'URLRequest' in scope
102 |     for body: MessagesRequest,
103 |     headers: [String: String]
104 |   ) throws -> URLRequest {
    |               `- error: cannot find type 'URLRequest' in scope
105 |     var req = URLRequest(url: configuration.baseURL.appending(path: "v1/messages"))
106 |     req.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:125:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |   }
124 |
125 |   private static func check(_ response: URLResponse, body: Data) throws {
    |                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 |     guard let http = response as? HTTPURLResponse else { return }
127 |     guard http.statusCode >= 400 else { return }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:12:26: error: cannot find type 'URLRequest' in scope
 10 | /// one — `AsyncBytes` can only be vended by a live `URLSession`.
 11 | package protocol HTTPTransport: Sendable {
 12 |   func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                          `- error: cannot find type 'URLRequest' in scope
 13 |   func bytes(
 14 |     for request: URLRequest
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:14:18: error: cannot find type 'URLRequest' in scope
 12 |   func data(for request: URLRequest) async throws -> (Data, URLResponse)
 13 |   func bytes(
 14 |     for request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
 15 |   ) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
 16 | }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:105:15: error: cannot find 'URLRequest' in scope
103 |     headers: [String: String]
104 |   ) throws -> URLRequest {
105 |     var req = URLRequest(url: configuration.baseURL.appending(path: "v1/messages"))
    |               `- error: cannot find 'URLRequest' in scope
106 |     req.httpMethod = "POST"
107 |     req.setValue("application/json", forHTTPHeaderField: "content-type")
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:126:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |
125 |   private static func check(_ response: URLResponse, body: Data) throws {
126 |     guard let http = response as? HTTPURLResponse else { return }
    |                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 |     guard http.statusCode >= 400 else { return }
128 |     if let envelope = try? JSONDecoder().decode(APIErrorEnvelope.self, from: body) {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:127:16: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
125 |   private static func check(_ response: URLResponse, body: Data) throws {
126 |     guard let http = response as? HTTPURLResponse else { return }
127 |     guard http.statusCode >= 400 else { return }
    |                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 |     if let envelope = try? JSONDecoder().decode(APIErrorEnvelope.self, from: body) {
129 |       var err = envelope.error
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:132:17: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
130 |       err.requestID =
131 |         envelope.requestID
132 |         ?? http.value(forHTTPHeaderField: "request-id")
    |                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
133 |       throw err
134 |     }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:145:19: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
143 |     // with non-JSON bodies.
144 |     let kind: APIError.Kind =
145 |       switch http.statusCode {
    |                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
146 |       case 401: .authentication
147 |       case 403: .permission
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:156:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
154 |     throw APIError(
155 |       kind: kind,
156 |       message: "HTTP \(http.statusCode): \(excerpt)",
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
157 |       requestID: http.value(forHTTPHeaderField: "request-id")
158 |     )
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:157:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
155 |       kind: kind,
156 |       message: "HTTP \(http.statusCode): \(excerpt)",
157 |       requestID: http.value(forHTTPHeaderField: "request-id")
    |                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
158 |     )
159 |   }
[26/26] Compiling ClaudeAPI Configuration.swift
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:12:55: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |
 11 |   /// Production initializer — talks to the API over `URLSession`.
 12 |   package init(configuration: Configuration, session: URLSession = .shared) {
    |                                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     self.init(configuration: configuration, transport: URLSessionTransport(session: session))
 14 |   }
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/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:12:69: error: value of type '_' expected to be instance of class or class-constrained type
 10 |
 11 |   /// Production initializer — talks to the API over `URLSession`.
 12 |   package init(configuration: Configuration, session: URLSession = .shared) {
    |                                                                     `- error: value of type '_' expected to be instance of class or class-constrained type
 13 |     self.init(configuration: configuration, transport: URLSessionTransport(session: session))
 14 |   }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:12:69: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 |
 11 |   /// Production initializer — talks to the API over `URLSession`.
 12 |   package init(configuration: Configuration, session: URLSession = .shared) {
    |                                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 13 |     self.init(configuration: configuration, transport: URLSessionTransport(session: session))
 14 |   }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:104:15: error: cannot find type 'URLRequest' in scope
102 |     for body: MessagesRequest,
103 |     headers: [String: String]
104 |   ) throws -> URLRequest {
    |               `- error: cannot find type 'URLRequest' in scope
105 |     var req = URLRequest(url: configuration.baseURL.appending(path: "v1/messages"))
106 |     req.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:125:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |   }
124 |
125 |   private static func check(_ response: URLResponse, body: Data) throws {
    |                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 |     guard let http = response as? HTTPURLResponse else { return }
127 |     guard http.statusCode >= 400 else { return }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:12:26: error: cannot find type 'URLRequest' in scope
 10 | /// one — `AsyncBytes` can only be vended by a live `URLSession`.
 11 | package protocol HTTPTransport: Sendable {
 12 |   func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                          `- error: cannot find type 'URLRequest' in scope
 13 |   func bytes(
 14 |     for request: URLRequest
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/HTTPTransport.swift:14:18: error: cannot find type 'URLRequest' in scope
 12 |   func data(for request: URLRequest) async throws -> (Data, URLResponse)
 13 |   func bytes(
 14 |     for request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
 15 |   ) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse)
 16 | }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:105:15: error: cannot find 'URLRequest' in scope
103 |     headers: [String: String]
104 |   ) throws -> URLRequest {
105 |     var req = URLRequest(url: configuration.baseURL.appending(path: "v1/messages"))
    |               `- error: cannot find 'URLRequest' in scope
106 |     req.httpMethod = "POST"
107 |     req.setValue("application/json", forHTTPHeaderField: "content-type")
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:126:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |
125 |   private static func check(_ response: URLResponse, body: Data) throws {
126 |     guard let http = response as? HTTPURLResponse else { return }
    |                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 |     guard http.statusCode >= 400 else { return }
128 |     if let envelope = try? JSONDecoder().decode(APIErrorEnvelope.self, from: body) {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:127:16: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
125 |   private static func check(_ response: URLResponse, body: Data) throws {
126 |     guard let http = response as? HTTPURLResponse else { return }
127 |     guard http.statusCode >= 400 else { return }
    |                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 |     if let envelope = try? JSONDecoder().decode(APIErrorEnvelope.self, from: body) {
129 |       var err = envelope.error
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:132:17: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
130 |       err.requestID =
131 |         envelope.requestID
132 |         ?? http.value(forHTTPHeaderField: "request-id")
    |                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
133 |       throw err
134 |     }
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:145:19: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
143 |     // with non-JSON bodies.
144 |     let kind: APIError.Kind =
145 |       switch http.statusCode {
    |                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
146 |       case 401: .authentication
147 |       case 403: .permission
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:156:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
154 |     throw APIError(
155 |       kind: kind,
156 |       message: "HTTP \(http.statusCode): \(excerpt)",
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
157 |       requestID: http.value(forHTTPHeaderField: "request-id")
158 |     )
/host/spi-builder-workspace/.build/checkouts/ClaudeForFoundationModels/Sources/ClaudeAPI/ClaudeClient.swift:157:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
155 |       kind: kind,
156 |       message: "HTTP \(http.statusCode): \(excerpt)",
157 |       requestID: http.value(forHTTPHeaderField: "request-id")
    |                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
158 |     )
159 |   }
BUILD FAILURE 6.2 linux