The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Agents.swift, reference main (90aa23), with Swift 6.3 for Wasm on 17 Apr 2026 05:28:43 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/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.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:         wasm
Swift version:             6.3
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/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/gohanlon/swift-memberwise-init-macro.git
Fetching https://github.com/daangn/KarrotCodableKit.git
[1/1649] Fetching swift-memberwise-init-macro
[892/3111] Fetching swift-memberwise-init-macro, karrotcodablekit
[2586/26680] Fetching swift-memberwise-init-macro, karrotcodablekit, swift-collections
Fetched https://github.com/daangn/KarrotCodableKit.git from cache (0.64s)
[3299/25218] Fetching swift-memberwise-init-macro, swift-collections
Fetched https://github.com/gohanlon/swift-memberwise-init-macro.git from cache (0.65s)
[1886/23569] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (3.01s)
Computing version for https://github.com/gohanlon/swift-memberwise-init-macro.git
Computed https://github.com/gohanlon/swift-memberwise-init-macro.git at 0.6.0 (8.39s)
Fetching https://github.com/swiftlang/swift-syntax
[1/74983] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (9.16s)
Computing version for https://github.com/daangn/KarrotCodableKit.git
Computed https://github.com/daangn/KarrotCodableKit.git at 1.7.0 (12.66s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (1.17s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 601.0.1 (0.80s)
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 601.0.1
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.6.0
Creating working copy for https://github.com/daangn/KarrotCodableKit.git
Working copy of https://github.com/daangn/KarrotCodableKit.git resolved at 1.7.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.4.1
Building for debugging...
[0/47] Compiling _SwiftSyntaxCShims dummy.c
[1/47] Write sources
[14/47] Write swift-version-24593BA9C3E375BF.txt
[14/47] Write sources
[27/58] Emitting module SwiftSyntax600
[28/75] Emitting module InternalCollectionsUtilities
[29/77] Emitting module ISO8601JSON
[30/77] Emitting module SwiftSyntax509
[31/77] Compiling SwiftSyntax509 Empty.swift
[32/78] Emitting module SwiftSyntax510
[33/78] Compiling SwiftSyntax510 Empty.swift
[36/79] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[37/79] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[38/79] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[39/79] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[39/79] Wrapping AST for SwiftSyntax509 for debugging
[40/79] Wrapping AST for SwiftSyntax510 for debugging
[42/79] Emitting module SwiftSyntax601
[43/79] Compiling SwiftSyntax601 Empty.swift
[44/79] Compiling InternalCollectionsUtilities _SortedCollection.swift
[45/79] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[47/80] Compiling InternalCollectionsUtilities Integer rank.swift
[48/80] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[49/80] Compiling InternalCollectionsUtilities UInt+reversed.swift
[50/80] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[51/80] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[52/80] Compiling SwiftSyntax600 Empty.swift
[53/80] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[54/80] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[55/80] Compiling InternalCollectionsUtilities Span+Extras.swift
[56/81] Compiling InternalCollectionsUtilities String+Padding.swift
[57/81] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[58/81] Compiling InternalCollectionsUtilities Debugging.swift
[59/81] Compiling InternalCollectionsUtilities Descriptions.swift
[60/81] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[61/82] Wrapping AST for SwiftSyntax601 for debugging
[63/82] Wrapping AST for SwiftSyntax600 for debugging
[65/201] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[66/201] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[67/201] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[68/201] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[69/201] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[70/201] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[71/201] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[72/208] Compiling OrderedCollections OrderedDictionary.swift
[73/208] Compiling OrderedCollections OrderedSet+Codable.swift
[74/208] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[75/208] Compiling OrderedCollections OrderedSet+Descriptions.swift
[76/208] Compiling OrderedCollections OrderedSet+Diffing.swift
[77/208] Compiling OrderedCollections OrderedSet+Equatable.swift
[78/208] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[79/208] Compiling OrderedCollections OrderedSet+Hashable.swift
[80/208] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[81/208] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[82/208] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[83/208] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[84/208] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[85/208] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[86/208] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[87/208] Compiling OrderedCollections OrderedDictionary+Values.swift
[88/208] Compiling OrderedCollections OrderedDictionary+Codable.swift
[89/208] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[90/208] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[91/208] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[92/208] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[93/208] Compiling OrderedCollections OrderedDictionary+Elements.swift
[94/208] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[95/208] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[96/208] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[97/208] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[98/208] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[99/208] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[100/208] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[101/208] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[102/208] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[103/208] Compiling OrderedCollections OrderedSet+Initializers.swift
[104/208] Compiling OrderedCollections OrderedSet+Insertions.swift
[105/208] Compiling OrderedCollections OrderedSet+Invariants.swift
[106/208] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[107/208] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[108/208] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[109/208] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[110/208] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[120/217] Compiling ISO8601JSON ISO8601JSON.swift
[122/218] Compiling OrderedCollections _HashTable+Bucket.swift
[123/218] Compiling OrderedCollections _HashTable+BucketIterator.swift
[124/218] Compiling OrderedCollections _HashTable+Constants.swift
[125/218] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[126/218] Compiling OrderedCollections _HashTable+Testing.swift
[127/218] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[128/218] Compiling OrderedCollections _HashTable.swift
[129/218] Compiling OrderedCollections _Hashtable+Header.swift
[130/218] Compiling OrderedCollections OrderedSet+Sendable.swift
[131/218] Compiling OrderedCollections OrderedSet+SubSequence.swift
[132/218] Compiling OrderedCollections OrderedSet+Testing.swift
[133/218] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[134/218] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[135/218] Compiling OrderedCollections OrderedSet.swift
[136/218] Compiling OrderedCollections _UnsafeBitset.swift
[137/218] Emitting module OrderedCollections
[146/219] Compiling SwiftSyntax TokenSequence.swift
[147/219] Compiling SwiftSyntax TokenSyntax.swift
[157/219] Emitting module SwiftSyntax
[194/219] Compiling SwiftSyntax SyntaxNodesAB.swift
[195/219] Compiling SwiftSyntax SyntaxNodesC.swift
[196/219] Compiling SwiftSyntax SyntaxNodesD.swift
[197/219] Compiling SwiftSyntax SyntaxNodesEF.swift
[198/219] Compiling SwiftSyntax SyntaxNodesGHI.swift
[199/219] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[200/219] Compiling SwiftSyntax SyntaxNodesOP.swift
[201/219] Compiling SwiftSyntax SyntaxNodesQRS.swift
[202/219] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[203/238] Wrapping AST for SwiftSyntax for debugging
[205/278] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[206/278] Compiling SwiftDiagnostics FixIt.swift
[207/279] Compiling SwiftDiagnostics Note.swift
[208/279] Compiling SwiftBasicFormat Syntax+Extensions.swift
[209/279] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[210/279] Compiling SwiftParser Expressions.swift
[211/279] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[212/279] Compiling SwiftBasicFormat InferIndentation.swift
[213/279] Compiling SwiftParser IncrementalParseTransition.swift
[214/279] Compiling SwiftParser IsValidIdentifier.swift
[215/279] Emitting module SwiftDiagnostics
[216/279] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[217/279] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[218/279] Compiling SwiftBasicFormat Indenter.swift
[219/279] Compiling SwiftDiagnostics Message.swift
[220/279] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[221/280] Compiling SwiftParser SwiftParserCompatibility.swift
[222/280] Compiling SwiftParser SwiftVersion.swift
[223/280] Compiling SwiftParser SyntaxUtils.swift
[224/280] Compiling SwiftParser TokenConsumer.swift
[225/280] Compiling SwiftParser TokenPrecedence.swift
[226/285] Wrapping AST for SwiftDiagnostics for debugging
[228/285] Emitting module SwiftBasicFormat
[229/285] Compiling SwiftBasicFormat BasicFormat.swift
[230/286] Wrapping AST for SwiftBasicFormat for debugging
[232/286] Emitting module SwiftParser
[233/286] Compiling SwiftParser Modifiers.swift
[234/286] Compiling SwiftParser Names.swift
[235/286] Compiling SwiftParser Nominals.swift
[236/286] Compiling SwiftParser Parameters.swift
[237/286] Compiling SwiftParser ParseSourceFile.swift
[238/286] Compiling SwiftParser Parser.swift
[239/286] Compiling SwiftParser Patterns.swift
[240/286] Compiling SwiftParser Recovery.swift
[241/286] Compiling SwiftParser Specifiers.swift
[242/286] Compiling SwiftParser Statements.swift
[243/286] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[244/286] Compiling SwiftParser StringLiterals.swift
[245/286] Compiling SwiftParser TokenSpec.swift
[246/286] Compiling SwiftParser TokenSpecSet.swift
[247/286] Compiling SwiftParser TopLevel.swift
[248/286] Compiling SwiftParser TriviaParser.swift
[249/286] Compiling SwiftParser Types.swift
[250/286] Compiling SwiftParser Attributes.swift
[251/286] Compiling SwiftParser Availability.swift
[252/286] Compiling SwiftParser CharacterInfo.swift
[253/286] Compiling SwiftParser CollectionNodes+Parsable.swift
[254/286] Compiling SwiftParser Declarations.swift
[255/286] Compiling SwiftParser Directives.swift
[256/286] Compiling SwiftParser LexemeSequence.swift
[257/286] Compiling SwiftParser Lexer.swift
[258/286] Compiling SwiftParser RegexLiteralLexer.swift
[259/286] Compiling SwiftParser UnicodeScalarExtensions.swift
[260/286] Compiling SwiftParser Lookahead.swift
[261/286] Compiling SwiftParser LoopProgressCondition.swift
[266/286] Compiling SwiftParser Cursor.swift
[267/286] Compiling SwiftParser Lexeme.swift
[268/286] Compiling SwiftParser ExperimentalFeatures.swift
[269/286] Compiling SwiftParser IsLexerClassified.swift
[270/286] Compiling SwiftParser LayoutNodes+Parsable.swift
[271/286] Compiling SwiftParser Parser+TokenSpecSet.swift
[272/286] Compiling SwiftParser TokenSpecStaticMembers.swift
[273/287] Wrapping AST for SwiftParser for debugging
[275/310] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[276/311] Compiling SwiftOperators PrecedenceGroup.swift
[277/311] Compiling SwiftOperators PrecedenceGraph.swift
[278/312] Compiling SwiftOperators OperatorError.swift
[279/312] Compiling SwiftOperators OperatorTable+Defaults.swift
[280/312] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[281/312] Compiling SwiftOperators OperatorTable.swift
[282/312] Compiling SwiftOperators SyntaxSynthesis.swift
[283/312] Compiling SwiftOperators Operator.swift
[284/312] Compiling SwiftOperators OperatorError+Diagnostics.swift
[285/312] Compiling SwiftOperators OperatorTable+Semantics.swift
[286/312] Emitting module SwiftOperators
[287/312] Compiling SwiftOperators OperatorTable+Folding.swift
[290/313] Wrapping AST for SwiftOperators for debugging
[292/313] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[295/313] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[296/313] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[297/313] Compiling SwiftParserDiagnostics MissingNodesError.swift
[298/313] Compiling SwiftParserDiagnostics MissingTokenError.swift
[299/313] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[300/313] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[301/313] Emitting module SwiftParserDiagnostics
[302/314] Wrapping AST for SwiftParserDiagnostics for debugging
[304/329] Compiling SwiftSyntaxBuilder Indenter.swift
[305/329] Compiling SwiftSyntaxBuilder ListBuilder.swift
[306/330] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[307/330] Emitting module SwiftSyntaxBuilder
[308/330] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[309/330] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[310/330] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[311/330] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[312/330] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[313/330] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[314/330] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[315/330] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[316/330] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[317/330] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[318/330] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[319/330] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[320/331] Wrapping AST for SwiftSyntaxBuilder for debugging
[322/348] Compiling SwiftSyntaxMacros Macro.swift
[323/348] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[324/350] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[325/350] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[326/350] Compiling SwiftSyntaxMacros MemberMacro.swift
[327/350] Compiling SwiftSyntaxMacros PeerMacro.swift
[328/350] Emitting module SwiftSyntaxMacros
[329/350] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[330/350] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[331/350] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[332/350] Compiling SwiftSyntaxMacros Macro+Format.swift
[333/350] Compiling SwiftSyntaxMacros AccessorMacro.swift
[334/350] Compiling SwiftSyntaxMacros AttachedMacro.swift
[335/350] Compiling SwiftSyntaxMacros BodyMacro.swift
[336/350] Compiling SwiftSyntaxMacros PreambleMacro.swift
[337/350] Compiling SwiftSyntaxMacros Syntax+LexicalContext.swift
[338/350] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[339/350] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[340/350] Compiling SwiftSyntaxMacros MacroExpansionDiagnosticMessages.swift
[341/351] Wrapping AST for SwiftSyntaxMacros for debugging
[343/360] Compiling SwiftSyntaxMacroExpansion MacroSpec.swift
[344/361] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[345/361] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[346/361] Emitting module SwiftSyntaxMacroExpansion
[347/361] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[348/361] Compiling SwiftSyntaxMacroExpansion MacroArgument.swift
[349/361] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[350/361] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[351/361] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[352/361] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[353/362] Wrapping AST for SwiftSyntaxMacroExpansion for debugging
[355/374] Compiling SwiftCompilerPluginMessageHandling CodingUtilities.swift
[356/374] Compiling SwiftCompilerPluginMessageHandling JSON.swift
[357/375] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[358/375] Compiling SwiftCompilerPluginMessageHandling LRUCache.swift
[359/375] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[360/375] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[361/375] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[362/375] Emitting module SwiftCompilerPluginMessageHandling
[363/375] Compiling SwiftCompilerPluginMessageHandling StandardIOMessageConnection.swift
[364/375] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[365/375] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[366/375] Compiling SwiftCompilerPluginMessageHandling JSONDecoding.swift
[367/375] Compiling SwiftCompilerPluginMessageHandling JSONEncoding.swift
[368/378] Wrapping AST for SwiftCompilerPluginMessageHandling for debugging
[370/378] Emitting module SwiftCompilerPlugin
[371/378] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[372/379] Wrapping AST for SwiftCompilerPlugin for debugging
[374/420] Emitting module KarrotCodableKitMacros
[375/423] Compiling KarrotCodableKitMacros PropertyDiagnosticHelper.swift
[376/423] Compiling KarrotCodableKitMacros SyntaxHelper.swift
[377/423] Compiling KarrotCodableKitMacros UnnestedPolymorphicValidation.swift
[378/423] Compiling KarrotCodableKitMacros CodableKeyMacro.swift
[379/423] Compiling KarrotCodableKitMacros CustomCodableMacro.swift
[380/423] Compiling KarrotCodableKitMacros CustomDecodableMacro.swift
[381/423] Compiling KarrotCodableKitMacros CustomEncodableMacro.swift
[382/423] Compiling KarrotCodableKitMacros PolymorphicCodableStrategyMacro.swift
[383/423] Compiling KarrotCodableKitMacros PolymorphicDecodableMacro.swift
[384/423] Compiling KarrotCodableKitMacros PolymorphicEncodableMacro.swift
[385/423] Compiling KarrotCodableKitMacros PolymorphicEnumCodableMacro.swift
[386/423] Compiling KarrotCodableKitMacros BaseUnnestedPolymorphicMacro.swift
[387/423] Compiling KarrotCodableKitMacros UnnestedPolymorphicCodableMacro.swift
[388/423] Compiling KarrotCodableKitMacros UnnestedPolymorphicDecodableMacro.swift
[389/423] Compiling MemberwiseInitMacros SyntaxHelpers.swift
[390/424] Compiling KarrotCodableKitMacros UnnestedPolymorphicMethodGenerator.swift
[391/424] Compiling KarrotCodableKitMacros UnnestedPolymorphicStructGenerator.swift
[392/424] Compiling KarrotCodableKitMacros PolymorphicMacroArgumentValidator.swift
[393/424] Compiling KarrotCodableKitMacros PropertyAnalyzer.swift
[394/424] Compiling KarrotCodableKitMacros CodingKeysSyntaxFactory.swift
[395/424] Compiling KarrotCodableKitMacros PolymorphicEnumCodableFactory.swift
[396/424] Compiling KarrotCodableKitMacros PolymorphicExtensionFactory.swift
[397/424] Compiling KarrotCodableKitMacros UnnestedPolymorphicCodeGenerator.swift
[398/424] Compiling MemberwiseInitMacros UncheckedMemberwiseInitMacro.swift
[399/424] Emitting module MemberwiseInitMacros
[410/424] Compiling MemberwiseInitMacros String.swift
[411/425] Compiling KarrotCodableKitMacros String+SnakeCase.swift
[412/425] Compiling KarrotCodableKitMacros String+Trimming.swift
[413/425] Compiling KarrotCodableKitMacros KarrotCodableKitPlugin.swift
[414/425] Compiling KarrotCodableKitMacros PolymorphicCodableMacro.swift
[415/425] Compiling KarrotCodableKitMacros PolymorphicEnumDecodableMacro.swift
[416/425] Compiling KarrotCodableKitMacros PolymorphicEnumEncodableMacro.swift
[417/425] Compiling KarrotCodableKitMacros AccessLevelModifier.swift
[418/425] Compiling KarrotCodableKitMacros Diagnostics.swift
[420/426] Wrapping AST for MemberwiseInitMacros for debugging
[421/426] Write Objects.LinkFileList
[422/426] Wrapping AST for KarrotCodableKitMacros for debugging
[423/426] Write Objects.LinkFileList
[424/426] Linking MemberwiseInitMacros-tool
[425/426] Linking KarrotCodableKitMacros-tool
[427/429] Emitting module MemberwiseInit
[428/429] Compiling MemberwiseInit MemberwiseInit.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[430/439] Emitting module KarrotCodableKit
[431/500] Compiling KarrotCodableKit RFC3339NanoStrategy.swift
[432/500] Compiling KarrotCodableKit RFC3339Strategy.swift
[433/500] Compiling KarrotCodableKit TimestampStrategy.swift
[434/500] Compiling KarrotCodableKit DefaultCodable.swift
[435/500] Compiling KarrotCodableKit DefaultEmptyArray.swift
[436/500] Compiling KarrotCodableKit DefaultEmptyDictionary.swift
[437/500] Compiling KarrotCodableKit DefaultEmptyString.swift
[438/500] Compiling KarrotCodableKit DefaultFalse.swift
[439/500] Compiling KarrotCodableKit DefaultTrue.swift
[440/500] Compiling KarrotCodableKit UnnestedPolymorphicCodable.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[441/500] Compiling KarrotCodableKit UnnestedPolymorphicDecodable.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[442/500] Compiling KarrotCodableKit LossyOptionalPolymorphicValue.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[443/500] Compiling KarrotCodableKit OptionalPolymorphicArrayValue.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[444/500] Compiling KarrotCodableKit OptionalPolymorphicLossyArrayValue.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[445/500] Compiling KarrotCodableKit OptionalPolymorphicValue.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[446/500] Compiling KarrotCodableKit PolymorphicArrayValue.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[447/500] Compiling KarrotCodableKit PolymorphicCodableStrategy.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[448/500] Compiling KarrotCodableKit Encodable+ToDictionary.swift
[449/500] Compiling KarrotCodableKit DefaultEmptyPolymorphicArrayValue.swift
[450/500] Compiling KarrotCodableKit PolymorphicCodableError.swift
[451/500] Compiling KarrotCodableKit Decoder+Polymorphic.swift
[452/500] Compiling KarrotCodableKit Encoder+Polymorphic.swift
[453/500] Compiling KarrotCodableKit KeyedDecodingContainer+DefaultEmptyPolymorphicArrayValue.swift
[454/500] Compiling KarrotCodableKit KeyedDecodingContainer+LossyOptionalPolymorphicValue.swift
[455/500] Compiling KarrotCodableKit KeyedDecodingContainer+OptionalPolymorphicArrayValue.swift
[456/500] Compiling KarrotCodableKit KeyedDecodingContainer+OptionalPolymorphicLossyArrayValue.swift
[457/500] Compiling KarrotCodableKit LossyArray.swift
[458/500] Compiling KarrotCodableKit LossyDictionary.swift
[459/500] Compiling KarrotCodableKit LossyOptional.swift
[460/500] Compiling KarrotCodableKit ResilientProjectedValue.swift
[461/500] Compiling KarrotCodableKit CodingKeyStyle.swift
[462/500] Compiling KarrotCodableKit CodableKey.swift
[463/500] Compiling KarrotCodableKit CustomCodable.swift
[464/500] Compiling KarrotCodableKit CustomDecodable.swift
[465/500] Compiling KarrotCodableKit CustomEncodable.swift
[466/500] Compiling KarrotCodableKit AnyCodable.swift
[467/500] Compiling KarrotCodableKit AnyDecodable.swift
[468/500] Compiling KarrotCodableKit AnyEncodable.swift
[469/500] Compiling KarrotCodableKit Base64Strategy.swift
[470/500] Compiling KarrotCodableKit DataValue.swift
[471/500] Compiling KarrotCodableKit DateValue.swift
[472/500] Compiling KarrotCodableKit OptionalDateValue.swift
[473/500] Compiling KarrotCodableKit ISO8601Strategy.swift
[474/500] Compiling KarrotCodableKit ISO8601WithFractionalSecondsStrategy.swift
[475/500] Compiling KarrotCodableKit KeyedDecodingContainer+OptionalPolymorphicValue.swift
[476/500] Compiling KarrotCodableKit KeyedDecodingContainer+PolymorphicLossyArrayValue.swift
[477/500] Compiling KarrotCodableKit PolymorphicCodable.swift
[478/500] Compiling KarrotCodableKit PolymorphicCodableStrategyProviding.swift
[479/500] Compiling KarrotCodableKit PolymorphicDecodable.swift
[480/500] Compiling KarrotCodableKit PolymorphicEncodable.swift
[481/500] Compiling KarrotCodableKit PolymorphicEnumCodable.swift
[482/500] Compiling KarrotCodableKit PolymorphicEnumDecodable.swift
[483/500] Compiling KarrotCodableKit PolymorphicEnumEncodable.swift
[484/500] Compiling KarrotCodableKit DefaultZeroDouble.swift
[485/500] Compiling KarrotCodableKit DefaultZeroFloat.swift
[486/500] Compiling KarrotCodableKit DefaultZeroInt.swift
[487/500] Compiling KarrotCodableKit KeyedDecodingContainer+DefaultCodable.swift
[488/500] Compiling KarrotCodableKit Result+Extension.swift
[489/500] Compiling KarrotCodableKit LosslessArray.swift
[490/500] Compiling KarrotCodableKit LosslessBoolValue.swift
[491/500] Compiling KarrotCodableKit LosslessValue.swift
[492/500] Compiling KarrotCodableKit OptionalLosslessValue.swift
[493/500] Compiling KarrotCodableKit PolymorphicIdentifiable.swift
[494/500] Compiling KarrotCodableKit PolymorphicLossyArrayValue.swift
[495/500] Compiling KarrotCodableKit PolymorphicProjectedValue.swift
[496/500] Compiling KarrotCodableKit PolymorphicValue.swift
[497/500] Compiling KarrotCodableKit ArrayDecodingError.swift
[498/500] Compiling KarrotCodableKit DictionaryDecodingError.swift
[499/500] Compiling KarrotCodableKit ErrorReporting.swift
[500/500] Compiling KarrotCodableKit ResilientDecodingOutcome.swift
[502/505] Emitting module AI
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[503/505] Compiling AI ChatMessage.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[504/505] Compiling AI ChatMessageBuilder.swift
[505/505] Compiling AI ChatMessageChunk.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[507/510] 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:10:35: error: cannot find 'OperationQueue' in scope
  8 |     private(set) var currentURL: URL
  9 |     // state
 10 |     private let urlSessionQueue = OperationQueue()
    |                                   `- error: cannot find 'OperationQueue' in scope
 11 |     private(set) var urlSession: URLSession!
 12 |     private(set) var webSocketTask: URLSessionWebSocketTask!
/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)
[508/510] 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:10:35: error: cannot find 'OperationQueue' in scope
  8 |     private(set) var currentURL: URL
  9 |     // state
 10 |     private let urlSessionQueue = OperationQueue()
    |                                   `- error: cannot find 'OperationQueue' in scope
 11 |     private(set) var urlSession: URLSession!
 12 |     private(set) var webSocketTask: URLSessionWebSocketTask!
/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
[509/510] 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
[510/510] 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.3 wasm