Build Information
Failed to build Agents.swift, reference main (90aa23), with Swift 6.2 for Linux on 10 Oct 2025 08:39:38 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/victorhenrion/Agents.swift.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/victorhenrion/Agents.swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
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 main
========================================
Build
========================================
Selected platform: linux
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-2":/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:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b3eaa5734a03a9b8084848018342ef6c4e4ec1a618756d8de460b693a5f488ea
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-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
[30/2062] Fetching swift-memberwise-init-macro, karrotcodablekit
[2063/20215] Fetching swift-memberwise-init-macro, karrotcodablekit, swift-collections
Fetched https://github.com/gohanlon/swift-memberwise-init-macro.git from cache (0.51s)
Fetched https://github.com/daangn/KarrotCodableKit.git from cache (0.52s)
[908/18153] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (2.10s)
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 (5.03s)
Fetching https://github.com/swiftlang/swift-syntax
[1/72447] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (6.21s)
Computing version for https://github.com/daangn/KarrotCodableKit.git
Computed https://github.com/daangn/KarrotCodableKit.git at 1.6.0 (6.66s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (1.24s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (0.94s)
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/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
Creating working copy for https://github.com/daangn/KarrotCodableKit.git
Working copy of https://github.com/daangn/KarrotCodableKit.git resolved at 1.6.0
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.55s)
Building for debugging...
[0/16] Write sources
[9/16] Write swift-version-24593BA9C3E375BF.txt
[11/75] Emitting module KarrotCodableKitMacros
[12/78] Compiling KarrotCodableKitMacros PropertyDiagnosticHelper.swift
[13/78] Compiling KarrotCodableKitMacros SyntaxHelper.swift
[14/78] Compiling KarrotCodableKitMacros UnnestedPolymorphicValidation.swift
[15/78] Compiling KarrotCodableKitMacros CustomDecodableMacro.swift
[16/78] Compiling KarrotCodableKitMacros CustomEncodableMacro.swift
[17/79] Compiling KarrotCodableKitMacros PolymorphicCodableMacro.swift
[18/79] Compiling KarrotCodableKitMacros PolymorphicCodableStrategyMacro.swift
[19/79] Compiling KarrotCodableKitMacros PolymorphicEnumCodableMacro.swift
[20/79] Compiling KarrotCodableKitMacros CodingKeysSyntaxFactory.swift
[21/79] Compiling KarrotCodableKitMacros BaseUnnestedPolymorphicMacro.swift
[22/79] Compiling KarrotCodableKitMacros UnnestedPolymorphicCodableMacro.swift
[23/79] Compiling KarrotCodableKitMacros UnnestedPolymorphicDecodableMacro.swift
[24/81] Compiling KarrotCodableKitMacros String+SnakeCase.swift
[25/81] Compiling KarrotCodableKitMacros String+Trimming.swift
[26/81] Compiling KarrotCodableKitMacros PolymorphicEnumCodableFactory.swift
[27/81] Compiling KarrotCodableKitMacros PolymorphicExtensionFactory.swift
[28/81] Compiling KarrotCodableKitMacros PolymorphicDecodableMacro.swift
[29/81] Compiling KarrotCodableKitMacros PolymorphicEncodableMacro.swift
[30/81] Emitting module MemberwiseInitMacros
[31/81] Compiling KarrotCodableKitMacros CodableKeyMacro.swift
[32/81] Compiling KarrotCodableKitMacros CustomCodableMacro.swift
[34/81] Compiling KarrotCodableKitMacros KarrotCodableKitPlugin.swift
[38/81] Emitting module InternalCollectionsUtilities
[41/81] Compiling MemberwiseInitMacros SyntaxHelpers.swift
[45/81] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[46/81] Compiling KarrotCodableKitMacros UnnestedPolymorphicMethodGenerator.swift
[47/81] Compiling KarrotCodableKitMacros UnnestedPolymorphicStructGenerator.swift
[48/81] Compiling KarrotCodableKitMacros PolymorphicMacroArgumentValidator.swift
[49/81] Compiling KarrotCodableKitMacros PropertyAnalyzer.swift
[50/81] Compiling MemberwiseInitMacros UncheckedMemberwiseInitMacro.swift
[52/81] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[54/137] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[55/137] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[56/137] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[57/137] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[58/137] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[59/137] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[60/137] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[61/137] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[62/137] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[63/137] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[64/137] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[65/137] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[66/137] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[67/137] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[68/144] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[69/144] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[70/144] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[71/144] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[72/144] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[73/144] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[74/144] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[75/144] Compiling OrderedCollections OrderedDictionary+Values.swift
[76/144] Compiling OrderedCollections OrderedDictionary+Codable.swift
[77/144] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[78/144] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[79/144] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[80/144] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[81/144] Compiling OrderedCollections OrderedDictionary+Elements.swift
[82/144] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[83/144] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[84/144] Compiling OrderedCollections OrderedDictionary.swift
[85/144] Compiling OrderedCollections OrderedSet+Codable.swift
[86/144] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[87/144] Compiling OrderedCollections OrderedSet+Descriptions.swift
[88/144] Compiling OrderedCollections OrderedSet+Diffing.swift
[89/144] Compiling OrderedCollections OrderedSet+Equatable.swift
[90/144] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[91/144] Compiling OrderedCollections OrderedSet+Hashable.swift
[92/144] Compiling OrderedCollections OrderedSet+Initializers.swift
[93/144] Compiling OrderedCollections OrderedSet+Insertions.swift
[94/144] Compiling OrderedCollections OrderedSet+Invariants.swift
[95/144] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[96/144] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[97/144] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[98/144] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[99/144] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[100/144] Emitting module ISO8601JSON
[101/144] Compiling ISO8601JSON ISO8601JSON.swift
[103/145] Compiling OrderedCollections _HashTable.swift
[104/145] Compiling OrderedCollections _Hashtable+Header.swift
[105/145] Compiling MemberwiseInitMacros String.swift
[109/146] Compiling OrderedCollections _HashTable+Bucket.swift
[110/146] Compiling OrderedCollections _HashTable+BucketIterator.swift
[111/146] Compiling OrderedCollections _HashTable+Constants.swift
[112/146] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[121/146] Compiling OrderedCollections _HashTable+Testing.swift
[122/146] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[133/147] Wrapping AST for MemberwiseInitMacros for debugging
[134/147] Write Objects.LinkFileList
[136/147] Compiling OrderedCollections OrderedSet+Sendable.swift
[137/147] Compiling OrderedCollections OrderedSet+SubSequence.swift
[138/147] Compiling OrderedCollections OrderedSet+Testing.swift
[139/147] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[140/147] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[141/147] Compiling OrderedCollections OrderedSet.swift
[142/147] Compiling OrderedCollections _UnsafeBitset.swift
[142/147] Wrapping AST for KarrotCodableKitMacros for debugging
[143/147] Write Objects.LinkFileList
[145/147] Emitting module OrderedCollections
[146/148] Linking MemberwiseInitMacros-tool
[147/148] Linking KarrotCodableKitMacros-tool
[149/211] Emitting module MemberwiseInit
[150/211] Compiling MemberwiseInit MemberwiseInit.swift
[152/212] Compiling KarrotCodableKit RFC3339NanoStrategy.swift
[153/212] Compiling KarrotCodableKit RFC3339Strategy.swift
[154/212] Compiling KarrotCodableKit TimestampStrategy.swift
[155/212] Compiling KarrotCodableKit DefaultCodable.swift
[156/212] Compiling KarrotCodableKit DefaultEmptyArray.swift
[157/212] Compiling KarrotCodableKit DefaultEmptyDictionary.swift
[158/212] Compiling KarrotCodableKit DefaultEmptyString.swift
[159/212] Compiling KarrotCodableKit DefaultFalse.swift
[160/212] Compiling KarrotCodableKit DefaultTrue.swift
[161/220] Compiling KarrotCodableKit Encodable+ToDictionary.swift
[162/220] Compiling KarrotCodableKit DefaultEmptyPolymorphicArrayValue.swift
[163/220] Compiling KarrotCodableKit PolymorphicCodableError.swift
[164/220] Compiling KarrotCodableKit Decoder+Polymorphic.swift
[165/220] Compiling KarrotCodableKit Encoder+Polymorphic.swift
[166/220] Compiling KarrotCodableKit KeyedDecodingContainer+DefaultEmptyPolymorphicArrayValue.swift
[167/220] Compiling KarrotCodableKit KeyedDecodingContainer+LossyOptionalPolymorphicValue.swift
[168/220] Compiling KarrotCodableKit KeyedDecodingContainer+OptionalPolymorphicArrayValue.swift
[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 KeyedDecodingContainer+OptionalPolymorphicValue.swift
[178/220] Compiling KarrotCodableKit KeyedDecodingContainer+PolymorphicLossyArrayValue.swift
[179/220] Compiling KarrotCodableKit PolymorphicCodable.swift
[180/220] Compiling KarrotCodableKit PolymorphicCodableStrategyProviding.swift
[181/220] Compiling KarrotCodableKit PolymorphicDecodable.swift
[182/220] Compiling KarrotCodableKit PolymorphicEncodable.swift
[183/220] Compiling KarrotCodableKit PolymorphicEnumCodable.swift
[184/220] Compiling KarrotCodableKit PolymorphicEnumDecodable.swift
[185/220] Compiling KarrotCodableKit LossyArray.swift
[186/220] Compiling KarrotCodableKit LossyDictionary.swift
[187/220] Compiling KarrotCodableKit LossyOptional.swift
[188/220] Compiling KarrotCodableKit ResilientProjectedValue.swift
[189/220] Compiling KarrotCodableKit CodingKeyStyle.swift
[190/220] Compiling KarrotCodableKit CodableKey.swift
[191/220] Compiling KarrotCodableKit CustomCodable.swift
[192/220] Compiling KarrotCodableKit CustomDecodable.swift
[193/220] Compiling KarrotCodableKit CustomEncodable.swift
[194/220] Compiling KarrotCodableKit DefaultZeroDouble.swift
[195/220] Compiling KarrotCodableKit DefaultZeroFloat.swift
[196/220] Compiling KarrotCodableKit DefaultZeroInt.swift
[197/220] Compiling KarrotCodableKit KeyedDecodingContainer+DefaultCodable.swift
[198/220] Compiling KarrotCodableKit Result+Extension.swift
[199/220] Compiling KarrotCodableKit LosslessArray.swift
[200/220] Compiling KarrotCodableKit LosslessBoolValue.swift
[201/220] Compiling KarrotCodableKit LosslessValue.swift
[202/220] Compiling KarrotCodableKit OptionalLosslessValue.swift
[203/220] Compiling KarrotCodableKit PolymorphicIdentifiable.swift
[204/220] Compiling KarrotCodableKit PolymorphicLossyArrayValue.swift
[205/220] Compiling KarrotCodableKit PolymorphicProjectedValue.swift
[206/220] Compiling KarrotCodableKit PolymorphicValue.swift
[207/220] Compiling KarrotCodableKit ArrayDecodingError.swift
[208/220] Compiling KarrotCodableKit DictionaryDecodingError.swift
[209/220] Compiling KarrotCodableKit ErrorReporting.swift
[210/220] Compiling KarrotCodableKit ResilientDecodingOutcome.swift
[211/220] Emitting module KarrotCodableKit
[212/220] Compiling KarrotCodableKit AnyCodable.swift
[213/220] Compiling KarrotCodableKit AnyDecodable.swift
[214/220] Compiling KarrotCodableKit AnyEncodable.swift
[215/220] Compiling KarrotCodableKit Base64Strategy.swift
[216/220] Compiling KarrotCodableKit DataValue.swift
[217/220] Compiling KarrotCodableKit DateValue.swift
[218/220] Compiling KarrotCodableKit OptionalDateValue.swift
[219/220] Compiling KarrotCodableKit ISO8601Strategy.swift
[220/220] Compiling KarrotCodableKit ISO8601WithFractionalSecondsStrategy.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 linux