Build Information
Failed to build AGUISwift, reference 0.1.0 (59603f), with Swift 6.1 for Wasm on 18 Apr 2026 10:17:47 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/paduh/ag-ui-swift.git
Reference: 0.1.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/paduh/ag-ui-swift
* tag 0.1.0 -> FETCH_HEAD
HEAD is now at 59603fa Merge pull request #10 from paduh/feature/chatapp-phase4-a2ui-generative-ui
Cloned https://github.com/paduh/ag-ui-swift.git
Revision (git rev-parse @):
59603fa66d18032209d7dec43930ba35dbf0ee08
SUCCESS checkout https://github.com/paduh/ag-ui-swift.git at 0.1.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/paduh/ag-ui-swift.git
https://github.com/paduh/ag-ui-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-docc-plugin
[1/2277] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.39s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.6 (2.79s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3672] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.62s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.56s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.6
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/7] Write sources
[6/7] Write swift-version-24593BA9C3E375BF.txt
[8/94] Emitting module AGUICore
[9/106] Compiling AGUICore ToolCallChunkEvent.swift
[10/106] Compiling AGUICore ToolCallEndEvent.swift
[11/106] Compiling AGUICore ToolCallResultEvent.swift
[12/106] Compiling AGUICore ToolCallStartEvent.swift
[13/106] Compiling AGUICore UnknownEvent.swift
[14/106] Compiling AGUICore Context.swift
[15/106] Compiling AGUICore RunAgentInput.swift
[16/106] Compiling AGUICore RunAgentInputBuilder.swift
[17/106] Compiling AGUICore State.swift
[18/106] Compiling AGUICore BinaryInputContent.swift
[19/106] Compiling AGUICore InputContent.swift
[20/106] Compiling AGUICore TextInputContent.swift
[21/106] Compiling AGUICore StateDeltaEventDTO.swift
[22/106] Compiling AGUICore StateSnapshotEventDTO.swift
[23/106] Compiling AGUICore TextMessageChunkEventDTO.swift
[24/106] Compiling AGUICore TextMessageContentEventDTO.swift
[25/106] Compiling AGUICore TextMessageEndEventDTO.swift
[26/106] Compiling AGUICore TextMessageStartEventDTO.swift
[27/106] Compiling AGUICore ThinkingEndEventDTO.swift
[28/106] Compiling AGUICore ThinkingStartEventDTO.swift
[29/106] Compiling AGUICore ThinkingTextMessageContentEventDTO.swift
[30/106] Compiling AGUICore ThinkingTextMessageEndEventDTO.swift
[31/106] Compiling AGUICore ThinkingTextMessageStartEventDTO.swift
[32/106] Compiling AGUICore ToolCallArgsEventDTO.swift
[33/106] Compiling AGUICore ToolCallChunkEventDTO.swift
[34/106] Compiling AGUICore ToolMessageDTO.swift
[35/106] Compiling AGUICore UserMessageDTO.swift
[36/106] Compiling AGUICore MessageDecoder.swift
[37/106] Compiling AGUICore ActivityEventRegistry.swift
[38/106] Compiling AGUICore LifecycleEventRegistry.swift
[39/106] Compiling AGUICore SpecialEventRegistry.swift
[40/106] Compiling AGUICore StateEventRegistry.swift
[41/106] Compiling AGUICore TextMessageEventRegistry.swift
[42/106] Compiling AGUICore ThinkingEventRegistry.swift
[43/106] Compiling AGUICore ToolCallEventRegistry.swift
[44/106] Compiling AGUICore RegistryComposer.swift
[45/106] Compiling AGUICore MessageEncoder.swift
[46/106] Compiling AGUICore EventType.swift
[47/106] Compiling AGUICore AGUIEvent.swift
[48/106] Compiling AGUICore ActivityDeltaEvent.swift
[49/106] Compiling AGUICore ActivitySnapshotEvent.swift
[50/106] Compiling AGUICore RunErrorEvent.swift
[51/106] Compiling AGUICore RunFinishedEvent.swift
[52/106] Compiling AGUICore RunStartedEvent.swift
[53/106] Compiling AGUICore StepFinishedEvent.swift
[54/106] Compiling AGUICore StepStartedEvent.swift
[55/106] Compiling AGUICore CustomEvent.swift
[56/106] Compiling AGUICore RawEvent.swift
[57/106] Compiling AGUICore MessagesSnapshotEvent.swift
[58/106] Compiling AGUICore ActivityMessage.swift
[59/106] Compiling AGUICore AssistantMessage.swift
[60/106] Compiling AGUICore DeveloperMessage.swift
[61/106] Compiling AGUICore Message.swift
[62/106] Compiling AGUICore Role.swift
[63/106] Compiling AGUICore SystemMessage.swift
[64/106] Compiling AGUICore ToolMessage.swift
[65/106] Compiling AGUICore UserMessage.swift
[66/106] Compiling AGUICore FunctionCall.swift
[67/106] Compiling AGUICore Tool.swift
[68/106] Compiling AGUICore ToolCall.swift
[69/106] Compiling AGUICore JSONCodingHelpers.swift
[70/106] Compiling AGUICore AGUICore.swift
[71/106] Compiling AGUICore AGUIEventDecoder.swift
[72/106] Compiling AGUICore ActivityDeltaEventDTO.swift
[73/106] Compiling AGUICore ActivitySnapshotEventDTO.swift
[74/106] Compiling AGUICore EventDecodingHelpers.swift
[75/106] Compiling AGUICore RunErrorEventDTO.swift
[76/106] Compiling AGUICore RunFinishedEventDTO.swift
[77/106] Compiling AGUICore RunStartedEventDTO.swift
[78/106] Compiling AGUICore StepFinishedEventDTO.swift
[79/106] Compiling AGUICore StepStartedEventDTO.swift
[80/106] Compiling AGUICore CustomEventDTO.swift
[81/106] Compiling AGUICore RawEventDTO.swift
[82/106] Compiling AGUICore MessagesSnapshotEventDTO.swift
[83/106] Compiling AGUICore ToolCallEndEventDTO.swift
[84/106] Compiling AGUICore ToolCallResultEventDTO.swift
[85/106] Compiling AGUICore ToolCallStartEventDTO.swift
[86/106] Compiling AGUICore TypeDiscriminator.swift
[87/106] Compiling AGUICore EventDecodingError.swift
[88/106] Compiling AGUICore BinaryInputContentDTO.swift
[89/106] Compiling AGUICore TextInputContentDTO.swift
[90/106] Compiling AGUICore ActivityMessageDTO.swift
[91/106] Compiling AGUICore AssistantMessageDTO.swift
[92/106] Compiling AGUICore DeveloperMessageDTO.swift
[93/106] Compiling AGUICore MessageDecodingHelpers.swift
[94/106] Compiling AGUICore SystemMessageDTO.swift
[95/106] Compiling AGUICore StateDeltaEvent.swift
[96/106] Compiling AGUICore StateSnapshotEvent.swift
[97/106] Compiling AGUICore TextMessageChunkEvent.swift
[98/106] Compiling AGUICore TextMessageContentEvent.swift
[99/106] Compiling AGUICore TextMessageEndEvent.swift
[100/106] Compiling AGUICore TextMessageStartEvent.swift
[101/106] Compiling AGUICore ThinkingEndEvent.swift
[102/106] Compiling AGUICore ThinkingStartEvent.swift
[103/106] Compiling AGUICore ThinkingTextMessageContentEvent.swift
[104/106] Compiling AGUICore ThinkingTextMessageEndEvent.swift
[105/106] Compiling AGUICore ThinkingTextMessageStartEvent.swift
[106/106] Compiling AGUICore ToolCallArgsEvent.swift
[108/139] Compiling AGUITools ToolExecutor.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[109/140] Emitting module AGUIClient
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 | /// - Returns: An HTTP response containing streaming bytes and metadata
57 | /// - Throws: `ClientError` if the request fails
58 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:214:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
212 | _ input: RunAgentInput,
213 | endpoint: String? = nil
214 | ) async throws -> EventStream<URLSession.AsyncBytes> {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
215 | let bytes = try await transport.execute(
216 | endpoint: endpoint ?? defaultEndpoint,
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:265:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
263 | endpoint: String? = nil,
264 | configure: (RunAgentInputBuilder) -> RunAgentInputBuilder = { $0 }
265 | ) async throws -> EventStream<URLSession.AsyncBytes> {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
266 | let input = try configure(
267 | RunAgentInput.builder()
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:64:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
62 | public struct HTTPResponse: Sendable {
63 | /// Streaming response bytes.
64 | public let bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
65 |
66 | /// HTTP response metadata.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:67:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | /// HTTP response metadata.
67 | public let httpResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |
69 | /// HTTP status code.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:35: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
82 | /// - bytes: Streaming response bytes
83 | /// - httpResponse: HTTP response metadata
84 | public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
85 | self.bytes = bytes
86 | self.httpResponse = httpResponse
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 | /// - bytes: Streaming response bytes
83 | /// - httpResponse: HTTP response metadata
84 | public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | self.bytes = bytes
86 | self.httpResponse = httpResponse
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:67:16: warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 |
66 | /// HTTP response metadata.
67 | public let httpResponse: HTTPURLResponse
| `- warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 |
69 | /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:146:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
144 | endpoint: String,
145 | input: RunAgentInput
146 | ) async throws -> URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
147 | // Construct URL
148 | let url = configuration.baseURL.appendingPathComponent(endpoint)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:93:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
91 | } else {
92 | // Create default URLSession-based client
93 | let sessionConfig = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
94 | // timeoutIntervalForRequest: max idle time between consecutive bytes (per-chunk).
95 | // For AI streaming, the inference step can take 30-120 s before the first
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:107:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
105 | sessionConfig.httpAdditionalHeaders = headers
106 |
107 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
108 | self.httpClient = URLSessionHTTPClient(session: session)
109 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:50:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// ```
49 | public actor URLSessionHTTPClient: HTTPClient {
50 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |
52 | /// Creates a new URLSession HTTP client with the specified session.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:68:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | /// let client = URLSessionHTTPClient(session: session)
67 | /// ```
68 | public init(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | self.session = session
70 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:88:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | /// ```
87 | public static func create(
88 | configuration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | ) -> URLSessionHTTPClient {
90 | let session = URLSession(configuration: configuration)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:88:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
86 | /// ```
87 | public static func create(
88 | configuration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
89 | ) -> URLSessionHTTPClient {
90 | let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:106:36: error: cannot find type 'URLRequest' in scope
104 | /// - `.cancelled` → `.cancelled`
105 | /// - Other errors → `.networkError`
106 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
107 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
108 |
[110/142] Compiling AGUITools ToolExecutionStats.swift
[111/142] Compiling AGUITools ToolResponseHandler.swift
[112/142] Compiling AGUIClient SubscriberManager.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 | /// - Returns: An HTTP response containing streaming bytes and metadata
57 | /// - Throws: `ClientError` if the request fails
58 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:64:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
62 | public struct HTTPResponse: Sendable {
63 | /// Streaming response bytes.
64 | public let bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
65 |
66 | /// HTTP response metadata.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:67:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | /// HTTP response metadata.
67 | public let httpResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |
69 | /// HTTP status code.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:35: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
82 | /// - bytes: Streaming response bytes
83 | /// - httpResponse: HTTP response metadata
84 | public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
85 | self.bytes = bytes
86 | self.httpResponse = httpResponse
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 | /// - bytes: Streaming response bytes
83 | /// - httpResponse: HTTP response metadata
84 | public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | self.bytes = bytes
86 | self.httpResponse = httpResponse
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:67:16: warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 |
66 | /// HTTP response metadata.
67 | public let httpResponse: HTTPURLResponse
| `- warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 |
69 | /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:71:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
69 | /// HTTP status code.
70 | public var statusCode: Int {
71 | httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
72 | }
73 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:76:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
74 | /// Response headers.
75 | public var headers: [AnyHashable: Any] {
76 | httpResponse.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
77 | }
78 |
[113/142] Compiling AGUIClient HTTPClient.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 | /// - Returns: An HTTP response containing streaming bytes and metadata
57 | /// - Throws: `ClientError` if the request fails
58 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:64:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
62 | public struct HTTPResponse: Sendable {
63 | /// Streaming response bytes.
64 | public let bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
65 |
66 | /// HTTP response metadata.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:67:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | /// HTTP response metadata.
67 | public let httpResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |
69 | /// HTTP status code.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:35: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
82 | /// - bytes: Streaming response bytes
83 | /// - httpResponse: HTTP response metadata
84 | public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
85 | self.bytes = bytes
86 | self.httpResponse = httpResponse
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 | /// - bytes: Streaming response bytes
83 | /// - httpResponse: HTTP response metadata
84 | public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | self.bytes = bytes
86 | self.httpResponse = httpResponse
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:67:16: warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 |
66 | /// HTTP response metadata.
67 | public let httpResponse: HTTPURLResponse
| `- warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 |
69 | /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:71:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
69 | /// HTTP status code.
70 | public var statusCode: Int {
71 | httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
72 | }
73 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:76:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
74 | /// Response headers.
75 | public var headers: [AnyHashable: Any] {
76 | httpResponse.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
77 | }
78 |
[114/142] Compiling AGUIClient HttpAgentConfiguration.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 | /// - Returns: An HTTP response containing streaming bytes and metadata
57 | /// - Throws: `ClientError` if the request fails
58 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:64:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
62 | public struct HTTPResponse: Sendable {
63 | /// Streaming response bytes.
64 | public let bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
65 |
66 | /// HTTP response metadata.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:67:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | /// HTTP response metadata.
67 | public let httpResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |
69 | /// HTTP status code.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:35: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
82 | /// - bytes: Streaming response bytes
83 | /// - httpResponse: HTTP response metadata
84 | public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
85 | self.bytes = bytes
86 | self.httpResponse = httpResponse
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 | /// - bytes: Streaming response bytes
83 | /// - httpResponse: HTTP response metadata
84 | public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | self.bytes = bytes
86 | self.httpResponse = httpResponse
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:67:16: warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 |
66 | /// HTTP response metadata.
67 | public let httpResponse: HTTPURLResponse
| `- warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 |
69 | /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:71:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
69 | /// HTTP status code.
70 | public var statusCode: Int {
71 | httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
72 | }
73 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:76:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
74 | /// Response headers.
75 | public var headers: [AnyHashable: Any] {
76 | httpResponse.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
77 | }
78 |
[115/142] Compiling AGUIClient HttpTransport.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 | /// - Returns: An HTTP response containing streaming bytes and metadata
57 | /// - Throws: `ClientError` if the request fails
58 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:146:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
144 | endpoint: String,
145 | input: RunAgentInput
146 | ) async throws -> URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
147 | // Construct URL
148 | let url = configuration.baseURL.appendingPathComponent(endpoint)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:93:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
91 | } else {
92 | // Create default URLSession-based client
93 | let sessionConfig = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
94 | // timeoutIntervalForRequest: max idle time between consecutive bytes (per-chunk).
95 | // For AI streaming, the inference step can take 30-120 s before the first
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:107:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
105 | sessionConfig.httpAdditionalHeaders = headers
106 |
107 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
108 | self.httpClient = URLSessionHTTPClient(session: session)
109 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:151:23: error: cannot find 'URLRequest' in scope
149 |
150 | // Create request
151 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
152 | request.httpMethod = "POST"
153 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:50:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// ```
49 | public actor URLSessionHTTPClient: HTTPClient {
50 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |
52 | /// Creates a new URLSession HTTP client with the specified session.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:68:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | /// let client = URLSessionHTTPClient(session: session)
67 | /// ```
68 | public init(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | self.session = session
70 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:88:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | /// ```
87 | public static func create(
88 | configuration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | ) -> URLSessionHTTPClient {
90 | let session = URLSession(configuration: configuration)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:88:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
86 | /// ```
87 | public static func create(
88 | configuration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
89 | ) -> URLSessionHTTPClient {
90 | let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:106:36: error: cannot find type 'URLRequest' in scope
104 | /// - `.cancelled` → `.cancelled`
105 | /// - Other errors → `.networkError`
106 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
107 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
108 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:90:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
88 | configuration: URLSessionConfiguration = .default
89 | ) -> URLSessionHTTPClient {
90 | let session = URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | return URLSessionHTTPClient(session: session)
92 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:107:44: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
105 | /// - Other errors → `.networkError`
106 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
107 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
108 |
109 | do {
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:110:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
108 |
109 | do {
110 | (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
111 | } catch let error as URLError {
112 | throw mapURLError(error)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:35: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
82 | /// - bytes: Streaming response bytes
83 | /// - httpResponse: HTTP response metadata
84 | public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
85 | self.bytes = bytes
86 | self.httpResponse = httpResponse
[116/142] Compiling AGUIClient URLSessionHTTPClient.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 | /// - Returns: An HTTP response containing streaming bytes and metadata
57 | /// - Throws: `ClientError` if the request fails
58 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:146:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
144 | endpoint: String,
145 | input: RunAgentInput
146 | ) async throws -> URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
147 | // Construct URL
148 | let url = configuration.baseURL.appendingPathComponent(endpoint)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:93:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
91 | } else {
92 | // Create default URLSession-based client
93 | let sessionConfig = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
94 | // timeoutIntervalForRequest: max idle time between consecutive bytes (per-chunk).
95 | // For AI streaming, the inference step can take 30-120 s before the first
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:107:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
105 | sessionConfig.httpAdditionalHeaders = headers
106 |
107 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
108 | self.httpClient = URLSessionHTTPClient(session: session)
109 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:151:23: error: cannot find 'URLRequest' in scope
149 |
150 | // Create request
151 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
152 | request.httpMethod = "POST"
153 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:50:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// ```
49 | public actor URLSessionHTTPClient: HTTPClient {
50 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |
52 | /// Creates a new URLSession HTTP client with the specified session.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:68:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | /// let client = URLSessionHTTPClient(session: session)
67 | /// ```
68 | public init(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | self.session = session
70 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:88:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | /// ```
87 | public static func create(
88 | configuration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | ) -> URLSessionHTTPClient {
90 | let session = URLSession(configuration: configuration)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:88:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
86 | /// ```
87 | public static func create(
88 | configuration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
89 | ) -> URLSessionHTTPClient {
90 | let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:106:36: error: cannot find type 'URLRequest' in scope
104 | /// - `.cancelled` → `.cancelled`
105 | /// - Other errors → `.networkError`
106 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
107 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
108 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:90:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
88 | configuration: URLSessionConfiguration = .default
89 | ) -> URLSessionHTTPClient {
90 | let session = URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | return URLSessionHTTPClient(session: session)
92 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:107:44: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
105 | /// - Other errors → `.networkError`
106 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
107 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
108 |
109 | do {
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:110:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
108 |
109 | do {
110 | (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
111 | } catch let error as URLError {
112 | throw mapURLError(error)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:35: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
82 | /// - bytes: Streaming response bytes
83 | /// - httpResponse: HTTP response metadata
84 | public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
85 | self.bytes = bytes
86 | self.httpResponse = httpResponse
[117/142] Compiling AGUITools ToolExecutionResult.swift
[118/142] Emitting module AGUITools
[119/142] Compiling AGUITools ToolExecutionManager.swift
[120/142] Compiling AGUIClient AgentConfig.swift
[121/142] Compiling AGUIClient DefaultApplyEvents.swift
[122/142] Compiling AGUIClient AGUIClient.swift
[123/142] Compiling AGUIClient AbstractAgent.swift
[124/142] Compiling AGUIClient SseEvent.swift
[125/142] Compiling AGUIClient SseParser.swift
[126/142] Compiling AGUIClient AgentSubscriber.swift
[127/142] Compiling AGUITools ToolRegistry.swift
/host/spi-builder-workspace/Sources/AGUITools/Registry/ToolRegistry.swift:328:15: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
322 | /// - Returns: The result of the operation
323 | /// - Throws: ``ToolExecutionError/timeout(toolName:duration:)`` if timeout exceeded
324 | private func withTimeout<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
325 | _ duration: Duration,
326 | operation: @escaping @Sendable () async throws -> T
327 | ) async throws -> T {
328 | try await withThrowingTaskGroup(of: T.self) { group in
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
329 | group.addTask {
330 | try await operation()
/host/spi-builder-workspace/Sources/AGUITools/Registry/ToolRegistry.swift:329:15: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
322 | /// - Returns: The result of the operation
323 | /// - Throws: ``ToolExecutionError/timeout(toolName:duration:)`` if timeout exceeded
324 | private func withTimeout<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
325 | _ duration: Duration,
326 | operation: @escaping @Sendable () async throws -> T
327 | ) async throws -> T {
328 | try await withThrowingTaskGroup(of: T.self) { group in
329 | group.addTask {
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
330 | try await operation()
331 | }
/host/spi-builder-workspace/Sources/AGUITools/Registry/ToolRegistry.swift:333:15: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
322 | /// - Returns: The result of the operation
323 | /// - Throws: ``ToolExecutionError/timeout(toolName:duration:)`` if timeout exceeded
324 | private func withTimeout<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
325 | _ duration: Duration,
326 | operation: @escaping @Sendable () async throws -> T
:
331 | }
332 |
333 | group.addTask {
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
334 | try await Task.sleep(for: duration)
335 | throw ToolExecutionError.timeout(toolName: "unknown", duration: duration)
/host/spi-builder-workspace/Sources/AGUITools/Registry/ToolRegistry.swift:338:38: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
322 | /// - Returns: The result of the operation
323 | /// - Throws: ``ToolExecutionError/timeout(toolName:duration:)`` if timeout exceeded
324 | private func withTimeout<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
325 | _ duration: Duration,
326 | operation: @escaping @Sendable () async throws -> T
:
336 | }
337 |
338 | let result = try await group.next()!
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
339 | group.cancelAll()
340 | return result
/host/spi-builder-workspace/Sources/AGUITools/Registry/ToolRegistry.swift:339:15: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
322 | /// - Returns: The result of the operation
323 | /// - Throws: ``ToolExecutionError/timeout(toolName:duration:)`` if timeout exceeded
324 | private func withTimeout<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
325 | _ duration: Duration,
326 | operation: @escaping @Sendable () async throws -> T
:
337 |
338 | let result = try await group.next()!
339 | group.cancelAll()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
340 | return result
341 | }
[129/143] Compiling AGUIClient ThinkingTelemetryState.swift
[130/143] Compiling AGUIClient AsyncSequence+Buffering.swift
[131/143] Compiling AGUIClient BufferingStrategy.swift
[132/143] Compiling AGUIClient ChunkTransformer.swift
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/ChunkTransformer.swift:78:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
76 | ) -> AsyncThrowingStream<any AGUIEvent, Error> where S.Element == any AGUIEvent {
77 | AsyncThrowingStream { continuation in
78 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
79 | let transformer = EventTransformer(continuation: continuation)
80 | await transformer.processEvents(events)
| `- note: closure captures 'events' which is accessible to code in the current task
81 | }
82 | }
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/ChunkTransformer.swift:80:35: warning: sending 'events' risks causing data races; this is an error in the Swift 6 language mode
78 | Task {
79 | let transformer = EventTransformer(continuation: continuation)
80 | await transformer.processEvents(events)
| |- warning: sending 'events' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'events' to actor-isolated instance method 'processEvents' risks causing data races between actor-isolated and task-isolated uses
81 | }
82 | }
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/EventVerifier.swift:252:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
250 | public func verifyEvents(debug: Bool = false) -> AsyncThrowingStream<any AGUIEvent, Error> {
251 | AsyncThrowingStream { continuation in
252 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
253 | let verifier = EventVerifier(debug: debug)
254 | do {
255 | for try await event in self {
| `- note: closure captures 'self' which is accessible to code in the current task
256 | try verifier.verify(event)
257 | continuation.yield(event)
[133/143] Compiling AGUIClient EventStream.swift
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/ChunkTransformer.swift:78:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
76 | ) -> AsyncThrowingStream<any AGUIEvent, Error> where S.Element == any AGUIEvent {
77 | AsyncThrowingStream { continuation in
78 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
79 | let transformer = EventTransformer(continuation: continuation)
80 | await transformer.processEvents(events)
| `- note: closure captures 'events' which is accessible to code in the current task
81 | }
82 | }
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/ChunkTransformer.swift:80:35: warning: sending 'events' risks causing data races; this is an error in the Swift 6 language mode
78 | Task {
79 | let transformer = EventTransformer(continuation: continuation)
80 | await transformer.processEvents(events)
| |- warning: sending 'events' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'events' to actor-isolated instance method 'processEvents' risks causing data races between actor-isolated and task-isolated uses
81 | }
82 | }
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/EventVerifier.swift:252:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
250 | public func verifyEvents(debug: Bool = false) -> AsyncThrowingStream<any AGUIEvent, Error> {
251 | AsyncThrowingStream { continuation in
252 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
253 | let verifier = EventVerifier(debug: debug)
254 | do {
255 | for try await event in self {
| `- note: closure captures 'self' which is accessible to code in the current task
256 | try verifier.verify(event)
257 | continuation.yield(event)
[134/143] Compiling AGUIClient EventVerifier.swift
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/ChunkTransformer.swift:78:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
76 | ) -> AsyncThrowingStream<any AGUIEvent, Error> where S.Element == any AGUIEvent {
77 | AsyncThrowingStream { continuation in
78 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
79 | let transformer = EventTransformer(continuation: continuation)
80 | await transformer.processEvents(events)
| `- note: closure captures 'events' which is accessible to code in the current task
81 | }
82 | }
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/ChunkTransformer.swift:80:35: warning: sending 'events' risks causing data races; this is an error in the Swift 6 language mode
78 | Task {
79 | let transformer = EventTransformer(continuation: continuation)
80 | await transformer.processEvents(events)
| |- warning: sending 'events' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'events' to actor-isolated instance method 'processEvents' risks causing data races between actor-isolated and task-isolated uses
81 | }
82 | }
/host/spi-builder-workspace/Sources/AGUIClient/Streaming/EventVerifier.swift:252:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
250 | public func verifyEvents(debug: Bool = false) -> AsyncThrowingStream<any AGUIEvent, Error> {
251 | AsyncThrowingStream { continuation in
252 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
253 | let verifier = EventVerifier(debug: debug)
254 | do {
255 | for try await event in self {
| `- note: closure captures 'self' which is accessible to code in the current task
256 | try verifier.verify(event)
257 | continuation.yield(event)
/host/spi-builder-workspace/Sources/AGUIClient/State/PatchApplicator.swift:310:13: warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
308 |
309 | // Remove from 'from' path
310 | var intermediate = try applyRemove(path: from, from: state)
| `- warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
311 |
312 | // Add to 'to' path
/host/spi-builder-workspace/Sources/AGUIClient/State/DefaultApplyEvents.swift:62:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
60 | ) -> AsyncThrowingStream<AgentState, Error> {
61 | AsyncThrowingStream { continuation in
62 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
63 | // Mutable state — all access is serialized within this single Task
64 | var messages: [any Message] = input.messages
:
73 |
74 | do {
75 | for try await event in self {
| `- note: closure captures 'self' which is accessible to code in the current task
76 | // Emit initial messages on first event if present
77 | if !initialMessagesEmitted {
[139/143] Compiling AGUIClient PatchApplicator.swift
/host/spi-builder-workspace/Sources/AGUIClient/State/PatchApplicator.swift:310:13: warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
308 |
309 | // Remove from 'from' path
310 | var intermediate = try applyRemove(path: from, from: state)
| `- warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
311 |
312 | // Add to 'to' path
/host/spi-builder-workspace/Sources/AGUIClient/State/DefaultApplyEvents.swift:62:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
60 | ) -> AsyncThrowingStream<AgentState, Error> {
61 | AsyncThrowingStream { continuation in
62 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
63 | // Mutable state — all access is serialized within this single Task
64 | var messages: [any Message] = input.messages
:
73 |
74 | do {
75 | for try await event in self {
| `- note: closure captures 'self' which is accessible to code in the current task
76 | // Emit initial messages on first event if present
77 | if !initialMessagesEmitted {
[140/143] Compiling AGUIClient StateManager.swift
/host/spi-builder-workspace/Sources/AGUIClient/State/PatchApplicator.swift:310:13: warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
308 |
309 | // Remove from 'from' path
310 | var intermediate = try applyRemove(path: from, from: state)
| `- warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
311 |
312 | // Add to 'to' path
/host/spi-builder-workspace/Sources/AGUIClient/State/DefaultApplyEvents.swift:62:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
60 | ) -> AsyncThrowingStream<AgentState, Error> {
61 | AsyncThrowingStream { continuation in
62 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
63 | // Mutable state — all access is serialized within this single Task
64 | var messages: [any Message] = input.messages
:
73 |
74 | do {
75 | for try await event in self {
| `- note: closure captures 'self' which is accessible to code in the current task
76 | // Emit initial messages on first event if present
77 | if !initialMessagesEmitted {
[141/143] Compiling AGUIClient ClientError.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 | /// - Returns: An HTTP response containing streaming bytes and metadata
57 | /// - Throws: `ClientError` if the request fails
58 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:214:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
212 | _ input: RunAgentInput,
213 | endpoint: String? = nil
214 | ) async throws -> EventStream<URLSession.AsyncBytes> {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
215 | let bytes = try await transport.execute(
216 | endpoint: endpoint ?? defaultEndpoint,
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:265:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
263 | endpoint: String? = nil,
264 | configure: (RunAgentInputBuilder) -> RunAgentInputBuilder = { $0 }
265 | ) async throws -> EventStream<URLSession.AsyncBytes> {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
266 | let input = try configure(
267 | RunAgentInput.builder()
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:146:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
144 | endpoint: String,
145 | input: RunAgentInput
146 | ) async throws -> URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
147 | // Construct URL
148 | let url = configuration.baseURL.appendingPathComponent(endpoint)
[142/143] Compiling AGUIClient HttpAgent.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 | /// - Returns: An HTTP response containing streaming bytes and metadata
57 | /// - Throws: `ClientError` if the request fails
58 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:214:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
212 | _ input: RunAgentInput,
213 | endpoint: String? = nil
214 | ) async throws -> EventStream<URLSession.AsyncBytes> {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
215 | let bytes = try await transport.execute(
216 | endpoint: endpoint ?? defaultEndpoint,
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:265:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
263 | endpoint: String? = nil,
264 | configure: (RunAgentInputBuilder) -> RunAgentInputBuilder = { $0 }
265 | ) async throws -> EventStream<URLSession.AsyncBytes> {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
266 | let input = try configure(
267 | RunAgentInput.builder()
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:146:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
144 | endpoint: String,
145 | input: RunAgentInput
146 | ) async throws -> URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
147 | // Construct URL
148 | let url = configuration.baseURL.appendingPathComponent(endpoint)
[143/143] Compiling AGUIClient AgentState.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 | /// - Returns: An HTTP response containing streaming bytes and metadata
57 | /// - Throws: `ClientError` if the request fails
58 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:214:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
212 | _ input: RunAgentInput,
213 | endpoint: String? = nil
214 | ) async throws -> EventStream<URLSession.AsyncBytes> {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
215 | let bytes = try await transport.execute(
216 | endpoint: endpoint ?? defaultEndpoint,
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:265:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
263 | endpoint: String? = nil,
264 | configure: (RunAgentInputBuilder) -> RunAgentInputBuilder = { $0 }
265 | ) async throws -> EventStream<URLSession.AsyncBytes> {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
266 | let input = try configure(
267 | RunAgentInput.builder()
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:146:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
144 | endpoint: String,
145 | input: RunAgentInput
146 | ) async throws -> URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
147 | // Construct URL
148 | let url = configuration.baseURL.appendingPathComponent(endpoint)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/90] Emitting module AGUICore
[5/102] Compiling AGUICore ToolMessageDTO.swift
[6/102] Compiling AGUICore UserMessageDTO.swift
[7/102] Compiling AGUICore MessageDecoder.swift
[8/102] Compiling AGUICore ActivityEventRegistry.swift
[9/102] Compiling AGUICore LifecycleEventRegistry.swift
[10/102] Compiling AGUICore SpecialEventRegistry.swift
[11/102] Compiling AGUICore StateEventRegistry.swift
[12/102] Compiling AGUICore TextMessageEventRegistry.swift
[13/102] Compiling AGUICore ThinkingEventRegistry.swift
[14/102] Compiling AGUICore ToolCallEventRegistry.swift
[15/102] Compiling AGUICore RegistryComposer.swift
[16/102] Compiling AGUICore MessageEncoder.swift
[17/102] Compiling AGUICore AGUICore.swift
[18/102] Compiling AGUICore AGUIEventDecoder.swift
[19/102] Compiling AGUICore ActivityDeltaEventDTO.swift
[20/102] Compiling AGUICore ActivitySnapshotEventDTO.swift
[21/102] Compiling AGUICore EventDecodingHelpers.swift
[22/102] Compiling AGUICore RunErrorEventDTO.swift
[23/102] Compiling AGUICore RunFinishedEventDTO.swift
[24/102] Compiling AGUICore RunStartedEventDTO.swift
[25/102] Compiling AGUICore StepFinishedEventDTO.swift
[26/102] Compiling AGUICore StepStartedEventDTO.swift
[27/102] Compiling AGUICore CustomEventDTO.swift
[28/102] Compiling AGUICore RawEventDTO.swift
[29/102] Compiling AGUICore MessagesSnapshotEventDTO.swift
[30/102] Compiling AGUICore ToolCallEndEventDTO.swift
[31/102] Compiling AGUICore ToolCallResultEventDTO.swift
[32/102] Compiling AGUICore ToolCallStartEventDTO.swift
[33/102] Compiling AGUICore TypeDiscriminator.swift
[34/102] Compiling AGUICore EventDecodingError.swift
[35/102] Compiling AGUICore BinaryInputContentDTO.swift
[36/102] Compiling AGUICore TextInputContentDTO.swift
[37/102] Compiling AGUICore ActivityMessageDTO.swift
[38/102] Compiling AGUICore AssistantMessageDTO.swift
[39/102] Compiling AGUICore DeveloperMessageDTO.swift
[40/102] Compiling AGUICore MessageDecodingHelpers.swift
[41/102] Compiling AGUICore SystemMessageDTO.swift
[42/102] Compiling AGUICore ActivityMessage.swift
[43/102] Compiling AGUICore AssistantMessage.swift
[44/102] Compiling AGUICore DeveloperMessage.swift
[45/102] Compiling AGUICore Message.swift
[46/102] Compiling AGUICore Role.swift
[47/102] Compiling AGUICore SystemMessage.swift
[48/102] Compiling AGUICore ToolMessage.swift
[49/102] Compiling AGUICore UserMessage.swift
[50/102] Compiling AGUICore FunctionCall.swift
[51/102] Compiling AGUICore Tool.swift
[52/102] Compiling AGUICore ToolCall.swift
[53/102] Compiling AGUICore JSONCodingHelpers.swift
[54/102] Compiling AGUICore StateDeltaEventDTO.swift
[55/102] Compiling AGUICore StateSnapshotEventDTO.swift
[56/102] Compiling AGUICore TextMessageChunkEventDTO.swift
[57/102] Compiling AGUICore TextMessageContentEventDTO.swift
[58/102] Compiling AGUICore TextMessageEndEventDTO.swift
[59/102] Compiling AGUICore TextMessageStartEventDTO.swift
[60/102] Compiling AGUICore ThinkingEndEventDTO.swift
[61/102] Compiling AGUICore ThinkingStartEventDTO.swift
[62/102] Compiling AGUICore ThinkingTextMessageContentEventDTO.swift
[63/102] Compiling AGUICore ThinkingTextMessageEndEventDTO.swift
[64/102] Compiling AGUICore ThinkingTextMessageStartEventDTO.swift
[65/102] Compiling AGUICore ToolCallArgsEventDTO.swift
[66/102] Compiling AGUICore ToolCallChunkEventDTO.swift
[67/102] Compiling AGUICore ToolCallChunkEvent.swift
[68/102] Compiling AGUICore ToolCallEndEvent.swift
[69/102] Compiling AGUICore ToolCallResultEvent.swift
[70/102] Compiling AGUICore ToolCallStartEvent.swift
[71/102] Compiling AGUICore UnknownEvent.swift
[72/102] Compiling AGUICore Context.swift
[73/102] Compiling AGUICore RunAgentInput.swift
[74/102] Compiling AGUICore RunAgentInputBuilder.swift
[75/102] Compiling AGUICore State.swift
[76/102] Compiling AGUICore BinaryInputContent.swift
[77/102] Compiling AGUICore InputContent.swift
[78/102] Compiling AGUICore TextInputContent.swift
[79/102] Compiling AGUICore StateDeltaEvent.swift
[80/102] Compiling AGUICore StateSnapshotEvent.swift
[81/102] Compiling AGUICore TextMessageChunkEvent.swift
[82/102] Compiling AGUICore TextMessageContentEvent.swift
[83/102] Compiling AGUICore TextMessageEndEvent.swift
[84/102] Compiling AGUICore TextMessageStartEvent.swift
[85/102] Compiling AGUICore ThinkingEndEvent.swift
[86/102] Compiling AGUICore ThinkingStartEvent.swift
[87/102] Compiling AGUICore ThinkingTextMessageContentEvent.swift
[88/102] Compiling AGUICore ThinkingTextMessageEndEvent.swift
[89/102] Compiling AGUICore ThinkingTextMessageStartEvent.swift
[90/102] Compiling AGUICore ToolCallArgsEvent.swift
[91/102] Compiling AGUICore EventType.swift
[92/102] Compiling AGUICore AGUIEvent.swift
[93/102] Compiling AGUICore ActivityDeltaEvent.swift
[94/102] Compiling AGUICore ActivitySnapshotEvent.swift
[95/102] Compiling AGUICore RunErrorEvent.swift
[96/102] Compiling AGUICore RunFinishedEvent.swift
[97/102] Compiling AGUICore RunStartedEvent.swift
[98/102] Compiling AGUICore StepFinishedEvent.swift
[99/102] Compiling AGUICore StepStartedEvent.swift
[100/102] Compiling AGUICore CustomEvent.swift
[101/102] Compiling AGUICore RawEvent.swift
[102/102] Compiling AGUICore MessagesSnapshotEvent.swift
[104/135] Compiling AGUITools ToolExecutionStats.swift
[105/135] Compiling AGUITools ToolExecutionResult.swift
[106/135] Compiling AGUITools ToolExecutor.swift
[107/135] Compiling AGUITools ToolResponseHandler.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[108/136] Emitting module AGUIClient
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 | /// - Returns: An HTTP response containing streaming bytes and metadata
57 | /// - Throws: `ClientError` if the request fails
58 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:214:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
212 | _ input: RunAgentInput,
213 | endpoint: String? = nil
214 | ) async throws -> EventStream<URLSession.AsyncBytes> {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
215 | let bytes = try await transport.execute(
216 | endpoint: endpoint ?? defaultEndpoint,
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:265:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
263 | endpoint: String? = nil,
264 | configure: (RunAgentInputBuilder) -> RunAgentInputBuilder = { $0 }
265 | ) async throws -> EventStream<URLSession.AsyncBytes> {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
266 | let input = try configure(
267 | RunAgentInput.builder()
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:64:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
62 | public struct HTTPResponse: Sendable {
63 | /// Streaming response bytes.
64 | public let bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
65 |
66 | /// HTTP response metadata.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:67:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | /// HTTP response metadata.
67 | public let httpResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |
69 | /// HTTP status code.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:35: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
82 | /// - bytes: Streaming response bytes
83 | /// - httpResponse: HTTP response metadata
84 | public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
85 | self.bytes = bytes
86 | self.httpResponse = httpResponse
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 | /// - bytes: Streaming response bytes
83 | /// - httpResponse: HTTP response metadata
84 | public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | self.bytes = bytes
86 | self.httpResponse = httpResponse
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:67:16: warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 |
66 | /// HTTP response metadata.
67 | public let httpResponse: HTTPURLResponse
| `- warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 |
69 | /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:146:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
144 | endpoint: String,
145 | input: RunAgentInput
146 | ) async throws -> URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
147 | // Construct URL
148 | let url = configuration.baseURL.appendingPathComponent(endpoint)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:93:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
91 | } else {
92 | // Create default URLSession-based client
93 | let sessionConfig = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
94 | // timeoutIntervalForRequest: max idle time between consecutive bytes (per-chunk).
95 | // For AI streaming, the inference step can take 30-120 s before the first
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:107:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
105 | sessionConfig.httpAdditionalHeaders = headers
106 |
107 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
108 | self.httpClient = URLSessionHTTPClient(session: session)
109 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:50:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// ```
49 | public actor URLSessionHTTPClient: HTTPClient {
50 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |
52 | /// Creates a new URLSession HTTP client with the specified session.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:68:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | /// let client = URLSessionHTTPClient(session: session)
67 | /// ```
68 | public init(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | self.session = session
70 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:88:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | /// ```
87 | public static func create(
88 | configuration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | ) -> URLSessionHTTPClient {
90 | let session = URLSession(configuration: configuration)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:88:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
86 | /// ```
87 | public static func create(
88 | configuration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
89 | ) -> URLSessionHTTPClient {
90 | let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:106:36: error: cannot find type 'URLRequest' in scope
104 | /// - `.cancelled` → `.cancelled`
105 | /// - Other errors → `.networkError`
106 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
107 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
108 |
[109/138] Compiling AGUIClient AGUIClient.swift
[110/138] Compiling AGUIClient AbstractAgent.swift
[111/138] Emitting module AGUITools
[112/138] Compiling AGUIClient AgentConfig.swift
[113/138] Compiling AGUIClient DefaultApplyEvents.swift
[114/138] Compiling AGUITools ToolExecutionManager.swift
[115/138] Compiling AGUIClient HttpTransport.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 | /// - Returns: An HTTP response containing streaming bytes and metadata
57 | /// - Throws: `ClientError` if the request fails
58 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:146:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
144 | endpoint: String,
145 | input: RunAgentInput
146 | ) async throws -> URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
147 | // Construct URL
148 | let url = configuration.baseURL.appendingPathComponent(endpoint)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:93:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
91 | } else {
92 | // Create default URLSession-based client
93 | let sessionConfig = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
94 | // timeoutIntervalForRequest: max idle time between consecutive bytes (per-chunk).
95 | // For AI streaming, the inference step can take 30-120 s before the first
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:107:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
105 | sessionConfig.httpAdditionalHeaders = headers
106 |
107 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
108 | self.httpClient = URLSessionHTTPClient(session: session)
109 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:151:23: error: cannot find 'URLRequest' in scope
149 |
150 | // Create request
151 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
152 | request.httpMethod = "POST"
153 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:50:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// ```
49 | public actor URLSessionHTTPClient: HTTPClient {
50 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |
52 | /// Creates a new URLSession HTTP client with the specified session.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:68:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | /// let client = URLSessionHTTPClient(session: session)
67 | /// ```
68 | public init(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | self.session = session
70 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:88:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | /// ```
87 | public static func create(
88 | configuration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | ) -> URLSessionHTTPClient {
90 | let session = URLSession(configuration: configuration)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:88:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
86 | /// ```
87 | public static func create(
88 | configuration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
89 | ) -> URLSessionHTTPClient {
90 | let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:106:36: error: cannot find type 'URLRequest' in scope
104 | /// - `.cancelled` → `.cancelled`
105 | /// - Other errors → `.networkError`
106 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
107 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
108 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:90:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
88 | configuration: URLSessionConfiguration = .default
89 | ) -> URLSessionHTTPClient {
90 | let session = URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | return URLSessionHTTPClient(session: session)
92 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:107:44: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
105 | /// - Other errors → `.networkError`
106 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
107 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
108 |
109 | do {
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:110:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
108 |
109 | do {
110 | (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
111 | } catch let error as URLError {
112 | throw mapURLError(error)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:35: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
82 | /// - bytes: Streaming response bytes
83 | /// - httpResponse: HTTP response metadata
84 | public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
85 | self.bytes = bytes
86 | self.httpResponse = httpResponse
[116/138] Compiling AGUIClient URLSessionHTTPClient.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 | /// - Returns: An HTTP response containing streaming bytes and metadata
57 | /// - Throws: `ClientError` if the request fails
58 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:146:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
144 | endpoint: String,
145 | input: RunAgentInput
146 | ) async throws -> URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
147 | // Construct URL
148 | let url = configuration.baseURL.appendingPathComponent(endpoint)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:93:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
91 | } else {
92 | // Create default URLSession-based client
93 | let sessionConfig = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
94 | // timeoutIntervalForRequest: max idle time between consecutive bytes (per-chunk).
95 | // For AI streaming, the inference step can take 30-120 s before the first
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:107:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
105 | sessionConfig.httpAdditionalHeaders = headers
106 |
107 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
108 | self.httpClient = URLSessionHTTPClient(session: session)
109 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:151:23: error: cannot find 'URLRequest' in scope
149 |
150 | // Create request
151 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
152 | request.httpMethod = "POST"
153 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:50:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// ```
49 | public actor URLSessionHTTPClient: HTTPClient {
50 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |
52 | /// Creates a new URLSession HTTP client with the specified session.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:68:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | /// let client = URLSessionHTTPClient(session: session)
67 | /// ```
68 | public init(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | self.session = session
70 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:88:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | /// ```
87 | public static func create(
88 | configuration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | ) -> URLSessionHTTPClient {
90 | let session = URLSession(configuration: configuration)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:88:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
86 | /// ```
87 | public static func create(
88 | configuration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
89 | ) -> URLSessionHTTPClient {
90 | let session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:106:36: error: cannot find type 'URLRequest' in scope
104 | /// - `.cancelled` → `.cancelled`
105 | /// - Other errors → `.networkError`
106 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
107 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
108 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:90:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
88 | configuration: URLSessionConfiguration = .default
89 | ) -> URLSessionHTTPClient {
90 | let session = URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | return URLSessionHTTPClient(session: session)
92 | }
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:107:44: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
105 | /// - Other errors → `.networkError`
106 | public func execute(_ request: URLRequest) async throws -> HTTPResponse {
107 | let (bytes, response): (URLSession.AsyncBytes, URLResponse)
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
108 |
109 | do {
/host/spi-builder-workspace/Sources/AGUIClient/Transport/URLSessionHTTPClient.swift:110:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
108 |
109 | do {
110 | (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
111 | } catch let error as URLError {
112 | throw mapURLError(error)
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:35: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
82 | /// - bytes: Streaming response bytes
83 | /// - httpResponse: HTTP response metadata
84 | public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
85 | self.bytes = bytes
86 | self.httpResponse = httpResponse
[117/138] Compiling AGUIClient SseEvent.swift
[118/138] Compiling AGUIClient SseParser.swift
[119/138] Compiling AGUIClient AgentSubscriber.swift
[120/138] Compiling AGUIClient SubscriberManager.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 | /// - Returns: An HTTP response containing streaming bytes and metadata
57 | /// - Throws: `ClientError` if the request fails
58 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:64:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
62 | public struct HTTPResponse: Sendable {
63 | /// Streaming response bytes.
64 | public let bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
65 |
66 | /// HTTP response metadata.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:67:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | /// HTTP response metadata.
67 | public let httpResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |
69 | /// HTTP status code.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:35: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
82 | /// - bytes: Streaming response bytes
83 | /// - httpResponse: HTTP response metadata
84 | public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
85 | self.bytes = bytes
86 | self.httpResponse = httpResponse
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 | /// - bytes: Streaming response bytes
83 | /// - httpResponse: HTTP response metadata
84 | public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | self.bytes = bytes
86 | self.httpResponse = httpResponse
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:67:16: warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 |
66 | /// HTTP response metadata.
67 | public let httpResponse: HTTPURLResponse
| `- warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 |
69 | /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:71:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
69 | /// HTTP status code.
70 | public var statusCode: Int {
71 | httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
72 | }
73 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:76:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
74 | /// Response headers.
75 | public var headers: [AnyHashable: Any] {
76 | httpResponse.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
77 | }
78 |
[121/138] Compiling AGUIClient HTTPClient.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 | /// - Returns: An HTTP response containing streaming bytes and metadata
57 | /// - Throws: `ClientError` if the request fails
58 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:64:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
62 | public struct HTTPResponse: Sendable {
63 | /// Streaming response bytes.
64 | public let bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
65 |
66 | /// HTTP response metadata.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:67:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | /// HTTP response metadata.
67 | public let httpResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |
69 | /// HTTP status code.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:35: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
82 | /// - bytes: Streaming response bytes
83 | /// - httpResponse: HTTP response metadata
84 | public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
85 | self.bytes = bytes
86 | self.httpResponse = httpResponse
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 | /// - bytes: Streaming response bytes
83 | /// - httpResponse: HTTP response metadata
84 | public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | self.bytes = bytes
86 | self.httpResponse = httpResponse
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:67:16: warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 |
66 | /// HTTP response metadata.
67 | public let httpResponse: HTTPURLResponse
| `- warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 |
69 | /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:71:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
69 | /// HTTP status code.
70 | public var statusCode: Int {
71 | httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
72 | }
73 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:76:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
74 | /// Response headers.
75 | public var headers: [AnyHashable: Any] {
76 | httpResponse.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
77 | }
78 |
[122/138] Compiling AGUIClient HttpAgentConfiguration.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 | /// - Returns: An HTTP response containing streaming bytes and metadata
57 | /// - Throws: `ClientError` if the request fails
58 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:64:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
62 | public struct HTTPResponse: Sendable {
63 | /// Streaming response bytes.
64 | public let bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
65 |
66 | /// HTTP response metadata.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:67:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 | /// HTTP response metadata.
67 | public let httpResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |
69 | /// HTTP status code.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:35: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
82 | /// - bytes: Streaming response bytes
83 | /// - httpResponse: HTTP response metadata
84 | public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
85 | self.bytes = bytes
86 | self.httpResponse = httpResponse
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:84:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 | /// - bytes: Streaming response bytes
83 | /// - httpResponse: HTTP response metadata
84 | public init(bytes: URLSession.AsyncBytes, httpResponse: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | self.bytes = bytes
86 | self.httpResponse = httpResponse
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:67:16: warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 |
66 | /// HTTP response metadata.
67 | public let httpResponse: HTTPURLResponse
| `- warning: stored property 'httpResponse' of 'Sendable'-conforming struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 |
69 | /// HTTP status code.
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:71:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
69 | /// HTTP status code.
70 | public var statusCode: Int {
71 | httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
72 | }
73 |
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:76:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
74 | /// Response headers.
75 | public var headers: [AnyHashable: Any] {
76 | httpResponse.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
77 | }
78 |
[123/138] Compiling AGUIClient ThinkingTelemetryState.swift
[124/138] Compiling AGUIClient AsyncSequence+Buffering.swift
[125/138] Compiling AGUIClient BufferingStrategy.swift
[126/138] Compiling AGUITools ToolRegistry.swift
[128/139] Compiling AGUIClient ChunkTransformer.swift
[129/139] Compiling AGUIClient EventStream.swift
[130/139] Compiling AGUIClient EventVerifier.swift
/host/spi-builder-workspace/Sources/AGUIClient/State/PatchApplicator.swift:310:13: warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
308 |
309 | // Remove from 'from' path
310 | var intermediate = try applyRemove(path: from, from: state)
| `- warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
311 |
312 | // Add to 'to' path
[135/139] Compiling AGUIClient PatchApplicator.swift
/host/spi-builder-workspace/Sources/AGUIClient/State/PatchApplicator.swift:310:13: warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
308 |
309 | // Remove from 'from' path
310 | var intermediate = try applyRemove(path: from, from: state)
| `- warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
311 |
312 | // Add to 'to' path
[136/139] Compiling AGUIClient StateManager.swift
/host/spi-builder-workspace/Sources/AGUIClient/State/PatchApplicator.swift:310:13: warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
308 |
309 | // Remove from 'from' path
310 | var intermediate = try applyRemove(path: from, from: state)
| `- warning: variable 'intermediate' was never mutated; consider changing to 'let' constant
311 |
312 | // Add to 'to' path
[137/139] Compiling AGUIClient ClientError.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 | /// - Returns: An HTTP response containing streaming bytes and metadata
57 | /// - Throws: `ClientError` if the request fails
58 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:214:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
212 | _ input: RunAgentInput,
213 | endpoint: String? = nil
214 | ) async throws -> EventStream<URLSession.AsyncBytes> {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
215 | let bytes = try await transport.execute(
216 | endpoint: endpoint ?? defaultEndpoint,
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:265:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
263 | endpoint: String? = nil,
264 | configure: (RunAgentInputBuilder) -> RunAgentInputBuilder = { $0 }
265 | ) async throws -> EventStream<URLSession.AsyncBytes> {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
266 | let input = try configure(
267 | RunAgentInput.builder()
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:146:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
144 | endpoint: String,
145 | input: RunAgentInput
146 | ) async throws -> URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
147 | // Construct URL
148 | let url = configuration.baseURL.appendingPathComponent(endpoint)
[138/139] Compiling AGUIClient HttpAgent.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 | /// - Returns: An HTTP response containing streaming bytes and metadata
57 | /// - Throws: `ClientError` if the request fails
58 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:214:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
212 | _ input: RunAgentInput,
213 | endpoint: String? = nil
214 | ) async throws -> EventStream<URLSession.AsyncBytes> {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
215 | let bytes = try await transport.execute(
216 | endpoint: endpoint ?? defaultEndpoint,
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:265:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
263 | endpoint: String? = nil,
264 | configure: (RunAgentInputBuilder) -> RunAgentInputBuilder = { $0 }
265 | ) async throws -> EventStream<URLSession.AsyncBytes> {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
266 | let input = try configure(
267 | RunAgentInput.builder()
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:146:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
144 | endpoint: String,
145 | input: RunAgentInput
146 | ) async throws -> URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
147 | // Construct URL
148 | let url = configuration.baseURL.appendingPathComponent(endpoint)
[139/139] Compiling AGUIClient AgentState.swift
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HTTPClient.swift:58:29: error: cannot find type 'URLRequest' in scope
56 | /// - Returns: An HTTP response containing streaming bytes and metadata
57 | /// - Throws: `ClientError` if the request fails
58 | func execute(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:214:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
212 | _ input: RunAgentInput,
213 | endpoint: String? = nil
214 | ) async throws -> EventStream<URLSession.AsyncBytes> {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
215 | let bytes = try await transport.execute(
216 | endpoint: endpoint ?? defaultEndpoint,
/host/spi-builder-workspace/Sources/AGUIClient/HttpAgent.swift:265:46: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
263 | endpoint: String? = nil,
264 | configure: (RunAgentInputBuilder) -> RunAgentInputBuilder = { $0 }
265 | ) async throws -> EventStream<URLSession.AsyncBytes> {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
266 | let input = try configure(
267 | RunAgentInput.builder()
/host/spi-builder-workspace/Sources/AGUIClient/Transport/HttpTransport.swift:146:34: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
144 | endpoint: String,
145 | input: RunAgentInput
146 | ) async throws -> URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
147 | // Construct URL
148 | let url = configuration.baseURL.appendingPathComponent(endpoint)
BUILD FAILURE 6.1 wasm