The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ReadAssist, reference v0.5.0 (e9027c), with Swift 6.1 for Linux on 5 Sep 2026 08:52:05 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-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:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ai-nuke/read-assist.git
Reference: v0.5.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/ai-nuke/read-assist
 * tag               v0.5.0     -> FETCH_HEAD
HEAD is now at e9027cf Release Read Assist 0.5.0
Cloned https://github.com/ai-nuke/read-assist.git
Revision (git rev-parse @):
e9027cf43846216b19bfde833a04fe0aa059b0f6
SUCCESS checkout https://github.com/ai-nuke/read-assist.git at v0.5.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ai-nuke/read-assist.git
https://github.com/ai-nuke/read-assist.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-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:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:dff62030f4387a2d827d2b365d39a91716bd1d13650763ccbcbfe23419000563
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.1-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/11] Compiling ReadAssistCore ReadingRequest.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[5/11] Compiling ReadAssistCore ResponseStream.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/11] Emitting module ReadAssistCore
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:8:44: error: cannot find type 'URLSessionTaskDelegate' in scope
 6 | }
 7 |
 8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
   |                                            `- error: cannot find type 'URLSessionTaskDelegate' in scope
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:10:95: error: cannot find type 'URLRequest' in scope
 8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
   |                                                                                               `- error: cannot find type 'URLRequest' in scope
11 |                     completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
12 |         completionHandler(nil)
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:11:61: error: cannot find type 'URLRequest' in scope
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
11 |                     completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
   |                                                             `- error: cannot find type 'URLRequest' in scope
12 |         completionHandler(nil)
13 |     }
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:9:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |
 8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
11 |                     completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
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/ReadAssistCore/LunaClient.swift:9:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |
 8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
   |                                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
11 |                     completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:10:58: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
   |                                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |                     completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
12 |         completionHandler(nil)
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/ReadAssistCore/LunaClient.swift:17:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | public struct LunaClient: ExplanationClient {
17 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     public init() {
19 |         let config = URLSessionConfiguration.ephemeral
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/ReadAssistCore/LunaClient.swift:29:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 |     // Injection is for isolated transport tests; the production endpoint cannot be configured.
29 |     public init(session: URLSession) { self.session = session }
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |
31 |     public func explain(_ request: ReadingRequest, apiKey: String,
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/ReadAssistCore/LunaClient.swift:17:17: error: stored property 'session' of 'Sendable'-conforming struct 'LunaClient' has non-sendable type 'URLSession' (aka 'AnyObject')
15 |
16 | public struct LunaClient: ExplanationClient {
17 |     private let session: URLSession
   |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'LunaClient' has non-sendable type 'URLSession' (aka 'AnyObject')
18 |     public init() {
19 |         let config = URLSessionConfiguration.ephemeral
[7/11] Compiling ReadAssistCore LunaClient.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:8:44: error: cannot find type 'URLSessionTaskDelegate' in scope
 6 | }
 7 |
 8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
   |                                            `- error: cannot find type 'URLSessionTaskDelegate' in scope
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:10:95: error: cannot find type 'URLRequest' in scope
 8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
   |                                                                                               `- error: cannot find type 'URLRequest' in scope
11 |                     completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
12 |         completionHandler(nil)
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:11:61: error: cannot find type 'URLRequest' in scope
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
11 |                     completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
   |                                                             `- error: cannot find type 'URLRequest' in scope
12 |         completionHandler(nil)
13 |     }
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:9:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |
 8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
11 |                     completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
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/ReadAssistCore/LunaClient.swift:9:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |
 8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
   |                                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
11 |                     completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:10:58: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
   |                                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |                     completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
