Build Information
Failed to build CopilotSDK, reference v2.2.1 (6d56b5), with Swift 6.1 for Wasm on 6 May 2026 08:50:11 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/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)
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.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-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/14] Compiling CopilotSDK SdkProtocolVersion.swift
[5/14] Compiling CopilotSDK CopilotSession.swift
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:86: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
84 | }
85 |
86 | 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
87 | guard let messageId = response["messageId"] as? String else {
88 | throw CopilotError.invalidResponse("Missing messageId in session.send response")
/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
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
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
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
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
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
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
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
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
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
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
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
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 | }
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:378: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
376 | /// - Returns: A dictionary containing the session metadata.
377 | public func getMetadata() async throws -> [String: Any] {
378 | 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
379 | method: "session.getMetadata",
380 | params: ["sessionId": sessionId]
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:390: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
388 | /// - Returns: An array of all session events.
389 | public func getMessages() async throws -> [SessionEvent] {
390 | 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
391 | method: "session.getMessages",
392 | params: ["sessionId": sessionId]
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:409: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
407 | /// handlers and tool handlers are cleared.
408 | public func destroy() async throws {
409 | 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
410 | method: "session.destroy",
411 | params: ["sessionId": sessionId]
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:427: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
425 | /// The session remains valid and can continue to be used for new messages.
426 | public func abort() async throws {
427 | 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
428 | method: "session.abort",
429 | params: ["sessionId": sessionId]
[6/14] Compiling CopilotSDK DefineTool.swift
[7/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:214: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
212 | }
213 |
214 | 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
215 |
216 | guard let sessionId = response["sessionId"] as? String else {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:290: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
288 | if let dr = config.disableResume { params["disableResume"] = dr }
289 |
290 | 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
291 |
292 | guard let resumedSessionId = response["sessionId"] as? String else {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:331: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
329 | if let msg = message { params["message"] = msg }
330 |
331 | 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
332 |
333 | guard let msg = result["message"] as? String,
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:353: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
351 | throw CopilotError.notConnected
352 | }
353 | 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
354 | let data = try JSONSerialization.data(withJSONObject: result, options: [])
355 | return try JSONDecoder().decode(GetStatusResponse.self, from: data)
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:363: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
361 | throw CopilotError.notConnected
362 | }
363 | 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
364 | let data = try JSONSerialization.data(withJSONObject: result, options: [])
365 | return try JSONDecoder().decode(GetAuthStatusResponse.self, from: data)
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:381: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
379 | }
380 |
381 | 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
382 |
383 | guard let modelsArray = result["models"] as? [[String: Any]] else {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:400: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
398 | throw CopilotError.notConnected
399 | }
400 | 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
401 | return result["sessionId"] as? String
402 | }
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:409: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
407 | throw CopilotError.notConnected
408 | }
409 | 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
410 | method: "session.getMetadata", params: ["sessionId": sessionId])
411 | return result
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:419: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
417 | throw CopilotError.notConnected
418 | }
419 | 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
420 | method: "session.delete", params: ["sessionId": sessionId])
421 | let success = result["success"] as? Bool ?? false
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:434: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
432 | throw CopilotError.notConnected
433 | }
434 | 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
435 | guard let sessionsArray = result["sessions"] as? [[String: Any]] else {
436 | throw CopilotError.invalidResponse("Invalid session.list response")
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:458: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
456 | throw CopilotError.notConnected
457 | }
458 | 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
459 | return result["sessionId"] as? String
460 | }
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:467: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
465 | throw CopilotError.notConnected
466 | }
467 | 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
468 | method: "session.setForeground", params: ["sessionId": sessionId])
469 | let success = result["success"] as? Bool ?? false
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:498: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
496 | if let conv = conventions { params["conventions"] = conv }
497 |
498 | _ = 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
499 | }
500 |
/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 {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:594: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
592 | throw JsonRpcError(code: -32000, message: "Client deallocated")
593 | }
594 | 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
595 | }
596 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:601: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
599 | throw JsonRpcError(code: -32000, message: "Client deallocated")
600 | }
601 | 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
602 | }
603 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:608: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
606 | throw JsonRpcError(code: -32000, message: "Client deallocated")
607 | }
608 | 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
609 | }
610 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:615: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
613 | throw JsonRpcError(code: -32000, message: "Client deallocated")
614 | }
615 | 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
616 | }
617 | }
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:725: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
723 |
724 | do {
725 | 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
726 | let resultObj = normalizeToolResult(rawResult)
727 | return ["result": encodeToDictionary(resultObj) ?? [:]]
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:796: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
794 | }
795 |
796 | 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
797 | if let output = output {
798 | return ["output": output]
error: emit-module command failed with exit code 1 (use -v to see invocation)
[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' 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 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:215: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
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' has non-sendable type '[String : 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' has non-sendable type '[String : 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' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
1107 |
1108 | public init(
[9/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' has non-sendable type '[String : 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' has non-sendable type '[String : 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' 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 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:215: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
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' has non-sendable type '[String : 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' has non-sendable type '[String : 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' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
1107 |
1108 | public init(
[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' has non-sendable type '[String : 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' has non-sendable type '[String : 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)
/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 {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
[2/12] Compiling CopilotSDK JsonRpcClient.swift
/host/spi-builder-workspace/swift/Sources/CopilotSDK/JsonRpcClient.swift:13:16: warning: stored property 'data' of 'Sendable'-conforming struct 'JsonRpcError' has non-sendable type '[String : 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' has non-sendable type '[String : 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)
[3/12] Compiling CopilotSDK DefineTool.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/12] 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
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
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
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
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
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
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
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
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
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
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
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
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 | }
[5/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/JsonRpcClient.swift:13:16: warning: stored property 'data' of 'Sendable'-conforming struct 'JsonRpcError' has non-sendable type '[String : 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' has non-sendable type '[String : 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' 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 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:215: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
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' has non-sendable type '[String : 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' has non-sendable type '[String : 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' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
1107 |
1108 | public init(
[6/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: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 {
[7/12] Compiling CopilotSDK SdkProtocolVersion.swift
[8/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 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:215: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
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' has non-sendable type '[String : 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' has non-sendable type '[String : 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' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
1107 |
1108 | public init(
BUILD FAILURE 6.1 wasm