The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AGUISwift, reference main (659aa5), with Swift 6.2 for Android on 5 May 2026 00:41:02 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.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/paduh/ag-ui-swift.git
Reference: main
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
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 659aa55 Merge pull request #24 from paduh/fix/pr-1512-review-gaps
Cloned https://github.com/paduh/ag-ui-swift.git
Revision (git rev-parse @):
659aa553ceb6893cd834874f3d1b9bf5cde31959
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/paduh/ag-ui-swift.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/paduh/ag-ui-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-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.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:cb98f9856cb1288a0028ff0e63d4de86ca92d5e7890400e3e915f7ea3943ed55
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.2-latest
Fetching https://github.com/apple/swift-docc-plugin
[1/2287] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.45s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (2.64s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3710] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.40s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.89s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/7] Write sources
[6/7] Write swift-version--11D90AFD9DD3AB2.txt
[8/101] Compiling AGUICore AGUIEventDecoder.swift
[9/101] Compiling AGUICore ActivityDeltaEventDTO.swift
[10/101] Compiling AGUICore ActivitySnapshotEventDTO.swift
[11/101] Compiling AGUICore EventDecodingHelpers.swift
[12/101] Compiling AGUICore RunErrorEventDTO.swift
[13/101] Compiling AGUICore RunFinishedEventDTO.swift
[14/101] Compiling AGUICore RunStartedEventDTO.swift
[15/101] Compiling AGUICore StepFinishedEventDTO.swift
[16/101] Compiling AGUICore StepStartedEventDTO.swift
[17/101] Compiling AGUICore ReasoningEncryptedValueEventDTO.swift
[18/101] Compiling AGUICore ReasoningEndEventDTO.swift
[19/101] Compiling AGUICore ReasoningMessageChunkEventDTO.swift
[20/101] Compiling AGUICore ReasoningMessageContentEventDTO.swift
[21/101] Compiling AGUICore ReasoningMessageEndEventDTO.swift
[22/101] Compiling AGUICore RunFinishedEvent.swift
[23/101] Compiling AGUICore RunFinishedOutcome.swift
[24/101] Compiling AGUICore RunStartedEvent.swift
[25/101] Compiling AGUICore StepFinishedEvent.swift
[26/101] Compiling AGUICore StepStartedEvent.swift
[27/101] Compiling AGUICore ReasoningEncryptedValueEvent.swift
[28/101] Compiling AGUICore ReasoningEndEvent.swift
[29/101] Compiling AGUICore ReasoningMessageChunkEvent.swift
[30/101] Compiling AGUICore ReasoningMessageContentEvent.swift
[31/101] Compiling AGUICore ReasoningMessageEndEvent.swift
[32/101] Compiling AGUICore ReasoningMessageStartEvent.swift
[33/101] Compiling AGUICore ReasoningStartEvent.swift
[34/101] Compiling AGUICore CustomEvent.swift
[35/114] Compiling AGUICore RawEvent.swift
[36/114] Compiling AGUICore MessagesSnapshotEvent.swift
[37/114] Compiling AGUICore StateDeltaEvent.swift
[38/114] Compiling AGUICore StateSnapshotEvent.swift
[39/114] Compiling AGUICore TextMessageChunkEvent.swift
[40/114] Compiling AGUICore TextMessageContentEvent.swift
[41/114] Compiling AGUICore TextMessageEndEvent.swift
[42/114] Compiling AGUICore TextMessageStartEvent.swift
[43/114] Compiling AGUICore ToolCallArgsEvent.swift
[44/114] Compiling AGUICore ToolCallChunkEvent.swift
[45/114] Compiling AGUICore ToolCallEndEvent.swift
[46/114] Compiling AGUICore ToolCallResultEvent.swift
[47/114] Compiling AGUICore ToolCallStartEvent.swift
[48/114] Compiling AGUICore LifecycleEventRegistry.swift
[49/114] Compiling AGUICore ReasoningEventRegistry.swift
[50/114] Compiling AGUICore SpecialEventRegistry.swift
[51/114] Compiling AGUICore StateEventRegistry.swift
[52/114] Compiling AGUICore TextMessageEventRegistry.swift
[53/114] Compiling AGUICore ToolCallEventRegistry.swift
[54/114] Compiling AGUICore RegistryComposer.swift
[55/114] Compiling AGUICore MessageEncoder.swift
[56/114] Compiling AGUICore EventType.swift
[57/114] Compiling AGUICore AGUIEvent.swift
[58/114] Compiling AGUICore ActivityDeltaEvent.swift
[59/114] Compiling AGUICore ActivitySnapshotEvent.swift
[60/114] Compiling AGUICore RunErrorEvent.swift
[61/114] Compiling AGUICore AudioInputContentDTO.swift
[62/114] Compiling AGUICore BinaryInputContentDTO.swift
[63/114] Compiling AGUICore DocumentInputContentDTO.swift
[64/114] Compiling AGUICore ImageInputContentDTO.swift
[65/114] Compiling AGUICore TextInputContentDTO.swift
[66/114] Compiling AGUICore VideoInputContentDTO.swift
[67/114] Compiling AGUICore ActivityMessageDTO.swift
[68/114] Compiling AGUICore MessageDecodingHelpers.swift
[69/114] Compiling AGUICore ReasoningMessageDTO.swift
[70/114] Compiling AGUICore ToolMessageDTO.swift
[71/114] Compiling AGUICore UserMessageDTO.swift
[72/114] Compiling AGUICore MessageDecoder.swift
[73/114] Compiling AGUICore ActivityEventRegistry.swift
[74/114] Emitting module AGUICore
[75/114] Compiling AGUICore UnknownEvent.swift
[76/114] Compiling AGUICore Context.swift
[77/114] Compiling AGUICore RunAgentInput.swift
[78/114] Compiling AGUICore RunAgentInputBuilder.swift
[79/114] Compiling AGUICore State.swift
[80/114] Compiling AGUICore AudioInputContent.swift
[81/114] Compiling AGUICore BinaryInputContent.swift
[82/114] Compiling AGUICore DocumentInputContent.swift
[83/114] Compiling AGUICore ImageInputContent.swift
[84/114] Compiling AGUICore InputContent.swift
[85/114] Compiling AGUICore TextInputContent.swift
[86/114] Compiling AGUICore VideoInputContent.swift
[87/114] Compiling AGUICore ActivityMessage.swift
[88/114] Compiling AGUICore ReasoningMessageStartEventDTO.swift
[89/114] Compiling AGUICore ReasoningStartEventDTO.swift
[90/114] Compiling AGUICore CustomEventDTO.swift
[91/114] Compiling AGUICore RawEventDTO.swift
[92/114] Compiling AGUICore MessagesSnapshotEventDTO.swift
[93/114] Compiling AGUICore StateDeltaEventDTO.swift
[94/114] Compiling AGUICore StateSnapshotEventDTO.swift
[95/114] Compiling AGUICore TextMessageChunkEventDTO.swift
[96/114] Compiling AGUICore TextMessageEndEventDTO.swift
[97/114] Compiling AGUICore ToolCallChunkEventDTO.swift
[98/114] Compiling AGUICore ToolCallEndEventDTO.swift
[99/114] Compiling AGUICore ToolCallResultEventDTO.swift
[100/114] Compiling AGUICore TypeDiscriminator.swift
[101/114] Compiling AGUICore EventDecodingError.swift
[102/114] Compiling AGUICore AssistantMessage.swift
[103/114] Compiling AGUICore DeveloperMessage.swift
[104/114] Compiling AGUICore Message.swift
[105/114] Compiling AGUICore ReasoningMessage.swift
[106/114] Compiling AGUICore Role.swift
[107/114] Compiling AGUICore SystemMessage.swift
[108/114] Compiling AGUICore ToolMessage.swift
[109/114] Compiling AGUICore UserMessage.swift
[110/114] Compiling AGUICore FunctionCall.swift
[111/114] Compiling AGUICore Tool.swift
[112/114] Compiling AGUICore ToolCall.swift
[113/114] Compiling AGUICore JSONCodingHelpers.swift
[114/114] Compiling AGUICore JSONPrimitiveWrapper.swift
[116/147] Compiling AGUITools ToolResponseHandler.swift
[117/147] Compiling AGUITools ToolExecutionStats.swift
[118/148] Compiling AGUITools ToolExecutor.swift
[119/148] Emitting module AGUITools
[120/148] Compiling AGUIClient AgentTransport.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:17:29: error: cannot find type 'URLRequest' in scope
15 |     /// - Returns: An HTTP response containing streaming bytes and metadata
16 |     /// - Throws: `ClientError` if the request fails
17 |     func execute(_ request: URLRequest) async throws -> HTTPResponse
   |                             `- error: cannot find type 'URLRequest' in scope
18 | }
19 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:35:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 |     /// HTTP response metadata.
35 |     public let httpResponse: HTTPURLResponse
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 |     /// 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:52:73: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |     ///   - bytes: Streaming response bytes as an `AsyncThrowingStream<UInt8, Error>`
51 |     ///   - httpResponse: HTTP response metadata
52 |     public init(bytes: AsyncThrowingStream<UInt8, Error>, httpResponse: HTTPURLResponse) {
   |                                                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 |         self.bytes = bytes
54 |         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:35: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
33 |
34 |     /// HTTP response metadata.
35 |     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
36 |
37 |     /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:39:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 |     /// HTTP status code.
38 |     public var statusCode: Int {
39 |         httpResponse.statusCode
   |                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 |     }
41 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:44:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
42 |     /// Response headers.
43 |     public var headers: [AnyHashable: Any] {
44 |         httpResponse.allHeaderFields
   |                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
45 |     }
46 |
[121/148] Compiling AGUIClient HTTPClient.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:17:29: error: cannot find type 'URLRequest' in scope
15 |     /// - Returns: An HTTP response containing streaming bytes and metadata
16 |     /// - Throws: `ClientError` if the request fails
17 |     func execute(_ request: URLRequest) async throws -> HTTPResponse
   |                             `- error: cannot find type 'URLRequest' in scope
