The Swift Package Index logo.Swift Package Index

Build Information

Failed to build VeloxQuant, reference main (0e2c1d), with Swift 6.1 for Wasm on 29 Sep 2026 23:56:52 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/rajveer43/veloxquant-swift.git
Reference: main
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/rajveer43/veloxquant-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 0e2c1d7 Add shields.io badges to README
Cloned https://github.com/rajveer43/veloxquant-swift.git
Revision (git rev-parse @):
0e2c1d763091efa7b29989ae0fb156e6fc07091f
SUCCESS checkout https://github.com/rajveer43/veloxquant-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/rajveer43/veloxquant-swift.git
https://github.com/rajveer43/veloxquant-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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 saguaro1/spi-images
Digest: sha256:beceeede496da67681f4fa220a6b97cc098a0178841a413735f598dc6bbaf4c8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/24] Emitting module VeloxQuantCore
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:17:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     ///   come back as a broken/partial response rather than a clean JSON error body).
16 |     /// - Non-404, non-2xx with a parseable `{"error": ...}` body → `.serverError`.
17 |     func validateResponse(_ data: Data, _ response: URLResponse) throws {
   |                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         guard let http = response as? HTTPURLResponse else {
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:44:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |     /// any bytes are consumed — a non-2xx streaming response never has a body worth decoding as
43 |     /// SSE frames.
44 |     func validateStreamingResponse(_ response: URLResponse) throws {
   |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |         guard let http = response as? HTTPURLResponse else {
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/URLSessionCompat.swift:54:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 52 | /// change); on Linux they resolve to a delegate-based shim (see `DataAccumulator` above). This
 53 | /// keeps every call site identical across platforms; only this one file differs.
 54 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 55 |     func vqData(for request: URLRequest) async throws -> (Data, URLResponse) {
 56 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:24:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     public let defaultModel: String?
23 |
24 |     let session: URLSession
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     let requestTimeout: TimeInterval
26 |     /// Where `chat()`/`chatStream()` push live inference metrics — see `monitor(interval:sampler:)`.
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/VeloxQuantCore/Client/VeloxQuantClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         baseURL: URL = URL(string: "http://127.0.0.1:8000")!,
31 |         defaultModel: String? = nil,
32 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |         requestTimeout: TimeInterval = 30
34 |     ) {
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/VeloxQuantCore/Client/VeloxQuantClient.swift:32:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 |         baseURL: URL = URL(string: "http://127.0.0.1:8000")!,
31 |         defaultModel: String? = nil,
32 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |         requestTimeout: TimeInterval = 30
34 |     ) {
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:41:72: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
   |                                                                        `- error: cannot find type 'URLRequest' in scope
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
43 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:24:9: warning: stored property 'session' of 'Sendable'-conforming class 'VeloxQuantClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
22 |     public let defaultModel: String?
23 |
24 |     let session: URLSession
   |         `- warning: stored property 'session' of 'Sendable'-conforming class 'VeloxQuantClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
25 |     let requestTimeout: TimeInterval
26 |     /// Where `chat()`/`chatStream()` push live inference metrics — see `monitor(interval:sampler:)`.
[4/26] Compiling VeloxQuantCore Chat.swift
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:41:72: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
   |                                                                        `- error: cannot find type 'URLRequest' in scope
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
43 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/Chat.swift:20:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
18 |         do {
19 |             let urlRequest = try makeRequest(for: nonStreamingRequest, path: "/v1/chat/completions")
20 |             let (data, response) = try await session.vqData(for: urlRequest)
   |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
21 |             try validateResponse(data, response)
22 |             let decoded = try JSONDecoder().decode(ChatResponse.self, from: data)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:17:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     ///   come back as a broken/partial response rather than a clean JSON error body).
16 |     /// - Non-404, non-2xx with a parseable `{"error": ...}` body → `.serverError`.
17 |     func validateResponse(_ data: Data, _ response: URLResponse) throws {
   |                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         guard let http = response as? HTTPURLResponse else {
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:44:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |     /// any bytes are consumed — a non-2xx streaming response never has a body worth decoding as
43 |     /// SSE frames.
44 |     func validateStreamingResponse(_ response: URLResponse) throws {
   |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |         guard let http = response as? HTTPURLResponse else {
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:18:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
16 |     /// - Non-404, non-2xx with a parseable `{"error": ...}` body → `.serverError`.
17 |     func validateResponse(_ data: Data, _ response: URLResponse) throws {
18 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:18:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     /// - Non-404, non-2xx with a parseable `{"error": ...}` body → `.serverError`.
17 |     func validateResponse(_ data: Data, _ response: URLResponse) throws {
18 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:21:20: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
21 |         guard http.statusCode != 200, http.statusCode != 204 else { return }
   |                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |
23 |         let rawBody = String(data: data, encoding: .utf8) ?? "<binary>"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:21:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
21 |         guard http.statusCode != 200, http.statusCode != 204 else { return }
   |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |
23 |         let rawBody = String(data: data, encoding: .utf8) ?? "<binary>"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:25:17: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
23 |         let rawBody = String(data: data, encoding: .utf8) ?? "<binary>"
24 |
25 |         if http.statusCode == 404 {
   |                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
26 |             if let errorBody = try? JSONDecoder().decode(ErrorBody.self, from: data) {
27 |                 throw VeloxQuantError.generationFailed(serverMessage: errorBody.error)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:30:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
28 |             }
29 |             if rawBody == "Not Found" {
30 |                 throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
   |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
31 |             }
32 |             throw VeloxQuantError.malformedErrorResponse(statusCode: 404, rawBody: rawBody)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:36:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 |
35 |         if let errorBody = try? JSONDecoder().decode(ErrorBody.self, from: data) {
36 |             throw VeloxQuantError.serverError(statusCode: http.statusCode, message: errorBody.error)
   |                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 |         }
38 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: rawBody)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:38:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
36 |             throw VeloxQuantError.serverError(statusCode: http.statusCode, message: errorBody.error)
37 |         }
38 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: rawBody)
   |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
39 |     }
40 |
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:45:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
43 |     /// SSE frames.
44 |     func validateStreamingResponse(_ response: URLResponse) throws {
45 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
47 |         }
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:45:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |     /// SSE frames.
44 |     func validateStreamingResponse(_ response: URLResponse) throws {
45 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
47 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:48:20: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
47 |         }
48 |         guard http.statusCode != 200 else { return }
   |                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |
50 |         if http.statusCode == 404 {
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:50:17: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
48 |         guard http.statusCode != 200 else { return }
49 |
50 |         if http.statusCode == 404 {
   |                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 |             throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
52 |         }
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:51:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
49 |
50 |         if http.statusCode == 404 {
51 |             throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
   |                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
52 |         }
53 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: "")
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:53:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 |             throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
52 |         }
53 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: "")
   |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
54 |     }
55 |
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/URLSessionCompat.swift:54:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 52 | /// change); on Linux they resolve to a delegate-based shim (see `DataAccumulator` above). This
 53 | /// keeps every call site identical across platforms; only this one file differs.
 54 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 55 |     func vqData(for request: URLRequest) async throws -> (Data, URLResponse) {
 56 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/URLSessionCompat.swift:55:30: error: cannot find type 'URLRequest' in scope
 53 | /// keeps every call site identical across platforms; only this one file differs.
 54 | extension URLSession {
 55 |     func vqData(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                              `- error: cannot find type 'URLRequest' in scope
 56 |         #if canImport(FoundationNetworking)
 57 |         try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/URLSessionCompat.swift:83:31: error: cannot find type 'URLRequest' in scope
 81 |     /// anyway, so Linux callers of `chatStream()` only lose incremental delivery, not
 82 |     /// correctness.
 83 |     func vqBytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse) {
    |                               `- error: cannot find type 'URLRequest' in scope
 84 |         #if canImport(FoundationNetworking)
 85 |         let (data, response) = try await vqData(for: request)
[5/26] Compiling VeloxQuantCore ResponseValidation.swift
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:41:72: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
   |                                                                        `- error: cannot find type 'URLRequest' in scope
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
43 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/Chat.swift:20:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
18 |         do {
19 |             let urlRequest = try makeRequest(for: nonStreamingRequest, path: "/v1/chat/completions")
20 |             let (data, response) = try await session.vqData(for: urlRequest)
   |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
21 |             try validateResponse(data, response)
22 |             let decoded = try JSONDecoder().decode(ChatResponse.self, from: data)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:17:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     ///   come back as a broken/partial response rather than a clean JSON error body).
16 |     /// - Non-404, non-2xx with a parseable `{"error": ...}` body → `.serverError`.
17 |     func validateResponse(_ data: Data, _ response: URLResponse) throws {
   |                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         guard let http = response as? HTTPURLResponse else {
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:44:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |     /// any bytes are consumed — a non-2xx streaming response never has a body worth decoding as
43 |     /// SSE frames.
44 |     func validateStreamingResponse(_ response: URLResponse) throws {
   |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |         guard let http = response as? HTTPURLResponse else {
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:18:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
16 |     /// - Non-404, non-2xx with a parseable `{"error": ...}` body → `.serverError`.
17 |     func validateResponse(_ data: Data, _ response: URLResponse) throws {
18 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:18:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     /// - Non-404, non-2xx with a parseable `{"error": ...}` body → `.serverError`.
17 |     func validateResponse(_ data: Data, _ response: URLResponse) throws {
18 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:21:20: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
21 |         guard http.statusCode != 200, http.statusCode != 204 else { return }
   |                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |
23 |         let rawBody = String(data: data, encoding: .utf8) ?? "<binary>"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:21:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
21 |         guard http.statusCode != 200, http.statusCode != 204 else { return }
   |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |
23 |         let rawBody = String(data: data, encoding: .utf8) ?? "<binary>"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:25:17: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
23 |         let rawBody = String(data: data, encoding: .utf8) ?? "<binary>"
24 |
25 |         if http.statusCode == 404 {
   |                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
26 |             if let errorBody = try? JSONDecoder().decode(ErrorBody.self, from: data) {
27 |                 throw VeloxQuantError.generationFailed(serverMessage: errorBody.error)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:30:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
28 |             }
29 |             if rawBody == "Not Found" {
30 |                 throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
   |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
31 |             }
32 |             throw VeloxQuantError.malformedErrorResponse(statusCode: 404, rawBody: rawBody)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:36:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 |
35 |         if let errorBody = try? JSONDecoder().decode(ErrorBody.self, from: data) {
36 |             throw VeloxQuantError.serverError(statusCode: http.statusCode, message: errorBody.error)
   |                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 |         }
38 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: rawBody)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:38:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
36 |             throw VeloxQuantError.serverError(statusCode: http.statusCode, message: errorBody.error)
37 |         }
38 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: rawBody)
   |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
39 |     }
40 |
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:45:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
43 |     /// SSE frames.
44 |     func validateStreamingResponse(_ response: URLResponse) throws {
45 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
47 |         }
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:45:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |     /// SSE frames.
44 |     func validateStreamingResponse(_ response: URLResponse) throws {
45 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
47 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:48:20: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
47 |         }
48 |         guard http.statusCode != 200 else { return }
   |                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |
50 |         if http.statusCode == 404 {
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:50:17: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
48 |         guard http.statusCode != 200 else { return }
49 |
50 |         if http.statusCode == 404 {
   |                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 |             throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
52 |         }
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:51:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
49 |
50 |         if http.statusCode == 404 {
51 |             throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
   |                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
52 |         }
53 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: "")
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:53:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 |             throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
52 |         }
53 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: "")
   |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
54 |     }
55 |
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/URLSessionCompat.swift:54:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 52 | /// change); on Linux they resolve to a delegate-based shim (see `DataAccumulator` above). This
 53 | /// keeps every call site identical across platforms; only this one file differs.
 54 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 55 |     func vqData(for request: URLRequest) async throws -> (Data, URLResponse) {
 56 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/URLSessionCompat.swift:55:30: error: cannot find type 'URLRequest' in scope
 53 | /// keeps every call site identical across platforms; only this one file differs.
 54 | extension URLSession {
 55 |     func vqData(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                              `- error: cannot find type 'URLRequest' in scope
 56 |         #if canImport(FoundationNetworking)
 57 |         try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/URLSessionCompat.swift:83:31: error: cannot find type 'URLRequest' in scope
 81 |     /// anyway, so Linux callers of `chatStream()` only lose incremental delivery, not
 82 |     /// correctness.
 83 |     func vqBytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse) {
    |                               `- error: cannot find type 'URLRequest' in scope
 84 |         #if canImport(FoundationNetworking)
 85 |         let (data, response) = try await vqData(for: request)
[6/26] Compiling VeloxQuantCore URLSessionCompat.swift
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:41:72: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
   |                                                                        `- error: cannot find type 'URLRequest' in scope
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
43 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/Chat.swift:20:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
18 |         do {
19 |             let urlRequest = try makeRequest(for: nonStreamingRequest, path: "/v1/chat/completions")
20 |             let (data, response) = try await session.vqData(for: urlRequest)
   |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
21 |             try validateResponse(data, response)
22 |             let decoded = try JSONDecoder().decode(ChatResponse.self, from: data)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:17:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     ///   come back as a broken/partial response rather than a clean JSON error body).
16 |     /// - Non-404, non-2xx with a parseable `{"error": ...}` body → `.serverError`.
17 |     func validateResponse(_ data: Data, _ response: URLResponse) throws {
   |                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         guard let http = response as? HTTPURLResponse else {
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:44:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |     /// any bytes are consumed — a non-2xx streaming response never has a body worth decoding as
43 |     /// SSE frames.
44 |     func validateStreamingResponse(_ response: URLResponse) throws {
   |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |         guard let http = response as? HTTPURLResponse else {
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:18:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
16 |     /// - Non-404, non-2xx with a parseable `{"error": ...}` body → `.serverError`.
17 |     func validateResponse(_ data: Data, _ response: URLResponse) throws {
18 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:18:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     /// - Non-404, non-2xx with a parseable `{"error": ...}` body → `.serverError`.
17 |     func validateResponse(_ data: Data, _ response: URLResponse) throws {
18 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:21:20: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
21 |         guard http.statusCode != 200, http.statusCode != 204 else { return }
   |                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |
23 |         let rawBody = String(data: data, encoding: .utf8) ?? "<binary>"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:21:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
21 |         guard http.statusCode != 200, http.statusCode != 204 else { return }
   |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |
23 |         let rawBody = String(data: data, encoding: .utf8) ?? "<binary>"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:25:17: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
23 |         let rawBody = String(data: data, encoding: .utf8) ?? "<binary>"
24 |
25 |         if http.statusCode == 404 {
   |                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
26 |             if let errorBody = try? JSONDecoder().decode(ErrorBody.self, from: data) {
27 |                 throw VeloxQuantError.generationFailed(serverMessage: errorBody.error)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:30:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
28 |             }
29 |             if rawBody == "Not Found" {
30 |                 throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
   |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
31 |             }
32 |             throw VeloxQuantError.malformedErrorResponse(statusCode: 404, rawBody: rawBody)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:36:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 |
35 |         if let errorBody = try? JSONDecoder().decode(ErrorBody.self, from: data) {
36 |             throw VeloxQuantError.serverError(statusCode: http.statusCode, message: errorBody.error)
   |                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 |         }
38 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: rawBody)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:38:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
36 |             throw VeloxQuantError.serverError(statusCode: http.statusCode, message: errorBody.error)
37 |         }
38 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: rawBody)
   |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
39 |     }
40 |
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:45:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
43 |     /// SSE frames.
44 |     func validateStreamingResponse(_ response: URLResponse) throws {
45 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
47 |         }
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:45:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |     /// SSE frames.
44 |     func validateStreamingResponse(_ response: URLResponse) throws {
45 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
47 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:48:20: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
47 |         }
48 |         guard http.statusCode != 200 else { return }
   |                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |
50 |         if http.statusCode == 404 {
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:50:17: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
48 |         guard http.statusCode != 200 else { return }
49 |
50 |         if http.statusCode == 404 {
   |                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 |             throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
52 |         }
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:51:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
49 |
50 |         if http.statusCode == 404 {
51 |             throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
   |                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
52 |         }
53 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: "")
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:53:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 |             throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
52 |         }
53 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: "")
   |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
54 |     }
55 |
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/URLSessionCompat.swift:54:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 52 | /// change); on Linux they resolve to a delegate-based shim (see `DataAccumulator` above). This
 53 | /// keeps every call site identical across platforms; only this one file differs.
 54 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 55 |     func vqData(for request: URLRequest) async throws -> (Data, URLResponse) {
 56 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/URLSessionCompat.swift:55:30: error: cannot find type 'URLRequest' in scope
 53 | /// keeps every call site identical across platforms; only this one file differs.
 54 | extension URLSession {
 55 |     func vqData(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                              `- error: cannot find type 'URLRequest' in scope
 56 |         #if canImport(FoundationNetworking)
 57 |         try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/URLSessionCompat.swift:83:31: error: cannot find type 'URLRequest' in scope
 81 |     /// anyway, so Linux callers of `chatStream()` only lose incremental delivery, not
 82 |     /// correctness.
 83 |     func vqBytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse) {
    |                               `- error: cannot find type 'URLRequest' in scope
 84 |         #if canImport(FoundationNetworking)
 85 |         let (data, response) = try await vqData(for: request)
[7/26] Compiling VeloxQuantCore ChatResponse.swift
[8/26] Compiling VeloxQuantCore ErrorBody.swift
[9/26] Compiling VeloxQuantCore JSONValue.swift
[10/26] Compiling VeloxQuantCore Monitor.swift
/host/spi-builder-workspace/Sources/VeloxQuantCore/Streaming/AsyncByteLines.swift:13:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
11 |     var vqLines: AsyncThrowingStream<String, Error> {
12 |         AsyncThrowingStream { continuation in
13 |             let task = Task {
   |                             `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
14 |                 var buffer: [UInt8] = []
15 |                 do {
16 |                     for try await byte in self {
   |                                           `- note: closure captures 'self' which is accessible to code in the current task
17 |                         if byte == UInt8(ascii: "\n") {
18 |                             if buffer.last == UInt8(ascii: "\r") {
[11/26] Compiling VeloxQuantCore AsyncByteLines.swift
/host/spi-builder-workspace/Sources/VeloxQuantCore/Streaming/AsyncByteLines.swift:13:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
11 |     var vqLines: AsyncThrowingStream<String, Error> {
12 |         AsyncThrowingStream { continuation in
13 |             let task = Task {
   |                             `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
14 |                 var buffer: [UInt8] = []
15 |                 do {
16 |                     for try await byte in self {
   |                                           `- note: closure captures 'self' which is accessible to code in the current task
17 |                         if byte == UInt8(ascii: "\n") {
18 |                             if buffer.last == UInt8(ascii: "\r") {
[12/26] Compiling VeloxQuantCore ChatChunk.swift
/host/spi-builder-workspace/Sources/VeloxQuantCore/Streaming/AsyncByteLines.swift:13:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
11 |     var vqLines: AsyncThrowingStream<String, Error> {
12 |         AsyncThrowingStream { continuation in
13 |             let task = Task {
   |                             `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
14 |                 var buffer: [UInt8] = []
15 |                 do {
16 |                     for try await byte in self {
   |                                           `- note: closure captures 'self' which is accessible to code in the current task
17 |                         if byte == UInt8(ascii: "\n") {
18 |                             if buffer.last == UInt8(ascii: "\r") {
[13/26] Compiling VeloxQuantCore OfflineOptimizer.swift
[14/26] Compiling VeloxQuantCore Precision.swift
[15/26] Compiling VeloxQuantCore ChatRequest.swift
[16/26] Compiling VeloxQuantCore ChatStream.swift
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:41:72: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
   |                                                                        `- error: cannot find type 'URLRequest' in scope
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
43 |         request.httpMethod = "POST"
[17/26] Compiling VeloxQuantCore ChatStructured.swift
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:41:72: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
   |                                                                        `- error: cannot find type 'URLRequest' in scope
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
43 |         request.httpMethod = "POST"
[18/26] Compiling VeloxQuantCore VeloxQuantClient.swift
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:24:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     public let defaultModel: String?
23 |
24 |     let session: URLSession
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     let requestTimeout: TimeInterval
26 |     /// Where `chat()`/`chatStream()` push live inference metrics — see `monitor(interval:sampler:)`.
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/VeloxQuantCore/Client/VeloxQuantClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         baseURL: URL = URL(string: "http://127.0.0.1:8000")!,
31 |         defaultModel: String? = nil,
32 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |         requestTimeout: TimeInterval = 30
34 |     ) {
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/VeloxQuantCore/Client/VeloxQuantClient.swift:32:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 |         baseURL: URL = URL(string: "http://127.0.0.1:8000")!,
31 |         defaultModel: String? = nil,
32 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |         requestTimeout: TimeInterval = 30
34 |     ) {
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:41:72: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
   |                                                                        `- error: cannot find type 'URLRequest' in scope
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
43 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:24:9: warning: stored property 'session' of 'Sendable'-conforming class 'VeloxQuantClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
22 |     public let defaultModel: String?
23 |
24 |     let session: URLSession
   |         `- warning: stored property 'session' of 'Sendable'-conforming class 'VeloxQuantClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
25 |     let requestTimeout: TimeInterval
26 |     /// Where `chat()`/`chatStream()` push live inference metrics — see `monitor(interval:sampler:)`.
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:42:23: error: cannot find 'URLRequest' in scope
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
   |                       `- error: cannot find 'URLRequest' in scope
43 |         request.httpMethod = "POST"
44 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/VeloxQuantCore/Embeddings/Embeddings.swift:129:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
127 |         do {
128 |             let urlRequest = try makeRequest(for: wireRequest, path: "/v1/embeddings")
129 |             let (data, response) = try await session.vqData(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
130 |             try validateResponse(data, response)
131 |             return try JSONDecoder().decode(EmbedResponse.self, from: data)
[19/26] Compiling VeloxQuantCore Conversation.swift
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:24:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     public let defaultModel: String?
23 |
24 |     let session: URLSession
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     let requestTimeout: TimeInterval
26 |     /// Where `chat()`/`chatStream()` push live inference metrics — see `monitor(interval:sampler:)`.
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/VeloxQuantCore/Client/VeloxQuantClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         baseURL: URL = URL(string: "http://127.0.0.1:8000")!,
31 |         defaultModel: String? = nil,
32 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |         requestTimeout: TimeInterval = 30
34 |     ) {
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/VeloxQuantCore/Client/VeloxQuantClient.swift:32:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 |         baseURL: URL = URL(string: "http://127.0.0.1:8000")!,
31 |         defaultModel: String? = nil,
32 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |         requestTimeout: TimeInterval = 30
34 |     ) {
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:41:72: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
   |                                                                        `- error: cannot find type 'URLRequest' in scope
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
43 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:24:9: warning: stored property 'session' of 'Sendable'-conforming class 'VeloxQuantClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
22 |     public let defaultModel: String?
23 |
24 |     let session: URLSession
   |         `- warning: stored property 'session' of 'Sendable'-conforming class 'VeloxQuantClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
25 |     let requestTimeout: TimeInterval
26 |     /// Where `chat()`/`chatStream()` push live inference metrics — see `monitor(interval:sampler:)`.
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:42:23: error: cannot find 'URLRequest' in scope
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
   |                       `- error: cannot find 'URLRequest' in scope
43 |         request.httpMethod = "POST"
44 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/VeloxQuantCore/Embeddings/Embeddings.swift:129:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
127 |         do {
128 |             let urlRequest = try makeRequest(for: wireRequest, path: "/v1/embeddings")
129 |             let (data, response) = try await session.vqData(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
130 |             try validateResponse(data, response)
131 |             return try JSONDecoder().decode(EmbedResponse.self, from: data)
[20/26] Compiling VeloxQuantCore Embeddings.swift
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:24:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     public let defaultModel: String?
23 |
24 |     let session: URLSession
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     let requestTimeout: TimeInterval
26 |     /// Where `chat()`/`chatStream()` push live inference metrics — see `monitor(interval:sampler:)`.
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/VeloxQuantCore/Client/VeloxQuantClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         baseURL: URL = URL(string: "http://127.0.0.1:8000")!,
31 |         defaultModel: String? = nil,
32 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |         requestTimeout: TimeInterval = 30
34 |     ) {
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/VeloxQuantCore/Client/VeloxQuantClient.swift:32:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 |         baseURL: URL = URL(string: "http://127.0.0.1:8000")!,
31 |         defaultModel: String? = nil,
32 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |         requestTimeout: TimeInterval = 30
34 |     ) {
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:41:72: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
   |                                                                        `- error: cannot find type 'URLRequest' in scope
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
43 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:24:9: warning: stored property 'session' of 'Sendable'-conforming class 'VeloxQuantClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
22 |     public let defaultModel: String?
23 |
24 |     let session: URLSession
   |         `- warning: stored property 'session' of 'Sendable'-conforming class 'VeloxQuantClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
25 |     let requestTimeout: TimeInterval
26 |     /// Where `chat()`/`chatStream()` push live inference metrics — see `monitor(interval:sampler:)`.
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:42:23: error: cannot find 'URLRequest' in scope
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
   |                       `- error: cannot find 'URLRequest' in scope
43 |         request.httpMethod = "POST"
44 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/VeloxQuantCore/Embeddings/Embeddings.swift:129:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
127 |         do {
128 |             let urlRequest = try makeRequest(for: wireRequest, path: "/v1/embeddings")
129 |             let (data, response) = try await session.vqData(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
130 |             try validateResponse(data, response)
131 |             return try JSONDecoder().decode(EmbedResponse.self, from: data)
[21/26] Compiling VeloxQuantCore VeloxQuantError.swift
[22/26] Compiling VeloxQuantCore MemoryEstimator.swift
[23/26] Compiling VeloxQuantCore ModelRegistry.swift
[24/26] Compiling VeloxQuantCore Message.swift
[25/26] Compiling VeloxQuantCore Recommendation.swift
[26/26] Compiling VeloxQuantCore Metrics.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:beceeede496da67681f4fa220a6b97cc098a0178841a413735f598dc6bbaf4c8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/23] Compiling VeloxQuantCore Chat.swift
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:41:72: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
   |                                                                        `- error: cannot find type 'URLRequest' in scope
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
43 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/Chat.swift:20:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
18 |         do {
19 |             let urlRequest = try makeRequest(for: nonStreamingRequest, path: "/v1/chat/completions")
20 |             let (data, response) = try await session.vqData(for: urlRequest)
   |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
21 |             try validateResponse(data, response)
22 |             let decoded = try JSONDecoder().decode(ChatResponse.self, from: data)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:17:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     ///   come back as a broken/partial response rather than a clean JSON error body).
16 |     /// - Non-404, non-2xx with a parseable `{"error": ...}` body → `.serverError`.
17 |     func validateResponse(_ data: Data, _ response: URLResponse) throws {
   |                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         guard let http = response as? HTTPURLResponse else {
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:44:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |     /// any bytes are consumed — a non-2xx streaming response never has a body worth decoding as
43 |     /// SSE frames.
44 |     func validateStreamingResponse(_ response: URLResponse) throws {
   |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |         guard let http = response as? HTTPURLResponse else {
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:18:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
16 |     /// - Non-404, non-2xx with a parseable `{"error": ...}` body → `.serverError`.
17 |     func validateResponse(_ data: Data, _ response: URLResponse) throws {
18 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:18:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     /// - Non-404, non-2xx with a parseable `{"error": ...}` body → `.serverError`.
17 |     func validateResponse(_ data: Data, _ response: URLResponse) throws {
18 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:21:20: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
21 |         guard http.statusCode != 200, http.statusCode != 204 else { return }
   |                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |
23 |         let rawBody = String(data: data, encoding: .utf8) ?? "<binary>"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:21:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
21 |         guard http.statusCode != 200, http.statusCode != 204 else { return }
   |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |
23 |         let rawBody = String(data: data, encoding: .utf8) ?? "<binary>"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:25:17: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
23 |         let rawBody = String(data: data, encoding: .utf8) ?? "<binary>"
24 |
25 |         if http.statusCode == 404 {
   |                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
26 |             if let errorBody = try? JSONDecoder().decode(ErrorBody.self, from: data) {
27 |                 throw VeloxQuantError.generationFailed(serverMessage: errorBody.error)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:30:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
28 |             }
29 |             if rawBody == "Not Found" {
30 |                 throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
   |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
31 |             }
32 |             throw VeloxQuantError.malformedErrorResponse(statusCode: 404, rawBody: rawBody)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:36:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 |
35 |         if let errorBody = try? JSONDecoder().decode(ErrorBody.self, from: data) {
36 |             throw VeloxQuantError.serverError(statusCode: http.statusCode, message: errorBody.error)
   |                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 |         }
38 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: rawBody)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:38:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
36 |             throw VeloxQuantError.serverError(statusCode: http.statusCode, message: errorBody.error)
37 |         }
38 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: rawBody)
   |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
39 |     }
40 |
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:45:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
43 |     /// SSE frames.
44 |     func validateStreamingResponse(_ response: URLResponse) throws {
45 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
47 |         }
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:45:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |     /// SSE frames.
44 |     func validateStreamingResponse(_ response: URLResponse) throws {
45 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
47 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:48:20: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
47 |         }
48 |         guard http.statusCode != 200 else { return }
   |                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |
50 |         if http.statusCode == 404 {
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:50:17: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
48 |         guard http.statusCode != 200 else { return }
49 |
50 |         if http.statusCode == 404 {
   |                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 |             throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
52 |         }
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:51:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
49 |
50 |         if http.statusCode == 404 {
51 |             throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
   |                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
52 |         }
53 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: "")
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:53:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 |             throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
52 |         }
53 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: "")
   |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
54 |     }
55 |
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/URLSessionCompat.swift:54:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 52 | /// change); on Linux they resolve to a delegate-based shim (see `DataAccumulator` above). This
 53 | /// keeps every call site identical across platforms; only this one file differs.
 54 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 55 |     func vqData(for request: URLRequest) async throws -> (Data, URLResponse) {
 56 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/URLSessionCompat.swift:55:30: error: cannot find type 'URLRequest' in scope
 53 | /// keeps every call site identical across platforms; only this one file differs.
 54 | extension URLSession {
 55 |     func vqData(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                              `- error: cannot find type 'URLRequest' in scope
 56 |         #if canImport(FoundationNetworking)
 57 |         try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/URLSessionCompat.swift:83:31: error: cannot find type 'URLRequest' in scope
 81 |     /// anyway, so Linux callers of `chatStream()` only lose incremental delivery, not
 82 |     /// correctness.
 83 |     func vqBytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse) {
    |                               `- error: cannot find type 'URLRequest' in scope
 84 |         #if canImport(FoundationNetworking)
 85 |         let (data, response) = try await vqData(for: request)
[3/23] Compiling VeloxQuantCore ResponseValidation.swift
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:41:72: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
   |                                                                        `- error: cannot find type 'URLRequest' in scope
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
43 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/Chat.swift:20:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
18 |         do {
19 |             let urlRequest = try makeRequest(for: nonStreamingRequest, path: "/v1/chat/completions")
20 |             let (data, response) = try await session.vqData(for: urlRequest)
   |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
21 |             try validateResponse(data, response)
22 |             let decoded = try JSONDecoder().decode(ChatResponse.self, from: data)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:17:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     ///   come back as a broken/partial response rather than a clean JSON error body).
16 |     /// - Non-404, non-2xx with a parseable `{"error": ...}` body → `.serverError`.
17 |     func validateResponse(_ data: Data, _ response: URLResponse) throws {
   |                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         guard let http = response as? HTTPURLResponse else {
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:44:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |     /// any bytes are consumed — a non-2xx streaming response never has a body worth decoding as
43 |     /// SSE frames.
44 |     func validateStreamingResponse(_ response: URLResponse) throws {
   |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |         guard let http = response as? HTTPURLResponse else {
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:18:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
16 |     /// - Non-404, non-2xx with a parseable `{"error": ...}` body → `.serverError`.
17 |     func validateResponse(_ data: Data, _ response: URLResponse) throws {
18 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:18:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     /// - Non-404, non-2xx with a parseable `{"error": ...}` body → `.serverError`.
17 |     func validateResponse(_ data: Data, _ response: URLResponse) throws {
18 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:21:20: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
21 |         guard http.statusCode != 200, http.statusCode != 204 else { return }
   |                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |
23 |         let rawBody = String(data: data, encoding: .utf8) ?? "<binary>"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:21:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
21 |         guard http.statusCode != 200, http.statusCode != 204 else { return }
   |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |
23 |         let rawBody = String(data: data, encoding: .utf8) ?? "<binary>"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:25:17: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
23 |         let rawBody = String(data: data, encoding: .utf8) ?? "<binary>"
24 |
25 |         if http.statusCode == 404 {
   |                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
26 |             if let errorBody = try? JSONDecoder().decode(ErrorBody.self, from: data) {
27 |                 throw VeloxQuantError.generationFailed(serverMessage: errorBody.error)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:30:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
28 |             }
29 |             if rawBody == "Not Found" {
30 |                 throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
   |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
31 |             }
32 |             throw VeloxQuantError.malformedErrorResponse(statusCode: 404, rawBody: rawBody)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:36:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 |
35 |         if let errorBody = try? JSONDecoder().decode(ErrorBody.self, from: data) {
36 |             throw VeloxQuantError.serverError(statusCode: http.statusCode, message: errorBody.error)
   |                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 |         }
38 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: rawBody)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:38:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
36 |             throw VeloxQuantError.serverError(statusCode: http.statusCode, message: errorBody.error)
37 |         }
38 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: rawBody)
   |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
39 |     }
40 |
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:45:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
43 |     /// SSE frames.
44 |     func validateStreamingResponse(_ response: URLResponse) throws {
45 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
47 |         }
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:45:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |     /// SSE frames.
44 |     func validateStreamingResponse(_ response: URLResponse) throws {
45 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
47 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:48:20: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
47 |         }
48 |         guard http.statusCode != 200 else { return }
   |                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |
50 |         if http.statusCode == 404 {
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:50:17: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
48 |         guard http.statusCode != 200 else { return }
49 |
50 |         if http.statusCode == 404 {
   |                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 |             throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
52 |         }
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:51:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
49 |
50 |         if http.statusCode == 404 {
51 |             throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
   |                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
52 |         }
53 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: "")
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:53:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 |             throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
52 |         }
53 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: "")
   |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
54 |     }
55 |
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/URLSessionCompat.swift:54:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 52 | /// change); on Linux they resolve to a delegate-based shim (see `DataAccumulator` above). This
 53 | /// keeps every call site identical across platforms; only this one file differs.
 54 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 55 |     func vqData(for request: URLRequest) async throws -> (Data, URLResponse) {
 56 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/URLSessionCompat.swift:55:30: error: cannot find type 'URLRequest' in scope
 53 | /// keeps every call site identical across platforms; only this one file differs.
 54 | extension URLSession {
 55 |     func vqData(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                              `- error: cannot find type 'URLRequest' in scope
 56 |         #if canImport(FoundationNetworking)
 57 |         try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/URLSessionCompat.swift:83:31: error: cannot find type 'URLRequest' in scope
 81 |     /// anyway, so Linux callers of `chatStream()` only lose incremental delivery, not
 82 |     /// correctness.
 83 |     func vqBytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse) {
    |                               `- error: cannot find type 'URLRequest' in scope
 84 |         #if canImport(FoundationNetworking)
 85 |         let (data, response) = try await vqData(for: request)
[4/23] Compiling VeloxQuantCore URLSessionCompat.swift
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:41:72: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
   |                                                                        `- error: cannot find type 'URLRequest' in scope
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
43 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/Chat.swift:20:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
18 |         do {
19 |             let urlRequest = try makeRequest(for: nonStreamingRequest, path: "/v1/chat/completions")
20 |             let (data, response) = try await session.vqData(for: urlRequest)
   |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
21 |             try validateResponse(data, response)
22 |             let decoded = try JSONDecoder().decode(ChatResponse.self, from: data)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:17:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     ///   come back as a broken/partial response rather than a clean JSON error body).
16 |     /// - Non-404, non-2xx with a parseable `{"error": ...}` body → `.serverError`.
17 |     func validateResponse(_ data: Data, _ response: URLResponse) throws {
   |                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         guard let http = response as? HTTPURLResponse else {
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:44:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |     /// any bytes are consumed — a non-2xx streaming response never has a body worth decoding as
43 |     /// SSE frames.
44 |     func validateStreamingResponse(_ response: URLResponse) throws {
   |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |         guard let http = response as? HTTPURLResponse else {
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:18:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
16 |     /// - Non-404, non-2xx with a parseable `{"error": ...}` body → `.serverError`.
17 |     func validateResponse(_ data: Data, _ response: URLResponse) throws {
18 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:18:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     /// - Non-404, non-2xx with a parseable `{"error": ...}` body → `.serverError`.
17 |     func validateResponse(_ data: Data, _ response: URLResponse) throws {
18 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:21:20: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
21 |         guard http.statusCode != 200, http.statusCode != 204 else { return }
   |                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |
23 |         let rawBody = String(data: data, encoding: .utf8) ?? "<binary>"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:21:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
20 |         }
21 |         guard http.statusCode != 200, http.statusCode != 204 else { return }
   |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |
23 |         let rawBody = String(data: data, encoding: .utf8) ?? "<binary>"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:25:17: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
23 |         let rawBody = String(data: data, encoding: .utf8) ?? "<binary>"
24 |
25 |         if http.statusCode == 404 {
   |                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
26 |             if let errorBody = try? JSONDecoder().decode(ErrorBody.self, from: data) {
27 |                 throw VeloxQuantError.generationFailed(serverMessage: errorBody.error)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:30:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
28 |             }
29 |             if rawBody == "Not Found" {
30 |                 throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
   |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
31 |             }
32 |             throw VeloxQuantError.malformedErrorResponse(statusCode: 404, rawBody: rawBody)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:36:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 |
35 |         if let errorBody = try? JSONDecoder().decode(ErrorBody.self, from: data) {
36 |             throw VeloxQuantError.serverError(statusCode: http.statusCode, message: errorBody.error)
   |                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 |         }
38 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: rawBody)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:38:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
36 |             throw VeloxQuantError.serverError(statusCode: http.statusCode, message: errorBody.error)
37 |         }
38 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: rawBody)
   |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
39 |     }
40 |
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:45:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
43 |     /// SSE frames.
44 |     func validateStreamingResponse(_ response: URLResponse) throws {
45 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
47 |         }
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:45:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |     /// SSE frames.
44 |     func validateStreamingResponse(_ response: URLResponse) throws {
45 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
47 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:48:20: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
47 |         }
48 |         guard http.statusCode != 200 else { return }
   |                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |
50 |         if http.statusCode == 404 {
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:50:17: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
48 |         guard http.statusCode != 200 else { return }
49 |
50 |         if http.statusCode == 404 {
   |                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 |             throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
52 |         }
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:51:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
49 |
50 |         if http.statusCode == 404 {
51 |             throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
   |                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
52 |         }
53 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: "")
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:53:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 |             throw VeloxQuantError.unexpectedRoute(path: http.url?.path ?? "<unknown>")
52 |         }
53 |         throw VeloxQuantError.malformedErrorResponse(statusCode: http.statusCode, rawBody: "")
   |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
54 |     }
55 |
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/URLSessionCompat.swift:54:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 52 | /// change); on Linux they resolve to a delegate-based shim (see `DataAccumulator` above). This
 53 | /// keeps every call site identical across platforms; only this one file differs.
 54 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 55 |     func vqData(for request: URLRequest) async throws -> (Data, URLResponse) {
 56 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/URLSessionCompat.swift:55:30: error: cannot find type 'URLRequest' in scope
 53 | /// keeps every call site identical across platforms; only this one file differs.
 54 | extension URLSession {
 55 |     func vqData(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                              `- error: cannot find type 'URLRequest' in scope
 56 |         #if canImport(FoundationNetworking)
 57 |         try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/URLSessionCompat.swift:83:31: error: cannot find type 'URLRequest' in scope
 81 |     /// anyway, so Linux callers of `chatStream()` only lose incremental delivery, not
 82 |     /// correctness.
 83 |     func vqBytes(for request: URLRequest) async throws -> (AsyncThrowingStream<UInt8, Error>, URLResponse) {
    |                               `- error: cannot find type 'URLRequest' in scope
 84 |         #if canImport(FoundationNetworking)
 85 |         let (data, response) = try await vqData(for: request)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/25] Emitting module VeloxQuantCore
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:17:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     ///   come back as a broken/partial response rather than a clean JSON error body).
16 |     /// - Non-404, non-2xx with a parseable `{"error": ...}` body → `.serverError`.
17 |     func validateResponse(_ data: Data, _ response: URLResponse) throws {
   |                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         guard let http = response as? HTTPURLResponse else {
19 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/ResponseValidation.swift:44:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |     /// any bytes are consumed — a non-2xx streaming response never has a body worth decoding as
43 |     /// SSE frames.
44 |     func validateStreamingResponse(_ response: URLResponse) throws {
   |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |         guard let http = response as? HTTPURLResponse else {
46 |             throw VeloxQuantError.malformedErrorResponse(statusCode: -1, rawBody: "")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/URLSessionCompat.swift:54:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 52 | /// change); on Linux they resolve to a delegate-based shim (see `DataAccumulator` above). This
 53 | /// keeps every call site identical across platforms; only this one file differs.
 54 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 55 |     func vqData(for request: URLRequest) async throws -> (Data, URLResponse) {
 56 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:24:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     public let defaultModel: String?
23 |
24 |     let session: URLSession
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     let requestTimeout: TimeInterval
26 |     /// Where `chat()`/`chatStream()` push live inference metrics — see `monitor(interval:sampler:)`.
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/VeloxQuantCore/Client/VeloxQuantClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         baseURL: URL = URL(string: "http://127.0.0.1:8000")!,
31 |         defaultModel: String? = nil,
32 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |         requestTimeout: TimeInterval = 30
34 |     ) {
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/VeloxQuantCore/Client/VeloxQuantClient.swift:32:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 |         baseURL: URL = URL(string: "http://127.0.0.1:8000")!,
31 |         defaultModel: String? = nil,
32 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |         requestTimeout: TimeInterval = 30
34 |     ) {
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:41:72: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
   |                                                                        `- error: cannot find type 'URLRequest' in scope
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
43 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:24:9: warning: stored property 'session' of 'Sendable'-conforming class 'VeloxQuantClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
22 |     public let defaultModel: String?
23 |
24 |     let session: URLSession
   |         `- warning: stored property 'session' of 'Sendable'-conforming class 'VeloxQuantClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
25 |     let requestTimeout: TimeInterval
26 |     /// Where `chat()`/`chatStream()` push live inference metrics — see `monitor(interval:sampler:)`.
[6/25] Compiling VeloxQuantCore ChatStream.swift
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:41:72: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
   |                                                                        `- error: cannot find type 'URLRequest' in scope
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
43 |         request.httpMethod = "POST"
[7/25] Compiling VeloxQuantCore ChatStructured.swift
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:41:72: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
   |                                                                        `- error: cannot find type 'URLRequest' in scope
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
43 |         request.httpMethod = "POST"
[8/25] Compiling VeloxQuantCore ChatResponse.swift
[9/25] Compiling VeloxQuantCore ErrorBody.swift
[10/25] Compiling VeloxQuantCore JSONValue.swift
[11/25] Compiling VeloxQuantCore OfflineOptimizer.swift
[12/25] Compiling VeloxQuantCore Precision.swift
[13/25] Compiling VeloxQuantCore ChatRequest.swift
[14/25] Compiling VeloxQuantCore Monitor.swift
[15/25] Compiling VeloxQuantCore AsyncByteLines.swift
[16/25] Compiling VeloxQuantCore ChatChunk.swift
[17/25] Compiling VeloxQuantCore VeloxQuantError.swift
[18/25] Compiling VeloxQuantCore MemoryEstimator.swift
[19/25] Compiling VeloxQuantCore ModelRegistry.swift
[20/25] Compiling VeloxQuantCore Message.swift
[21/25] Compiling VeloxQuantCore Recommendation.swift
[22/25] Compiling VeloxQuantCore Metrics.swift
[23/25] Compiling VeloxQuantCore VeloxQuantClient.swift
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:24:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     public let defaultModel: String?
23 |
24 |     let session: URLSession
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     let requestTimeout: TimeInterval
26 |     /// Where `chat()`/`chatStream()` push live inference metrics — see `monitor(interval:sampler:)`.
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/VeloxQuantCore/Client/VeloxQuantClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         baseURL: URL = URL(string: "http://127.0.0.1:8000")!,
31 |         defaultModel: String? = nil,
32 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |         requestTimeout: TimeInterval = 30
34 |     ) {
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/VeloxQuantCore/Client/VeloxQuantClient.swift:32:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 |         baseURL: URL = URL(string: "http://127.0.0.1:8000")!,
31 |         defaultModel: String? = nil,
32 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |         requestTimeout: TimeInterval = 30
34 |     ) {
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:41:72: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
   |                                                                        `- error: cannot find type 'URLRequest' in scope
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
43 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:24:9: warning: stored property 'session' of 'Sendable'-conforming class 'VeloxQuantClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
22 |     public let defaultModel: String?
23 |
24 |     let session: URLSession
   |         `- warning: stored property 'session' of 'Sendable'-conforming class 'VeloxQuantClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
25 |     let requestTimeout: TimeInterval
26 |     /// Where `chat()`/`chatStream()` push live inference metrics — see `monitor(interval:sampler:)`.
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:42:23: error: cannot find 'URLRequest' in scope
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
   |                       `- error: cannot find 'URLRequest' in scope
43 |         request.httpMethod = "POST"
44 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/VeloxQuantCore/Embeddings/Embeddings.swift:129:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
127 |         do {
128 |             let urlRequest = try makeRequest(for: wireRequest, path: "/v1/embeddings")
129 |             let (data, response) = try await session.vqData(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
130 |             try validateResponse(data, response)
131 |             return try JSONDecoder().decode(EmbedResponse.self, from: data)
[24/25] Compiling VeloxQuantCore Conversation.swift
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:24:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     public let defaultModel: String?
23 |
24 |     let session: URLSession
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     let requestTimeout: TimeInterval
26 |     /// Where `chat()`/`chatStream()` push live inference metrics — see `monitor(interval:sampler:)`.
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/VeloxQuantCore/Client/VeloxQuantClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         baseURL: URL = URL(string: "http://127.0.0.1:8000")!,
31 |         defaultModel: String? = nil,
32 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |         requestTimeout: TimeInterval = 30
34 |     ) {
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/VeloxQuantCore/Client/VeloxQuantClient.swift:32:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 |         baseURL: URL = URL(string: "http://127.0.0.1:8000")!,
31 |         defaultModel: String? = nil,
32 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |         requestTimeout: TimeInterval = 30
34 |     ) {
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:41:72: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
   |                                                                        `- error: cannot find type 'URLRequest' in scope
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
43 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:24:9: warning: stored property 'session' of 'Sendable'-conforming class 'VeloxQuantClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
22 |     public let defaultModel: String?
23 |
24 |     let session: URLSession
   |         `- warning: stored property 'session' of 'Sendable'-conforming class 'VeloxQuantClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
25 |     let requestTimeout: TimeInterval
26 |     /// Where `chat()`/`chatStream()` push live inference metrics — see `monitor(interval:sampler:)`.
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:42:23: error: cannot find 'URLRequest' in scope
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
   |                       `- error: cannot find 'URLRequest' in scope
43 |         request.httpMethod = "POST"
44 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/VeloxQuantCore/Embeddings/Embeddings.swift:129:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
127 |         do {
128 |             let urlRequest = try makeRequest(for: wireRequest, path: "/v1/embeddings")
129 |             let (data, response) = try await session.vqData(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
130 |             try validateResponse(data, response)
131 |             return try JSONDecoder().decode(EmbedResponse.self, from: data)
[25/25] Compiling VeloxQuantCore Embeddings.swift
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:24:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     public let defaultModel: String?
23 |
24 |     let session: URLSession
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     let requestTimeout: TimeInterval
26 |     /// Where `chat()`/`chatStream()` push live inference metrics — see `monitor(interval:sampler:)`.
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/VeloxQuantCore/Client/VeloxQuantClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         baseURL: URL = URL(string: "http://127.0.0.1:8000")!,
31 |         defaultModel: String? = nil,
32 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |         requestTimeout: TimeInterval = 30
34 |     ) {
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/VeloxQuantCore/Client/VeloxQuantClient.swift:32:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 |         baseURL: URL = URL(string: "http://127.0.0.1:8000")!,
31 |         defaultModel: String? = nil,
32 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |         requestTimeout: TimeInterval = 30
34 |     ) {
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:41:72: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
   |                                                                        `- error: cannot find type 'URLRequest' in scope
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
43 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:24:9: warning: stored property 'session' of 'Sendable'-conforming class 'VeloxQuantClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
22 |     public let defaultModel: String?
23 |
24 |     let session: URLSession
   |         `- warning: stored property 'session' of 'Sendable'-conforming class 'VeloxQuantClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
25 |     let requestTimeout: TimeInterval
26 |     /// Where `chat()`/`chatStream()` push live inference metrics — see `monitor(interval:sampler:)`.
/host/spi-builder-workspace/Sources/VeloxQuantCore/Client/VeloxQuantClient.swift:42:23: error: cannot find 'URLRequest' in scope
40 |
41 |     func makeRequest(for body: some Encodable, path: String) throws -> URLRequest {
42 |         var request = URLRequest(url: baseURL.appendingPathComponent(path))
   |                       `- error: cannot find 'URLRequest' in scope
43 |         request.httpMethod = "POST"
44 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/VeloxQuantCore/Embeddings/Embeddings.swift:129:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
127 |         do {
128 |             let urlRequest = try makeRequest(for: wireRequest, path: "/v1/embeddings")
129 |             let (data, response) = try await session.vqData(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'vqData'
130 |             try validateResponse(data, response)
131 |             return try JSONDecoder().decode(EmbedResponse.self, from: data)
BUILD FAILURE 6.1 wasm