Build Information
Failed to build ACP, reference v0.1.16 (f38606), with Swift 6.1 for Wasm on 3 Mar 2026 07:28:36 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/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.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.1
Building package at path: $PWD
https://github.com/aptove/swift-sdk.git
https://github.com/aptove/swift-sdk.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "swift-collections",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-collections.git"
}
],
"manifest_display_name" : "ACP",
"name" : "ACP",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "watchos",
"version" : "8.0"
},
{
"name" : "tvos",
"version" : "15.0"
}
],
"products" : [
{
"name" : "ACPModel",
"targets" : [
"ACPModel"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "ACP",
"targets" : [
"ACP"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "ACPHTTP",
"targets" : [
"ACPHTTP"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "EchoAgent",
"targets" : [
"EchoAgent"
],
"type" : {
"executable" : null
}
},
{
"name" : "SimpleClient",
"targets" : [
"SimpleClient"
],
"type" : {
"executable" : null
}
},
{
"name" : "InteractiveClient",
"targets" : [
"InteractiveClient"
],
"type" : {
"executable" : null
}
},
{
"name" : "SimpleAgentApp",
"targets" : [
"SimpleAgentApp"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "SimpleClient",
"module_type" : "SwiftTarget",
"name" : "SimpleClient",
"path" : "Samples/SimpleClient",
"product_memberships" : [
"SimpleClient"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"ACP",
"ACPModel"
],
"type" : "executable"
},
{
"c99name" : "SimpleAgentApp",
"module_type" : "SwiftTarget",
"name" : "SimpleAgentApp",
"path" : "Samples/SimpleAgentApp",
"product_memberships" : [
"SimpleAgentApp"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"ACP",
"ACPModel"
],
"type" : "executable"
},
{
"c99name" : "InteractiveClient",
"module_type" : "SwiftTarget",
"name" : "InteractiveClient",
"path" : "Samples/InteractiveClient",
"product_memberships" : [
"InteractiveClient"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"ACP",
"ACPModel"
],
"type" : "executable"
},
{
"c99name" : "EchoAgent",
"module_type" : "SwiftTarget",
"name" : "EchoAgent",
"path" : "Samples/EchoAgent",
"product_memberships" : [
"EchoAgent"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"ACP",
"ACPModel"
],
"type" : "executable"
},
{
"c99name" : "ACPTests",
"module_type" : "SwiftTarget",
"name" : "ACPTests",
"path" : "Tests/ACPTests",
"sources" : [
"ACPTests.swift",
"AgentClientTests.swift",
"ClientSessionModelTests.swift",
"ClientSessionTests.swift",
"E2EIntegrationTests.swift",
"IntegrationTests.swift",
"OperationsTests.swift",
"PaginatedResponseTests.swift",
"ProtocolTests.swift",
"StdioTransportTests.swift",
"TestTransport.swift"
],
"target_dependencies" : [
"ACP"
],
"type" : "test"
},
{
"c99name" : "ACPModelTests",
"module_type" : "SwiftTarget",
"name" : "ACPModelTests",
"path" : "Tests/ACPModelTests",
"sources" : [
"ACPModelTests.swift",
"AuthMessagesTests.swift",
"FileMessagesTests.swift",
"JsonRpcTests.swift",
"JsonValueTests.swift",
"ModelMessagesTests.swift",
"NotificationsTests.swift",
"PaginationTests.swift",
"PermissionMessagesTests.swift",
"ProtocolVersionTests.swift",
"RequestIdTests.swift",
"SessionConfigOptionTests.swift",
"SessionIdTests.swift",
"SessionModeMessagesTests.swift",
"SessionOperationsTests.swift",
"TerminalTests.swift"
],
"target_dependencies" : [
"ACPModel"
],
"type" : "test"
},
{
"c99name" : "ACPModel",
"module_type" : "SwiftTarget",
"name" : "ACPModel",
"path" : "Sources/ACPModel",
"product_dependencies" : [
"Collections"
],
"product_memberships" : [
"ACPModel",
"ACP",
"ACPHTTP",
"EchoAgent",
"SimpleClient",
"InteractiveClient",
"SimpleAgentApp"
],
"sources" : [
"ACPModel.swift",
"AcpProtocols.swift",
"Annotations.swift",
"AuthMessages.swift",
"AvailableCommand.swift",
"Capabilities.swift",
"ContentBlock.swift",
"Cursor.swift",
"FileMessages.swift",
"Implementation.swift",
"InitializeMessages.swift",
"JsonRpc.swift",
"JsonValue.swift",
"McpServer.swift",
"ModelId.swift",
"ModelMessages.swift",
"Notifications.swift",
"Pagination.swift",
"PermissionMessages.swift",
"PermissionOptionId.swift",
"PlanEntry.swift",
"Priority.swift",
"ProtocolVersion.swift",
"RequestId.swift",
"Role.swift",
"SessionConfigGroupId.swift",
"SessionConfigId.swift",
"SessionConfigOption.swift",
"SessionConfigValueId.swift",
"SessionId.swift",
"SessionInfo.swift",
"SessionMessages.swift",
"SessionModeId.swift",
"SessionModeMessages.swift",
"SessionOperations.swift",
"SessionUpdate.swift",
"SessionUpdateTypes.swift",
"Terminal.swift",
"ToolCall.swift",
"ToolCallId.swift"
],
"type" : "library"
},
{
"c99name" : "ACPHTTPTests",
"module_type" : "SwiftTarget",
"name" : "ACPHTTPTests",
"path" : "Tests/ACPHTTPTests",
"sources" : [
"ACPHTTPTests.swift",
"WebSocketTransportTests.swift"
],
"target_dependencies" : [
"ACPHTTP"
],
"type" : "test"
},
{
"c99name" : "ACPHTTP",
"module_type" : "SwiftTarget",
"name" : "ACPHTTP",
"path" : "Sources/ACPHTTP",
"product_dependencies" : [
"Logging"
],
"product_memberships" : [
"ACPHTTP"
],
"sources" : [
"ACPHTTP.swift",
"WebSocketTransport.swift"
],
"target_dependencies" : [
"ACP",
"ACPModel"
],
"type" : "library"
},
{
"c99name" : "ACP",
"module_type" : "SwiftTarget",
"name" : "ACP",
"path" : "Sources/ACP",
"product_dependencies" : [
"Logging",
"Collections"
],
"product_memberships" : [
"ACP",
"ACPHTTP",
"EchoAgent",
"SimpleClient",
"InteractiveClient",
"SimpleAgentApp"
],
"sources" : [
"ACP.swift",
"Agent.swift",
"AgentConnection.swift",
"AgentContext.swift",
"Client.swift",
"ClientConnection.swift",
"ClientSession.swift",
"ClientSessionOperations.swift",
"Event.swift",
"FileSystemOperations.swift",
"PaginatedResponse.swift",
"Protocol.swift",
"ProtocolExtensions.swift",
"RemoteClientOperations.swift",
"StdioTransport.swift",
"TerminalOperations.swift",
"Transport.swift"
],
"target_dependencies" : [
"ACPModel"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
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/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-log.git
[1/20327] Fetching swift-collections
[1831/26417] Fetching swift-collections, swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.46s)
Fetched https://github.com/apple/swift-collections.git from cache (1.49s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (2.23s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.10.1 (0.55s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.10.1
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/40] Write sources
[16/40] Write swift-version-24593BA9C3E375BF.txt
[18/61] Compiling InternalCollectionsUtilities _SortedCollection.swift
[19/61] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[20/63] Emitting module InternalCollectionsUtilities
[21/63] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[22/63] Compiling InternalCollectionsUtilities Integer rank.swift
[23/63] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[24/63] Compiling InternalCollectionsUtilities UInt+reversed.swift
[25/63] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[26/63] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[27/63] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[28/63] Compiling InternalCollectionsUtilities Debugging.swift
[29/63] Compiling InternalCollectionsUtilities Descriptions.swift
[30/63] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[31/63] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[32/63] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[33/63] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[34/63] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[35/63] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[36/64] Wrapping AST for InternalCollectionsUtilities for debugging
[38/84] Emitting module Logging
[39/84] Compiling Logging MetadataProvider.swift
[40/84] Compiling Logging LogHandler.swift
[41/86] Compiling Logging Locks.swift
[42/86] Compiling Logging Logging.swift
[44/339] Compiling HeapModule Heap+ExpressibleByArrayLiteral.swift
[45/339] Compiling OrderedCollections _HashTable+Constants.swift
[46/339] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[46/341] Wrapping AST for Logging for debugging
[48/341] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[49/341] Compiling OrderedCollections OrderedDictionary+Elements.swift
[50/341] Compiling HeapModule Heap.swift
[51/341] Compiling HeapModule _HeapNode.swift
[52/341] Compiling OrderedCollections _HashTable+Testing.swift
[53/341] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[54/341] Compiling HeapModule Heap+Descriptions.swift
[55/341] Compiling HeapModule Heap+Invariants.swift
[56/341] Compiling HeapModule Heap+UnsafeHandle.swift
[57/341] Emitting module HeapModule
[58/342] Compiling HashTreeCollections TreeSet+Hashable.swift
[59/342] Compiling HashTreeCollections TreeSet+Sendable.swift
[60/342] Compiling HashTreeCollections TreeSet+Sequence.swift
[61/342] Compiling HashTreeCollections TreeSet+SetAlgebra Initializers.swift
[62/342] Compiling HashTreeCollections TreeSet+SetAlgebra basics.swift
[63/342] Compiling HashTreeCollections TreeSet+SetAlgebra formIntersection.swift
[64/342] Compiling HashTreeCollections TreeSet+SetAlgebra formSymmetricDifference.swift
[65/342] Compiling HashTreeCollections TreeSet+SetAlgebra formUnion.swift
[66/342] Compiling HashTreeCollections TreeSet+SetAlgebra intersection.swift
[67/342] Compiling HashTreeCollections TreeSet+SetAlgebra isDisjoint.swift
[69/352] Compiling DequeModule _DequeSlot.swift
[70/352] Compiling DequeModule _UnsafeWrappedBuffer.swift
[71/352] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[72/352] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[73/352] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[74/352] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[75/352] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[76/352] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[77/352] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[78/359] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[79/359] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[80/359] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[81/359] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[82/359] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[83/359] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[84/359] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[84/359] Wrapping AST for HeapModule for debugging
[86/359] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[87/359] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[88/359] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[89/359] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[90/359] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[91/359] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[92/359] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[93/366] Compiling OrderedCollections OrderedDictionary+Values.swift
[94/366] Compiling OrderedCollections OrderedSet+Initializers.swift
[95/366] Compiling OrderedCollections OrderedSet+Insertions.swift
[96/366] Compiling OrderedCollections OrderedSet+Invariants.swift
[97/366] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[98/366] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[99/366] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[100/366] Compiling OrderedCollections OrderedDictionary.swift
[101/366] Compiling OrderedCollections OrderedSet+Codable.swift
[102/366] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[103/366] Compiling OrderedCollections OrderedSet+Descriptions.swift
[104/366] Compiling OrderedCollections OrderedSet+Diffing.swift
[105/366] Compiling OrderedCollections OrderedSet+Equatable.swift
[106/366] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[107/366] Compiling OrderedCollections OrderedSet+Hashable.swift
[108/366] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[109/366] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[122/366] Compiling OrderedCollections OrderedDictionary+Codable.swift
[123/366] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[124/366] Compiling OrderedCollections _HashTable.swift
[125/366] Compiling OrderedCollections _Hashtable+Header.swift
[126/366] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[127/366] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[128/366] Compiling BitCollections Range+Utilities.swift
[129/366] Compiling BitCollections Slice+Utilities.swift
[130/366] Compiling BitCollections UInt+Tricks.swift
[131/366] Compiling BitCollections _Word.swift
[132/366] Compiling OrderedCollections OrderedSet.swift
[133/366] Compiling OrderedCollections _UnsafeBitset.swift
[134/366] Compiling HashTreeCollections TreeSet+Equatable.swift
[135/366] Compiling HashTreeCollections TreeSet+ExpressibleByArrayLiteral.swift
[136/366] Compiling HashTreeCollections TreeSet+Extras.swift
[137/366] Compiling HashTreeCollections TreeSet+Filter.swift
[162/366] Compiling BitCollections BitSet.Index.swift
[163/366] Compiling BitCollections BitSet._UnsafeHandle.swift
[164/366] Compiling BitCollections BitSet.swift
[165/366] Compiling OrderedCollections _HashTable+Bucket.swift
[166/366] Compiling OrderedCollections _HashTable+BucketIterator.swift
[175/366] Emitting module BitCollections
[176/366] Compiling HashTreeCollections TreeSet+SetAlgebra isEqualSet.swift
[177/366] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSubset.swift
[178/366] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSuperset.swift
[179/366] Compiling HashTreeCollections TreeSet+SetAlgebra isSubset.swift
[180/366] Compiling HashTreeCollections TreeSet+SetAlgebra isSuperset.swift
[181/366] Compiling HashTreeCollections TreeSet+SetAlgebra subtract.swift
[182/366] Compiling HashTreeCollections TreeSet+SetAlgebra subtracting.swift
[183/366] Compiling HashTreeCollections TreeSet+SetAlgebra symmetricDifference.swift
[184/366] Compiling HashTreeCollections TreeSet+SetAlgebra union.swift
[185/366] Compiling HashTreeCollections TreeSet.swift
[186/366] Emitting module DequeModule
[187/367] Wrapping AST for DequeModule for debugging
[231/368] Wrapping AST for BitCollections for debugging
[276/377] Emitting module OrderedCollections
[310/378] Wrapping AST for OrderedCollections for debugging
[312/378] Emitting module _RopeModule
[313/378] Emitting module HashTreeCollections
[315/379] Compiling _RopeModule Rope+Join.swift
[316/379] Compiling _RopeModule Rope+MutatingForEach.swift
[317/379] Compiling _RopeModule Rope+Remove.swift
[318/379] Compiling _RopeModule Rope+RemoveSubrange.swift
[319/379] Compiling _RopeModule Rope+Split.swift
[320/379] Compiling _RopeModule Optional Utilities.swift
[321/379] Compiling _RopeModule String Utilities.swift
[322/379] Compiling _RopeModule String.Index+ABI.swift
[323/379] Compiling _RopeModule _CharacterRecognizer.swift
[363/380] Wrapping AST for HashTreeCollections for debugging
[364/380] Wrapping AST for _RopeModule for debugging
[366/382] Emitting module Collections
[367/382] Compiling Collections Collections.swift
[368/383] Wrapping AST for Collections for debugging
[370/419] Compiling ACPModel ModelMessages.swift
[371/419] Compiling ACPModel Notifications.swift
[372/419] Compiling ACPModel Pagination.swift
[373/419] Compiling ACPModel PermissionMessages.swift
[374/419] Compiling ACPModel PermissionOptionId.swift
[375/424] Compiling ACPModel ACPModel.swift
[376/424] Compiling ACPModel AcpProtocols.swift
[377/424] Compiling ACPModel Annotations.swift
[378/424] Compiling ACPModel AuthMessages.swift
[379/424] Compiling ACPModel AvailableCommand.swift
[380/424] Emitting module ACPModel
[381/424] Compiling ACPModel InitializeMessages.swift
[382/424] Compiling ACPModel JsonRpc.swift
[383/424] Compiling ACPModel JsonValue.swift
[384/424] Compiling ACPModel McpServer.swift
[385/424] Compiling ACPModel ModelId.swift
[386/424] Compiling ACPModel SessionConfigGroupId.swift
[387/424] Compiling ACPModel SessionConfigId.swift
[388/424] Compiling ACPModel SessionConfigOption.swift
[389/424] Compiling ACPModel SessionConfigValueId.swift
[390/424] Compiling ACPModel SessionId.swift
[391/424] Compiling ACPModel SessionInfo.swift
[392/424] Compiling ACPModel SessionMessages.swift
[393/424] Compiling ACPModel SessionModeId.swift
[394/424] Compiling ACPModel SessionModeMessages.swift
[395/424] Compiling ACPModel SessionOperations.swift
[396/424] Compiling ACPModel Capabilities.swift
[397/424] Compiling ACPModel ContentBlock.swift
[398/424] Compiling ACPModel Cursor.swift
[399/424] Compiling ACPModel FileMessages.swift
[400/424] Compiling ACPModel Implementation.swift
[401/424] Compiling ACPModel PlanEntry.swift
[402/424] Compiling ACPModel Priority.swift
[403/424] Compiling ACPModel ProtocolVersion.swift
[404/424] Compiling ACPModel RequestId.swift
[405/424] Compiling ACPModel Role.swift
[406/424] Compiling ACPModel SessionUpdate.swift
[407/424] Compiling ACPModel SessionUpdateTypes.swift
[408/424] Compiling ACPModel Terminal.swift
[409/424] Compiling ACPModel ToolCall.swift
[410/424] Compiling ACPModel ToolCallId.swift
[411/425] Wrapping AST for ACPModel for debugging
[413/441] Emitting module ACP
[414/443] Compiling ACP TerminalOperations.swift
[415/443] Compiling ACP Transport.swift
[416/443] Compiling ACP RemoteClientOperations.swift
[417/443] Compiling ACP StdioTransport.swift
[418/443] Compiling ACP ACP.swift
[419/443] Compiling ACP Agent.swift
[420/443] Compiling ACP AgentConnection.swift
[421/443] Compiling ACP ClientSessionOperations.swift
[422/443] Compiling ACP Event.swift
[423/443] Compiling ACP ClientConnection.swift
[424/443] Compiling ACP ClientSession.swift
[425/443] Compiling ACP FileSystemOperations.swift
[426/443] Compiling ACP PaginatedResponse.swift
[427/443] Compiling ACP AgentContext.swift
[428/443] Compiling ACP Client.swift
[429/443] Compiling ACP Protocol.swift
[430/443] Compiling ACP ProtocolExtensions.swift
[431/444] Wrapping AST for ACP for debugging
[433/455] Compiling ACPHTTP ACPHTTP.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[434/455] Emitting module ACPHTTP
/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
[435/455] Compiling ACPHTTP WebSocketTransport.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:69:33: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
67 |
68 | // Create WebSocket task
69 | webSocketTask = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
70 |
71 | // Start the connection
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:97:40: error: cannot infer contextual base in reference to member 'string'
95 | }
96 |
97 | try await webSocketTask?.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
98 | }
99 |
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:114:38: error: cannot infer contextual base in reference to member 'normalClosure'
112 |
113 | // Close WebSocket with normal closure
114 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
115 | webSocketTask = nil
116 |
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:114:61: error: 'nil' requires a contextual type
112 |
113 | // Close WebSocket with normal closure
114 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
115 | webSocketTask = nil
116 |
[436/455] Emitting module SimpleClient
[437/455] Emitting module EchoAgent
[438/455] Compiling EchoAgent main.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[439/456] Emitting module SimpleAgentApp
/host/spi-builder-workspace/Samples/SimpleAgentApp/main.swift:322:37: error: cannot find type 'Process' in scope
320 | // MARK: - TerminalOperations
321 |
322 | private var processes: [String: Process] = [:]
| `- error: cannot find type 'Process' in scope
323 | private var outputPipes: [String: Pipe] = [:]
324 |
[440/456] Compiling SimpleAgentApp main.swift
/host/spi-builder-workspace/Samples/SimpleAgentApp/main.swift:322:37: error: cannot find type 'Process' in scope
320 | // MARK: - TerminalOperations
321 |
322 | private var processes: [String: Process] = [:]
| `- error: cannot find type 'Process' in scope
323 | private var outputPipes: [String: Pipe] = [:]
324 |
/host/spi-builder-workspace/Samples/SimpleAgentApp/main.swift:328:23: error: cannot find 'Process' in scope
326 | print("📱 Client: Creating terminal for \(request.command)")
327 |
328 | let process = Process()
| `- error: cannot find 'Process' in scope
329 | let outputPipe = Pipe()
330 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[441/456] 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()
[442/456] 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()
[444/456] Compiling SimpleClient main.swift
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/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
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
[0/1] Planning build
Building for debugging...
[0/24] Write swift-version-24593BA9C3E375BF.txt
[2/45] Compiling InternalCollectionsUtilities Debugging.swift
[3/45] Compiling InternalCollectionsUtilities Descriptions.swift
[4/47] Compiling InternalCollectionsUtilities _SortedCollection.swift
[5/47] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[6/47] Compiling Logging MetadataProvider.swift
[7/47] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[8/47] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[9/47] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[10/47] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[11/47] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[12/47] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[13/47] Emitting module InternalCollectionsUtilities
[14/47] Compiling InternalCollectionsUtilities UInt+reversed.swift
[15/47] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[16/47] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[17/47] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[18/47] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[19/47] Compiling InternalCollectionsUtilities Integer rank.swift
[20/47] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[22/47] Emitting module Logging
[23/47] Compiling Logging Logging.swift
[24/47] Compiling Logging LogHandler.swift
[25/47] Compiling Logging Locks.swift
[27/69] Compiling HeapModule Heap+Descriptions.swift
[28/69] Compiling HeapModule Heap+ExpressibleByArrayLiteral.swift
[29/245] Compiling BitCollections BitArray+Codable.swift
[30/245] Compiling BitCollections BitArray+Collection.swift
[31/323] Compiling HashTreeCollections _Bitmap.swift
[32/323] Compiling HashTreeCollections _Bucket.swift
[33/323] Compiling HeapModule _HeapNode.swift
[34/323] Emitting module HeapModule
[35/323] Compiling HeapModule Heap.swift
[36/323] Compiling HeapModule Heap+UnsafeHandle.swift
[37/323] Compiling HeapModule Heap+Invariants.swift
[38/324] Compiling HashTreeCollections _HashNode+Structural filter.swift
[39/324] Compiling HashTreeCollections _HashNode+Structural intersection.swift
[41/323] Compiling HashTreeCollections _Hash.swift
[42/323] Compiling HashTreeCollections _HashLevel.swift
[43/323] Compiling HashTreeCollections TreeDictionary+Hashable.swift
[44/323] Compiling HashTreeCollections TreeDictionary+Initializers.swift
[45/323] Compiling HashTreeCollections TreeDictionary+Keys.swift
[46/323] Compiling HashTreeCollections TreeDictionary+MapValues.swift
[47/323] Compiling HashTreeCollections TreeDictionary+Merge.swift
[48/323] Compiling HashTreeCollections TreeDictionary+Sendable.swift
[49/323] Compiling HashTreeCollections TreeDictionary+Sequence.swift
[50/323] Compiling HashTreeCollections TreeDictionary+Collection.swift
[51/323] Compiling HashTreeCollections TreeDictionary+CustomReflectable.swift
[52/323] Compiling HashTreeCollections TreeDictionary+Debugging.swift
[53/323] Compiling HashTreeCollections TreeDictionary+Descriptions.swift
[54/323] Compiling HashTreeCollections TreeDictionary+Equatable.swift
[55/323] Compiling HashTreeCollections TreeDictionary+ExpressibleByDictionaryLiteral.swift
[56/323] Compiling HashTreeCollections TreeDictionary+Filter.swift
[57/330] Compiling HashTreeCollections TreeSet+Hashable.swift
[58/330] Compiling HashTreeCollections TreeSet+Sendable.swift
[59/330] Compiling HashTreeCollections TreeSet+Sequence.swift
[60/330] Compiling HashTreeCollections TreeSet+SetAlgebra Initializers.swift
[61/330] Compiling HashTreeCollections TreeSet+SetAlgebra basics.swift
[62/330] Compiling HashTreeCollections TreeSet+SetAlgebra formIntersection.swift
[63/330] Compiling HashTreeCollections TreeSet+SetAlgebra formSymmetricDifference.swift
[64/330] Compiling HashTreeCollections TreeSet+SetAlgebra formUnion.swift
[65/330] Compiling HashTreeCollections TreeSet+SetAlgebra intersection.swift
[66/330] Compiling HashTreeCollections TreeSet+SetAlgebra isDisjoint.swift
[67/330] Compiling HashTreeCollections _HashNode+Structural isDisjoint.swift
[68/330] Compiling HashTreeCollections _HashNode+Structural isEqualSet.swift
[69/330] Compiling HashTreeCollections _HashNode+Structural merge.swift
[70/330] Compiling HashTreeCollections _AncestorHashSlots.swift
[71/333] Compiling HashTreeCollections _HashNode+Structural isSubset.swift
[72/333] Compiling HashTreeCollections _HashNode+Structural mapValues.swift
[73/340] Emitting module BitCollections
[74/347] Compiling HashTreeCollections _HashNode+Structural union.swift
[75/347] Compiling HashTreeCollections _HashNode+Subtree Insertions.swift
[76/347] Compiling HashTreeCollections _HashNode+Subtree Modify.swift
[77/347] Compiling HashTreeCollections _HashNode+Subtree Removals.swift
[78/347] Compiling HashTreeCollections _HashNode+UnsafeHandle.swift
[79/347] Compiling HashTreeCollections _HashNode.swift
[80/347] Compiling HashTreeCollections _HashNodeHeader.swift
[81/347] Compiling HashTreeCollections _HashSlot.swift
[82/347] Compiling HashTreeCollections _HashNode+Primitive Removals.swift
[83/347] Compiling HashTreeCollections _HashNode+Primitive Replacement.swift
[84/347] Compiling HashTreeCollections _HashStack.swift
[85/347] Compiling HashTreeCollections _HashTreeIterator.swift
[86/347] Compiling HashTreeCollections _HashTreeStatistics.swift
[87/347] Compiling HashTreeCollections _RawHashNode+UnsafeHandle.swift
[88/347] Compiling HashTreeCollections _RawHashNode.swift
[89/347] Compiling HashTreeCollections _UnmanagedHashNode.swift
[90/347] Compiling HashTreeCollections _UnsafePath.swift
[91/347] Compiling HashTreeCollections TreeDictionary+Codable.swift
[107/347] Compiling HashTreeCollections _HashNode+Builder.swift
[108/347] Compiling HashTreeCollections _HashNode+Debugging.swift
[109/347] Compiling HashTreeCollections _HashNode+Initializers.swift
[110/347] Compiling HashTreeCollections _HashNode+Invariants.swift
[111/347] Compiling HashTreeCollections _HashNode+Lookups.swift
[112/347] Compiling HashTreeCollections _HashNode+Primitive Insertions.swift
[113/347] Compiling HashTreeCollections _HashNode+Structural subtracting.swift
[114/347] Compiling HashTreeCollections _HashNode+Structural symmetricDifference.swift
[115/347] Compiling BitCollections Range+Utilities.swift
[116/347] Compiling BitCollections Slice+Utilities.swift
[117/347] Compiling BitCollections UInt+Tricks.swift
[118/347] Compiling BitCollections _Word.swift
[119/347] Compiling OrderedCollections OrderedSet.swift
[120/347] Compiling OrderedCollections _UnsafeBitset.swift
[121/347] Compiling HashTreeCollections TreeSet+Equatable.swift
[122/347] Compiling HashTreeCollections TreeSet+ExpressibleByArrayLiteral.swift
[123/347] Compiling HashTreeCollections TreeSet+Extras.swift
[124/347] Compiling HashTreeCollections TreeSet+Filter.swift
[133/347] Compiling BitCollections BitSet.Index.swift
[134/347] Compiling BitCollections BitSet._UnsafeHandle.swift
[135/347] Compiling BitCollections BitSet.swift
[157/347] Emitting module DequeModule
[159/347] Compiling HashTreeCollections TreeSet+SetAlgebra isEqualSet.swift
[160/347] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSubset.swift
[161/347] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSuperset.swift
[162/347] Compiling HashTreeCollections TreeSet+SetAlgebra isSubset.swift
[163/347] Compiling HashTreeCollections TreeSet+SetAlgebra isSuperset.swift
[164/347] Compiling HashTreeCollections TreeSet+SetAlgebra subtract.swift
[165/347] Compiling HashTreeCollections TreeSet+SetAlgebra subtracting.swift
[166/347] Compiling HashTreeCollections TreeSet+SetAlgebra symmetricDifference.swift
[167/347] Compiling HashTreeCollections TreeSet+SetAlgebra union.swift
[168/347] Compiling HashTreeCollections TreeSet.swift
[179/347] Compiling HashTreeCollections _HashNode+Storage.swift
[180/347] Compiling HashTreeCollections _HashNode+Structural compactMapValues.swift
[265/356] Emitting module OrderedCollections
[300/356] Emitting module _RopeModule
[311/356] Emitting module HashTreeCollections
[332/356] Compiling _RopeModule Rope+Join.swift
[333/356] Compiling _RopeModule Rope+MutatingForEach.swift
[334/356] Compiling _RopeModule Rope+Remove.swift
[335/356] Compiling _RopeModule Rope+RemoveSubrange.swift
[336/356] Compiling _RopeModule Rope+Split.swift
[337/356] Compiling _RopeModule Optional Utilities.swift
[338/356] Compiling _RopeModule String Utilities.swift
[339/356] Compiling _RopeModule String.Index+ABI.swift
[340/356] Compiling _RopeModule _CharacterRecognizer.swift
[342/358] Emitting module Collections
[343/358] Compiling Collections Collections.swift
[345/394] Emitting module ACPModel
[346/399] Compiling ACPModel ModelMessages.swift
[347/399] Compiling ACPModel Notifications.swift
[348/399] Compiling ACPModel Pagination.swift
[349/399] Compiling ACPModel PermissionMessages.swift
[350/399] Compiling ACPModel PermissionOptionId.swift
[351/399] Compiling ACPModel SessionInfo.swift
[352/399] Compiling ACPModel SessionMessages.swift
[353/399] Compiling ACPModel SessionModeId.swift
[354/399] Compiling ACPModel SessionModeMessages.swift
[355/399] Compiling ACPModel SessionOperations.swift
[356/399] Compiling ACPModel PlanEntry.swift
[357/399] Compiling ACPModel Priority.swift
[358/399] Compiling ACPModel ProtocolVersion.swift
[359/399] Compiling ACPModel RequestId.swift
[360/399] Compiling ACPModel Role.swift
[361/399] Compiling ACPModel SessionConfigGroupId.swift
[362/399] Compiling ACPModel SessionConfigId.swift
[363/399] Compiling ACPModel SessionConfigOption.swift
[364/399] Compiling ACPModel SessionConfigValueId.swift
[365/399] Compiling ACPModel SessionId.swift
[366/399] Compiling ACPModel InitializeMessages.swift
[367/399] Compiling ACPModel JsonRpc.swift
[368/399] Compiling ACPModel JsonValue.swift
[369/399] Compiling ACPModel McpServer.swift
[370/399] Compiling ACPModel ModelId.swift
[371/399] Compiling ACPModel Capabilities.swift
[372/399] Compiling ACPModel ContentBlock.swift
[373/399] Compiling ACPModel Cursor.swift
[374/399] Compiling ACPModel FileMessages.swift
[375/399] Compiling ACPModel Implementation.swift
[376/399] Compiling ACPModel ACPModel.swift
[377/399] Compiling ACPModel AcpProtocols.swift
[378/399] Compiling ACPModel Annotations.swift
[379/399] Compiling ACPModel AuthMessages.swift
[380/399] Compiling ACPModel AvailableCommand.swift
[381/399] Compiling ACPModel SessionUpdate.swift
[382/399] Compiling ACPModel SessionUpdateTypes.swift
[383/399] Compiling ACPModel Terminal.swift
[384/399] Compiling ACPModel ToolCall.swift
[385/399] Compiling ACPModel ToolCallId.swift
[387/415] Compiling ACP ACP.swift
[388/415] Compiling ACP Agent.swift
[389/415] Compiling ACP AgentConnection.swift
[390/415] Emitting module ACP
[391/417] Compiling ACP ClientConnection.swift
[392/417] Compiling ACP ClientSession.swift
[393/417] Compiling ACP TerminalOperations.swift
[394/417] Compiling ACP Transport.swift
[395/417] Compiling ACP RemoteClientOperations.swift
[396/417] Compiling ACP StdioTransport.swift
[397/417] Compiling ACP FileSystemOperations.swift
[398/417] Compiling ACP PaginatedResponse.swift
[399/417] Compiling ACP Protocol.swift
[400/417] Compiling ACP ProtocolExtensions.swift
[401/417] Compiling ACP ClientSessionOperations.swift
[402/417] Compiling ACP Event.swift
[403/417] Compiling ACP AgentContext.swift
[404/417] Compiling ACP Client.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[406/428] Compiling ACPHTTP ACPHTTP.swift
[407/428] Emitting module ACPHTTP
/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[408/428] 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()
error: emit-module command failed with exit code 1 (use -v to see invocation)
[409/428] Emitting module SimpleAgentApp
/host/spi-builder-workspace/Samples/SimpleAgentApp/main.swift:322:37: error: cannot find type 'Process' in scope
320 | // MARK: - TerminalOperations
321 |
322 | private var processes: [String: Process] = [:]
| `- error: cannot find type 'Process' in scope
323 | private var outputPipes: [String: Pipe] = [:]
324 |
[410/428] Compiling SimpleAgentApp main.swift
/host/spi-builder-workspace/Samples/SimpleAgentApp/main.swift:322:37: error: cannot find type 'Process' in scope
320 | // MARK: - TerminalOperations
321 |
322 | private var processes: [String: Process] = [:]
| `- error: cannot find type 'Process' in scope
323 | private var outputPipes: [String: Pipe] = [:]
324 |
/host/spi-builder-workspace/Samples/SimpleAgentApp/main.swift:328:23: error: cannot find 'Process' in scope
326 | print("📱 Client: Creating terminal for \(request.command)")
327 |
328 | let process = Process()
| `- error: cannot find 'Process' in scope
329 | let outputPipe = Pipe()
330 |
[411/428] Emitting module EchoAgent
[412/428] Emitting module SimpleClient
/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/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:69:33: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
67 |
68 | // Create WebSocket task
69 | webSocketTask = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
70 |
71 | // Start the connection
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:97:40: error: cannot infer contextual base in reference to member 'string'
95 | }
96 |
97 | try await webSocketTask?.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
98 | }
99 |
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:114:38: error: cannot infer contextual base in reference to member 'normalClosure'
112 |
113 | // Close WebSocket with normal closure
114 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
115 | webSocketTask = nil
116 |
BUILD FAILURE 6.1 wasm