The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CopilotSDK, reference v2.2.1 (6d56b5), with Swift 6.1 for Android on 6 May 2026 08:50:26 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git
Reference: v2.2.1
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged
 * tag               v2.2.1     -> FETCH_HEAD
HEAD is now at 6d56b56 fix: OCaml — inline rpc lookup in set_session_fs_provider (get_rpc not yet defined)
Updating files:  72% (2368/3254)
Updating files:  73% (2376/3254)
Updating files:  74% (2408/3254)
Updating files:  75% (2441/3254)
Updating files:  76% (2474/3254)
Updating files:  77% (2506/3254)
Updating files:  78% (2539/3254)
Updating files:  79% (2571/3254)
Updating files:  80% (2604/3254)
Updating files:  81% (2636/3254)
Updating files:  82% (2669/3254)
Updating files:  83% (2701/3254)
Updating files:  84% (2734/3254)
Updating files:  85% (2766/3254)
Updating files:  86% (2799/3254)
Updating files:  87% (2831/3254)
Updating files:  88% (2864/3254)
Updating files:  89% (2897/3254)
Updating files:  90% (2929/3254)
Updating files:  91% (2962/3254)
Updating files:  92% (2994/3254)
Updating files:  93% (3027/3254)
Updating files:  94% (3059/3254)
Updating files:  95% (3092/3254)
Updating files:  96% (3124/3254)
Updating files:  97% (3157/3254)
Updating files:  98% (3189/3254)
Updating files:  99% (3222/3254)
Updating files: 100% (3254/3254)
Updating files: 100% (3254/3254), done.
Cloned https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git
Revision (git rev-parse @):
6d56b568b5ff8c05ea463ccbd6b94547e33d653e
SUCCESS checkout https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git at v2.2.1
========================================
Build
========================================
Selected platform:         android
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-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d37fe7b8fba27dae59fb1d9d7dfa86b38b41ffb3975924aad6f05cb4cc3de131
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/14] Compiling CopilotSDK DefineTool.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] Emitting module CopilotSDK
/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(
[7/14] Compiling CopilotSDK CopilotClient.swift
/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: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]
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:585:28: warning: sending 'params' risks causing data races; this is an error in the Swift 6 language mode
583 |             notificationHandler: { [weak self] method, params in
584 |                 guard let self = self else { return }
585 |                 await self.handleNotification(method: method, params: params)
    |                            |- warning: sending 'params' risks causing data races; this is an error in the Swift 6 language mode
    |                            `- note: sending task-isolated 'params' to actor-isolated instance method 'handleNotification(method:params:)' risks causing data races between actor-isolated and task-isolated uses
586 |             }
587 |         )
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:725:39: warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
723 |
724 |         do {
725 |             let rawResult = try await handler(params["arguments"], invocation)
    |                                       |- warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending 'self'-isolated value of non-Sendable type 'Any?' to nonisolated callee risks causing races in between 'self'-isolated and nonisolated uses
726 |             let resultObj = normalizeToolResult(rawResult)
727 |             return ["result": encodeToDictionary(resultObj) ?? [:]]
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:594:35: warning: sending 'params' risks causing data races; 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: sending 'params' risks causing data races; this is an error in the Swift 6 language mode
    |                                   `- note: sending task-isolated 'params' to actor-isolated instance method 'handleToolCall' risks causing data races between actor-isolated and task-isolated uses
595 |         }
596 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:753:44: warning: sending 'requestData' risks causing data races; this is an error in the Swift 6 language mode
751 |
752 |         do {
753 |             let result = try await session.handlePermissionRequest(requestData)
    |                                            |- warning: sending 'requestData' risks causing data races; this is an error in the Swift 6 language mode
    |                                            `- note: sending 'self'-isolated 'requestData' to actor-isolated instance method 'handlePermissionRequest' risks causing data races between actor-isolated and 'self'-isolated uses
754 |             return ["result": encodeToDictionary(result) ?? [:]]
755 |         } catch {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:601:35: warning: sending 'params' risks causing data races; 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: sending 'params' risks causing data races; this is an error in the Swift 6 language mode
    |                                   `- note: sending task-isolated 'params' to actor-isolated instance method 'handlePermissionRequest' risks causing data races between actor-isolated and task-isolated uses
602 |         }
603 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:608:35: warning: sending 'params' risks causing data races; 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: sending 'params' risks causing data races; this is an error in the Swift 6 language mode
    |                                   `- note: sending task-isolated 'params' to actor-isolated instance method 'handleUserInputRequest' risks causing data races between actor-isolated and task-isolated uses
609 |         }
610 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:796:40: warning: sending value of non-Sendable type 'Any?' risks causing data races; 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: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: sending 'self'-isolated value of non-Sendable type 'Any?' to actor-isolated instance method 'handleHooksInvoke(hookType:input:)' risks causing races in between 'self'-isolated and actor-isolated uses
797 |         if let output = output {
798 |             return ["output": output]
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:615:35: warning: sending 'params' risks causing data races; 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: sending 'params' risks causing data races; this is an error in the Swift 6 language mode
    |                                   `- note: sending task-isolated 'params' to actor-isolated instance method 'handleHooksInvoke' risks causing data races between actor-isolated and task-isolated uses
