Build Information
Failed to build ACP, reference v0.1.16 (f38606), with Swift 6.3 for Wasm on 18 Apr 2026 22:49:25 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aptove/swift-sdk.git
Reference: v0.1.16
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/aptove/swift-sdk
* tag v0.1.16 -> FETCH_HEAD
HEAD is now at f38606f fix: fail pending requests on transport close, call close() on POSIX 57
Cloned https://github.com/aptove/swift-sdk.git
Revision (git rev-parse @):
f38606f7bb43a12122b8338b2bb694084ededf94
SUCCESS checkout https://github.com/aptove/swift-sdk.git at v0.1.16
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/aptove/swift-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-collections.git
[1/23569] Fetching swift-collections
[473/30204] Fetching swift-collections, swift-log
Fetched https://github.com/apple/swift-log.git from cache (3.06s)
Fetched https://github.com/apple/swift-collections.git from cache (3.13s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (4.41s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (0.80s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.1
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.12.0
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Samples/EchoAgent/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Samples/SimpleClient/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Samples/InteractiveClient/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Samples/SimpleAgentApp/README.md
Building for debugging...
[0/42] Write sources
[17/42] Write swift-version-24593BA9C3E375BF.txt
[19/66] Emitting module InternalCollectionsUtilities
[20/68] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[21/68] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[22/68] Compiling InternalCollectionsUtilities Debugging.swift
[23/68] Compiling InternalCollectionsUtilities Descriptions.swift
[24/68] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[25/68] Compiling InternalCollectionsUtilities _SortedCollection.swift
[26/68] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[27/68] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[28/68] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[29/68] Compiling InternalCollectionsUtilities Span+Extras.swift
[30/68] Compiling InternalCollectionsUtilities String+Padding.swift
[31/68] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[32/68] Compiling InternalCollectionsUtilities Integer rank.swift
[33/68] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[34/68] Compiling InternalCollectionsUtilities UInt+reversed.swift
[35/68] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[36/68] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[37/68] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[38/68] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[39/69] Wrapping AST for InternalCollectionsUtilities for debugging
[41/284] Compiling HeapModule Heap+ExpressibleByArrayLiteral.swift
[42/292] Compiling _RopeModule BigString+Chunk+RopeElement.swift
[43/292] Compiling _RopeModule BigString+Chunk+Splitting.swift
[44/292] Compiling _RopeModule BigString+Chunk+UTF16.swift
[45/292] Compiling _RopeModule BigString+Chunk+UTF8.swift
[46/292] Compiling _RopeModule BigString+Chunk+UnicodeScalar.swift
[47/296] Compiling _RopeModule BigString+Ingester.swift
[48/296] Compiling _RopeModule BigString+Invariants.swift
[49/296] Compiling _RopeModule BigString+Metrics.swift
[50/296] Compiling _RopeModule BigString+Summary.swift
[51/298] Compiling _RopeModule BigString.swift
[52/298] Compiling _RopeModule BigString+Chunk+Append and Insert.swift
[53/298] Compiling _RopeModule BigString+Sequence.swift
[54/298] Compiling _RopeModule BigString+TextOutputStream.swift
[55/302] Compiling _RopeModule BigString+Builder.swift
[56/302] Compiling _RopeModule BigString+Contents.swift
[57/302] Compiling _RopeModule BigString+Debugging.swift
[58/302] Compiling _RopeModule BigString+Index.swift
[59/315] Compiling _RopeModule BigString+ReplaceSubrange.swift
[60/315] Compiling _RopeModule BigString+Split.swift
[61/315] Compiling _RopeModule Range+BigString.swift
[62/315] Compiling _RopeModule BigString+Chunk.swift
[63/315] Compiling _RopeModule BigString+BidirectionalCollection.swift
[64/315] Compiling _RopeModule BigString+Append.swift
[65/315] Compiling _RopeModule BigString+Initializers.swift
[66/315] Compiling _RopeModule BigString+Insert.swift
[67/315] Compiling _RopeModule BigString+Managing Breaks.swift
[68/315] Compiling _RopeModule BigString+RemoveSubrange.swift
[69/315] Compiling HeapModule Heap+Descriptions.swift
[70/336] Emitting module ContainersPreview
[71/368] Compiling BitCollections BitSet+SetAlgebra intersection.swift
[72/368] Compiling BitCollections BitSet+SetAlgebra isDisjoint.swift
[73/368] Compiling BitCollections BitSet+SetAlgebra isEqualSet.swift
[74/368] Compiling BitCollections BitSet+SetAlgebra isStrictSubset.swift
[75/368] Compiling HeapModule Heap.swift
[76/368] Compiling BitCollections BitArray+Equatable.swift
[77/368] Compiling BitCollections BitArray+ExpressibleByArrayLiteral.swift
[78/368] Compiling BitCollections BitArray+ExpressibleByStringLiteral.swift
[79/368] Compiling BitCollections BitArray+Extras.swift
[80/368] Compiling BitCollections BitArray+Fill.swift
[81/368] Compiling HeapModule _HeapNode.swift
[82/369] Wrapping AST for ContainersPreview for debugging
[84/409] Emitting module HeapModule
[85/409] Compiling HeapModule Heap+Invariants.swift
[86/409] Compiling HeapModule Heap+UnsafeHandle.swift
[88/410] Compiling Logging Locks.swift
[89/410] Emitting module Logging
[90/410] Compiling Logging MetadataProvider.swift
[90/410] Wrapping AST for HeapModule for debugging
[92/410] Compiling BitCollections BitSet+SetAlgebra subtracting.swift
[93/410] Compiling BitCollections BitSet+SetAlgebra symmetricDifference.swift
[94/410] Compiling BitCollections BitSet+SetAlgebra union.swift
[95/410] Compiling BitCollections BitSet+Sorted Collection APIs.swift
[96/410] Compiling BitCollections BitSet.Counted.swift
[97/410] Compiling BitCollections BitArray+LosslessStringConvertible.swift
[98/410] Compiling BitCollections BitArray+RandomBits.swift
[99/410] Compiling BitCollections BitArray+RangeReplaceableCollection.swift
[100/410] Compiling BitCollections BitArray+Shifts.swift
[101/410] Compiling BitCollections BitArray+Testing.swift
[102/410] Compiling BitCollections BitArray._UnsafeHandle.swift
[103/410] Compiling BitCollections BitArray.swift
[104/410] Compiling BitCollections BitSet+BidirectionalCollection.swift
[105/410] Compiling _RopeModule Rope+_UnsafeHandle.swift
[106/417] Compiling DequeModule Deque+Codable.swift
[107/417] Compiling DequeModule Deque+Collection.swift
[108/417] Compiling DequeModule Deque+CustomReflectable.swift
[109/417] Compiling DequeModule Deque+Descriptions.swift
[110/417] Compiling DequeModule Deque+Equatable.swift
[111/417] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[112/417] Compiling DequeModule UniqueDeque+Hashable.swift
[113/417] Compiling DequeModule UniqueDeque+Initializers.swift
[114/424] Compiling _RopeModule Rope+Extract.swift
[115/424] Compiling _RopeModule Rope+Find.swift
[116/424] Compiling _RopeModule Rope+ForEachWhile.swift
[117/424] Compiling _RopeModule Rope+Insert.swift
[118/424] Compiling HashTreeCollections TreeSet+SetAlgebra basics.swift
[119/424] Compiling HashTreeCollections TreeSet+SetAlgebra formIntersection.swift
[120/424] Compiling HashTreeCollections TreeSet+SetAlgebra formSymmetricDifference.swift
[121/424] Compiling HashTreeCollections TreeSet+SetAlgebra formUnion.swift
[122/424] Compiling HashTreeCollections TreeSet+SetAlgebra intersection.swift
[123/424] Compiling HashTreeCollections TreeSet+SetAlgebra isDisjoint.swift
[124/434] Compiling DequeModule UniqueDeque+Insertions.swift
[125/434] Compiling DequeModule UniqueDeque+Prepend.swift
[126/434] Compiling DequeModule UniqueDeque+Removals.swift
[127/434] Compiling DequeModule RigidDeque+Removals.swift
[128/434] Compiling DequeModule RigidDeque+Replacements.swift
[129/434] Compiling DequeModule RigidDeque+Testing.swift
[130/434] Compiling DequeModule RigidDeque.swift
[131/434] Compiling DequeModule UniqueDeque+Append.swift
[132/434] Emitting module BitCollections
[133/434] Compiling DequeModule UniqueDeque+Descriptions.swift
[134/434] Compiling DequeModule UniqueDeque+Equatable.swift
[135/434] Compiling DequeModule UniqueDeque+Experimental.swift
[136/434] Compiling DequeModule Deque+Extras.swift
[137/434] Compiling DequeModule Deque+Hashable.swift
[138/434] Compiling DequeModule Deque+Testing.swift
[139/434] Compiling DequeModule Deque._Storage.swift
[140/434] Compiling DequeModule Deque._UnsafeHandle.swift
[150/434] Compiling BitCollections BitSet.Index.swift
[151/434] Compiling DequeModule _DequeBuffer.swift
[152/434] Compiling DequeModule _DequeBufferHeader.swift
[153/434] Compiling DequeModule RigidDeque+Append.swift
[154/434] Compiling DequeModule RigidDeque+Consumption.swift
[155/434] Compiling DequeModule RigidDeque+Container.swift
[156/434] Compiling DequeModule RigidDeque+Descriptions.swift
[157/439] Compiling DequeModule RigidDeque+Equatable.swift
[158/439] Compiling DequeModule RigidDeque+Experimental.swift
[159/439] Compiling DequeModule RigidDeque+Hashable.swift
[160/439] Compiling DequeModule RigidDeque+Initializers.swift
[161/439] Compiling DequeModule RigidDeque+Insertions.swift
[162/439] Compiling DequeModule RigidDeque+Prepend.swift
[163/439] Compiling DequeModule UniqueDeque+Consumption.swift
[164/439] Compiling DequeModule Deque.swift
[171/439] Compiling DequeModule UniqueDeque+Replacements.swift
[177/439] Compiling BitCollections BitSet._UnsafeHandle.swift
[178/439] Compiling BitCollections BitSet.swift
[179/439] Compiling BitCollections Range+Utilities.swift
[180/439] Compiling BitCollections Slice+Utilities.swift
[181/439] Compiling BitCollections UInt+Tricks.swift
[182/439] Compiling BitCollections _Word.swift
[183/439] Compiling OrderedCollections _UnsafeBitset.swift
[184/439] Compiling _RopeModule Rope+Collection.swift
[185/439] Compiling _RopeModule Rope+Index.swift
[186/439] Compiling _RopeModule Rope+Sequence.swift
[187/439] Compiling _RopeModule Rope+Append.swift
[208/439] Compiling DequeModule UniqueDeque+Container.swift
[209/439] Compiling Logging Logging.swift
[210/439] Compiling Logging LogHandler.swift
[211/439] Compiling Logging LogEvent.swift
[215/440] Compiling DequeModule UniqueDeque.swift
[216/440] Compiling DequeModule _DequeSlot.swift
[217/440] Compiling DequeModule _UnsafeDequeHandle.swift
[218/440] Compiling DequeModule _UnsafeDequeSegments.swift
[219/440] Wrapping AST for Logging for debugging
[221/440] Compiling HashTreeCollections TreeSet+SetAlgebra isEqualSet.swift
[222/440] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSubset.swift
[223/440] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSuperset.swift
[224/440] Compiling HashTreeCollections TreeSet+SetAlgebra isSubset.swift
[225/440] Compiling HashTreeCollections TreeSet+SetAlgebra isSuperset.swift
[226/440] Compiling HashTreeCollections TreeSet+SetAlgebra subtract.swift
[227/440] Compiling HashTreeCollections TreeSet+SetAlgebra subtracting.swift
[228/440] Compiling HashTreeCollections TreeSet+SetAlgebra symmetricDifference.swift
[229/440] Compiling HashTreeCollections TreeSet+SetAlgebra union.swift
[230/440] Compiling HashTreeCollections TreeSet.swift
[329/450] Wrapping AST for BitCollections for debugging
[342/450] Emitting module OrderedCollections
[343/451] Wrapping AST for OrderedCollections for debugging
[366/451] Emitting module _RopeModule
[388/451] Emitting module DequeModule
[389/451] Emitting module HashTreeCollections
[421/452] Compiling _RopeModule Rope+Join.swift
[422/452] Compiling _RopeModule Rope+MutatingForEach.swift
[423/452] Compiling _RopeModule Rope+Remove.swift
[424/452] Compiling _RopeModule Rope+RemoveSubrange.swift
[425/452] Compiling _RopeModule Rope+Split.swift
[426/452] Compiling _RopeModule Optional Utilities.swift
[427/452] Compiling _RopeModule String Utilities.swift
[428/452] Compiling _RopeModule String.Index+ABI.swift
[429/452] Compiling _RopeModule _CharacterRecognizer.swift
[429/453] Wrapping AST for HashTreeCollections for debugging
[431/453] Wrapping AST for _RopeModule for debugging
[438/454] Wrapping AST for DequeModule for debugging
[440/460] Compiling Collections HashTreeCollections reexports.swift
[441/460] Compiling Collections HeapModule reexports.swift
[442/460] Emitting module Collections
[443/460] Compiling Collections DequeModule reexports.swift
[444/460] Compiling Collections BitCollections reexports.swift
[445/460] Compiling Collections OrderedCollections reexports.swift
[446/461] Wrapping AST for Collections for debugging
[448/497] Compiling ACPModel PlanEntry.swift
[449/497] Compiling ACPModel Priority.swift
[450/497] Compiling ACPModel ProtocolVersion.swift
[451/497] Compiling ACPModel RequestId.swift
[452/497] Compiling ACPModel Role.swift
[453/502] Compiling ACPModel SessionConfigGroupId.swift
[454/502] Compiling ACPModel SessionConfigId.swift
[455/502] Compiling ACPModel SessionConfigOption.swift
[456/502] Compiling ACPModel SessionConfigValueId.swift
[457/502] Compiling ACPModel SessionId.swift
[458/502] Emitting module ACPModel
[459/502] Compiling ACPModel ModelMessages.swift
[460/502] Compiling ACPModel Notifications.swift
[461/502] Compiling ACPModel Pagination.swift
[462/502] Compiling ACPModel PermissionMessages.swift
[463/502] Compiling ACPModel PermissionOptionId.swift
[464/502] Compiling ACPModel SessionInfo.swift
[465/502] Compiling ACPModel SessionMessages.swift
[466/502] Compiling ACPModel SessionModeId.swift
[467/502] Compiling ACPModel SessionModeMessages.swift
[468/502] Compiling ACPModel SessionOperations.swift
[469/502] Compiling ACPModel ACPModel.swift
[470/502] Compiling ACPModel AcpProtocols.swift
[471/502] Compiling ACPModel Annotations.swift
[472/502] Compiling ACPModel AuthMessages.swift
[473/502] Compiling ACPModel AvailableCommand.swift
[474/502] Compiling ACPModel Capabilities.swift
[475/502] Compiling ACPModel ContentBlock.swift
[476/502] Compiling ACPModel Cursor.swift
[477/502] Compiling ACPModel FileMessages.swift
[478/502] Compiling ACPModel Implementation.swift
[479/502] Compiling ACPModel InitializeMessages.swift
[480/502] Compiling ACPModel JsonRpc.swift
[481/502] Compiling ACPModel JsonValue.swift
[482/502] Compiling ACPModel McpServer.swift
[483/502] Compiling ACPModel ModelId.swift
[484/502] Compiling ACPModel SessionUpdate.swift
[485/502] Compiling ACPModel SessionUpdateTypes.swift
[486/502] Compiling ACPModel Terminal.swift
[487/502] Compiling ACPModel ToolCall.swift
[488/502] Compiling ACPModel ToolCallId.swift
[489/503] Wrapping AST for ACPModel for debugging
[491/519] Emitting module ACP
[492/521] Compiling ACP FileSystemOperations.swift
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:128:27: warning: capture of non-Sendable type 'Request.Type' in an isolated closure [#SendableMetatypes]
126 | ) -> PaginatedAsyncSequence<Item> {
127 | PaginatedAsyncSequence { [self] cursor in
128 | let request = requestFactory(cursor)
| `- warning: capture of non-Sendable type 'Request.Type' in an isolated closure [#SendableMetatypes]
129 | let jsonRpcResponse = try await self.sendRequest(method: method, params: request)
130 |
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:133:46: warning: capture of non-Sendable type 'Response.Type' in an isolated closure [#SendableMetatypes]
131 | // Decode the result to the expected response type
132 | let data = try JSONEncoder().encode(jsonRpcResponse.result)
133 | let response = try JSONDecoder().decode(Response.self, from: data)
| `- warning: capture of non-Sendable type 'Response.Type' in an isolated closure [#SendableMetatypes]
134 |
135 | return responseHandler(response)
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:129:50: warning: sending value of non-Sendable type 'Request' risks causing data races [#SendingRisksDataRace]
127 | PaginatedAsyncSequence { [self] cursor in
128 | let request = requestFactory(cursor)
129 | let jsonRpcResponse = try await self.sendRequest(method: method, params: request)
| | `- note: isolated conformance to protocol 'Encodable' can be introduced here
| |- warning: sending value of non-Sendable type 'Request' risks causing data races [#SendingRisksDataRace]
| `- note: sending task-isolated value of non-Sendable type 'Request' to actor-isolated instance method 'sendRequest(method:params:timeoutSeconds:)' risks causing races in between task-isolated and actor-isolated uses
130 |
131 | // Decode the result to the expected response type
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[493/521] Compiling ACP PaginatedResponse.swift
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:128:27: warning: capture of non-Sendable type 'Request.Type' in an isolated closure [#SendableMetatypes]
126 | ) -> PaginatedAsyncSequence<Item> {
127 | PaginatedAsyncSequence { [self] cursor in
128 | let request = requestFactory(cursor)
| `- warning: capture of non-Sendable type 'Request.Type' in an isolated closure [#SendableMetatypes]
129 | let jsonRpcResponse = try await self.sendRequest(method: method, params: request)
130 |
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:133:46: warning: capture of non-Sendable type 'Response.Type' in an isolated closure [#SendableMetatypes]
131 | // Decode the result to the expected response type
132 | let data = try JSONEncoder().encode(jsonRpcResponse.result)
133 | let response = try JSONDecoder().decode(Response.self, from: data)
| `- warning: capture of non-Sendable type 'Response.Type' in an isolated closure [#SendableMetatypes]
134 |
135 | return responseHandler(response)
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:129:50: warning: sending value of non-Sendable type 'Request' risks causing data races [#SendingRisksDataRace]
127 | PaginatedAsyncSequence { [self] cursor in
128 | let request = requestFactory(cursor)
129 | let jsonRpcResponse = try await self.sendRequest(method: method, params: request)
| | `- note: isolated conformance to protocol 'Encodable' can be introduced here
| |- warning: sending value of non-Sendable type 'Request' risks causing data races [#SendingRisksDataRace]
| `- note: sending task-isolated value of non-Sendable type 'Request' to actor-isolated instance method 'sendRequest(method:params:timeoutSeconds:)' risks causing races in between task-isolated and actor-isolated uses
130 |
131 | // Decode the result to the expected response type
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[494/521] Compiling ACP TerminalOperations.swift
[495/521] Compiling ACP Transport.swift
[496/521] Compiling ACP ACP.swift
[497/521] Compiling ACP Agent.swift
[498/521] Compiling ACP AgentConnection.swift
[499/521] Compiling ACP RemoteClientOperations.swift
[500/521] Compiling ACP StdioTransport.swift
[501/521] Compiling ACP ClientSessionOperations.swift
[502/521] Compiling ACP Event.swift
[503/521] Compiling ACP ClientConnection.swift
[504/521] Compiling ACP ClientSession.swift
[505/521] Compiling ACP AgentContext.swift
[506/521] Compiling ACP Client.swift
[507/521] Compiling ACP Protocol.swift
/host/spi-builder-workspace/Sources/ACP/ProtocolExtensions.swift:187:17: warning: capture of non-Sendable type 'P.Type' in an isolated closure [#SendableMetatypes]
185 | if let paramsValue = request.params {
186 | let data = try JSONEncoder().encode(paramsValue)
187 | params = try JSONDecoder().decode(P.self, from: data)
| `- warning: capture of non-Sendable type 'P.Type' in an isolated closure [#SendableMetatypes]
188 | } else {
189 | throw ProtocolError.decodingFailed(underlying: NSError(
/host/spi-builder-workspace/Sources/ACP/ProtocolExtensions.swift:197:30: warning: capture of non-Sendable type 'R.Type' in an isolated closure [#SendableMetatypes]
195 |
196 | // Execute handler
197 | let result = try await handler(params)
| `- warning: capture of non-Sendable type 'R.Type' in an isolated closure [#SendableMetatypes]
198 |
199 | // Encode result as JsonValue
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[508/521] Compiling ACP ProtocolExtensions.swift
/host/spi-builder-workspace/Sources/ACP/ProtocolExtensions.swift:187:17: warning: capture of non-Sendable type 'P.Type' in an isolated closure [#SendableMetatypes]
185 | if let paramsValue = request.params {
186 | let data = try JSONEncoder().encode(paramsValue)
187 | params = try JSONDecoder().decode(P.self, from: data)
| `- warning: capture of non-Sendable type 'P.Type' in an isolated closure [#SendableMetatypes]
188 | } else {
189 | throw ProtocolError.decodingFailed(underlying: NSError(
/host/spi-builder-workspace/Sources/ACP/ProtocolExtensions.swift:197:30: warning: capture of non-Sendable type 'R.Type' in an isolated closure [#SendableMetatypes]
195 |
196 | // Execute handler
197 | let result = try await handler(params)
| `- warning: capture of non-Sendable type 'R.Type' in an isolated closure [#SendableMetatypes]
198 |
199 | // Encode result as JsonValue
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[509/524] Wrapping AST for ACP for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[511/533] Emitting module InteractiveClient
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:29:43: error: cannot find type 'Process' in scope
27 | actor TerminalManager {
28 | /// Active terminal processes keyed by terminal ID.
29 | private var activeTerminals: [String: Process] = [:]
| `- error: cannot find type 'Process' in scope
30 |
31 | /// Output pipes for terminals.
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:40:18: error: cannot find type 'Process' in scope
38 | func createTerminal(
39 | terminalId: String,
40 | process: Process,
| `- error: cannot find type 'Process' in scope
41 | outputPipe: Pipe,
42 | errorPipe: Pipe
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:59:44: error: cannot find type 'Process' in scope
57 |
58 | /// Get a terminal process.
59 | func getProcess(terminalId: String) -> Process? {
| `- error: cannot find type 'Process' in scope
60 | return activeTerminals[terminalId]
61 | }
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:64:48: error: cannot find type 'Process' in scope
62 |
63 | /// Remove and return a terminal.
64 | func removeTerminal(terminalId: String) -> Process? {
| `- error: cannot find type 'Process' in scope
65 | let process = activeTerminals.removeValue(forKey: terminalId)
66 | terminalOutputPipes.removeValue(forKey: terminalId)
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:389:94: error: cannot find type 'Process' in scope
387 |
388 | /// Creates a transport connected to an external process via stdin/stdout.
389 | func createProcessTransport(command: String, arguments: [String]) throws -> (StdioTransport, Process) {
| `- error: cannot find type 'Process' in scope
390 | let process = Process()
391 | let stdinPipe = Pipe()
[512/533] Compiling InteractiveClient main.swift
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:29:43: error: cannot find type 'Process' in scope
27 | actor TerminalManager {
28 | /// Active terminal processes keyed by terminal ID.
29 | private var activeTerminals: [String: Process] = [:]
| `- error: cannot find type 'Process' in scope
30 |
31 | /// Output pipes for terminals.
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:40:18: error: cannot find type 'Process' in scope
38 | func createTerminal(
39 | terminalId: String,
40 | process: Process,
| `- error: cannot find type 'Process' in scope
41 | outputPipe: Pipe,
42 | errorPipe: Pipe
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:59:44: error: cannot find type 'Process' in scope
57 |
58 | /// Get a terminal process.
59 | func getProcess(terminalId: String) -> Process? {
| `- error: cannot find type 'Process' in scope
60 | return activeTerminals[terminalId]
61 | }
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:64:48: error: cannot find type 'Process' in scope
62 |
63 | /// Remove and return a terminal.
64 | func removeTerminal(terminalId: String) -> Process? {
| `- error: cannot find type 'Process' in scope
65 | let process = activeTerminals.removeValue(forKey: terminalId)
66 | terminalOutputPipes.removeValue(forKey: terminalId)
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:389:94: error: cannot find type 'Process' in scope
387 |
388 | /// Creates a transport connected to an external process via stdin/stdout.
389 | func createProcessTransport(command: String, arguments: [String]) throws -> (StdioTransport, Process) {
| `- error: cannot find type 'Process' in scope
390 | let process = Process()
391 | let stdinPipe = Pipe()
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:215:23: error: cannot find 'Process' in scope
213 | printInfo("🖥️ Creating terminal: \(request.command) \(request.args.joined(separator: " "))")
214 |
215 | let process = Process()
| `- error: cannot find 'Process' in scope
216 | let outputPipe = Pipe()
217 | let errorPipe = Pipe()
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:326:49: warning: left side of nil coalescing operator '??' has non-optional type 'String', so the right side is never used
324 | case .toolCall(let call):
325 | print()
326 | print("🔧 Tool call: \(call.title ?? "Unknown") (\(call.kind?.rawValue ?? ""))")
| `- warning: left side of nil coalescing operator '??' has non-optional type 'String', so the right side is never used
327 |
328 | case .toolCallUpdate(let update):
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:390:19: error: cannot find 'Process' in scope
388 | /// Creates a transport connected to an external process via stdin/stdout.
389 | func createProcessTransport(command: String, arguments: [String]) throws -> (StdioTransport, Process) {
390 | let process = Process()
| `- error: cannot find 'Process' in scope
391 | let stdinPipe = Pipe()
392 | let stdoutPipe = Pipe()
[513/533] Compiling ACPHTTP ACPHTTP.swift
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:44:32: error: cannot find type 'URLSessionWebSocketTask' in scope
42 |
43 | private let stateActor: WebSocketStateActor
44 | private var webSocketTask: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
45 | private let session: URLSession
46 |
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let stateActor: WebSocketStateActor
44 | private var webSocketTask: URLSessionWebSocketTask?
45 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | /// Initialize a new WebSocket transport.
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/ACPHTTP/WebSocketTransport.swift:52:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | /// - url: The WebSocket URL to connect to (must use ws:// or wss://)
51 | /// - session: URLSession to use for connections (defaults to shared)
52 | public init(url: URL, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | self.url = url
54 | 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/ACPHTTP/WebSocketTransport.swift:52:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 | /// - url: The WebSocket URL to connect to (must use ws:// or wss://)
51 | /// - session: URLSession to use for connections (defaults to shared)
52 | public init(url: URL, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | self.url = url
54 | self.session = session
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:52:50: error: value of type '_' expected to be instance of class or class-constrained type
50 | /// - url: The WebSocket URL to connect to (must use ws:// or wss://)
51 | /// - session: URLSession to use for connections (defaults to shared)
52 | public init(url: URL, session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
53 | self.url = url
54 | self.session = session
[514/533] Emitting module EchoAgent
[515/533] Emitting module SimpleClient
error: emit-module command failed with exit code 1 (use -v to see invocation)
BUILD FAILURE 6.3 wasm