Build Information
Failed to build VeloxQuant, reference v0.2.0-alpha (dd61b2), with Swift 6.2 for Wasm on 29 Sep 2026 23:52:23 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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/rajveer43/veloxquant-swift.git
Reference: v0.2.0-alpha
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
* tag v0.2.0-alpha -> FETCH_HEAD
HEAD is now at dd61b20 Phase 2: memory management, embeddings, structured output, and runtime features
Cloned https://github.com/rajveer43/veloxquant-swift.git
Revision (git rev-parse @):
dd61b206af147861e1cc0728747c7b72917c23b4
SUCCESS checkout https://github.com/rajveer43/veloxquant-swift.git at v0.2.0-alpha
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/rajveer43/veloxquant-swift.git
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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:ff44196b45f83e5a0a99a627b185f548850d9bc1242e3dee2178fb1570812fe8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-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 [#NominalTypes]
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 [#NominalTypes]
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: value of type '_' expected to be instance of class or class-constrained type
30 | baseURL: URL = URL(string: "http://127.0.0.1:8000")!,
31 | defaultModel: String? = nil,
32 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
33 | requestTimeout: TimeInterval = 30
34 | ) {
/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:)`.
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[4/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"
[5/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"
[6/26] Compiling VeloxQuantCore Monitor.swift
[7/26] Compiling VeloxQuantCore AsyncByteLines.swift
[8/26] Compiling VeloxQuantCore ChatChunk.swift
[9/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:32:32: error: value of type '_' expected to be instance of class or class-constrained type
30 | baseURL: URL = URL(string: "http://127.0.0.1:8000")!,
31 | defaultModel: String? = nil,
32 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
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)
[10/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:32:32: error: value of type '_' expected to be instance of class or class-constrained type
30 | baseURL: URL = URL(string: "http://127.0.0.1:8000")!,
31 | defaultModel: String? = nil,
32 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
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)
[11/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:32:32: error: value of type '_' expected to be instance of class or class-constrained type
30 | baseURL: URL = URL(string: "http://127.0.0.1:8000")!,
31 | defaultModel: String? = nil,
32 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
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)
[12/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 [#NominalTypes]
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 [#NominalTypes]
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)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[13/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 [#NominalTypes]
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 [#NominalTypes]
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)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[14/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 [#NominalTypes]
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 [#NominalTypes]
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)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[15/26] Compiling VeloxQuantCore VeloxQuantError.swift
[16/26] Compiling VeloxQuantCore MemoryEstimator.swift
[17/26] Compiling VeloxQuantCore ModelRegistry.swift
[18/26] Compiling VeloxQuantCore Message.swift
[19/26] Compiling VeloxQuantCore Recommendation.swift
[20/26] Compiling VeloxQuantCore Metrics.swift
[21/26] Compiling VeloxQuantCore ChatResponse.swift
[22/26] Compiling VeloxQuantCore ErrorBody.swift
[23/26] Compiling VeloxQuantCore JSONValue.swift
[24/26] Compiling VeloxQuantCore OfflineOptimizer.swift
[25/26] Compiling VeloxQuantCore Precision.swift
[26/26] Compiling VeloxQuantCore ChatRequest.swift
BUILD FAILURE 6.2 wasm