The Swift Package Index logo.Swift Package Index

Build Information

Failed to build genui-agent-client-swift, reference main (589376), with Swift 6.1 for Wasm on 17 Jul 2026 20:07:56 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 333316120c8b89ed7d21f1b34865290794301d91
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kiliczsh/genui-agent-client-swift.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/kiliczsh/genui-agent-client-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 5893764 Add MIT license, SPI documentation config, and polish README
Cloned https://github.com/kiliczsh/genui-agent-client-swift.git
Revision (git rev-parse @):
5893764bc6fed07564d21e5131a09521b7c22165
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/kiliczsh/genui-agent-client-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/kiliczsh/genui-agent-client-swift.git
https://github.com/kiliczsh/genui-agent-client-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images: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 saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Fetching https://github.com/kiliczsh/genui-agent-protocol.git
[1/45] Fetching genui-agent-protocol
Fetched https://github.com/kiliczsh/genui-agent-protocol.git from cache (0.37s)
Computing version for https://github.com/kiliczsh/genui-agent-protocol.git
Computed https://github.com/kiliczsh/genui-agent-protocol.git at 0.1.0 (0.67s)
Creating working copy for https://github.com/kiliczsh/genui-agent-protocol.git
Working copy of https://github.com/kiliczsh/genui-agent-protocol.git resolved at 0.1.0
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/11] Emitting module GenUIAgentTransport
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[7/11] Compiling GenUIAgentTransport AgentTransport.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[8/12] Compiling GenUIAgentProtocol ProtocolModels.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[10/12] Emitting module GenUIAgentProtocol
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[11/12] Compiling GenUIAgentProtocol Events.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[12/12] Compiling GenUIAgentProtocol Commands.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/17] Emitting module GenUIWebSocketTransport
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |
 7 | public actor URLSessionWebSocketTransport: AgentTransport {
 8 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     private var socket: URLSessionWebSocketTask?
10 |     private var messageStream: AsyncThrowingStream<Data, Error>?
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/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
 7 | public actor URLSessionWebSocketTransport: AgentTransport {
 8 |     private let session: URLSession
 9 |     private var socket: URLSessionWebSocketTask?
   |                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 |     private var messageStream: AsyncThrowingStream<Data, Error>?
11 |     private var messageContinuation:
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:15:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     private var receiveTask: Task<Void, Never>?
14 |
15 |     public init(configuration: URLSessionConfiguration = .default) {
   |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |         session = URLSession(configuration: configuration)
17 |     }
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/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:15:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
13 |     private var receiveTask: Task<Void, Never>?
14 |
15 |     public init(configuration: URLSessionConfiguration = .default) {
   |                                                           `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
16 |         session = URLSession(configuration: configuration)
17 |     }
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:16:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
14 |
15 |     public init(configuration: URLSessionConfiguration = .default) {
16 |         session = URLSession(configuration: configuration)
   |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 |     }
18 |
[15/17] Compiling GenUIWebSocketTransport URLSessionWebSocketTransport.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |
 7 | public actor URLSessionWebSocketTransport: AgentTransport {
 8 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     private var socket: URLSessionWebSocketTask?
10 |     private var messageStream: AsyncThrowingStream<Data, Error>?
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/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
 7 | public actor URLSessionWebSocketTransport: AgentTransport {
 8 |     private let session: URLSession
 9 |     private var socket: URLSessionWebSocketTask?
   |                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 |     private var messageStream: AsyncThrowingStream<Data, Error>?
11 |     private var messageContinuation:
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:15:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     private var receiveTask: Task<Void, Never>?
14 |
15 |     public init(configuration: URLSessionConfiguration = .default) {
   |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |         session = URLSession(configuration: configuration)
17 |     }
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/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:15:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
13 |     private var receiveTask: Task<Void, Never>?
14 |
15 |     public init(configuration: URLSessionConfiguration = .default) {
   |                                                           `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
16 |         session = URLSession(configuration: configuration)
17 |     }
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:16:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
14 |
15 |     public init(configuration: URLSessionConfiguration = .default) {
16 |         session = URLSession(configuration: configuration)
   |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 |     }
18 |
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:28:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
26 |         messageContinuation = pair.continuation
27 |
28 |         let socket = session.webSocketTask(with: url)
   |                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
29 |         self.socket = socket
30 |         socket.resume()
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:43:32: error: cannot infer contextual base in reference to member 'string'
41 |             throw AgentTransportError.unsupportedMessage
42 |         }
43 |         try await socket.send(.string(text))
   |                                `- error: cannot infer contextual base in reference to member 'string'
44 |     }
45 |
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:60:31: error: cannot infer contextual base in reference to member 'normalClosure'
58 |         receiveTask?.cancel()
59 |         receiveTask = nil
60 |         socket?.cancel(with: .normalClosure, reason: nil)
   |                               `- error: cannot infer contextual base in reference to member 'normalClosure'
61 |         socket = nil
62 |         messageContinuation?.finish()
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:60:54: error: 'nil' requires a contextual type
58 |         receiveTask?.cancel()
59 |         receiveTask = nil
60 |         socket?.cancel(with: .normalClosure, reason: nil)
   |                                                      `- error: 'nil' requires a contextual type
61 |         socket = nil
62 |         messageContinuation?.finish()
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:78:58: error: cannot infer contextual base in reference to member 'utf8'
76 |                     messageContinuation?.yield(data)
77 |                 case .string(let string):
78 |                     guard let data = string.data(using: .utf8) else {
   |                                                          `- error: cannot infer contextual base in reference to member 'utf8'
79 |                         throw AgentTransportError.unsupportedMessage
80 |                     }
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:86:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
84 |                 }
85 |             }
86 |         } catch {
   |           `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
87 |             if !Task.isCancelled {
88 |                 messageContinuation?.finish(throwing: error)
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/7] Emitting module GenUIAgentTransport
[3/7] Compiling GenUIAgentTransport AgentTransport.swift
[5/10] Compiling GenUIAgentProtocol ProtocolModels.swift
[6/10] Compiling GenUIAgentProtocol Events.swift
[7/10] Emitting module GenUIAgentProtocol
[8/10] Compiling GenUIAgentProtocol Commands.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/11] Emitting module GenUIWebSocketTransport
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |
 7 | public actor URLSessionWebSocketTransport: AgentTransport {
 8 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     private var socket: URLSessionWebSocketTask?
10 |     private var messageStream: AsyncThrowingStream<Data, Error>?
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/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
 7 | public actor URLSessionWebSocketTransport: AgentTransport {
 8 |     private let session: URLSession
 9 |     private var socket: URLSessionWebSocketTask?
   |                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 |     private var messageStream: AsyncThrowingStream<Data, Error>?
11 |     private var messageContinuation:
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:15:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     private var receiveTask: Task<Void, Never>?
14 |
15 |     public init(configuration: URLSessionConfiguration = .default) {
   |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |         session = URLSession(configuration: configuration)
17 |     }
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/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:15:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
13 |     private var receiveTask: Task<Void, Never>?
14 |
15 |     public init(configuration: URLSessionConfiguration = .default) {
   |                                                           `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
16 |         session = URLSession(configuration: configuration)
17 |     }
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:16:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
14 |
15 |     public init(configuration: URLSessionConfiguration = .default) {
16 |         session = URLSession(configuration: configuration)
   |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 |     }
