The Swift Package Index logo.Swift Package Index

Build Information

Failed to build OpenAI, reference 1.1.1 (de472c), with Swift 6.3 for Wasm on 16 Apr 2026 13:56:41 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/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.3
Building package at path:  $PWD
https://github.com/m1guelpf/swift-openai-responses.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/SwiftyLab/MetaCodable.git
[1/158250] Fetching metacodable
Fetched https://github.com/SwiftyLab/MetaCodable.git from cache (13.33s)
Computing version for https://github.com/SwiftyLab/MetaCodable.git
Computed https://github.com/SwiftyLab/MetaCodable.git at 1.6.0 (17.29s)
Fetching https://github.com/apple/swift-argument-parser.git
[1/17523] Fetching swift-argument-parser
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/swiftlang/swift-syntax.git
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.33s)
[1/23551] Fetching swift-collections
[5654/98536] Fetching swift-collections, swift-syntax
Fetched https://github.com/apple/swift-collections.git from cache (6.87s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (6.90s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 602.0.0 (13.01s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.7.1 (1.25s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (0.64s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.1
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 602.0.0
Creating working copy for https://github.com/SwiftyLab/MetaCodable.git
Working copy of https://github.com/SwiftyLab/MetaCodable.git resolved at 1.6.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.7.1
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.3-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.3-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz (0.55s)
[1/1] Compiling plugin MetaProtocolCodable
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/22] Write sources
[10/22] Write swift-version-24593BA9C3E375BF.txt
[12/40] Emitting module InternalCollectionsUtilities
[13/42] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[14/42] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[15/42] Compiling InternalCollectionsUtilities _SortedCollection.swift
[16/42] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[17/42] Compiling InternalCollectionsUtilities String+Padding.swift
[18/42] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[19/42] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[20/42] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[21/42] Compiling InternalCollectionsUtilities Integer rank.swift
[22/42] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[23/42] Compiling InternalCollectionsUtilities UInt+reversed.swift
[24/42] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[25/42] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[26/42] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[27/42] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[28/42] Compiling InternalCollectionsUtilities Span+Extras.swift
[29/42] Compiling InternalCollectionsUtilities Debugging.swift
[30/42] Compiling InternalCollectionsUtilities Descriptions.swift
[31/42] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[32/43] Wrapping AST for InternalCollectionsUtilities for debugging
[34/98] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[35/98] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[36/98] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[37/98] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[38/98] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[39/98] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[40/98] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[41/105] Compiling OrderedCollections OrderedDictionary+Codable.swift
[42/105] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[43/105] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[44/105] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[45/105] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[46/105] Compiling OrderedCollections OrderedDictionary+Elements.swift
[47/105] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[48/105] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[49/105] Compiling OrderedCollections OrderedDictionary.swift
[50/105] Compiling OrderedCollections OrderedSet+Codable.swift
[51/105] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[52/105] Compiling OrderedCollections OrderedSet+Descriptions.swift
[53/105] Compiling OrderedCollections OrderedSet+Diffing.swift
[54/105] Compiling OrderedCollections OrderedSet+Equatable.swift
[55/105] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[56/105] Compiling OrderedCollections OrderedSet+Hashable.swift
[57/105] Compiling OrderedCollections OrderedSet+Initializers.swift
[58/105] Compiling OrderedCollections OrderedSet+Insertions.swift
[59/105] Compiling OrderedCollections OrderedSet+Invariants.swift
[60/105] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[61/105] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[62/105] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[63/105] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[64/105] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[65/105] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[66/105] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[67/105] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[68/105] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[69/105] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[70/105] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[71/105] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[72/105] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[73/105] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[74/105] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[75/105] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[76/105] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[77/105] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[78/105] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[79/105] Compiling OrderedCollections OrderedDictionary+Values.swift
[80/105] Compiling OrderedCollections _HashTable+Bucket.swift
[81/105] Compiling OrderedCollections _HashTable+BucketIterator.swift
[82/105] Compiling OrderedCollections _HashTable+Constants.swift
[83/105] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[84/105] Compiling OrderedCollections _HashTable+Testing.swift
[85/105] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[86/105] Compiling OrderedCollections _HashTable.swift
[87/105] Compiling OrderedCollections _Hashtable+Header.swift
[88/105] Emitting module OrderedCollections
[89/105] Compiling OrderedCollections OrderedSet+Sendable.swift
[90/105] Compiling OrderedCollections OrderedSet+SubSequence.swift
[91/105] Compiling OrderedCollections OrderedSet+Testing.swift
[92/105] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[93/105] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[94/105] Compiling OrderedCollections OrderedSet.swift
[95/105] Compiling OrderedCollections _UnsafeBitset.swift
[96/106] Wrapping AST for OrderedCollections for debugging
[98/198] Emitting module PluginCore
[99/210] Compiling PluginCore DiagnosticProducer.swift
[100/210] Compiling PluginCore DuplicateUsage.swift
[101/210] Compiling PluginCore GroupedVariableDeclaration.swift
[102/210] Compiling PluginCore InvalidCombination.swift
[103/210] Compiling PluginCore InvalidDeclaration.swift
[104/210] Compiling PluginCore MetaCodableMessage.swift
[105/210] Compiling PluginCore StaticVariableDeclaration.swift
[106/210] Compiling PluginCore UninitializedVariableDecl.swift
[107/210] Compiling PluginCore AttributeExpander.swift
[108/210] Compiling PluginCore DeclModifiersGenerator.swift
[109/210] Compiling PluginCore Options.swift
[110/210] Compiling PluginCore ComposedVariable.swift
[111/210] Compiling PluginCore ConditionalCodingVariable.swift
[112/210] Compiling PluginCore DecodedAt.swift
[113/210] Compiling PluginCore EncodedAt.swift
[114/210] Compiling PluginCore KeyPathProvider.swift
[115/210] Compiling PluginCore MemberInit+Expansion.swift
[116/210] Compiling PluginCore MemberInit.swift
[117/210] Compiling PluginCore PeerAttribute.swift
[118/210] Compiling PluginCore AggregatedDiagnosticProducer.swift
[119/210] Compiling PluginCore CombinedUsage.swift
[120/210] Compiling PluginCore ArgumentCountCondition.swift
[121/210] Compiling PluginCore DeclarationCondition.swift
[122/210] Compiling PluginCore DiagnosticCondition.swift
[123/210] Compiling PluginCore RawRepresentableEnumCondition.swift
[124/210] Compiling PluginCore ConditionalDiagnosticProducer.swift
[125/210] Compiling PluginCore AnyRequiredVariableInitialization.swift
[126/210] Compiling PluginCore IgnoredInitialization.swift
[127/210] Compiling PluginCore MemberwiseInitGenerator.swift
[128/210] Compiling PluginCore OptionalInitialization.swift
[129/210] Compiling PluginCore RequiredInitialization.swift
[130/210] Compiling PluginCore RequiredInitializationWithDefaultValue.swift
[131/210] Compiling PluginCore RequiredVariableInitialization.swift
[132/210] Compiling PluginCore VariableInitialization.swift
[133/210] Compiling PluginCore AliasedPropertyVariable.swift
[134/210] Compiling PluginCore AnyPropertyVariable.swift
[135/210] Compiling PluginCore BasicPropertyVariable.swift
[136/210] Compiling PluginCore DecodingFallback.swift
[137/210] Compiling PluginCore DefaultValueVariable.swift
[138/210] Compiling PluginCore IgnoreCodingInitialized.swift
[139/210] Compiling PluginCore Inherits.swift
[140/210] Compiling PluginCore StrategyFinder.swift
[141/210] Compiling PluginCore UnTagged.swift
[142/210] Compiling PluginCore CodedAs.swift
[143/210] Compiling PluginCore CodedBy.swift
[144/210] Compiling PluginCore Default.swift
[145/210] Compiling PluginCore IgnoreCoding.swift
[146/210] Compiling PluginCore IgnoreDecoding.swift
[147/210] Compiling PluginCore IgnoreEncoding.swift
[148/210] Compiling PluginCore CodedAt.swift
[149/210] Compiling PluginCore CodedIn.swift
[150/210] Compiling PluginCore ContentAt.swift
[151/210] Compiling PluginCore HelperCodedVariable.swift
[152/210] Compiling PluginCore InitializationVariable.swift
[153/210] Compiling PluginCore KeyedVariable.swift
[154/210] Compiling PluginCore PropertyVariable.swift
[155/210] Compiling PluginCore StrategyVariable.swift
[156/210] Compiling PluginCore PropertyVariableTreeNode+CodingData.swift
[157/210] Compiling PluginCore PropertyVariableTreeNode+CodingLocation.swift
[158/210] Compiling PluginCore PropertyVariableTreeNode+Generated.swift
[159/210] Compiling PluginCore PropertyVariableTreeNode.swift
[160/210] Compiling PluginCore AssociatedDeclSyntax.swift
[161/210] Compiling PluginCore EnumCaseVariableDeclSyntax.swift
[162/210] Compiling PluginCore MemberGroupSyntax.swift
[163/210] Compiling PluginCore PropertyDeclSyntax.swift
[164/210] Compiling PluginCore AssociatedVariable.swift
[165/210] Compiling PluginCore BasicAssociatedVariable.swift
[166/210] Compiling PluginCore BasicEnumCaseVariable.swift
[167/210] Compiling PluginCore EnumCaseVariable.swift
[168/210] Compiling PluginCore AdjacentlyTaggableSwitcher.swift
[169/210] Compiling PluginCore AdjacentlyTaggedEnumSwitcher.swift
[170/210] Compiling PluginCore AnyEnumSwitcher.swift
[171/210] Compiling PluginCore EnumSwitcherVariable.swift
[172/210] Compiling PluginCore ExternallyTaggedEnumSwitcher.swift
[173/210] Compiling PluginCore InternallyTaggedEnumSwitcher.swift
[174/210] Compiling PluginCore TaggedEnumSwitcherVariable.swift
[175/210] Compiling PluginCore UnTaggedEnumSwitcher.swift
[176/210] Compiling PluginCore AnyInitialization.swift
[177/210] Compiling PluginCore AttributableDeclSyntax.swift
[178/210] Compiling PluginCore Attribute.swift
[179/210] Compiling PluginCore Codable+Expansion.swift
[180/210] Compiling PluginCore Codable.swift
[181/210] Compiling PluginCore CodingKeyTransformer.swift
[182/210] Compiling PluginCore CodingKeys.swift
[183/210] Compiling PluginCore Strategy.swift
[184/210] Compiling PluginCore AttributeExpander+Decodable.swift
[185/210] Compiling PluginCore Decodable+Expansion.swift
[186/210] Compiling PluginCore Decodable.swift
[187/210] Compiling PluginCore AttributeExpander+Encodable.swift
[188/210] Compiling PluginCore Encodable+Expansion.swift
[189/210] Compiling PluginCore Encodable.swift
[190/210] Compiling PluginCore VariableSyntax.swift
[191/210] Compiling PluginCore ActorVariable.swift
[192/210] Compiling PluginCore ClassVariable.swift
[193/210] Compiling PluginCore Case.swift
[194/210] Compiling PluginCore CodingKeysMap.swift
[195/210] Compiling PluginCore Key.swift
[196/210] Compiling PluginCore ConstraintGenerator.swift
[197/210] Compiling PluginCore Registration.swift
[198/210] Compiling PluginCore EnumVariable.swift
[199/210] Compiling PluginCore MemberGroup.swift
[200/210] Compiling PluginCore TypeVariable.swift
[201/210] Compiling PluginCore Variable.swift
[202/214] Wrapping AST for PluginCore for debugging
[204/214] Compiling MacroPlugin Plugin.swift
[205/214] Compiling MacroPlugin Definitions.swift
[206/214] Emitting module MacroPlugin
[207/215] Wrapping AST for MacroPlugin for debugging
[208/215] Write Objects.LinkFileList
[209/215] Linking MacroPlugin-tool
[211/238] Emitting module MetaCodable
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[212/241] Compiling MetaCodable Encodable.swift
[213/241] Compiling MetaCodable IgnoreCodingInitialized.swift
[214/241] Compiling MetaCodable UnTagged.swift
[215/241] Compiling MetaCodable LossySequence.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[216/241] Compiling MetaCodable IgnoreCoding.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[217/241] Compiling MetaCodable MemberInit.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[218/241] Compiling MetaCodable CodedAt.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[219/241] Compiling MetaCodable CodedBy.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[220/241] Compiling MetaCodable CodedIn.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[221/241] Compiling MetaCodable ContentAt.swift
[222/241] Compiling MetaCodable DecodedAt.swift
[223/241] Compiling MetaCodable Default.swift
[224/241] Compiling MetaCodable DynamicCodableIdentifier.swift
[225/241] Compiling MetaCodable EncodedAt.swift
[226/241] Compiling MetaCodable HelperCoder.swift
[227/241] Compiling MetaCodable AnyCodableLiteral.swift
[228/241] Compiling MetaCodable CodedAs+Dynamic.swift
[229/241] Compiling MetaCodable CodedAs.swift
[230/241] Compiling MetaCodable DynamicCodable.swift
[231/241] Compiling MetaCodable DynamicCodableIdentifier+CodingKey.swift
[232/241] Compiling MetaCodable DynamicCodableIdentifier+Expressible.swift
[233/241] Compiling MetaCodable Codable.swift
[234/241] Compiling MetaCodable CodableCommonStrategy.swift
[235/241] Compiling MetaCodable CodingKeys.swift
[236/241] Compiling MetaCodable Decodable.swift
[237/242] Wrapping AST for MetaCodable for debugging
[239/256] Compiling HelperCoders String.swift
[240/257] Compiling HelperCoders SequenceCoderConfiguration.swift
[241/257] Compiling HelperCoders HelperCoderStrategy.swift
[242/257] Compiling HelperCoders ValueCoder.swift
[243/257] Compiling HelperCoders DefaultSequenceElementCoding.swift
[244/257] Compiling HelperCoders SequenceCoder.swift
[245/257] Compiling HelperCoders DateCoder.swift
[246/257] Compiling HelperCoders Since1970DateCoder.swift
[247/257] Compiling HelperCoders NonConformingCoder.swift
[248/257] Compiling HelperCoders PropertyWrapperCoder.swift
[249/257] Compiling HelperCoders Base64Coder.swift
[250/257] Compiling HelperCoders ConditionalCoder.swift
[251/257] Emitting module HelperCoders
[252/257] Compiling HelperCoders Bool.swift
[253/257] Compiling HelperCoders Number.swift
[254/258] Wrapping AST for HelperCoders for debugging
[256/273] Compiling OpenAI Message.swift
[257/273] Compiling OpenAI Model.swift
[258/275] 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: warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type 'AnyObject'
 11 |
 12 | 		/// The response was not a 200 or 400 status
 13 | 		case invalidResponse(URLResponse)
    |        `- warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type '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/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
[259/275] 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: warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type 'AnyObject'
 11 |
 12 | 		/// The response was not a 200 or 400 status
 13 | 		case invalidResponse(URLResponse)
    |        `- warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type '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/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
