The Swift Package Index logo.Swift Package Index

Build Information

Failed to build A2A, reference main (2dbdef), with Swift 6.4 for Wasm on 24 Sep 2026 11:06:25 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Victory-Apps/a2a-swift.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/Victory-Apps/a2a-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2dbdef6 Add ASCII art banner to README
Cloned https://github.com/Victory-Apps/a2a-swift.git
Revision (git rev-parse @):
2dbdef6a394844798da547b2ccb2fe2066433662
SUCCESS checkout https://github.com/Victory-Apps/a2a-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/Victory-Apps/a2a-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/vapor/vapor.git
[1/82733] Fetching vapor
Fetched https://github.com/vapor/vapor.git (1.42s)
Computing version for https://github.com/vapor/vapor.git
Computed https://github.com/vapor/vapor.git at 4.122.2 (1.63s)
Fetching https://github.com/vapor/websocket-kit.git
Fetching https://github.com/vapor/multipart-kit.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-service-context.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-asn1.git
[1/1376] Fetching swift-service-context
[758/3359] Fetching swift-service-context, swift-asn1
[3360/5240] Fetching swift-service-context, swift-asn1, swift-atomics
[3379/11518] Fetching swift-service-context, swift-asn1, swift-atomics, multipart-kit
Fetched https://github.com/apple/swift-asn1.git (0.52s)
[1772/9535] Fetching swift-service-context, swift-atomics, multipart-kit
Fetching https://github.com/apple/swift-distributed-tracing.git
[4891/17110] Fetching swift-service-context, swift-atomics, multipart-kit, swift-certificates
Fetched https://github.com/apple/swift-atomics.git (0.63s)
[5812/15229] Fetching swift-service-context, multipart-kit, swift-certificates
Fetching https://github.com/apple/swift-algorithms.git
Fetched https://github.com/apple/swift-certificates.git (0.72s)
Fetching https://github.com/apple/swift-metrics.git
[3010/10335] Fetching swift-service-context, multipart-kit, websocket-kit
[5289/16680] Fetching swift-service-context, multipart-kit, websocket-kit, swift-distributed-tracing
Fetched https://github.com/vapor/websocket-kit.git (1.07s)
[3898/13999] Fetching swift-service-context, multipart-kit, swift-distributed-tracing
Fetching https://github.com/apple/swift-nio-http2.git
[6627/20144] Fetching swift-service-context, multipart-kit, swift-distributed-tracing, swift-algorithms
Fetched https://github.com/apple/swift-distributed-tracing.git (0.65s)
Fetching https://github.com/apple/swift-nio-ssl.git
[3194/13799] Fetching swift-service-context, multipart-kit, swift-algorithms
Fetched https://github.com/apple/swift-service-context.git (1.23s)
Fetching https://github.com/apple/swift-nio-extras.git
[6586/12423] Fetching multipart-kit, swift-algorithms
Fetched https://github.com/vapor/multipart-kit.git (1.25s)
[1046/9661] Fetching swift-algorithms, swift-metrics
Fetching https://github.com/apple/swift-crypto.git
Fetched https://github.com/apple/swift-metrics.git (0.61s)
Fetching https://github.com/vapor/routing-kit.git
[6145/6145] Fetching swift-algorithms
Fetched https://github.com/apple/swift-algorithms.git (0.75s)
Fetching https://github.com/apple/swift-nio.git
[1/16065] Fetching swift-nio-ssl
[2251/28317] Fetching swift-nio-ssl, swift-nio-http2
[3384/46866] Fetching swift-nio-ssl, swift-nio-http2, swift-crypto
[4626/53556] Fetching swift-nio-ssl, swift-nio-http2, swift-crypto, swift-nio-extras
[15036/75111] Fetching swift-nio-ssl, swift-nio-http2, swift-crypto, swift-nio-extras, routing-kit
Fetched https://github.com/apple/swift-nio-extras.git (0.60s)
[11539/68421] Fetching swift-nio-ssl, swift-nio-http2, swift-crypto, routing-kit
Fetching https://github.com/swift-server/async-http-client.git
Fetched https://github.com/apple/swift-nio-http2.git (1.16s)
[44484/56169] Fetching swift-nio-ssl, swift-crypto, routing-kit
Fetching https://github.com/vapor/console-kit.git
Fetched https://github.com/vapor/routing-kit.git (0.92s)
[23485/34614] Fetching swift-nio-ssl, swift-crypto
Fetching https://github.com/vapor/async-kit.git
Fetched https://github.com/apple/swift-nio-ssl.git (1.19s)
[11686/18549] Fetching swift-crypto
Fetching https://github.com/apple/swift-log.git
[17438/104640] Fetching swift-crypto, swift-nio
[31464/120857] Fetching swift-crypto, swift-nio, async-http-client
Fetched https://github.com/apple/swift-crypto.git (1.37s)
[26114/102308] Fetching swift-nio, async-http-client
[58403/109151] Fetching swift-nio, async-http-client, console-kit
[59333/111665] Fetching swift-nio, async-http-client, console-kit, async-kit
Fetched https://github.com/vapor/async-kit.git (0.52s)
Fetched https://github.com/vapor/console-kit.git (0.56s)
[69594/102308] Fetching swift-nio, async-http-client
[70456/110473] Fetching swift-nio, async-http-client, swift-log
Fetched https://github.com/swift-server/async-http-client.git (1.02s)
[55508/94256] Fetching swift-nio, swift-log
Fetched https://github.com/apple/swift-log.git (0.59s)
[59403/86091] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git (3.18s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (4.76s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (1.09s)
Fetching https://github.com/apple/swift-numerics.git
[1/6640] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git (1.08s)
Computing version for https://github.com/vapor/routing-kit.git
Computed https://github.com/vapor/routing-kit.git at 4.9.3 (1.26s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.3.0 (0.21s)
Computing version for https://github.com/vapor/websocket-kit.git
Computed https://github.com/vapor/websocket-kit.git at 2.16.2 (0.17s)
Fetching https://github.com/apple/swift-nio-transport-services.git
[1/2863] Fetching swift-nio-transport-services
Fetched https://github.com/apple/swift-nio-transport-services.git (0.55s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.73s)
Computing version for https://github.com/vapor/console-kit.git
Computed https://github.com/vapor/console-kit.git at 4.16.1 (0.19s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.15.1 (0.21s)
Computing version for https://github.com/vapor/async-kit.git
Computed https://github.com/vapor/async-kit.git at 1.22.0 (0.18s)
Fetching https://github.com/apple/swift-collections.git
[1/27693] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git (1.24s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.0 (1.55s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.11.0 (0.19s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.37.5 (0.24s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.103.0 (0.35s)
Fetching https://github.com/apple/swift-system.git
[1/6916] Fetching swift-system
Fetched https://github.com/apple/swift-system.git (0.70s)
Computing version for https://github.com/vapor/multipart-kit.git
Computed https://github.com/vapor/multipart-kit.git at 4.7.1 (0.87s)
Computing version for https://github.com/apple/swift-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.5.0 (0.19s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (1.08s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.21.0 (0.26s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.28.0 (0.21s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.2 (0.30s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.8.1 (0.22s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.35.1 (0.34s)
Fetching https://github.com/apple/swift-http-types.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/apple/swift-async-algorithms.git
[1/2843] Fetching swift-service-lifecycle
[2816/4096] Fetching swift-service-lifecycle, swift-http-structured-headers
[2857/6031] Fetching swift-service-lifecycle, swift-http-structured-headers, swift-http-types
[3161/12763] Fetching swift-service-lifecycle, swift-http-structured-headers, swift-http-types, swift-async-algorithms
Fetched https://github.com/apple/swift-http-structured-headers.git (0.52s)
[8509/11510] Fetching swift-service-lifecycle, swift-http-types, swift-async-algorithms
Fetched https://github.com/swift-server/swift-service-lifecycle.git (0.52s)
[5733/8667] Fetching swift-http-types, swift-async-algorithms
Fetched https://github.com/apple/swift-http-types.git (0.56s)
Fetched https://github.com/apple/swift-async-algorithms.git (0.59s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.12.0 (0.79s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.5 (0.23s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.7.0 (0.19s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.8.0 (0.22s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.46.0 (0.21s)
Computing version for https://github.com/swift-server/async-http-client.git
Computed https://github.com/swift-server/async-http-client.git at 1.36.1 (0.22s)
Fetching https://github.com/apple/swift-configuration.git
[1/3779] Fetching swift-configuration
Fetched https://github.com/apple/swift-configuration.git (0.57s)
Computing version for https://github.com/apple/swift-configuration.git
Computed https://github.com/apple/swift-configuration.git at 1.2.1 (0.85s)
Creating working copy for https://github.com/apple/swift-metrics.git
Working copy of https://github.com/apple/swift-metrics.git resolved at 2.11.0
Creating working copy for https://github.com/vapor/console-kit.git
Working copy of https://github.com/vapor/console-kit.git resolved at 4.16.1
Creating working copy for https://github.com/swift-server/async-http-client.git
Working copy of https://github.com/swift-server/async-http-client.git resolved at 1.36.1
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.8.0
Creating working copy for https://github.com/vapor/routing-kit.git
Working copy of https://github.com/vapor/routing-kit.git resolved at 4.9.3
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.8.1
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.3
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.21.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Creating working copy for https://github.com/vapor/multipart-kit.git
Working copy of https://github.com/vapor/multipart-kit.git resolved at 4.7.1
Creating working copy for https://github.com/apple/swift-configuration.git
Working copy of https://github.com/apple/swift-configuration.git resolved at 1.2.1
Creating working copy for https://github.com/vapor/vapor.git
Working copy of https://github.com/vapor/vapor.git resolved at 4.122.2
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.5
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.5.2
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-distributed-tracing.git
Working copy of https://github.com/apple/swift-distributed-tracing.git resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-service-context.git
Working copy of https://github.com/apple/swift-service-context.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.35.1
Creating working copy for https://github.com/vapor/websocket-kit.git
Working copy of https://github.com/vapor/websocket-kit.git resolved at 2.16.2
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.103.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.0
Creating working copy for https://github.com/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.12.0
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.28.0
Creating working copy for https://github.com/vapor/async-kit.git
Working copy of https://github.com/vapor/async-kit.git resolved at 1.22.0
Creating working copy for https://github.com/apple/swift-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.7.0
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.46.0
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.37.5
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.15.1
Building for debugging...
[Computing dependencies]
[Provisioning 5 / 128]
[Constructing description]
[Pre-planning 1 / 2622]
[Planning 658 / 2622]
[Planning 2060 / 2622]
[Planning deferred tasks]
[Constructing 392 / 6351]
[Constructing 5790 / 6351]
[Starting]
[6 / 1630] NIOConcurrencyHelpers-product
[382 / 1635] swift-crypto_CXKCP
[394 / 1661] SystemPackage
[394 / 1661] _NIOBase64
[405 / 1661] _CWASI
[406 / 1661] SystemPackage
[418 / 1661] SystemPackage
[419 / 1661] SwiftASN1
[429 / 1662] _NIOBase64
[432 / 1663] _NIOBase64
[436 / 1663] _NIOBase64
[439 / 1664] _NIODataStructures
[442 / 1664] _NIODataStructures
[445 / 1664] SystemPackage
[449 / 1678] NIOConcurrencyHelpers
[449 / 1684] SwiftASN1
[451 / 1684] Logging
[454 / 1693] Logging
[463 / 1693] RealModule
[467 / 1693] NIOConcurrencyHelpers
[477 / 1694] SwiftASN1
[483 / 1695] SwiftASN1
[489 / 1695] Logging
[498 / 1699] ServiceContextModule
[517 / 1718] Atomics
[521 / 1737] CXKCP
[523 / 1746] CXKCP
[531 / 1747] CXKCP
[539 / 1747] ServiceContextModule
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/A2A/Client/A2AClient.swift:34:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |
 33 |     /// The URLSession used for requests.
 34 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     /// Optional authentication headers to include in requests.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/A2A/Client/A2AClient.swift:56:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |     public init(
 55 |         baseURL: URL,
 56 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |         authHeaders: [String: String] = [:],
 58 |         interceptors: [any A2AClientInterceptor] = [],
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/A2A/Client/A2AClient.swift:56:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 54 |     public init(
 55 |         baseURL: URL,
 56 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |         authHeaders: [String: String] = [:],
 58 |         interceptors: [any A2AClientInterceptor] = [],
/host/spi-builder-workspace/Sources/A2A/Client/A2AClient.swift:56:32: error: value of type '_' expected to be instance of class or class-constrained type
 54 |     public init(
 55 |         baseURL: URL,
 56 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 57 |         authHeaders: [String: String] = [:],
 58 |         interceptors: [any A2AClientInterceptor] = [],
/host/spi-builder-workspace/Sources/A2A/Client/A2AClient.swift:425:49: error: cannot find type 'URLRequest' in scope
423 |     }
424 |
425 |     private func applyHeaders(to request: inout URLRequest) {
    |                                                 `- error: cannot find type 'URLRequest' in scope
426 |         for (key, value) in authHeaders {
427 |             request.setValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/A2A/Client/A2AClient.swift:431:51: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
429 |     }
430 |
431 |     private func validateHTTPResponse(_ response: URLResponse) throws {
    |                                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
432 |         guard let httpResponse = response as? HTTPURLResponse else {
433 |             throw A2AError(code: .internalError, message: "Invalid HTTP response")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/A2A/Client/A2AClient.swift:34:17: error: stored property 'session' of 'Sendable'-conforming class 'A2AClient' has non-Sendable type 'AnyObject'
 32 |
 33 |     /// The URLSession used for requests.
 34 |     private let session: URLSession
    |                 `- error: stored property 'session' of 'Sendable'-conforming class 'A2AClient' has non-Sendable type 'AnyObject'
 35 |
 36 |     /// Optional authentication headers to include in requests.
/host/spi-builder-workspace/Sources/A2A/Client/AgentCardResolver.swift:33:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     private var cache: [URL: CachedCard] = [:]
 32 |     private let defaultTTL: TimeInterval
 33 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |     private let decoder = JSONDecoder()
 35 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/A2A/Client/AgentCardResolver.swift:41:58: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |     ///   - defaultTTL: Default time-to-live for cached cards in seconds. Defaults to 300 (5 minutes).
 40 |     ///   - session: The URL session to use for fetching. Defaults to `.shared`.
 41 |     public init(defaultTTL: TimeInterval = 300, session: URLSession = .shared) {
    |                                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |         self.defaultTTL = defaultTTL
 43 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/A2A/Client/AgentCardResolver.swift:41:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 39 |     ///   - defaultTTL: Default time-to-live for cached cards in seconds. Defaults to 300 (5 minutes).
 40 |     ///   - session: The URL session to use for fetching. Defaults to `.shared`.
 41 |     public init(defaultTTL: TimeInterval = 300, session: URLSession = .shared) {
    |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 42 |         self.defaultTTL = defaultTTL
 43 |         self.session = session
/host/spi-builder-workspace/Sources/A2A/Client/AgentCardResolver.swift:41:72: error: value of type '_' expected to be instance of class or class-constrained type
 39 |     ///   - defaultTTL: Default time-to-live for cached cards in seconds. Defaults to 300 (5 minutes).
 40 |     ///   - session: The URL session to use for fetching. Defaults to `.shared`.
 41 |     public init(defaultTTL: TimeInterval = 300, session: URLSession = .shared) {
    |                                                                        `- error: value of type '_' expected to be instance of class or class-constrained type
 42 |         self.defaultTTL = defaultTTL
 43 |         self.session = session
/host/spi-builder-workspace/Sources/A2A/Client/ClientInterceptor.swift:34:32: error: cannot find type 'URLRequest' in scope
32 | public protocol A2AClientInterceptor: Sendable {
33 |     /// Called before a request is sent. Modify the URLRequest to add headers, etc.
34 |     func before(request: inout URLRequest, method: A2AMethod) async throws
   |                                `- error: cannot find type 'URLRequest' in scope
35 |
36 |     /// Called after a response is received. Can inspect/transform the response data.
/host/spi-builder-workspace/Sources/A2A/Client/ClientInterceptor.swift:38:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |     /// Called after a response is received. Can inspect/transform the response data.
37 |     /// Return the (possibly modified) data.
38 |     func after(response: URLResponse, data: Data, method: A2AMethod) async throws -> Data
   |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | }
40 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/A2A/Client/ClientInterceptor.swift:42:39: error: cannot find type 'URLRequest' in scope
40 |
41 | extension A2AClientInterceptor {
42 |     public func before(request: inout URLRequest, method: A2AMethod) async throws {}
   |                                       `- error: cannot find type 'URLRequest' in scope
43 |     public func after(response: URLResponse, data: Data, method: A2AMethod) async throws -> Data { data }
44 | }
/host/spi-builder-workspace/Sources/A2A/Client/ClientInterceptor.swift:43:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | extension A2AClientInterceptor {
42 |     public func before(request: inout URLRequest, method: A2AMethod) async throws {}
43 |     public func after(response: URLResponse, data: Data, method: A2AMethod) async throws -> Data { data }
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | }
45 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/A2A/Client/ClientInterceptor.swift:56:39: error: cannot find type 'URLRequest' in scope
54 |     }
55 |
56 |     public func before(request: inout URLRequest, method: A2AMethod) async throws {
   |                                       `- error: cannot find type 'URLRequest' in scope
57 |         request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
58 |     }
/host/spi-builder-workspace/Sources/A2A/Client/ClientInterceptor.swift:71:39: error: cannot find type 'URLRequest' in scope
69 |     }
70 |
71 |     public func before(request: inout URLRequest, method: A2AMethod) async throws {
   |                                       `- error: cannot find type 'URLRequest' in scope
72 |         request.setValue(apiKey, forHTTPHeaderField: headerName)
73 |     }
/host/spi-builder-workspace/Sources/A2A/Server/PushNotificationSender.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 | /// Sends push notifications to configured webhook URLs when task events occur.
 7 | public final class PushNotificationSender: Sendable {
 8 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     private let encoder: JSONEncoder
10 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/A2A/Server/PushNotificationSender.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     private let encoder: JSONEncoder
10 |
11 |     public init(session: URLSession = .shared) {
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |         self.session = session
13 |         self.encoder = JSONEncoder()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/A2A/Server/PushNotificationSender.swift:11:40: error: value of type '_' expected to be instance of class or class-constrained type
 9 |     private let encoder: JSONEncoder
10 |
11 |     public init(session: URLSession = .shared) {
   |                                        `- error: value of type '_' expected to be instance of class or class-constrained type
12 |         self.session = session
13 |         self.encoder = JSONEncoder()
/host/spi-builder-workspace/Sources/A2A/Server/PushNotificationSender.swift:11:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 9 |     private let encoder: JSONEncoder
10 |
11 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
12 |         self.session = session
13 |         self.encoder = JSONEncoder()
/host/spi-builder-workspace/Sources/A2A/Server/PushNotificationSender.swift:8:17: error: stored property 'session' of 'Sendable'-conforming class 'PushNotificationSender' has non-Sendable type 'AnyObject'
 6 | /// Sends push notifications to configured webhook URLs when task events occur.
 7 | public final class PushNotificationSender: Sendable {
 8 |     private let session: URLSession
   |                 `- error: stored property 'session' of 'Sendable'-conforming class 'PushNotificationSender' has non-Sendable type 'AnyObject'
 9 |     private let encoder: JSONEncoder
10 |
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/A2A/A2A.swift /host/spi-builder-workspace/Sources/A2A/Client/A2AClient.swift /host/spi-builder-workspace/Sources/A2A/Client/AgentCardResolver.swift /host/spi-builder-workspace/Sources/A2A/Client/ClientInterceptor.swift /host/spi-builder-workspace/Sources/A2A/Client/ConnectionState.swift /host/spi-builder-workspace/Sources/A2A/Client/SSEConfiguration.swift /host/spi-builder-workspace/Sources/A2A/Client/SSELineParser.swift /host/spi-builder-workspace/Sources/A2A/Client/StreamingSession.swift /host/spi-builder-workspace/Sources/A2A/JSONRPC/JSONRPCMessage.swift /host/spi-builder-workspace/Sources/A2A/Models/AgentCard.swift /host/spi-builder-workspace/Sources/A2A/Models/Artifact.swift /host/spi-builder-workspace/Sources/A2A/Models/Errors.swift /host/spi-builder-workspace/Sources/A2A/Models/Events.swift /host/spi-builder-workspace/Sources/A2A/Models/JSONValue.swift /host/spi-builder-workspace/Sources/A2A/Models/Message.swift /host/spi-builder-workspace/Sources/A2A/Models/Part.swift /host/spi-builder-workspace/Sources/A2A/Models/PushNotification.swift /host/spi-builder-workspace/Sources/A2A/Models/Requests.swift /host/spi-builder-workspace/Sources/A2A/Models/Security.swift /host/spi-builder-workspace/Sources/A2A/Models/Task.swift /host/spi-builder-workspace/Sources/A2A/Server/A2AServer.swift /host/spi-builder-workspace/Sources/A2A/Server/AgentExecutor.swift /host/spi-builder-workspace/Sources/A2A/Server/DefaultRequestHandler.swift /host/spi-builder-workspace/Sources/A2A/Server/EventQueue.swift /host/spi-builder-workspace/Sources/A2A/Server/InMemoryTaskStore.swift /host/spi-builder-workspace/Sources/A2A/Server/PushNotificationSender.swift /host/spi-builder-workspace/Sources/A2A/Server/RequestContext.swift /host/spi-builder-workspace/Sources/A2A/Server/TaskManager.swift /host/spi-builder-workspace/Sources/A2A/Server/TaskStore.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/A2A.build/Debug-webassembly-wasm32/A2A-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/A2A.build/Debug-webassembly-wasm32/A2A-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/A2A.build/Debug-webassembly-wasm32/A2A-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name A2A -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/A2A.build/Debug-webassembly-wasm32/A2A-t.build/Objects-normal/wasm32/A2A_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/A2A.build/Debug-webassembly-wasm32/A2A-t.build/Objects-normal/wasm32/Modules/A2A.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/A2A.build/Debug-webassembly-wasm32/A2A-t.build/Objects-normal/wasm32/Modules/A2A.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/A2A.build/Debug-webassembly-wasm32/A2A-t.build/Objects-normal/wasm32/A2A-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/A2A.build/Debug-webassembly-wasm32/A2A-t.build/Objects-normal/wasm32/A2A-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/A2A.build/Debug-webassembly-wasm32/A2A-t.build/Objects-normal/wasm32/A2A-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/A2A.build/Debug-webassembly-wasm32/A2A-t.build/Objects-normal/wasm32/Modules/A2A.swiftmodule
[549 / 1747] InternalCollectionsUtilities
error: Build failed
BUILD FAILURE 6.4 wasm