18 | }
19 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:35:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 |     /// HTTP response metadata.
35 |     public let httpResponse: HTTPURLResponse
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 |     /// 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:52:73: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |     ///   - bytes: Streaming response bytes as an `AsyncThrowingStream<UInt8, Error>`
51 |     ///   - httpResponse: HTTP response metadata
52 |     public init(bytes: AsyncThrowingStream<UInt8, Error>, httpResponse: HTTPURLResponse) {
   |                                                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 |         self.bytes = bytes
54 |         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:35: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
33 |
34 |     /// HTTP response metadata.
35 |     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
36 |
37 |     /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:39:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 |     /// HTTP status code.
38 |     public var statusCode: Int {
39 |         httpResponse.statusCode
   |                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 |     }
41 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:44:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
42 |     /// Response headers.
43 |     public var headers: [AnyHashable: Any] {
44 |         httpResponse.allHeaderFields
   |                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
45 |     }
46 |
[122/148] Compiling AGUIClient HttpAgentConfiguration.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:17:29: error: cannot find type 'URLRequest' in scope
15 |     /// - Returns: An HTTP response containing streaming bytes and metadata
16 |     /// - Throws: `ClientError` if the request fails
17 |     func execute(_ request: URLRequest) async throws -> HTTPResponse
   |                             `- error: cannot find type 'URLRequest' in scope
18 | }
19 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:35:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 |     /// HTTP response metadata.
35 |     public let httpResponse: HTTPURLResponse
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 |     /// 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:52:73: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |     ///   - bytes: Streaming response bytes as an `AsyncThrowingStream<UInt8, Error>`
51 |     ///   - httpResponse: HTTP response metadata
52 |     public init(bytes: AsyncThrowingStream<UInt8, Error>, httpResponse: HTTPURLResponse) {
   |                                                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 |         self.bytes = bytes
54 |         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:35: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
33 |
34 |     /// HTTP response metadata.
35 |     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
36 |
37 |     /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:39:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 |     /// HTTP status code.
38 |     public var statusCode: Int {
39 |         httpResponse.statusCode
   |                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 |     }
41 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:44:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
42 |     /// Response headers.
43 |     public var headers: [AnyHashable: Any] {
44 |         httpResponse.allHeaderFields
   |                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
45 |     }
46 |
[123/151] Compiling AGUITools ToolExecutionResult.swift
[124/151] Compiling AGUIClient HttpAgentTransport.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:54:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 52 |         } else {
 53 |             // Create default URLSession-based client
 54 |             let sessionConfig = URLSessionConfiguration.default
    |                                                         `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 55 |             // timeoutIntervalForRequest: max idle time between consecutive bytes (per-chunk).
 56 |             // For AI streaming, the inference step can take 30-120 s before the first
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:70:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 68 |             sessionConfig.httpAdditionalHeaders = headers
 69 |
 70 |             let session = URLSession(configuration: sessionConfig)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 71 |             self.httpClient = URLSessionHTTPClient(session: session)
 72 |         }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:119:23: error: cannot find 'URLRequest' in scope