[260/275] Compiling OpenAI Request.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[261/275] Compiling OpenAI Response.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[262/275] Compiling OpenAI Tool.swift
macro expansion @Codable:10:51: warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
`- /host/spi-builder-workspace/src/Models/Tool.swift:645:2: note: expanded code originates here
  7 | /// - **Built-in tools**: Tools that are provided by OpenAI that extend the model's capabilities, like [web search](https://platform.openai.com/docs/guides/tools-web-search) or [file search](https://platform.openai.com/docs/guides/tools-file-search). Learn more about [built-in tools](https://platform.openai.com/docs/guides/tools).
  8 | /// - **Function calls (custom tools)**: Functions that are defined by you, enabling the model to call your own code. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).
  9 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Tool: Equatable, Hashable, Sendable {
    | `- note: in expansion of macro 'Codable' on enum 'Tool' here
 10 | 	public enum Choice: Equatable, Hashable, Sendable {
 11 | 		/// The model will not call any tool and instead generates a message.
    :
643 | 	@CodedAs("local_shell")
644 | 	case localShell
645 | }
    +--- macro expansion @Codable --------------------------------------
    |  8 |             typeContainer = nil
    |  9 |         }
    | 10 |         if let typeContainer = typeContainer, let container = container {
    |    |                                                   `- warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
    | 11 |             let typeString: String?
    | 12 |             do {
    +-------------------------------------------------------------------
646 |
647 | public extension Tool {
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[263/275] Compiling OpenAI WebhookEvent.swift
macro expansion @Codable:10:51: warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
`- /host/spi-builder-workspace/src/Models/Tool.swift:645:2: note: expanded code originates here
  7 | /// - **Built-in tools**: Tools that are provided by OpenAI that extend the model's capabilities, like [web search](https://platform.openai.com/docs/guides/tools-web-search) or [file search](https://platform.openai.com/docs/guides/tools-file-search). Learn more about [built-in tools](https://platform.openai.com/docs/guides/tools).
  8 | /// - **Function calls (custom tools)**: Functions that are defined by you, enabling the model to call your own code. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).
  9 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Tool: Equatable, Hashable, Sendable {
    | `- note: in expansion of macro 'Codable' on enum 'Tool' here
 10 | 	public enum Choice: Equatable, Hashable, Sendable {
 11 | 		/// The model will not call any tool and instead generates a message.
    :
643 | 	@CodedAs("local_shell")
644 | 	case localShell
645 | }
    +--- macro expansion @Codable --------------------------------------
    |  8 |             typeContainer = nil
    |  9 |         }
    | 10 |         if let typeContainer = typeContainer, let container = container {
    |    |                                                   `- warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
    | 11 |             let typeString: String?
    | 12 |             do {
    +-------------------------------------------------------------------
646 |
647 | public extension Tool {
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
error: emit-module command failed with exit code 1 (use -v to see invocation)
[264/275] Compiling OpenAI Event.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[265/275] Compiling OpenAI File.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[266/275] Compiling OpenAI Collection+safeAccess.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[267/275] Compiling OpenAI Config.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[268/275] Compiling OpenAI Input.swift
macro expansion @Codable:24:22: warning: literal value is already handled by previous pattern; consider removing it
`- /host/spi-builder-workspace/src/Models/Item.swift:1103:2: note: expanded code originates here
   9 | 	///
  10 | 	/// Can contain text, images, and audio inputs, as well as previous assistant responses and tool call outputs.
  11 | 	@Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Input: Equatable, Hashable, Sendable {
     |  |- note: in expansion of macro 'Codable' on enum 'Input' here
     |  `- note: in expansion of macro 'Codable' on enum 'Input' here
  12 | 		/// A message input to the model with a role indicating instruction following hierarchy.
  13 | 		///
     :
1101 | 	case input(Input)
1102 | 	case output(Output)
1103 | }
     +--- macro expansion @Codable -------------------------------------
     | 17 |             if let typeString = typeString {
     | 18 |                 switch typeString {
     | 19 |                 case "message":
     |    |                      `- note: first occurrence of identical literal pattern is here
     | 20 |                     let _0: Message.Input
     | 21 |                     _0 = try Message.Input(from: decoder)
     | 22 |                     self = .inputMessage(_0)
     | 23 |                     return
     | 24 |                 case "message":
     |    |                      `- warning: literal value is already handled by previous pattern; consider removing it
     | 25 |                     let _0: Message.Output
     | 26 |                     _0 = try Message.Output(from: decoder)
     +------------------------------------------------------------------
1104 |
1105 | // MARK: - Item.Input Creating helpers
macro expansion @Codable:10:51: warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
`- /host/spi-builder-workspace/src/Models/Item.swift:1103:2: note: expanded code originates here
   9 | 	///
  10 | 	/// Can contain text, images, and audio inputs, as well as previous assistant responses and tool call outputs.
  11 | 	@Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Input: Equatable, Hashable, Sendable {
     |  `- note: in expansion of macro 'Codable' on enum 'Input' here
  12 | 		/// A message input to the model with a role indicating instruction following hierarchy.
  13 | 		///
     :
1101 | 	case input(Input)
1102 | 	case output(Output)
1103 | }
     +--- macro expansion @Codable -------------------------------------
     |  8 |             typeContainer = nil
     |  9 |         }
     | 10 |         if let typeContainer = typeContainer, let container = container {
     |    |                                                   `- warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
     | 11 |             let typeString: String?
     | 12 |             do {
     +------------------------------------------------------------------
1104 |
1105 | // MARK: - Item.Input Creating helpers
macro expansion @Codable:10:51: warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
`- /host/spi-builder-workspace/src/Models/Item.swift:1103:2: note: expanded code originates here
 105 |
 106 | 	/// Content items generated by the model.
 107 | 	@Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Output: Equatable, Hashable, Sendable {
     |  `- note: in expansion of macro 'Codable' on enum 'Output' here
 108 | 		/// The content of the output message.
 109 | 		@Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Content: Equatable, Hashable, Sendable {
     :
1101 | 	case input(Input)
1102 | 	case output(Output)
1103 | }
     +--- macro expansion @Codable -------------------------------------
     |  8 |             typeContainer = nil
     |  9 |         }
     | 10 |         if let typeContainer = typeContainer, let container = container {
     |    |                                                   `- warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
     | 11 |             let typeString: String?
     | 12 |             do {
     +------------------------------------------------------------------
1104 |
1105 | // MARK: - Item.Input Creating helpers
[269/275] Compiling OpenAI Item.swift
macro expansion @Codable:24:22: warning: literal value is already handled by previous pattern; consider removing it
`- /host/spi-builder-workspace/src/Models/Item.swift:1103:2: note: expanded code originates here
   9 | 	///
  10 | 	/// Can contain text, images, and audio inputs, as well as previous assistant responses and tool call outputs.
  11 | 	@Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Input: Equatable, Hashable, Sendable {
     |  |- note: in expansion of macro 'Codable' on enum 'Input' here
     |  `- note: in expansion of macro 'Codable' on enum 'Input' here
  12 | 		/// A message input to the model with a role indicating instruction following hierarchy.
  13 | 		///
     :
1101 | 	case input(Input)
1102 | 	case output(Output)
1103 | }
     +--- macro expansion @Codable -------------------------------------
     | 17 |             if let typeString = typeString {
     | 18 |                 switch typeString {
     | 19 |                 case "message":
     |    |                      `- note: first occurrence of identical literal pattern is here
     | 20 |                     let _0: Message.Input
     | 21 |                     _0 = try Message.Input(from: decoder)
     | 22 |                     self = .inputMessage(_0)
     | 23 |                     return
     | 24 |                 case "message":
     |    |                      `- warning: literal value is already handled by previous pattern; consider removing it
     | 25 |                     let _0: Message.Output
     | 26 |                     _0 = try Message.Output(from: decoder)
     +------------------------------------------------------------------
1104 |
1105 | // MARK: - Item.Input Creating helpers
macro expansion @Codable:10:51: warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
`- /host/spi-builder-workspace/src/Models/Item.swift:1103:2: note: expanded code originates here
   9 | 	///
  10 | 	/// Can contain text, images, and audio inputs, as well as previous assistant responses and tool call outputs.
  11 | 	@Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Input: Equatable, Hashable, Sendable {
     |  `- note: in expansion of macro 'Codable' on enum 'Input' here
  12 | 		/// A message input to the model with a role indicating instruction following hierarchy.
  13 | 		///
     :
1101 | 	case input(Input)
1102 | 	case output(Output)
1103 | }
     +--- macro expansion @Codable -------------------------------------
     |  8 |             typeContainer = nil
     |  9 |         }
     | 10 |         if let typeContainer = typeContainer, let container = container {
     |    |                                                   `- warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
     | 11 |             let typeString: String?
     | 12 |             do {
     +------------------------------------------------------------------
1104 |
1105 | // MARK: - Item.Input Creating helpers
macro expansion @Codable:10:51: warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
`- /host/spi-builder-workspace/src/Models/Item.swift:1103:2: note: expanded code originates here
 105 |
 106 | 	/// Content items generated by the model.
 107 | 	@Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Output: Equatable, Hashable, Sendable {
     |  `- note: in expansion of macro 'Codable' on enum 'Output' here
 108 | 		/// The content of the output message.
 109 | 		@Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Content: Equatable, Hashable, Sendable {
     :
1101 | 	case input(Input)
1102 | 	case output(Output)
1103 | }
     +--- macro expansion @Codable -------------------------------------
     |  8 |             typeContainer = nil
     |  9 |         }
     | 10 |         if let typeContainer = typeContainer, let container = container {
     |    |                                                   `- warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
     | 11 |             let typeString: String?
     | 12 |             do {
     +------------------------------------------------------------------
1104 |
1105 | // MARK: - Item.Input Creating helpers
[270/275] Emitting module OpenAI
/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: warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type 'AnyObject'
 11 |
 12 | 		/// The response was not a 200 or 400 status
 13 | 		case invalidResponse(URLResponse)
    |        `- warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type '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
[271/275] Compiling OpenAI Conversation.swift
/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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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()
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[272/275] Compiling OpenAI AsyncBytes+collect.swift
/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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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 [#no-usage]
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()
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
BUILD FAILURE 6.3 wasm