12 |         completionHandler(nil)
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/ReadAssistCore/LunaClient.swift:17:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | public struct LunaClient: ExplanationClient {
17 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     public init() {
19 |         let config = URLSessionConfiguration.ephemeral
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/ReadAssistCore/LunaClient.swift:29:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 |     // Injection is for isolated transport tests; the production endpoint cannot be configured.
29 |     public init(session: URLSession) { self.session = session }
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |
31 |     public func explain(_ request: ReadingRequest, apiKey: String,
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/ReadAssistCore/LunaClient.swift:17:17: error: stored property 'session' of 'Sendable'-conforming struct 'LunaClient' has non-sendable type 'URLSession' (aka 'AnyObject')
15 |
16 | public struct LunaClient: ExplanationClient {
17 |     private let session: URLSession
   |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'LunaClient' has non-sendable type 'URLSession' (aka 'AnyObject')
18 |     public init() {
19 |         let config = URLSessionConfiguration.ephemeral
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:12:27: error: 'nil' requires a contextual type
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
11 |                     completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
12 |         completionHandler(nil)
   |                           `- error: 'nil' requires a contextual type
13 |     }
14 | }
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:19:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
17 |     private let session: URLSession
18 |     public init() {
19 |         let config = URLSessionConfiguration.ephemeral
   |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
20 |         config.timeoutIntervalForRequest = 20
21 |         config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:24:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
22 |         config.urlCache = nil
23 |         config.httpCookieStorage = nil
24 |         config.requestCachePolicy = .reloadIgnoringLocalCacheData
   |                                      `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
25 |         session = URLSession(configuration: config, delegate: NoRedirects(), delegateQueue: nil)
26 |     }
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:25:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
23 |         config.httpCookieStorage = nil
24 |         config.requestCachePolicy = .reloadIgnoringLocalCacheData
25 |         session = URLSession(configuration: config, delegate: NoRedirects(), delegateQueue: nil)
   |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
26 |     }
27 |
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:25:93: error: 'nil' requires a contextual type
23 |         config.httpCookieStorage = nil
24 |         config.requestCachePolicy = .reloadIgnoringLocalCacheData
25 |         session = URLSession(configuration: config, delegate: NoRedirects(), delegateQueue: nil)
   |                                                                                             `- error: 'nil' requires a contextual type
26 |     }
27 |
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:36:20: error: cannot find 'URLRequest' in scope
34 |         guard !key.isEmpty else { throw ReadingError.missingKey }
35 |         try Task.checkCancellation()
36 |         var http = URLRequest(url: URL(string: "https://api.openai.com/v1/responses")!)
   |                    `- error: cannot find 'URLRequest' in scope
37 |         http.httpMethod = "POST"
38 |         http.setValue("Bearer \(key)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:42:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
40 |         http.setValue("text/event-stream", forHTTPHeaderField: "Accept")
41 |         http.httpBody = try request.payload()
42 |         let (bytes, response) = try await session.bytes(for: http)
   |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
43 |         defer { bytes.task.cancel() }
44 |         guard let response = response as? HTTPURLResponse else { throw ReadingError.invalidResponse }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-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:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:dff62030f4387a2d827d2b365d39a91716bd1d13650763ccbcbfe23419000563
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/9] Compiling ReadAssistCore ReadingRequest.swift
[3/9] Compiling ReadAssistCore ResponseStream.swift
[4/9] Emitting module ReadAssistCore
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:8:44: error: cannot find type 'URLSessionTaskDelegate' in scope
 6 | }
 7 |
 8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
   |                                            `- error: cannot find type 'URLSessionTaskDelegate' in scope
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:10:95: error: cannot find type 'URLRequest' in scope
 8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
   |                                                                                               `- error: cannot find type 'URLRequest' in scope
11 |                     completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
12 |         completionHandler(nil)
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:11:61: error: cannot find type 'URLRequest' in scope
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
11 |                     completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
   |                                                             `- error: cannot find type 'URLRequest' in scope
12 |         completionHandler(nil)
13 |     }
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:9:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |
 8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
11 |                     completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
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/ReadAssistCore/LunaClient.swift:9:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |
 8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
   |                                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
11 |                     completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:10:58: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
   |                                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |                     completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
12 |         completionHandler(nil)
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/ReadAssistCore/LunaClient.swift:17:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | public struct LunaClient: ExplanationClient {
17 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     public init() {
19 |         let config = URLSessionConfiguration.ephemeral
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/ReadAssistCore/LunaClient.swift:29:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 |     // Injection is for isolated transport tests; the production endpoint cannot be configured.
29 |     public init(session: URLSession) { self.session = session }
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |
31 |     public func explain(_ request: ReadingRequest, apiKey: String,
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/ReadAssistCore/LunaClient.swift:17:17: error: stored property 'session' of 'Sendable'-conforming struct 'LunaClient' has non-sendable type 'URLSession' (aka 'AnyObject')
15 |
16 | public struct LunaClient: ExplanationClient {
17 |     private let session: URLSession
   |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'LunaClient' has non-sendable type 'URLSession' (aka 'AnyObject')
18 |     public init() {
19 |         let config = URLSessionConfiguration.ephemeral
[5/9] Compiling ReadAssistCore LunaClient.swift
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:8:44: error: cannot find type 'URLSessionTaskDelegate' in scope
 6 | }
 7 |
 8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
   |                                            `- error: cannot find type 'URLSessionTaskDelegate' in scope
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:10:95: error: cannot find type 'URLRequest' in scope
 8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
   |                                                                                               `- error: cannot find type 'URLRequest' in scope
11 |                     completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
12 |         completionHandler(nil)
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:11:61: error: cannot find type 'URLRequest' in scope
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
11 |                     completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
   |                                                             `- error: cannot find type 'URLRequest' in scope
12 |         completionHandler(nil)
13 |     }
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:9:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |
 8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
11 |                     completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
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/ReadAssistCore/LunaClient.swift:9:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |
 8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
   |                                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
11 |                     completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:10:58: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
 9 |     func urlSession(_ session: URLSession, task: URLSessionTask,
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
   |                                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |                     completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
12 |         completionHandler(nil)
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/ReadAssistCore/LunaClient.swift:17:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | public struct LunaClient: ExplanationClient {
17 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     public init() {
19 |         let config = URLSessionConfiguration.ephemeral
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/ReadAssistCore/LunaClient.swift:29:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 |     // Injection is for isolated transport tests; the production endpoint cannot be configured.
29 |     public init(session: URLSession) { self.session = session }
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |
31 |     public func explain(_ request: ReadingRequest, apiKey: String,
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/ReadAssistCore/LunaClient.swift:17:17: error: stored property 'session' of 'Sendable'-conforming struct 'LunaClient' has non-sendable type 'URLSession' (aka 'AnyObject')
15 |
16 | public struct LunaClient: ExplanationClient {
17 |     private let session: URLSession
   |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'LunaClient' has non-sendable type 'URLSession' (aka 'AnyObject')
18 |     public init() {
19 |         let config = URLSessionConfiguration.ephemeral
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:12:27: error: 'nil' requires a contextual type
10 |                     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
11 |                     completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
12 |         completionHandler(nil)
   |                           `- error: 'nil' requires a contextual type
13 |     }
14 | }
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:19:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
17 |     private let session: URLSession
18 |     public init() {
19 |         let config = URLSessionConfiguration.ephemeral
   |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
20 |         config.timeoutIntervalForRequest = 20
21 |         config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:24:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
22 |         config.urlCache = nil
23 |         config.httpCookieStorage = nil
24 |         config.requestCachePolicy = .reloadIgnoringLocalCacheData
   |                                      `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
25 |         session = URLSession(configuration: config, delegate: NoRedirects(), delegateQueue: nil)
26 |     }
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:25:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
23 |         config.httpCookieStorage = nil
24 |         config.requestCachePolicy = .reloadIgnoringLocalCacheData
25 |         session = URLSession(configuration: config, delegate: NoRedirects(), delegateQueue: nil)
   |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
26 |     }
27 |
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:25:93: error: 'nil' requires a contextual type
23 |         config.httpCookieStorage = nil
24 |         config.requestCachePolicy = .reloadIgnoringLocalCacheData
25 |         session = URLSession(configuration: config, delegate: NoRedirects(), delegateQueue: nil)
   |                                                                                             `- error: 'nil' requires a contextual type
26 |     }
27 |
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:36:20: error: cannot find 'URLRequest' in scope
34 |         guard !key.isEmpty else { throw ReadingError.missingKey }
35 |         try Task.checkCancellation()
36 |         var http = URLRequest(url: URL(string: "https://api.openai.com/v1/responses")!)
   |                    `- error: cannot find 'URLRequest' in scope
37 |         http.httpMethod = "POST"
38 |         http.setValue("Bearer \(key)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:42:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
40 |         http.setValue("text/event-stream", forHTTPHeaderField: "Accept")
41 |         http.httpBody = try request.payload()
42 |         let (bytes, response) = try await session.bytes(for: http)
   |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
43 |         defer { bytes.task.cancel() }
44 |         guard let response = response as? HTTPURLResponse else { throw ReadingError.invalidResponse }
BUILD FAILURE 6.1 linux