Build Information
Failed to build CopilotSDK, reference main (dd3448), with Swift 6.1 for Wasm on 22 Aug 2026 22:55:37 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344849-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.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/jeremiahjordanisaacson/copilot-sdk-supercharged
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at dd34489 chore: release v2.5.3
Updating files: 84% (4215/5007)
Updating files: 85% (4256/5007)
Updating files: 86% (4307/5007)
Updating files: 87% (4357/5007)
Updating files: 88% (4407/5007)
Updating files: 89% (4457/5007)
Updating files: 90% (4507/5007)
Updating files: 91% (4557/5007)
Updating files: 92% (4607/5007)
Updating files: 93% (4657/5007)
Updating files: 94% (4707/5007)
Updating files: 95% (4757/5007)
Updating files: 96% (4807/5007)
Updating files: 97% (4857/5007)
Updating files: 98% (4907/5007)
Updating files: 99% (4957/5007)
Updating files: 100% (5007/5007)
Updating files: 100% (5007/5007), done.
Cloned https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git
Revision (git rev-parse @):
dd34489d54addfa020a7ec5b7c5c8b61c6b99f8c
SUCCESS checkout https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git
https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images: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:290f441d1f5b7bf0dbbe61e8b7514208804cdcb507d57b3c762463ad036298f7
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/14] Compiling CopilotSDK SdkProtocolVersion.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/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/Types.swift:91:16: warning: stored property 'arguments' of 'Sendable'-conforming struct 'ToolInvocation' has 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' has 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' has non-sendable type '[String : 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' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
111 | public let handler: ToolHandler
112 | /// Tool deferral policy: `ToolDefer.auto` (default) or `ToolDefer.never`.
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:244:16: warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
242 | public let kind: String
243 | public let toolCallId: String?
244 | public let rawData: [String: Any]
| `- warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
245 |
246 | public init(kind: String, toolCallId: String? = nil, rawData: [String: Any] = [:]) {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:1346:16: warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
1344 | public let ephemeral: Bool?
1345 | public let type: String
1346 | public let data: [String: Any]
| `- warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
1347 |
1348 | public init(
[6/14] Compiling CopilotSDK JsonRpcClient.swift
/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)
/host/spi-builder-workspace/swift/Sources/CopilotSDK/JsonRpcClient.swift:342:36: warning: non-sendable result type '[String : Any]?' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
340 |
341 | do {
342 | let result = try await handler(params)
| `- warning: non-sendable result type '[String : Any]?' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
343 | sendResponse(id: id, result: result)
344 | } catch let error as JsonRpcError {
[7/14] Compiling CopilotSDK DefineTool.swift
[8/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:270:38: warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
268 | await injectTraceContext(¶ms)
269 |
270 | let response = try await rpc.sendRequest(method: "session.create", params: params)
| `- warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
271 |
272 | guard let sessionId = response["sessionId"] as? String else {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:352:38: warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
350 | await injectTraceContext(¶ms)
351 |
352 | let response = try await rpc.sendRequest(method: "session.resume", params: params)
| `- warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
353 |
354 | guard let resumedSessionId = response["sessionId"] as? String else {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:396:36: warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
394 | if let msg = message { params["message"] = msg }
395 |
396 | let result = try await rpc.sendRequest(method: "ping", params: params)
| `- warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
397 |
398 | guard let msg = result["message"] as? String,
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:418:36: warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
416 | throw CopilotError.notConnected
417 | }
418 | let result = try await rpc.sendRequest(method: "status.get", params: [:])
| `- warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
419 | let data = try JSONSerialization.data(withJSONObject: result, options: [])
420 | return try JSONDecoder().decode(GetStatusResponse.self, from: data)
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:428:36: warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
426 | throw CopilotError.notConnected
427 | }
428 | let result = try await rpc.sendRequest(method: "auth.getStatus", params: [:])
| `- warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
429 | let data = try JSONSerialization.data(withJSONObject: result, options: [])
430 | return try JSONDecoder().decode(GetAuthStatusResponse.self, from: data)
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:446:36: warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
444 | }
445 |
446 | let result = try await rpc.sendRequest(method: "models.list", params: [:])
| `- warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
447 |
448 | guard let modelsArray = result["models"] as? [[String: Any]] else {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:465:36: warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
463 | throw CopilotError.notConnected
464 | }
465 | let result = try await rpc.sendRequest(method: "session.getLastId", params: [:])
| `- warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
466 | return result["sessionId"] as? String
467 | }
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:474:36: warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
472 | throw CopilotError.notConnected
473 | }
474 | let result = try await rpc.sendRequest(
| `- warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
475 | method: "session.getMetadata", params: ["sessionId": sessionId])
476 | return result
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:484:36: warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
482 | throw CopilotError.notConnected
483 | }
484 | let result = try await rpc.sendRequest(
| `- warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
485 | method: "session.delete", params: ["sessionId": sessionId])
486 | let success = result["success"] as? Bool ?? false
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:499:36: warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
497 | throw CopilotError.notConnected
498 | }
499 | let result = try await rpc.sendRequest(method: "session.list", params: [:])
| `- warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
500 | guard let sessionsArray = result["sessions"] as? [[String: Any]] else {
501 | throw CopilotError.invalidResponse("Invalid session.list response")
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:523:36: warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
521 | throw CopilotError.notConnected
522 | }
523 | let result = try await rpc.sendRequest(method: "session.getForeground", params: [:])
| `- warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
524 | return result["sessionId"] as? String
525 | }
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:532:36: warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
530 | throw CopilotError.notConnected
531 | }
532 | let result = try await rpc.sendRequest(
| `- warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
533 | method: "session.setForeground", params: ["sessionId": sessionId])
534 | let success = result["success"] as? Bool ?? false
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:563:27: warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
561 | if let conv = conventions { params["conventions"] = conv }
562 |
563 | _ = try await rpc.sendRequest(method: "sessionFs.setProvider", params: params)
| `- warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
564 | }
565 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:585:23: error: cannot find 'Process' in scope
583 |
584 | private func startCLIServer() async throws {
585 | let process = Process()
| `- error: cannot find 'Process' in scope
586 | process.executableURL = URL(fileURLWithPath: resolvedCliPath)
587 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:626:41: error: value of type 'FileHandle' has no member 'readabilityHandler'
624 |
625 | // Forward stderr to our stderr
626 | stderrPipe.fileHandleForReading.readabilityHandler = { handle in
| `- error: value of type 'FileHandle' has no member 'readabilityHandler'
627 | let data = handle.availableData
628 | if !data.isEmpty {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:626:64: error: cannot infer type of closure parameter 'handle' without a type annotation
624 |
625 | // Forward stderr to our stderr
626 | stderrPipe.fileHandleForReading.readabilityHandler = { handle in
| `- error: cannot infer type of closure parameter 'handle' without a type annotation
627 | let data = handle.availableData
628 | if !data.isEmpty {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:659:35: warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleToolCall'; this is an error in the Swift 6 language mode
657 | throw JsonRpcError(code: -32000, message: "Client deallocated")
658 | }
659 | return try await self.handleToolCall(params)
| `- warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleToolCall'; this is an error in the Swift 6 language mode
660 | }
661 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:666:35: warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handlePermissionRequest'; this is an error in the Swift 6 language mode
664 | throw JsonRpcError(code: -32000, message: "Client deallocated")
665 | }
666 | return try await self.handlePermissionRequest(params)
| `- warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handlePermissionRequest'; this is an error in the Swift 6 language mode
667 | }
668 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:673:35: warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleUserInputRequest'; this is an error in the Swift 6 language mode
671 | throw JsonRpcError(code: -32000, message: "Client deallocated")
672 | }
673 | return try await self.handleUserInputRequest(params)
| `- warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleUserInputRequest'; this is an error in the Swift 6 language mode
674 | }
675 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:680:35: warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleHooksInvoke'; this is an error in the Swift 6 language mode
678 | throw JsonRpcError(code: -32000, message: "Client deallocated")
679 | }
680 | return try await self.handleHooksInvoke(params)
| `- warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleHooksInvoke'; this is an error in the Swift 6 language mode
681 | }
682 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:687:35: warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleExitPlanModeRequest'; this is an error in the Swift 6 language mode
685 | throw JsonRpcError(code: -32000, message: "Client deallocated")
686 | }
687 | return try await self.handleExitPlanModeRequest(params)
| `- warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleExitPlanModeRequest'; this is an error in the Swift 6 language mode
688 | }
689 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:693:35: warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleSessionFsReadFile'; this is an error in the Swift 6 language mode
691 | await rpc.setRequestHandler(method: "sessionFs.readFile") { [weak self] params in
692 | guard let self = self else { throw JsonRpcError(code: -32000, message: "Client deallocated") }
693 | return try await self.handleSessionFsReadFile(params)
| `- warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleSessionFsReadFile'; this is an error in the Swift 6 language mode
694 | }
695 | await rpc.setRequestHandler(method: "sessionFs.writeFile") { [weak self] params in
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:697:35: warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleSessionFsWriteFile'; this is an error in the Swift 6 language mode
695 | await rpc.setRequestHandler(method: "sessionFs.writeFile") { [weak self] params in
696 | guard let self = self else { throw JsonRpcError(code: -32000, message: "Client deallocated") }
697 | return try await self.handleSessionFsWriteFile(params)
| `- warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleSessionFsWriteFile'; this is an error in the Swift 6 language mode
698 | }
699 | await rpc.setRequestHandler(method: "sessionFs.appendFile") { [weak self] params in
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:701:35: warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleSessionFsAppendFile'; this is an error in the Swift 6 language mode
699 | await rpc.setRequestHandler(method: "sessionFs.appendFile") { [weak self] params in
700 | guard let self = self else { throw JsonRpcError(code: -32000, message: "Client deallocated") }
701 | return try await self.handleSessionFsAppendFile(params)
| `- warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleSessionFsAppendFile'; this is an error in the Swift 6 language mode
702 | }
703 | await rpc.setRequestHandler(method: "sessionFs.exists") { [weak self] params in
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:705:35: warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleSessionFsExists'; this is an error in the Swift 6 language mode
703 | await rpc.setRequestHandler(method: "sessionFs.exists") { [weak self] params in
704 | guard let self = self else { throw JsonRpcError(code: -32000, message: "Client deallocated") }
705 | return try await self.handleSessionFsExists(params)
| `- warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleSessionFsExists'; this is an error in the Swift 6 language mode
706 | }
707 | await rpc.setRequestHandler(method: "sessionFs.stat") { [weak self] params in
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:709:35: warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleSessionFsStat'; this is an error in the Swift 6 language mode
707 | await rpc.setRequestHandler(method: "sessionFs.stat") { [weak self] params in
708 | guard let self = self else { throw JsonRpcError(code: -32000, message: "Client deallocated") }
709 | return try await self.handleSessionFsStat(params)
| `- warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleSessionFsStat'; this is an error in the Swift 6 language mode
710 | }
711 | await rpc.setRequestHandler(method: "sessionFs.mkdir") { [weak self] params in
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:713:35: warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleSessionFsMkdir'; this is an error in the Swift 6 language mode
711 | await rpc.setRequestHandler(method: "sessionFs.mkdir") { [weak self] params in
712 | guard let self = self else { throw JsonRpcError(code: -32000, message: "Client deallocated") }
713 | return try await self.handleSessionFsMkdir(params)
| `- warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleSessionFsMkdir'; this is an error in the Swift 6 language mode
714 | }
715 | await rpc.setRequestHandler(method: "sessionFs.readdir") { [weak self] params in
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:717:35: warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleSessionFsReaddir'; this is an error in the Swift 6 language mode
715 | await rpc.setRequestHandler(method: "sessionFs.readdir") { [weak self] params in
716 | guard let self = self else { throw JsonRpcError(code: -32000, message: "Client deallocated") }
717 | return try await self.handleSessionFsReaddir(params)
| `- warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleSessionFsReaddir'; this is an error in the Swift 6 language mode
718 | }
719 | await rpc.setRequestHandler(method: "sessionFs.readdirWithTypes") { [weak self] params in
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:721:35: warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleSessionFsReaddirWithTypes'; this is an error in the Swift 6 language mode
719 | await rpc.setRequestHandler(method: "sessionFs.readdirWithTypes") { [weak self] params in
720 | guard let self = self else { throw JsonRpcError(code: -32000, message: "Client deallocated") }
721 | return try await self.handleSessionFsReaddirWithTypes(params)
| `- warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleSessionFsReaddirWithTypes'; this is an error in the Swift 6 language mode
722 | }
723 | await rpc.setRequestHandler(method: "sessionFs.rm") { [weak self] params in
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:725:35: warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleSessionFsRm'; this is an error in the Swift 6 language mode
723 | await rpc.setRequestHandler(method: "sessionFs.rm") { [weak self] params in
724 | guard let self = self else { throw JsonRpcError(code: -32000, message: "Client deallocated") }
725 | return try await self.handleSessionFsRm(params)
| `- warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleSessionFsRm'; this is an error in the Swift 6 language mode
726 | }
727 | await rpc.setRequestHandler(method: "sessionFs.rename") { [weak self] params in
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:729:35: warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleSessionFsRename'; this is an error in the Swift 6 language mode
727 | await rpc.setRequestHandler(method: "sessionFs.rename") { [weak self] params in
728 | guard let self = self else { throw JsonRpcError(code: -32000, message: "Client deallocated") }
729 | return try await self.handleSessionFsRename(params)
| `- warning: non-sendable result type '[String : Any]?' cannot be sent from actor-isolated context in call to instance method 'handleSessionFsRename'; this is an error in the Swift 6 language mode
730 | }
731 | }
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:839:39: warning: non-sendable result type 'Any?' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
837 |
838 | do {
839 | let rawResult = try await handler(params["arguments"], invocation)
| `- warning: non-sendable result type 'Any?' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
840 | let resultObj = normalizeToolResult(rawResult)
841 | return ["result": encodeToDictionary(resultObj) ?? [:]]
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:910:40: warning: non-sendable result type 'Any?' cannot be sent from actor-isolated context in call to instance method 'handleHooksInvoke(hookType:input:)'; this is an error in the Swift 6 language mode
908 | }
909 |
910 | let output = try await session.handleHooksInvoke(hookType: hookType, input: params["input"])
| `- warning: non-sendable result type 'Any?' cannot be sent from actor-isolated context in call to instance method 'handleHooksInvoke(hookType:input:)'; this is an error in the Swift 6 language mode
911 | if let output = output {
912 | return ["output": output]
[9/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' has 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' has 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' has non-sendable type '[String : 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' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
111 | public let handler: ToolHandler
112 | /// Tool deferral policy: `ToolDefer.auto` (default) or `ToolDefer.never`.
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:244:16: warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
242 | public let kind: String
243 | public let toolCallId: String?
244 | public let rawData: [String: Any]
| `- warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
245 |
246 | public init(kind: String, toolCallId: String? = nil, rawData: [String: Any] = [:]) {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:1346:16: warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
1344 | public let ephemeral: Bool?
1345 | public let type: String
1346 | public let data: [String: Any]
| `- warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
1347 |
1348 | public init(
[10/14] Compiling CopilotSDK CopilotSession.swift
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:96:44: warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
94 | }
95 |
96 | let response = try await rpcClient.sendRequest(method: "session.send", params: params)
| `- warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
97 | guard let messageId = response["messageId"] as? String else {
98 | throw CopilotError.invalidResponse("Missing messageId in session.send response")
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:124:28: warning: no 'async' operations occur within 'await' expression
122 | try await Task.sleep(nanoseconds: UInt64(timeout * 1_000_000_000))
123 | if state.tryResume() {
124 | Task { await self.removeEventHandler(handlerId) }
| `- warning: no 'async' operations occur within 'await' expression
125 | continuation.resume(
126 | throwing: CopilotError.timeout(
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:160:25: warning: no 'async' operations occur within 'await' expression
158 | if state.tryResume() {
159 | timeoutTask.cancel()
160 | await self.removeEventHandler(handlerId)
| `- warning: no 'async' operations occur within 'await' expression
161 | continuation.resume(throwing: error)
162 | }
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:411:36: warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
409 | /// - Returns: A dictionary containing the session metadata.
410 | public func getMetadata() async throws -> [String: Any] {
411 | return try await rpcClient.sendRequest(
| `- warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
412 | method: "session.getMetadata",
413 | params: ["sessionId": sessionId]
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:423:44: warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
421 | /// - Returns: An array of all session events.
422 | public func getMessages() async throws -> [SessionEvent] {
423 | let response = try await rpcClient.sendRequest(
| `- warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
424 | method: "session.getMessages",
425 | params: ["sessionId": sessionId]
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:442:37: warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
440 | /// handlers and tool handlers are cleared.
441 | public func destroy() async throws {
442 | let _ = try await rpcClient.sendRequest(
| `- warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
443 | method: "session.destroy",
444 | params: ["sessionId": sessionId]
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:461:37: warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
459 | /// The session remains valid and can continue to be used for new messages.
460 | public func abort() async throws {
461 | let _ = try await rpcClient.sendRequest(
| `- warning: non-sendable result type '[String : Any]' cannot be sent from actor-isolated context in call to instance method 'sendRequest(method:params:)'; this is an error in the Swift 6 language mode
462 | method: "session.abort",
463 | params: ["sessionId": sessionId]
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:290f441d1f5b7bf0dbbe61e8b7514208804cdcb507d57b3c762463ad036298f7
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/5] Write swift-version-24593BA9C3E375BF.txt
[2/12] Compiling CopilotSDK CopilotSession.swift
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:124:28: warning: no 'async' operations occur within 'await' expression
122 | try await Task.sleep(nanoseconds: UInt64(timeout * 1_000_000_000))
123 | if state.tryResume() {
124 | Task { await self.removeEventHandler(handlerId) }
| `- warning: no 'async' operations occur within 'await' expression
125 | continuation.resume(
126 | throwing: CopilotError.timeout(
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:160:25: warning: no 'async' operations occur within 'await' expression
158 | if state.tryResume() {
159 | timeoutTask.cancel()
160 | await self.removeEventHandler(handlerId)
| `- warning: no 'async' operations occur within 'await' expression
161 | continuation.resume(throwing: error)
162 | }
[3/12] 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:585:23: error: cannot find 'Process' in scope
583 |
584 | private func startCLIServer() async throws {
585 | let process = Process()
| `- error: cannot find 'Process' in scope
586 | process.executableURL = URL(fileURLWithPath: resolvedCliPath)
587 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:626:41: error: value of type 'FileHandle' has no member 'readabilityHandler'
624 |
625 | // Forward stderr to our stderr
626 | stderrPipe.fileHandleForReading.readabilityHandler = { handle in
| `- error: value of type 'FileHandle' has no member 'readabilityHandler'
627 | let data = handle.availableData
628 | if !data.isEmpty {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:626:64: error: cannot infer type of closure parameter 'handle' without a type annotation
624 |
625 | // Forward stderr to our stderr
626 | stderrPipe.fileHandleForReading.readabilityHandler = { handle in
| `- error: cannot infer type of closure parameter 'handle' without a type annotation
627 | let data = handle.availableData
628 | if !data.isEmpty {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/12] Compiling CopilotSDK SdkProtocolVersion.swift
[5/12] Compiling CopilotSDK Types.swift
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:91:16: warning: stored property 'arguments' of 'Sendable'-conforming struct 'ToolInvocation' has 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' has 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' has non-sendable type '[String : 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' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
111 | public let handler: ToolHandler
112 | /// Tool deferral policy: `ToolDefer.auto` (default) or `ToolDefer.never`.
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:244:16: warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
242 | public let kind: String
243 | public let toolCallId: String?
244 | public let rawData: [String: Any]
| `- warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
245 |
246 | public init(kind: String, toolCallId: String? = nil, rawData: [String: Any] = [:]) {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:1346:16: warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
1344 | public let ephemeral: Bool?
1345 | public let type: String
1346 | public let data: [String: Any]
| `- warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
1347 |
1348 | public init(
[6/12] Compiling CopilotSDK DefineTool.swift
[7/12] 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/Types.swift:91:16: warning: stored property 'arguments' of 'Sendable'-conforming struct 'ToolInvocation' has 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' has 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' has non-sendable type '[String : 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' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
111 | public let handler: ToolHandler
112 | /// Tool deferral policy: `ToolDefer.auto` (default) or `ToolDefer.never`.
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:244:16: warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
242 | public let kind: String
243 | public let toolCallId: String?
244 | public let rawData: [String: Any]
| `- warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
245 |
246 | public init(kind: String, toolCallId: String? = nil, rawData: [String: Any] = [:]) {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:1346:16: warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
1344 | public let ephemeral: Bool?
1345 | public let type: String
1346 | public let data: [String: Any]
| `- warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
1347 |
1348 | public init(
[8/12] Compiling CopilotSDK JsonRpcClient.swift
/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.1 wasm