Build Information
Failed to build CopilotSDK, reference v2.2.1 (6d56b5), with Swift 6.2 for Wasm on 6 May 2026 08:49:41 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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git
Reference: v2.2.1
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/jeremiahjordanisaacson/copilot-sdk-supercharged
* tag v2.2.1 -> FETCH_HEAD
HEAD is now at 6d56b56 fix: OCaml — inline rpc lookup in set_session_fs_provider (get_rpc not yet defined)
Updating files: 74% (2432/3254)
Updating files: 75% (2441/3254)
Updating files: 76% (2474/3254)
Updating files: 77% (2506/3254)
Updating files: 78% (2539/3254)
Updating files: 79% (2571/3254)
Updating files: 80% (2604/3254)
Updating files: 81% (2636/3254)
Updating files: 82% (2669/3254)
Updating files: 83% (2701/3254)
Updating files: 84% (2734/3254)
Updating files: 85% (2766/3254)
Updating files: 86% (2799/3254)
Updating files: 87% (2831/3254)
Updating files: 88% (2864/3254)
Updating files: 89% (2897/3254)
Updating files: 90% (2929/3254)
Updating files: 91% (2962/3254)
Updating files: 92% (2994/3254)
Updating files: 93% (3027/3254)
Updating files: 94% (3059/3254)
Updating files: 95% (3092/3254)
Updating files: 96% (3124/3254)
Updating files: 97% (3157/3254)
Updating files: 98% (3189/3254)
Updating files: 99% (3222/3254)
Updating files: 100% (3254/3254)
Updating files: 100% (3254/3254), done.
Cloned https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git
Revision (git rev-parse @):
6d56b568b5ff8c05ea463ccbd6b94547e33d653e
SUCCESS checkout https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git at v2.2.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:2a8b2d9e022a9894c61e0736af7cdaa1ee64c002dbb133a55c0d7e8980b3ad16
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/14] Emitting module CopilotSDK
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:33:29: error: cannot find type 'Process' in scope
31 | private let options: CopilotClientOptions
32 | private var state: ConnectionState = .disconnected
33 | private var cliProcess: Process?
| `- error: cannot find type 'Process' in scope
34 | private var rpcClient: JsonRpcClient?
35 | private var sessions: [String: CopilotSession] = [:]
/host/spi-builder-workspace/swift/Sources/CopilotSDK/JsonRpcClient.swift:13:16: warning: stored property 'data' of 'Sendable'-conforming struct 'JsonRpcError' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
11 | public let code: Int
12 | public let message: String
13 | public let data: [String: Any]?
| `- warning: stored property 'data' of 'Sendable'-conforming struct 'JsonRpcError' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
14 |
15 | public init(code: Int, message: String, data: [String: Any]? = nil) {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:91:16: warning: stored property 'arguments' of 'Sendable'-conforming struct 'ToolInvocation' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
89 | public let toolCallId: String
90 | public let toolName: String
91 | public let arguments: Any? // The decoded JSON arguments
| `- warning: stored property 'arguments' of 'Sendable'-conforming struct 'ToolInvocation' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
92 |
93 | public init(sessionId: String, toolCallId: String, toolName: String, arguments: Any?) {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:110:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'Tool' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
108 | public let name: String
109 | public let description: String?
110 | public let parameters: [String: Any]?
| `- warning: stored property 'parameters' of 'Sendable'-conforming struct 'Tool' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
111 | public let handler: ToolHandler
112 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:215:16: warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
213 | public let kind: String
214 | public let toolCallId: String?
215 | public let rawData: [String: Any]
| `- warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
216 |
217 | public init(kind: String, toolCallId: String? = nil, rawData: [String: Any] = [:]) {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:1106:16: warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
1104 | public let ephemeral: Bool?
1105 | public let type: String
1106 | public let data: [String: Any]
| `- warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
1107 |
1108 | public init(
[5/14] Compiling CopilotSDK DefineTool.swift
[6/14] Compiling CopilotSDK CopilotSession.swift
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:130:21: warning: mutation of captured var 'lastAssistantMessage' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
128 | let handler: SessionEventHandler = { event in
129 | if event.type == "assistant.message" {
130 | lastAssistantMessage = event
| `- warning: mutation of captured var 'lastAssistantMessage' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
131 | } else if event.type == "session.idle" {
132 | if !resumed {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:132:25: warning: reference to captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
130 | lastAssistantMessage = event
131 | } else if event.type == "session.idle" {
132 | if !resumed {
| `- warning: reference to captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
133 | resumed = true
134 | timeoutTask.cancel()
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:133:25: warning: mutation of captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
131 | } else if event.type == "session.idle" {
132 | if !resumed {
133 | resumed = true
| `- warning: mutation of captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
134 | timeoutTask.cancel()
135 | Task { await self.removeEventHandler(handlerId) }
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:136:56: warning: reference to captured var 'lastAssistantMessage' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
134 | timeoutTask.cancel()
135 | Task { await self.removeEventHandler(handlerId) }
136 | continuation.resume(returning: lastAssistantMessage)
| `- warning: reference to captured var 'lastAssistantMessage' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | }
138 | } else if event.type == "session.error" {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:139:25: warning: reference to captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
137 | }
138 | } else if event.type == "session.error" {
139 | if !resumed {
| `- warning: reference to captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 | resumed = true
141 | timeoutTask.cancel()
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:140:25: warning: mutation of captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
138 | } else if event.type == "session.error" {
139 | if !resumed {
140 | resumed = true
| `- warning: mutation of captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
141 | timeoutTask.cancel()
142 | Task { await self.removeEventHandler(handlerId) }
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:120:28: warning: no 'async' operations occur within 'await' expression
118 | resumed = true
119 | // Remove the handler
120 | Task { await self.removeEventHandler(handlerId) }
| `- warning: no 'async' operations occur within 'await' expression
121 | continuation.resume(
122 | throwing: CopilotError.timeout(
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:159:25: warning: no 'async' operations occur within 'await' expression
157 | resumed = true
158 | timeoutTask.cancel()
159 | await self.removeEventHandler(handlerId)
| `- warning: no 'async' operations occur within 'await' expression
160 | continuation.resume(throwing: error)
161 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[7/14] Compiling CopilotSDK SdkProtocolVersion.swift
[8/14] Compiling CopilotSDK Types.swift
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:91:16: warning: stored property 'arguments' of 'Sendable'-conforming struct 'ToolInvocation' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
89 | public let toolCallId: String
90 | public let toolName: String
91 | public let arguments: Any? // The decoded JSON arguments
| `- warning: stored property 'arguments' of 'Sendable'-conforming struct 'ToolInvocation' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
92 |
93 | public init(sessionId: String, toolCallId: String, toolName: String, arguments: Any?) {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:110:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'Tool' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
108 | public let name: String
109 | public let description: String?
110 | public let parameters: [String: Any]?
| `- warning: stored property 'parameters' of 'Sendable'-conforming struct 'Tool' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
111 | public let handler: ToolHandler
112 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:215:16: warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
213 | public let kind: String
214 | public let toolCallId: String?
215 | public let rawData: [String: Any]
| `- warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
216 |
217 | public init(kind: String, toolCallId: String? = nil, rawData: [String: Any] = [:]) {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:1106:16: warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
1104 | public let ephemeral: Bool?
1105 | public let type: String
1106 | public let data: [String: Any]
| `- warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
1107 |
1108 | public init(
[9/14] Compiling CopilotSDK CopilotClient.swift
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:33:29: error: cannot find type 'Process' in scope
31 | private let options: CopilotClientOptions
32 | private var state: ConnectionState = .disconnected
33 | private var cliProcess: Process?
| `- error: cannot find type 'Process' in scope
34 | private var rpcClient: JsonRpcClient?
35 | private var sessions: [String: CopilotSession] = [:]
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:520:23: error: cannot find 'Process' in scope
518 |
519 | private func startCLIServer() async throws {
520 | let process = Process()
| `- error: cannot find 'Process' in scope
521 | process.executableURL = URL(fileURLWithPath: resolvedCliPath)
522 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:561:41: error: value of type 'FileHandle' has no member 'readabilityHandler'
559 |
560 | // Forward stderr to our stderr
561 | stderrPipe.fileHandleForReading.readabilityHandler = { handle in
| `- error: value of type 'FileHandle' has no member 'readabilityHandler'
562 | let data = handle.availableData
563 | if !data.isEmpty {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:561:64: error: cannot infer type of closure parameter 'handle' without a type annotation
559 |
560 | // Forward stderr to our stderr
561 | stderrPipe.fileHandleForReading.readabilityHandler = { handle in
| `- error: cannot infer type of closure parameter 'handle' without a type annotation
562 | let data = handle.availableData
563 | if !data.isEmpty {
[10/14] Compiling CopilotSDK JsonRpcClient.swift
/host/spi-builder-workspace/swift/Sources/CopilotSDK/JsonRpcClient.swift:13:16: warning: stored property 'data' of 'Sendable'-conforming struct 'JsonRpcError' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
11 | public let code: Int
12 | public let message: String
13 | public let data: [String: Any]?
| `- warning: stored property 'data' of 'Sendable'-conforming struct 'JsonRpcError' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
14 |
15 | public init(code: Int, message: String, data: [String: Any]? = nil) {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/JsonRpcClient.swift:224:13: error: cannot find 'DispatchQueue' in scope
222 | private func readData(from handle: FileHandle) async throws -> Data {
223 | return try await withCheckedThrowingContinuation { continuation in
224 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
225 | let data = handle.availableData
226 | continuation.resume(returning: data)
/host/spi-builder-workspace/swift/Sources/CopilotSDK/JsonRpcClient.swift:224:40: error: cannot infer contextual base in reference to member 'userInitiated'
222 | private func readData(from handle: FileHandle) async throws -> Data {
223 | return try await withCheckedThrowingContinuation { continuation in
224 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
225 | let data = handle.availableData
226 | continuation.resume(returning: data)
BUILD FAILURE 6.2 wasm