117 |
118 |         // Create request
119 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
120 |         request.httpMethod = "POST"
121 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:17:29: error: cannot find type 'URLRequest' in scope
15 |     /// - Returns: An HTTP response containing streaming bytes and metadata
16 |     /// - Throws: `ClientError` if the request fails
17 |     func execute(_ request: URLRequest) async throws -> HTTPResponse
   |                             `- error: cannot find type 'URLRequest' in scope
18 | }
19 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:12:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 | ///
 11 | public actor URLSessionHTTPClient: HTTPClient {
 12 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |
 14 |     /// 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:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     /// let client = URLSessionHTTPClient(session: session)
 29 |     /// ```
 30 |     public init(session: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |         self.session = session
 32 |     }
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:50:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |     /// ```
 49 |     public static func create(
 50 |         configuration: URLSessionConfiguration = .default
    |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |     ) -> URLSessionHTTPClient {
 52 |         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:50:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 48 |     /// ```
 49 |     public static func create(
 50 |         configuration: URLSessionConfiguration = .default
    |                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 51 |     ) -> URLSessionHTTPClient {
 52 |         let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:50:51: error: value of type '_' expected to be instance of class or class-constrained type
 48 |     /// ```
 49 |     public static func create(
 50 |         configuration: URLSessionConfiguration = .default
    |                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 51 |     ) -> URLSessionHTTPClient {
 52 |         let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:68:36: error: cannot find type 'URLRequest' in scope
 66 |     /// - `.cancelled` → `.cancelled`
 67 |     /// - Other errors → `.networkError`
 68 |     public func execute(_ request: URLRequest) async throws -> HTTPResponse {
    |                                    `- error: cannot find type 'URLRequest' in scope
 69 |         let (bytes, response): (URLSession.AsyncBytes, URLResponse)
 70 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:52:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 50 |         configuration: URLSessionConfiguration = .default
 51 |     ) -> URLSessionHTTPClient {
 52 |         let session = URLSession(configuration: configuration)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 |         return URLSessionHTTPClient(session: session)
 54 |     }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:69:44: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 67 |     /// - Other errors → `.networkError`
 68 |     public func execute(_ request: URLRequest) async throws -> HTTPResponse {
 69 |         let (bytes, response): (URLSession.AsyncBytes, URLResponse)
    |                                            `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 70 |
 71 |         do {
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:72:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 70 |
 71 |         do {
 72 |             (bytes, response) = try await session.bytes(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 73 |         } catch let error as URLError {
 74 |             throw mapURLError(error)
[125/151] Compiling AGUIClient HttpTransport.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:54:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 52 |         } else {
 53 |             // Create default URLSession-based client
 54 |             let sessionConfig = URLSessionConfiguration.default
    |                                                         `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 55 |             // timeoutIntervalForRequest: max idle time between consecutive bytes (per-chunk).
 56 |             // For AI streaming, the inference step can take 30-120 s before the first
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:70:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 68 |             sessionConfig.httpAdditionalHeaders = headers
 69 |
 70 |             let session = URLSession(configuration: sessionConfig)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 71 |             self.httpClient = URLSessionHTTPClient(session: session)
 72 |         }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:119:23: error: cannot find 'URLRequest' in scope
117 |
118 |         // Create request
119 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
120 |         request.httpMethod = "POST"
121 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:17:29: error: cannot find type 'URLRequest' in scope
15 |     /// - Returns: An HTTP response containing streaming bytes and metadata
16 |     /// - Throws: `ClientError` if the request fails
17 |     func execute(_ request: URLRequest) async throws -> HTTPResponse
   |                             `- error: cannot find type 'URLRequest' in scope
18 | }
19 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:12:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 | ///
 11 | public actor URLSessionHTTPClient: HTTPClient {
 12 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |
 14 |     /// 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:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     /// let client = URLSessionHTTPClient(session: session)
 29 |     /// ```
 30 |     public init(session: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |         self.session = session
 32 |     }
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:50:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |     /// ```
 49 |     public static func create(
 50 |         configuration: URLSessionConfiguration = .default
    |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |     ) -> URLSessionHTTPClient {
 52 |         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:50:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 48 |     /// ```
 49 |     public static func create(
 50 |         configuration: URLSessionConfiguration = .default
    |                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 51 |     ) -> URLSessionHTTPClient {
 52 |         let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:50:51: error: value of type '_' expected to be instance of class or class-constrained type
 48 |     /// ```
 49 |     public static func create(
 50 |         configuration: URLSessionConfiguration = .default
    |                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 51 |     ) -> URLSessionHTTPClient {
 52 |         let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:68:36: error: cannot find type 'URLRequest' in scope
 66 |     /// - `.cancelled` → `.cancelled`
 67 |     /// - Other errors → `.networkError`
 68 |     public func execute(_ request: URLRequest) async throws -> HTTPResponse {
    |                                    `- error: cannot find type 'URLRequest' in scope
 69 |         let (bytes, response): (URLSession.AsyncBytes, URLResponse)
 70 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:52:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 50 |         configuration: URLSessionConfiguration = .default
 51 |     ) -> URLSessionHTTPClient {
 52 |         let session = URLSession(configuration: configuration)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 |         return URLSessionHTTPClient(session: session)
 54 |     }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:69:44: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 67 |     /// - Other errors → `.networkError`
 68 |     public func execute(_ request: URLRequest) async throws -> HTTPResponse {
 69 |         let (bytes, response): (URLSession.AsyncBytes, URLResponse)
    |                                            `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 70 |
 71 |         do {
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:72:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 70 |
 71 |         do {
 72 |             (bytes, response) = try await session.bytes(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 73 |         } catch let error as URLError {
 74 |             throw mapURLError(error)
[126/151] Compiling AGUIClient URLSessionHTTPClient.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:54:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 52 |         } else {
 53 |             // Create default URLSession-based client
 54 |             let sessionConfig = URLSessionConfiguration.default
    |                                                         `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 55 |             // timeoutIntervalForRequest: max idle time between consecutive bytes (per-chunk).
 56 |             // For AI streaming, the inference step can take 30-120 s before the first
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:70:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 68 |             sessionConfig.httpAdditionalHeaders = headers
 69 |
 70 |             let session = URLSession(configuration: sessionConfig)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 71 |             self.httpClient = URLSessionHTTPClient(session: session)
 72 |         }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:119:23: error: cannot find 'URLRequest' in scope
117 |
118 |         // Create request
119 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
120 |         request.httpMethod = "POST"
121 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:17:29: error: cannot find type 'URLRequest' in scope
15 |     /// - Returns: An HTTP response containing streaming bytes and metadata
16 |     /// - Throws: `ClientError` if the request fails
17 |     func execute(_ request: URLRequest) async throws -> HTTPResponse
   |                             `- error: cannot find type 'URLRequest' in scope
18 | }
19 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:12:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 | ///
 11 | public actor URLSessionHTTPClient: HTTPClient {
 12 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |
 14 |     /// 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:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     /// let client = URLSessionHTTPClient(session: session)
 29 |     /// ```
 30 |     public init(session: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |         self.session = session
 32 |     }
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:50:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |     /// ```
 49 |     public static func create(
 50 |         configuration: URLSessionConfiguration = .default
    |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |     ) -> URLSessionHTTPClient {
 52 |         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:50:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 48 |     /// ```
 49 |     public static func create(
 50 |         configuration: URLSessionConfiguration = .default
    |                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 51 |     ) -> URLSessionHTTPClient {
 52 |         let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:50:51: error: value of type '_' expected to be instance of class or class-constrained type
 48 |     /// ```
 49 |     public static func create(
 50 |         configuration: URLSessionConfiguration = .default
    |                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 51 |     ) -> URLSessionHTTPClient {
 52 |         let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:68:36: error: cannot find type 'URLRequest' in scope
 66 |     /// - `.cancelled` → `.cancelled`
 67 |     /// - Other errors → `.networkError`
 68 |     public func execute(_ request: URLRequest) async throws -> HTTPResponse {
    |                                    `- error: cannot find type 'URLRequest' in scope
 69 |         let (bytes, response): (URLSession.AsyncBytes, URLResponse)
 70 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:52:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 50 |         configuration: URLSessionConfiguration = .default
 51 |     ) -> URLSessionHTTPClient {
 52 |         let session = URLSession(configuration: configuration)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 |         return URLSessionHTTPClient(session: session)
 54 |     }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:69:44: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 67 |     /// - Other errors → `.networkError`
 68 |     public func execute(_ request: URLRequest) async throws -> HTTPResponse {
 69 |         let (bytes, response): (URLSession.AsyncBytes, URLResponse)
    |                                            `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 70 |
 71 |         do {
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:72:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 70 |
 71 |         do {
 72 |             (bytes, response) = try await session.bytes(for: request)
    |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 73 |         } catch let error as URLError {
 74 |             throw mapURLError(error)
[127/151] Compiling AGUIClient SseParser.swift
[128/151] Compiling AGUIClient AgentSubscriber.swift
[129/151] Compiling AGUIClient SubscriberManager.swift
[130/151] Compiling AGUIClient AGUIClient.swift
[131/151] Compiling AGUIClient AbstractAgent.swift
[132/151] Compiling AGUITools ToolExecutionManager.swift
[133/151] Compiling AGUITools ToolRegistry.swift
[134/151] Compiling AGUIClient ClientError.swift
[135/151] Compiling AGUIClient DefaultApplyEvents.swift
[136/152] Compiling AGUIClient EventStream.swift
[137/152] Compiling AGUIClient EventVerifier.swift
[138/152] Compiling AGUIClient SseEvent.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[140/152] Emitting module AGUIClient
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:17:29: error: cannot find type 'URLRequest' in scope
15 |     /// - Returns: An HTTP response containing streaming bytes and metadata
16 |     /// - Throws: `ClientError` if the request fails
17 |     func execute(_ request: URLRequest) async throws -> HTTPResponse
   |                             `- error: cannot find type 'URLRequest' in scope
18 | }
19 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:35:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 |     /// HTTP response metadata.
35 |     public let httpResponse: HTTPURLResponse
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 |     /// 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:52:73: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |     ///   - bytes: Streaming response bytes as an `AsyncThrowingStream<UInt8, Error>`
51 |     ///   - httpResponse: HTTP response metadata
52 |     public init(bytes: AsyncThrowingStream<UInt8, Error>, httpResponse: HTTPURLResponse) {
   |                                                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 |         self.bytes = bytes
54 |         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:35: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
33 |
34 |     /// HTTP response metadata.
35 |     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
36 |
37 |     /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:54:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 52 |         } else {
 53 |             // Create default URLSession-based client
 54 |             let sessionConfig = URLSessionConfiguration.default
    |                                                         `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 55 |             // timeoutIntervalForRequest: max idle time between consecutive bytes (per-chunk).
 56 |             // For AI streaming, the inference step can take 30-120 s before the first
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:70:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 68 |             sessionConfig.httpAdditionalHeaders = headers
 69 |
 70 |             let session = URLSession(configuration: sessionConfig)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 71 |             self.httpClient = URLSessionHTTPClient(session: session)
 72 |         }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:12:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 | ///
 11 | public actor URLSessionHTTPClient: HTTPClient {
 12 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |
 14 |     /// 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:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     /// let client = URLSessionHTTPClient(session: session)
 29 |     /// ```
 30 |     public init(session: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |         self.session = session
 32 |     }
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:50:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |     /// ```
 49 |     public static func create(
 50 |         configuration: URLSessionConfiguration = .default
    |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |     ) -> URLSessionHTTPClient {
 52 |         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:50:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 48 |     /// ```
 49 |     public static func create(
 50 |         configuration: URLSessionConfiguration = .default
    |                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 51 |     ) -> URLSessionHTTPClient {
 52 |         let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:50:51: error: value of type '_' expected to be instance of class or class-constrained type
 48 |     /// ```
 49 |     public static func create(
 50 |         configuration: URLSessionConfiguration = .default
    |                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 51 |     ) -> URLSessionHTTPClient {
 52 |         let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:68:36: error: cannot find type 'URLRequest' in scope
 66 |     /// - `.cancelled` → `.cancelled`
 67 |     /// - Other errors → `.networkError`
 68 |     public func execute(_ request: URLRequest) async throws -> HTTPResponse {
    |                                    `- error: cannot find type 'URLRequest' in scope
 69 |         let (bytes, response): (URLSession.AsyncBytes, URLResponse)
 70 |
[141/152] Compiling AGUIClient AsyncSequence+Buffering.swift
[142/152] Compiling AGUIClient BufferingStrategy.swift
[143/152] Compiling AGUIClient ChunkTransformer.swift
[147/152] Compiling AGUIClient HttpAgent.swift
[148/152] Compiling AGUIClient RunAgentParameters.swift
[149/152] Compiling AGUIClient AgentState.swift
/host/spi-builder-workspace/Sources/AGUIClient/State/PatchApplicator.swift:254:13: warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
252 |
253 |         // Remove from 'from' path
254 |         var intermediate = try applyRemove(path: from, from: state)
    |             `- warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
255 |
256 |         // Add to 'to' path
[151/152] Compiling AGUIClient PatchApplicator.swift
/host/spi-builder-workspace/Sources/AGUIClient/State/PatchApplicator.swift:254:13: warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
252 |
253 |         // Remove from 'from' path
254 |         var intermediate = try applyRemove(path: from, from: state)
    |             `- warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
255 |
256 |         // Add to 'to' path
[152/152] Compiling AGUIClient StateManager.swift
/host/spi-builder-workspace/Sources/AGUIClient/State/PatchApplicator.swift:254:13: warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
252 |
253 |         // Remove from 'from' path
254 |         var intermediate = try applyRemove(path: from, from: state)
    |             `- warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
255 |
256 |         // Add to 'to' path
BUILD FAILURE 6.2 android