The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AGUISwift, reference 0.1.0 (59603f), with Swift 6.1 for Android on 18 Apr 2026 10:01:22 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 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.1
Building package at path:  $PWD
https://github.com/paduh/ag-ui-swift.git
https://github.com/paduh/ag-ui-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d37fe7b8fba27dae59fb1d9d7dfa86b38b41ffb3975924aad6f05cb4cc3de131
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-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.67s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.6 (3.32s)
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.41s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.11s)
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
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
[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-24593BA9C3E375BF.txt
[8/94] Emitting module AGUICore
[9/106] Compiling AGUICore AGUICore.swift
[10/106] Compiling AGUICore AGUIEventDecoder.swift
[11/106] Compiling AGUICore ActivityDeltaEventDTO.swift
[12/106] Compiling AGUICore ActivitySnapshotEventDTO.swift
[13/106] Compiling AGUICore EventDecodingHelpers.swift
[14/106] Compiling AGUICore RunErrorEventDTO.swift
[15/106] Compiling AGUICore RunFinishedEventDTO.swift
[16/106] Compiling AGUICore RunStartedEventDTO.swift
[17/106] Compiling AGUICore StepFinishedEventDTO.swift
[18/106] Compiling AGUICore StepStartedEventDTO.swift
[19/106] Compiling AGUICore CustomEventDTO.swift
[20/106] Compiling AGUICore RawEventDTO.swift
[21/106] Compiling AGUICore MessagesSnapshotEventDTO.swift
[22/106] Compiling AGUICore ToolMessageDTO.swift
[23/106] Compiling AGUICore UserMessageDTO.swift
[24/106] Compiling AGUICore MessageDecoder.swift
[25/106] Compiling AGUICore ActivityEventRegistry.swift
[26/106] Compiling AGUICore LifecycleEventRegistry.swift
[27/106] Compiling AGUICore SpecialEventRegistry.swift
[28/106] Compiling AGUICore StateEventRegistry.swift
[29/106] Compiling AGUICore TextMessageEventRegistry.swift
[30/106] Compiling AGUICore ThinkingEventRegistry.swift
[31/106] Compiling AGUICore ToolCallEventRegistry.swift
[32/106] Compiling AGUICore RegistryComposer.swift
[33/106] Compiling AGUICore MessageEncoder.swift
[34/106] Compiling AGUICore StateDeltaEventDTO.swift
[35/106] Compiling AGUICore StateSnapshotEventDTO.swift
[36/106] Compiling AGUICore TextMessageChunkEventDTO.swift
[37/106] Compiling AGUICore TextMessageContentEventDTO.swift
[38/106] Compiling AGUICore TextMessageEndEventDTO.swift
[39/106] Compiling AGUICore TextMessageStartEventDTO.swift
[40/106] Compiling AGUICore ThinkingEndEventDTO.swift
[41/106] Compiling AGUICore ThinkingStartEventDTO.swift
[42/106] Compiling AGUICore ThinkingTextMessageContentEventDTO.swift
[43/106] Compiling AGUICore ThinkingTextMessageEndEventDTO.swift
[44/106] Compiling AGUICore ThinkingTextMessageStartEventDTO.swift
[45/106] Compiling AGUICore ToolCallArgsEventDTO.swift
[46/106] Compiling AGUICore ToolCallChunkEventDTO.swift
[47/106] Compiling AGUICore ToolCallEndEventDTO.swift
[48/106] Compiling AGUICore ToolCallResultEventDTO.swift
[49/106] Compiling AGUICore ToolCallStartEventDTO.swift
[50/106] Compiling AGUICore TypeDiscriminator.swift
[51/106] Compiling AGUICore EventDecodingError.swift
[52/106] Compiling AGUICore BinaryInputContentDTO.swift
[53/106] Compiling AGUICore TextInputContentDTO.swift
[54/106] Compiling AGUICore ActivityMessageDTO.swift
[55/106] Compiling AGUICore AssistantMessageDTO.swift
[56/106] Compiling AGUICore DeveloperMessageDTO.swift
[57/106] Compiling AGUICore MessageDecodingHelpers.swift
[58/106] Compiling AGUICore SystemMessageDTO.swift
[59/106] Compiling AGUICore ToolCallChunkEvent.swift
[60/106] Compiling AGUICore ToolCallEndEvent.swift
[61/106] Compiling AGUICore ToolCallResultEvent.swift
[62/106] Compiling AGUICore ToolCallStartEvent.swift
[63/106] Compiling AGUICore UnknownEvent.swift
[64/106] Compiling AGUICore Context.swift
[65/106] Compiling AGUICore RunAgentInput.swift
[66/106] Compiling AGUICore RunAgentInputBuilder.swift
[67/106] Compiling AGUICore State.swift
[68/106] Compiling AGUICore BinaryInputContent.swift
[69/106] Compiling AGUICore InputContent.swift
[70/106] Compiling AGUICore TextInputContent.swift
[71/106] Compiling AGUICore StateDeltaEvent.swift
[72/106] Compiling AGUICore StateSnapshotEvent.swift
[73/106] Compiling AGUICore TextMessageChunkEvent.swift
[74/106] Compiling AGUICore TextMessageContentEvent.swift
[75/106] Compiling AGUICore TextMessageEndEvent.swift
[76/106] Compiling AGUICore TextMessageStartEvent.swift
[77/106] Compiling AGUICore ThinkingEndEvent.swift
[78/106] Compiling AGUICore ThinkingStartEvent.swift
[79/106] Compiling AGUICore ThinkingTextMessageContentEvent.swift
[80/106] Compiling AGUICore ThinkingTextMessageEndEvent.swift
[81/106] Compiling AGUICore ThinkingTextMessageStartEvent.swift
[82/106] Compiling AGUICore ToolCallArgsEvent.swift
[83/106] Compiling AGUICore ActivityMessage.swift
[84/106] Compiling AGUICore AssistantMessage.swift
[85/106] Compiling AGUICore DeveloperMessage.swift
[86/106] Compiling AGUICore Message.swift
[87/106] Compiling AGUICore Role.swift
[88/106] Compiling AGUICore SystemMessage.swift
[89/106] Compiling AGUICore ToolMessage.swift
[90/106] Compiling AGUICore UserMessage.swift
[91/106] Compiling AGUICore FunctionCall.swift
[92/106] Compiling AGUICore Tool.swift
[93/106] Compiling AGUICore ToolCall.swift
[94/106] Compiling AGUICore JSONCodingHelpers.swift
[95/106] Compiling AGUICore EventType.swift
[96/106] Compiling AGUICore AGUIEvent.swift
[97/106] Compiling AGUICore ActivityDeltaEvent.swift
[98/106] Compiling AGUICore ActivitySnapshotEvent.swift
[99/106] Compiling AGUICore RunErrorEvent.swift
[100/106] Compiling AGUICore RunFinishedEvent.swift
[101/106] Compiling AGUICore RunStartedEvent.swift
[102/106] Compiling AGUICore StepFinishedEvent.swift
[103/106] Compiling AGUICore StepStartedEvent.swift
[104/106] Compiling AGUICore CustomEvent.swift
[105/106] Compiling AGUICore RawEvent.swift
[106/106] Compiling AGUICore MessagesSnapshotEvent.swift
[108/139] Compiling AGUITools ToolExecutor.swift
[109/140] 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 |
[110/140] 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 |
[111/140] 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 |
[112/142] Compiling AGUITools ToolExecutionStats.swift
[113/142] Compiling AGUITools ToolResponseHandler.swift
[114/142] Compiling AGUITools ToolExecutionResult.swift
[115/142] Compiling AGUIClient SseEvent.swift
[116/142] Compiling AGUIClient SseParser.swift
[117/142] Compiling AGUIClient AgentSubscriber.swift
[118/142] Compiling AGUITools ToolExecutionContext.swift
[119/142] Compiling AGUITools ToolExecutionEvent.swift
[120/142] Compiling AGUITools ToolExecutionManager.swift
[121/142] Compiling AGUIClient HttpTransport.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/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/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: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
[122/142] Compiling AGUIClient URLSessionHTTPClient.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/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/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: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 AsyncSequence+Buffering.swift
[125/142] Compiling AGUIClient BufferingStrategy.swift
[126/142] Emitting module AGUITools
[127/142] Compiling AGUITools AGUITools.swift
[128/142] Compiling AGUITools ToolErrorHandler.swift
[129/142] Compiling AGUITools ToolRegistry.swift
/host/spi-builder-workspace/Sources/AGUITools/Registry/ToolRegistry.swift:328:15: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
322 | /// - Returns: The result of the operation
323 | /// - Throws: ``ToolExecutionError/timeout(toolName:duration:)`` if timeout exceeded
324 | private func withTimeout<T>(
    |                          `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
325 |     _ duration: Duration,
326 |     operation: @escaping @Sendable () async throws -> T
327 | ) async throws -> T {
328 |     try await withThrowingTaskGroup(of: T.self) { group in
    |               `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
329 |         group.addTask {
330 |             try await operation()
/host/spi-builder-workspace/Sources/AGUITools/Registry/ToolRegistry.swift:329:15: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
322 | /// - Returns: The result of the operation
323 | /// - Throws: ``ToolExecutionError/timeout(toolName:duration:)`` if timeout exceeded
324 | private func withTimeout<T>(
    |                          `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
325 |     _ duration: Duration,
326 |     operation: @escaping @Sendable () async throws -> T
327 | ) async throws -> T {
328 |     try await withThrowingTaskGroup(of: T.self) { group in
329 |         group.addTask {
    |               `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
330 |             try await operation()
331 |         }
/host/spi-builder-workspace/Sources/AGUITools/Registry/ToolRegistry.swift:333:15: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
322 | /// - Returns: The result of the operation
323 | /// - Throws: ``ToolExecutionError/timeout(toolName:duration:)`` if timeout exceeded
324 | private func withTimeout<T>(
    |                          `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
325 |     _ duration: Duration,
326 |     operation: @escaping @Sendable () async throws -> T
    :
331 |         }
332 |
333 |         group.addTask {
    |               `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
334 |             try await Task.sleep(for: duration)
335 |             throw ToolExecutionError.timeout(toolName: "unknown", duration: duration)
/host/spi-builder-workspace/Sources/AGUITools/Registry/ToolRegistry.swift:338:38: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
322 | /// - Returns: The result of the operation
323 | /// - Throws: ``ToolExecutionError/timeout(toolName:duration:)`` if timeout exceeded
324 | private func withTimeout<T>(
    |                          `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
325 |     _ duration: Duration,
326 |     operation: @escaping @Sendable () async throws -> T
    :
336 |         }
337 |
338 |         let result = try await group.next()!
    |                                      `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
339 |         group.cancelAll()
340 |         return result
/host/spi-builder-workspace/Sources/AGUITools/Registry/ToolRegistry.swift:339:15: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
322 | /// - Returns: The result of the operation
323 | /// - Throws: ``ToolExecutionError/timeout(toolName:duration:)`` if timeout exceeded
324 | private func withTimeout<T>(
    |                          `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
325 |     _ duration: Duration,
326 |     operation: @escaping @Sendable () async throws -> T
    :
337 |
338 |         let result = try await group.next()!
339 |         group.cancelAll()
    |               `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
340 |         return result
341 |     }
[131/143] Compiling AGUIClient ChunkTransformer.swift
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/ChunkTransformer.swift:78:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 76 |     ) -> AsyncThrowingStream<any AGUIEvent, Error> where S.Element == any AGUIEvent {
 77 |         AsyncThrowingStream { continuation in
 78 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 79 |                 let transformer = EventTransformer(continuation: continuation)
 80 |                 await transformer.processEvents(events)
    |                                                 `- note: closure captures 'events' which is accessible to code in the current task
 81 |             }
 82 |         }
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/ChunkTransformer.swift:80:35: warning: sending 'events' risks causing data races; this is an error in the Swift 6 language mode
 78 |             Task {
 79 |                 let transformer = EventTransformer(continuation: continuation)
 80 |                 await transformer.processEvents(events)
    |                                   |- warning: sending 'events' risks causing data races; this is an error in the Swift 6 language mode
    |                                   `- note: sending task-isolated 'events' to actor-isolated instance method 'processEvents' risks causing data races between actor-isolated and task-isolated uses
 81 |             }
 82 |         }
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/EventVerifier.swift:252:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
250 |     public func verifyEvents(debug: Bool = false) -> AsyncThrowingStream<any AGUIEvent, Error> {
251 |         AsyncThrowingStream { continuation in
252 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
253 |                 let verifier = EventVerifier(debug: debug)
254 |                 do {
255 |                     for try await event in self {
    |                                            `- note: closure captures 'self' which is accessible to code in the current task
256 |                         try verifier.verify(event)
257 |                         continuation.yield(event)
[132/143] Compiling AGUIClient EventStream.swift
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/ChunkTransformer.swift:78:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 76 |     ) -> AsyncThrowingStream<any AGUIEvent, Error> where S.Element == any AGUIEvent {
 77 |         AsyncThrowingStream { continuation in
 78 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 79 |                 let transformer = EventTransformer(continuation: continuation)
 80 |                 await transformer.processEvents(events)
    |                                                 `- note: closure captures 'events' which is accessible to code in the current task
 81 |             }
 82 |         }
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/ChunkTransformer.swift:80:35: warning: sending 'events' risks causing data races; this is an error in the Swift 6 language mode
 78 |             Task {
 79 |                 let transformer = EventTransformer(continuation: continuation)
 80 |                 await transformer.processEvents(events)
    |                                   |- warning: sending 'events' risks causing data races; this is an error in the Swift 6 language mode
    |                                   `- note: sending task-isolated 'events' to actor-isolated instance method 'processEvents' risks causing data races between actor-isolated and task-isolated uses
 81 |             }
 82 |         }
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/EventVerifier.swift:252:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
250 |     public func verifyEvents(debug: Bool = false) -> AsyncThrowingStream<any AGUIEvent, Error> {
251 |         AsyncThrowingStream { continuation in
252 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
253 |                 let verifier = EventVerifier(debug: debug)
254 |                 do {
255 |                     for try await event in self {
    |                                            `- note: closure captures 'self' which is accessible to code in the current task
256 |                         try verifier.verify(event)
257 |                         continuation.yield(event)
[133/143] Compiling AGUIClient EventVerifier.swift
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/ChunkTransformer.swift:78:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 76 |     ) -> AsyncThrowingStream<any AGUIEvent, Error> where S.Element == any AGUIEvent {
 77 |         AsyncThrowingStream { continuation in
 78 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 79 |                 let transformer = EventTransformer(continuation: continuation)
 80 |                 await transformer.processEvents(events)
    |                                                 `- note: closure captures 'events' which is accessible to code in the current task
 81 |             }
 82 |         }
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/ChunkTransformer.swift:80:35: warning: sending 'events' risks causing data races; this is an error in the Swift 6 language mode
 78 |             Task {
 79 |                 let transformer = EventTransformer(continuation: continuation)
 80 |                 await transformer.processEvents(events)
    |                                   |- warning: sending 'events' risks causing data races; this is an error in the Swift 6 language mode
    |                                   `- note: sending task-isolated 'events' to actor-isolated instance method 'processEvents' risks causing data races between actor-isolated and task-isolated uses
 81 |             }
 82 |         }
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/EventVerifier.swift:252:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
250 |     public func verifyEvents(debug: Bool = false) -> AsyncThrowingStream<any AGUIEvent, Error> {
251 |         AsyncThrowingStream { continuation in
252 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
253 |                 let verifier = EventVerifier(debug: debug)
254 |                 do {
255 |                     for try await event in self {
    |                                            `- note: closure captures 'self' which is accessible to code in the current task
256 |                         try verifier.verify(event)
257 |                         continuation.yield(event)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[134/143] Emitting module AGUIClient
/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/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: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: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 |
[135/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
/host/spi-builder-workspace/Sources/AGUIClient/State/DefaultApplyEvents.swift:62:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 60 |     ) -> AsyncThrowingStream<AgentState, Error> {
 61 |         AsyncThrowingStream { continuation in
 62 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 63 |                 // Mutable state — all access is serialized within this single Task
 64 |                 var messages: [any Message] = input.messages
    :
 73 |
 74 |                 do {
 75 |                     for try await event in self {
    |                                            `- note: closure captures 'self' which is accessible to code in the current task
 76 |                         // Emit initial messages on first event if present
 77 |                         if !initialMessagesEmitted {
[136/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
/host/spi-builder-workspace/Sources/AGUIClient/State/DefaultApplyEvents.swift:62:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 60 |     ) -> AsyncThrowingStream<AgentState, Error> {
 61 |         AsyncThrowingStream { continuation in
 62 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 63 |                 // Mutable state — all access is serialized within this single Task
 64 |                 var messages: [any Message] = input.messages
    :
 73 |
 74 |                 do {
 75 |                     for try await event in self {
    |                                            `- note: closure captures 'self' which is accessible to code in the current task
 76 |                         // Emit initial messages on first event if present
 77 |                         if !initialMessagesEmitted {
[137/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
/host/spi-builder-workspace/Sources/AGUIClient/State/DefaultApplyEvents.swift:62:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 60 |     ) -> AsyncThrowingStream<AgentState, Error> {
 61 |         AsyncThrowingStream { continuation in
 62 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 63 |                 // Mutable state — all access is serialized within this single Task
 64 |                 var messages: [any Message] = input.messages
    :
 73 |
 74 |                 do {
 75 |                     for try await event in self {
    |                                            `- note: closure captures 'self' which is accessible to code in the current task
 76 |                         // Emit initial messages on first event if present
 77 |                         if !initialMessagesEmitted {
[141/143] Compiling AGUIClient ClientError.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/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)
[142/143] Compiling AGUIClient HttpAgent.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/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)
[143/143] Compiling AGUIClient AgentState.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/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)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d37fe7b8fba27dae59fb1d9d7dfa86b38b41ffb3975924aad6f05cb4cc3de131
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/90] Emitting module AGUICore
[5/102] Compiling AGUICore AGUICore.swift
[6/102] Compiling AGUICore AGUIEventDecoder.swift
[7/102] Compiling AGUICore ActivityDeltaEventDTO.swift
[8/102] Compiling AGUICore ActivitySnapshotEventDTO.swift
[9/102] Compiling AGUICore EventDecodingHelpers.swift
[10/102] Compiling AGUICore RunErrorEventDTO.swift
[11/102] Compiling AGUICore RunFinishedEventDTO.swift
[12/102] Compiling AGUICore RunStartedEventDTO.swift
[13/102] Compiling AGUICore StepFinishedEventDTO.swift
[14/102] Compiling AGUICore StepStartedEventDTO.swift
[15/102] Compiling AGUICore CustomEventDTO.swift
[16/102] Compiling AGUICore RawEventDTO.swift
[17/102] Compiling AGUICore MessagesSnapshotEventDTO.swift
[18/102] Compiling AGUICore ToolCallEndEventDTO.swift
[19/102] Compiling AGUICore ToolCallResultEventDTO.swift
[20/102] Compiling AGUICore ToolCallStartEventDTO.swift
[21/102] Compiling AGUICore TypeDiscriminator.swift
[22/102] Compiling AGUICore EventDecodingError.swift
[23/102] Compiling AGUICore BinaryInputContentDTO.swift
[24/102] Compiling AGUICore TextInputContentDTO.swift
[25/102] Compiling AGUICore ActivityMessageDTO.swift
[26/102] Compiling AGUICore AssistantMessageDTO.swift
[27/102] Compiling AGUICore DeveloperMessageDTO.swift
[28/102] Compiling AGUICore MessageDecodingHelpers.swift
[29/102] Compiling AGUICore SystemMessageDTO.swift
[30/102] Compiling AGUICore ToolMessageDTO.swift
[31/102] Compiling AGUICore UserMessageDTO.swift
[32/102] Compiling AGUICore MessageDecoder.swift
[33/102] Compiling AGUICore ActivityEventRegistry.swift
[34/102] Compiling AGUICore LifecycleEventRegistry.swift
[35/102] Compiling AGUICore SpecialEventRegistry.swift
[36/102] Compiling AGUICore StateEventRegistry.swift
[37/102] Compiling AGUICore TextMessageEventRegistry.swift
[38/102] Compiling AGUICore ThinkingEventRegistry.swift
[39/102] Compiling AGUICore ToolCallEventRegistry.swift
[40/102] Compiling AGUICore RegistryComposer.swift
[41/102] Compiling AGUICore MessageEncoder.swift
[42/102] Compiling AGUICore ToolCallChunkEvent.swift
[43/102] Compiling AGUICore ToolCallEndEvent.swift
[44/102] Compiling AGUICore ToolCallResultEvent.swift
[45/102] Compiling AGUICore ToolCallStartEvent.swift
[46/102] Compiling AGUICore UnknownEvent.swift
[47/102] Compiling AGUICore Context.swift
[48/102] Compiling AGUICore RunAgentInput.swift
[49/102] Compiling AGUICore RunAgentInputBuilder.swift
[50/102] Compiling AGUICore State.swift
[51/102] Compiling AGUICore BinaryInputContent.swift
[52/102] Compiling AGUICore InputContent.swift
[53/102] Compiling AGUICore TextInputContent.swift
[54/102] Compiling AGUICore ActivityMessage.swift
[55/102] Compiling AGUICore AssistantMessage.swift
[56/102] Compiling AGUICore DeveloperMessage.swift
[57/102] Compiling AGUICore Message.swift
[58/102] Compiling AGUICore Role.swift
[59/102] Compiling AGUICore SystemMessage.swift
[60/102] Compiling AGUICore ToolMessage.swift
[61/102] Compiling AGUICore UserMessage.swift
[62/102] Compiling AGUICore FunctionCall.swift
[63/102] Compiling AGUICore Tool.swift
[64/102] Compiling AGUICore ToolCall.swift
[65/102] Compiling AGUICore JSONCodingHelpers.swift
[66/102] Compiling AGUICore StateDeltaEvent.swift
[67/102] Compiling AGUICore StateSnapshotEvent.swift
[68/102] Compiling AGUICore TextMessageChunkEvent.swift
[69/102] Compiling AGUICore TextMessageContentEvent.swift
[70/102] Compiling AGUICore TextMessageEndEvent.swift
[71/102] Compiling AGUICore TextMessageStartEvent.swift
[72/102] Compiling AGUICore ThinkingEndEvent.swift
[73/102] Compiling AGUICore ThinkingStartEvent.swift
[74/102] Compiling AGUICore ThinkingTextMessageContentEvent.swift
[75/102] Compiling AGUICore ThinkingTextMessageEndEvent.swift
[76/102] Compiling AGUICore ThinkingTextMessageStartEvent.swift
[77/102] Compiling AGUICore ToolCallArgsEvent.swift
[78/102] Compiling AGUICore StateDeltaEventDTO.swift
[79/102] Compiling AGUICore StateSnapshotEventDTO.swift
[80/102] Compiling AGUICore TextMessageChunkEventDTO.swift
[81/102] Compiling AGUICore TextMessageContentEventDTO.swift
[82/102] Compiling AGUICore TextMessageEndEventDTO.swift
[83/102] Compiling AGUICore TextMessageStartEventDTO.swift
[84/102] Compiling AGUICore ThinkingEndEventDTO.swift
[85/102] Compiling AGUICore ThinkingStartEventDTO.swift
[86/102] Compiling AGUICore ThinkingTextMessageContentEventDTO.swift
[87/102] Compiling AGUICore ThinkingTextMessageEndEventDTO.swift
[88/102] Compiling AGUICore ThinkingTextMessageStartEventDTO.swift
[89/102] Compiling AGUICore ToolCallArgsEventDTO.swift
[90/102] Compiling AGUICore ToolCallChunkEventDTO.swift
[91/102] Compiling AGUICore EventType.swift
[92/102] Compiling AGUICore AGUIEvent.swift
[93/102] Compiling AGUICore ActivityDeltaEvent.swift
[94/102] Compiling AGUICore ActivitySnapshotEvent.swift
[95/102] Compiling AGUICore RunErrorEvent.swift
[96/102] Compiling AGUICore RunFinishedEvent.swift
[97/102] Compiling AGUICore RunStartedEvent.swift
[98/102] Compiling AGUICore StepFinishedEvent.swift
[99/102] Compiling AGUICore StepStartedEvent.swift
[100/102] Compiling AGUICore CustomEvent.swift
[101/102] Compiling AGUICore RawEvent.swift
[102/102] Compiling AGUICore MessagesSnapshotEvent.swift
[104/135] Compiling AGUIClient AGUIClient.swift
[105/135] Compiling AGUIClient AbstractAgent.swift
[106/136] 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 |
[107/136] 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 |
[108/136] 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 |
[109/138] Compiling AGUITools ToolResponseHandler.swift
[110/138] Compiling AGUITools ToolExecutionStats.swift
[111/138] Compiling AGUITools ToolExecutionResult.swift
[112/138] Compiling AGUITools ToolExecutor.swift
[113/138] Compiling AGUIClient SseEvent.swift
[114/138] Compiling AGUIClient SseParser.swift
[115/138] Compiling AGUIClient AgentSubscriber.swift
[116/138] Compiling AGUIClient HttpTransport.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/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/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: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/138] Compiling AGUIClient URLSessionHTTPClient.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/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/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: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
[118/138] Compiling AGUITools ToolExecutionManager.swift
[119/138] Emitting module AGUITools
[120/138] Compiling AGUIClient AgentConfig.swift
[121/138] Compiling AGUIClient ClientError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[122/138] Emitting module AGUIClient
/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/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: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: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 |
[123/138] Compiling AGUITools ToolRegistry.swift
[125/139] Compiling AGUIClient ThinkingTelemetryState.swift
[126/139] Compiling AGUIClient AsyncSequence+Buffering.swift
[127/139] Compiling AGUIClient BufferingStrategy.swift
[128/139] Compiling AGUIClient ChunkTransformer.swift
[129/139] Compiling AGUIClient EventStream.swift
[130/139] Compiling AGUIClient EventVerifier.swift
[134/139] 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
[135/139] 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
[136/139] 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
/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/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)
[138/139] Compiling AGUIClient HttpAgent.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/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)
[139/139] Compiling AGUIClient AgentState.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/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)
BUILD FAILURE 6.1 android