18 |
[10/11] Compiling GenUIWebSocketTransport URLSessionWebSocketTransport.swift
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |
 7 | public actor URLSessionWebSocketTransport: AgentTransport {
 8 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     private var socket: URLSessionWebSocketTask?
10 |     private var messageStream: AsyncThrowingStream<Data, Error>?
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/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
 7 | public actor URLSessionWebSocketTransport: AgentTransport {
 8 |     private let session: URLSession
 9 |     private var socket: URLSessionWebSocketTask?
   |                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 |     private var messageStream: AsyncThrowingStream<Data, Error>?
11 |     private var messageContinuation:
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:15:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     private var receiveTask: Task<Void, Never>?
14 |
15 |     public init(configuration: URLSessionConfiguration = .default) {
   |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |         session = URLSession(configuration: configuration)
17 |     }
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/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:15:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
13 |     private var receiveTask: Task<Void, Never>?
14 |
15 |     public init(configuration: URLSessionConfiguration = .default) {
   |                                                           `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
16 |         session = URLSession(configuration: configuration)
17 |     }
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:16:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
14 |
15 |     public init(configuration: URLSessionConfiguration = .default) {
16 |         session = URLSession(configuration: configuration)
   |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 |     }
18 |
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:28:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
26 |         messageContinuation = pair.continuation
27 |
28 |         let socket = session.webSocketTask(with: url)
   |                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
29 |         self.socket = socket
30 |         socket.resume()
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:43:32: error: cannot infer contextual base in reference to member 'string'
41 |             throw AgentTransportError.unsupportedMessage
42 |         }
43 |         try await socket.send(.string(text))
   |                                `- error: cannot infer contextual base in reference to member 'string'
44 |     }
45 |
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:60:31: error: cannot infer contextual base in reference to member 'normalClosure'
58 |         receiveTask?.cancel()
59 |         receiveTask = nil
60 |         socket?.cancel(with: .normalClosure, reason: nil)
   |                               `- error: cannot infer contextual base in reference to member 'normalClosure'
61 |         socket = nil
62 |         messageContinuation?.finish()
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:60:54: error: 'nil' requires a contextual type
58 |         receiveTask?.cancel()
59 |         receiveTask = nil
60 |         socket?.cancel(with: .normalClosure, reason: nil)
   |                                                      `- error: 'nil' requires a contextual type
61 |         socket = nil
62 |         messageContinuation?.finish()
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:78:58: error: cannot infer contextual base in reference to member 'utf8'
76 |                     messageContinuation?.yield(data)
77 |                 case .string(let string):
78 |                     guard let data = string.data(using: .utf8) else {
   |                                                          `- error: cannot infer contextual base in reference to member 'utf8'
79 |                         throw AgentTransportError.unsupportedMessage
80 |                     }
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:86:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
84 |                 }
85 |             }
86 |         } catch {
   |           `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
87 |             if !Task.isCancelled {
88 |                 messageContinuation?.finish(throwing: error)
BUILD FAILURE 6.1 wasm