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 0.3.0 (41decb), with Swift 6.2 (beta) for Linux on 3 Sep 2025 13:47:35 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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: 0.3.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/victorhenrion/Agents.swift
 * tag               0.3.0      -> FETCH_HEAD
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 0.3.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/victorhenrion/Agents.swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/gohanlon/swift-memberwise-init-macro.git
Fetching https://github.com/daangn/KarrotCodableKit.git
[1/721] Fetching swift-memberwise-init-macro
[722/2005] Fetching swift-memberwise-init-macro, karrotcodablekit
Fetched https://github.com/daangn/KarrotCodableKit.git from cache (0.53s)
Fetched https://github.com/gohanlon/swift-memberwise-init-macro.git from cache (0.54s)
Computing version for https://github.com/gohanlon/swift-memberwise-init-macro.git
Computed https://github.com/gohanlon/swift-memberwise-init-macro.git at 0.5.2 (4.61s)
Fetching https://github.com/swiftlang/swift-syntax
[1/71848] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (7.54s)
Computing version for https://github.com/daangn/KarrotCodableKit.git
Computed https://github.com/daangn/KarrotCodableKit.git at 1.5.1 (8.05s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (1.40s)
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 600.0.1
Creating working copy for https://github.com/daangn/KarrotCodableKit.git
Working copy of https://github.com/daangn/KarrotCodableKit.git resolved at 1.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
Building for debugging...
[0/41] Write sources
[19/41] Compiling _SwiftSyntaxCShims dummy.c
[20/41] Write swift-version-24593BA9C3E375BF.txt
[22/47] Compiling SwiftSyntax509 Empty.swift
[23/47] Emitting module SwiftSyntax509
[25/48] Emitting module SwiftSyntax600
[26/48] Compiling SwiftSyntax600 Empty.swift
[28/49] Emitting module SwiftSyntax510
[29/49] Compiling SwiftSyntax510 Empty.swift
[30/50] Wrapping AST for SwiftSyntax510 for debugging
[31/50] Wrapping AST for SwiftSyntax600 for debugging
[32/50] Wrapping AST for SwiftSyntax509 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] Compiling SwiftSyntax SyntaxNodeFactory.swift
[44/122] Compiling SwiftSyntax SyntaxNodeStructure.swift
[45/122] Compiling SwiftSyntax SyntaxProtocol.swift
[46/122] Compiling SwiftSyntax SyntaxText.swift
[47/122] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[48/122] Compiling SwiftSyntax TokenDiagnostic.swift
[49/122] Compiling SwiftSyntax TokenSequence.swift
[50/122] Compiling SwiftSyntax TokenSyntax.swift
[51/122] Compiling SwiftSyntax Trivia.swift
[52/122] Emitting module SwiftSyntax
[53/122] Compiling SwiftSyntax SyntaxKind.swift
[54/122] Compiling SwiftSyntax SyntaxRewriter.swift
[55/122] Compiling SwiftSyntax SyntaxTraits.swift
[56/122] Compiling SwiftSyntax SyntaxVisitor.swift
[57/122] Compiling SwiftSyntax TokenKind.swift
[58/122] Compiling SwiftSyntax Tokens.swift
[59/122] Compiling SwiftSyntax TriviaPieces.swift
[60/122] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[61/122] Compiling SwiftSyntax RawSyntaxNodesC.swift
[62/122] Compiling SwiftSyntax RawSyntaxNodesD.swift
[63/122] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[64/122] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[65/122] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[66/122] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[67/122] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[68/122] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[69/122] Compiling SwiftSyntax RawSyntaxValidation.swift
[70/122] Compiling SwiftSyntax SyntaxNodesAB.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/126] Wrapping AST for SwiftSyntax for debugging
[108/180] Compiling SwiftDiagnostics Message.swift
[109/181] Compiling SwiftDiagnostics FixIt.swift
[110/181] Emitting module SwiftDiagnostics
[111/181] Compiling SwiftParser Attributes.swift
[112/181] Compiling SwiftParser Availability.swift
[113/181] Compiling SwiftParser CharacterInfo.swift
[114/181] Compiling SwiftParser CollectionNodes+Parsable.swift
[115/181] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[116/181] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[117/181] Compiling SwiftBasicFormat Syntax+Extensions.swift
[118/181] Compiling SwiftDiagnostics Note.swift
[119/181] Compiling SwiftBasicFormat InferIndentation.swift
[120/181] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[121/181] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[122/181] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[123/182] Wrapping AST for SwiftDiagnostics for debugging
[125/182] Compiling SwiftBasicFormat BasicFormat.swift
[126/182] Emitting module SwiftBasicFormat
[127/183] Wrapping AST for SwiftBasicFormat for debugging
[129/183] Emitting module SwiftParser
[130/188] Compiling SwiftParser SwiftParserCompatibility.swift
[131/188] Compiling SwiftParser SwiftVersion.swift
[132/188] Compiling SwiftParser SyntaxUtils.swift
[133/188] Compiling SwiftParser TokenConsumer.swift
[134/188] Compiling SwiftParser TokenPrecedence.swift
[135/188] Compiling SwiftParser TokenSpec.swift
[136/188] Compiling SwiftParser TokenSpecSet.swift
[137/188] Compiling SwiftParser TopLevel.swift
[138/188] Compiling SwiftParser TriviaParser.swift
[139/188] Compiling SwiftParser Types.swift
[140/188] Compiling SwiftParser Patterns.swift
[141/188] Compiling SwiftParser Recovery.swift
[142/188] Compiling SwiftParser Specifiers.swift
[143/188] Compiling SwiftParser Statements.swift
[144/188] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[145/188] Compiling SwiftParser StringLiterals.swift
[146/188] Compiling SwiftParser LexemeSequence.swift
[147/188] Compiling SwiftParser Lexer.swift
[148/188] Compiling SwiftParser RegexLiteralLexer.swift
[149/188] Compiling SwiftParser UnicodeScalarExtensions.swift
[150/188] Compiling SwiftParser Lookahead.swift
[151/188] Compiling SwiftParser LoopProgressCondition.swift
[152/188] Compiling SwiftParser Modifiers.swift
[153/188] Compiling SwiftParser Names.swift
[154/188] Compiling SwiftParser Nominals.swift
[155/188] Compiling SwiftParser Parameters.swift
[156/188] Compiling SwiftParser ParseSourceFile.swift
[157/188] Compiling SwiftParser Parser.swift
[158/188] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[159/188] Compiling SwiftParser Expressions.swift
[160/188] Compiling SwiftParser IncrementalParseTransition.swift
[161/188] Compiling SwiftParser IsValidIdentifier.swift
[162/188] Compiling SwiftParser Cursor.swift
[163/188] Compiling SwiftParser Lexeme.swift
[168/188] Compiling SwiftParser Declarations.swift
[169/188] Compiling SwiftParser Directives.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 MissingNodesError.swift
[178/212] Compiling SwiftParserDiagnostics MissingTokenError.swift
[179/213] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[180/214] Compiling SwiftOperators PrecedenceGroup.swift
[181/214] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[182/214] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[183/214] Emitting module SwiftOperators
[184/214] Compiling SwiftOperators OperatorTable.swift
[185/214] Compiling SwiftOperators PrecedenceGraph.swift
[186/214] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[187/214] Compiling SwiftOperators SyntaxSynthesis.swift
[188/214] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[189/214] Compiling SwiftParserDiagnostics Utils.swift
[190/214] Compiling SwiftOperators OperatorTable+Semantics.swift
[191/214] Compiling SwiftOperators OperatorTable+Folding.swift
[193/215] Emitting module SwiftParserDiagnostics
[193/215] Wrapping AST for SwiftOperators for debugging
[195/215] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[196/215] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[197/215] Compiling SwiftParserDiagnostics PresenceUtils.swift
[200/215] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[201/215] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[204/216] Wrapping AST for SwiftParserDiagnostics for debugging
[206/231] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[207/231] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[208/231] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[209/231] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[210/232] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[211/232] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[212/232] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[213/232] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[214/232] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[215/232] Emitting module SwiftSyntaxBuilder
[216/232] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[217/232] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[218/232] Compiling SwiftSyntaxBuilder Indenter.swift
[219/232] Compiling SwiftSyntaxBuilder ListBuilder.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 ExpressionMacro.swift
[227/250] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[228/252] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[229/252] Compiling SwiftSyntaxMacros Macro+Format.swift
[230/252] Compiling SwiftSyntaxMacros AccessorMacro.swift
[231/252] Compiling SwiftSyntaxMacros AttachedMacro.swift
[232/252] Compiling SwiftSyntaxMacros BodyMacro.swift
[233/252] Emitting module SwiftSyntaxMacros
[234/252] Compiling SwiftSyntaxMacros Macro.swift
[235/252] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[236/252] Compiling SwiftSyntaxMacros MemberMacro.swift
[237/252] Compiling SwiftSyntaxMacros PeerMacro.swift
[238/252] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[239/252] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[240/252] Compiling SwiftSyntaxMacros MacroExpansionDiagnosticMessages.swift
[241/252] Compiling SwiftSyntaxMacros PreambleMacro.swift
[242/252] Compiling SwiftSyntaxMacros Syntax+LexicalContext.swift
[243/253] Wrapping AST for SwiftSyntaxMacros for debugging
[245/262] Compiling SwiftSyntaxMacroExpansion MacroSpec.swift
[246/263] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[247/263] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[248/263] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[249/263] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[250/263] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[251/263] Compiling SwiftSyntaxMacroExpansion MacroArgument.swift
[252/263] Emitting module SwiftSyntaxMacroExpansion
[253/263] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[254/263] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[255/264] Wrapping AST for SwiftSyntaxMacroExpansion for debugging
[257/276] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[258/277] Compiling SwiftCompilerPluginMessageHandling LRUCache.swift
[259/277] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[260/277] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[261/277] Compiling SwiftCompilerPluginMessageHandling StandardIOMessageConnection.swift
[262/277] Compiling SwiftCompilerPluginMessageHandling PluginMessages.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] Compiling SwiftCompilerPluginMessageHandling JSONDecoding.swift
[268/277] Compiling SwiftCompilerPluginMessageHandling JSONEncoding.swift
[269/277] Emitting module SwiftCompilerPluginMessageHandling
[270/278] Wrapping AST for SwiftCompilerPluginMessageHandling for debugging
[272/280] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[273/280] Emitting module SwiftCompilerPlugin
[274/281] Wrapping AST for SwiftCompilerPlugin for debugging
[276/322] Emitting module KarrotCodableKitMacros
[277/322] Compiling KarrotCodableKitMacros PropertyDiagnosticHelper.swift
[278/322] Compiling KarrotCodableKitMacros SyntaxHelper.swift
[279/322] Compiling KarrotCodableKitMacros UnnestedPolymorphicValidation.swift
[280/322] Compiling MemberwiseInitMacros SyntaxHelpers.swift
[281/326] Emitting module MemberwiseInitMacros
[282/326] Compiling KarrotCodableKitMacros CustomDecodableMacro.swift
[283/326] Compiling KarrotCodableKitMacros CustomEncodableMacro.swift
[284/326] Compiling KarrotCodableKitMacros KarrotCodableKitPlugin.swift
[285/326] Compiling KarrotCodableKitMacros PolymorphicCodableMacro.swift
[286/326] Compiling KarrotCodableKitMacros CodableKeyMacro.swift
[287/326] Compiling KarrotCodableKitMacros CustomCodableMacro.swift
[288/326] Compiling KarrotCodableKitMacros UnnestedPolymorphicMethodGenerator.swift
[289/326] Compiling KarrotCodableKitMacros UnnestedPolymorphicStructGenerator.swift
[290/326] Compiling KarrotCodableKitMacros PolymorphicMacroArgumentValidator.swift
[291/326] Compiling KarrotCodableKitMacros PropertyAnalyzer.swift
[292/326] Compiling MemberwiseInitMacros UncheckedMemberwiseInitMacro.swift
[293/326] Compiling KarrotCodableKitMacros BaseUnnestedPolymorphicMacro.swift
[294/326] Compiling KarrotCodableKitMacros UnnestedPolymorphicCodableMacro.swift
[295/326] Compiling KarrotCodableKitMacros UnnestedPolymorphicDecodableMacro.swift
[296/326] Compiling MemberwiseInitMacros MemberwiseInitFormatter.swift
[297/326] Compiling MemberwiseInitMacros Models.swift
[298/326] Compiling KarrotCodableKitMacros PolymorphicEncodableMacro.swift
[299/326] Compiling KarrotCodableKitMacros PolymorphicEnumCodableMacro.swift
[300/326] Compiling MemberwiseInitMacros String.swift
[305/326] Compiling KarrotCodableKitMacros String+SnakeCase.swift
[306/326] Compiling KarrotCodableKitMacros String+Trimming.swift
[311/326] Compiling KarrotCodableKitMacros CodingKeysSyntaxFactory.swift
[312/326] Compiling KarrotCodableKitMacros PolymorphicEnumCodableFactory.swift
[313/326] Compiling KarrotCodableKitMacros PolymorphicExtensionFactory.swift
[314/326] Compiling KarrotCodableKitMacros UnnestedPolymorphicCodeGenerator.swift
[315/326] Compiling KarrotCodableKitMacros PolymorphicEnumDecodableMacro.swift
[316/326] Compiling KarrotCodableKitMacros PolymorphicEnumEncodableMacro.swift
[317/326] Compiling KarrotCodableKitMacros AccessLevelModifier.swift
[318/326] Compiling KarrotCodableKitMacros Diagnostics.swift
[322/328] Wrapping AST for MemberwiseInitMacros for debugging
[323/328] Write Objects.LinkFileList
[324/328] Wrapping AST for KarrotCodableKitMacros for debugging
[325/328] Write Objects.LinkFileList
[326/328] Linking MemberwiseInitMacros-tool
[327/328] Linking KarrotCodableKitMacros-tool
[329/390] Emitting module MemberwiseInit
[330/390] Compiling MemberwiseInit MemberwiseInit.swift
[332/391] Emitting module KarrotCodableKit
[333/399] Compiling KarrotCodableKit RFC3339NanoStrategy.swift
[334/399] Compiling KarrotCodableKit RFC3339Strategy.swift
[335/399] Compiling KarrotCodableKit TimestampStrategy.swift
[336/399] Compiling KarrotCodableKit DefaultCodable.swift
[337/399] Compiling KarrotCodableKit DefaultEmptyArray.swift
[338/399] Compiling KarrotCodableKit DefaultEmptyDictionary.swift
[339/399] Compiling KarrotCodableKit DefaultEmptyString.swift
[340/399] Compiling KarrotCodableKit DefaultFalse.swift
[341/399] Compiling KarrotCodableKit DefaultTrue.swift
[342/399] Compiling KarrotCodableKit DefaultZeroDouble.swift
[343/399] Compiling KarrotCodableKit DefaultZeroFloat.swift
[344/399] Compiling KarrotCodableKit DefaultZeroInt.swift
[345/399] Compiling KarrotCodableKit Result+Extension.swift
[346/399] Compiling KarrotCodableKit LosslessArray.swift
[347/399] Compiling KarrotCodableKit LosslessBoolValue.swift
[348/399] Compiling KarrotCodableKit LosslessValue.swift
[349/399] Compiling KarrotCodableKit OptionalLosslessValue.swift
[350/399] Compiling KarrotCodableKit LossyArray.swift
[351/399] Compiling KarrotCodableKit PolymorphicIdentifiable.swift
[352/399] Compiling KarrotCodableKit PolymorphicLossyArrayValue.swift
[353/399] Compiling KarrotCodableKit PolymorphicProjectedValue.swift
[354/399] Compiling KarrotCodableKit PolymorphicValue.swift
[355/399] Compiling KarrotCodableKit ArrayDecodingError.swift
[356/399] Compiling KarrotCodableKit DictionaryDecodingError.swift
[357/399] Compiling KarrotCodableKit ErrorReporting.swift
[358/399] Compiling KarrotCodableKit ResilientDecodingOutcome.swift
[359/399] Compiling KarrotCodableKit LossyDictionary.swift
[360/399] Compiling KarrotCodableKit LossyOptional.swift
[361/399] Compiling KarrotCodableKit ResilientProjectedValue.swift
[362/399] Compiling KarrotCodableKit CodingKeyStyle.swift
[363/399] Compiling KarrotCodableKit CodableKey.swift
[364/399] Compiling KarrotCodableKit CustomCodable.swift
[365/399] Compiling KarrotCodableKit CustomDecodable.swift
[366/399] Compiling KarrotCodableKit CustomEncodable.swift
[367/399] Compiling KarrotCodableKit PolymorphicEnumEncodable.swift
[368/399] Compiling KarrotCodableKit UnnestedPolymorphicCodable.swift
[369/399] Compiling KarrotCodableKit UnnestedPolymorphicDecodable.swift
[370/399] Compiling KarrotCodableKit LossyOptionalPolymorphicValue.swift
[371/399] Compiling KarrotCodableKit OptionalPolymorphicArrayValue.swift
[372/399] Compiling KarrotCodableKit OptionalPolymorphicValue.swift
[373/399] Compiling KarrotCodableKit PolymorphicArrayValue.swift
[374/399] Compiling KarrotCodableKit PolymorphicCodableStrategy.swift
[375/399] Compiling KarrotCodableKit KeyedDecodingContainer+OptionalPolymorphicValue.swift
[376/399] Compiling KarrotCodableKit KeyedDecodingContainer+PolymorphicLossyArrayValue.swift
[377/399] Compiling KarrotCodableKit PolymorphicCodable.swift
[378/399] Compiling KarrotCodableKit PolymorphicCodableStrategyProviding.swift
[379/399] Compiling KarrotCodableKit PolymorphicDecodable.swift
[380/399] Compiling KarrotCodableKit PolymorphicEncodable.swift
[381/399] Compiling KarrotCodableKit PolymorphicEnumCodable.swift
[382/399] Compiling KarrotCodableKit PolymorphicEnumDecodable.swift
[383/399] Compiling KarrotCodableKit AnyCodable.swift
[384/399] Compiling KarrotCodableKit AnyDecodable.swift
[385/399] Compiling KarrotCodableKit AnyEncodable.swift
[386/399] Compiling KarrotCodableKit Base64Strategy.swift
[387/399] Compiling KarrotCodableKit DataValue.swift
[388/399] Compiling KarrotCodableKit DateValue.swift
[389/399] Compiling KarrotCodableKit OptionalDateValue.swift
[390/399] Compiling KarrotCodableKit ISO8601Strategy.swift
[391/399] Compiling KarrotCodableKit ISO8601WithFractionalSecondsStrategy.swift
[392/399] Compiling KarrotCodableKit Encodable+ToDictionary.swift
[393/399] Compiling KarrotCodableKit DefaultEmptyPolymorphicArrayValue.swift
[394/399] Compiling KarrotCodableKit PolymorphicCodableError.swift
[395/399] Compiling KarrotCodableKit Decoder+Polymorphic.swift
[396/399] Compiling KarrotCodableKit Encoder+Polymorphic.swift
[397/399] Compiling KarrotCodableKit KeyedDecodingContainer+DefaultEmptyPolymorphicArrayValue.swift
[398/399] Compiling KarrotCodableKit KeyedDecodingContainer+LossyOptionalPolymorphicValue.swift
[399/399] Compiling KarrotCodableKit KeyedDecodingContainer+OptionalPolymorphicArrayValue.swift
[401/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 |             }
[402/408] Compiling Agents Utils.swift
[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 |
[404/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[405/408] Compiling Agents ChatMessageStreamFrame.swift
[406/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
[407/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 |
[408/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 |
BUILD FAILURE 6.2 linux