The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AGUISwift, reference 0.1.0 (59603f), with Swift 6.2 for Android on 18 Apr 2026 10:00:46 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/paduh/ag-ui-swift.git
Reference: 0.1.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/paduh/ag-ui-swift
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at 59603fa Merge pull request #10 from paduh/feature/chatapp-phase4-a2ui-generative-ui
Cloned https://github.com/paduh/ag-ui-swift.git
Revision (git rev-parse @):
59603fa66d18032209d7dec43930ba35dbf0ee08
SUCCESS checkout https://github.com/paduh/ag-ui-swift.git at 0.1.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/paduh/ag-ui-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:cb98f9856cb1288a0028ff0e63d4de86ca92d5e7890400e3e915f7ea3943ed55
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.2-latest
Fetching https://github.com/apple/swift-docc-plugin
[1/2277] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.49s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.6 (4.79s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3672] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.60s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.61s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.6
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/7] Write sources
[6/7] Write swift-version--11D90AFD9DD3AB2.txt
[8/94] Emitting module AGUICore
[9/106] Compiling AGUICore ActivityMessage.swift
[10/106] Compiling AGUICore AssistantMessage.swift
[11/106] Compiling AGUICore DeveloperMessage.swift
[12/106] Compiling AGUICore Message.swift
[13/106] Compiling AGUICore Role.swift
[14/106] Compiling AGUICore SystemMessage.swift
[15/106] Compiling AGUICore ToolMessage.swift
[16/106] Compiling AGUICore UserMessage.swift
[17/106] Compiling AGUICore FunctionCall.swift
[18/106] Compiling AGUICore Tool.swift
[19/106] Compiling AGUICore ToolCall.swift
[20/106] Compiling AGUICore JSONCodingHelpers.swift
[21/106] Compiling AGUICore ToolCallChunkEvent.swift
[22/106] Compiling AGUICore ToolCallEndEvent.swift
[23/106] Compiling AGUICore ToolCallResultEvent.swift
[24/106] Compiling AGUICore ToolCallStartEvent.swift
[25/106] Compiling AGUICore UnknownEvent.swift
[26/106] Compiling AGUICore Context.swift
[27/106] Compiling AGUICore RunAgentInput.swift
[28/106] Compiling AGUICore RunAgentInputBuilder.swift
[29/106] Compiling AGUICore State.swift
[30/106] Compiling AGUICore BinaryInputContent.swift
[31/106] Compiling AGUICore InputContent.swift
[32/106] Compiling AGUICore TextInputContent.swift
[33/106] Compiling AGUICore StateDeltaEvent.swift
[34/106] Compiling AGUICore StateSnapshotEvent.swift
[35/106] Compiling AGUICore TextMessageChunkEvent.swift
[36/106] Compiling AGUICore TextMessageContentEvent.swift
[37/106] Compiling AGUICore TextMessageEndEvent.swift
[38/106] Compiling AGUICore TextMessageStartEvent.swift
[39/106] Compiling AGUICore ThinkingEndEvent.swift
[40/106] Compiling AGUICore ThinkingStartEvent.swift
[41/106] Compiling AGUICore ThinkingTextMessageContentEvent.swift
[42/106] Compiling AGUICore ThinkingTextMessageEndEvent.swift
[43/106] Compiling AGUICore ThinkingTextMessageStartEvent.swift
[44/106] Compiling AGUICore ToolCallArgsEvent.swift
[45/106] Compiling AGUICore ToolCallEndEventDTO.swift
[46/106] Compiling AGUICore ToolCallResultEventDTO.swift
[47/106] Compiling AGUICore ToolCallStartEventDTO.swift
[48/106] Compiling AGUICore TypeDiscriminator.swift
[49/106] Compiling AGUICore EventDecodingError.swift
[50/106] Compiling AGUICore BinaryInputContentDTO.swift
[51/106] Compiling AGUICore TextInputContentDTO.swift
[52/106] Compiling AGUICore ActivityMessageDTO.swift
[53/106] Compiling AGUICore AssistantMessageDTO.swift
[54/106] Compiling AGUICore DeveloperMessageDTO.swift
[55/106] Compiling AGUICore MessageDecodingHelpers.swift
[56/106] Compiling AGUICore SystemMessageDTO.swift
[57/106] Compiling AGUICore EventType.swift
[58/106] Compiling AGUICore AGUIEvent.swift
[59/106] Compiling AGUICore ActivityDeltaEvent.swift
[60/106] Compiling AGUICore ActivitySnapshotEvent.swift
[61/106] Compiling AGUICore RunErrorEvent.swift
[62/106] Compiling AGUICore RunFinishedEvent.swift
[63/106] Compiling AGUICore RunStartedEvent.swift
[64/106] Compiling AGUICore StepFinishedEvent.swift
[65/106] Compiling AGUICore StepStartedEvent.swift
[66/106] Compiling AGUICore CustomEvent.swift
[67/106] Compiling AGUICore RawEvent.swift
[68/106] Compiling AGUICore MessagesSnapshotEvent.swift
[69/106] Compiling AGUICore ToolMessageDTO.swift
[70/106] Compiling AGUICore UserMessageDTO.swift
[71/106] Compiling AGUICore MessageDecoder.swift
[72/106] Compiling AGUICore ActivityEventRegistry.swift
[73/106] Compiling AGUICore LifecycleEventRegistry.swift
[74/106] Compiling AGUICore SpecialEventRegistry.swift
[75/106] Compiling AGUICore StateEventRegistry.swift
[76/106] Compiling AGUICore TextMessageEventRegistry.swift
[77/106] Compiling AGUICore ThinkingEventRegistry.swift
[78/106] Compiling AGUICore ToolCallEventRegistry.swift
[79/106] Compiling AGUICore RegistryComposer.swift
[80/106] Compiling AGUICore MessageEncoder.swift
[81/106] Compiling AGUICore StateDeltaEventDTO.swift
[82/106] Compiling AGUICore StateSnapshotEventDTO.swift
[83/106] Compiling AGUICore TextMessageChunkEventDTO.swift
[84/106] Compiling AGUICore TextMessageContentEventDTO.swift
[85/106] Compiling AGUICore TextMessageEndEventDTO.swift
[86/106] Compiling AGUICore TextMessageStartEventDTO.swift
[87/106] Compiling AGUICore ThinkingEndEventDTO.swift
[88/106] Compiling AGUICore ThinkingStartEventDTO.swift
[89/106] Compiling AGUICore ThinkingTextMessageContentEventDTO.swift
[90/106] Compiling AGUICore ThinkingTextMessageEndEventDTO.swift
[91/106] Compiling AGUICore ThinkingTextMessageStartEventDTO.swift
[92/106] Compiling AGUICore ToolCallArgsEventDTO.swift
[93/106] Compiling AGUICore ToolCallChunkEventDTO.swift
[94/106] Compiling AGUICore AGUICore.swift
[95/106] Compiling AGUICore AGUIEventDecoder.swift
[96/106] Compiling AGUICore ActivityDeltaEventDTO.swift
[97/106] Compiling AGUICore ActivitySnapshotEventDTO.swift
[98/106] Compiling AGUICore EventDecodingHelpers.swift
[99/106] Compiling AGUICore RunErrorEventDTO.swift
[100/106] Compiling AGUICore RunFinishedEventDTO.swift
[101/106] Compiling AGUICore RunStartedEventDTO.swift
[102/106] Compiling AGUICore StepFinishedEventDTO.swift
[103/106] Compiling AGUICore StepStartedEventDTO.swift
[104/106] Compiling AGUICore CustomEventDTO.swift
[105/106] Compiling AGUICore RawEventDTO.swift
[106/106] Compiling AGUICore MessagesSnapshotEventDTO.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[108/139] Emitting module AGUIClient
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:214:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
212 |         _ input: RunAgentInput,
213 |         endpoint: String? = nil
214 |     ) async throws -> EventStream<URLSession.AsyncBytes> {
    |                                              `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
215 |         let bytes = try await transport.execute(
216 |             endpoint: endpoint ?? defaultEndpoint,
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:265:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
263 |         endpoint: String? = nil,
264 |         configure: (RunAgentInputBuilder) -> RunAgentInputBuilder = { $0 }
265 |     ) async throws -> EventStream<URLSession.AsyncBytes> {
    |                                              `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
266 |         let input = try configure(
267 |             RunAgentInput.builder()
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 |     /// - Returns: An HTTP response containing streaming bytes and metadata
57 |     /// - Throws: `ClientError` if the request fails
58 |     func execute(_ request: URLRequest) async throws -> HTTPResponse
   |                             `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:64:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
62 | public struct HTTPResponse: Sendable {
63 |     /// Streaming response bytes.
64 |     public let bytes: URLSession.AsyncBytes
   |                                  `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
65 |
66 |     /// HTTP response metadata.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:67:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 |     /// HTTP response metadata.
67 |     public let httpResponse: HTTPURLResponse
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |
69 |     /// HTTP status code.
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/AGUIClient/Transport/HTTPClient.swift:84:35: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
82 |     ///   - bytes: Streaming response bytes
83 |     ///   - httpResponse: HTTP response metadata
84 |     public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
   |                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
85 |         self.bytes = bytes
86 |         self.httpResponse = httpResponse
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |     ///   - bytes: Streaming response bytes
83 |     ///   - httpResponse: HTTP response metadata
84 |     public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
   |                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 |         self.bytes = bytes
86 |         self.httpResponse = httpResponse
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/AGUIClient/Transport/HTTPClient.swift:67:16: warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-Sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 |
66 |     /// HTTP response metadata.
67 |     public let httpResponse: HTTPURLResponse
   |                `- warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-Sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 |
69 |     /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:146:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
144 |         endpoint: String,
145 |         input: RunAgentInput
146 |     ) async throws -> URLSession.AsyncBytes {
    |                                  `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
147 |         // Construct URL
148 |         let url = configuration.baseURL.appendingPathComponent(endpoint)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:93:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 91 |         } else {
 92 |             // Create default URLSession-based client
 93 |             let sessionConfig = URLSessionConfiguration.default
    |                                                         `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 94 |             // timeoutIntervalForRequest: max idle time between consecutive bytes (per-chunk).
 95 |             // For AI streaming, the inference step can take 30-120 s before the first
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:107:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
105 |             sessionConfig.httpAdditionalHeaders = headers
106 |
107 |             let session = URLSession(configuration: sessionConfig)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
108 |             self.httpClient = URLSessionHTTPClient(session: session)
109 |         }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:50:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 | /// ```
 49 | public actor URLSessionHTTPClient: HTTPClient {
 50 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |
 52 |     /// Creates a new URLSession HTTP client with the specified session.
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/AGUIClient/Transport/URLSessionHTTPClient.swift:68:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     /// let client = URLSessionHTTPClient(session: session)
 67 |     /// ```
 68 |     public init(session: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         self.session = session
 70 |     }
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/AGUIClient/Transport/URLSessionHTTPClient.swift:88:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |     /// ```
 87 |     public static func create(
 88 |         configuration: URLSessionConfiguration = .default
    |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |     ) -> URLSessionHTTPClient {
 90 |         let session = URLSession(configuration: configuration)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:88:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 86 |     /// ```
 87 |     public static func create(
 88 |         configuration: URLSessionConfiguration = .default
    |                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 89 |     ) -> URLSessionHTTPClient {
 90 |         let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:88:51: error: value of type '_' expected to be instance of class or class-constrained type
 86 |     /// ```
 87 |     public static func create(
 88 |         configuration: URLSessionConfiguration = .default
    |                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 89 |     ) -> URLSessionHTTPClient {
 90 |         let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:106:36: error: cannot find type 'URLRequest' in scope
104 |     /// - `.cancelled` → `.cancelled`
105 |     /// - Other errors → `.networkError`
106 |     public func execute(_ request: URLRequest) async throws -> HTTPResponse {
    |                                    `- error: cannot find type 'URLRequest' in scope
107 |         let (bytes, response): (URLSession.AsyncBytes, URLResponse)
108 |
[109/141] Compiling AGUITools ToolExecutionEvent.swift
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:214:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
212 |         _ input: RunAgentInput,
213 |         endpoint: String? = nil
214 |     ) async throws -> EventStream<URLSession.AsyncBytes> {
    |                                              `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
215 |         let bytes = try await transport.execute(
216 |             endpoint: endpoint ?? defaultEndpoint,
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:265:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
263 |         endpoint: String? = nil,
264 |         configure: (RunAgentInputBuilder) -> RunAgentInputBuilder = { $0 }
265 |     ) async throws -> EventStream<URLSession.AsyncBytes> {
    |                                              `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
266 |         let input = try configure(
267 |             RunAgentInput.builder()
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:146:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
144 |         endpoint: String,
145 |         input: RunAgentInput
146 |     ) async throws -> URLSession.AsyncBytes {
    |                                  `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
147 |         // Construct URL
148 |         let url = configuration.baseURL.appendingPathComponent(endpoint)
[110/141] Compiling AGUIClient HttpAgent.swift
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:214:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
212 |         _ input: RunAgentInput,
213 |         endpoint: String? = nil
214 |     ) async throws -> EventStream<URLSession.AsyncBytes> {
    |                                              `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
215 |         let bytes = try await transport.execute(
216 |             endpoint: endpoint ?? defaultEndpoint,
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:265:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
263 |         endpoint: String? = nil,
264 |         configure: (RunAgentInputBuilder) -> RunAgentInputBuilder = { $0 }
265 |     ) async throws -> EventStream<URLSession.AsyncBytes> {
    |                                              `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
266 |         let input = try configure(
267 |             RunAgentInput.builder()
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:146:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
144 |         endpoint: String,
145 |         input: RunAgentInput
146 |     ) async throws -> URLSession.AsyncBytes {
    |                                  `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
147 |         // Construct URL
148 |         let url = configuration.baseURL.appendingPathComponent(endpoint)
[111/141] Compiling AGUIClient AgentState.swift
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:214:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
212 |         _ input: RunAgentInput,
213 |         endpoint: String? = nil
214 |     ) async throws -> EventStream<URLSession.AsyncBytes> {
    |                                              `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
215 |         let bytes = try await transport.execute(
216 |             endpoint: endpoint ?? defaultEndpoint,
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:265:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
263 |         endpoint: String? = nil,
264 |         configure: (RunAgentInputBuilder) -> RunAgentInputBuilder = { $0 }
265 |     ) async throws -> EventStream<URLSession.AsyncBytes> {
    |                                              `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
266 |         let input = try configure(
267 |             RunAgentInput.builder()
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:146:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
144 |         endpoint: String,
145 |         input: RunAgentInput
146 |     ) async throws -> URLSession.AsyncBytes {
    |                                  `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
147 |         // Construct URL
148 |         let url = configuration.baseURL.appendingPathComponent(endpoint)
[112/141] Compiling AGUIClient SubscriberManager.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 |     /// - Returns: An HTTP response containing streaming bytes and metadata
57 |     /// - Throws: `ClientError` if the request fails
58 |     func execute(_ request: URLRequest) async throws -> HTTPResponse
   |                             `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:64:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
62 | public struct HTTPResponse: Sendable {
63 |     /// Streaming response bytes.
64 |     public let bytes: URLSession.AsyncBytes
   |                                  `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
65 |
66 |     /// HTTP response metadata.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:67:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 |     /// HTTP response metadata.
67 |     public let httpResponse: HTTPURLResponse
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |
69 |     /// HTTP status code.
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/AGUIClient/Transport/HTTPClient.swift:84:35: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
82 |     ///   - bytes: Streaming response bytes
83 |     ///   - httpResponse: HTTP response metadata
84 |     public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
   |                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
85 |         self.bytes = bytes
86 |         self.httpResponse = httpResponse
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |     ///   - bytes: Streaming response bytes
83 |     ///   - httpResponse: HTTP response metadata
84 |     public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
   |                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 |         self.bytes = bytes
86 |         self.httpResponse = httpResponse
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/AGUIClient/Transport/HTTPClient.swift:67:16: warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-Sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 |
66 |     /// HTTP response metadata.
67 |     public let httpResponse: HTTPURLResponse
   |                `- warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-Sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 |
69 |     /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:71:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
69 |     /// HTTP status code.
70 |     public var statusCode: Int {
71 |         httpResponse.statusCode
   |                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
72 |     }
73 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:76:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
74 |     /// Response headers.
75 |     public var headers: [AnyHashable: Any] {
76 |         httpResponse.allHeaderFields
   |                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
77 |     }
78 |
[113/141] Compiling AGUIClient HTTPClient.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 |     /// - Returns: An HTTP response containing streaming bytes and metadata
57 |     /// - Throws: `ClientError` if the request fails
58 |     func execute(_ request: URLRequest) async throws -> HTTPResponse
   |                             `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:64:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
62 | public struct HTTPResponse: Sendable {
63 |     /// Streaming response bytes.
64 |     public let bytes: URLSession.AsyncBytes
   |                                  `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
65 |
66 |     /// HTTP response metadata.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:67:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 |     /// HTTP response metadata.
67 |     public let httpResponse: HTTPURLResponse
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |
69 |     /// HTTP status code.
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/AGUIClient/Transport/HTTPClient.swift:84:35: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
82 |     ///   - bytes: Streaming response bytes
83 |     ///   - httpResponse: HTTP response metadata
84 |     public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
   |                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
85 |         self.bytes = bytes
86 |         self.httpResponse = httpResponse
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |     ///   - bytes: Streaming response bytes
83 |     ///   - httpResponse: HTTP response metadata
84 |     public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
   |                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 |         self.bytes = bytes
86 |         self.httpResponse = httpResponse
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/AGUIClient/Transport/HTTPClient.swift:67:16: warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-Sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 |
66 |     /// HTTP response metadata.
67 |     public let httpResponse: HTTPURLResponse
   |                `- warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-Sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 |
69 |     /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:71:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
69 |     /// HTTP status code.
70 |     public var statusCode: Int {
71 |         httpResponse.statusCode
   |                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
72 |     }
73 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:76:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
74 |     /// Response headers.
75 |     public var headers: [AnyHashable: Any] {
76 |         httpResponse.allHeaderFields
   |                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
77 |     }
78 |
[114/141] Compiling AGUIClient HttpAgentConfiguration.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 |     /// - Returns: An HTTP response containing streaming bytes and metadata
57 |     /// - Throws: `ClientError` if the request fails
58 |     func execute(_ request: URLRequest) async throws -> HTTPResponse
   |                             `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:64:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
62 | public struct HTTPResponse: Sendable {
63 |     /// Streaming response bytes.
64 |     public let bytes: URLSession.AsyncBytes
   |                                  `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
65 |
66 |     /// HTTP response metadata.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:67:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 |     /// HTTP response metadata.
67 |     public let httpResponse: HTTPURLResponse
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |
69 |     /// HTTP status code.
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/AGUIClient/Transport/HTTPClient.swift:84:35: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
82 |     ///   - bytes: Streaming response bytes
83 |     ///   - httpResponse: HTTP response metadata
84 |     public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
   |                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
85 |         self.bytes = bytes
86 |         self.httpResponse = httpResponse
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |     ///   - bytes: Streaming response bytes
83 |     ///   - httpResponse: HTTP response metadata
84 |     public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
   |                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 |         self.bytes = bytes
86 |         self.httpResponse = httpResponse
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/AGUIClient/Transport/HTTPClient.swift:67:16: warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-Sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 |
66 |     /// HTTP response metadata.
67 |     public let httpResponse: HTTPURLResponse
   |                `- warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-Sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 |
69 |     /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:71:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
69 |     /// HTTP status code.
70 |     public var statusCode: Int {
71 |         httpResponse.statusCode
   |                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
72 |     }
73 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:76:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
74 |     /// Response headers.
75 |     public var headers: [AnyHashable: Any] {
76 |         httpResponse.allHeaderFields
   |                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
77 |     }
78 |
[115/141] Compiling AGUIClient HttpTransport.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:146:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
144 |         endpoint: String,
145 |         input: RunAgentInput
146 |     ) async throws -> URLSession.AsyncBytes {
    |                                  `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
147 |         // Construct URL
148 |         let url = configuration.baseURL.appendingPathComponent(endpoint)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:93:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 91 |         } else {
 92 |             // Create default URLSession-based client
 93 |             let sessionConfig = URLSessionConfiguration.default
    |                                                         `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 94 |             // timeoutIntervalForRequest: max idle time between consecutive bytes (per-chunk).
 95 |             // For AI streaming, the inference step can take 30-120 s before the first
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:107:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
105 |             sessionConfig.httpAdditionalHeaders = headers
106 |
107 |             let session = URLSession(configuration: sessionConfig)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
108 |             self.httpClient = URLSessionHTTPClient(session: session)
109 |         }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:151:23: error: cannot find 'URLRequest' in scope
149 |
150 |         // Create request
151 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
152 |         request.httpMethod = "POST"
153 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 |     /// - Returns: An HTTP response containing streaming bytes and metadata
57 |     /// - Throws: `ClientError` if the request fails
58 |     func execute(_ request: URLRequest) async throws -> HTTPResponse
   |                             `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:50:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 | /// ```
 49 | public actor URLSessionHTTPClient: HTTPClient {
 50 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |
 52 |     /// Creates a new URLSession HTTP client with the specified session.
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/AGUIClient/Transport/URLSessionHTTPClient.swift:68:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     /// let client = URLSessionHTTPClient(session: session)
 67 |     /// ```
 68 |     public init(session: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         self.session = session
 70 |     }
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/AGUIClient/Transport/URLSessionHTTPClient.swift:88:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |     /// ```
 87 |     public static func create(
 88 |         configuration: URLSessionConfiguration = .default
    |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |     ) -> URLSessionHTTPClient {
 90 |         let session = URLSession(configuration: configuration)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:88:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 86 |     /// ```
 87 |     public static func create(
 88 |         configuration: URLSessionConfiguration = .default
    |                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 89 |     ) -> URLSessionHTTPClient {
 90 |         let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:88:51: error: value of type '_' expected to be instance of class or class-constrained type
 86 |     /// ```
 87 |     public static func create(
 88 |         configuration: URLSessionConfiguration = .default
    |                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 89 |     ) -> URLSessionHTTPClient {
 90 |         let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:106:36: error: cannot find type 'URLRequest' in scope
104 |     /// - `.cancelled` → `.cancelled`
105 |     /// - Other errors → `.networkError`
106 |     public func execute(_ request: URLRequest) async throws -> HTTPResponse {
    |                                    `- error: cannot find type 'URLRequest' in scope
107 |         let (bytes, response): (URLSession.AsyncBytes, URLResponse)
108 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:90:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 88 |         configuration: URLSessionConfiguration = .default
 89 |     ) -> URLSessionHTTPClient {
 90 |         let session = URLSession(configuration: configuration)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 91 |         return URLSessionHTTPClient(session: session)
 92 |     }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:107:44: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
105 |     /// - Other errors → `.networkError`
106 |     public func execute(_ request: URLRequest) async throws -> HTTPResponse {
107 |         let (bytes, response): (URLSession.AsyncBytes, URLResponse)
    |                                            `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
108 |
109 |         do {
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:110:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
108 |
109 |         do {
110 |             (bytes, response) = try await session.bytes(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
111 |         } catch let error as URLError {
112 |             throw mapURLError(error)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:35: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
82 |     ///   - bytes: Streaming response bytes
83 |     ///   - httpResponse: HTTP response metadata
84 |     public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
   |                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
85 |         self.bytes = bytes
86 |         self.httpResponse = httpResponse
[116/141] Compiling AGUIClient URLSessionHTTPClient.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:146:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
144 |         endpoint: String,
145 |         input: RunAgentInput
146 |     ) async throws -> URLSession.AsyncBytes {
    |                                  `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
147 |         // Construct URL
148 |         let url = configuration.baseURL.appendingPathComponent(endpoint)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:93:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 91 |         } else {
 92 |             // Create default URLSession-based client
 93 |             let sessionConfig = URLSessionConfiguration.default
    |                                                         `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 94 |             // timeoutIntervalForRequest: max idle time between consecutive bytes (per-chunk).
 95 |             // For AI streaming, the inference step can take 30-120 s before the first
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:107:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
105 |             sessionConfig.httpAdditionalHeaders = headers
106 |
107 |             let session = URLSession(configuration: sessionConfig)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
108 |             self.httpClient = URLSessionHTTPClient(session: session)
109 |         }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:151:23: error: cannot find 'URLRequest' in scope
149 |
150 |         // Create request
151 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
152 |         request.httpMethod = "POST"
153 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 |     /// - Returns: An HTTP response containing streaming bytes and metadata
57 |     /// - Throws: `ClientError` if the request fails
58 |     func execute(_ request: URLRequest) async throws -> HTTPResponse
   |                             `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:50:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 | /// ```
 49 | public actor URLSessionHTTPClient: HTTPClient {
 50 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |
 52 |     /// Creates a new URLSession HTTP client with the specified session.
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/AGUIClient/Transport/URLSessionHTTPClient.swift:68:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     /// let client = URLSessionHTTPClient(session: session)
 67 |     /// ```
 68 |     public init(session: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         self.session = session
 70 |     }
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/AGUIClient/Transport/URLSessionHTTPClient.swift:88:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |     /// ```
 87 |     public static func create(
 88 |         configuration: URLSessionConfiguration = .default
    |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |     ) -> URLSessionHTTPClient {
 90 |         let session = URLSession(configuration: configuration)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:88:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 86 |     /// ```
 87 |     public static func create(
 88 |         configuration: URLSessionConfiguration = .default
    |                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 89 |     ) -> URLSessionHTTPClient {
 90 |         let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:88:51: error: value of type '_' expected to be instance of class or class-constrained type
 86 |     /// ```
 87 |     public static func create(
 88 |         configuration: URLSessionConfiguration = .default
    |                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 89 |     ) -> URLSessionHTTPClient {
 90 |         let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:106:36: error: cannot find type 'URLRequest' in scope
104 |     /// - `.cancelled` → `.cancelled`
105 |     /// - Other errors → `.networkError`
106 |     public func execute(_ request: URLRequest) async throws -> HTTPResponse {
    |                                    `- error: cannot find type 'URLRequest' in scope
107 |         let (bytes, response): (URLSession.AsyncBytes, URLResponse)
108 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:90:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 88 |         configuration: URLSessionConfiguration = .default
 89 |     ) -> URLSessionHTTPClient {
 90 |         let session = URLSession(configuration: configuration)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 91 |         return URLSessionHTTPClient(session: session)
 92 |     }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:107:44: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
105 |     /// - Other errors → `.networkError`
106 |     public func execute(_ request: URLRequest) async throws -> HTTPResponse {
107 |         let (bytes, response): (URLSession.AsyncBytes, URLResponse)
    |                                            `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
108 |
109 |         do {
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:110:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
108 |
109 |         do {
110 |             (bytes, response) = try await session.bytes(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
111 |         } catch let error as URLError {
112 |             throw mapURLError(error)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:35: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
82 |     ///   - bytes: Streaming response bytes
83 |     ///   - httpResponse: HTTP response metadata
84 |     public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
   |                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
85 |         self.bytes = bytes
86 |         self.httpResponse = httpResponse
[117/141] Compiling AGUITools ToolExecutor.swift
[118/142] Compiling AGUITools ToolExecutionContext.swift
[120/142] Compiling AGUITools ToolExecutionResult.swift
[121/142] Compiling AGUITools ToolResponseHandler.swift
[122/142] Compiling AGUITools ToolExecutionStats.swift
[123/142] Compiling AGUITools ToolExecutionManager.swift
[124/142] Compiling AGUITools AGUITools.swift
[125/142] Compiling AGUITools ToolErrorHandler.swift
[126/142] Emitting module AGUITools
[127/142] Compiling AGUIClient ChunkTransformer.swift
[128/142] Compiling AGUIClient EventStream.swift
[129/142] Compiling AGUIClient EventVerifier.swift
[130/142] Compiling AGUIClient SseEvent.swift
[131/142] Compiling AGUIClient SseParser.swift
[132/142] Compiling AGUIClient AgentSubscriber.swift
[136/142] Compiling AGUITools ToolRegistry.swift
[138/143] Compiling AGUIClient ThinkingTelemetryState.swift
[139/143] Compiling AGUIClient AsyncSequence+Buffering.swift
[140/143] Compiling AGUIClient BufferingStrategy.swift
[141/143] Compiling AGUIClient DefaultApplyEvents.swift
/host/spi-builder-workspace/Sources/AGUIClient/State/PatchApplicator.swift:310:13: warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
308 |
309 |         // Remove from 'from' path
310 |         var intermediate = try applyRemove(path: from, from: state)
    |             `- warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
311 |
312 |         // Add to 'to' path
[142/143] Compiling AGUIClient PatchApplicator.swift
/host/spi-builder-workspace/Sources/AGUIClient/State/PatchApplicator.swift:310:13: warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
308 |
309 |         // Remove from 'from' path
310 |         var intermediate = try applyRemove(path: from, from: state)
    |             `- warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
311 |
312 |         // Add to 'to' path
[143/143] Compiling AGUIClient StateManager.swift
/host/spi-builder-workspace/Sources/AGUIClient/State/PatchApplicator.swift:310:13: warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
308 |
309 |         // Remove from 'from' path
310 |         var intermediate = try applyRemove(path: from, from: state)
    |             `- warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
311 |
312 |         // Add to 'to' path
BUILD FAILURE 6.2 android