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, reference main (41decb), with Swift 6.2 (beta) for Linux on 3 Sep 2025 13:48:24 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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.67.1
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 41decb7 refactor: improve type documentation
Cloned https://github.com/victorhenrion/Agents.swift.git
Revision (git rev-parse @):
41decb795cc8bec60f1417efcd62a3b7e0ac1f5e
SUCCESS checkout https://github.com/victorhenrion/Agents.swift.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/victorhenrion/Agents.swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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:c6c8e08ea30bca759adf847aac87887750120fe9b6eaea09f5af37036a41e81a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/daangn/KarrotCodableKit.git
Fetching https://github.com/gohanlon/swift-memberwise-init-macro.git
[1/721] Fetching swift-memberwise-init-macro
[492/2005] Fetching swift-memberwise-init-macro, karrotcodablekit
Fetched https://github.com/gohanlon/swift-memberwise-init-macro.git from cache (0.63s)
Fetched https://github.com/daangn/KarrotCodableKit.git from cache (0.63s)
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.90s)
Fetching https://github.com/swiftlang/swift-syntax
[1/71848] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (5.01s)
Computing version for https://github.com/daangn/KarrotCodableKit.git
Computed https://github.com/daangn/KarrotCodableKit.git at 1.5.1 (5.61s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (1.04s)
Creating working copy for https://github.com/daangn/KarrotCodableKit.git
Working copy of https://github.com/daangn/KarrotCodableKit.git resolved at 1.5.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.5.2
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 600.0.1
Building for debugging...
[0/41] Write sources
[19/41] Compiling _SwiftSyntaxCShims dummy.c
[20/41] Write swift-version-24593BA9C3E375BF.txt
[22/47] Compiling SwiftSyntax510 Empty.swift
[23/47] Emitting module SwiftSyntax510
[25/48] Emitting module SwiftSyntax509
[26/48] Compiling SwiftSyntax509 Empty.swift
[28/49] Emitting module SwiftSyntax600
[29/49] Compiling SwiftSyntax600 Empty.swift
[30/50] Wrapping AST for SwiftSyntax510 for debugging
[31/50] Wrapping AST for SwiftSyntax509 for debugging
[32/50] Wrapping AST for SwiftSyntax600 for debugging
[34/114] Compiling SwiftSyntax AbsolutePosition.swift
[35/114] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[36/114] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[37/114] Compiling SwiftSyntax Assert.swift
[38/114] Compiling SwiftSyntax BumpPtrAllocator.swift
[39/114] Compiling SwiftSyntax CommonAncestor.swift
[40/114] Compiling SwiftSyntax Convenience.swift
[41/114] Compiling SwiftSyntax CustomTraits.swift
[42/114] Compiling SwiftSyntax Identifier.swift
[43/122] Emitting module SwiftSyntax
[44/122] Compiling SwiftSyntax SyntaxKind.swift
[45/122] Compiling SwiftSyntax SyntaxRewriter.swift
[46/122] Compiling SwiftSyntax SyntaxTraits.swift
[47/122] Compiling SwiftSyntax SyntaxVisitor.swift
[48/122] Compiling SwiftSyntax TokenKind.swift
[49/122] Compiling SwiftSyntax Tokens.swift
[50/122] Compiling SwiftSyntax TriviaPieces.swift
[51/122] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[52/122] Compiling SwiftSyntax RawSyntaxNodesC.swift
[53/122] Compiling SwiftSyntax RawSyntaxNodesD.swift
[54/122] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[55/122] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[56/122] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[57/122] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[58/122] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[59/122] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[60/122] Compiling SwiftSyntax RawSyntaxValidation.swift
[61/122] Compiling SwiftSyntax SyntaxNodesAB.swift
[62/122] Compiling SwiftSyntax SyntaxNodeFactory.swift
[63/122] Compiling SwiftSyntax SyntaxNodeStructure.swift
[64/122] Compiling SwiftSyntax SyntaxProtocol.swift
[65/122] Compiling SwiftSyntax SyntaxText.swift
[66/122] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[67/122] Compiling SwiftSyntax TokenDiagnostic.swift
[68/122] Compiling SwiftSyntax TokenSequence.swift
[69/122] Compiling SwiftSyntax TokenSyntax.swift
[70/122] Compiling SwiftSyntax Trivia.swift
[71/122] Compiling SwiftSyntax MemoryLayout.swift
[72/122] Compiling SwiftSyntax MissingNodeInitializers.swift
[73/122] Compiling SwiftSyntax RawSyntax.swift
[74/122] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[75/122] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[76/122] Compiling SwiftSyntax RawSyntaxTokenView.swift
[77/122] Compiling SwiftSyntax SourceEdit.swift
[78/122] Compiling SwiftSyntax SourceLength.swift
[79/122] Compiling SwiftSyntax SourceLocation.swift
[80/122] Compiling SwiftSyntax SourcePresence.swift
[81/122] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[82/122] Compiling SwiftSyntax Syntax.swift
[83/122] Compiling SwiftSyntax SyntaxArena.swift
[84/122] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.swift
[85/122] Compiling SwiftSyntax SyntaxChildren.swift
[86/122] Compiling SwiftSyntax SyntaxCollection.swift
[87/122] Compiling SwiftSyntax SyntaxHashable.swift
[88/122] Compiling SwiftSyntax SyntaxIdentifier.swift
[89/122] Compiling SwiftSyntax Utils.swift
[90/122] Compiling SwiftSyntax ChildNameForKeyPath.swift
[91/122] Compiling SwiftSyntax Keyword.swift
[92/122] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[93/122] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[94/122] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[95/122] Compiling SwiftSyntax SyntaxBaseNodes.swift
[96/122] Compiling SwiftSyntax SyntaxCollections.swift
[97/122] Compiling SwiftSyntax SyntaxEnum.swift
[98/122] Compiling SwiftSyntax SyntaxNodesC.swift
[99/122] Compiling SwiftSyntax SyntaxNodesD.swift
[100/122] Compiling SwiftSyntax SyntaxNodesEF.swift
[101/122] Compiling SwiftSyntax SyntaxNodesGHI.swift
[102/122] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[103/122] Compiling SwiftSyntax SyntaxNodesOP.swift
[104/122] Compiling SwiftSyntax SyntaxNodesQRS.swift
[105/122] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[106/132] Wrapping AST for SwiftSyntax for debugging
[108/180] Compiling SwiftBasicFormat Syntax+Extensions.swift
[109/180] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[110/180] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[111/180] Compiling SwiftDiagnostics Message.swift
[112/181] Compiling SwiftDiagnostics FixIt.swift
[113/181] Emitting module SwiftDiagnostics
[114/181] Compiling SwiftParser Attributes.swift
[115/181] Compiling SwiftParser Availability.swift
[116/181] Compiling SwiftDiagnostics Note.swift
[117/181] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[118/181] Compiling SwiftParser CharacterInfo.swift
[119/181] Compiling SwiftParser CollectionNodes+Parsable.swift
[120/181] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[121/181] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[122/182] Wrapping AST for SwiftDiagnostics for debugging
[124/182] Compiling SwiftBasicFormat InferIndentation.swift
[125/182] Emitting module SwiftBasicFormat
[126/182] Compiling SwiftBasicFormat BasicFormat.swift
[127/183] Wrapping AST for SwiftBasicFormat for debugging
[129/183] Compiling SwiftParser LexemeSequence.swift
[130/183] Compiling SwiftParser Lexer.swift
[131/183] Compiling SwiftParser RegexLiteralLexer.swift
[132/183] Compiling SwiftParser UnicodeScalarExtensions.swift
[133/183] Compiling SwiftParser Lookahead.swift
[134/183] Compiling SwiftParser LoopProgressCondition.swift
[135/183] Compiling SwiftParser Modifiers.swift
[136/183] Compiling SwiftParser Names.swift
[137/183] Compiling SwiftParser Nominals.swift
[138/183] Compiling SwiftParser Parameters.swift
[139/183] Compiling SwiftParser ParseSourceFile.swift
[140/183] Compiling SwiftParser Parser.swift
[141/188] Compiling SwiftParser SwiftParserCompatibility.swift
[142/188] Compiling SwiftParser SwiftVersion.swift
[143/188] Compiling SwiftParser SyntaxUtils.swift
[144/188] Compiling SwiftParser TokenConsumer.swift
[145/188] Compiling SwiftParser TokenPrecedence.swift
[146/188] Compiling SwiftParser Patterns.swift
[147/188] Compiling SwiftParser Recovery.swift
[148/188] Compiling SwiftParser Specifiers.swift
[149/188] Compiling SwiftParser Statements.swift
[150/188] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[151/188] Compiling SwiftParser StringLiterals.swift
[152/188] Compiling SwiftParser TokenSpec.swift
[153/188] Compiling SwiftParser TokenSpecSet.swift
[154/188] Compiling SwiftParser TopLevel.swift
[155/188] Compiling SwiftParser TriviaParser.swift
[156/188] Compiling SwiftParser Types.swift
[157/188] Emitting module SwiftParser
[162/188] Compiling SwiftParser Declarations.swift
[163/188] Compiling SwiftParser Directives.swift
[164/188] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[165/188] Compiling SwiftParser Expressions.swift
[166/188] Compiling SwiftParser IncrementalParseTransition.swift
[167/188] Compiling SwiftParser IsValidIdentifier.swift
[168/188] Compiling SwiftParser Cursor.swift
[169/188] Compiling SwiftParser Lexeme.swift
[170/188] Compiling SwiftParser ExperimentalFeatures.swift
[171/188] Compiling SwiftParser IsLexerClassified.swift
[172/188] Compiling SwiftParser LayoutNodes+Parsable.swift
[173/188] Compiling SwiftParser Parser+TokenSpecSet.swift
[174/188] Compiling SwiftParser TokenSpecStaticMembers.swift
[175/189] Wrapping AST for SwiftParser for debugging
[177/212] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[178/213] Compiling SwiftOperators Operator.swift
[179/213] Compiling SwiftOperators OperatorError+Diagnostics.swift
[180/214] Compiling SwiftOperators PrecedenceGroup.swift
[181/214] Compiling SwiftOperators PrecedenceGraph.swift
[182/214] Compiling SwiftOperators OperatorTable+Semantics.swift
[183/214] Compiling SwiftOperators OperatorTable.swift
[184/214] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[185/214] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[186/214] Compiling SwiftParserDiagnostics Utils.swift
[187/214] Compiling SwiftOperators SyntaxSynthesis.swift
[188/214] Emitting module SwiftOperators
[189/214] Compiling SwiftOperators OperatorError.swift
[190/214] Compiling SwiftOperators OperatorTable+Defaults.swift
[191/214] Compiling SwiftOperators OperatorTable+Folding.swift
[192/215] Wrapping AST for SwiftOperators for debugging
[194/215] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[195/215] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[196/215] Compiling SwiftParserDiagnostics PresenceUtils.swift
[197/215] Compiling SwiftParserDiagnostics MissingNodesError.swift
[198/215] Compiling SwiftParserDiagnostics MissingTokenError.swift
[203/215] Emitting module SwiftParserDiagnostics
[204/216] Wrapping AST for SwiftParserDiagnostics for debugging
[206/231] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[207/231] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[208/232] Compiling SwiftSyntaxBuilder Indenter.swift
[209/232] Compiling SwiftSyntaxBuilder ListBuilder.swift
[210/232] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[211/232] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[212/232] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[213/232] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[214/232] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[215/232] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[216/232] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[217/232] Emitting module SwiftSyntaxBuilder
[218/232] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[219/232] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[220/232] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[221/232] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[222/233] Wrapping AST for SwiftSyntaxBuilder for debugging
[224/250] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[225/250] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[226/250] Compiling SwiftSyntaxMacros MemberMacro.swift
[227/250] Compiling SwiftSyntaxMacros PeerMacro.swift
[228/250] Emitting module SwiftSyntaxMacros
[229/250] Compiling SwiftSyntaxMacros Macro.swift
[230/250] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[231/250] Compiling SwiftSyntaxMacros AccessorMacro.swift
[232/250] Compiling SwiftSyntaxMacros AttachedMacro.swift
[233/250] Compiling SwiftSyntaxMacros BodyMacro.swift
[234/250] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[235/250] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[236/250] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[237/250] Compiling SwiftSyntaxMacros Macro+Format.swift
[238/252] Compiling SwiftSyntaxMacros PreambleMacro.swift
[239/252] Compiling SwiftSyntaxMacros Syntax+LexicalContext.swift
[240/252] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[241/252] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[242/252] Compiling SwiftSyntaxMacros MacroExpansionDiagnosticMessages.swift
[243/253] Wrapping AST for SwiftSyntaxMacros for debugging
[245/262] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[246/262] Compiling SwiftSyntaxMacroExpansion MacroSpec.swift
[247/263] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[248/263] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[249/263] Compiling SwiftSyntaxMacroExpansion MacroArgument.swift
[250/263] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[251/263] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[252/263] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[253/263] Emitting module SwiftSyntaxMacroExpansion
[254/263] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[255/264] Wrapping AST for SwiftSyntaxMacroExpansion for debugging
[257/276] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[258/277] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[259/277] Compiling SwiftCompilerPluginMessageHandling StandardIOMessageConnection.swift
[260/277] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[261/277] Compiling SwiftCompilerPluginMessageHandling LRUCache.swift
[262/277] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[263/277] Compiling SwiftCompilerPluginMessageHandling CodingUtilities.swift
[264/277] Compiling SwiftCompilerPluginMessageHandling JSON.swift
[265/277] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[266/277] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[267/277] Emitting module SwiftCompilerPluginMessageHandling
[268/277] Compiling SwiftCompilerPluginMessageHandling JSONDecoding.swift
[269/277] Compiling SwiftCompilerPluginMessageHandling JSONEncoding.swift
[270/278] Wrapping AST for SwiftCompilerPluginMessageHandling for debugging
[272/280] Emitting module SwiftCompilerPlugin
[273/280] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[274/281] Wrapping AST for SwiftCompilerPlugin for debugging
[276/322] Emitting module KarrotCodableKitMacros
[277/322] Compiling KarrotCodableKitMacros CodableKeyMacro.swift
[278/322] Compiling KarrotCodableKitMacros CustomCodableMacro.swift
[279/322] Compiling KarrotCodableKitMacros CustomDecodableMacro.swift
[280/322] Compiling KarrotCodableKitMacros CustomEncodableMacro.swift
[281/325] Compiling KarrotCodableKitMacros PropertyDiagnosticHelper.swift
[282/325] Compiling KarrotCodableKitMacros SyntaxHelper.swift
[283/325] Compiling KarrotCodableKitMacros UnnestedPolymorphicValidation.swift
[284/325] Compiling KarrotCodableKitMacros UnnestedPolymorphicMethodGenerator.swift
[285/325] Compiling KarrotCodableKitMacros UnnestedPolymorphicStructGenerator.swift
[286/325] Compiling KarrotCodableKitMacros PolymorphicMacroArgumentValidator.swift
[287/325] Compiling KarrotCodableKitMacros PropertyAnalyzer.swift
[288/325] Compiling KarrotCodableKitMacros BaseUnnestedPolymorphicMacro.swift
[289/325] Compiling KarrotCodableKitMacros UnnestedPolymorphicCodableMacro.swift
[290/325] Compiling KarrotCodableKitMacros UnnestedPolymorphicDecodableMacro.swift
[291/325] Compiling MemberwiseInitMacros SyntaxHelpers.swift
[292/325] Compiling MemberwiseInitMacros String.swift
[293/325] Compiling KarrotCodableKitMacros CodingKeysSyntaxFactory.swift
[294/325] Compiling KarrotCodableKitMacros PolymorphicEnumCodableFactory.swift
[295/325] Compiling KarrotCodableKitMacros PolymorphicExtensionFactory.swift
[296/325] Compiling KarrotCodableKitMacros UnnestedPolymorphicCodeGenerator.swift
[297/326] Compiling KarrotCodableKitMacros PolymorphicCodableStrategyMacro.swift
[298/326] Compiling KarrotCodableKitMacros PolymorphicDecodableMacro.swift
[299/326] Compiling KarrotCodableKitMacros PolymorphicEncodableMacro.swift
[300/326] Compiling KarrotCodableKitMacros PolymorphicEnumCodableMacro.swift
[301/326] Compiling KarrotCodableKitMacros PolymorphicEnumDecodableMacro.swift
[302/326] Compiling KarrotCodableKitMacros PolymorphicEnumEncodableMacro.swift
[303/326] Compiling KarrotCodableKitMacros AccessLevelModifier.swift
[304/326] Compiling KarrotCodableKitMacros Diagnostics.swift
[305/326] Compiling KarrotCodableKitMacros String+SnakeCase.swift
[306/326] Compiling KarrotCodableKitMacros String+Trimming.swift
[307/326] Compiling KarrotCodableKitMacros KarrotCodableKitPlugin.swift
[308/326] Compiling KarrotCodableKitMacros PolymorphicCodableMacro.swift
[310/327] Compiling MemberwiseInitMacros UncheckedMemberwiseInitMacro.swift
[310/327] Wrapping AST for KarrotCodableKitMacros for debugging
[311/327] Write Objects.LinkFileList
[313/327] Emitting module MemberwiseInitMacros
[324/328] Wrapping AST for MemberwiseInitMacros for debugging
[325/328] Write Objects.LinkFileList
[326/328] Linking KarrotCodableKitMacros-tool
[327/388] Linking MemberwiseInitMacros-tool
[329/388] Compiling KarrotCodableKit KeyedDecodingContainer+OptionalPolymorphicValue.swift
[330/388] Compiling KarrotCodableKit KeyedDecodingContainer+PolymorphicLossyArrayValue.swift
[331/388] Compiling KarrotCodableKit PolymorphicCodable.swift
[332/388] Compiling KarrotCodableKit PolymorphicCodableStrategyProviding.swift
[333/388] Compiling KarrotCodableKit PolymorphicDecodable.swift
[334/388] Compiling KarrotCodableKit PolymorphicEncodable.swift
[335/388] Compiling KarrotCodableKit PolymorphicEnumCodable.swift
[336/388] Compiling KarrotCodableKit PolymorphicEnumDecodable.swift
[337/398] Emitting module MemberwiseInit
[338/398] Compiling MemberwiseInit MemberwiseInit.swift
[340/399] Compiling KarrotCodableKit RFC3339NanoStrategy.swift
[341/399] Compiling KarrotCodableKit RFC3339Strategy.swift
[342/399] Compiling KarrotCodableKit TimestampStrategy.swift
[343/399] Compiling KarrotCodableKit DefaultCodable.swift
[344/399] Compiling KarrotCodableKit DefaultEmptyArray.swift
[345/399] Compiling KarrotCodableKit DefaultEmptyDictionary.swift
[346/399] Compiling KarrotCodableKit DefaultEmptyString.swift
[347/399] Compiling KarrotCodableKit DefaultFalse.swift
[348/399] Compiling KarrotCodableKit DefaultTrue.swift
[349/399] Compiling KarrotCodableKit Encodable+ToDictionary.swift
[350/399] Compiling KarrotCodableKit DefaultEmptyPolymorphicArrayValue.swift
[351/399] Compiling KarrotCodableKit PolymorphicCodableError.swift
[352/399] Compiling KarrotCodableKit Decoder+Polymorphic.swift
[353/399] Compiling KarrotCodableKit Encoder+Polymorphic.swift
[354/399] Compiling KarrotCodableKit KeyedDecodingContainer+DefaultEmptyPolymorphicArrayValue.swift
[355/399] Compiling KarrotCodableKit KeyedDecodingContainer+LossyOptionalPolymorphicValue.swift
[356/399] Compiling KarrotCodableKit KeyedDecodingContainer+OptionalPolymorphicArrayValue.swift
[357/399] Compiling KarrotCodableKit LossyDictionary.swift
[358/399] Compiling KarrotCodableKit LossyOptional.swift
[359/399] Compiling KarrotCodableKit ResilientProjectedValue.swift
[360/399] Compiling KarrotCodableKit CodingKeyStyle.swift
[361/399] Compiling KarrotCodableKit CodableKey.swift
[362/399] Compiling KarrotCodableKit CustomCodable.swift
[363/399] Compiling KarrotCodableKit CustomDecodable.swift
[364/399] Compiling KarrotCodableKit CustomEncodable.swift
[365/399] Compiling KarrotCodableKit PolymorphicEnumEncodable.swift
[366/399] Compiling KarrotCodableKit UnnestedPolymorphicCodable.swift
[367/399] Compiling KarrotCodableKit UnnestedPolymorphicDecodable.swift
[368/399] Compiling KarrotCodableKit LossyOptionalPolymorphicValue.swift
[369/399] Compiling KarrotCodableKit OptionalPolymorphicArrayValue.swift
[370/399] Compiling KarrotCodableKit OptionalPolymorphicValue.swift
[371/399] Compiling KarrotCodableKit PolymorphicArrayValue.swift
[372/399] Compiling KarrotCodableKit PolymorphicCodableStrategy.swift
[373/399] Compiling KarrotCodableKit DefaultZeroDouble.swift
[374/399] Compiling KarrotCodableKit DefaultZeroFloat.swift
[375/399] Compiling KarrotCodableKit DefaultZeroInt.swift
[376/399] Compiling KarrotCodableKit Result+Extension.swift
[377/399] Compiling KarrotCodableKit LosslessArray.swift
[378/399] Compiling KarrotCodableKit LosslessBoolValue.swift
[379/399] Compiling KarrotCodableKit LosslessValue.swift
[380/399] Compiling KarrotCodableKit OptionalLosslessValue.swift
[381/399] Compiling KarrotCodableKit LossyArray.swift
[382/399] Compiling KarrotCodableKit PolymorphicIdentifiable.swift
[383/399] Compiling KarrotCodableKit PolymorphicLossyArrayValue.swift
[384/399] Compiling KarrotCodableKit PolymorphicProjectedValue.swift
[385/399] Compiling KarrotCodableKit PolymorphicValue.swift
[386/399] Compiling KarrotCodableKit ArrayDecodingError.swift
[387/399] Compiling KarrotCodableKit DictionaryDecodingError.swift
[388/399] Compiling KarrotCodableKit ErrorReporting.swift
[389/399] Compiling KarrotCodableKit ResilientDecodingOutcome.swift
[390/399] Compiling KarrotCodableKit AnyCodable.swift
[391/399] Compiling KarrotCodableKit AnyDecodable.swift
[392/399] Compiling KarrotCodableKit AnyEncodable.swift
[393/399] Compiling KarrotCodableKit Base64Strategy.swift
[394/399] Compiling KarrotCodableKit DataValue.swift
[395/399] Compiling KarrotCodableKit DateValue.swift
[396/399] Compiling KarrotCodableKit OptionalDateValue.swift
[397/399] Compiling KarrotCodableKit ISO8601Strategy.swift
[398/399] Compiling KarrotCodableKit ISO8601WithFractionalSecondsStrategy.swift
[399/399] Emitting module KarrotCodableKit
[401/408] Compiling Agents Utils.swift
[402/408] Compiling Agents WSClient.swift
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:29:63: error: cannot find type 'URLSessionWebSocketDelegate' in scope
 27 | }
 28 |
 29 | class WebSocketTaskConnection: NSObject, WebSocketConnection, URLSessionWebSocketDelegate {
    |                                                               `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
 30 |     var delegate: WebSocketConnectionDelegate!
 31 |     let delegateQueue = OperationQueue()
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:32:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     var delegate: WebSocketConnectionDelegate!
 31 |     let delegateQueue = OperationQueue()
 32 |     var urlSession: URLSession!
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     var webSocketTask: URLSessionWebSocketTask!
 34 |
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.swift/WSClient.swift:33:24: error: cannot find type 'URLSessionWebSocketTask' in scope
 31 |     let delegateQueue = OperationQueue()
 32 |     var urlSession: URLSession!
 33 |     var webSocketTask: URLSessionWebSocketTask!
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
 34 |
 35 |     // NEW: format & encoding knobs (with sensible defaults)
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:71:24: error: cannot find type 'URLSessionWebSocketTask' in scope
 69 |     func urlSession(
 70 |         _ session: URLSession,
 71 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
 72 |         didOpenWithProtocol `protocol`: String?
 73 |     ) {
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:70:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |
 69 |     func urlSession(
 70 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |         webSocketTask: URLSessionWebSocketTask,
 72 |         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.swift/WSClient.swift:79:24: error: cannot find type 'URLSessionWebSocketTask' in scope
 77 |     func urlSession(
 78 |         _ session: URLSession,
 79 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
 80 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
 81 |         reason: Data?
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:80:33: error: cannot find type 'URLSessionWebSocketTask' in scope
 78 |         _ session: URLSession,
 79 |         webSocketTask: URLSessionWebSocketTask,
 80 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
    |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
 81 |         reason: Data?
 82 |     ) {
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:78:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |
 77 |     func urlSession(
 78 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |         webSocketTask: URLSessionWebSocketTask,
 80 |         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.swift/WSClient.swift:55:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 |         self.textEncoding = textEncoding
 54 |         super.init()
 55 |         self.urlSession = URLSession(
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 56 |             configuration: .default, delegate: self, delegateQueue: self.delegateQueue)
 57 |
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:56:29: error: cannot infer contextual base in reference to member 'default'
 54 |         super.init()
 55 |         self.urlSession = URLSession(
 56 |             configuration: .default, delegate: self, delegateQueue: self.delegateQueue)
    |                             `- error: cannot infer contextual base in reference to member 'default'
 57 |
 58 |         if let headers = headers, !headers.isEmpty {
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:59:27: error: cannot find 'URLRequest' in scope
 57 |
 58 |         if let headers = headers, !headers.isEmpty {
 59 |             var request = URLRequest(url: url)
    |                           `- error: cannot find 'URLRequest' in scope
 60 |             for (key, value) in headers {
 61 |                 request.addValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:63:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 61 |                 request.addValue(value, forHTTPHeaderField: key)
 62 |             }
 63 |             self.webSocketTask = self.urlSession.webSocketTask(with: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 64 |         } else {
 65 |             self.webSocketTask = self.urlSession.webSocketTask(with: url)
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:65:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 63 |             self.webSocketTask = self.urlSession.webSocketTask(with: request)
 64 |         } else {
 65 |             self.webSocketTask = self.urlSession.webSocketTask(with: url)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 66 |         }
 67 |     }
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:92:37: error: cannot infer contextual base in reference to member 'goingAway'
 90 |
 91 |     func disconnect() {
 92 |         webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                     `- error: cannot infer contextual base in reference to member 'goingAway'
 93 |     }
 94 |
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:92:56: error: 'nil' requires a contextual type
 90 |
 91 |     func disconnect() {
 92 |         webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                                        `- error: 'nil' requires a contextual type
 93 |     }
 94 |
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:96:45: error: cannot infer type of closure parameter 'result' without a type annotation
 94 |
 95 |     private func listen() {
 96 |         webSocketTask.receive { [weak self] result in
    |                                             `- error: cannot infer type of closure parameter 'result' without a type annotation
 97 |             guard let self = self else { return }
 98 |             switch result {
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:142:33: error: cannot infer contextual base in reference to member 'string'
140 |         switch messageFormat {
141 |         case .preserve, .text:
142 |             webSocketTask.send(.string(text)) { [weak self] error in
    |                                 `- error: cannot infer contextual base in reference to member 'string'
143 |                 if let error = error { self?.delegate.onError(error: error) }
144 |             }
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:142:61: error: cannot infer type of closure parameter 'error' without a type annotation
140 |         switch messageFormat {
141 |         case .preserve, .text:
142 |             webSocketTask.send(.string(text)) { [weak self] error in
    |                                                             `- error: cannot infer type of closure parameter 'error' without a type annotation
143 |                 if let error = error { self?.delegate.onError(error: error) }
144 |             }
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:149:33: error: cannot infer contextual base in reference to member 'data'
147 |             // Force to binary frame
148 |             let data = text.data(using: textEncoding) ?? Data(text.utf8)
149 |             webSocketTask.send(.data(data)) { [weak self] error in
    |                                 `- error: cannot infer contextual base in reference to member 'data'
150 |                 if let error = error { self?.delegate.onError(error: error) }
151 |             }
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:149:59: error: cannot infer type of closure parameter 'error' without a type annotation
147 |             // Force to binary frame
148 |             let data = text.data(using: textEncoding) ?? Data(text.utf8)
149 |             webSocketTask.send(.data(data)) { [weak self] error in
    |                                                           `- error: cannot infer type of closure parameter 'error' without a type annotation
150 |                 if let error = error { self?.delegate.onError(error: error) }
151 |             }
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:158:33: error: cannot infer contextual base in reference to member 'data'
156 |         switch messageFormat {
157 |         case .preserve, .binary:
158 |             webSocketTask.send(.data(data)) { [weak self] error in
    |                                 `- error: cannot infer contextual base in reference to member 'data'
159 |                 if let error = error { self?.delegate.onError(error: error) }
160 |             }
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:158:59: error: cannot infer type of closure parameter 'error' without a type annotation
156 |         switch messageFormat {
157 |         case .preserve, .binary:
158 |             webSocketTask.send(.data(data)) { [weak self] error in
    |                                                           `- error: cannot infer type of closure parameter 'error' without a type annotation
159 |                 if let error = error { self?.delegate.onError(error: error) }
160 |             }
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:165:33: error: cannot infer contextual base in reference to member 'string'
163 |             // Try to make a text frame from the data; if not decodable, send base64 text
164 |             let text = String(data: data, encoding: textEncoding) ?? data.base64EncodedString()
165 |             webSocketTask.send(.string(text)) { [weak self] error in
    |                                 `- error: cannot infer contextual base in reference to member 'string'
166 |                 if let error = error { self?.delegate.onError(error: error) }
167 |             }
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:165:61: error: cannot infer type of closure parameter 'error' without a type annotation
163 |             // Try to make a text frame from the data; if not decodable, send base64 text
164 |             let text = String(data: data, encoding: textEncoding) ?? data.base64EncodedString()
165 |             webSocketTask.send(.string(text)) { [weak self] error in
    |                                                             `- error: cannot infer type of closure parameter 'error' without a type annotation
166 |                 if let error = error { self?.delegate.onError(error: error) }
167 |             }
[403/408] Compiling Agents ChatMessage.swift
macro expansion @PolymorphicEnumCodable:1:11: error: cannot find type 'Part' in scope
`- /host/spi-builder-workspace/Sources/Agents.swift/Types/ChatMessage.swift:99:2: note: expanded code originates here
 27 |     }
 28 |
 29 |     @PolymorphicEnumCodable(identifierCodingKey: "type")
    |     `- note: in expansion of macro 'PolymorphicEnumCodable' on enum 'Part' here
 30 |     public enum Part {
 31 |         case text(ChatMessage.TextPart)
    :
 97 |         public let type = "step-start"
 98 |     }
 99 | }
    +--- macro expansion @PolymorphicEnumCodable -----------------------
    | 1 | extension Part: Codable {
    |   |           `- error: cannot find type 'Part' in scope
    | 2 |     enum PolymorphicMetaCodingKey: CodingKey {
    | 3 |       case `type`
    +-------------------------------------------------------------------
100 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[404/408] Compiling Agents ChatMessageStreamFrame.swift
[405/408] Emitting module Agents
/host/spi-builder-workspace/Sources/Agents.swift/AgentClient.swift:8:2: error: unknown attribute 'Observable'
  6 | // todo: handle task timeout
  7 | // todo: implement cancel message (?)
  8 | @Observable
    |  `- error: unknown attribute 'Observable'
  9 | public class AgentClient<State: Codable>: WebSocketConnectionDelegate {
 10 |     private let instanceURL: URL
/host/spi-builder-workspace/Sources/Agents.swift/AgentClient.swift:343:10: warning: associated value 'rpcResultMismatch(type:)' of 'Sendable'-conforming enum 'AgentError' has non-Sendable type 'any Decodable.Type'
341 |     case toolCallNotFound(id: String, String? = nil)
342 |     case rpcError(id: String, error: String?)
343 |     case rpcResultMismatch(type: Decodable.Type)
    |          `- warning: associated value 'rpcResultMismatch(type:)' of 'Sendable'-conforming enum 'AgentError' has non-Sendable type 'any Decodable.Type'
344 | }
345 |
macro expansion @PolymorphicEnumCodable:1:11: error: cannot find type 'Part' in scope
`- /host/spi-builder-workspace/Sources/Agents.swift/Types/ChatMessage.swift:99:2: note: expanded code originates here
 27 |     }
 28 |
 29 |     @PolymorphicEnumCodable(identifierCodingKey: "type")
    |     `- note: in expansion of macro 'PolymorphicEnumCodable' on enum 'Part' here
 30 |     public enum Part {
 31 |         case text(ChatMessage.TextPart)
    :
 97 |         public let type = "step-start"
 98 |     }
 99 | }
    +--- macro expansion @PolymorphicEnumCodable -----------------------
    | 1 | extension Part: Codable {
    |   |           `- error: cannot find type 'Part' in scope
    | 2 |     enum PolymorphicMetaCodingKey: CodingKey {
    | 3 |       case `type`
    +-------------------------------------------------------------------
100 |
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:29:63: error: cannot find type 'URLSessionWebSocketDelegate' in scope
 27 | }
 28 |
 29 | class WebSocketTaskConnection: NSObject, WebSocketConnection, URLSessionWebSocketDelegate {
    |                                                               `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
 30 |     var delegate: WebSocketConnectionDelegate!
 31 |     let delegateQueue = OperationQueue()
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:32:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     var delegate: WebSocketConnectionDelegate!
 31 |     let delegateQueue = OperationQueue()
 32 |     var urlSession: URLSession!
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     var webSocketTask: URLSessionWebSocketTask!
 34 |
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.swift/WSClient.swift:33:24: error: cannot find type 'URLSessionWebSocketTask' in scope
 31 |     let delegateQueue = OperationQueue()
 32 |     var urlSession: URLSession!
 33 |     var webSocketTask: URLSessionWebSocketTask!
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
 34 |
 35 |     // NEW: format & encoding knobs (with sensible defaults)
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:71:24: error: cannot find type 'URLSessionWebSocketTask' in scope
 69 |     func urlSession(
 70 |         _ session: URLSession,
 71 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
 72 |         didOpenWithProtocol `protocol`: String?
 73 |     ) {
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:70:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |
 69 |     func urlSession(
 70 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |         webSocketTask: URLSessionWebSocketTask,
 72 |         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.swift/WSClient.swift:79:24: error: cannot find type 'URLSessionWebSocketTask' in scope
 77 |     func urlSession(
 78 |         _ session: URLSession,
 79 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
 80 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
 81 |         reason: Data?
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:80:33: error: cannot find type 'URLSessionWebSocketTask' in scope
 78 |         _ session: URLSession,
 79 |         webSocketTask: URLSessionWebSocketTask,
 80 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
    |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
 81 |         reason: Data?
 82 |     ) {
/host/spi-builder-workspace/Sources/Agents.swift/WSClient.swift:78:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |
 77 |     func urlSession(
 78 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |         webSocketTask: URLSessionWebSocketTask,
 80 |         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
[406/408] Compiling Agents CFAgents.swift
macro expansion @PolymorphicEnumCodable:1:11: error: cannot find type 'Part' in scope
`- /host/spi-builder-workspace/Sources/Agents.swift/Types/ChatMessage.swift:99:2: note: expanded code originates here
 27 |     }
 28 |
 29 |     @PolymorphicEnumCodable(identifierCodingKey: "type")
    |     `- note: in expansion of macro 'PolymorphicEnumCodable' on enum 'Part' here
 30 |     public enum Part {
 31 |         case text(ChatMessage.TextPart)
    :
 97 |         public let type = "step-start"
 98 |     }
 99 | }
    +--- macro expansion @PolymorphicEnumCodable -----------------------
    | 1 | extension Part: Codable {
    |   |           `- error: cannot find type 'Part' in scope
    | 2 |     enum PolymorphicMetaCodingKey: CodingKey {
    | 3 |       case `type`
    +-------------------------------------------------------------------
100 |
/host/spi-builder-workspace/Sources/Agents.swift/Types/CFAgents.swift:73:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
 71 | @PolymorphicDecodable(identifier: "cf_agent_use_chat_response")
 72 | struct CFAgentUseChatResponse {
 73 |     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
 74 |     let id: String
 75 |     let body: String
/host/spi-builder-workspace/Sources/Agents.swift/Types/CFAgents.swift:81:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
 79 | @PolymorphicDecodable(identifier: "rpc")
 80 | struct RPCResponse<Result: Codable> {
 81 |     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
 82 |     let id: String
 83 |     let success: Bool
[407/408] Compiling Agents AgentClient.swift
/host/spi-builder-workspace/Sources/Agents.swift/AgentClient.swift:8:2: error: unknown attribute 'Observable'
  6 | // todo: handle task timeout
  7 | // todo: implement cancel message (?)
  8 | @Observable
    |  `- error: unknown attribute 'Observable'
  9 | public class AgentClient<State: Codable>: WebSocketConnectionDelegate {
 10 |     private let instanceURL: URL
/host/spi-builder-workspace/Sources/Agents.swift/AgentClient.swift:343:10: warning: associated value 'rpcResultMismatch(type:)' of 'Sendable'-conforming enum 'AgentError' has non-Sendable type 'any Decodable.Type'
341 |     case toolCallNotFound(id: String, String? = nil)
342 |     case rpcError(id: String, error: String?)
343 |     case rpcResultMismatch(type: Decodable.Type)
    |          `- warning: associated value 'rpcResultMismatch(type:)' of 'Sendable'-conforming enum 'AgentError' has non-Sendable type 'any Decodable.Type'
344 | }
345 |
/host/spi-builder-workspace/Sources/Agents.swift/AgentClient.swift:47:23: error: cannot find 'URLRequest' in scope
 45 |         let url = self.instanceURL.appending(path: "get-messages")
 46 |
 47 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 48 |         if let headers = options.headers {
 49 |             for (key, value) in headers {
/host/spi-builder-workspace/Sources/Agents.swift/AgentClient.swift:53:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 51 |             }
 52 |         }
 53 |         let (data, _) = try await URLSession.shared.data(for: request)
    |                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 54 |         self.messages = try jsonDecoder.decode([ChatMessage].self, from: data)
 55 |     }
macro expansion @PolymorphicEnumCodable:1:11: error: cannot find type 'Part' in scope
`- /host/spi-builder-workspace/Sources/Agents.swift/Types/ChatMessage.swift:99:2: note: expanded code originates here
 27 |     }
 28 |
 29 |     @PolymorphicEnumCodable(identifierCodingKey: "type")
    |     `- note: in expansion of macro 'PolymorphicEnumCodable' on enum 'Part' here
 30 |     public enum Part {
 31 |         case text(ChatMessage.TextPart)
    :
 97 |         public let type = "step-start"
 98 |     }
 99 | }
    +--- macro expansion @PolymorphicEnumCodable -----------------------
    | 1 | extension Part: Codable {
    |   |           `- error: cannot find type 'Part' in scope
    | 2 |     enum PolymorphicMetaCodingKey: CodingKey {
    | 3 |       case `type`
    +-------------------------------------------------------------------
100 |
[408/408] Compiling Agents ChatMessageBuilder.swift
macro expansion @PolymorphicEnumCodable:1:11: error: cannot find type 'Part' in scope
`- /host/spi-builder-workspace/Sources/Agents.swift/Types/ChatMessage.swift:99:2: note: expanded code originates here
 27 |     }
 28 |
 29 |     @PolymorphicEnumCodable(identifierCodingKey: "type")
    |     `- note: in expansion of macro 'PolymorphicEnumCodable' on enum 'Part' here
 30 |     public enum Part {
 31 |         case text(ChatMessage.TextPart)
    :
 97 |         public let type = "step-start"
 98 |     }
 99 | }
    +--- macro expansion @PolymorphicEnumCodable -----------------------
    | 1 | extension Part: Codable {
    |   |           `- error: cannot find type 'Part' in scope
    | 2 |     enum PolymorphicMetaCodingKey: CodingKey {
    | 3 |       case `type`
    +-------------------------------------------------------------------
100 |
BUILD FAILURE 6.2 linux