Build Information
Failed to build AGUISwift, reference main (cb462b), with Swift 6.1 for Android on 2 Nov 2026 09:54:34 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
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 cb462bc Merge pull request #31 from paduh/fix/pr-1512-final-review
Cloned https://github.com/paduh/ag-ui-swift.git
Revision (git rev-parse @):
cb462bc4f4364e7e21c0b57d1824e0fd328986c3
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.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-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images: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 saguaro1/spi-images
Digest: sha256:1af1ef9e2b8f7a959ad4dced2035c22f050ae85f531ed2857472423d8f2ef4d3
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
Fetching https://github.com/apple/swift-docc-plugin
[1/2345] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.88s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (1.83s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3850] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.60s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (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-24593BA9C3E375BF.txt
[8/105] Compiling AGUICore MessagesSnapshotEvent.swift
[9/105] Compiling AGUICore StateDeltaEvent.swift
[10/105] Compiling AGUICore StateSnapshotEvent.swift
[11/105] Compiling AGUICore TextMessageChunkEvent.swift
[12/105] Compiling AGUICore TextMessageContentEvent.swift
[13/105] Compiling AGUICore TextMessageEndEvent.swift
[14/105] Compiling AGUICore TextMessageStartEvent.swift
[15/105] Compiling AGUICore ToolCallArgsEvent.swift
[16/105] Compiling AGUICore ToolCallChunkEvent.swift
[17/105] Compiling AGUICore ToolCallEndEvent.swift
[18/105] Compiling AGUICore ToolCallResultEvent.swift
[19/105] Compiling AGUICore ToolCallStartEvent.swift
[20/105] Compiling AGUICore UnknownEvent.swift
[21/105] Compiling AGUICore Context.swift
[22/105] Emitting module AGUICore
[23/118] Compiling AGUICore EventDecodingError.swift
[24/118] Compiling AGUICore AudioInputContentDTO.swift
[25/118] Compiling AGUICore BinaryInputContentDTO.swift
[26/118] Compiling AGUICore DocumentInputContentDTO.swift
[27/118] Compiling AGUICore ImageInputContentDTO.swift
[28/118] Compiling AGUICore TextInputContentDTO.swift
[29/118] Compiling AGUICore VideoInputContentDTO.swift
[30/118] Compiling AGUICore ActivityMessageDTO.swift
[31/118] Compiling AGUICore MessageDecodingHelpers.swift
[32/118] Compiling AGUICore ReasoningMessageDTO.swift
[33/118] Compiling AGUICore ToolMessageDTO.swift
[34/118] Compiling AGUICore UserMessageDTO.swift
[35/118] Compiling AGUICore MessageDecoder.swift
[36/118] Compiling AGUICore ActivityEventRegistry.swift
[37/118] Compiling AGUICore RunAgentInput.swift
[38/118] Compiling AGUICore RunAgentInputBuilder.swift
[39/118] Compiling AGUICore State.swift
[40/118] Compiling AGUICore Interrupt.swift
[41/118] Compiling AGUICore ResumeEntry.swift
[42/118] Compiling AGUICore AudioInputContent.swift
[43/118] Compiling AGUICore BinaryInputContent.swift
[44/118] Compiling AGUICore DocumentInputContent.swift
[45/118] Compiling AGUICore ImageInputContent.swift
[46/118] Compiling AGUICore InputContent.swift
[47/118] Compiling AGUICore TextInputContent.swift
[48/118] Compiling AGUICore VideoInputContent.swift
[49/118] Compiling AGUICore ActivityMessage.swift
[50/118] Compiling AGUICore ReasoningMessageEndEventDTO.swift
[51/118] Compiling AGUICore ReasoningMessageStartEventDTO.swift
[52/118] Compiling AGUICore ReasoningStartEventDTO.swift
[53/118] Compiling AGUICore CustomEventDTO.swift
[54/118] Compiling AGUICore RawEventDTO.swift
[55/118] Compiling AGUICore MessagesSnapshotEventDTO.swift
[56/118] Compiling AGUICore StateDeltaEventDTO.swift
[57/118] Compiling AGUICore StateSnapshotEventDTO.swift
[58/118] Compiling AGUICore TextMessageChunkEventDTO.swift
[59/118] Compiling AGUICore TextMessageEndEventDTO.swift
[60/118] Compiling AGUICore ToolCallChunkEventDTO.swift
[61/118] Compiling AGUICore ToolCallEndEventDTO.swift
[62/118] Compiling AGUICore ToolCallResultEventDTO.swift
[63/118] Compiling AGUICore TypeDiscriminator.swift
[64/118] Compiling AGUICore RunFinishedEvent.swift
[65/118] Compiling AGUICore RunFinishedOutcome.swift
[66/118] Compiling AGUICore RunStartedEvent.swift
[67/118] Compiling AGUICore StepFinishedEvent.swift
[68/118] Compiling AGUICore StepStartedEvent.swift
[69/118] Compiling AGUICore ReasoningEncryptedValueEvent.swift
[70/118] Compiling AGUICore ReasoningEndEvent.swift
[71/118] Compiling AGUICore ReasoningMessageChunkEvent.swift
[72/118] Compiling AGUICore ReasoningMessageContentEvent.swift
[73/118] Compiling AGUICore ReasoningMessageEndEvent.swift
[74/118] Compiling AGUICore ReasoningMessageStartEvent.swift
[75/118] Compiling AGUICore ReasoningStartEvent.swift
[76/118] Compiling AGUICore CustomEvent.swift
[77/118] Compiling AGUICore RawEvent.swift
[78/118] Compiling AGUICore LifecycleEventRegistry.swift
[79/118] Compiling AGUICore ReasoningEventRegistry.swift
[80/118] Compiling AGUICore SpecialEventRegistry.swift
[81/118] Compiling AGUICore StateEventRegistry.swift
[82/118] Compiling AGUICore TextMessageEventRegistry.swift
[83/118] Compiling AGUICore ToolCallEventRegistry.swift
[84/118] Compiling AGUICore RegistryComposer.swift
[85/118] Compiling AGUICore ThinkingRemapState.swift
[86/118] Compiling AGUICore MessageEncoder.swift
[87/118] Compiling AGUICore EventType.swift
[88/118] Compiling AGUICore AGUIEvent.swift
[89/118] Compiling AGUICore ActivityDeltaEvent.swift
[90/118] Compiling AGUICore ActivitySnapshotEvent.swift
[91/118] Compiling AGUICore RunErrorEvent.swift
[92/118] Compiling AGUICore AGUICore.swift
[93/118] Compiling AGUICore AGUIEventDecoder.swift
[94/118] Compiling AGUICore ActivityDeltaEventDTO.swift
[95/118] Compiling AGUICore ActivitySnapshotEventDTO.swift
[96/118] Compiling AGUICore EventDecodingHelpers.swift
[97/118] Compiling AGUICore RunErrorEventDTO.swift
[98/118] Compiling AGUICore RunFinishedEventDTO.swift
[99/118] Compiling AGUICore RunStartedEventDTO.swift
[100/118] Compiling AGUICore StepFinishedEventDTO.swift
[101/118] Compiling AGUICore StepStartedEventDTO.swift
[102/118] Compiling AGUICore ReasoningEncryptedValueEventDTO.swift
[103/118] Compiling AGUICore ReasoningEndEventDTO.swift
[104/118] Compiling AGUICore ReasoningMessageChunkEventDTO.swift
[105/118] Compiling AGUICore ReasoningMessageContentEventDTO.swift
[106/118] Compiling AGUICore AssistantMessage.swift
[107/118] Compiling AGUICore DeveloperMessage.swift
[108/118] Compiling AGUICore Message.swift
[109/118] Compiling AGUICore ReasoningMessage.swift
[110/118] Compiling AGUICore Role.swift
[111/118] Compiling AGUICore SystemMessage.swift
[112/118] Compiling AGUICore ToolMessage.swift
[113/118] Compiling AGUICore UserMessage.swift
[114/118] Compiling AGUICore FunctionCall.swift
[115/118] Compiling AGUICore Tool.swift
[116/118] Compiling AGUICore ToolCall.swift
[117/118] Compiling AGUICore JSONCodingHelpers.swift
[118/118] Compiling AGUICore JSONPrimitiveWrapper.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[120/151] Emitting module AGUIClient
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | /// - Returns: An HTTP response containing streaming bytes and metadata
35 | /// - Throws: `ClientError` if the request fails
36 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:54:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |
53 | /// HTTP response metadata.
54 | public let httpResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// 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:71:73: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// - bytes: Streaming response bytes as an `AsyncThrowingStream<UInt8, Error>`
70 | /// - httpResponse: HTTP response metadata
71 | 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.
72 | self.bytes = bytes
73 | 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:54: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
52 |
53 | /// HTTP response metadata.
54 | 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
55 |
56 | /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:71:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 | } else {
70 | // Create default URLSession-based client
71 | let sessionConfig = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | // timeoutIntervalForRequest: max idle time between consecutive bytes (per-chunk).
73 | // For AI streaming, the inference step can take 30-120 s before the first
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:87:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
85 | sessionConfig.httpAdditionalHeaders = headers
86 |
87 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
88 | self.httpClient = URLSessionHTTPClient(session: session)
89 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | /// ```
27 | public actor URLSessionHTTPClient: HTTPClient {
28 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | /// 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:46:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | /// let client = URLSessionHTTPClient(session: session)
45 | /// ```
46 | public init(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | self.session = session
48 | }
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:72:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | /// ```
71 | public static func create(
72 | configuration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | ) -> URLSessionHTTPClient {
74 | 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:72:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
70 | /// ```
71 | public static func create(
72 | configuration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
73 | ) -> URLSessionHTTPClient {
74 | let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:90:36: error: cannot find type 'URLRequest' in scope
88 | /// - `.cancelled` → `.cancelled`
89 | /// - Other errors → `.networkError`
90 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
91 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
92 |
[121/154] Compiling AGUITools ToolExecutionStats.swift
[122/154] Compiling AGUITools ToolExecutor.swift
[123/154] Compiling AGUITools ToolResponseHandler.swift
[124/155] Compiling AGUIClient AgentTransport.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | /// - Returns: An HTTP response containing streaming bytes and metadata
35 | /// - Throws: `ClientError` if the request fails
36 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:54:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |
53 | /// HTTP response metadata.
54 | public let httpResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// 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:71:73: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// - bytes: Streaming response bytes as an `AsyncThrowingStream<UInt8, Error>`
70 | /// - httpResponse: HTTP response metadata
71 | 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.
72 | self.bytes = bytes
73 | 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:54: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
52 |
53 | /// HTTP response metadata.
54 | 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
55 |
56 | /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
56 | /// HTTP status code.
57 | public var statusCode: Int {
58 | httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:63:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
61 | /// Response headers.
62 | public var headers: [AnyHashable: Any] {
63 | httpResponse.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
64 | }
65 |
[125/155] Compiling AGUIClient HTTPClient.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | /// - Returns: An HTTP response containing streaming bytes and metadata
35 | /// - Throws: `ClientError` if the request fails
36 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:54:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |
53 | /// HTTP response metadata.
54 | public let httpResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// 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:71:73: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// - bytes: Streaming response bytes as an `AsyncThrowingStream<UInt8, Error>`
70 | /// - httpResponse: HTTP response metadata
71 | 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.
72 | self.bytes = bytes
73 | 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:54: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
52 |
53 | /// HTTP response metadata.
54 | 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
55 |
56 | /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
56 | /// HTTP status code.
57 | public var statusCode: Int {
58 | httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:63:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
61 | /// Response headers.
62 | public var headers: [AnyHashable: Any] {
63 | httpResponse.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
64 | }
65 |
[126/155] Compiling AGUIClient HttpAgentConfiguration.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | /// - Returns: An HTTP response containing streaming bytes and metadata
35 | /// - Throws: `ClientError` if the request fails
36 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:54:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |
53 | /// HTTP response metadata.
54 | public let httpResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// 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:71:73: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// - bytes: Streaming response bytes as an `AsyncThrowingStream<UInt8, Error>`
70 | /// - httpResponse: HTTP response metadata
71 | 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.
72 | self.bytes = bytes
73 | 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:54: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
52 |
53 | /// HTTP response metadata.
54 | 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
55 |
56 | /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
56 | /// HTTP status code.
57 | public var statusCode: Int {
58 | httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:63:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
61 | /// Response headers.
62 | public var headers: [AnyHashable: Any] {
63 | httpResponse.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
64 | }
65 |
[127/155] Compiling AGUITools ToolExecutionResult.swift
[128/155] Compiling AGUIClient HttpAgentTransport.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | /// - Returns: An HTTP response containing streaming bytes and metadata
35 | /// - Throws: `ClientError` if the request fails
36 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:71:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 | } else {
70 | // Create default URLSession-based client
71 | let sessionConfig = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | // timeoutIntervalForRequest: max idle time between consecutive bytes (per-chunk).
73 | // For AI streaming, the inference step can take 30-120 s before the first
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:87:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
85 | sessionConfig.httpAdditionalHeaders = headers
86 |
87 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
88 | self.httpClient = URLSessionHTTPClient(session: session)
89 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:136:23: error: cannot find 'URLRequest' in scope
134 |
135 | // Create request
136 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
137 | request.httpMethod = "POST"
138 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | /// ```
27 | public actor URLSessionHTTPClient: HTTPClient {
28 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | /// 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:46:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | /// let client = URLSessionHTTPClient(session: session)
45 | /// ```
46 | public init(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | self.session = session
48 | }
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:72:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | /// ```
71 | public static func create(
72 | configuration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | ) -> URLSessionHTTPClient {
74 | 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:72:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
70 | /// ```
71 | public static func create(
72 | configuration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
73 | ) -> URLSessionHTTPClient {
74 | let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:90:36: error: cannot find type 'URLRequest' in scope
88 | /// - `.cancelled` → `.cancelled`
89 | /// - Other errors → `.networkError`
90 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
91 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
92 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:53:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
51 | // Release OS-level socket pool and free the session delegate.
52 | // invalidateAndCancel() is synchronous and safe to call from deinit.
53 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
54 | }
55 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:74:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
72 | configuration: URLSessionConfiguration = .default
73 | ) -> URLSessionHTTPClient {
74 | let session = URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
75 | return URLSessionHTTPClient(session: session)
76 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:91:44: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
89 | /// - Other errors → `.networkError`
90 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
91 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
92 |
93 | do {
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:94:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
92 |
93 | do {
94 | (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
95 | } catch let error as URLError {
96 | throw mapURLError(error)
[129/155] Compiling AGUIClient HttpTransport.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | /// - Returns: An HTTP response containing streaming bytes and metadata
35 | /// - Throws: `ClientError` if the request fails
36 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:71:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 | } else {
70 | // Create default URLSession-based client
71 | let sessionConfig = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | // timeoutIntervalForRequest: max idle time between consecutive bytes (per-chunk).
73 | // For AI streaming, the inference step can take 30-120 s before the first
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:87:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
85 | sessionConfig.httpAdditionalHeaders = headers
86 |
87 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
88 | self.httpClient = URLSessionHTTPClient(session: session)
89 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:136:23: error: cannot find 'URLRequest' in scope
134 |
135 | // Create request
136 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
137 | request.httpMethod = "POST"
138 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | /// ```
27 | public actor URLSessionHTTPClient: HTTPClient {
28 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | /// 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:46:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | /// let client = URLSessionHTTPClient(session: session)
45 | /// ```
46 | public init(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | self.session = session
48 | }
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:72:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | /// ```
71 | public static func create(
72 | configuration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | ) -> URLSessionHTTPClient {
74 | 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:72:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
70 | /// ```
71 | public static func create(
72 | configuration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
73 | ) -> URLSessionHTTPClient {
74 | let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:90:36: error: cannot find type 'URLRequest' in scope
88 | /// - `.cancelled` → `.cancelled`
89 | /// - Other errors → `.networkError`
90 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
91 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
92 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:53:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
51 | // Release OS-level socket pool and free the session delegate.
52 | // invalidateAndCancel() is synchronous and safe to call from deinit.
53 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
54 | }
55 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:74:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
72 | configuration: URLSessionConfiguration = .default
73 | ) -> URLSessionHTTPClient {
74 | let session = URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
75 | return URLSessionHTTPClient(session: session)
76 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:91:44: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
89 | /// - Other errors → `.networkError`
90 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
91 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
92 |
93 | do {
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:94:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
92 |
93 | do {
94 | (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
95 | } catch let error as URLError {
96 | throw mapURLError(error)
[130/155] Compiling AGUIClient URLSessionHTTPClient.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | /// - Returns: An HTTP response containing streaming bytes and metadata
35 | /// - Throws: `ClientError` if the request fails
36 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:71:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 | } else {
70 | // Create default URLSession-based client
71 | let sessionConfig = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | // timeoutIntervalForRequest: max idle time between consecutive bytes (per-chunk).
73 | // For AI streaming, the inference step can take 30-120 s before the first
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:87:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
85 | sessionConfig.httpAdditionalHeaders = headers
86 |
87 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
88 | self.httpClient = URLSessionHTTPClient(session: session)
89 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:136:23: error: cannot find 'URLRequest' in scope
134 |
135 | // Create request
136 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
137 | request.httpMethod = "POST"
138 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | /// ```
27 | public actor URLSessionHTTPClient: HTTPClient {
28 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | /// 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:46:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | /// let client = URLSessionHTTPClient(session: session)
45 | /// ```
46 | public init(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | self.session = session
48 | }
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:72:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | /// ```
71 | public static func create(
72 | configuration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | ) -> URLSessionHTTPClient {
74 | 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:72:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
70 | /// ```
71 | public static func create(
72 | configuration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
73 | ) -> URLSessionHTTPClient {
74 | let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:90:36: error: cannot find type 'URLRequest' in scope
88 | /// - `.cancelled` → `.cancelled`
89 | /// - Other errors → `.networkError`
90 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
91 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
92 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:53:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
51 | // Release OS-level socket pool and free the session delegate.
52 | // invalidateAndCancel() is synchronous and safe to call from deinit.
53 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
54 | }
55 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:74:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
72 | configuration: URLSessionConfiguration = .default
73 | ) -> URLSessionHTTPClient {
74 | let session = URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
75 | return URLSessionHTTPClient(session: session)
76 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:91:44: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
89 | /// - Other errors → `.networkError`
90 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
91 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
92 |
93 | do {
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:94:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
92 |
93 | do {
94 | (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
95 | } catch let error as URLError {
96 | throw mapURLError(error)
[131/155] Compiling AGUIClient ClientError.swift
[132/155] Compiling AGUIClient HttpAgent.swift
[133/155] Compiling AGUITools ToolExecutionManager.swift
[134/155] Compiling AGUIClient AGUIClient.swift
[135/155] Compiling AGUIClient AbstractAgent.swift
[136/155] Emitting module AGUITools
[137/155] Compiling AGUITools ToolRegistry.swift
/host/spi-builder-workspace/Sources/AGUITools/Registry/ToolRegistry.swift:368:15: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
361 | /// - Returns: The result of the operation
362 | /// - Throws: ``ToolExecutionError/timeout(toolName:duration:)`` if timeout exceeded
363 | private func withTimeout<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
364 | _ duration: Duration,
365 | toolName: String,
366 | operation: @escaping @Sendable () async throws -> T
367 | ) async throws -> T {
368 | 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
369 | group.addTask {
370 | try await operation()
/host/spi-builder-workspace/Sources/AGUITools/Registry/ToolRegistry.swift:369:15: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
361 | /// - Returns: The result of the operation
362 | /// - Throws: ``ToolExecutionError/timeout(toolName:duration:)`` if timeout exceeded
363 | private func withTimeout<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
364 | _ duration: Duration,
365 | toolName: String,
:
367 | ) async throws -> T {
368 | try await withThrowingTaskGroup(of: T.self) { group in
369 | group.addTask {
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
370 | try await operation()
371 | }
/host/spi-builder-workspace/Sources/AGUITools/Registry/ToolRegistry.swift:373:15: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
361 | /// - Returns: The result of the operation
362 | /// - Throws: ``ToolExecutionError/timeout(toolName:duration:)`` if timeout exceeded
363 | private func withTimeout<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
364 | _ duration: Duration,
365 | toolName: String,
:
371 | }
372 |
373 | group.addTask {
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
374 | try await Task.sleep(for: duration)
375 | throw ToolExecutionError.timeout(toolName: toolName, duration: duration)
/host/spi-builder-workspace/Sources/AGUITools/Registry/ToolRegistry.swift:378:38: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
361 | /// - Returns: The result of the operation
362 | /// - Throws: ``ToolExecutionError/timeout(toolName:duration:)`` if timeout exceeded
363 | private func withTimeout<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
364 | _ duration: Duration,
365 | toolName: String,
:
376 | }
377 |
378 | 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
379 | group.cancelAll()
380 | return result
/host/spi-builder-workspace/Sources/AGUITools/Registry/ToolRegistry.swift:379:15: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
361 | /// - Returns: The result of the operation
362 | /// - Throws: ``ToolExecutionError/timeout(toolName:duration:)`` if timeout exceeded
363 | private func withTimeout<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
364 | _ duration: Duration,
365 | toolName: String,
:
377 |
378 | let result = try await group.next()!
379 | group.cancelAll()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
380 | return result
381 | }
[139/156] Compiling AGUIClient AsyncSequence+Buffering.swift
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/ChunkTransformer.swift:56:29: 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
54 | ) -> AsyncThrowingStream<any AGUIEvent, Error> where S.Element == any AGUIEvent {
55 | AsyncThrowingStream { continuation in
56 | let task = 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
57 | let transformer = EventTransformer(continuation: continuation)
58 | await transformer.processEvents(events)
| `- note: closure captures 'events' which is accessible to code in the current task
59 | }
60 | continuation.onTermination = { _ in task.cancel() }
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/ChunkTransformer.swift:58:35: warning: sending 'events' risks causing data races; this is an error in the Swift 6 language mode
56 | let task = Task {
57 | let transformer = EventTransformer(continuation: continuation)
58 | 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
59 | }
60 | continuation.onTermination = { _ in task.cancel() }
[140/156] Compiling AGUIClient BufferingStrategy.swift
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/ChunkTransformer.swift:56:29: 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
54 | ) -> AsyncThrowingStream<any AGUIEvent, Error> where S.Element == any AGUIEvent {
55 | AsyncThrowingStream { continuation in
56 | let task = 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
57 | let transformer = EventTransformer(continuation: continuation)
58 | await transformer.processEvents(events)
| `- note: closure captures 'events' which is accessible to code in the current task
59 | }
60 | continuation.onTermination = { _ in task.cancel() }
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/ChunkTransformer.swift:58:35: warning: sending 'events' risks causing data races; this is an error in the Swift 6 language mode
56 | let task = Task {
57 | let transformer = EventTransformer(continuation: continuation)
58 | 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
59 | }
60 | continuation.onTermination = { _ in task.cancel() }
[141/156] Compiling AGUIClient ChunkTransformer.swift
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/ChunkTransformer.swift:56:29: 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
54 | ) -> AsyncThrowingStream<any AGUIEvent, Error> where S.Element == any AGUIEvent {
55 | AsyncThrowingStream { continuation in
56 | let task = 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
57 | let transformer = EventTransformer(continuation: continuation)
58 | await transformer.processEvents(events)
| `- note: closure captures 'events' which is accessible to code in the current task
59 | }
60 | continuation.onTermination = { _ in task.cancel() }
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/ChunkTransformer.swift:58:35: warning: sending 'events' risks causing data races; this is an error in the Swift 6 language mode
56 | let task = Task {
57 | let transformer = EventTransformer(continuation: continuation)
58 | 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
59 | }
60 | continuation.onTermination = { _ in task.cancel() }
[142/156] Compiling AGUIClient SseParser.swift
[143/156] Compiling AGUIClient AgentSubscriber.swift
[144/156] Compiling AGUIClient SubscriberManager.swift
[145/156] Compiling AGUIClient EventStream.swift
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/EventVerifier.swift:202:29: 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
200 | public func verifyEvents(debug: Bool = false) -> AsyncThrowingStream<any AGUIEvent, Error> {
201 | AsyncThrowingStream { continuation in
202 | let task = 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
203 | let verifier = EventVerifier(debug: debug)
204 | do {
205 | for try await event in self {
| `- note: closure captures 'self' which is accessible to code in the current task
206 | try verifier.verify(event)
207 | continuation.yield(event)
[146/156] Compiling AGUIClient EventVerifier.swift
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/EventVerifier.swift:202:29: 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
200 | public func verifyEvents(debug: Bool = false) -> AsyncThrowingStream<any AGUIEvent, Error> {
201 | AsyncThrowingStream { continuation in
202 | let task = 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
203 | let verifier = EventVerifier(debug: debug)
204 | do {
205 | for try await event in self {
| `- note: closure captures 'self' which is accessible to code in the current task
206 | try verifier.verify(event)
207 | continuation.yield(event)
[147/156] Compiling AGUIClient SseEvent.swift
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/EventVerifier.swift:202:29: 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
200 | public func verifyEvents(debug: Bool = false) -> AsyncThrowingStream<any AGUIEvent, Error> {
201 | AsyncThrowingStream { continuation in
202 | let task = 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
203 | let verifier = EventVerifier(debug: debug)
204 | do {
205 | for try await event in self {
| `- note: closure captures 'self' which is accessible to code in the current task
206 | try verifier.verify(event)
207 | continuation.yield(event)
[151/156] Compiling AGUIClient DefaultApplyEvents.swift
/host/spi-builder-workspace/Sources/AGUIClient/State/PatchApplicator.swift:288:13: warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
286 |
287 | // Remove from 'from' path
288 | var intermediate = try applyRemove(path: from, from: state)
| `- warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
289 |
290 | // Add to 'to' path
/host/spi-builder-workspace/Sources/AGUIClient/State/DefaultApplyEvents.swift:40: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
38 | ) -> AsyncThrowingStream<AgentState, Error> {
39 | AsyncThrowingStream { continuation in
40 | 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
41 | // Mutable state — all access is serialized within this single Task
42 | var messages: [any Message] = input.messages
:
47 |
48 | do {
49 | for try await event in self {
| `- note: closure captures 'self' which is accessible to code in the current task
50 | // Emit initial messages on first event if present
51 | if !initialMessagesEmitted {
[152/156] Compiling AGUIClient PatchApplicator.swift
/host/spi-builder-workspace/Sources/AGUIClient/State/PatchApplicator.swift:288:13: warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
286 |
287 | // Remove from 'from' path
288 | var intermediate = try applyRemove(path: from, from: state)
| `- warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
289 |
290 | // Add to 'to' path
/host/spi-builder-workspace/Sources/AGUIClient/State/DefaultApplyEvents.swift:40: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
38 | ) -> AsyncThrowingStream<AgentState, Error> {
39 | AsyncThrowingStream { continuation in
40 | 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
41 | // Mutable state — all access is serialized within this single Task
42 | var messages: [any Message] = input.messages
:
47 |
48 | do {
49 | for try await event in self {
| `- note: closure captures 'self' which is accessible to code in the current task
50 | // Emit initial messages on first event if present
51 | if !initialMessagesEmitted {
[153/156] Compiling AGUIClient StateManager.swift
/host/spi-builder-workspace/Sources/AGUIClient/State/PatchApplicator.swift:288:13: warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
286 |
287 | // Remove from 'from' path
288 | var intermediate = try applyRemove(path: from, from: state)
| `- warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
289 |
290 | // Add to 'to' path
/host/spi-builder-workspace/Sources/AGUIClient/State/DefaultApplyEvents.swift:40: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
38 | ) -> AsyncThrowingStream<AgentState, Error> {
39 | AsyncThrowingStream { continuation in
40 | 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
41 | // Mutable state — all access is serialized within this single Task
42 | var messages: [any Message] = input.messages
:
47 |
48 | do {
49 | for try await event in self {
| `- note: closure captures 'self' which is accessible to code in the current task
50 | // Emit initial messages on first event if present
51 | if !initialMessagesEmitted {
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | /// - Returns: An HTTP response containing streaming bytes and metadata
35 | /// - Throws: `ClientError` if the request fails
36 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
[155/156] Compiling AGUIClient RunAgentParameters.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | /// - Returns: An HTTP response containing streaming bytes and metadata
35 | /// - Throws: `ClientError` if the request fails
36 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
[156/156] Compiling AGUIClient AgentState.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | /// - Returns: An HTTP response containing streaming bytes and metadata
35 | /// - Throws: `ClientError` if the request fails
36 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1af1ef9e2b8f7a959ad4dced2035c22f050ae85f531ed2857472423d8f2ef4d3
Status: Image is up to date for registry.gitlab.com/saguaro1/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/101] Compiling AGUICore EventDecodingError.swift
[5/101] Compiling AGUICore AudioInputContentDTO.swift
[6/101] Compiling AGUICore BinaryInputContentDTO.swift
[7/101] Compiling AGUICore DocumentInputContentDTO.swift
[8/101] Compiling AGUICore ImageInputContentDTO.swift
[9/101] Compiling AGUICore TextInputContentDTO.swift
[10/101] Compiling AGUICore VideoInputContentDTO.swift
[11/101] Compiling AGUICore ActivityMessageDTO.swift
[12/101] Compiling AGUICore MessageDecodingHelpers.swift
[13/101] Compiling AGUICore ReasoningMessageDTO.swift
[14/101] Compiling AGUICore ToolMessageDTO.swift
[15/101] Compiling AGUICore UserMessageDTO.swift
[16/101] Compiling AGUICore MessageDecoder.swift
[17/101] Compiling AGUICore ActivityEventRegistry.swift
[18/114] Emitting module AGUICore
[19/114] Compiling AGUICore ReasoningMessageEndEventDTO.swift
[20/114] Compiling AGUICore ReasoningMessageStartEventDTO.swift
[21/114] Compiling AGUICore ReasoningStartEventDTO.swift
[22/114] Compiling AGUICore CustomEventDTO.swift
[23/114] Compiling AGUICore RawEventDTO.swift
[24/114] Compiling AGUICore MessagesSnapshotEventDTO.swift
[25/114] Compiling AGUICore StateDeltaEventDTO.swift
[26/114] Compiling AGUICore StateSnapshotEventDTO.swift
[27/114] Compiling AGUICore TextMessageChunkEventDTO.swift
[28/114] Compiling AGUICore TextMessageEndEventDTO.swift
[29/114] Compiling AGUICore ToolCallChunkEventDTO.swift
[30/114] Compiling AGUICore ToolCallEndEventDTO.swift
[31/114] Compiling AGUICore ToolCallResultEventDTO.swift
[32/114] Compiling AGUICore TypeDiscriminator.swift
[33/114] Compiling AGUICore RunAgentInput.swift
[34/114] Compiling AGUICore RunAgentInputBuilder.swift
[35/114] Compiling AGUICore State.swift
[36/114] Compiling AGUICore Interrupt.swift
[37/114] Compiling AGUICore ResumeEntry.swift
[38/114] Compiling AGUICore AudioInputContent.swift
[39/114] Compiling AGUICore BinaryInputContent.swift
[40/114] Compiling AGUICore DocumentInputContent.swift
[41/114] Compiling AGUICore ImageInputContent.swift
[42/114] Compiling AGUICore InputContent.swift
[43/114] Compiling AGUICore TextInputContent.swift
[44/114] Compiling AGUICore VideoInputContent.swift
[45/114] Compiling AGUICore ActivityMessage.swift
[46/114] Compiling AGUICore LifecycleEventRegistry.swift
[47/114] Compiling AGUICore ReasoningEventRegistry.swift
[48/114] Compiling AGUICore SpecialEventRegistry.swift
[49/114] Compiling AGUICore StateEventRegistry.swift
[50/114] Compiling AGUICore TextMessageEventRegistry.swift
[51/114] Compiling AGUICore ToolCallEventRegistry.swift
[52/114] Compiling AGUICore RegistryComposer.swift
[53/114] Compiling AGUICore ThinkingRemapState.swift
[54/114] Compiling AGUICore MessageEncoder.swift
[55/114] Compiling AGUICore EventType.swift
[56/114] Compiling AGUICore AGUIEvent.swift
[57/114] Compiling AGUICore ActivityDeltaEvent.swift
[58/114] Compiling AGUICore ActivitySnapshotEvent.swift
[59/114] Compiling AGUICore RunErrorEvent.swift
[60/114] Compiling AGUICore RunFinishedEvent.swift
[61/114] Compiling AGUICore RunFinishedOutcome.swift
[62/114] Compiling AGUICore RunStartedEvent.swift
[63/114] Compiling AGUICore StepFinishedEvent.swift
[64/114] Compiling AGUICore StepStartedEvent.swift
[65/114] Compiling AGUICore ReasoningEncryptedValueEvent.swift
[66/114] Compiling AGUICore ReasoningEndEvent.swift
[67/114] Compiling AGUICore ReasoningMessageChunkEvent.swift
[68/114] Compiling AGUICore ReasoningMessageContentEvent.swift
[69/114] Compiling AGUICore ReasoningMessageEndEvent.swift
[70/114] Compiling AGUICore ReasoningMessageStartEvent.swift
[71/114] Compiling AGUICore ReasoningStartEvent.swift
[72/114] Compiling AGUICore CustomEvent.swift
[73/114] Compiling AGUICore RawEvent.swift
[74/114] Compiling AGUICore MessagesSnapshotEvent.swift
[75/114] Compiling AGUICore StateDeltaEvent.swift
[76/114] Compiling AGUICore StateSnapshotEvent.swift
[77/114] Compiling AGUICore TextMessageChunkEvent.swift
[78/114] Compiling AGUICore TextMessageContentEvent.swift
[79/114] Compiling AGUICore TextMessageEndEvent.swift
[80/114] Compiling AGUICore TextMessageStartEvent.swift
[81/114] Compiling AGUICore ToolCallArgsEvent.swift
[82/114] Compiling AGUICore ToolCallChunkEvent.swift
[83/114] Compiling AGUICore ToolCallEndEvent.swift
[84/114] Compiling AGUICore ToolCallResultEvent.swift
[85/114] Compiling AGUICore ToolCallStartEvent.swift
[86/114] Compiling AGUICore UnknownEvent.swift
[87/114] Compiling AGUICore Context.swift
[88/114] Compiling AGUICore AGUICore.swift
[89/114] Compiling AGUICore AGUIEventDecoder.swift
[90/114] Compiling AGUICore ActivityDeltaEventDTO.swift
[91/114] Compiling AGUICore ActivitySnapshotEventDTO.swift
[92/114] Compiling AGUICore EventDecodingHelpers.swift
[93/114] Compiling AGUICore RunErrorEventDTO.swift
[94/114] Compiling AGUICore RunFinishedEventDTO.swift
[95/114] Compiling AGUICore RunStartedEventDTO.swift
[96/114] Compiling AGUICore StepFinishedEventDTO.swift
[97/114] Compiling AGUICore StepStartedEventDTO.swift
[98/114] Compiling AGUICore ReasoningEncryptedValueEventDTO.swift
[99/114] Compiling AGUICore ReasoningEndEventDTO.swift
[100/114] Compiling AGUICore ReasoningMessageChunkEventDTO.swift
[101/114] Compiling AGUICore ReasoningMessageContentEventDTO.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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[116/147] Emitting module AGUIClient
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | /// - Returns: An HTTP response containing streaming bytes and metadata
35 | /// - Throws: `ClientError` if the request fails
36 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:54:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |
53 | /// HTTP response metadata.
54 | public let httpResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// 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:71:73: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// - bytes: Streaming response bytes as an `AsyncThrowingStream<UInt8, Error>`
70 | /// - httpResponse: HTTP response metadata
71 | 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.
72 | self.bytes = bytes
73 | 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:54: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
52 |
53 | /// HTTP response metadata.
54 | 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
55 |
56 | /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:71:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 | } else {
70 | // Create default URLSession-based client
71 | let sessionConfig = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | // timeoutIntervalForRequest: max idle time between consecutive bytes (per-chunk).
73 | // For AI streaming, the inference step can take 30-120 s before the first
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:87:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
85 | sessionConfig.httpAdditionalHeaders = headers
86 |
87 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
88 | self.httpClient = URLSessionHTTPClient(session: session)
89 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | /// ```
27 | public actor URLSessionHTTPClient: HTTPClient {
28 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | /// 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:46:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | /// let client = URLSessionHTTPClient(session: session)
45 | /// ```
46 | public init(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | self.session = session
48 | }
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:72:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | /// ```
71 | public static func create(
72 | configuration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | ) -> URLSessionHTTPClient {
74 | 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:72:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
70 | /// ```
71 | public static func create(
72 | configuration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
73 | ) -> URLSessionHTTPClient {
74 | let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:90:36: error: cannot find type 'URLRequest' in scope
88 | /// - `.cancelled` → `.cancelled`
89 | /// - Other errors → `.networkError`
90 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
91 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
92 |
[117/150] Compiling AGUITools ToolResponseHandler.swift
[118/150] Compiling AGUITools ToolExecutionStats.swift
[119/150] Compiling AGUITools ToolExecutor.swift
[120/151] Compiling AGUIClient AGUIClient.swift
[121/151] Compiling AGUIClient AbstractAgent.swift
[122/151] Compiling AGUIClient ClientError.swift
[123/151] Compiling AGUIClient AgentTransport.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | /// - Returns: An HTTP response containing streaming bytes and metadata
35 | /// - Throws: `ClientError` if the request fails
36 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:54:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |
53 | /// HTTP response metadata.
54 | public let httpResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// 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:71:73: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// - bytes: Streaming response bytes as an `AsyncThrowingStream<UInt8, Error>`
70 | /// - httpResponse: HTTP response metadata
71 | 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.
72 | self.bytes = bytes
73 | 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:54: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
52 |
53 | /// HTTP response metadata.
54 | 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
55 |
56 | /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
56 | /// HTTP status code.
57 | public var statusCode: Int {
58 | httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:63:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
61 | /// Response headers.
62 | public var headers: [AnyHashable: Any] {
63 | httpResponse.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
64 | }
65 |
[124/151] Compiling AGUIClient HTTPClient.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | /// - Returns: An HTTP response containing streaming bytes and metadata
35 | /// - Throws: `ClientError` if the request fails
36 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:54:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |
53 | /// HTTP response metadata.
54 | public let httpResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// 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:71:73: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// - bytes: Streaming response bytes as an `AsyncThrowingStream<UInt8, Error>`
70 | /// - httpResponse: HTTP response metadata
71 | 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.
72 | self.bytes = bytes
73 | 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:54: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
52 |
53 | /// HTTP response metadata.
54 | 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
55 |
56 | /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
56 | /// HTTP status code.
57 | public var statusCode: Int {
58 | httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:63:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
61 | /// Response headers.
62 | public var headers: [AnyHashable: Any] {
63 | httpResponse.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
64 | }
65 |
[125/151] Compiling AGUIClient HttpAgentConfiguration.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | /// - Returns: An HTTP response containing streaming bytes and metadata
35 | /// - Throws: `ClientError` if the request fails
36 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:54:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |
53 | /// HTTP response metadata.
54 | public let httpResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// 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:71:73: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// - bytes: Streaming response bytes as an `AsyncThrowingStream<UInt8, Error>`
70 | /// - httpResponse: HTTP response metadata
71 | 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.
72 | self.bytes = bytes
73 | 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:54: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
52 |
53 | /// HTTP response metadata.
54 | 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
55 |
56 | /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
56 | /// HTTP status code.
57 | public var statusCode: Int {
58 | httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:63:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
61 | /// Response headers.
62 | public var headers: [AnyHashable: Any] {
63 | httpResponse.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
64 | }
65 |
[126/151] Compiling AGUITools ToolExecutionResult.swift
[129/151] Emitting module AGUITools
[130/151] Compiling AGUITools ToolExecutionManager.swift
[132/151] Compiling AGUIClient EventStream.swift
[133/151] Compiling AGUIClient HttpAgentTransport.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | /// - Returns: An HTTP response containing streaming bytes and metadata
35 | /// - Throws: `ClientError` if the request fails
36 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:71:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 | } else {
70 | // Create default URLSession-based client
71 | let sessionConfig = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | // timeoutIntervalForRequest: max idle time between consecutive bytes (per-chunk).
73 | // For AI streaming, the inference step can take 30-120 s before the first
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:87:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
85 | sessionConfig.httpAdditionalHeaders = headers
86 |
87 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
88 | self.httpClient = URLSessionHTTPClient(session: session)
89 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:136:23: error: cannot find 'URLRequest' in scope
134 |
135 | // Create request
136 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
137 | request.httpMethod = "POST"
138 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | /// ```
27 | public actor URLSessionHTTPClient: HTTPClient {
28 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | /// 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:46:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | /// let client = URLSessionHTTPClient(session: session)
45 | /// ```
46 | public init(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | self.session = session
48 | }
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:72:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | /// ```
71 | public static func create(
72 | configuration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | ) -> URLSessionHTTPClient {
74 | 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:72:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
70 | /// ```
71 | public static func create(
72 | configuration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
73 | ) -> URLSessionHTTPClient {
74 | let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:90:36: error: cannot find type 'URLRequest' in scope
88 | /// - `.cancelled` → `.cancelled`
89 | /// - Other errors → `.networkError`
90 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
91 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
92 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:53:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
51 | // Release OS-level socket pool and free the session delegate.
52 | // invalidateAndCancel() is synchronous and safe to call from deinit.
53 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
54 | }
55 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:74:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
72 | configuration: URLSessionConfiguration = .default
73 | ) -> URLSessionHTTPClient {
74 | let session = URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
75 | return URLSessionHTTPClient(session: session)
76 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:91:44: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
89 | /// - Other errors → `.networkError`
90 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
91 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
92 |
93 | do {
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:94:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
92 |
93 | do {
94 | (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
95 | } catch let error as URLError {
96 | throw mapURLError(error)
[134/151] Compiling AGUIClient HttpTransport.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | /// - Returns: An HTTP response containing streaming bytes and metadata
35 | /// - Throws: `ClientError` if the request fails
36 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:71:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 | } else {
70 | // Create default URLSession-based client
71 | let sessionConfig = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | // timeoutIntervalForRequest: max idle time between consecutive bytes (per-chunk).
73 | // For AI streaming, the inference step can take 30-120 s before the first
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:87:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
85 | sessionConfig.httpAdditionalHeaders = headers
86 |
87 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
88 | self.httpClient = URLSessionHTTPClient(session: session)
89 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:136:23: error: cannot find 'URLRequest' in scope
134 |
135 | // Create request
136 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
137 | request.httpMethod = "POST"
138 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | /// ```
27 | public actor URLSessionHTTPClient: HTTPClient {
28 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | /// 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:46:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | /// let client = URLSessionHTTPClient(session: session)
45 | /// ```
46 | public init(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | self.session = session
48 | }
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:72:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | /// ```
71 | public static func create(
72 | configuration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | ) -> URLSessionHTTPClient {
74 | 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:72:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
70 | /// ```
71 | public static func create(
72 | configuration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
73 | ) -> URLSessionHTTPClient {
74 | let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:90:36: error: cannot find type 'URLRequest' in scope
88 | /// - `.cancelled` → `.cancelled`
89 | /// - Other errors → `.networkError`
90 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
91 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
92 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:53:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
51 | // Release OS-level socket pool and free the session delegate.
52 | // invalidateAndCancel() is synchronous and safe to call from deinit.
53 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
54 | }
55 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:74:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
72 | configuration: URLSessionConfiguration = .default
73 | ) -> URLSessionHTTPClient {
74 | let session = URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
75 | return URLSessionHTTPClient(session: session)
76 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:91:44: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
89 | /// - Other errors → `.networkError`
90 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
91 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
92 |
93 | do {
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:94:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
92 |
93 | do {
94 | (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
95 | } catch let error as URLError {
96 | throw mapURLError(error)
[135/151] Compiling AGUIClient URLSessionHTTPClient.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | /// - Returns: An HTTP response containing streaming bytes and metadata
35 | /// - Throws: `ClientError` if the request fails
36 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:71:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 | } else {
70 | // Create default URLSession-based client
71 | let sessionConfig = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | // timeoutIntervalForRequest: max idle time between consecutive bytes (per-chunk).
73 | // For AI streaming, the inference step can take 30-120 s before the first
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:87:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
85 | sessionConfig.httpAdditionalHeaders = headers
86 |
87 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
88 | self.httpClient = URLSessionHTTPClient(session: session)
89 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:136:23: error: cannot find 'URLRequest' in scope
134 |
135 | // Create request
136 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
137 | request.httpMethod = "POST"
138 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | /// ```
27 | public actor URLSessionHTTPClient: HTTPClient {
28 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | /// 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:46:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | /// let client = URLSessionHTTPClient(session: session)
45 | /// ```
46 | public init(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | self.session = session
48 | }
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:72:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | /// ```
71 | public static func create(
72 | configuration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | ) -> URLSessionHTTPClient {
74 | 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:72:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
70 | /// ```
71 | public static func create(
72 | configuration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
73 | ) -> URLSessionHTTPClient {
74 | let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:90:36: error: cannot find type 'URLRequest' in scope
88 | /// - `.cancelled` → `.cancelled`
89 | /// - Other errors → `.networkError`
90 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
91 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
92 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:53:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
51 | // Release OS-level socket pool and free the session delegate.
52 | // invalidateAndCancel() is synchronous and safe to call from deinit.
53 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
54 | }
55 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:74:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
72 | configuration: URLSessionConfiguration = .default
73 | ) -> URLSessionHTTPClient {
74 | let session = URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
75 | return URLSessionHTTPClient(session: session)
76 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:91:44: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
89 | /// - Other errors → `.networkError`
90 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
91 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
92 |
93 | do {
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:94:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
92 |
93 | do {
94 | (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
95 | } catch let error as URLError {
96 | throw mapURLError(error)
[136/151] Compiling AGUIClient SseParser.swift
[137/151] Compiling AGUIClient AgentSubscriber.swift
[138/151] Compiling AGUIClient SubscriberManager.swift
[139/151] Compiling AGUIClient DefaultApplyEvents.swift
/host/spi-builder-workspace/Sources/AGUIClient/State/PatchApplicator.swift:288:13: warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
286 |
287 | // Remove from 'from' path
288 | var intermediate = try applyRemove(path: from, from: state)
| `- warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
289 |
290 | // Add to 'to' path
[140/151] Compiling AGUIClient PatchApplicator.swift
/host/spi-builder-workspace/Sources/AGUIClient/State/PatchApplicator.swift:288:13: warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
286 |
287 | // Remove from 'from' path
288 | var intermediate = try applyRemove(path: from, from: state)
| `- warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
289 |
290 | // Add to 'to' path
[141/151] Compiling AGUIClient StateManager.swift
/host/spi-builder-workspace/Sources/AGUIClient/State/PatchApplicator.swift:288:13: warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
286 |
287 | // Remove from 'from' path
288 | var intermediate = try applyRemove(path: from, from: state)
| `- warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
289 |
290 | // Add to 'to' path
[143/151] Compiling AGUIClient EventVerifier.swift
[144/151] Compiling AGUIClient SseEvent.swift
[145/151] Compiling AGUIClient AsyncSequence+Buffering.swift
[146/151] Compiling AGUIClient BufferingStrategy.swift
[147/151] Compiling AGUIClient ChunkTransformer.swift
[148/151] Compiling AGUIClient HttpAgent.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | /// - Returns: An HTTP response containing streaming bytes and metadata
35 | /// - Throws: `ClientError` if the request fails
36 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
[149/151] Compiling AGUIClient RunAgentParameters.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | /// - Returns: An HTTP response containing streaming bytes and metadata
35 | /// - Throws: `ClientError` if the request fails
36 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
[150/151] Compiling AGUIClient AgentState.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | /// - Returns: An HTTP response containing streaming bytes and metadata
35 | /// - Throws: `ClientError` if the request fails
36 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
BUILD FAILURE 6.1 android