Build Information
Failed to build OpenAI, reference 1.1.1 (de472c
), with Swift 6.1 for Wasm on 17 Jul 2025 00:15:13 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/m1guelpf/swift-openai-responses.git
Reference: 1.1.1
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/m1guelpf/swift-openai-responses
* tag 1.1.1 -> FETCH_HEAD
HEAD is now at de472c3 add `input_fidelity` to image generation tool
Cloned https://github.com/m1guelpf/swift-openai-responses.git
Revision (git rev-parse @):
de472c3e8d9fce9ab04498b9e4a7c477ead2aae1
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/m1guelpf/swift-openai-responses.git at 1.1.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/m1guelpf/swift-openai-responses.git
https://github.com/m1guelpf/swift-openai-responses.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "metacodable",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SwiftyLab/MetaCodable.git"
}
],
"manifest_display_name" : "OpenAI",
"name" : "OpenAI",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "17.0"
},
{
"name" : "tvos",
"version" : "17.0"
},
{
"name" : "macos",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "10.0"
},
{
"name" : "visionos",
"version" : "1.0"
},
{
"name" : "maccatalyst",
"version" : "17.0"
}
],
"products" : [
{
"name" : "OpenAI",
"targets" : [
"OpenAI"
],
"type" : {
"library" : [
"static"
]
}
}
],
"targets" : [
{
"c99name" : "OpenAI",
"module_type" : "SwiftTarget",
"name" : "OpenAI",
"path" : "src",
"product_dependencies" : [
"MetaCodable",
"HelperCoders"
],
"product_memberships" : [
"OpenAI"
],
"sources" : [
"Conversation.swift",
"Extensions/AsyncBytes+collect.swift",
"Extensions/Collection+safeAccess.swift",
"Models/Config.swift",
"Models/Event.swift",
"Models/File.swift",
"Models/Input.swift",
"Models/Item.swift",
"Models/Message.swift",
"Models/Model.swift",
"Models/Request.swift",
"Models/Response.swift",
"Models/Tool.swift",
"Models/WebhookEvent.swift",
"OpenAI.swift",
"Support/MultiPartData.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/SwiftyLab/MetaCodable.git
[1/105866] Fetching metacodable
Fetched https://github.com/SwiftyLab/MetaCodable.git from cache (9.16s)
Computing version for https://github.com/SwiftyLab/MetaCodable.git
Computed https://github.com/SwiftyLab/MetaCodable.git at 1.5.0 (12.86s)
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/apple/swift-collections.git
[1/16746] Fetching swift-collections
[504/32270] Fetching swift-collections, swift-argument-parser
[19712/103711] Fetching swift-collections, swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-collections.git from cache (2.58s)
[38386/86965] Fetching swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-argument-parser.git from cache (9.55s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (9.64s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.6.1 (10.71s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (1.22s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.1 (3.61s)
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 601.0.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.6.1
Creating working copy for https://github.com/SwiftyLab/MetaCodable.git
Working copy of https://github.com/SwiftyLab/MetaCodable.git resolved at 1.5.0
[1/1] Compiling plugin MetaProtocolCodable
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/53] Write sources
[25/53] Compiling _SwiftSyntaxCShims dummy.c
[26/53] Write swift-version-24593BA9C3E375BF.txt
[28/75] Emitting module SwiftSyntax509
[29/75] Compiling SwiftSyntax601 Empty.swift
[30/75] Emitting module SwiftSyntax601
[31/76] Emitting module InternalCollectionsUtilities
[32/77] Compiling SwiftSyntax510 Empty.swift
[33/77] Emitting module SwiftSyntax510
[34/78] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[35/78] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[36/78] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[37/78] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[38/78] Compiling InternalCollectionsUtilities Integer rank.swift
[39/78] Emitting module SwiftSyntax600
[40/78] Compiling SwiftSyntax600 Empty.swift
[42/79] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[43/79] Compiling InternalCollectionsUtilities UInt+reversed.swift
[44/79] Compiling InternalCollectionsUtilities Descriptions.swift
[45/79] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[46/79] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[47/79] Compiling InternalCollectionsUtilities Debugging.swift
[48/79] Compiling SwiftSyntax509 Empty.swift
[49/79] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[50/79] Compiling InternalCollectionsUtilities _SortedCollection.swift
[53/80] Wrapping AST for SwiftSyntax510 for debugging
[54/80] Wrapping AST for SwiftSyntax601 for debugging
[56/80] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[56/81] Wrapping AST for SwiftSyntax509 for debugging
[57/81] Wrapping AST for SwiftSyntax600 for debugging
[59/145] Wrapping AST for InternalCollectionsUtilities for debugging
[61/200] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[62/200] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[63/200] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[64/200] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[65/200] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[66/200] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[67/200] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[68/207] Compiling OrderedCollections OrderedSet+Initializers.swift
[69/207] Compiling OrderedCollections OrderedSet+Insertions.swift
[70/207] Compiling OrderedCollections OrderedSet+Invariants.swift
[71/207] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[72/207] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[73/207] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[74/207] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[75/207] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[76/207] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[77/207] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[78/207] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[79/207] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[80/207] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[81/207] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[82/207] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[83/207] Compiling OrderedCollections OrderedDictionary.swift
[84/207] Compiling OrderedCollections OrderedSet+Codable.swift
[85/207] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[86/207] Compiling OrderedCollections OrderedSet+Descriptions.swift
[87/207] Compiling OrderedCollections OrderedSet+Diffing.swift
[88/207] Compiling OrderedCollections OrderedSet+Equatable.swift
[89/207] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[90/207] Compiling OrderedCollections OrderedSet+Hashable.swift
[91/207] Compiling OrderedCollections OrderedDictionary+Codable.swift
[92/207] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[93/207] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[94/207] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[95/207] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[96/207] Compiling OrderedCollections OrderedDictionary+Elements.swift
[97/207] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[98/207] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[99/207] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[100/207] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[101/207] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[102/207] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[103/207] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[104/207] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[105/207] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[106/207] Compiling OrderedCollections OrderedDictionary+Values.swift
[116/216] Compiling OrderedCollections _HashTable+Bucket.swift
[117/216] Compiling OrderedCollections _HashTable+BucketIterator.swift
[118/216] Compiling OrderedCollections _HashTable+Constants.swift
[119/216] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[120/216] Compiling OrderedCollections _HashTable+Testing.swift
[121/216] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[122/216] Compiling OrderedCollections _HashTable.swift
[123/216] Compiling OrderedCollections _Hashtable+Header.swift
[124/216] Compiling OrderedCollections OrderedSet+Sendable.swift
[125/216] Compiling OrderedCollections OrderedSet+SubSequence.swift
[126/216] Compiling OrderedCollections OrderedSet+Testing.swift
[127/216] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[128/216] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[129/216] Compiling OrderedCollections OrderedSet.swift
[130/216] Compiling OrderedCollections _UnsafeBitset.swift
[131/216] Emitting module OrderedCollections
[132/217] Wrapping AST for OrderedCollections for debugging
[152/217] Emitting module SwiftSyntax
[169/217] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[170/217] Compiling SwiftSyntax RawSyntaxValidation.swift
[189/217] Compiling SwiftSyntax SyntaxNodesAB.swift
[190/217] Compiling SwiftSyntax SyntaxNodesC.swift
[191/217] Compiling SwiftSyntax SyntaxNodesD.swift
[192/217] Compiling SwiftSyntax SyntaxNodesEF.swift
[193/217] Compiling SwiftSyntax SyntaxNodesGHI.swift
[194/217] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[195/217] Compiling SwiftSyntax SyntaxNodesOP.swift
[196/217] Compiling SwiftSyntax SyntaxNodesQRS.swift
[197/217] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[198/218] Wrapping AST for SwiftSyntax for debugging
[200/276] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[201/276] Compiling SwiftBasicFormat Syntax+Extensions.swift
[202/276] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[203/276] Compiling SwiftDiagnostics Message.swift
[204/277] Compiling SwiftBasicFormat InferIndentation.swift
[205/277] Emitting module SwiftDiagnostics
[206/277] Compiling SwiftDiagnostics Convenience.swift
[207/277] Compiling SwiftDiagnostics Diagnostic.swift
[208/277] Compiling SwiftBasicFormat Indenter.swift
[209/277] Compiling SwiftDiagnostics Note.swift
[210/277] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[211/277] Compiling SwiftDiagnostics ANSIDiagnosticDecorator.swift
[212/277] Compiling SwiftDiagnostics BasicDiagnosticDecorator.swift
[213/277] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[214/277] Compiling SwiftDiagnostics FixIt.swift
[215/277] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[217/278] Emitting module SwiftBasicFormat
[218/278] Compiling SwiftBasicFormat BasicFormat.swift
[219/279] Wrapping AST for SwiftDiagnostics for debugging
[220/279] Wrapping AST for SwiftBasicFormat for debugging
[226/279] Compiling SwiftParser Lookahead.swift
[227/279] Compiling SwiftParser LoopProgressCondition.swift
[228/284] Compiling SwiftParser Modifiers.swift
[229/284] Compiling SwiftParser Names.swift
[230/284] Compiling SwiftParser Nominals.swift
[231/284] Compiling SwiftParser Parameters.swift
[232/284] Compiling SwiftParser ParseSourceFile.swift
[233/284] Compiling SwiftParser Parser.swift
[234/284] Compiling SwiftParser SwiftParserCompatibility.swift
[235/284] Compiling SwiftParser SwiftVersion.swift
[236/284] Compiling SwiftParser SyntaxUtils.swift
[237/284] Compiling SwiftParser TokenConsumer.swift
[238/284] Compiling SwiftParser TokenPrecedence.swift
[239/284] Compiling SwiftParser Patterns.swift
[240/284] Compiling SwiftParser Recovery.swift
[241/284] Compiling SwiftParser Specifiers.swift
[242/284] Compiling SwiftParser Statements.swift
[243/284] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[244/284] Compiling SwiftParser StringLiterals.swift
[245/284] Compiling SwiftParser TokenSpec.swift
[246/284] Compiling SwiftParser TokenSpecSet.swift
[247/284] Compiling SwiftParser TopLevel.swift
[248/284] Compiling SwiftParser TriviaParser.swift
[249/284] Compiling SwiftParser Types.swift
[250/284] Compiling SwiftParser Attributes.swift
[251/284] Compiling SwiftParser Availability.swift
[252/284] Compiling SwiftParser CharacterInfo.swift
[253/284] Compiling SwiftParser CollectionNodes+Parsable.swift
[254/284] Compiling SwiftParser Declarations.swift
[255/284] Compiling SwiftParser Directives.swift
[256/284] Emitting module SwiftParser
[257/284] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[258/284] Compiling SwiftParser Expressions.swift
[259/284] Compiling SwiftParser IncrementalParseTransition.swift
[260/284] Compiling SwiftParser IsValidIdentifier.swift
[261/284] Compiling SwiftParser Cursor.swift
[262/284] Compiling SwiftParser Lexeme.swift
[263/284] Compiling SwiftParser ExperimentalFeatures.swift
[264/284] Compiling SwiftParser IsLexerClassified.swift
[265/284] Compiling SwiftParser LayoutNodes+Parsable.swift
[266/284] Compiling SwiftParser Parser+TokenSpecSet.swift
[267/284] Compiling SwiftParser TokenSpecStaticMembers.swift
[268/285] Wrapping AST for SwiftParser for debugging
[270/308] Compiling SwiftOperators PrecedenceGroup.swift
[271/309] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[272/310] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[273/310] Compiling SwiftOperators PrecedenceGraph.swift
[274/310] Compiling SwiftOperators OperatorTable.swift
[275/310] Compiling SwiftOperators SyntaxSynthesis.swift
[276/310] Compiling SwiftOperators OperatorTable+Semantics.swift
[277/310] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[278/310] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[279/310] Compiling SwiftParserDiagnostics MissingNodesError.swift
[280/310] Compiling SwiftParserDiagnostics MissingTokenError.swift
[281/310] Emitting module SwiftOperators
[282/310] Compiling SwiftOperators OperatorTable+Folding.swift
[284/311] Emitting module SwiftParserDiagnostics
[285/311] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[286/311] Compiling SwiftParserDiagnostics PresenceUtils.swift
[286/311] Wrapping AST for SwiftOperators for debugging
[288/311] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[289/311] Compiling SwiftParserDiagnostics Utils.swift
[290/311] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[295/311] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[296/311] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[297/312] Wrapping AST for SwiftParserDiagnostics for debugging
[299/327] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[300/327] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[301/328] Compiling SwiftSyntaxBuilder Indenter.swift
[302/328] Compiling SwiftSyntaxBuilder ListBuilder.swift
[303/328] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[304/328] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[305/328] Emitting module SwiftSyntaxBuilder
[306/328] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[307/328] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[308/328] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[309/328] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[310/328] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[311/328] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[312/328] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[313/328] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[314/328] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[315/329] Wrapping AST for SwiftSyntaxBuilder for debugging
[317/346] Compiling SwiftSyntaxMacros MemberMacro.swift
[318/346] Compiling SwiftSyntaxMacros PeerMacro.swift
[319/348] Compiling SwiftSyntaxMacros AccessorMacro.swift
[320/348] Compiling SwiftSyntaxMacros AttachedMacro.swift
[321/348] Compiling SwiftSyntaxMacros BodyMacro.swift
[322/348] Compiling SwiftSyntaxMacros Macro.swift
[323/348] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[324/348] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[325/348] Compiling SwiftSyntaxMacros Macro+Format.swift
[326/348] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[327/348] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[328/348] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[329/348] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[330/348] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[331/348] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[332/348] Compiling SwiftSyntaxMacros MacroExpansionDiagnosticMessages.swift
[333/348] Emitting module SwiftSyntaxMacros
[334/348] Compiling SwiftSyntaxMacros PreambleMacro.swift
[335/348] Compiling SwiftSyntaxMacros Syntax+LexicalContext.swift
[336/349] Wrapping AST for SwiftSyntaxMacros for debugging
[338/449] Compiling SwiftSyntaxMacroExpansion MacroSpec.swift
[339/450] Compiling PluginCore AttributableDeclSyntax.swift
[340/450] Compiling PluginCore Attribute.swift
[341/450] Emitting module SwiftSyntaxMacroExpansion
[342/450] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[343/450] Compiling SwiftSyntaxMacroExpansion MacroArgument.swift
[344/450] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[345/450] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[346/450] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[347/450] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[348/451] Wrapping AST for SwiftSyntaxMacroExpansion for debugging
[350/463] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[351/464] Compiling SwiftCompilerPluginMessageHandling CodingUtilities.swift
[352/464] Compiling SwiftCompilerPluginMessageHandling JSON.swift
[353/464] Compiling SwiftCompilerPluginMessageHandling LRUCache.swift
[354/464] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[355/464] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[356/464] Compiling SwiftCompilerPluginMessageHandling StandardIOMessageConnection.swift
[357/464] Compiling PluginCore IgnoredInitialization.swift
[358/464] Compiling PluginCore MemberwiseInitGenerator.swift
[359/464] Compiling PluginCore OptionalInitialization.swift
[360/464] Compiling PluginCore RequiredInitialization.swift
[361/464] Compiling PluginCore RequiredInitializationWithDefaultValue.swift
[362/464] Compiling PluginCore RequiredVariableInitialization.swift
[363/464] Compiling PluginCore VariableInitialization.swift
[364/464] Compiling PluginCore AliasedPropertyVariable.swift
[365/464] Compiling PluginCore AnyPropertyVariable.swift
[366/464] Compiling PluginCore BasicPropertyVariable.swift
[367/464] Compiling PluginCore DecodingFallback.swift
[368/464] Compiling PluginCore DefaultValueVariable.swift
[369/464] Compiling PluginCore HelperCodedVariable.swift
[370/476] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[371/476] Compiling PluginCore InitializationVariable.swift
[372/476] Compiling PluginCore KeyedVariable.swift
[373/476] Compiling PluginCore PropertyVariable.swift
[374/476] Compiling PluginCore StrategyVariable.swift
[375/476] Compiling PluginCore PropertyVariableTreeNode+CodingData.swift
[376/476] Compiling PluginCore PropertyVariableTreeNode+CodingLocation.swift
[377/476] Compiling PluginCore PropertyVariableTreeNode+Generated.swift
[378/476] Compiling PluginCore PropertyVariableTreeNode.swift
[379/476] Compiling PluginCore AssociatedDeclSyntax.swift
[380/476] Compiling PluginCore EnumCaseVariableDeclSyntax.swift
[381/476] Compiling PluginCore MemberGroupSyntax.swift
[382/476] Compiling PluginCore PropertyDeclSyntax.swift
[383/476] Compiling PluginCore DuplicateUsage.swift
[384/476] Compiling PluginCore GroupedVariableDeclaration.swift
[385/476] Compiling PluginCore InvalidCombination.swift
[386/476] Compiling PluginCore InvalidDeclaration.swift
[387/476] Compiling PluginCore MetaCodableMessage.swift
[388/476] Compiling PluginCore StaticVariableDeclaration.swift
[389/476] Compiling PluginCore UninitializedVariableDecl.swift
[390/476] Compiling PluginCore AttributeExpander.swift
[391/476] Compiling PluginCore DeclModifiersGenerator.swift
[392/476] Compiling PluginCore Options.swift
[393/476] Compiling PluginCore ComposedVariable.swift
[394/476] Compiling PluginCore ConditionalCodingVariable.swift
[395/476] Compiling PluginCore AssociatedVariable.swift
[396/476] Compiling PluginCore BasicAssociatedVariable.swift
[397/476] Compiling PluginCore BasicEnumCaseVariable.swift
[398/476] Compiling PluginCore EnumCaseVariable.swift
[399/476] Compiling PluginCore AdjacentlyTaggableSwitcher.swift
[400/476] Compiling PluginCore AdjacentlyTaggedEnumSwitcher.swift
[401/476] Compiling PluginCore AnyEnumSwitcher.swift
[402/476] Compiling PluginCore EnumSwitcherVariable.swift
[403/476] Compiling PluginCore ExternallyTaggedEnumSwitcher.swift
[404/476] Compiling PluginCore InternallyTaggedEnumSwitcher.swift
[405/476] Compiling PluginCore TaggedEnumSwitcherVariable.swift
[406/476] Compiling PluginCore UnTaggedEnumSwitcher.swift
[407/476] Compiling PluginCore AnyInitialization.swift
[408/476] Compiling PluginCore AnyRequiredVariableInitialization.swift
[409/476] Compiling PluginCore DecodedAt.swift
[410/476] Compiling PluginCore EncodedAt.swift
[411/476] Compiling PluginCore KeyPathProvider.swift
[412/476] Compiling PluginCore MemberInit+Expansion.swift
[413/476] Compiling PluginCore MemberInit.swift
[414/476] Compiling PluginCore PeerAttribute.swift
[415/476] Compiling PluginCore AggregatedDiagnosticProducer.swift
[416/476] Compiling PluginCore CombinedUsage.swift
[417/476] Compiling PluginCore ArgumentCountCondition.swift
[418/476] Compiling PluginCore DeclarationCondition.swift
[419/476] Compiling PluginCore DiagnosticCondition.swift
[420/476] Compiling PluginCore ConditionalDiagnosticProducer.swift
[421/476] Compiling PluginCore DiagnosticProducer.swift
[422/476] Compiling PluginCore IgnoreCodingInitialized.swift
[423/476] Compiling PluginCore Inherits.swift
[424/476] Compiling PluginCore StrategyFinder.swift
[425/476] Compiling PluginCore UnTagged.swift
[426/476] Compiling PluginCore CodedAs.swift
[427/476] Compiling PluginCore CodedBy.swift
[428/476] Compiling PluginCore Default.swift
[429/476] Compiling PluginCore IgnoreCoding.swift
[430/476] Compiling PluginCore IgnoreDecoding.swift
[431/476] Compiling PluginCore IgnoreEncoding.swift
[432/476] Compiling PluginCore CodedAt.swift
[433/476] Compiling PluginCore CodedIn.swift
[434/476] Compiling PluginCore ContentAt.swift
[435/476] Emitting module PluginCore
[438/476] Compiling SwiftCompilerPluginMessageHandling JSONDecoding.swift
[439/476] Compiling SwiftCompilerPluginMessageHandling JSONEncoding.swift
[442/476] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[443/476] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[444/476] Compiling PluginCore Decodable+Expansion.swift
[445/476] Compiling PluginCore Decodable.swift
[446/476] Compiling PluginCore AttributeExpander+Encodable.swift
[447/476] Compiling PluginCore Encodable+Expansion.swift
[448/476] Compiling PluginCore Encodable.swift
[453/476] Emitting module SwiftCompilerPluginMessageHandling
[454/477] Wrapping AST for SwiftCompilerPluginMessageHandling for debugging
[456/479] Emitting module SwiftCompilerPlugin
[457/479] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[458/480] Wrapping AST for SwiftCompilerPlugin for debugging
[460/480] Compiling PluginCore VariableSyntax.swift
[461/480] Compiling PluginCore ActorVariable.swift
[462/480] Compiling PluginCore ClassVariable.swift
[463/480] Compiling PluginCore Case.swift
[464/480] Compiling PluginCore CodingKeysMap.swift
[465/480] Compiling PluginCore Key.swift
[466/480] Compiling PluginCore ConstraintGenerator.swift
[467/480] Compiling PluginCore Registration.swift
[468/480] Compiling PluginCore EnumVariable.swift
[469/480] Compiling PluginCore MemberGroup.swift
[470/480] Compiling PluginCore TypeVariable.swift
[471/480] Compiling PluginCore Variable.swift
[472/481] Wrapping AST for PluginCore for debugging
[474/484] Emitting module MacroPlugin
[475/484] Compiling MacroPlugin Plugin.swift
[476/484] Compiling MacroPlugin Definitions.swift
[477/485] Wrapping AST for MacroPlugin for debugging
[478/485] Write Objects.LinkFileList
[479/485] Linking MacroPlugin-tool
[481/507] Compiling MetaCodable DynamicCodableIdentifier+CodingKey.swift
[482/507] Compiling MetaCodable DynamicCodableIdentifier+Expressible.swift
[483/507] Compiling MetaCodable DynamicCodableIdentifier.swift
[484/507] Compiling MetaCodable EncodedAt.swift
[485/507] Compiling MetaCodable HelperCoder.swift
[486/507] Compiling MetaCodable LossySequence.swift
[487/507] Compiling MetaCodable DecodedAt.swift
[488/507] Compiling MetaCodable Default.swift
[489/507] Compiling MetaCodable DynamicCodable.swift
[490/509] Compiling MetaCodable UnTagged.swift
[491/509] Compiling MetaCodable CodedAs.swift
[492/509] Compiling MetaCodable CodedAt.swift
[493/509] Compiling MetaCodable CodedBy.swift
[494/509] Compiling MetaCodable CodedIn.swift
[495/509] Compiling MetaCodable ContentAt.swift
[496/509] Compiling MetaCodable IgnoreCoding.swift
[497/509] Compiling MetaCodable MemberInit.swift
[498/509] Compiling MetaCodable Decodable.swift
[499/509] Compiling MetaCodable Encodable.swift
[500/509] Compiling MetaCodable IgnoreCodingInitialized.swift
[501/509] Emitting module MetaCodable
[502/509] Compiling MetaCodable Codable.swift
[503/509] Compiling MetaCodable CodableCommonStrategy.swift
[504/509] Compiling MetaCodable CodingKeys.swift
[505/510] Wrapping AST for MetaCodable for debugging
[507/524] Compiling HelperCoders SequenceCoderConfiguration.swift
[508/524] Compiling HelperCoders HelperCoderStrategy.swift
[509/524] Compiling HelperCoders DefaultSequenceElementCoding.swift
[510/524] Compiling HelperCoders SequenceCoder.swift
[511/525] Compiling HelperCoders ValueCoder.swift
[512/525] Compiling HelperCoders NonConformingCoder.swift
[513/525] Compiling HelperCoders PropertyWrapperCoder.swift
[514/525] Compiling HelperCoders DateCoder.swift
[515/525] Compiling HelperCoders Since1970DateCoder.swift
[516/525] Emitting module HelperCoders
[517/525] Compiling HelperCoders Base64Coder.swift
[518/525] Compiling HelperCoders ConditionalCoder.swift
[519/525] Compiling HelperCoders Bool.swift
[520/525] Compiling HelperCoders Number.swift
[521/525] Compiling HelperCoders String.swift
[522/526] Wrapping AST for HelperCoders for debugging
[524/541] Compiling OpenAI Message.swift
[525/541] Compiling OpenAI Model.swift
[526/543] Compiling OpenAI Tool.swift
[527/543] Compiling OpenAI WebhookEvent.swift
[528/543] Compiling OpenAI OpenAI.swift
/host/spi-builder-workspace/src/OpenAI.swift:10:23: error: cannot find type 'URLRequest' in scope
8 | public enum Error: Swift.Error {
9 | /// The provided request is invalid.
10 | case invalidRequest(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// The response was not a 200 or 400 status
/host/spi-builder-workspace/src/OpenAI.swift:13:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | /// The response was not a 200 or 400 status
13 | case invalidResponse(URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/src/OpenAI.swift:13:8: error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
11 |
12 | /// The response was not a 200 or 400 status
13 | case invalidResponse(URLResponse)
| `- error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
14 | }
15 |
/host/spi-builder-workspace/src/OpenAI.swift:16:23: error: cannot find type 'URLRequest' in scope
14 | }
15 |
16 | private let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 | private let encoder = JSONEncoder()
18 | private let decoder = JSONDecoder()
/host/spi-builder-workspace/src/OpenAI.swift:25:36: error: cannot find type 'URLRequest' in scope
23 | ///
24 | /// - Parameter request: The `URLRequest` to use for the API.
25 | public init(connectingTo request: URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
26 | guard let url = request.url else { throw Error.invalidRequest(request) }
27 |
/host/spi-builder-workspace/src/OpenAI.swift:187:21: error: cannot find type 'URLRequest' in scope
185 | ///
186 | /// - Throws: If the request fails to send or has a non-200 status code.
187 | func send(request: URLRequest) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
188 | let (data, res) = try await URLSession.shared.data(for: request)
189 |
/host/spi-builder-workspace/src/Conversation.swift:184:3: warning: '@concurrent' has been renamed to '@Sendable'
182 | ///
183 | /// - Parameter input: Text, image, or file inputs to the model, used to generate a response.
184 | @concurrent public nonisolated func sendAndWaitForResponses(_ input: Input) async throws {
| `- warning: '@concurrent' has been renamed to '@Sendable'
185 | let request = await Request(
186 | model: config.model,
/host/spi-builder-workspace/src/Conversation.swift:219:3: warning: '@concurrent' has been renamed to '@Sendable'
217 | /// - Parameter file: The file to upload.
218 | /// - Parameter purpose: The intended purpose of the file.
219 | @concurrent public nonisolated func upload(file: File.Upload) async throws -> File {
| `- warning: '@concurrent' has been renamed to '@Sendable'
220 | try await client.upload(file: file, purpose: .userData)
221 | }
/host/spi-builder-workspace/src/OpenAI.swift:203:62: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
201 | ///
202 | /// - Throws: If the request fails to send or has a non-200 status code.
203 | func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
204 | let (data, res) = try await URLSession.shared.bytes(for: request)
205 |
/host/spi-builder-workspace/src/OpenAI.swift:203:23: error: cannot find type 'URLRequest' in scope
201 | ///
202 | /// - Throws: If the request fails to send or has a non-200 status code.
203 | func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
| `- error: cannot find type 'URLRequest' in scope
204 | let (data, res) = try await URLSession.shared.bytes(for: request)
205 |
/host/spi-builder-workspace/src/OpenAI.swift:44:17: error: cannot find 'URLRequest' in scope
42 | /// - Parameter projectId: The project associated with the request.
43 | public convenience init(authToken: String, organizationId: String? = nil, projectId: String? = nil) {
44 | var request = URLRequest(url: URL(string: "https://api.openai.com/")!)
| `- error: cannot find 'URLRequest' in scope
45 |
46 | request.addValue("Bearer \(authToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/src/OpenAI.swift:50:32: error: extra argument 'connectingTo' in call
48 | if let organizationId { request.addValue(organizationId, forHTTPHeaderField: "OpenAI-Organization") }
49 |
50 | try! self.init(connectingTo: request)
| `- error: extra argument 'connectingTo' in call
51 | }
52 |
/host/spi-builder-workspace/src/OpenAI.swift:50:18: error: missing argument for parameter 'authToken' in call
41 | /// - Parameter organizationId: The [organization](https://platform.openai.com/docs/guides/production-best-practices#setting-up-your-organization) associated with the request.
42 | /// - Parameter projectId: The project associated with the request.
43 | public convenience init(authToken: String, organizationId: String? = nil, projectId: String? = nil) {
| `- note: 'init(authToken:organizationId:projectId:)' declared here
44 | var request = URLRequest(url: URL(string: "https://api.openai.com/")!)
45 |
:
48 | if let organizationId { request.addValue(organizationId, forHTTPHeaderField: "OpenAI-Organization") }
49 |
50 | try! self.init(connectingTo: request)
| `- error: missing argument for parameter 'authToken' in call
51 | }
52 |
/host/spi-builder-workspace/src/OpenAI.swift:92:31: error: extraneous argument label 'request:' in call
90 | req.addValue("application/json", forHTTPHeaderField: "Content-Type")
91 |
92 | let bytes = try await stream(request: req)
| `- error: extraneous argument label 'request:' in call
93 |
94 | let (stream, continuation) = AsyncThrowingStream.makeStream(of: Event.self)
/host/spi-builder-workspace/src/OpenAI.swift:188:42: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
186 | /// - Throws: If the request fails to send or has a non-200 status code.
187 | func send(request: URLRequest) async throws -> Data {
188 | let (data, res) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 |
190 | guard let res = res as? HTTPURLResponse else { throw Error.invalidResponse(res) }
/host/spi-builder-workspace/src/OpenAI.swift:204:42: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
202 | /// - Throws: If the request fails to send or has a non-200 status code.
203 | func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
204 | let (data, res) = try await URLSession.shared.bytes(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
205 |
206 | guard let res = res as? HTTPURLResponse else { throw Error.invalidResponse(res) }
/host/spi-builder-workspace/src/Support/MultiPartData.swift:55:11: error: cannot find type 'URLRequest' in scope
53 | }
54 |
55 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
56 | mutating func attach(formData form: FormData) {
57 | httpBody = form.data
[529/543] Compiling OpenAI MultiPartData.swift
/host/spi-builder-workspace/src/OpenAI.swift:10:23: error: cannot find type 'URLRequest' in scope
8 | public enum Error: Swift.Error {
9 | /// The provided request is invalid.
10 | case invalidRequest(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// The response was not a 200 or 400 status
/host/spi-builder-workspace/src/OpenAI.swift:13:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | /// The response was not a 200 or 400 status
13 | case invalidResponse(URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/src/OpenAI.swift:13:8: error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
11 |
12 | /// The response was not a 200 or 400 status
13 | case invalidResponse(URLResponse)
| `- error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
14 | }
15 |
/host/spi-builder-workspace/src/OpenAI.swift:16:23: error: cannot find type 'URLRequest' in scope
14 | }
15 |
16 | private let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 | private let encoder = JSONEncoder()
18 | private let decoder = JSONDecoder()
/host/spi-builder-workspace/src/OpenAI.swift:25:36: error: cannot find type 'URLRequest' in scope
23 | ///
24 | /// - Parameter request: The `URLRequest` to use for the API.
25 | public init(connectingTo request: URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
26 | guard let url = request.url else { throw Error.invalidRequest(request) }
27 |
/host/spi-builder-workspace/src/OpenAI.swift:187:21: error: cannot find type 'URLRequest' in scope
185 | ///
186 | /// - Throws: If the request fails to send or has a non-200 status code.
187 | func send(request: URLRequest) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
188 | let (data, res) = try await URLSession.shared.data(for: request)
189 |
/host/spi-builder-workspace/src/Conversation.swift:184:3: warning: '@concurrent' has been renamed to '@Sendable'
182 | ///
183 | /// - Parameter input: Text, image, or file inputs to the model, used to generate a response.
184 | @concurrent public nonisolated func sendAndWaitForResponses(_ input: Input) async throws {
| `- warning: '@concurrent' has been renamed to '@Sendable'
185 | let request = await Request(
186 | model: config.model,
/host/spi-builder-workspace/src/Conversation.swift:219:3: warning: '@concurrent' has been renamed to '@Sendable'
217 | /// - Parameter file: The file to upload.
218 | /// - Parameter purpose: The intended purpose of the file.
219 | @concurrent public nonisolated func upload(file: File.Upload) async throws -> File {
| `- warning: '@concurrent' has been renamed to '@Sendable'
220 | try await client.upload(file: file, purpose: .userData)
221 | }
/host/spi-builder-workspace/src/OpenAI.swift:203:62: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
201 | ///
202 | /// - Throws: If the request fails to send or has a non-200 status code.
203 | func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
204 | let (data, res) = try await URLSession.shared.bytes(for: request)
205 |
/host/spi-builder-workspace/src/OpenAI.swift:203:23: error: cannot find type 'URLRequest' in scope
201 | ///
202 | /// - Throws: If the request fails to send or has a non-200 status code.
203 | func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
| `- error: cannot find type 'URLRequest' in scope
204 | let (data, res) = try await URLSession.shared.bytes(for: request)
205 |
/host/spi-builder-workspace/src/OpenAI.swift:44:17: error: cannot find 'URLRequest' in scope
42 | /// - Parameter projectId: The project associated with the request.
43 | public convenience init(authToken: String, organizationId: String? = nil, projectId: String? = nil) {
44 | var request = URLRequest(url: URL(string: "https://api.openai.com/")!)
| `- error: cannot find 'URLRequest' in scope
45 |
46 | request.addValue("Bearer \(authToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/src/OpenAI.swift:50:32: error: extra argument 'connectingTo' in call
48 | if let organizationId { request.addValue(organizationId, forHTTPHeaderField: "OpenAI-Organization") }
49 |
50 | try! self.init(connectingTo: request)
| `- error: extra argument 'connectingTo' in call
51 | }
52 |
/host/spi-builder-workspace/src/OpenAI.swift:50:18: error: missing argument for parameter 'authToken' in call
41 | /// - Parameter organizationId: The [organization](https://platform.openai.com/docs/guides/production-best-practices#setting-up-your-organization) associated with the request.
42 | /// - Parameter projectId: The project associated with the request.
43 | public convenience init(authToken: String, organizationId: String? = nil, projectId: String? = nil) {
| `- note: 'init(authToken:organizationId:projectId:)' declared here
44 | var request = URLRequest(url: URL(string: "https://api.openai.com/")!)
45 |
:
48 | if let organizationId { request.addValue(organizationId, forHTTPHeaderField: "OpenAI-Organization") }
49 |
50 | try! self.init(connectingTo: request)
| `- error: missing argument for parameter 'authToken' in call
51 | }
52 |
/host/spi-builder-workspace/src/OpenAI.swift:92:31: error: extraneous argument label 'request:' in call
90 | req.addValue("application/json", forHTTPHeaderField: "Content-Type")
91 |
92 | let bytes = try await stream(request: req)
| `- error: extraneous argument label 'request:' in call
93 |
94 | let (stream, continuation) = AsyncThrowingStream.makeStream(of: Event.self)
/host/spi-builder-workspace/src/OpenAI.swift:188:42: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
186 | /// - Throws: If the request fails to send or has a non-200 status code.
187 | func send(request: URLRequest) async throws -> Data {
188 | let (data, res) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 |
190 | guard let res = res as? HTTPURLResponse else { throw Error.invalidResponse(res) }
/host/spi-builder-workspace/src/OpenAI.swift:204:42: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
202 | /// - Throws: If the request fails to send or has a non-200 status code.
203 | func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
204 | let (data, res) = try await URLSession.shared.bytes(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
205 |
206 | guard let res = res as? HTTPURLResponse else { throw Error.invalidResponse(res) }
/host/spi-builder-workspace/src/Support/MultiPartData.swift:55:11: error: cannot find type 'URLRequest' in scope
53 | }
54 |
55 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
56 | mutating func attach(formData form: FormData) {
57 | httpBody = form.data
[530/543] Compiling OpenAI Request.swift
[531/543] Compiling OpenAI Response.swift
[532/543] Compiling OpenAI Event.swift
[533/543] Compiling OpenAI File.swift
[534/543] Compiling OpenAI Collection+safeAccess.swift
[535/543] Compiling OpenAI Config.swift
[536/543] Compiling OpenAI Input.swift
macro expansion @Codable:11:14: warning: literal value is already handled by previous pattern; consider removing it
`- /host/spi-builder-workspace/src/Models/Item.swift:104:3: note: expanded code originates here
102 | }
103 | }
104 | }
+--- macro expansion @Codable -------------------------------------
| 5 | type = try container.decode(String.self, forKey: CodingKeys.type)
| 6 | switch type {
| 7 | case "message":
| | `- note: first occurrence of identical literal pattern is here
| 8 | let _0: Message.Input
| 9 | _0 = try Message.Input(from: decoder)
| 10 | self = .inputMessage(_0)
| 11 | case "message":
| | `- warning: literal value is already handled by previous pattern; consider removing it
| 12 | let _0: Message.Output
| 13 | _0 = try Message.Output(from: decoder)
+------------------------------------------------------------------
105 |
106 | /// Content items generated by the model.
[537/543] Compiling OpenAI Item.swift
macro expansion @Codable:11:14: warning: literal value is already handled by previous pattern; consider removing it
`- /host/spi-builder-workspace/src/Models/Item.swift:104:3: note: expanded code originates here
102 | }
103 | }
104 | }
+--- macro expansion @Codable -------------------------------------
| 5 | type = try container.decode(String.self, forKey: CodingKeys.type)
| 6 | switch type {
| 7 | case "message":
| | `- note: first occurrence of identical literal pattern is here
| 8 | let _0: Message.Input
| 9 | _0 = try Message.Input(from: decoder)
| 10 | self = .inputMessage(_0)
| 11 | case "message":
| | `- warning: literal value is already handled by previous pattern; consider removing it
| 12 | let _0: Message.Output
| 13 | _0 = try Message.Output(from: decoder)
+------------------------------------------------------------------
105 |
106 | /// Content items generated by the model.
[538/543] Compiling OpenAI Conversation.swift
/host/spi-builder-workspace/src/Conversation.swift:184:3: warning: '@concurrent' has been renamed to '@Sendable'
182 | ///
183 | /// - Parameter input: Text, image, or file inputs to the model, used to generate a response.
184 | @concurrent public nonisolated func sendAndWaitForResponses(_ input: Input) async throws {
| `- warning: '@concurrent' has been renamed to '@Sendable'
185 | let request = await Request(
186 | model: config.model,
/host/spi-builder-workspace/src/Conversation.swift:219:3: warning: '@concurrent' has been renamed to '@Sendable'
217 | /// - Parameter file: The file to upload.
218 | /// - Parameter purpose: The intended purpose of the file.
219 | @concurrent public nonisolated func upload(file: File.Upload) async throws -> File {
| `- warning: '@concurrent' has been renamed to '@Sendable'
220 | try await client.upload(file: file, purpose: .userData)
221 | }
/host/spi-builder-workspace/src/Conversation.swift:4:13: error: unknown attribute 'Observable'
2 |
3 | /// A wrapper around the Responses API for managing a conversation.
4 | @MainActor @Observable public final class Conversation {
| `- error: unknown attribute 'Observable'
5 | /// An entry in the conversation.
6 | public enum Entry: Equatable, Sendable {
/host/spi-builder-workspace/src/OpenAI.swift:25:36: error: cannot find type 'URLRequest' in scope
23 | ///
24 | /// - Parameter request: The `URLRequest` to use for the API.
25 | public init(connectingTo request: URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
26 | guard let url = request.url else { throw Error.invalidRequest(request) }
27 |
/host/spi-builder-workspace/src/Conversation.swift:345:29: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:345:37: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:345:50: warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:345:64: warning: immutable value 'delta' was never used; consider replacing with '_' or removing it
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'delta' was never used; consider replacing with '_' or removing it
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:347:28: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:347:36: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:347:49: warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:347:63: warning: immutable value 'text' was never used; consider replacing with '_' or removing it
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'text' was never used; consider replacing with '_' or removing it
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:349:80: warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
| `- warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
350 | updateItem(index: outputIndex, id: itemId) { item in
351 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:365:57: warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
363 | item = .reasoning(reasoning)
364 | }
365 | case let .reasoningSummaryDelta(itemId, outputIndex, summaryIndex, delta):
| `- warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
366 | updateItem(index: outputIndex, id: itemId) { item in
367 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:365:71: warning: immutable value 'delta' was never used; consider replacing with '_' or removing it
363 | item = .reasoning(reasoning)
364 | }
365 | case let .reasoningSummaryDelta(itemId, outputIndex, summaryIndex, delta):
| `- warning: immutable value 'delta' was never used; consider replacing with '_' or removing it
366 | updateItem(index: outputIndex, id: itemId) { item in
367 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:367:32: warning: variable 'reasoning' was never used; consider replacing with '_' or removing it
365 | case let .reasoningSummaryDelta(itemId, outputIndex, summaryIndex, delta):
366 | updateItem(index: outputIndex, id: itemId) { item in
367 | guard case var .reasoning(reasoning) = item else { return }
| `- warning: variable 'reasoning' was never used; consider replacing with '_' or removing it
368 |
369 | // figure out where to put the reasoning
/host/spi-builder-workspace/src/Conversation.swift:371:56: warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
369 | // figure out where to put the reasoning
370 | }
371 | case let .reasoningSummaryDone(itemId, outputIndex, summaryIndex, text):
| `- warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
372 | updateItem(index: outputIndex, id: itemId) { item in
373 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:371:70: warning: immutable value 'text' was never used; consider replacing with '_' or removing it
369 | // figure out where to put the reasoning
370 | }
371 | case let .reasoningSummaryDone(itemId, outputIndex, summaryIndex, text):
| `- warning: immutable value 'text' was never used; consider replacing with '_' or removing it
372 | updateItem(index: outputIndex, id: itemId) { item in
373 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:373:32: warning: variable 'reasoning' was never used; consider replacing with '_' or removing it
371 | case let .reasoningSummaryDone(itemId, outputIndex, summaryIndex, text):
372 | updateItem(index: outputIndex, id: itemId) { item in
373 | guard case var .reasoning(reasoning) = item else { return }
| `- warning: variable 'reasoning' was never used; consider replacing with '_' or removing it
374 |
375 | // figure out where to put the reasoning
/host/spi-builder-workspace/src/Conversation.swift:449:32: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
447 | case .mcpCallFailed:
448 | break // mcpToolCall does not have a status field we can track
449 | case let .mcpCallInProgress(itemId, outputIndex):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
/host/spi-builder-workspace/src/Conversation.swift:449:40: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
447 | case .mcpCallFailed:
448 | break // mcpToolCall does not have a status field we can track
449 | case let .mcpCallInProgress(itemId, outputIndex):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
/host/spi-builder-workspace/src/Conversation.swift:451:36: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
449 | case let .mcpCallInProgress(itemId, outputIndex):
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
452 | break // mcpListTools does not have a status field we can track
453 | case .mcpListToolsFailed:
/host/spi-builder-workspace/src/Conversation.swift:451:44: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
449 | case let .mcpCallInProgress(itemId, outputIndex):
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
452 | break // mcpListTools does not have a status field we can track
453 | case .mcpListToolsFailed:
/host/spi-builder-workspace/src/Conversation.swift:455:37: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
453 | case .mcpListToolsFailed:
454 | break // mcpListTools does not have a status field we can track
455 | case let .mcpListToolsInProgress(itemId, outputIndex):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
456 | break // mcpListTools does not have a status field we can track
457 | case let .codeInterpreterCallInProgress(itemId, outputIndex):
/host/spi-builder-workspace/src/Conversation.swift:455:45: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
453 | case .mcpListToolsFailed:
454 | break // mcpListTools does not have a status field we can track
455 | case let .mcpListToolsInProgress(itemId, outputIndex):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
456 | break // mcpListTools does not have a status field we can track
457 | case let .codeInterpreterCallInProgress(itemId, outputIndex):
/host/spi-builder-workspace/src/Extensions/AsyncBytes+collect.swift:3:22: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
1 | import Foundation
2 |
3 | extension URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
4 | func collect() async throws -> Data {
5 | var data = Data()
[539/543] Compiling OpenAI AsyncBytes+collect.swift
/host/spi-builder-workspace/src/Conversation.swift:184:3: warning: '@concurrent' has been renamed to '@Sendable'
182 | ///
183 | /// - Parameter input: Text, image, or file inputs to the model, used to generate a response.
184 | @concurrent public nonisolated func sendAndWaitForResponses(_ input: Input) async throws {
| `- warning: '@concurrent' has been renamed to '@Sendable'
185 | let request = await Request(
186 | model: config.model,
/host/spi-builder-workspace/src/Conversation.swift:219:3: warning: '@concurrent' has been renamed to '@Sendable'
217 | /// - Parameter file: The file to upload.
218 | /// - Parameter purpose: The intended purpose of the file.
219 | @concurrent public nonisolated func upload(file: File.Upload) async throws -> File {
| `- warning: '@concurrent' has been renamed to '@Sendable'
220 | try await client.upload(file: file, purpose: .userData)
221 | }
/host/spi-builder-workspace/src/Conversation.swift:4:13: error: unknown attribute 'Observable'
2 |
3 | /// A wrapper around the Responses API for managing a conversation.
4 | @MainActor @Observable public final class Conversation {
| `- error: unknown attribute 'Observable'
5 | /// An entry in the conversation.
6 | public enum Entry: Equatable, Sendable {
/host/spi-builder-workspace/src/OpenAI.swift:25:36: error: cannot find type 'URLRequest' in scope
23 | ///
24 | /// - Parameter request: The `URLRequest` to use for the API.
25 | public init(connectingTo request: URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
26 | guard let url = request.url else { throw Error.invalidRequest(request) }
27 |
/host/spi-builder-workspace/src/Conversation.swift:345:29: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:345:37: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:345:50: warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:345:64: warning: immutable value 'delta' was never used; consider replacing with '_' or removing it
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'delta' was never used; consider replacing with '_' or removing it
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:347:28: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:347:36: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:347:49: warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:347:63: warning: immutable value 'text' was never used; consider replacing with '_' or removing it
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'text' was never used; consider replacing with '_' or removing it
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:349:80: warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
| `- warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
350 | updateItem(index: outputIndex, id: itemId) { item in
351 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:365:57: warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
363 | item = .reasoning(reasoning)
364 | }
365 | case let .reasoningSummaryDelta(itemId, outputIndex, summaryIndex, delta):
| `- warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
366 | updateItem(index: outputIndex, id: itemId) { item in
367 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:365:71: warning: immutable value 'delta' was never used; consider replacing with '_' or removing it
363 | item = .reasoning(reasoning)
364 | }
365 | case let .reasoningSummaryDelta(itemId, outputIndex, summaryIndex, delta):
| `- warning: immutable value 'delta' was never used; consider replacing with '_' or removing it
366 | updateItem(index: outputIndex, id: itemId) { item in
367 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:367:32: warning: variable 'reasoning' was never used; consider replacing with '_' or removing it
365 | case let .reasoningSummaryDelta(itemId, outputIndex, summaryIndex, delta):
366 | updateItem(index: outputIndex, id: itemId) { item in
367 | guard case var .reasoning(reasoning) = item else { return }
| `- warning: variable 'reasoning' was never used; consider replacing with '_' or removing it
368 |
369 | // figure out where to put the reasoning
/host/spi-builder-workspace/src/Conversation.swift:371:56: warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
369 | // figure out where to put the reasoning
370 | }
371 | case let .reasoningSummaryDone(itemId, outputIndex, summaryIndex, text):
| `- warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
372 | updateItem(index: outputIndex, id: itemId) { item in
373 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:371:70: warning: immutable value 'text' was never used; consider replacing with '_' or removing it
369 | // figure out where to put the reasoning
370 | }
371 | case let .reasoningSummaryDone(itemId, outputIndex, summaryIndex, text):
| `- warning: immutable value 'text' was never used; consider replacing with '_' or removing it
372 | updateItem(index: outputIndex, id: itemId) { item in
373 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:373:32: warning: variable 'reasoning' was never used; consider replacing with '_' or removing it
371 | case let .reasoningSummaryDone(itemId, outputIndex, summaryIndex, text):
372 | updateItem(index: outputIndex, id: itemId) { item in
373 | guard case var .reasoning(reasoning) = item else { return }
| `- warning: variable 'reasoning' was never used; consider replacing with '_' or removing it
374 |
375 | // figure out where to put the reasoning
/host/spi-builder-workspace/src/Conversation.swift:449:32: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
447 | case .mcpCallFailed:
448 | break // mcpToolCall does not have a status field we can track
449 | case let .mcpCallInProgress(itemId, outputIndex):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
/host/spi-builder-workspace/src/Conversation.swift:449:40: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
447 | case .mcpCallFailed:
448 | break // mcpToolCall does not have a status field we can track
449 | case let .mcpCallInProgress(itemId, outputIndex):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
/host/spi-builder-workspace/src/Conversation.swift:451:36: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
449 | case let .mcpCallInProgress(itemId, outputIndex):
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
452 | break // mcpListTools does not have a status field we can track
453 | case .mcpListToolsFailed:
/host/spi-builder-workspace/src/Conversation.swift:451:44: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
449 | case let .mcpCallInProgress(itemId, outputIndex):
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
452 | break // mcpListTools does not have a status field we can track
453 | case .mcpListToolsFailed:
/host/spi-builder-workspace/src/Conversation.swift:455:37: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
453 | case .mcpListToolsFailed:
454 | break // mcpListTools does not have a status field we can track
455 | case let .mcpListToolsInProgress(itemId, outputIndex):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
456 | break // mcpListTools does not have a status field we can track
457 | case let .codeInterpreterCallInProgress(itemId, outputIndex):
/host/spi-builder-workspace/src/Conversation.swift:455:45: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
453 | case .mcpListToolsFailed:
454 | break // mcpListTools does not have a status field we can track
455 | case let .mcpListToolsInProgress(itemId, outputIndex):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
456 | break // mcpListTools does not have a status field we can track
457 | case let .codeInterpreterCallInProgress(itemId, outputIndex):
/host/spi-builder-workspace/src/Extensions/AsyncBytes+collect.swift:3:22: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
1 | import Foundation
2 |
3 | extension URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
4 | func collect() async throws -> Data {
5 | var data = Data()
error: emit-module command failed with exit code 1 (use -v to see invocation)
[540/543] Emitting module OpenAI
/host/spi-builder-workspace/src/Conversation.swift:184:3: warning: '@concurrent' has been renamed to '@Sendable'
182 | ///
183 | /// - Parameter input: Text, image, or file inputs to the model, used to generate a response.
184 | @concurrent public nonisolated func sendAndWaitForResponses(_ input: Input) async throws {
| `- warning: '@concurrent' has been renamed to '@Sendable'
185 | let request = await Request(
186 | model: config.model,
/host/spi-builder-workspace/src/Conversation.swift:219:3: warning: '@concurrent' has been renamed to '@Sendable'
217 | /// - Parameter file: The file to upload.
218 | /// - Parameter purpose: The intended purpose of the file.
219 | @concurrent public nonisolated func upload(file: File.Upload) async throws -> File {
| `- warning: '@concurrent' has been renamed to '@Sendable'
220 | try await client.upload(file: file, purpose: .userData)
221 | }
/host/spi-builder-workspace/src/Conversation.swift:4:13: error: unknown attribute 'Observable'
2 |
3 | /// A wrapper around the Responses API for managing a conversation.
4 | @MainActor @Observable public final class Conversation {
| `- error: unknown attribute 'Observable'
5 | /// An entry in the conversation.
6 | public enum Entry: Equatable, Sendable {
/host/spi-builder-workspace/src/Extensions/AsyncBytes+collect.swift:3:22: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
1 | import Foundation
2 |
3 | extension URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
4 | func collect() async throws -> Data {
5 | var data = Data()
/host/spi-builder-workspace/src/OpenAI.swift:10:23: error: cannot find type 'URLRequest' in scope
8 | public enum Error: Swift.Error {
9 | /// The provided request is invalid.
10 | case invalidRequest(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// The response was not a 200 or 400 status
/host/spi-builder-workspace/src/OpenAI.swift:13:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | /// The response was not a 200 or 400 status
13 | case invalidResponse(URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/src/OpenAI.swift:13:8: error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
11 |
12 | /// The response was not a 200 or 400 status
13 | case invalidResponse(URLResponse)
| `- error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
14 | }
15 |
/host/spi-builder-workspace/src/OpenAI.swift:16:23: error: cannot find type 'URLRequest' in scope
14 | }
15 |
16 | private let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 | private let encoder = JSONEncoder()
18 | private let decoder = JSONDecoder()
/host/spi-builder-workspace/src/OpenAI.swift:25:36: error: cannot find type 'URLRequest' in scope
23 | ///
24 | /// - Parameter request: The `URLRequest` to use for the API.
25 | public init(connectingTo request: URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
26 | guard let url = request.url else { throw Error.invalidRequest(request) }
27 |
/host/spi-builder-workspace/src/OpenAI.swift:187:21: error: cannot find type 'URLRequest' in scope
185 | ///
186 | /// - Throws: If the request fails to send or has a non-200 status code.
187 | func send(request: URLRequest) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
188 | let (data, res) = try await URLSession.shared.data(for: request)
189 |
/host/spi-builder-workspace/src/OpenAI.swift:203:62: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
201 | ///
202 | /// - Throws: If the request fails to send or has a non-200 status code.
203 | func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
204 | let (data, res) = try await URLSession.shared.bytes(for: request)
205 |
/host/spi-builder-workspace/src/OpenAI.swift:203:23: error: cannot find type 'URLRequest' in scope
201 | ///
202 | /// - Throws: If the request fails to send or has a non-200 status code.
203 | func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
| `- error: cannot find type 'URLRequest' in scope
204 | let (data, res) = try await URLSession.shared.bytes(for: request)
205 |
/host/spi-builder-workspace/src/Support/MultiPartData.swift:55:11: error: cannot find type 'URLRequest' in scope
53 | }
54 |
55 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
56 | mutating func attach(formData form: FormData) {
57 | httpBody = form.data
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin MetaProtocolCodable
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/30] Write swift-version-24593BA9C3E375BF.txt
[5/52] Emitting module SwiftSyntax600
[6/52] Compiling SwiftSyntax600 Empty.swift
[7/53] Emitting module SwiftSyntax509
[8/53] Compiling SwiftSyntax509 Empty.swift
[9/54] Compiling SwiftSyntax510 Empty.swift
[10/54] Emitting module SwiftSyntax510
[11/55] Compiling SwiftSyntax601 Empty.swift
[12/55] Emitting module SwiftSyntax601
[14/55] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[18/54] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[19/54] Compiling InternalCollectionsUtilities Debugging.swift
[20/54] Compiling InternalCollectionsUtilities Descriptions.swift
[21/54] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[22/53] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[23/53] Compiling InternalCollectionsUtilities Integer rank.swift
[24/53] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[25/53] Compiling InternalCollectionsUtilities UInt+reversed.swift
[26/53] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[27/53] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[28/53] Compiling InternalCollectionsUtilities _SortedCollection.swift
[29/53] Emitting module InternalCollectionsUtilities
[30/53] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[31/53] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[33/172] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[34/172] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[35/172] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[36/172] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[37/172] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[38/172] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[39/172] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[40/179] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[41/179] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[42/179] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[43/179] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[44/179] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[45/179] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[46/179] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[47/179] Compiling OrderedCollections OrderedSet+Initializers.swift
[48/179] Compiling OrderedCollections OrderedSet+Insertions.swift
[49/179] Compiling OrderedCollections OrderedSet+Invariants.swift
[50/179] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[51/179] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[52/179] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[53/179] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[54/179] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[55/179] Compiling OrderedCollections OrderedDictionary.swift
[56/179] Compiling OrderedCollections OrderedSet+Codable.swift
[57/179] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[58/179] Compiling OrderedCollections OrderedSet+Descriptions.swift
[59/179] Compiling OrderedCollections OrderedSet+Diffing.swift
[60/179] Compiling OrderedCollections OrderedSet+Equatable.swift
[61/179] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[62/179] Compiling OrderedCollections OrderedSet+Hashable.swift
[63/179] Compiling OrderedCollections OrderedDictionary+Codable.swift
[64/179] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[65/179] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[66/179] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[67/179] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[68/179] Compiling OrderedCollections OrderedDictionary+Elements.swift
[69/179] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[70/179] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[71/179] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[72/179] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[73/179] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[74/179] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[75/179] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[76/179] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[77/179] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[78/179] Compiling OrderedCollections OrderedDictionary+Values.swift
[79/179] Compiling OrderedCollections _HashTable+Bucket.swift
[80/179] Compiling OrderedCollections _HashTable+BucketIterator.swift
[81/179] Compiling OrderedCollections _HashTable+Constants.swift
[82/179] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[83/179] Compiling OrderedCollections _HashTable+Testing.swift
[84/179] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[85/179] Compiling OrderedCollections _HashTable.swift
[86/179] Compiling OrderedCollections _Hashtable+Header.swift
[87/179] Compiling OrderedCollections OrderedSet+Sendable.swift
[88/179] Compiling OrderedCollections OrderedSet+SubSequence.swift
[89/179] Compiling OrderedCollections OrderedSet+Testing.swift
[90/179] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[91/179] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[92/179] Compiling OrderedCollections OrderedSet.swift
[93/179] Compiling OrderedCollections _UnsafeBitset.swift
[94/179] Emitting module OrderedCollections
[96/179] Emitting module SwiftSyntax
[131/188] Compiling SwiftSyntax TokenSequence.swift
[132/188] Compiling SwiftSyntax TokenSyntax.swift
[160/188] Compiling SwiftSyntax SyntaxNodesAB.swift
[161/188] Compiling SwiftSyntax SyntaxNodesC.swift
[162/188] Compiling SwiftSyntax SyntaxNodesD.swift
[163/188] Compiling SwiftSyntax SyntaxNodesEF.swift
[164/188] Compiling SwiftSyntax SyntaxNodesGHI.swift
[165/188] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[166/188] Compiling SwiftSyntax SyntaxNodesOP.swift
[167/188] Compiling SwiftSyntax SyntaxNodesQRS.swift
[168/188] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[170/205] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[171/246] Compiling SwiftDiagnostics Message.swift
[172/247] Emitting module SwiftDiagnostics
[173/247] Compiling SwiftParser Attributes.swift
[174/247] Compiling SwiftParser Availability.swift
[175/247] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[176/247] Compiling SwiftBasicFormat Syntax+Extensions.swift
[177/247] Compiling SwiftDiagnostics FixIt.swift
[178/247] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[179/247] Compiling SwiftDiagnostics Note.swift
[180/247] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[181/247] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[182/247] Compiling SwiftParser CharacterInfo.swift
[183/247] Compiling SwiftParser CollectionNodes+Parsable.swift
[185/248] Compiling SwiftBasicFormat InferIndentation.swift
[186/248] Compiling SwiftBasicFormat Indenter.swift
[187/247] Emitting module SwiftBasicFormat
[188/247] Compiling SwiftBasicFormat BasicFormat.swift
[189/248] Compiling SwiftParser SwiftParserCompatibility.swift
[190/248] Compiling SwiftParser SwiftVersion.swift
[191/248] Compiling SwiftParser SyntaxUtils.swift
[192/248] Compiling SwiftParser TokenConsumer.swift
[193/248] Compiling SwiftParser TokenPrecedence.swift
[195/252] Compiling SwiftParser TokenSpec.swift
[196/252] Compiling SwiftParser TokenSpecSet.swift
[197/252] Compiling SwiftParser TopLevel.swift
[198/252] Compiling SwiftParser TriviaParser.swift
[199/252] Compiling SwiftParser Types.swift
[200/252] Compiling SwiftParser Modifiers.swift
[201/252] Compiling SwiftParser Names.swift
[202/252] Compiling SwiftParser Nominals.swift
[203/252] Compiling SwiftParser Parameters.swift
[204/252] Compiling SwiftParser ParseSourceFile.swift
[205/252] Compiling SwiftParser Parser.swift
[206/252] Compiling SwiftParser Patterns.swift
[207/252] Compiling SwiftParser Recovery.swift
[208/252] Compiling SwiftParser Specifiers.swift
[209/252] Compiling SwiftParser Statements.swift
[210/252] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[211/252] Compiling SwiftParser StringLiterals.swift
[212/252] Compiling SwiftParser LexemeSequence.swift
[213/252] Compiling SwiftParser Lexer.swift
[214/252] Compiling SwiftParser RegexLiteralLexer.swift
[215/252] Compiling SwiftParser UnicodeScalarExtensions.swift
[216/252] Compiling SwiftParser Lookahead.swift
[217/252] Compiling SwiftParser LoopProgressCondition.swift
[222/252] Compiling SwiftParser Declarations.swift
[223/252] Compiling SwiftParser Directives.swift
[224/252] Emitting module SwiftParser
[225/252] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[226/252] Compiling SwiftParser Expressions.swift
[227/252] Compiling SwiftParser IncrementalParseTransition.swift
[228/252] Compiling SwiftParser IsValidIdentifier.swift
[229/252] Compiling SwiftParser Cursor.swift
[230/252] Compiling SwiftParser Lexeme.swift
[231/252] Compiling SwiftParser ExperimentalFeatures.swift
[232/252] Compiling SwiftParser IsLexerClassified.swift
[233/252] Compiling SwiftParser LayoutNodes+Parsable.swift
[234/252] Compiling SwiftParser Parser+TokenSpecSet.swift
[235/252] Compiling SwiftParser TokenSpecStaticMembers.swift
[237/275] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[238/276] Compiling SwiftOperators PrecedenceGroup.swift
[239/277] Compiling SwiftOperators PrecedenceGraph.swift
[240/277] Compiling SwiftOperators OperatorTable.swift
[241/277] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[242/277] Emitting module SwiftOperators
[243/277] Compiling SwiftOperators OperatorTable+Semantics.swift
[244/277] Compiling SwiftOperators SyntaxSynthesis.swift
[245/277] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[246/277] Compiling SwiftParserDiagnostics PresenceUtils.swift
[247/277] Compiling SwiftOperators OperatorTable+Folding.swift
[248/277] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[249/277] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[250/278] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[251/278] Compiling SwiftParserDiagnostics Utils.swift
[252/278] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[256/277] Compiling SwiftParserDiagnostics MissingNodesError.swift
[257/277] Compiling SwiftParserDiagnostics MissingTokenError.swift
[258/277] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[259/277] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[260/277] Emitting module SwiftParserDiagnostics
[264/292] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[265/292] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[266/293] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[267/293] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[268/293] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[269/293] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[270/293] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[271/293] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[272/293] Compiling SwiftSyntaxBuilder Indenter.swift
[273/293] Compiling SwiftSyntaxBuilder ListBuilder.swift
[274/293] Emitting module SwiftSyntaxBuilder
[275/293] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[276/293] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[277/293] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[278/293] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[279/293] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[281/310] Compiling SwiftSyntaxMacros AccessorMacro.swift
[282/310] Compiling SwiftSyntaxMacros AttachedMacro.swift
[283/310] Compiling SwiftSyntaxMacros BodyMacro.swift
[284/312] Compiling SwiftSyntaxMacros Macro.swift
[285/312] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[286/312] Compiling SwiftSyntaxMacros MemberMacro.swift
[287/312] Compiling SwiftSyntaxMacros PeerMacro.swift
[288/312] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[289/312] Compiling SwiftSyntaxMacros Macro+Format.swift
[290/312] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[291/312] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[292/312] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[293/312] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[294/312] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[295/312] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[296/312] Compiling SwiftSyntaxMacros MacroExpansionDiagnosticMessages.swift
[297/312] Emitting module SwiftSyntaxMacros
[298/312] Compiling SwiftSyntaxMacros PreambleMacro.swift
[299/312] Compiling SwiftSyntaxMacros Syntax+LexicalContext.swift
[301/412] Compiling SwiftSyntaxMacroExpansion MacroSpec.swift
[302/413] Compiling PluginCore IgnoreCodingInitialized.swift
[303/413] Compiling PluginCore Inherits.swift
[304/413] Emitting module SwiftSyntaxMacroExpansion
[305/413] Compiling SwiftSyntaxMacroExpansion MacroArgument.swift
[306/413] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[307/413] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[308/413] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[309/413] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[310/413] Compiling PluginCore DecodedAt.swift
[311/413] Compiling PluginCore EncodedAt.swift
[312/413] Compiling PluginCore KeyPathProvider.swift
[313/413] Compiling PluginCore MemberInit+Expansion.swift
[314/413] Compiling PluginCore MemberInit.swift
[315/413] Compiling PluginCore PeerAttribute.swift
[316/413] Compiling PluginCore AggregatedDiagnosticProducer.swift
[317/413] Compiling PluginCore CombinedUsage.swift
[318/413] Compiling PluginCore ArgumentCountCondition.swift
[319/413] Compiling PluginCore DeclarationCondition.swift
[320/413] Compiling PluginCore DiagnosticCondition.swift
[321/413] Compiling PluginCore ConditionalDiagnosticProducer.swift
[322/413] Compiling PluginCore DiagnosticProducer.swift
[323/425] Compiling PluginCore DuplicateUsage.swift
[324/425] Compiling PluginCore GroupedVariableDeclaration.swift
[325/425] Compiling PluginCore InvalidCombination.swift
[326/425] Compiling PluginCore InvalidDeclaration.swift
[327/425] Compiling PluginCore MetaCodableMessage.swift
[328/425] Compiling PluginCore StaticVariableDeclaration.swift
[329/425] Compiling PluginCore UninitializedVariableDecl.swift
[330/425] Compiling PluginCore AttributeExpander.swift
[331/425] Compiling PluginCore DeclModifiersGenerator.swift
[332/425] Compiling PluginCore Options.swift
[333/425] Compiling PluginCore ComposedVariable.swift
[334/425] Compiling PluginCore ConditionalCodingVariable.swift
[335/425] Compiling PluginCore AssociatedVariable.swift
[336/425] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[337/426] Compiling PluginCore InitializationVariable.swift
[338/426] Compiling PluginCore KeyedVariable.swift
[339/426] Compiling PluginCore PropertyVariable.swift
[340/426] Compiling PluginCore StrategyVariable.swift
[341/426] Compiling PluginCore PropertyVariableTreeNode+CodingData.swift
[342/426] Compiling PluginCore PropertyVariableTreeNode+CodingLocation.swift
[343/426] Compiling PluginCore PropertyVariableTreeNode+Generated.swift
[344/426] Compiling PluginCore PropertyVariableTreeNode.swift
[345/426] Compiling PluginCore AssociatedDeclSyntax.swift
[346/426] Compiling PluginCore EnumCaseVariableDeclSyntax.swift
[347/426] Compiling PluginCore MemberGroupSyntax.swift
[348/426] Compiling PluginCore PropertyDeclSyntax.swift
[350/426] Compiling PluginCore IgnoredInitialization.swift
[351/426] Compiling PluginCore MemberwiseInitGenerator.swift
[352/426] Compiling PluginCore OptionalInitialization.swift
[353/426] Compiling PluginCore RequiredInitialization.swift
[354/426] Compiling PluginCore RequiredInitializationWithDefaultValue.swift
[355/426] Compiling PluginCore RequiredVariableInitialization.swift
[356/426] Compiling PluginCore VariableInitialization.swift
[357/426] Compiling PluginCore AliasedPropertyVariable.swift
[358/426] Compiling PluginCore AnyPropertyVariable.swift
[359/426] Compiling PluginCore BasicPropertyVariable.swift
[360/426] Compiling PluginCore DecodingFallback.swift
[361/426] Compiling PluginCore DefaultValueVariable.swift
[362/426] Compiling PluginCore HelperCodedVariable.swift
[363/426] Compiling PluginCore BasicAssociatedVariable.swift
[364/426] Compiling PluginCore BasicEnumCaseVariable.swift
[365/426] Compiling PluginCore EnumCaseVariable.swift
[366/426] Compiling PluginCore AdjacentlyTaggableSwitcher.swift
[367/426] Compiling PluginCore AdjacentlyTaggedEnumSwitcher.swift
[368/426] Compiling PluginCore AnyEnumSwitcher.swift
[369/426] Compiling PluginCore EnumSwitcherVariable.swift
[370/426] Compiling PluginCore ExternallyTaggedEnumSwitcher.swift
[371/426] Compiling PluginCore InternallyTaggedEnumSwitcher.swift
[372/426] Compiling PluginCore TaggedEnumSwitcherVariable.swift
[373/426] Compiling PluginCore UnTaggedEnumSwitcher.swift
[374/426] Compiling PluginCore AnyInitialization.swift
[375/426] Compiling PluginCore AnyRequiredVariableInitialization.swift
[376/425] Compiling PluginCore AttributableDeclSyntax.swift
[377/425] Compiling PluginCore Attribute.swift
[378/425] Compiling PluginCore Codable+Expansion.swift
[379/425] Compiling PluginCore Codable.swift
[380/425] Compiling PluginCore CodingKeyTransformer.swift
[381/425] Compiling PluginCore CodingKeys.swift
[382/425] Compiling PluginCore Strategy.swift
[383/425] Compiling PluginCore AttributeExpander+Decodable.swift
[384/425] Compiling PluginCore Decodable+Expansion.swift
[385/425] Compiling PluginCore Decodable.swift
[386/425] Compiling PluginCore AttributeExpander+Encodable.swift
[387/425] Compiling PluginCore Encodable+Expansion.swift
[388/425] Compiling PluginCore Encodable.swift
[389/425] Emitting module PluginCore
[392/425] Compiling PluginCore StrategyFinder.swift
[393/425] Compiling PluginCore UnTagged.swift
[394/425] Compiling PluginCore CodedAs.swift
[395/425] Compiling PluginCore CodedBy.swift
[396/425] Compiling PluginCore Default.swift
[397/425] Compiling PluginCore IgnoreCoding.swift
[398/425] Compiling PluginCore IgnoreDecoding.swift
[399/425] Compiling PluginCore IgnoreEncoding.swift
[400/425] Compiling PluginCore CodedAt.swift
[401/425] Compiling PluginCore CodedIn.swift
[402/425] Compiling PluginCore ContentAt.swift
[403/437] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[404/437] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[405/438] Compiling PluginCore VariableSyntax.swift
[406/438] Compiling PluginCore ActorVariable.swift
[407/438] Compiling PluginCore ClassVariable.swift
[408/438] Compiling PluginCore Case.swift
[409/438] Compiling PluginCore CodingKeysMap.swift
[410/438] Compiling PluginCore Key.swift
[411/438] Compiling PluginCore ConstraintGenerator.swift
[412/438] Compiling PluginCore Registration.swift
[413/438] Compiling PluginCore EnumVariable.swift
[414/438] Compiling PluginCore MemberGroup.swift
[415/438] Compiling PluginCore TypeVariable.swift
[416/438] Compiling PluginCore Variable.swift
[417/439] Compiling SwiftCompilerPluginMessageHandling LRUCache.swift
[418/439] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[420/439] Emitting module SwiftCompilerPluginMessageHandling
[421/438] Compiling SwiftCompilerPluginMessageHandling StandardIOMessageConnection.swift
[422/438] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[423/438] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[424/438] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[425/438] Compiling SwiftCompilerPluginMessageHandling CodingUtilities.swift
[426/438] Compiling SwiftCompilerPluginMessageHandling JSON.swift
[427/438] Compiling SwiftCompilerPluginMessageHandling JSONDecoding.swift
[428/438] Compiling SwiftCompilerPluginMessageHandling JSONEncoding.swift
[430/440] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[431/440] Emitting module SwiftCompilerPlugin
[433/443] Compiling MacroPlugin Plugin.swift
[434/443] Compiling MacroPlugin Definitions.swift
[435/443] Emitting module MacroPlugin
[436/443] Write Objects.LinkFileList
[437/443] Linking MacroPlugin-tool
[439/465] Emitting module MetaCodable
[440/467] Compiling MetaCodable IgnoreCoding.swift
[441/467] Compiling MetaCodable MemberInit.swift
[442/467] Compiling MetaCodable Decodable.swift
[443/467] Compiling MetaCodable Encodable.swift
[444/467] Compiling MetaCodable IgnoreCodingInitialized.swift
[445/467] Compiling MetaCodable Codable.swift
[446/467] Compiling MetaCodable CodableCommonStrategy.swift
[447/467] Compiling MetaCodable CodingKeys.swift
[448/467] Compiling MetaCodable EncodedAt.swift
[449/467] Compiling MetaCodable HelperCoder.swift
[450/467] Compiling MetaCodable LossySequence.swift
[451/467] Compiling MetaCodable UnTagged.swift
[452/467] Compiling MetaCodable CodedAs.swift
[453/467] Compiling MetaCodable CodedAt.swift
[454/467] Compiling MetaCodable DynamicCodableIdentifier+CodingKey.swift
[455/467] Compiling MetaCodable DynamicCodableIdentifier+Expressible.swift
[456/467] Compiling MetaCodable DynamicCodableIdentifier.swift
[457/467] Compiling MetaCodable CodedBy.swift
[458/467] Compiling MetaCodable CodedIn.swift
[459/467] Compiling MetaCodable ContentAt.swift
[460/467] Compiling MetaCodable DecodedAt.swift
[461/467] Compiling MetaCodable Default.swift
[462/467] Compiling MetaCodable DynamicCodable.swift
[464/481] Compiling HelperCoders String.swift
[465/482] Compiling HelperCoders NonConformingCoder.swift
[466/482] Compiling HelperCoders PropertyWrapperCoder.swift
[467/482] Compiling HelperCoders Base64Coder.swift
[468/482] Compiling HelperCoders ConditionalCoder.swift
[469/482] Compiling HelperCoders DateCoder.swift
[470/482] Compiling HelperCoders Since1970DateCoder.swift
[471/482] Compiling HelperCoders Bool.swift
[472/482] Compiling HelperCoders Number.swift
[473/482] Compiling HelperCoders SequenceCoderConfiguration.swift
[474/482] Compiling HelperCoders HelperCoderStrategy.swift
[475/482] Compiling HelperCoders ValueCoder.swift
[476/482] Emitting module HelperCoders
[477/482] Compiling HelperCoders DefaultSequenceElementCoding.swift
[478/482] Compiling HelperCoders SequenceCoder.swift
[480/497] Compiling OpenAI Message.swift
[481/497] Compiling OpenAI Model.swift
[482/499] Compiling OpenAI Tool.swift
[483/499] Compiling OpenAI WebhookEvent.swift
[484/499] Compiling OpenAI OpenAI.swift
/host/spi-builder-workspace/src/OpenAI.swift:10:23: error: cannot find type 'URLRequest' in scope
8 | public enum Error: Swift.Error {
9 | /// The provided request is invalid.
10 | case invalidRequest(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// The response was not a 200 or 400 status
/host/spi-builder-workspace/src/OpenAI.swift:13:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | /// The response was not a 200 or 400 status
13 | case invalidResponse(URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/src/OpenAI.swift:13:8: error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
11 |
12 | /// The response was not a 200 or 400 status
13 | case invalidResponse(URLResponse)
| `- error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
14 | }
15 |
/host/spi-builder-workspace/src/OpenAI.swift:16:23: error: cannot find type 'URLRequest' in scope
14 | }
15 |
16 | private let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 | private let encoder = JSONEncoder()
18 | private let decoder = JSONDecoder()
/host/spi-builder-workspace/src/OpenAI.swift:25:36: error: cannot find type 'URLRequest' in scope
23 | ///
24 | /// - Parameter request: The `URLRequest` to use for the API.
25 | public init(connectingTo request: URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
26 | guard let url = request.url else { throw Error.invalidRequest(request) }
27 |
/host/spi-builder-workspace/src/OpenAI.swift:187:21: error: cannot find type 'URLRequest' in scope
185 | ///
186 | /// - Throws: If the request fails to send or has a non-200 status code.
187 | func send(request: URLRequest) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
188 | let (data, res) = try await URLSession.shared.data(for: request)
189 |
/host/spi-builder-workspace/src/Conversation.swift:184:3: warning: '@concurrent' has been renamed to '@Sendable'
182 | ///
183 | /// - Parameter input: Text, image, or file inputs to the model, used to generate a response.
184 | @concurrent public nonisolated func sendAndWaitForResponses(_ input: Input) async throws {
| `- warning: '@concurrent' has been renamed to '@Sendable'
185 | let request = await Request(
186 | model: config.model,
/host/spi-builder-workspace/src/Conversation.swift:219:3: warning: '@concurrent' has been renamed to '@Sendable'
217 | /// - Parameter file: The file to upload.
218 | /// - Parameter purpose: The intended purpose of the file.
219 | @concurrent public nonisolated func upload(file: File.Upload) async throws -> File {
| `- warning: '@concurrent' has been renamed to '@Sendable'
220 | try await client.upload(file: file, purpose: .userData)
221 | }
/host/spi-builder-workspace/src/OpenAI.swift:203:62: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
201 | ///
202 | /// - Throws: If the request fails to send or has a non-200 status code.
203 | func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
204 | let (data, res) = try await URLSession.shared.bytes(for: request)
205 |
/host/spi-builder-workspace/src/OpenAI.swift:203:23: error: cannot find type 'URLRequest' in scope
201 | ///
202 | /// - Throws: If the request fails to send or has a non-200 status code.
203 | func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
| `- error: cannot find type 'URLRequest' in scope
204 | let (data, res) = try await URLSession.shared.bytes(for: request)
205 |
/host/spi-builder-workspace/src/OpenAI.swift:44:17: error: cannot find 'URLRequest' in scope
42 | /// - Parameter projectId: The project associated with the request.
43 | public convenience init(authToken: String, organizationId: String? = nil, projectId: String? = nil) {
44 | var request = URLRequest(url: URL(string: "https://api.openai.com/")!)
| `- error: cannot find 'URLRequest' in scope
45 |
46 | request.addValue("Bearer \(authToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/src/OpenAI.swift:50:32: error: extra argument 'connectingTo' in call
48 | if let organizationId { request.addValue(organizationId, forHTTPHeaderField: "OpenAI-Organization") }
49 |
50 | try! self.init(connectingTo: request)
| `- error: extra argument 'connectingTo' in call
51 | }
52 |
/host/spi-builder-workspace/src/OpenAI.swift:50:18: error: missing argument for parameter 'authToken' in call
41 | /// - Parameter organizationId: The [organization](https://platform.openai.com/docs/guides/production-best-practices#setting-up-your-organization) associated with the request.
42 | /// - Parameter projectId: The project associated with the request.
43 | public convenience init(authToken: String, organizationId: String? = nil, projectId: String? = nil) {
| `- note: 'init(authToken:organizationId:projectId:)' declared here
44 | var request = URLRequest(url: URL(string: "https://api.openai.com/")!)
45 |
:
48 | if let organizationId { request.addValue(organizationId, forHTTPHeaderField: "OpenAI-Organization") }
49 |
50 | try! self.init(connectingTo: request)
| `- error: missing argument for parameter 'authToken' in call
51 | }
52 |
/host/spi-builder-workspace/src/OpenAI.swift:92:31: error: extraneous argument label 'request:' in call
90 | req.addValue("application/json", forHTTPHeaderField: "Content-Type")
91 |
92 | let bytes = try await stream(request: req)
| `- error: extraneous argument label 'request:' in call
93 |
94 | let (stream, continuation) = AsyncThrowingStream.makeStream(of: Event.self)
/host/spi-builder-workspace/src/OpenAI.swift:188:42: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
186 | /// - Throws: If the request fails to send or has a non-200 status code.
187 | func send(request: URLRequest) async throws -> Data {
188 | let (data, res) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 |
190 | guard let res = res as? HTTPURLResponse else { throw Error.invalidResponse(res) }
/host/spi-builder-workspace/src/OpenAI.swift:204:42: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
202 | /// - Throws: If the request fails to send or has a non-200 status code.
203 | func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
204 | let (data, res) = try await URLSession.shared.bytes(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
205 |
206 | guard let res = res as? HTTPURLResponse else { throw Error.invalidResponse(res) }
/host/spi-builder-workspace/src/Support/MultiPartData.swift:55:11: error: cannot find type 'URLRequest' in scope
53 | }
54 |
55 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
56 | mutating func attach(formData form: FormData) {
57 | httpBody = form.data
[485/499] Compiling OpenAI MultiPartData.swift
/host/spi-builder-workspace/src/OpenAI.swift:10:23: error: cannot find type 'URLRequest' in scope
8 | public enum Error: Swift.Error {
9 | /// The provided request is invalid.
10 | case invalidRequest(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// The response was not a 200 or 400 status
/host/spi-builder-workspace/src/OpenAI.swift:13:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | /// The response was not a 200 or 400 status
13 | case invalidResponse(URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/src/OpenAI.swift:13:8: error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
11 |
12 | /// The response was not a 200 or 400 status
13 | case invalidResponse(URLResponse)
| `- error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
14 | }
15 |
/host/spi-builder-workspace/src/OpenAI.swift:16:23: error: cannot find type 'URLRequest' in scope
14 | }
15 |
16 | private let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 | private let encoder = JSONEncoder()
18 | private let decoder = JSONDecoder()
/host/spi-builder-workspace/src/OpenAI.swift:25:36: error: cannot find type 'URLRequest' in scope
23 | ///
24 | /// - Parameter request: The `URLRequest` to use for the API.
25 | public init(connectingTo request: URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
26 | guard let url = request.url else { throw Error.invalidRequest(request) }
27 |
/host/spi-builder-workspace/src/OpenAI.swift:187:21: error: cannot find type 'URLRequest' in scope
185 | ///
186 | /// - Throws: If the request fails to send or has a non-200 status code.
187 | func send(request: URLRequest) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
188 | let (data, res) = try await URLSession.shared.data(for: request)
189 |
/host/spi-builder-workspace/src/Conversation.swift:184:3: warning: '@concurrent' has been renamed to '@Sendable'
182 | ///
183 | /// - Parameter input: Text, image, or file inputs to the model, used to generate a response.
184 | @concurrent public nonisolated func sendAndWaitForResponses(_ input: Input) async throws {
| `- warning: '@concurrent' has been renamed to '@Sendable'
185 | let request = await Request(
186 | model: config.model,
/host/spi-builder-workspace/src/Conversation.swift:219:3: warning: '@concurrent' has been renamed to '@Sendable'
217 | /// - Parameter file: The file to upload.
218 | /// - Parameter purpose: The intended purpose of the file.
219 | @concurrent public nonisolated func upload(file: File.Upload) async throws -> File {
| `- warning: '@concurrent' has been renamed to '@Sendable'
220 | try await client.upload(file: file, purpose: .userData)
221 | }
/host/spi-builder-workspace/src/OpenAI.swift:203:62: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
201 | ///
202 | /// - Throws: If the request fails to send or has a non-200 status code.
203 | func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
204 | let (data, res) = try await URLSession.shared.bytes(for: request)
205 |
/host/spi-builder-workspace/src/OpenAI.swift:203:23: error: cannot find type 'URLRequest' in scope
201 | ///
202 | /// - Throws: If the request fails to send or has a non-200 status code.
203 | func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
| `- error: cannot find type 'URLRequest' in scope
204 | let (data, res) = try await URLSession.shared.bytes(for: request)
205 |
/host/spi-builder-workspace/src/OpenAI.swift:44:17: error: cannot find 'URLRequest' in scope
42 | /// - Parameter projectId: The project associated with the request.
43 | public convenience init(authToken: String, organizationId: String? = nil, projectId: String? = nil) {
44 | var request = URLRequest(url: URL(string: "https://api.openai.com/")!)
| `- error: cannot find 'URLRequest' in scope
45 |
46 | request.addValue("Bearer \(authToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/src/OpenAI.swift:50:32: error: extra argument 'connectingTo' in call
48 | if let organizationId { request.addValue(organizationId, forHTTPHeaderField: "OpenAI-Organization") }
49 |
50 | try! self.init(connectingTo: request)
| `- error: extra argument 'connectingTo' in call
51 | }
52 |
/host/spi-builder-workspace/src/OpenAI.swift:50:18: error: missing argument for parameter 'authToken' in call
41 | /// - Parameter organizationId: The [organization](https://platform.openai.com/docs/guides/production-best-practices#setting-up-your-organization) associated with the request.
42 | /// - Parameter projectId: The project associated with the request.
43 | public convenience init(authToken: String, organizationId: String? = nil, projectId: String? = nil) {
| `- note: 'init(authToken:organizationId:projectId:)' declared here
44 | var request = URLRequest(url: URL(string: "https://api.openai.com/")!)
45 |
:
48 | if let organizationId { request.addValue(organizationId, forHTTPHeaderField: "OpenAI-Organization") }
49 |
50 | try! self.init(connectingTo: request)
| `- error: missing argument for parameter 'authToken' in call
51 | }
52 |
/host/spi-builder-workspace/src/OpenAI.swift:92:31: error: extraneous argument label 'request:' in call
90 | req.addValue("application/json", forHTTPHeaderField: "Content-Type")
91 |
92 | let bytes = try await stream(request: req)
| `- error: extraneous argument label 'request:' in call
93 |
94 | let (stream, continuation) = AsyncThrowingStream.makeStream(of: Event.self)
/host/spi-builder-workspace/src/OpenAI.swift:188:42: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
186 | /// - Throws: If the request fails to send or has a non-200 status code.
187 | func send(request: URLRequest) async throws -> Data {
188 | let (data, res) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 |
190 | guard let res = res as? HTTPURLResponse else { throw Error.invalidResponse(res) }
/host/spi-builder-workspace/src/OpenAI.swift:204:42: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
202 | /// - Throws: If the request fails to send or has a non-200 status code.
203 | func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
204 | let (data, res) = try await URLSession.shared.bytes(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
205 |
206 | guard let res = res as? HTTPURLResponse else { throw Error.invalidResponse(res) }
/host/spi-builder-workspace/src/Support/MultiPartData.swift:55:11: error: cannot find type 'URLRequest' in scope
53 | }
54 |
55 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
56 | mutating func attach(formData form: FormData) {
57 | httpBody = form.data
[486/499] Compiling OpenAI Request.swift
[487/499] Compiling OpenAI Response.swift
[488/499] Compiling OpenAI Collection+safeAccess.swift
[489/499] Compiling OpenAI Config.swift
[490/499] Compiling OpenAI Conversation.swift
/host/spi-builder-workspace/src/Conversation.swift:184:3: warning: '@concurrent' has been renamed to '@Sendable'
182 | ///
183 | /// - Parameter input: Text, image, or file inputs to the model, used to generate a response.
184 | @concurrent public nonisolated func sendAndWaitForResponses(_ input: Input) async throws {
| `- warning: '@concurrent' has been renamed to '@Sendable'
185 | let request = await Request(
186 | model: config.model,
/host/spi-builder-workspace/src/Conversation.swift:219:3: warning: '@concurrent' has been renamed to '@Sendable'
217 | /// - Parameter file: The file to upload.
218 | /// - Parameter purpose: The intended purpose of the file.
219 | @concurrent public nonisolated func upload(file: File.Upload) async throws -> File {
| `- warning: '@concurrent' has been renamed to '@Sendable'
220 | try await client.upload(file: file, purpose: .userData)
221 | }
/host/spi-builder-workspace/src/Conversation.swift:4:13: error: unknown attribute 'Observable'
2 |
3 | /// A wrapper around the Responses API for managing a conversation.
4 | @MainActor @Observable public final class Conversation {
| `- error: unknown attribute 'Observable'
5 | /// An entry in the conversation.
6 | public enum Entry: Equatable, Sendable {
/host/spi-builder-workspace/src/OpenAI.swift:25:36: error: cannot find type 'URLRequest' in scope
23 | ///
24 | /// - Parameter request: The `URLRequest` to use for the API.
25 | public init(connectingTo request: URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
26 | guard let url = request.url else { throw Error.invalidRequest(request) }
27 |
/host/spi-builder-workspace/src/Conversation.swift:345:29: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:345:37: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:345:50: warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:345:64: warning: immutable value 'delta' was never used; consider replacing with '_' or removing it
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'delta' was never used; consider replacing with '_' or removing it
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:347:28: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:347:36: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:347:49: warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:347:63: warning: immutable value 'text' was never used; consider replacing with '_' or removing it
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'text' was never used; consider replacing with '_' or removing it
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:349:80: warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
| `- warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
350 | updateItem(index: outputIndex, id: itemId) { item in
351 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:365:57: warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
363 | item = .reasoning(reasoning)
364 | }
365 | case let .reasoningSummaryDelta(itemId, outputIndex, summaryIndex, delta):
| `- warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
366 | updateItem(index: outputIndex, id: itemId) { item in
367 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:365:71: warning: immutable value 'delta' was never used; consider replacing with '_' or removing it
363 | item = .reasoning(reasoning)
364 | }
365 | case let .reasoningSummaryDelta(itemId, outputIndex, summaryIndex, delta):
| `- warning: immutable value 'delta' was never used; consider replacing with '_' or removing it
366 | updateItem(index: outputIndex, id: itemId) { item in
367 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:367:32: warning: variable 'reasoning' was never used; consider replacing with '_' or removing it
365 | case let .reasoningSummaryDelta(itemId, outputIndex, summaryIndex, delta):
366 | updateItem(index: outputIndex, id: itemId) { item in
367 | guard case var .reasoning(reasoning) = item else { return }
| `- warning: variable 'reasoning' was never used; consider replacing with '_' or removing it
368 |
369 | // figure out where to put the reasoning
/host/spi-builder-workspace/src/Conversation.swift:371:56: warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
369 | // figure out where to put the reasoning
370 | }
371 | case let .reasoningSummaryDone(itemId, outputIndex, summaryIndex, text):
| `- warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
372 | updateItem(index: outputIndex, id: itemId) { item in
373 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:371:70: warning: immutable value 'text' was never used; consider replacing with '_' or removing it
369 | // figure out where to put the reasoning
370 | }
371 | case let .reasoningSummaryDone(itemId, outputIndex, summaryIndex, text):
| `- warning: immutable value 'text' was never used; consider replacing with '_' or removing it
372 | updateItem(index: outputIndex, id: itemId) { item in
373 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:373:32: warning: variable 'reasoning' was never used; consider replacing with '_' or removing it
371 | case let .reasoningSummaryDone(itemId, outputIndex, summaryIndex, text):
372 | updateItem(index: outputIndex, id: itemId) { item in
373 | guard case var .reasoning(reasoning) = item else { return }
| `- warning: variable 'reasoning' was never used; consider replacing with '_' or removing it
374 |
375 | // figure out where to put the reasoning
/host/spi-builder-workspace/src/Conversation.swift:449:32: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
447 | case .mcpCallFailed:
448 | break // mcpToolCall does not have a status field we can track
449 | case let .mcpCallInProgress(itemId, outputIndex):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
/host/spi-builder-workspace/src/Conversation.swift:449:40: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
447 | case .mcpCallFailed:
448 | break // mcpToolCall does not have a status field we can track
449 | case let .mcpCallInProgress(itemId, outputIndex):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
/host/spi-builder-workspace/src/Conversation.swift:451:36: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
449 | case let .mcpCallInProgress(itemId, outputIndex):
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
452 | break // mcpListTools does not have a status field we can track
453 | case .mcpListToolsFailed:
/host/spi-builder-workspace/src/Conversation.swift:451:44: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
449 | case let .mcpCallInProgress(itemId, outputIndex):
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
452 | break // mcpListTools does not have a status field we can track
453 | case .mcpListToolsFailed:
/host/spi-builder-workspace/src/Conversation.swift:455:37: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
453 | case .mcpListToolsFailed:
454 | break // mcpListTools does not have a status field we can track
455 | case let .mcpListToolsInProgress(itemId, outputIndex):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
456 | break // mcpListTools does not have a status field we can track
457 | case let .codeInterpreterCallInProgress(itemId, outputIndex):
/host/spi-builder-workspace/src/Conversation.swift:455:45: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
453 | case .mcpListToolsFailed:
454 | break // mcpListTools does not have a status field we can track
455 | case let .mcpListToolsInProgress(itemId, outputIndex):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
456 | break // mcpListTools does not have a status field we can track
457 | case let .codeInterpreterCallInProgress(itemId, outputIndex):
/host/spi-builder-workspace/src/Extensions/AsyncBytes+collect.swift:3:22: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
1 | import Foundation
2 |
3 | extension URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
4 | func collect() async throws -> Data {
5 | var data = Data()
[491/499] Compiling OpenAI AsyncBytes+collect.swift
/host/spi-builder-workspace/src/Conversation.swift:184:3: warning: '@concurrent' has been renamed to '@Sendable'
182 | ///
183 | /// - Parameter input: Text, image, or file inputs to the model, used to generate a response.
184 | @concurrent public nonisolated func sendAndWaitForResponses(_ input: Input) async throws {
| `- warning: '@concurrent' has been renamed to '@Sendable'
185 | let request = await Request(
186 | model: config.model,
/host/spi-builder-workspace/src/Conversation.swift:219:3: warning: '@concurrent' has been renamed to '@Sendable'
217 | /// - Parameter file: The file to upload.
218 | /// - Parameter purpose: The intended purpose of the file.
219 | @concurrent public nonisolated func upload(file: File.Upload) async throws -> File {
| `- warning: '@concurrent' has been renamed to '@Sendable'
220 | try await client.upload(file: file, purpose: .userData)
221 | }
/host/spi-builder-workspace/src/Conversation.swift:4:13: error: unknown attribute 'Observable'
2 |
3 | /// A wrapper around the Responses API for managing a conversation.
4 | @MainActor @Observable public final class Conversation {
| `- error: unknown attribute 'Observable'
5 | /// An entry in the conversation.
6 | public enum Entry: Equatable, Sendable {
/host/spi-builder-workspace/src/OpenAI.swift:25:36: error: cannot find type 'URLRequest' in scope
23 | ///
24 | /// - Parameter request: The `URLRequest` to use for the API.
25 | public init(connectingTo request: URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
26 | guard let url = request.url else { throw Error.invalidRequest(request) }
27 |
/host/spi-builder-workspace/src/Conversation.swift:345:29: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:345:37: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:345:50: warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:345:64: warning: immutable value 'delta' was never used; consider replacing with '_' or removing it
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'delta' was never used; consider replacing with '_' or removing it
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:347:28: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:347:36: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:347:49: warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:347:63: warning: immutable value 'text' was never used; consider replacing with '_' or removing it
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'text' was never used; consider replacing with '_' or removing it
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:349:80: warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
| `- warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
350 | updateItem(index: outputIndex, id: itemId) { item in
351 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:365:57: warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
363 | item = .reasoning(reasoning)
364 | }
365 | case let .reasoningSummaryDelta(itemId, outputIndex, summaryIndex, delta):
| `- warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
366 | updateItem(index: outputIndex, id: itemId) { item in
367 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:365:71: warning: immutable value 'delta' was never used; consider replacing with '_' or removing it
363 | item = .reasoning(reasoning)
364 | }
365 | case let .reasoningSummaryDelta(itemId, outputIndex, summaryIndex, delta):
| `- warning: immutable value 'delta' was never used; consider replacing with '_' or removing it
366 | updateItem(index: outputIndex, id: itemId) { item in
367 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:367:32: warning: variable 'reasoning' was never used; consider replacing with '_' or removing it
365 | case let .reasoningSummaryDelta(itemId, outputIndex, summaryIndex, delta):
366 | updateItem(index: outputIndex, id: itemId) { item in
367 | guard case var .reasoning(reasoning) = item else { return }
| `- warning: variable 'reasoning' was never used; consider replacing with '_' or removing it
368 |
369 | // figure out where to put the reasoning
/host/spi-builder-workspace/src/Conversation.swift:371:56: warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
369 | // figure out where to put the reasoning
370 | }
371 | case let .reasoningSummaryDone(itemId, outputIndex, summaryIndex, text):
| `- warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it
372 | updateItem(index: outputIndex, id: itemId) { item in
373 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:371:70: warning: immutable value 'text' was never used; consider replacing with '_' or removing it
369 | // figure out where to put the reasoning
370 | }
371 | case let .reasoningSummaryDone(itemId, outputIndex, summaryIndex, text):
| `- warning: immutable value 'text' was never used; consider replacing with '_' or removing it
372 | updateItem(index: outputIndex, id: itemId) { item in
373 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:373:32: warning: variable 'reasoning' was never used; consider replacing with '_' or removing it
371 | case let .reasoningSummaryDone(itemId, outputIndex, summaryIndex, text):
372 | updateItem(index: outputIndex, id: itemId) { item in
373 | guard case var .reasoning(reasoning) = item else { return }
| `- warning: variable 'reasoning' was never used; consider replacing with '_' or removing it
374 |
375 | // figure out where to put the reasoning
/host/spi-builder-workspace/src/Conversation.swift:449:32: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
447 | case .mcpCallFailed:
448 | break // mcpToolCall does not have a status field we can track
449 | case let .mcpCallInProgress(itemId, outputIndex):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
/host/spi-builder-workspace/src/Conversation.swift:449:40: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
447 | case .mcpCallFailed:
448 | break // mcpToolCall does not have a status field we can track
449 | case let .mcpCallInProgress(itemId, outputIndex):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
/host/spi-builder-workspace/src/Conversation.swift:451:36: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
449 | case let .mcpCallInProgress(itemId, outputIndex):
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
452 | break // mcpListTools does not have a status field we can track
453 | case .mcpListToolsFailed:
/host/spi-builder-workspace/src/Conversation.swift:451:44: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
449 | case let .mcpCallInProgress(itemId, outputIndex):
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
452 | break // mcpListTools does not have a status field we can track
453 | case .mcpListToolsFailed:
/host/spi-builder-workspace/src/Conversation.swift:455:37: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
453 | case .mcpListToolsFailed:
454 | break // mcpListTools does not have a status field we can track
455 | case let .mcpListToolsInProgress(itemId, outputIndex):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it
456 | break // mcpListTools does not have a status field we can track
457 | case let .codeInterpreterCallInProgress(itemId, outputIndex):
/host/spi-builder-workspace/src/Conversation.swift:455:45: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
453 | case .mcpListToolsFailed:
454 | break // mcpListTools does not have a status field we can track
455 | case let .mcpListToolsInProgress(itemId, outputIndex):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it
456 | break // mcpListTools does not have a status field we can track
457 | case let .codeInterpreterCallInProgress(itemId, outputIndex):
/host/spi-builder-workspace/src/Extensions/AsyncBytes+collect.swift:3:22: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
1 | import Foundation
2 |
3 | extension URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
4 | func collect() async throws -> Data {
5 | var data = Data()
[492/499] Compiling OpenAI Input.swift
macro expansion @Codable:11:14: warning: literal value is already handled by previous pattern; consider removing it
`- /host/spi-builder-workspace/src/Models/Item.swift:104:3: note: expanded code originates here
102 | }
103 | }
104 | }
+--- macro expansion @Codable -------------------------------------
| 5 | type = try container.decode(String.self, forKey: CodingKeys.type)
| 6 | switch type {
| 7 | case "message":
| | `- note: first occurrence of identical literal pattern is here
| 8 | let _0: Message.Input
| 9 | _0 = try Message.Input(from: decoder)
| 10 | self = .inputMessage(_0)
| 11 | case "message":
| | `- warning: literal value is already handled by previous pattern; consider removing it
| 12 | let _0: Message.Output
| 13 | _0 = try Message.Output(from: decoder)
+------------------------------------------------------------------
105 |
106 | /// Content items generated by the model.
[493/499] Compiling OpenAI Item.swift
macro expansion @Codable:11:14: warning: literal value is already handled by previous pattern; consider removing it
`- /host/spi-builder-workspace/src/Models/Item.swift:104:3: note: expanded code originates here
102 | }
103 | }
104 | }
+--- macro expansion @Codable -------------------------------------
| 5 | type = try container.decode(String.self, forKey: CodingKeys.type)
| 6 | switch type {
| 7 | case "message":
| | `- note: first occurrence of identical literal pattern is here
| 8 | let _0: Message.Input
| 9 | _0 = try Message.Input(from: decoder)
| 10 | self = .inputMessage(_0)
| 11 | case "message":
| | `- warning: literal value is already handled by previous pattern; consider removing it
| 12 | let _0: Message.Output
| 13 | _0 = try Message.Output(from: decoder)
+------------------------------------------------------------------
105 |
106 | /// Content items generated by the model.
[494/499] Compiling OpenAI Event.swift
[495/499] Compiling OpenAI File.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[496/499] Emitting module OpenAI
/host/spi-builder-workspace/src/Conversation.swift:184:3: warning: '@concurrent' has been renamed to '@Sendable'
182 | ///
183 | /// - Parameter input: Text, image, or file inputs to the model, used to generate a response.
184 | @concurrent public nonisolated func sendAndWaitForResponses(_ input: Input) async throws {
| `- warning: '@concurrent' has been renamed to '@Sendable'
185 | let request = await Request(
186 | model: config.model,
/host/spi-builder-workspace/src/Conversation.swift:219:3: warning: '@concurrent' has been renamed to '@Sendable'
217 | /// - Parameter file: The file to upload.
218 | /// - Parameter purpose: The intended purpose of the file.
219 | @concurrent public nonisolated func upload(file: File.Upload) async throws -> File {
| `- warning: '@concurrent' has been renamed to '@Sendable'
220 | try await client.upload(file: file, purpose: .userData)
221 | }
/host/spi-builder-workspace/src/Conversation.swift:4:13: error: unknown attribute 'Observable'
2 |
3 | /// A wrapper around the Responses API for managing a conversation.
4 | @MainActor @Observable public final class Conversation {
| `- error: unknown attribute 'Observable'
5 | /// An entry in the conversation.
6 | public enum Entry: Equatable, Sendable {
/host/spi-builder-workspace/src/Extensions/AsyncBytes+collect.swift:3:22: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
1 | import Foundation
2 |
3 | extension URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
4 | func collect() async throws -> Data {
5 | var data = Data()
/host/spi-builder-workspace/src/OpenAI.swift:10:23: error: cannot find type 'URLRequest' in scope
8 | public enum Error: Swift.Error {
9 | /// The provided request is invalid.
10 | case invalidRequest(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// The response was not a 200 or 400 status
/host/spi-builder-workspace/src/OpenAI.swift:13:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | /// The response was not a 200 or 400 status
13 | case invalidResponse(URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/src/OpenAI.swift:13:8: error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
11 |
12 | /// The response was not a 200 or 400 status
13 | case invalidResponse(URLResponse)
| `- error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
14 | }
15 |
/host/spi-builder-workspace/src/OpenAI.swift:16:23: error: cannot find type 'URLRequest' in scope
14 | }
15 |
16 | private let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 | private let encoder = JSONEncoder()
18 | private let decoder = JSONDecoder()
/host/spi-builder-workspace/src/OpenAI.swift:25:36: error: cannot find type 'URLRequest' in scope
23 | ///
24 | /// - Parameter request: The `URLRequest` to use for the API.
25 | public init(connectingTo request: URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
26 | guard let url = request.url else { throw Error.invalidRequest(request) }
27 |
/host/spi-builder-workspace/src/OpenAI.swift:187:21: error: cannot find type 'URLRequest' in scope
185 | ///
186 | /// - Throws: If the request fails to send or has a non-200 status code.
187 | func send(request: URLRequest) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
188 | let (data, res) = try await URLSession.shared.data(for: request)
189 |
/host/spi-builder-workspace/src/OpenAI.swift:203:62: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
201 | ///
202 | /// - Throws: If the request fails to send or has a non-200 status code.
203 | func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
204 | let (data, res) = try await URLSession.shared.bytes(for: request)
205 |
/host/spi-builder-workspace/src/OpenAI.swift:203:23: error: cannot find type 'URLRequest' in scope
201 | ///
202 | /// - Throws: If the request fails to send or has a non-200 status code.
203 | func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
| `- error: cannot find type 'URLRequest' in scope
204 | let (data, res) = try await URLSession.shared.bytes(for: request)
205 |
/host/spi-builder-workspace/src/Support/MultiPartData.swift:55:11: error: cannot find type 'URLRequest' in scope
53 | }
54 |
55 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
56 | mutating func attach(formData form: FormData) {
57 | httpBody = form.data
BUILD FAILURE 6.1 wasm