Build Information
Failed to build ACP, reference main (6e7e67), with Swift 6.0 for Linux on 26 Apr 2026 04:38:24 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aptove/swift-sdk.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/aptove/swift-sdk
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 6e7e67c fix: correct package URL, name, and client example in README
Cloned https://github.com/aptove/swift-sdk.git
Revision (git rev-parse @):
6e7e67c8e650997e5a6eca670e01dcec338b815b
SUCCESS checkout https://github.com/aptove/swift-sdk.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/aptove/swift-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:6ccbc5e7995f6c524368c1828f9c677d1727c16390a603fc668217aec5f5123a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-log.git
[1/23686] Fetching swift-collections
[1423/30335] Fetching swift-collections, swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.70s)
[4264/23686] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.57s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (0.94s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.11.0 (0.72s)
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.11.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 UnsafeBufferPointer+Extras.swift
[23/68] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[24/68] Compiling InternalCollectionsUtilities _SortedCollection.swift
[25/68] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[26/68] Compiling Logging LogEvent.swift
[27/68] Compiling InternalCollectionsUtilities String+Padding.swift
[28/68] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[29/68] Compiling InternalCollectionsUtilities Integer rank.swift
[30/68] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[31/68] Compiling InternalCollectionsUtilities UInt+reversed.swift
[32/68] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[33/68] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[34/68] Compiling InternalCollectionsUtilities Span+Extras.swift
[35/68] Compiling InternalCollectionsUtilities Debugging.swift
[36/68] Compiling InternalCollectionsUtilities Descriptions.swift
[37/68] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[38/68] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[39/68] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[40/69] Wrapping AST for InternalCollectionsUtilities for debugging
[42/364] Compiling OrderedCollections OrderedDictionary.swift
[43/364] Compiling OrderedCollections OrderedSet+Codable.swift
[44/364] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[45/364] Compiling OrderedCollections OrderedSet+Descriptions.swift
[46/364] Compiling HeapModule Heap+ExpressibleByArrayLiteral.swift
[47/364] Compiling OrderedCollections OrderedSet+Diffing.swift
[48/364] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[49/364] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[50/364] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[51/364] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[52/364] Compiling OrderedCollections OrderedSet+Equatable.swift
[53/364] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[54/364] Compiling OrderedCollections OrderedSet+Hashable.swift
[55/364] Compiling OrderedCollections OrderedDictionary+Codable.swift
[56/364] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[57/364] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[58/364] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[59/364] Compiling OrderedCollections OrderedDictionary+Values.swift
[60/368] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[61/368] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[62/368] Compiling OrderedCollections OrderedSet+Initializers.swift
[63/368] Compiling OrderedCollections OrderedSet+Insertions.swift
[64/368] Compiling OrderedCollections OrderedSet+Invariants.swift
[65/368] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[66/368] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[67/368] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[68/368] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[69/368] Compiling OrderedCollections OrderedDictionary+Elements.swift
[70/368] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[71/368] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[72/368] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[73/368] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[74/368] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[75/368] Emitting module ContainersPreview
[76/368] Compiling HeapModule Heap+Descriptions.swift
[87/377] Compiling Logging MetadataProvider.swift
[88/377] Compiling ContainersPreview Box.swift
[89/377] Compiling ContainersPreview Inout.swift
[90/377] Compiling ContainersPreview InputSpan.swift
[91/377] Compiling ContainersPreview Shared.swift
[92/378] Compiling HeapModule _HeapNode.swift
[93/378] Emitting module Logging
[94/378] Compiling Logging Locks.swift
[95/378] Compiling HeapModule Heap.swift
[97/378] Compiling HeapModule Heap+Invariants.swift
[98/378] Compiling HeapModule Heap+UnsafeHandle.swift
[99/378] Emitting module HeapModule
[116/386] Wrapping AST for ContainersPreview for debugging
[117/386] Wrapping AST for HeapModule for debugging
[119/386] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[120/386] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[121/386] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[122/386] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[123/386] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[124/386] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[125/386] Compiling BitCollections BitSet.Index.swift
[126/433] Compiling Logging LogHandler.swift
[127/433] Compiling Logging Logging.swift
[128/434] Compiling OrderedCollections _Hashtable+Header.swift
[129/434] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[130/434] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[131/434] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[132/434] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[133/434] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[134/434] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[135/434] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[142/434] Compiling DequeModule UniqueDeque+Prepend.swift
[143/434] Compiling DequeModule UniqueDeque+Removals.swift
[144/434] Compiling DequeModule UniqueDeque+Consumption.swift
[145/434] Compiling DequeModule UniqueDeque+Container.swift
[146/434] Compiling DequeModule UniqueDeque+Descriptions.swift
[147/434] Compiling DequeModule UniqueDeque+Equatable.swift
[148/434] Compiling DequeModule UniqueDeque+Experimental.swift
[154/434] Compiling DequeModule UniqueDeque+Hashable.swift
[155/434] Compiling DequeModule UniqueDeque+Initializers.swift
[156/434] Compiling DequeModule UniqueDeque+Insertions.swift
[159/439] Compiling DequeModule RigidDeque+Equatable.swift
[160/439] Compiling DequeModule RigidDeque+Experimental.swift
[161/439] Compiling DequeModule RigidDeque+Hashable.swift
[162/439] Compiling DequeModule RigidDeque+Initializers.swift
[163/439] Compiling DequeModule RigidDeque+Insertions.swift
[164/439] Compiling DequeModule RigidDeque+Prepend.swift
[165/439] Compiling DequeModule RigidDeque+Removals.swift
[166/439] Compiling DequeModule RigidDeque+Replacements.swift
[167/439] Compiling DequeModule RigidDeque+Testing.swift
[168/439] Compiling DequeModule RigidDeque.swift
[169/439] Compiling DequeModule UniqueDeque+Append.swift
[170/439] Compiling DequeModule Deque+Codable.swift
[171/439] Compiling DequeModule Deque+Collection.swift
[172/439] Compiling DequeModule Deque+CustomReflectable.swift
[173/439] Compiling DequeModule Deque+Descriptions.swift
[174/439] Compiling DequeModule Deque+Equatable.swift
[175/439] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[176/439] Compiling DequeModule _DequeBuffer.swift
[177/439] Compiling DequeModule _DequeBufferHeader.swift
[179/439] Compiling HashTreeCollections TreeSet+Hashable.swift
[180/439] Compiling HashTreeCollections TreeSet+Sendable.swift
[181/439] Compiling HashTreeCollections TreeSet+Sequence.swift
[182/439] Compiling HashTreeCollections TreeSet+SetAlgebra Initializers.swift
[183/439] Compiling _RopeModule Rope+Join.swift
[184/439] Compiling _RopeModule Rope+MutatingForEach.swift
[185/439] Compiling _RopeModule Rope+Remove.swift
[186/439] Compiling _RopeModule Rope+RemoveSubrange.swift
[187/439] Compiling _RopeModule Rope+Split.swift
[188/439] Compiling _RopeModule Optional Utilities.swift
[189/439] Compiling OrderedCollections OrderedSet+SubSequence.swift
[190/439] Compiling OrderedCollections OrderedSet+Testing.swift
[191/439] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[192/439] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[193/439] Compiling OrderedCollections OrderedSet.swift
[194/439] Compiling OrderedCollections _UnsafeBitset.swift
[195/439] Compiling HashTreeCollections TreeSet+Equatable.swift
[196/439] Compiling HashTreeCollections TreeSet+ExpressibleByArrayLiteral.swift
[197/439] Compiling HashTreeCollections TreeSet+Extras.swift
[198/439] Compiling HashTreeCollections TreeSet+Filter.swift
[199/449] Compiling DequeModule RigidDeque+Append.swift
[200/449] Compiling DequeModule RigidDeque+Consumption.swift
[201/449] Compiling DequeModule RigidDeque+Container.swift
[202/449] Compiling DequeModule RigidDeque+Descriptions.swift
[203/449] Compiling DequeModule Deque+Extras.swift
[204/449] Compiling DequeModule Deque+Hashable.swift
[205/449] Compiling DequeModule Deque+Testing.swift
[206/449] Compiling DequeModule Deque._Storage.swift
[217/449] Compiling OrderedCollections OrderedSet+Sendable.swift
[217/449] Wrapping AST for Logging for debugging
[235/449] Compiling DequeModule Deque._UnsafeHandle.swift
[236/449] Compiling DequeModule Deque.swift
[239/449] Emitting module BitCollections
[264/450] Compiling HashTreeCollections TreeSet+SetAlgebra isEqualSet.swift
[265/450] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSubset.swift
[266/450] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSuperset.swift
[267/450] Compiling HashTreeCollections TreeSet+SetAlgebra isSubset.swift
[268/450] Compiling HashTreeCollections TreeSet+SetAlgebra isSuperset.swift
[269/450] Compiling HashTreeCollections TreeSet+SetAlgebra subtract.swift
[270/450] Compiling HashTreeCollections TreeSet+SetAlgebra subtracting.swift
[271/450] Compiling HashTreeCollections TreeSet+SetAlgebra symmetricDifference.swift
[272/450] Compiling HashTreeCollections TreeSet+SetAlgebra union.swift
[273/450] Compiling HashTreeCollections TreeSet.swift
[281/450] Compiling DequeModule UniqueDeque+Replacements.swift
[290/450] Compiling DequeModule UniqueDeque.swift
[291/450] Compiling DequeModule _DequeSlot.swift
[292/450] Compiling DequeModule _UnsafeDequeHandle.swift
[293/450] Compiling DequeModule _UnsafeDequeSegments.swift
[313/450] Wrapping AST for BitCollections for debugging
[401/450] Emitting module _RopeModule
[403/451] Emitting module OrderedCollections
[404/452] Wrapping AST for _RopeModule for debugging
[405/452] Wrapping AST for OrderedCollections for debugging
[429/452] Emitting module DequeModule
[435/453] Wrapping AST for DequeModule for debugging
[437/453] Emitting module HashTreeCollections
[438/454] Wrapping AST for HashTreeCollections for debugging
[440/460] Compiling Collections HashTreeCollections reexports.swift
[441/460] Compiling Collections OrderedCollections reexports.swift
[442/460] Emitting module Collections
[443/460] Compiling Collections HeapModule reexports.swift
[444/460] Compiling Collections BitCollections reexports.swift
[445/460] Compiling Collections DequeModule reexports.swift
[446/461] Wrapping AST for Collections for debugging
[448/497] Emitting module ACPModel
[449/502] Compiling ACPModel ACPModel.swift
[450/502] Compiling ACPModel AcpProtocols.swift
[451/502] Compiling ACPModel Annotations.swift
[452/502] Compiling ACPModel AuthMessages.swift
[453/502] Compiling ACPModel AvailableCommand.swift
[454/502] Compiling ACPModel ModelMessages.swift
[455/502] Compiling ACPModel Notifications.swift
[456/502] Compiling ACPModel Pagination.swift
[457/502] Compiling ACPModel PermissionMessages.swift
[458/502] Compiling ACPModel PermissionOptionId.swift
[459/502] Compiling ACPModel PlanEntry.swift
[460/502] Compiling ACPModel Priority.swift
[461/502] Compiling ACPModel ProtocolVersion.swift
[462/502] Compiling ACPModel RequestId.swift
[463/502] Compiling ACPModel Role.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 InitializeMessages.swift
[470/502] Compiling ACPModel JsonRpc.swift
[471/502] Compiling ACPModel JsonValue.swift
[472/502] Compiling ACPModel McpServer.swift
[473/502] Compiling ACPModel ModelId.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 SessionConfigGroupId.swift
[480/502] Compiling ACPModel SessionConfigId.swift
[481/502] Compiling ACPModel SessionConfigOption.swift
[482/502] Compiling ACPModel SessionConfigValueId.swift
[483/502] Compiling ACPModel SessionId.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] Compiling ACP AgentContext.swift
[492/519] Compiling ACP Client.swift
[493/521] Emitting module ACP
[494/521] Compiling ACP ClientSessionOperations.swift
[495/521] Compiling ACP Event.swift
[496/521] Compiling ACP FileSystemOperations.swift
[497/521] Compiling ACP PaginatedResponse.swift
[498/521] Compiling ACP TerminalOperations.swift
[499/521] Compiling ACP Transport.swift
[500/521] Compiling ACP ClientConnection.swift
[501/521] Compiling ACP ClientSession.swift
[502/521] Compiling ACP ACP.swift
[503/521] Compiling ACP Agent.swift
[504/521] Compiling ACP AgentConnection.swift
[505/521] Compiling ACP RemoteClientOperations.swift
[506/521] Compiling ACP StdioTransport.swift
[507/521] Compiling ACP Protocol.swift
[508/521] Compiling ACP ProtocolExtensions.swift
[509/522] Wrapping AST for ACP for debugging
[511/533] Emitting module SimpleClient
[512/533] Compiling SimpleClient main.swift
[513/533] 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 |
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:115:25: error: 'nil' requires a contextual type
113 | // Close WebSocket with normal closure
114 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
115 | webSocketTask = nil
| `- error: 'nil' requires a contextual type
116 |
117 | do {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[514/534] 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
[515/534] Compiling ACPHTTP ACPHTTP.swift
[517/534] Emitting module SimpleAgentApp
[518/534] Compiling SimpleAgentApp main.swift
/host/spi-builder-workspace/Samples/SimpleAgentApp/main.swift:400:24: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
398 | if case .text(let text) = chunk.content {
399 | print(text.text, terminator: "")
400 | fflush(stdout)
| `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
401 | }
402 | case .agentThoughtChunk(let chunk):
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Samples/SimpleAgentApp/main.swift:491:24: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
489 | while true {
490 | print("You: ", terminator: "")
491 | fflush(stdout)
| `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
492 |
493 | guard let input = readLine() else { break }
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Samples/SimpleAgentApp/main.swift:501:24: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
499 | print()
500 | print("Agent: ", terminator: "")
501 | fflush(stdout)
| `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
502 |
503 | let response = try await clientConnection.prompt(request: PromptRequest(
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[519/534] Emitting module InteractiveClient
[520/534] Compiling InteractiveClient main.swift
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:323:49: warning: left side of nil coalescing operator '??' has non-optional type 'String', so the right side is never used
321 | case .toolCall(let call):
322 | print()
323 | 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
324 |
325 | case .toolCallUpdate(let update):
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:312:20: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
310 | // Print agent message inline (no newline)
311 | print(renderContent(chunk.content), terminator: "")
312 | fflush(stdout)
| `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
313 |
314 | case .agentThoughtChunk(let chunk):
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:316:20: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
314 | case .agentThoughtChunk(let chunk):
315 | print("💭 \(renderContent(chunk.content))", terminator: "")
316 | fflush(stdout)
| `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
317 |
318 | case .userMessageChunk(let chunk):
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:513:20: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
511 | while true {
512 | print("You: ", terminator: "")
513 | fflush(stdout)
| `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
514 |
515 | guard let input = readLine() else {
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:542:24: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
540 | print()
541 | print("Agent: ", terminator: "")
542 | fflush(stdout)
| `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
543 |
544 | let response = try await connection.prompt(request: promptRequest)
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[521/534] Emitting module EchoAgent
[522/534] Compiling EchoAgent main.swift
BUILD FAILURE 6.0 linux