The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build Agents.swift, reference 0.10.3 (90aa23), with Swift 6.2 for Linux on 10 Oct 2025 08:39:31 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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

Build 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:         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-4609320-3":/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/1337] Fetching karrotcodablekit
[844/2062] Fetching karrotcodablekit, swift-memberwise-init-macro
Fetched https://github.com/daangn/KarrotCodableKit.git from cache (0.35s)
[1/18153] Fetching swift-collections
Fetched https://github.com/gohanlon/swift-memberwise-init-macro.git from cache (1.30s)
Fetched https://github.com/apple/swift-collections.git from cache (1.33s)
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 (3.41s)
Fetching https://github.com/swiftlang/swift-syntax
[1/72447] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (7.45s)
Computing version for https://github.com/daangn/KarrotCodableKit.git
Computed https://github.com/daangn/KarrotCodableKit.git at 1.6.0 (7.78s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (0.71s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (0.51s)
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/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/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
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.52s)
Building for debugging...
[0/16] Write sources
[9/16] Write swift-version-24593BA9C3E375BF.txt
[11/75] Emitting module InternalCollectionsUtilities
[12/77] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[13/77] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[14/77] Compiling KarrotCodableKitMacros PropertyDiagnosticHelper.swift
[15/77] Compiling KarrotCodableKitMacros SyntaxHelper.swift
[16/77] Compiling KarrotCodableKitMacros UnnestedPolymorphicValidation.swift
[17/80] Compiling KarrotCodableKitMacros UnnestedPolymorphicMethodGenerator.swift
[18/80] Compiling KarrotCodableKitMacros UnnestedPolymorphicStructGenerator.swift
[19/80] Compiling KarrotCodableKitMacros PolymorphicMacroArgumentValidator.swift
[20/80] Compiling KarrotCodableKitMacros PropertyAnalyzer.swift
[21/80] Compiling KarrotCodableKitMacros CodableKeyMacro.swift
[22/80] Compiling KarrotCodableKitMacros CustomCodableMacro.swift
[23/80] Compiling KarrotCodableKitMacros CustomDecodableMacro.swift
[24/80] Compiling KarrotCodableKitMacros CustomEncodableMacro.swift
[25/80] Emitting module KarrotCodableKitMacros
[26/80] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[27/80] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[28/80] Compiling KarrotCodableKitMacros KarrotCodableKitPlugin.swift
[29/80] Compiling InternalCollectionsUtilities _SortedCollection.swift
[31/80] Compiling KarrotCodableKitMacros String+SnakeCase.swift
[32/80] Compiling InternalCollectionsUtilities Debugging.swift
[33/80] Compiling InternalCollectionsUtilities Descriptions.swift
[34/80] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[35/80] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[37/80] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[38/80] Compiling KarrotCodableKitMacros String+Trimming.swift
[46/81] Emitting module MemberwiseInitMacros
[54/82] Compiling MemberwiseInitMacros SyntaxHelpers.swift
[56/82] Compiling KarrotCodableKitMacros BaseUnnestedPolymorphicMacro.swift
[57/82] Compiling KarrotCodableKitMacros UnnestedPolymorphicCodableMacro.swift
[58/82] Compiling KarrotCodableKitMacros UnnestedPolymorphicDecodableMacro.swift
[59/108] Compiling MemberwiseInitMacros UncheckedMemberwiseInitMacro.swift
[60/137] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[61/137] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[62/137] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[63/137] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[64/137] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[65/137] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[66/137] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[67/144] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[68/144] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[69/144] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[70/144] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[71/144] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[72/144] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[73/144] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[74/144] Compiling OrderedCollections OrderedSet+Initializers.swift
[75/144] Compiling OrderedCollections OrderedSet+Insertions.swift
[76/144] Compiling OrderedCollections OrderedSet+Invariants.swift
[77/144] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[78/144] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[79/144] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[80/144] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[81/144] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[82/144] Compiling OrderedCollections OrderedDictionary.swift
[83/144] Compiling OrderedCollections OrderedSet+Codable.swift
[84/144] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[85/144] Compiling OrderedCollections OrderedSet+Descriptions.swift
[86/144] Compiling OrderedCollections OrderedSet+Diffing.swift
[87/144] Compiling OrderedCollections OrderedSet+Equatable.swift
[88/144] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[89/144] Compiling OrderedCollections OrderedSet+Hashable.swift
[90/144] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[91/144] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[92/144] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[93/144] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[94/144] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[95/144] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[96/144] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[97/144] Compiling OrderedCollections OrderedDictionary+Values.swift
[98/144] Compiling OrderedCollections OrderedDictionary+Codable.swift
[99/144] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[100/144] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[101/144] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[102/144] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[103/144] Compiling OrderedCollections OrderedDictionary+Elements.swift
[104/144] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[105/144] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[106/144] Compiling OrderedCollections _HashTable+Bucket.swift
[107/144] Compiling OrderedCollections _HashTable+BucketIterator.swift
[108/144] Compiling OrderedCollections _HashTable+Constants.swift
[109/144] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[110/144] Compiling OrderedCollections _HashTable+Testing.swift
[111/144] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[112/144] Compiling OrderedCollections _HashTable.swift
[113/144] Compiling OrderedCollections _Hashtable+Header.swift
[120/144] Compiling MemberwiseInitMacros String.swift
[121/145] Emitting module ISO8601JSON
[122/145] Compiling ISO8601JSON ISO8601JSON.swift
[132/147] Compiling OrderedCollections OrderedSet+Sendable.swift
[133/147] Compiling OrderedCollections OrderedSet+SubSequence.swift
[134/147] Compiling OrderedCollections OrderedSet+Testing.swift
[135/147] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[136/147] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[137/147] Compiling OrderedCollections OrderedSet.swift
[138/147] Compiling OrderedCollections _UnsafeBitset.swift
[140/147] Wrapping AST for MemberwiseInitMacros for debugging
[141/147] Write Objects.LinkFileList
[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] Compiling MemberwiseInit MemberwiseInit.swift
[150/211] Emitting module MemberwiseInit
[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/220] Compiling KarrotCodableKit Encodable+ToDictionary.swift
[161/220] Compiling KarrotCodableKit DefaultEmptyPolymorphicArrayValue.swift
[162/220] Compiling KarrotCodableKit PolymorphicCodableError.swift
[163/220] Compiling KarrotCodableKit Decoder+Polymorphic.swift
[164/220] Compiling KarrotCodableKit Encoder+Polymorphic.swift
[165/220] Compiling KarrotCodableKit KeyedDecodingContainer+DefaultEmptyPolymorphicArrayValue.swift
[166/220] Compiling KarrotCodableKit KeyedDecodingContainer+LossyOptionalPolymorphicValue.swift
[167/220] Compiling KarrotCodableKit KeyedDecodingContainer+OptionalPolymorphicArrayValue.swift
[168/220] Compiling KarrotCodableKit PolymorphicEnumEncodable.swift
[169/220] Compiling KarrotCodableKit UnnestedPolymorphicCodable.swift
[170/220] Compiling KarrotCodableKit UnnestedPolymorphicDecodable.swift
[171/220] Compiling KarrotCodableKit LossyOptionalPolymorphicValue.swift
[172/220] Compiling KarrotCodableKit OptionalPolymorphicArrayValue.swift
[173/220] Compiling KarrotCodableKit OptionalPolymorphicValue.swift
[174/220] Compiling KarrotCodableKit PolymorphicArrayValue.swift
[175/220] Compiling KarrotCodableKit PolymorphicCodableStrategy.swift
[176/220] Compiling KarrotCodableKit LossyArray.swift
[177/220] Compiling KarrotCodableKit LossyDictionary.swift
[178/220] Compiling KarrotCodableKit LossyOptional.swift
[179/220] Compiling KarrotCodableKit ResilientProjectedValue.swift
[180/220] Compiling KarrotCodableKit CodingKeyStyle.swift
[181/220] Compiling KarrotCodableKit CodableKey.swift
[182/220] Compiling KarrotCodableKit CustomCodable.swift
[183/220] Compiling KarrotCodableKit CustomDecodable.swift
[184/220] Compiling KarrotCodableKit CustomEncodable.swift
[185/220] Compiling KarrotCodableKit DefaultZeroDouble.swift
[186/220] Compiling KarrotCodableKit DefaultZeroFloat.swift
[187/220] Compiling KarrotCodableKit DefaultZeroInt.swift
[188/220] Compiling KarrotCodableKit KeyedDecodingContainer+DefaultCodable.swift
[189/220] Compiling KarrotCodableKit Result+Extension.swift
[190/220] Compiling KarrotCodableKit LosslessArray.swift
[191/220] Compiling KarrotCodableKit LosslessBoolValue.swift
[192/220] Compiling KarrotCodableKit LosslessValue.swift
[193/220] Compiling KarrotCodableKit OptionalLosslessValue.swift
[194/220] Compiling KarrotCodableKit RFC3339NanoStrategy.swift
[195/220] Compiling KarrotCodableKit RFC3339Strategy.swift
[196/220] Compiling KarrotCodableKit TimestampStrategy.swift
[197/220] Compiling KarrotCodableKit DefaultCodable.swift
[198/220] Compiling KarrotCodableKit DefaultEmptyArray.swift
[199/220] Compiling KarrotCodableKit DefaultEmptyDictionary.swift
[200/220] Compiling KarrotCodableKit DefaultEmptyString.swift
[201/220] Compiling KarrotCodableKit DefaultFalse.swift
[202/220] Compiling KarrotCodableKit DefaultTrue.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] Compiling AI ChatMessageBuilder.swift
[223/225] Emitting module AI
[224/225] Compiling AI ChatMessageChunk.swift
[225/225] Compiling AI ChatMessage.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 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 |
[230/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
BUILD FAILURE 6.2 linux