Build Information
Failed to build Agents.swift, reference 0.10.3 (90aa23), with Swift 6.2 for Android on 10 Oct 2025 08:38:09 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/victorhenrion/Agents.swift.git
Reference: 0.10.3
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/victorhenrion/Agents.swift
* tag 0.10.3 -> FETCH_HEAD
HEAD is now at 90aa23d feat: make ToolInputAvailable properties public
Cloned https://github.com/victorhenrion/Agents.swift.git
Revision (git rev-parse @):
90aa23d7d6b78075088e590973ba633d3b1a9949
SUCCESS checkout https://github.com/victorhenrion/Agents.swift.git at 0.10.3
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/victorhenrion/Agents.swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:d70d83f328e9f1ae04a4e17e63e2d335ae10639f90ee796a5fe3bfb139eab948
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/daangn/KarrotCodableKit.git
Fetching https://github.com/gohanlon/swift-memberwise-init-macro.git
[1/725] Fetching swift-memberwise-init-macro
[726/2062] Fetching swift-memberwise-init-macro, karrotcodablekit
Fetched https://github.com/gohanlon/swift-memberwise-init-macro.git from cache (0.31s)
Fetched https://github.com/daangn/KarrotCodableKit.git from cache (0.35s)
[1/18153] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.52s)
Computing version for https://github.com/gohanlon/swift-memberwise-init-macro.git
Computed https://github.com/gohanlon/swift-memberwise-init-macro.git at 0.5.2 (4.63s)
Fetching https://github.com/swiftlang/swift-syntax
[1/72447] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (5.37s)
Computing version for https://github.com/daangn/KarrotCodableKit.git
Computed https://github.com/daangn/KarrotCodableKit.git at 1.6.0 (5.71s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (0.56s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (0.58s)
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 600.0.1
Creating working copy for https://github.com/daangn/KarrotCodableKit.git
Working copy of https://github.com/daangn/KarrotCodableKit.git resolved at 1.6.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.3.0
Creating working copy for https://github.com/gohanlon/swift-memberwise-init-macro.git
Working copy of https://github.com/gohanlon/swift-memberwise-init-macro.git resolved at 0.5.2
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/600.0.1/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/600.0.1/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz (0.51s)
Building for debugging...
[0/16] Write sources
[9/16] Write swift-version--11D90AFD9DD3AB2.txt
[11/75] Emitting module InternalCollectionsUtilities
[12/77] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[13/77] Compiling KarrotCodableKitMacros PolymorphicCodableStrategyMacro.swift
[14/77] Compiling MemberwiseInitMacros Models.swift
[15/77] Compiling KarrotCodableKitMacros PolymorphicExtensionFactory.swift
[16/77] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[17/77] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[18/77] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[19/77] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[20/77] Compiling MemberwiseInitMacros AttributeRemover.swift
[21/77] Compiling MemberwiseInitMacros CustomConfiguration.swift
[22/77] Compiling KarrotCodableKitMacros String+Trimming.swift
[23/77] Compiling MemberwiseInitMacros Diagnostics.swift
[24/77] Compiling MemberwiseInitMacros ExprTypeInference.swift
[25/77] Compiling MemberwiseInitMacros MemberwiseInitFormatter.swift
[26/77] Compiling MemberwiseInitMacros MacroPlugin.swift
[27/77] Compiling MemberwiseInitMacros MemberwiseInitMacro.swift
[28/77] Compiling MemberwiseInitMacros AccesssLevelSyntax.swift
[30/133] Compiling OrderedCollections OrderedDictionary.swift
[31/133] Compiling OrderedCollections OrderedSet+Codable.swift
[32/133] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[33/133] Compiling OrderedCollections OrderedSet+Descriptions.swift
[34/133] Compiling OrderedCollections OrderedSet+Diffing.swift
[35/133] Compiling OrderedCollections OrderedSet+Equatable.swift
[36/133] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[37/133] Compiling OrderedCollections OrderedSet+Hashable.swift
[38/140] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[39/140] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[40/140] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[41/140] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[42/140] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[43/140] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[44/140] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[45/140] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[46/140] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[47/140] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[48/140] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[49/140] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[50/140] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[51/140] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[52/140] Compiling OrderedCollections OrderedSet+Initializers.swift
[53/140] Compiling OrderedCollections OrderedSet+Insertions.swift
[54/140] Compiling OrderedCollections OrderedSet+Invariants.swift
[55/140] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[56/140] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[57/140] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[58/140] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[59/140] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[60/140] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[61/140] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[62/140] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[63/140] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[64/140] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[65/140] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[66/140] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[67/140] Compiling OrderedCollections OrderedDictionary+Values.swift
[68/140] Compiling OrderedCollections OrderedDictionary+Codable.swift
[69/140] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[70/140] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[71/140] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[72/140] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[73/140] Compiling OrderedCollections OrderedDictionary+Elements.swift
[74/140] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[75/140] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[76/140] Compiling OrderedCollections _HashTable+Bucket.swift
[77/140] Compiling OrderedCollections _HashTable+BucketIterator.swift
[78/140] Compiling OrderedCollections _HashTable+Constants.swift
[79/140] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[80/140] Compiling OrderedCollections _HashTable+Testing.swift
[81/140] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[82/140] Compiling OrderedCollections _HashTable.swift
[83/140] Compiling OrderedCollections _Hashtable+Header.swift
[84/140] Compiling OrderedCollections OrderedSet+Sendable.swift
[85/140] Compiling OrderedCollections OrderedSet+SubSequence.swift
[86/140] Compiling OrderedCollections OrderedSet+Testing.swift
[87/140] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[88/140] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[89/140] Compiling OrderedCollections OrderedSet.swift
[90/140] Compiling OrderedCollections _UnsafeBitset.swift
[91/140] Emitting module OrderedCollections
[97/144] Compiling MemberwiseInitMacros SyntaxHelpers.swift
[104/145] Emitting module MemberwiseInitMacros
[114/145] Emitting module ISO8601JSON
[115/145] Compiling ISO8601JSON ISO8601JSON.swift
[116/146] Compiling MemberwiseInitMacros UncheckedMemberwiseInitMacro.swift
[117/146] Compiling KarrotCodableKitMacros BaseUnnestedPolymorphicMacro.swift
[118/146] Compiling KarrotCodableKitMacros UnnestedPolymorphicCodableMacro.swift
[119/146] Compiling KarrotCodableKitMacros UnnestedPolymorphicDecodableMacro.swift
[125/146] Emitting module KarrotCodableKitMacros
[140/147] Compiling MemberwiseInitMacros String.swift
[142/148] Wrapping AST for KarrotCodableKitMacros for debugging
[143/148] Write Objects.LinkFileList
[144/148] Wrapping AST for MemberwiseInitMacros for debugging
[145/148] Write Objects.LinkFileList
[146/148] Linking KarrotCodableKitMacros-tool
[147/148] Linking MemberwiseInitMacros-tool
[149/211] Emitting module MemberwiseInit
[150/211] Compiling MemberwiseInit MemberwiseInit.swift
[152/212] Compiling KarrotCodableKit KeyedDecodingContainer+OptionalPolymorphicValue.swift
[153/212] Compiling KarrotCodableKit KeyedDecodingContainer+PolymorphicLossyArrayValue.swift
[154/212] Compiling KarrotCodableKit PolymorphicCodable.swift
[155/212] Compiling KarrotCodableKit PolymorphicCodableStrategyProviding.swift
[156/212] Compiling KarrotCodableKit PolymorphicDecodable.swift
[157/212] Compiling KarrotCodableKit PolymorphicEncodable.swift
[158/212] Compiling KarrotCodableKit PolymorphicEnumCodable.swift
[159/212] Compiling KarrotCodableKit PolymorphicEnumDecodable.swift
[160/212] Compiling KarrotCodableKit Encodable+ToDictionary.swift
[161/212] Compiling KarrotCodableKit DefaultEmptyPolymorphicArrayValue.swift
[162/212] Compiling KarrotCodableKit PolymorphicCodableError.swift
[163/212] Compiling KarrotCodableKit Decoder+Polymorphic.swift
[164/212] Compiling KarrotCodableKit Encoder+Polymorphic.swift
[165/212] Compiling KarrotCodableKit KeyedDecodingContainer+DefaultEmptyPolymorphicArrayValue.swift
[166/212] Compiling KarrotCodableKit KeyedDecodingContainer+LossyOptionalPolymorphicValue.swift
[167/212] Compiling KarrotCodableKit KeyedDecodingContainer+OptionalPolymorphicArrayValue.swift
[168/220] Emitting module KarrotCodableKit
[169/220] Compiling KarrotCodableKit PolymorphicEnumEncodable.swift
[170/220] Compiling KarrotCodableKit UnnestedPolymorphicCodable.swift
[171/220] Compiling KarrotCodableKit UnnestedPolymorphicDecodable.swift
[172/220] Compiling KarrotCodableKit LossyOptionalPolymorphicValue.swift
[173/220] Compiling KarrotCodableKit OptionalPolymorphicArrayValue.swift
[174/220] Compiling KarrotCodableKit OptionalPolymorphicValue.swift
[175/220] Compiling KarrotCodableKit PolymorphicArrayValue.swift
[176/220] Compiling KarrotCodableKit PolymorphicCodableStrategy.swift
[177/220] Compiling KarrotCodableKit LossyArray.swift
[178/220] Compiling KarrotCodableKit LossyDictionary.swift
[179/220] Compiling KarrotCodableKit LossyOptional.swift
[180/220] Compiling KarrotCodableKit ResilientProjectedValue.swift
[181/220] Compiling KarrotCodableKit CodingKeyStyle.swift
[182/220] Compiling KarrotCodableKit CodableKey.swift
[183/220] Compiling KarrotCodableKit CustomCodable.swift
[184/220] Compiling KarrotCodableKit CustomDecodable.swift
[185/220] Compiling KarrotCodableKit CustomEncodable.swift
[186/220] Compiling KarrotCodableKit DefaultZeroDouble.swift
[187/220] Compiling KarrotCodableKit DefaultZeroFloat.swift
[188/220] Compiling KarrotCodableKit DefaultZeroInt.swift
[189/220] Compiling KarrotCodableKit KeyedDecodingContainer+DefaultCodable.swift
[190/220] Compiling KarrotCodableKit Result+Extension.swift
[191/220] Compiling KarrotCodableKit LosslessArray.swift
[192/220] Compiling KarrotCodableKit LosslessBoolValue.swift
[193/220] Compiling KarrotCodableKit LosslessValue.swift
[194/220] Compiling KarrotCodableKit OptionalLosslessValue.swift
[195/220] Compiling KarrotCodableKit RFC3339NanoStrategy.swift
[196/220] Compiling KarrotCodableKit RFC3339Strategy.swift
[197/220] Compiling KarrotCodableKit TimestampStrategy.swift
[198/220] Compiling KarrotCodableKit DefaultCodable.swift
[199/220] Compiling KarrotCodableKit DefaultEmptyArray.swift
[200/220] Compiling KarrotCodableKit DefaultEmptyDictionary.swift
[201/220] Compiling KarrotCodableKit DefaultEmptyString.swift
[202/220] Compiling KarrotCodableKit DefaultFalse.swift
[203/220] Compiling KarrotCodableKit DefaultTrue.swift
[204/220] Compiling KarrotCodableKit AnyCodable.swift
[205/220] Compiling KarrotCodableKit AnyDecodable.swift
[206/220] Compiling KarrotCodableKit AnyEncodable.swift
[207/220] Compiling KarrotCodableKit Base64Strategy.swift
[208/220] Compiling KarrotCodableKit DataValue.swift
[209/220] Compiling KarrotCodableKit DateValue.swift
[210/220] Compiling KarrotCodableKit OptionalDateValue.swift
[211/220] Compiling KarrotCodableKit ISO8601Strategy.swift
[212/220] Compiling KarrotCodableKit ISO8601WithFractionalSecondsStrategy.swift
[213/220] Compiling KarrotCodableKit PolymorphicIdentifiable.swift
[214/220] Compiling KarrotCodableKit PolymorphicLossyArrayValue.swift
[215/220] Compiling KarrotCodableKit PolymorphicProjectedValue.swift
[216/220] Compiling KarrotCodableKit PolymorphicValue.swift
[217/220] Compiling KarrotCodableKit ArrayDecodingError.swift
[218/220] Compiling KarrotCodableKit DictionaryDecodingError.swift
[219/220] Compiling KarrotCodableKit ErrorReporting.swift
[220/220] Compiling KarrotCodableKit ResilientDecodingOutcome.swift
[222/225] Emitting module AI
[223/225] Compiling AI ChatMessage.swift
[224/225] Compiling AI ChatMessageBuilder.swift
[225/225] Compiling AI ChatMessageChunk.swift
[227/230] Compiling Agents WebSocketTaskConnection.swift
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:3:34: error: cannot find type 'URLSessionWebSocketDelegate' in scope
1 | import Foundation
2 |
3 | class WebSocketClient: NSObject, URLSessionWebSocketDelegate {
| `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
4 | // config
5 | private weak var delegate: Delegate?
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:11:34: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | // state
10 | private let urlSessionQueue = OperationQueue()
11 | private(set) var urlSession: URLSession!
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private(set) var webSocketTask: URLSessionWebSocketTask!
13 | private(set) var reconnectTask: Task<Bool, Never>?
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/Agents/WebSocketTaskConnection.swift:12:37: error: cannot find type 'URLSessionWebSocketTask' in scope
10 | private let urlSessionQueue = OperationQueue()
11 | private(set) var urlSession: URLSession!
12 | private(set) var webSocketTask: URLSessionWebSocketTask!
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
13 | private(set) var reconnectTask: Task<Bool, Never>?
14 | private(set) var isOpen: Bool = false
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:38:24: error: cannot find type 'URLSessionWebSocketTask' in scope
36 | func urlSession(
37 | _ session: URLSession,
38 | webSocketTask: URLSessionWebSocketTask,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
39 | didOpenWithProtocol `protocol`: String?
40 | ) {
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:37:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 | func urlSession(
37 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | webSocketTask: URLSessionWebSocketTask,
39 | didOpenWithProtocol `protocol`: String?
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/Agents/WebSocketTaskConnection.swift:49:24: error: cannot find type 'URLSessionWebSocketTask' in scope
47 | func urlSession(
48 | _ session: URLSession,
49 | webSocketTask: URLSessionWebSocketTask,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
50 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
51 | reason: Data?
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:50:33: error: cannot find type 'URLSessionWebSocketTask' in scope
48 | _ session: URLSession,
49 | webSocketTask: URLSessionWebSocketTask,
50 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
51 | reason: Data?
52 | ) {
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:48:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | func urlSession(
48 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | webSocketTask: URLSessionWebSocketTask,
50 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
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/Agents/WebSocketTaskConnection.swift:60:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | func urlSession(
60 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | task: URLSessionTask,
62 | didCompleteWithError error: Error?
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/Agents/WebSocketTaskConnection.swift:61:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | func urlSession(
60 | _ session: URLSession,
61 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | didCompleteWithError error: Error?
63 | ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:28:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
26 | self.currentURL = url
27 | super.init()
28 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
29 | configuration.httpAdditionalHeaders = headers
30 | self.urlSession = URLSession(
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:30:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | let configuration = URLSessionConfiguration.default
29 | configuration.httpAdditionalHeaders = headers
30 | self.urlSession = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 | configuration: configuration, delegate: self, delegateQueue: self.urlSessionQueue)
32 | self.webSocketTask = self.urlSession.webSocketTask(
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:32:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
30 | self.urlSession = URLSession(
31 | configuration: configuration, delegate: self, delegateQueue: self.urlSessionQueue)
32 | self.webSocketTask = self.urlSession.webSocketTask(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
33 | with: url.replacingInScheme("http", with: "ws"))
34 | }
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:89:50: error: cannot infer contextual base in reference to member 'goingAway'
87 | if self.isOpen || Task.isCancelled { break }
88 | // reconnect
89 | self.webSocketTask.cancel(with: .goingAway, reason: nil)
| `- error: cannot infer contextual base in reference to member 'goingAway'
90 | self.urlSession.configuration.httpAdditionalHeaders = await getHeaders?()
91 | self.webSocketTask = self.urlSession.webSocketTask(
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:89:69: error: 'nil' requires a contextual type
87 | if self.isOpen || Task.isCancelled { break }
88 | // reconnect
89 | self.webSocketTask.cancel(with: .goingAway, reason: nil)
| `- error: 'nil' requires a contextual type
90 | self.urlSession.configuration.httpAdditionalHeaders = await getHeaders?()
91 | self.webSocketTask = self.urlSession.webSocketTask(
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:113:37: error: cannot infer contextual base in reference to member 'goingAway'
111 | reconnectTask?.cancel()
112 | reconnectTask = nil
113 | webSocketTask.cancel(with: .goingAway, reason: nil)
| `- error: cannot infer contextual base in reference to member 'goingAway'
114 | urlSession?.invalidateAndCancel()
115 | isOpen = false
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:113:56: error: 'nil' requires a contextual type
111 | reconnectTask?.cancel()
112 | reconnectTask = nil
113 | webSocketTask.cancel(with: .goingAway, reason: nil)
| `- error: 'nil' requires a contextual type
114 | urlSession?.invalidateAndCancel()
115 | isOpen = false
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:114:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
112 | reconnectTask = nil
113 | webSocketTask.cancel(with: .goingAway, reason: nil)
114 | urlSession?.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
115 | isOpen = false
116 | }
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:119:45: error: cannot infer type of closure parameter 'result' without a type annotation
117 |
118 | private func listen() {
119 | webSocketTask.receive { [weak self] result in
| `- error: cannot infer type of closure parameter 'result' without a type annotation
120 | guard let self = self else { return }
121 | guard let delegate = self.delegate else { return }
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:169:42: error: cannot infer contextual base in reference to member 'string'
167 | switch self.messageFormat {
168 | case .preserve, .text:
169 | self.webSocketTask.send(.string(text)) { error in
| `- error: cannot infer contextual base in reference to member 'string'
170 | if let error = error { cont.resume(throwing: error) } else { cont.resume() }
171 | }
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:188:42: error: cannot infer contextual base in reference to member 'data'
186 | switch self.messageFormat {
187 | case .preserve, .binary:
188 | self.webSocketTask.send(.data(data)) { error in
| `- error: cannot infer contextual base in reference to member 'data'
189 | if let error = error { cont.resume(throwing: error) } else { cont.resume() }
190 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[228/230] Emitting module Agents
/host/spi-builder-workspace/Sources/Agents/AgentClient.swift:10:2: error: unknown attribute 'Observable'
8 | // todo: handle task timeout
9 | // todo: implement cancel message (?)
10 | @Observable
| `- error: unknown attribute 'Observable'
11 | open class AgentClient: WebSocketClient.Delegate {
12 | // config
/host/spi-builder-workspace/Sources/Agents/AgentClient.swift:14:6: error: unknown attribute 'ObservationIgnored'
12 | // config
13 | weak public var delegate: Delegate?
14 | @ObservationIgnored private var ws: WebSocketClient!
| `- error: unknown attribute 'ObservationIgnored'
15 | // state
16 | public private(set) var connected: Bool = false
/host/spi-builder-workspace/Sources/Agents/AgentClient.swift:20:6: error: unknown attribute 'ObservationIgnored'
18 | public private(set) var messages: [ChatMessage] = []
19 | public var failedMessages: [ChatMessage] = []
20 | @ObservationIgnored private var chatTasks: [String: ChatTask] = [:]
| `- error: unknown attribute 'ObservationIgnored'
21 | @ObservationIgnored private var rpcTasks: [String: AnyRPCTask] = [:]
22 |
/host/spi-builder-workspace/Sources/Agents/AgentClient.swift:21:6: error: unknown attribute 'ObservationIgnored'
19 | public var failedMessages: [ChatMessage] = []
20 | @ObservationIgnored private var chatTasks: [String: ChatTask] = [:]
21 | @ObservationIgnored private var rpcTasks: [String: AnyRPCTask] = [:]
| `- error: unknown attribute 'ObservationIgnored'
22 |
23 | public init(
/host/spi-builder-workspace/Sources/Agents/AgentClient.swift:388:10: warning: associated value 'responseTypeMismatch(type:)' of 'Sendable'-conforming enum 'RPCError' contains non-Sendable type 'any Decodable.Type'
386 | case requestError(Error)
387 | case responseError(id: String, message: String?)
388 | case responseTypeMismatch(type: Decodable.Type)
| `- warning: associated value 'responseTypeMismatch(type:)' of 'Sendable'-conforming enum 'RPCError' contains non-Sendable type 'any Decodable.Type'
389 | }
390 |
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:3:34: error: cannot find type 'URLSessionWebSocketDelegate' in scope
1 | import Foundation
2 |
3 | class WebSocketClient: NSObject, URLSessionWebSocketDelegate {
| `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
4 | // config
5 | private weak var delegate: Delegate?
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:11:34: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | // state
10 | private let urlSessionQueue = OperationQueue()
11 | private(set) var urlSession: URLSession!
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private(set) var webSocketTask: URLSessionWebSocketTask!
13 | private(set) var reconnectTask: Task<Bool, Never>?
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/Agents/WebSocketTaskConnection.swift:12:37: error: cannot find type 'URLSessionWebSocketTask' in scope
10 | private let urlSessionQueue = OperationQueue()
11 | private(set) var urlSession: URLSession!
12 | private(set) var webSocketTask: URLSessionWebSocketTask!
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
13 | private(set) var reconnectTask: Task<Bool, Never>?
14 | private(set) var isOpen: Bool = false
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:38:24: error: cannot find type 'URLSessionWebSocketTask' in scope
36 | func urlSession(
37 | _ session: URLSession,
38 | webSocketTask: URLSessionWebSocketTask,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
39 | didOpenWithProtocol `protocol`: String?
40 | ) {
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:37:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 | func urlSession(
37 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | webSocketTask: URLSessionWebSocketTask,
39 | didOpenWithProtocol `protocol`: String?
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/Agents/WebSocketTaskConnection.swift:49:24: error: cannot find type 'URLSessionWebSocketTask' in scope
47 | func urlSession(
48 | _ session: URLSession,
49 | webSocketTask: URLSessionWebSocketTask,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
50 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
51 | reason: Data?
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:50:33: error: cannot find type 'URLSessionWebSocketTask' in scope
48 | _ session: URLSession,
49 | webSocketTask: URLSessionWebSocketTask,
50 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
51 | reason: Data?
52 | ) {
/host/spi-builder-workspace/Sources/Agents/WebSocketTaskConnection.swift:48:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | func urlSession(
48 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | webSocketTask: URLSessionWebSocketTask,
50 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
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/Agents/WebSocketTaskConnection.swift:60:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | func urlSession(
60 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | task: URLSessionTask,
62 | didCompleteWithError error: Error?
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/Agents/WebSocketTaskConnection.swift:61:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | func urlSession(
60 | _ session: URLSession,
61 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | didCompleteWithError error: Error?
63 | ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
[229/230] Compiling Agents CFAgentMessage.swift
/host/spi-builder-workspace/Sources/Agents/CFAgentMessage.swift:68:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
66 | @PolymorphicDecodable(identifier: "cf_agent_chat_messages")
67 | struct CFAgentChatMessages {
68 | let type = "cf_agent_chat_messages"
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or remove the 'type' case from the CodingKeys enum to silence this warning
| `- note: make the property mutable instead
69 | let messages: [ChatMessage]
70 | }
/host/spi-builder-workspace/Sources/Agents/CFAgentMessage.swift:74:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
72 | @PolymorphicDecodable(identifier: "cf_agent_use_chat_response")
73 | struct CFAgentUseChatResponse {
74 | let type = "cf_agent_use_chat_response"
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or remove the 'type' case from the CodingKeys enum to silence this warning
| `- note: make the property mutable instead
75 | let id: String
76 | let body: String
/host/spi-builder-workspace/Sources/Agents/CFAgentMessage.swift:83:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
81 | @PolymorphicDecodable(identifier: "rpc")
82 | struct RPCResponse<Result: Codable> {
83 | let type = "rpc"
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or remove the 'type' case from the CodingKeys enum to silence this warning
| `- note: make the property mutable instead
84 | let id: String
85 | let success: Bool
[230/230] Compiling Agents AgentClient.swift
/host/spi-builder-workspace/Sources/Agents/AgentClient.swift:10:2: error: unknown attribute 'Observable'
8 | // todo: handle task timeout
9 | // todo: implement cancel message (?)
10 | @Observable
| `- error: unknown attribute 'Observable'
11 | open class AgentClient: WebSocketClient.Delegate {
12 | // config
/host/spi-builder-workspace/Sources/Agents/AgentClient.swift:14:6: error: unknown attribute 'ObservationIgnored'
12 | // config
13 | weak public var delegate: Delegate?
14 | @ObservationIgnored private var ws: WebSocketClient!
| `- error: unknown attribute 'ObservationIgnored'
15 | // state
16 | public private(set) var connected: Bool = false
/host/spi-builder-workspace/Sources/Agents/AgentClient.swift:20:6: error: unknown attribute 'ObservationIgnored'
18 | public private(set) var messages: [ChatMessage] = []
19 | public var failedMessages: [ChatMessage] = []
20 | @ObservationIgnored private var chatTasks: [String: ChatTask] = [:]
| `- error: unknown attribute 'ObservationIgnored'
21 | @ObservationIgnored private var rpcTasks: [String: AnyRPCTask] = [:]
22 |
/host/spi-builder-workspace/Sources/Agents/AgentClient.swift:21:6: error: unknown attribute 'ObservationIgnored'
19 | public var failedMessages: [ChatMessage] = []
20 | @ObservationIgnored private var chatTasks: [String: ChatTask] = [:]
21 | @ObservationIgnored private var rpcTasks: [String: AnyRPCTask] = [:]
| `- error: unknown attribute 'ObservationIgnored'
22 |
23 | public init(
/host/spi-builder-workspace/Sources/Agents/AgentClient.swift:388:10: warning: associated value 'responseTypeMismatch(type:)' of 'Sendable'-conforming enum 'RPCError' contains non-Sendable type 'any Decodable.Type'
386 | case requestError(Error)
387 | case responseError(id: String, message: String?)
388 | case responseTypeMismatch(type: Decodable.Type)
| `- warning: associated value 'responseTypeMismatch(type:)' of 'Sendable'-conforming enum 'RPCError' contains non-Sendable type 'any Decodable.Type'
389 | }
390 |
BUILD FAILURE 6.2 android