616 |         }
617 |     }
[8/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: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 {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/JsonRpcClient.swift:342:36: warning: sending 'params' risks causing data races; this is an error in the Swift 6 language mode
340 |
341 |         do {
342 |             let result = try await handler(params)
    |                                    |- warning: sending 'params' risks causing data races; this is an error in the Swift 6 language mode
    |                                    `- note: sending 'self'-isolated 'params' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
343 |             sendResponse(id: id, result: result)
344 |         } catch let error as JsonRpcError {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/JsonRpcClient.swift:328:26: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
326 |             continuation.resume(throwing: JsonRpcError(code: code, message: msg, data: data))
327 |         } else if let result = message["result"] as? [String: Any] {
328 |             continuation.resume(returning: result)
    |                          |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
    |                          `- note: 'self'-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
329 |         } else {
330 |             // Some responses have non-dict results (e.g. null). Return empty dict.
/host/spi-builder-workspace/swift/Sources/CopilotSDK/JsonRpcClient.swift:300:42: warning: sending 'params' risks causing data races; this is an error in the Swift 6 language mode
298 |             } else {
299 |                 // Server notification
300 |                 await notificationHandler?(method, params)
    |                                          |- warning: sending 'params' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending 'self'-isolated 'params' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
301 |             }
302 |         } else if hasId {
[9/14] Compiling CopilotSDK SdkProtocolVersion.swift
[10/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(
[11/15] Wrapping AST for CopilotSDK for debugging
[13/17] Emitting module BasicExample
[14/17] Compiling BasicExample main.swift
/host/spi-builder-workspace/swift/Examples/BasicExample/main.swift:53:35: error: expression is 'async' but is not marked with 'await'
51 |             SessionConfig(tools: [lookupFactTool])
52 |         )
53 |         print("Session created: \(session.sessionId)\n")
   |                                   |- error: expression is 'async' but is not marked with 'await'
   |                                   `- note: property access is 'async'
54 |
55 |         // Subscribe to all events
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d37fe7b8fba27dae59fb1d9d7dfa86b38b41ffb3975924aad6f05cb4cc3de131
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
[2/12] Compiling CopilotSDK DefineTool.swift
[3/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) {
[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/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
[7/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(
[8/12] Compiling CopilotSDK SdkProtocolVersion.swift
[10/14] Emitting module BasicExample
[11/14] Compiling BasicExample main.swift
/host/spi-builder-workspace/swift/Examples/BasicExample/main.swift:53:35: error: expression is 'async' but is not marked with 'await'
51 |             SessionConfig(tools: [lookupFactTool])
52 |         )
53 |         print("Session created: \(session.sessionId)\n")
   |                                   |- error: expression is 'async' but is not marked with 'await'
   |                                   `- note: property access is 'async'
54 |
55 |         // Subscribe to all events
BUILD FAILURE 6.1 android