The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AGUISwift, reference 0.1.0 (59603f), with Swift 6.3 for Android on 18 Apr 2026 09:59:40 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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.3-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.3
Building package at path:  $PWD
https://github.com/paduh/ag-ui-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-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.37s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.6 (3.03s)
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.44s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.00s)
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--4F562202D5529B1.txt
[8/94] Emitting module AGUICore
[9/94] Compiling AGUICore ToolCallChunkEvent.swift
[10/94] Compiling AGUICore ToolCallEndEvent.swift
[11/94] Compiling AGUICore ToolCallResultEvent.swift
[12/94] Compiling AGUICore ToolCallStartEvent.swift
[13/94] Compiling AGUICore UnknownEvent.swift
[14/94] Compiling AGUICore Context.swift
[15/94] Compiling AGUICore RunAgentInput.swift
[16/94] Compiling AGUICore RunAgentInputBuilder.swift
[17/94] Compiling AGUICore State.swift
[18/94] Compiling AGUICore BinaryInputContent.swift
[19/94] Compiling AGUICore InputContent.swift
[20/94] Compiling AGUICore TextInputContent.swift
[21/94] Compiling AGUICore ToolCallEndEventDTO.swift
[22/94] Compiling AGUICore ToolCallResultEventDTO.swift
[23/94] Compiling AGUICore ToolCallStartEventDTO.swift
[24/94] Compiling AGUICore TypeDiscriminator.swift
[25/94] Compiling AGUICore EventDecodingError.swift
[26/94] Compiling AGUICore BinaryInputContentDTO.swift
[27/94] Compiling AGUICore TextInputContentDTO.swift
[28/94] Compiling AGUICore ActivityMessageDTO.swift
[29/94] Compiling AGUICore AssistantMessageDTO.swift
[30/94] Compiling AGUICore DeveloperMessageDTO.swift
[31/94] Compiling AGUICore MessageDecodingHelpers.swift
[32/94] Compiling AGUICore SystemMessageDTO.swift
[33/94] Compiling AGUICore StateDeltaEvent.swift
[34/94] Compiling AGUICore StateSnapshotEvent.swift
[35/94] Compiling AGUICore TextMessageChunkEvent.swift
[36/94] Compiling AGUICore TextMessageContentEvent.swift
[37/94] Compiling AGUICore TextMessageEndEvent.swift
[38/94] Compiling AGUICore TextMessageStartEvent.swift
[39/94] Compiling AGUICore ThinkingEndEvent.swift
[40/94] Compiling AGUICore ThinkingStartEvent.swift
[41/94] Compiling AGUICore ThinkingTextMessageContentEvent.swift
[42/94] Compiling AGUICore ThinkingTextMessageEndEvent.swift
[43/94] Compiling AGUICore ThinkingTextMessageStartEvent.swift
[44/94] Compiling AGUICore ToolCallArgsEvent.swift
[45/94] Compiling AGUICore ToolMessageDTO.swift
[46/94] Compiling AGUICore UserMessageDTO.swift
[47/94] Compiling AGUICore MessageDecoder.swift
[48/94] Compiling AGUICore ActivityEventRegistry.swift
[49/94] Compiling AGUICore LifecycleEventRegistry.swift
[50/94] Compiling AGUICore SpecialEventRegistry.swift
[51/94] Compiling AGUICore StateEventRegistry.swift
[52/94] Compiling AGUICore TextMessageEventRegistry.swift
[53/94] Compiling AGUICore ThinkingEventRegistry.swift
[54/94] Compiling AGUICore ToolCallEventRegistry.swift
[55/94] Compiling AGUICore RegistryComposer.swift
[56/94] Compiling AGUICore MessageEncoder.swift
[57/94] Compiling AGUICore EventType.swift
[58/94] Compiling AGUICore AGUIEvent.swift
[59/94] Compiling AGUICore ActivityDeltaEvent.swift
[60/94] Compiling AGUICore ActivitySnapshotEvent.swift
[61/94] Compiling AGUICore RunErrorEvent.swift
[62/94] Compiling AGUICore RunFinishedEvent.swift
[63/94] Compiling AGUICore RunStartedEvent.swift
[64/94] Compiling AGUICore StepFinishedEvent.swift
[65/94] Compiling AGUICore StepStartedEvent.swift
[66/94] Compiling AGUICore CustomEvent.swift
[67/94] Compiling AGUICore RawEvent.swift
[68/94] Compiling AGUICore MessagesSnapshotEvent.swift
[69/94] Compiling AGUICore StateDeltaEventDTO.swift
[70/94] Compiling AGUICore StateSnapshotEventDTO.swift
[71/94] Compiling AGUICore TextMessageChunkEventDTO.swift
[72/94] Compiling AGUICore TextMessageContentEventDTO.swift
[73/94] Compiling AGUICore TextMessageEndEventDTO.swift
[74/94] Compiling AGUICore TextMessageStartEventDTO.swift
[75/94] Compiling AGUICore ThinkingEndEventDTO.swift
[76/94] Compiling AGUICore ThinkingStartEventDTO.swift
[77/94] Compiling AGUICore ThinkingTextMessageContentEventDTO.swift
[78/94] Compiling AGUICore ThinkingTextMessageEndEventDTO.swift
[79/94] Compiling AGUICore ThinkingTextMessageStartEventDTO.swift
[80/94] Compiling AGUICore ToolCallArgsEventDTO.swift
[81/94] Compiling AGUICore ToolCallChunkEventDTO.swift
[82/94] Compiling AGUICore AGUICore.swift
[83/94] Compiling AGUICore AGUIEventDecoder.swift
[84/94] Compiling AGUICore ActivityDeltaEventDTO.swift
[85/94] Compiling AGUICore ActivitySnapshotEventDTO.swift
[86/94] Compiling AGUICore EventDecodingHelpers.swift
[87/94] Compiling AGUICore RunErrorEventDTO.swift
[88/94] Compiling AGUICore RunFinishedEventDTO.swift
[89/94] Compiling AGUICore RunStartedEventDTO.swift
[90/94] Compiling AGUICore StepFinishedEventDTO.swift
[91/94] Compiling AGUICore StepStartedEventDTO.swift
[92/94] Compiling AGUICore CustomEventDTO.swift
[93/94] Compiling AGUICore RawEventDTO.swift
[94/94] Compiling AGUICore MessagesSnapshotEventDTO.swift
[95/106] Compiling AGUICore ActivityMessage.swift
[96/106] Compiling AGUICore AssistantMessage.swift
[97/106] Compiling AGUICore DeveloperMessage.swift
[98/106] Compiling AGUICore Message.swift
[99/106] Compiling AGUICore Role.swift
[100/106] Compiling AGUICore SystemMessage.swift
[101/106] Compiling AGUICore ToolMessage.swift
[102/106] Compiling AGUICore UserMessage.swift
[103/106] Compiling AGUICore FunctionCall.swift
[104/106] Compiling AGUICore Tool.swift
[105/106] Compiling AGUICore ToolCall.swift
[106/106] Compiling AGUICore JSONCodingHelpers.swift
[108/139] Compiling AGUIClient ClientError.swift
[109/139] Compiling AGUIClient HttpAgent.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[110/140] 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 '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 '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 |
[111/142] Compiling AGUITools ToolExecutionManager.swift
[112/142] 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 '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 '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/142] 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 '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 '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/142] 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 '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 '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/142] Compiling AGUITools ToolExecutor.swift
[116/142] Compiling AGUITools ToolResponseHandler.swift
[117/142] Compiling AGUITools ToolExecutionResult.swift
[118/142] Compiling AGUITools ToolExecutionStats.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)
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:272:47: error: extra argument 'endpoint' in call
270 |         ).build()
271 |
272 |         return try await run(input, endpoint: endpoint)
    |                                               `- error: extra argument 'endpoint' in call
273 |     }
274 |
/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)
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:272:47: error: extra argument 'endpoint' in call
270 |         ).build()
271 |
272 |         return try await run(input, endpoint: endpoint)
    |                                               `- error: extra argument 'endpoint' in call
273 |     }
274 |
[121/142] 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)
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:272:47: error: extra argument 'endpoint' in call
270 |         ).build()
271 |
272 |         return try await run(input, endpoint: endpoint)
    |                                               `- error: extra argument 'endpoint' in call
273 |     }
274 |
[122/142] 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: 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: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: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
[123/142] 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: 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: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: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
[124/142] Compiling AGUIClient ThinkingTelemetryState.swift
[125/142] Compiling AGUIClient AsyncSequence+Buffering.swift
[126/142] Compiling AGUIClient BufferingStrategy.swift
[127/142] Compiling AGUITools ToolRegistry.swift
[130/142] Emitting module AGUITools
[132/143] Compiling AGUIClient AGUIClient.swift
[133/143] Compiling AGUIClient AbstractAgent.swift
[134/143] Compiling AGUIClient AgentConfig.swift
[135/143] Compiling AGUIClient SseEvent.swift
[136/143] Compiling AGUIClient SseParser.swift
[137/143] Compiling AGUIClient AgentSubscriber.swift
[138/143] Compiling AGUIClient ChunkTransformer.swift
[139/143] Compiling AGUIClient EventStream.swift
[140/143] Compiling AGUIClient EventVerifier.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.3 android