The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build OpenAI, reference main (110b63), with Swift 6.1 for Wasm on 25 Jun 2025 07:09:42 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/m1guelpf/swift-openai-responses
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 110b63e Fix (#13)
Cloned https://github.com/m1guelpf/swift-openai-responses.git
Revision (git rev-parse @):
110b63eb4141bb01e630f0f662399b66432fa04f
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/m1guelpf/swift-openai-responses.git at main
========================================
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",
        "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",
        "OpenAI.swift",
        "Support/MultiPartData.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/54093] Fetching metacodable
Fetched https://github.com/SwiftyLab/MetaCodable.git from cache (2.77s)
Computing version for https://github.com/SwiftyLab/MetaCodable.git
Computed https://github.com/SwiftyLab/MetaCodable.git at 1.4.0 (4.74s)
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/16650] Fetching swift-collections
[4164/32030] Fetching swift-collections, swift-argument-parser
[27036/102981] Fetching swift-collections, swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-collections.git from cache (1.00s)
[28152/86331] Fetching swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-argument-parser.git from cache (3.79s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (3.83s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.5.1 (4.30s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 600.0.1 (1.95s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.58s)
Creating working copy for https://github.com/SwiftyLab/MetaCodable.git
Working copy of https://github.com/SwiftyLab/MetaCodable.git resolved at 1.4.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.5.1
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 600.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
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:53:53: warning: 'appending' is deprecated: Use `URL` type instead of `Path`.
 51 |
 52 |         // Setup folder
 53 |         let genFolder = context.pluginWorkDirectory.appending(["ProtocolGen"])
    |                                                     `- warning: 'appending' is deprecated: Use `URL` type instead of `Path`.
 54 |         try FileManager.default.createDirectory(
 55 |             atPath: genFolder.string, withIntermediateDirectories: true
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:55:31: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
 53 |         let genFolder = context.pluginWorkDirectory.appending(["ProtocolGen"])
 54 |         try FileManager.default.createDirectory(
 55 |             atPath: genFolder.string, withIntermediateDirectories: true
    |                               `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
 56 |         )
 57 |
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:63:37: warning: 'path' is deprecated: renamed to 'url'
 61 |             return target.sourceFiles(withSuffix: "swift").map { file in
 62 |                 let moduleName = target.moduleName
 63 |                 let fileName = file.path.stem
    |                                     |- warning: 'path' is deprecated: renamed to 'url'
    |                                     `- note: use 'url' instead
 64 |                 let genFileName = "\(moduleName)-\(fileName)-gen.json"
 65 |                 let genFile = genFolder.appending([genFileName])
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:63:42: warning: 'stem' is deprecated: Use `URL` type instead of `Path`.
 61 |             return target.sourceFiles(withSuffix: "swift").map { file in
 62 |                 let moduleName = target.moduleName
 63 |                 let fileName = file.path.stem
    |                                          `- warning: 'stem' is deprecated: Use `URL` type instead of `Path`.
 64 |                 let genFileName = "\(moduleName)-\(fileName)-gen.json"
 65 |                 let genFile = genFolder.appending([genFileName])
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:65:41: warning: 'appending' is deprecated: Use `URL` type instead of `Path`.
 63 |                 let fileName = file.path.stem
 64 |                 let genFileName = "\(moduleName)-\(fileName)-gen.json"
 65 |                 let genFile = genFolder.appending([genFileName])
    |                                         `- warning: 'appending' is deprecated: Use `URL` type instead of `Path`.
 66 |                 intermFiles.append(genFile)
 67 |                 return Command.buildCommand(
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:67:32: warning: 'buildCommand(displayName:executable:arguments:environment:inputFiles:outputFiles:)' is deprecated: Use `URL` type instead of `Path`.
 65 |                 let genFile = genFolder.appending([genFileName])
 66 |                 intermFiles.append(genFile)
 67 |                 return Command.buildCommand(
    |                                `- warning: 'buildCommand(displayName:executable:arguments:environment:inputFiles:outputFiles:)' is deprecated: Use `URL` type instead of `Path`.
 68 |                     displayName: """
 69 |                         Parse source file "\(fileName)" in module "\(moduleName)"
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:71:38: warning: 'path' is deprecated: renamed to 'url'
 69 |                         Parse source file "\(fileName)" in module "\(moduleName)"
 70 |                         """,
 71 |                     executable: tool.path,
    |                                      |- warning: 'path' is deprecated: renamed to 'url'
    |                                      `- note: use 'url' instead
 72 |                     arguments: [
 73 |                         "parse",
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:74:30: warning: 'path' is deprecated: renamed to 'url'
 72 |                     arguments: [
 73 |                         "parse",
 74 |                         file.path.string,
    |                              |- warning: 'path' is deprecated: renamed to 'url'
    |                              `- note: use 'url' instead
 75 |                         "--output",
 76 |                         genFile.string,
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:74:35: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
 72 |                     arguments: [
 73 |                         "parse",
 74 |                         file.path.string,
    |                                   `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
 75 |                         "--output",
 76 |                         genFile.string,
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:76:33: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
 74 |                         file.path.string,
 75 |                         "--output",
 76 |                         genFile.string,
    |                                 `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
 77 |                     ],
 78 |                     inputFiles: [file.path],
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:78:39: warning: 'path' is deprecated: renamed to 'url'
 76 |                         genFile.string,
 77 |                     ],
 78 |                     inputFiles: [file.path],
    |                                       |- warning: 'path' is deprecated: renamed to 'url'
    |                                       `- note: use 'url' instead
 79 |                     outputFiles: [genFile]
 80 |                 )
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:87:33: warning: 'appending' is deprecated: Use `URL` type instead of `Path`.
 85 |         let moduleName = target.moduleName
 86 |         let genFileName = "\(moduleName)+ProtocolHelperCoders.swift"
 87 |         let genPath = genFolder.appending(genFileName)
    |                                 `- warning: 'appending' is deprecated: Use `URL` type instead of `Path`.
 88 |         var genArgs = ["generate", "--output", genPath.string]
 89 |         for `import` in imports {
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:88:56: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
 86 |         let genFileName = "\(moduleName)+ProtocolHelperCoders.swift"
 87 |         let genPath = genFolder.appending(genFileName)
 88 |         var genArgs = ["generate", "--output", genPath.string]
    |                                                        `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
 89 |         for `import` in imports {
 90 |             genArgs.append(contentsOf: ["--module", `import`])
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:93:33: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
 91 |         }
 92 |         for file in intermFiles {
 93 |             genArgs.append(file.string)
    |                                 `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
 94 |         }
 95 |         buildCommands.append(
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:96:14: warning: 'buildCommand(displayName:executable:arguments:environment:inputFiles:outputFiles:)' is deprecated: Use `URL` type instead of `Path`.
 94 |         }
 95 |         buildCommands.append(
 96 |             .buildCommand(
    |              `- warning: 'buildCommand(displayName:executable:arguments:environment:inputFiles:outputFiles:)' is deprecated: Use `URL` type instead of `Path`.
 97 |                 displayName: """
 98 |                     Generate protocol decoding/encoding syntax for "\(moduleName)"
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:100:34: warning: 'path' is deprecated: renamed to 'url'
 98 |                     Generate protocol decoding/encoding syntax for "\(moduleName)"
 99 |                     """,
100 |                 executable: tool.path,
    |                                  |- warning: 'path' is deprecated: renamed to 'url'
    |                                  `- note: use 'url' instead
101 |                 arguments: genArgs,
102 |                 inputFiles: intermFiles,
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/SourceTarget/SwiftPackageTarget.swift:67:42: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
65 |     func configPath(named name: String) throws -> String? {
66 |         let fileManager = FileManager.default
67 |         let directory = module.directory.string
   |                                          `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
68 |         let contents = try fileManager.contentsOfDirectory(atPath: directory)
69 |         let file = contents.first { file in
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/SourceTarget/SwiftPackageTarget.swift:70:24: warning: 'init(_:)' is deprecated: Use `URL` type instead of `Path`.
68 |         let contents = try fileManager.contentsOfDirectory(atPath: directory)
69 |         let file = contents.first { file in
70 |             let path = Path(file)
   |                        `- warning: 'init(_:)' is deprecated: Use `URL` type instead of `Path`.
71 |             return name.lowercased()
72 |                 == path.stem
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/SourceTarget/SwiftPackageTarget.swift:72:25: warning: 'stem' is deprecated: Use `URL` type instead of `Path`.
70 |             let path = Path(file)
71 |             return name.lowercased()
72 |                 == path.stem
   |                         `- warning: 'stem' is deprecated: Use `URL` type instead of `Path`.
73 |                 .components(separatedBy: .alphanumerics.inverted)
74 |                 .joined(separator: "")
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/SourceTarget/SwiftPackageTarget.swift:78:33: warning: 'appending' is deprecated: Use `URL` type instead of `Path`.
76 |         }
77 |         guard let file else { return nil }
78 |         return module.directory.appending([file]).string
   |                                 `- warning: 'appending' is deprecated: Use `URL` type instead of `Path`.
79 |     }
80 | }
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/SourceTarget/SwiftPackageTarget.swift:78:51: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
76 |         }
77 |         guard let file else { return nil }
78 |         return module.directory.appending([file]).string
   |                                                   `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
79 |     }
80 | }
[1/1] Compiling plugin MetaProtocolCodable
[2/2] Compiling plugin GenerateManual
Building for debugging...
[2/50] Write sources
[23/50] Compiling _SwiftSyntaxCShims dummy.c
[24/50] Write swift-version-24593BA9C3E375BF.txt
[26/70] Compiling SwiftSyntax509 Empty.swift
[27/70] Emitting module SwiftSyntax509
[29/71] Emitting module SwiftSyntax510
[30/71] Compiling SwiftSyntax510 Empty.swift
[31/71] Emitting module SwiftSyntax600
[32/71] Compiling SwiftSyntax600 Empty.swift
[33/73] Wrapping AST for SwiftSyntax509 for debugging
[36/73] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[37/73] Compiling InternalCollectionsUtilities _SortedCollection.swift
[38/73] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[39/73] Compiling InternalCollectionsUtilities Debugging.swift
[40/74] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[41/74] Compiling InternalCollectionsUtilities UInt+reversed.swift
[42/74] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[43/74] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[44/74] Emitting module InternalCollectionsUtilities
[45/74] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[46/74] Compiling InternalCollectionsUtilities Integer rank.swift
[47/74] Compiling InternalCollectionsUtilities Descriptions.swift
[48/74] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[49/74] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[49/74] Wrapping AST for SwiftSyntax510 for debugging
[50/74] Wrapping AST for SwiftSyntax600 for debugging
[52/74] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[53/139] Wrapping AST for InternalCollectionsUtilities for debugging
[55/194] Compiling OrderedCollections OrderedDictionary+Codable.swift
[56/194] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[57/194] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[58/194] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[59/194] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[60/194] Compiling OrderedCollections OrderedDictionary+Elements.swift
[61/194] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[62/194] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[63/194] Compiling OrderedCollections OrderedSet+Initializers.swift
[64/194] Compiling OrderedCollections OrderedSet+Insertions.swift
[65/194] Compiling OrderedCollections OrderedSet+Invariants.swift
[66/194] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[67/194] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[68/194] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[69/194] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[70/194] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[71/194] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[72/194] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[73/194] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[74/194] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[75/194] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[76/194] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[77/194] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[78/194] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[79/194] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[80/194] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[81/194] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[82/194] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[83/194] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[84/194] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[85/194] Compiling OrderedCollections OrderedDictionary.swift
[86/194] Compiling OrderedCollections OrderedSet+Codable.swift
[87/194] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[88/194] Compiling OrderedCollections OrderedSet+Descriptions.swift
[89/194] Compiling OrderedCollections OrderedSet+Diffing.swift
[90/194] Compiling OrderedCollections OrderedSet+Equatable.swift
[91/194] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[92/194] Compiling OrderedCollections OrderedSet+Hashable.swift
[93/194] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[94/194] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[95/194] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[96/194] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[97/194] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[98/194] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[99/194] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[100/194] Compiling OrderedCollections OrderedDictionary+Values.swift
[101/201] Compiling OrderedCollections _HashTable+Bucket.swift
[102/201] Compiling OrderedCollections _HashTable+BucketIterator.swift
[103/201] Compiling OrderedCollections _HashTable+Constants.swift
[104/201] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[105/201] Compiling OrderedCollections _HashTable+Testing.swift
[106/201] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[107/201] Compiling OrderedCollections _HashTable.swift
[108/201] Compiling OrderedCollections _Hashtable+Header.swift
[118/209] Emitting module OrderedCollections
[119/209] Compiling OrderedCollections OrderedSet+Sendable.swift
[120/209] Compiling OrderedCollections OrderedSet+SubSequence.swift
[121/209] Compiling OrderedCollections OrderedSet+Testing.swift
[122/209] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[123/209] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[124/209] Compiling OrderedCollections OrderedSet.swift
[125/209] Compiling OrderedCollections _UnsafeBitset.swift
[126/210] Wrapping AST for OrderedCollections for debugging
[146/210] Emitting module SwiftSyntax
[163/210] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[164/210] Compiling SwiftSyntax RawSyntaxNodesC.swift
[183/210] Compiling SwiftSyntax SyntaxNodesC.swift
[184/210] Compiling SwiftSyntax SyntaxNodesD.swift
[185/210] Compiling SwiftSyntax SyntaxNodesEF.swift
[186/210] Compiling SwiftSyntax SyntaxNodesGHI.swift
[187/210] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[188/210] Compiling SwiftSyntax SyntaxNodesOP.swift
[189/210] Compiling SwiftSyntax SyntaxNodesQRS.swift
[190/210] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[191/211] Wrapping AST for SwiftSyntax for debugging
[193/268] Compiling SwiftDiagnostics Message.swift
[194/269] Compiling SwiftDiagnostics Note.swift
[195/269] Compiling SwiftParser Nominals.swift
[196/269] Compiling SwiftParser Parameters.swift
[197/269] Compiling SwiftDiagnostics FixIt.swift
[198/269] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[199/269] Compiling SwiftParser Modifiers.swift
[200/269] Compiling SwiftParser Names.swift
[201/269] Emitting module SwiftDiagnostics
[202/269] Compiling SwiftBasicFormat Syntax+Extensions.swift
[203/269] Compiling SwiftBasicFormat InferIndentation.swift
[204/269] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[205/269] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[206/269] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[207/269] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[208/270] Wrapping AST for SwiftDiagnostics for debugging
[210/270] Emitting module SwiftBasicFormat
[211/270] Compiling SwiftBasicFormat BasicFormat.swift
[212/271] Wrapping AST for SwiftBasicFormat for debugging
[214/271] Emitting module SwiftParser
[215/276] Compiling SwiftParser TokenSpec.swift
[216/276] Compiling SwiftParser TokenSpecSet.swift
[217/276] Compiling SwiftParser TopLevel.swift
[218/276] Compiling SwiftParser TriviaParser.swift
[219/276] Compiling SwiftParser Types.swift
[220/276] Compiling SwiftParser SwiftParserCompatibility.swift
[221/276] Compiling SwiftParser SwiftVersion.swift
[222/276] Compiling SwiftParser SyntaxUtils.swift
[223/276] Compiling SwiftParser TokenConsumer.swift
[224/276] Compiling SwiftParser TokenPrecedence.swift
[225/276] Compiling SwiftParser LexemeSequence.swift
[226/276] Compiling SwiftParser Lexer.swift
[227/276] Compiling SwiftParser RegexLiteralLexer.swift
[228/276] Compiling SwiftParser UnicodeScalarExtensions.swift
[229/276] Compiling SwiftParser Lookahead.swift
[230/276] Compiling SwiftParser LoopProgressCondition.swift
[235/276] Compiling SwiftParser ParseSourceFile.swift
[236/276] Compiling SwiftParser Parser.swift
[237/276] Compiling SwiftParser Patterns.swift
[238/276] Compiling SwiftParser Recovery.swift
[239/276] Compiling SwiftParser Specifiers.swift
[240/276] Compiling SwiftParser Statements.swift
[241/276] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[242/276] Compiling SwiftParser StringLiterals.swift
[243/276] Compiling SwiftParser Attributes.swift
[244/276] Compiling SwiftParser Availability.swift
[245/276] Compiling SwiftParser CharacterInfo.swift
[246/276] Compiling SwiftParser CollectionNodes+Parsable.swift
[247/276] Compiling SwiftParser Declarations.swift
[248/276] Compiling SwiftParser Directives.swift
[249/276] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[250/276] Compiling SwiftParser Expressions.swift
[251/276] Compiling SwiftParser IncrementalParseTransition.swift
[252/276] Compiling SwiftParser IsValidIdentifier.swift
[253/276] Compiling SwiftParser Cursor.swift
[254/276] Compiling SwiftParser Lexeme.swift
[255/276] Compiling SwiftParser ExperimentalFeatures.swift
[256/276] Compiling SwiftParser IsLexerClassified.swift
[257/276] Compiling SwiftParser LayoutNodes+Parsable.swift
[258/276] Compiling SwiftParser Parser+TokenSpecSet.swift
[259/276] Compiling SwiftParser TokenSpecStaticMembers.swift
[260/277] Wrapping AST for SwiftParser for debugging
[262/300] Compiling SwiftOperators PrecedenceGroup.swift
[263/301] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[264/302] Compiling SwiftParserDiagnostics MissingNodesError.swift
[265/302] Compiling SwiftParserDiagnostics MissingTokenError.swift
[266/302] Emitting module SwiftOperators
[267/302] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[268/302] Compiling SwiftOperators PrecedenceGraph.swift
[269/302] Compiling SwiftOperators OperatorTable.swift
[270/302] Compiling SwiftOperators OperatorTable+Semantics.swift
[271/302] Compiling SwiftOperators SyntaxSynthesis.swift
[272/302] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[273/302] Compiling SwiftParserDiagnostics Utils.swift
[274/302] Compiling SwiftOperators OperatorTable+Folding.swift
[275/303] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[277/303] Emitting module SwiftParserDiagnostics
[277/303] Wrapping AST for SwiftOperators for debugging
[283/303] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[284/303] Compiling SwiftParserDiagnostics PresenceUtils.swift
[285/303] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[286/303] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[287/303] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[288/303] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[289/304] Wrapping AST for SwiftParserDiagnostics for debugging
[291/319] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[292/319] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[293/320] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[294/320] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[295/320] Compiling SwiftSyntaxBuilder Indenter.swift
[296/320] Compiling SwiftSyntaxBuilder ListBuilder.swift
[297/320] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[298/320] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[299/320] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[300/320] Emitting module SwiftSyntaxBuilder
[301/320] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[302/320] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[303/320] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[304/320] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[305/320] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[306/320] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[307/321] Wrapping AST for SwiftSyntaxBuilder for debugging
[309/338] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[310/338] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[311/338] Compiling SwiftSyntaxMacros AccessorMacro.swift
[312/338] Compiling SwiftSyntaxMacros AttachedMacro.swift
[313/338] Compiling SwiftSyntaxMacros BodyMacro.swift
[314/340] Compiling SwiftSyntaxMacros MemberMacro.swift
[315/340] Compiling SwiftSyntaxMacros PeerMacro.swift
[316/340] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[317/340] Compiling SwiftSyntaxMacros Macro+Format.swift
[318/340] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[319/340] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[320/340] Compiling SwiftSyntaxMacros Macro.swift
[321/340] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[322/340] Emitting module SwiftSyntaxMacros
[323/340] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[324/340] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[325/340] Compiling SwiftSyntaxMacros MacroExpansionDiagnosticMessages.swift
[326/340] Compiling SwiftSyntaxMacros PreambleMacro.swift
[327/340] Compiling SwiftSyntaxMacros Syntax+LexicalContext.swift
[328/341] Wrapping AST for SwiftSyntaxMacros for debugging
[330/432] Compiling SwiftSyntaxMacroExpansion MacroSpec.swift
[331/433] Emitting module SwiftSyntaxMacroExpansion
[332/433] Compiling PluginCore AttributableDeclSyntax.swift
[333/433] Compiling PluginCore Attribute.swift
[334/433] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[335/433] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[336/433] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[337/433] Compiling SwiftSyntaxMacroExpansion MacroArgument.swift
[338/433] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[339/433] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[340/434] Wrapping AST for SwiftSyntaxMacroExpansion for debugging
[342/446] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[343/447] Compiling SwiftCompilerPluginMessageHandling StandardIOMessageConnection.swift
[344/447] Compiling PluginCore Default.swift
[345/447] Compiling PluginCore IgnoreCoding.swift
[346/447] Compiling PluginCore IgnoreDecoding.swift
[347/447] Compiling PluginCore IgnoreEncoding.swift
[348/447] Compiling PluginCore CodedAt.swift
[349/447] Compiling PluginCore CodedIn.swift
[350/447] Compiling PluginCore ContentAt.swift
[351/447] Compiling PluginCore KeyPathProvider.swift
[352/447] Compiling PluginCore MemberInit+Expansion.swift
[353/447] Compiling PluginCore MemberInit.swift
[354/447] Compiling PluginCore PeerAttribute.swift
[355/447] Compiling PluginCore AggregatedDiagnosticProducer.swift
[356/447] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[357/447] Compiling SwiftCompilerPluginMessageHandling LRUCache.swift
[358/447] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[359/458] Emitting module SwiftCompilerPluginMessageHandling
[360/458] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[361/458] Compiling PluginCore KeyedVariable.swift
[362/458] Compiling PluginCore PropertyVariable.swift
[363/458] Compiling PluginCore PropertyVariableTreeNode+CodingData.swift
[364/458] Compiling PluginCore PropertyVariableTreeNode+CodingLocation.swift
[365/458] Compiling PluginCore PropertyVariableTreeNode+Generated.swift
[366/458] Compiling PluginCore PropertyVariableTreeNode.swift
[367/458] Compiling PluginCore AssociatedDeclSyntax.swift
[368/458] Compiling PluginCore EnumCaseVariableDeclSyntax.swift
[369/458] Compiling PluginCore MemberGroupSyntax.swift
[370/458] Compiling PluginCore PropertyDeclSyntax.swift
[371/458] Compiling PluginCore VariableSyntax.swift
[372/458] Compiling PluginCore UninitializedVariableDecl.swift
[373/458] Compiling PluginCore AttributeExpander.swift
[374/458] Compiling PluginCore DeclModifiersGenerator.swift
[375/458] Compiling PluginCore Options.swift
[376/458] Compiling PluginCore ComposedVariable.swift
[377/458] Compiling PluginCore ConditionalCodingVariable.swift
[378/458] Compiling PluginCore AssociatedVariable.swift
[379/458] Compiling PluginCore BasicAssociatedVariable.swift
[380/458] Compiling PluginCore BasicEnumCaseVariable.swift
[381/458] Compiling PluginCore EnumCaseVariable.swift
[382/458] Compiling PluginCore AdjacentlyTaggableSwitcher.swift
[383/458] Compiling PluginCore AdjacentlyTaggedEnumSwitcher.swift
[384/458] Compiling PluginCore AnyEnumSwitcher.swift
[385/458] Compiling PluginCore EnumSwitcherVariable.swift
[386/458] Compiling PluginCore ExternallyTaggedEnumSwitcher.swift
[387/458] Compiling PluginCore InternallyTaggedEnumSwitcher.swift
[388/458] Compiling PluginCore TaggedEnumSwitcherVariable.swift
[389/458] Compiling PluginCore UnTaggedEnumSwitcher.swift
[390/458] Compiling PluginCore AnyInitialization.swift
[391/458] Compiling PluginCore AnyRequiredVariableInitialization.swift
[392/458] Compiling PluginCore IgnoredInitialization.swift
[393/458] Compiling PluginCore MemberwiseInitGenerator.swift
[394/458] Compiling PluginCore OptionalInitialization.swift
[395/458] Compiling PluginCore CombinedUsage.swift
[396/458] Compiling PluginCore ArgumentCountCondition.swift
[397/458] Compiling PluginCore DeclarationCondition.swift
[398/458] Compiling PluginCore DiagnosticCondition.swift
[399/458] Compiling PluginCore ConditionalDiagnosticProducer.swift
[400/458] Compiling PluginCore DiagnosticProducer.swift
[401/458] Compiling PluginCore DuplicateUsage.swift
[402/458] Compiling PluginCore GroupedVariableDeclaration.swift
[403/458] Compiling PluginCore InvalidCombination.swift
[404/458] Compiling PluginCore InvalidDeclaration.swift
[405/458] Compiling PluginCore MetaCodableMessage.swift
[406/458] Compiling PluginCore StaticVariableDeclaration.swift
[407/458] Compiling PluginCore RequiredInitialization.swift
[408/458] Compiling PluginCore RequiredInitializationWithDefaultValue.swift
[409/458] Compiling PluginCore RequiredVariableInitialization.swift
[410/458] Compiling PluginCore VariableInitialization.swift
[411/458] Compiling PluginCore AliasedPropertyVariable.swift
[412/458] Compiling PluginCore AnyPropertyVariable.swift
[413/458] Compiling PluginCore BasicPropertyVariable.swift
[414/458] Compiling PluginCore DecodingFallback.swift
[415/458] Compiling PluginCore DefaultValueVariable.swift
[416/458] Compiling PluginCore HelperCodedVariable.swift
[417/458] Compiling PluginCore InitializationVariable.swift
[418/458] Emitting module PluginCore
[419/458] Compiling SwiftCompilerPluginMessageHandling CodingUtilities.swift
[420/458] Compiling SwiftCompilerPluginMessageHandling JSON.swift
[421/458] Compiling SwiftCompilerPluginMessageHandling JSONDecoding.swift
[422/458] Compiling SwiftCompilerPluginMessageHandling JSONEncoding.swift
[425/458] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[426/458] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[427/458] Compiling PluginCore Inherits.swift
[428/458] Compiling PluginCore UnTagged.swift
[429/458] Compiling PluginCore CodedAs.swift
[430/458] Compiling PluginCore CodedBy.swift
[438/459] Compiling PluginCore ActorVariable.swift
[439/459] Compiling PluginCore ClassVariable.swift
[440/459] Compiling PluginCore Case.swift
[441/459] Compiling PluginCore CodingKeysMap.swift
[442/459] Compiling PluginCore Key.swift
[443/459] Compiling PluginCore ConstraintGenerator.swift
[444/459] Compiling PluginCore Registration.swift
[445/459] Compiling PluginCore EnumVariable.swift
[446/459] Compiling PluginCore MemberGroup.swift
[447/459] Compiling PluginCore TypeVariable.swift
[448/459] Compiling PluginCore Variable.swift
[448/460] Wrapping AST for SwiftCompilerPluginMessageHandling for debugging
[450/462] Wrapping AST for PluginCore for debugging
[452/462] Emitting module SwiftCompilerPlugin
[453/462] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[454/463] Wrapping AST for SwiftCompilerPlugin for debugging
[456/466] Compiling MacroPlugin Plugin.swift
[457/466] Emitting module MacroPlugin
[458/466] Compiling MacroPlugin Definitions.swift
[459/467] Wrapping AST for MacroPlugin for debugging
[460/467] Write Objects.LinkFileList
[461/467] Linking MacroPlugin-tool
[463/484] Compiling MetaCodable HelperCoder.swift
[464/484] Compiling MetaCodable LossySequence.swift
[465/486] Compiling MetaCodable DynamicCodableIdentifier+Expressible.swift
[466/486] Compiling MetaCodable DynamicCodableIdentifier.swift
[467/486] Compiling MetaCodable IgnoreCoding.swift
[468/486] Compiling MetaCodable MemberInit.swift
[469/486] Compiling MetaCodable DynamicCodable.swift
[470/486] Compiling MetaCodable DynamicCodableIdentifier+CodingKey.swift
[471/486] Compiling MetaCodable ContentAt.swift
[472/486] Compiling MetaCodable Default.swift
[473/486] Compiling MetaCodable CodedBy.swift
[474/486] Compiling MetaCodable CodedIn.swift
[475/486] Compiling MetaCodable UnTagged.swift
[476/486] Compiling MetaCodable CodedAs.swift
[477/486] Compiling MetaCodable CodedAt.swift
[478/486] Compiling MetaCodable Codable.swift
[479/486] Compiling MetaCodable CodingKeys.swift
[480/486] Compiling MetaCodable IgnoreCodingInitialized.swift
[481/486] Emitting module MetaCodable
[482/487] Wrapping AST for MetaCodable for debugging
[484/500] Compiling HelperCoders String.swift
[485/501] Compiling HelperCoders Number.swift
[486/501] Compiling HelperCoders ValueCoder.swift
[487/501] Compiling HelperCoders DateCoder.swift
[488/501] Compiling HelperCoders Since1970DateCoder.swift
[489/501] Emitting module HelperCoders
[490/501] Compiling HelperCoders NonConformingCoder.swift
[491/501] Compiling HelperCoders PropertyWrapperCoder.swift
[492/501] Compiling HelperCoders DefaultSequenceElementCoding.swift
[493/501] Compiling HelperCoders SequenceCoder.swift
[494/501] Compiling HelperCoders SequenceCoderConfiguration.swift
[495/501] Compiling HelperCoders Bool.swift
[496/501] Compiling HelperCoders Base64Coder.swift
[497/501] Compiling HelperCoders ConditionalCoder.swift
[498/502] Wrapping AST for HelperCoders for debugging
[500/516] 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/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) }
[501/517] Compiling OpenAI MultiPartData.swift
/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
[502/517] Compiling OpenAI File.swift
macro expansion @Codable:42:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Input.swift:75:4: note: expanded code originates here
 73 | 				filename: String? = nil
 74 | 			)
 75 | 		}
    +--- macro expansion @Codable --------------------------------------
    |40 | extension Input.Content.ContentItem: Encodable {
    |41 |     public func encode(to encoder: any Encoder) throws {
    |42 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |43 |         var typeContainer = container
    |44 |         switch self {
    +-------------------------------------------------------------------
 76 |
 77 | 		/// A text input to the model, equivalent to a text input.
macro expansion @Codable:32:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Input.swift:39:3: note: expanded code originates here
 37 | 		/// Can contain text, images, and audio inputs, as well as previous assistant responses and tool call outputs.
 38 | 		case item(Item.Input)
 39 | 	}
    +--- macro expansion @Codable --------------------------------------
    |30 | extension Input.ListItem: Encodable {
    |31 |     public func encode(to encoder: any Encoder) throws {
    |32 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |33 |         var typeContainer = container
    |34 |         switch self {
    +-------------------------------------------------------------------
 40 |
 41 | 	/// Text, image, or audio input to the model, used to generate a response. Can also contain previous assistant responses.
[503/517] Compiling OpenAI Input.swift
macro expansion @Codable:42:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Input.swift:75:4: note: expanded code originates here
 73 | 				filename: String? = nil
 74 | 			)
 75 | 		}
    +--- macro expansion @Codable --------------------------------------
    |40 | extension Input.Content.ContentItem: Encodable {
    |41 |     public func encode(to encoder: any Encoder) throws {
    |42 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |43 |         var typeContainer = container
    |44 |         switch self {
    +-------------------------------------------------------------------
 76 |
 77 | 		/// A text input to the model, equivalent to a text input.
macro expansion @Codable:32:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Input.swift:39:3: note: expanded code originates here
 37 | 		/// Can contain text, images, and audio inputs, as well as previous assistant responses and tool call outputs.
 38 | 		case item(Item.Input)
 39 | 	}
    +--- macro expansion @Codable --------------------------------------
    |30 | extension Input.ListItem: Encodable {
    |31 |     public func encode(to encoder: any Encoder) throws {
    |32 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |33 |         var typeContainer = container
    |34 |         switch self {
    +-------------------------------------------------------------------
 40 |
 41 | 	/// Text, image, or audio input to the model, used to generate a response. Can also contain previous assistant responses.
[504/517] Compiling OpenAI Config.swift
macro expansion @Codable:34:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Config.swift:73:3: note: expanded code originates here
 71 | 		@CodedAs("json_object")
 72 | 		case jsonObject
 73 | 	}
    +--- macro expansion @Codable --------------------------------------
    |32 | extension TextConfig.Format: Encodable {
    |33 |     public func encode(to encoder: any Encoder) throws {
    |34 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |35 |         var typeContainer = container
    |36 |         switch self {
    +-------------------------------------------------------------------
 74 |
 75 | 	/// An object specifying the format that the model must output.
macro expansion @Codable:202:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Event.swift:239:2: note: expanded code originates here
237 | 	@CodedAs("error")
238 | 	case error(error: Response.Error)
239 | }
    +--- macro expansion @Codable --------------------------------------
    |200 | extension Event: Encodable {
    |201 |     public func encode(to encoder: any Encoder) throws {
    |202 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |    |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |203 |         var typeContainer = container
    |204 |         switch self {
    +-------------------------------------------------------------------
240 |
[505/517] Compiling OpenAI Event.swift
macro expansion @Codable:34:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Config.swift:73:3: note: expanded code originates here
 71 | 		@CodedAs("json_object")
 72 | 		case jsonObject
 73 | 	}
    +--- macro expansion @Codable --------------------------------------
    |32 | extension TextConfig.Format: Encodable {
    |33 |     public func encode(to encoder: any Encoder) throws {
    |34 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |35 |         var typeContainer = container
    |36 |         switch self {
    +-------------------------------------------------------------------
 74 |
 75 | 	/// An object specifying the format that the model must output.
macro expansion @Codable:202:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Event.swift:239:2: note: expanded code originates here
237 | 	@CodedAs("error")
238 | 	case error(error: Response.Error)
239 | }
    +--- macro expansion @Codable --------------------------------------
    |200 | extension Event: Encodable {
    |201 |     public func encode(to encoder: any Encoder) throws {
    |202 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |    |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |203 |         var typeContainer = container
    |204 |         switch self {
    +-------------------------------------------------------------------
240 |
[506/517] Compiling OpenAI Response.swift
macro expansion @Codable:35:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Tool.swift:428:2: note: expanded code originates here
426 | 	@CodedAs("web_search_preview")
427 | 	case webSearch(WebSearch)
428 | }
    +--- macro expansion @Codable --------------------------------------
    |33 | extension Tool: Encodable {
    |34 |     public func encode(to encoder: any Encoder) throws {
    |35 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |36 |         var typeContainer = container
    |37 |         switch self {
    +-------------------------------------------------------------------
429 |
430 | public extension Tool {
[507/517] Compiling OpenAI Tool.swift
macro expansion @Codable:35:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Tool.swift:428:2: note: expanded code originates here
426 | 	@CodedAs("web_search_preview")
427 | 	case webSearch(WebSearch)
428 | }
    +--- macro expansion @Codable --------------------------------------
    |33 | extension Tool: Encodable {
    |34 |     public func encode(to encoder: any Encoder) throws {
    |35 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |36 |         var typeContainer = container
    |37 |         switch self {
    +-------------------------------------------------------------------
429 |
430 | public extension Tool {
[508/517] Compiling OpenAI Item.swift
macro expansion @Codable:24:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:590:4: note: expanded code originates here
588 | 			@CodedAs("summary_text")
589 | 			case text(_ text: String)
590 | 		}
    +--- macro expansion @Codable --------------------------------------
    |22 | extension Item.Reasoning.Summary: Encodable {
    |23 |     public func encode(to encoder: any Encoder) throws {
    |24 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |25 |         var typeContainer = container
    |26 |         switch self {
    +-------------------------------------------------------------------
591 |
592 | 		/// The status of the reasoning data.
macro expansion @Codable:74:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:444:4: note: expanded code originates here
442 | 			/// > Note: This action is not part of the official API. An invalid action gets returned in some cases when streaming back responses, so this catches it.
443 | 			case none
444 | 		}
    +--- macro expansion @Codable --------------------------------------
    | 72 | extension Item.ComputerToolCall.Action: Encodable {
    | 73 |     public func encode(to encoder: any Encoder) throws {
    | 74 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |    |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    | 75 |         var typeContainer = container
    | 76 |         switch self {
    +-------------------------------------------------------------------
445 |
446 | 		/// Indicates which mouse button was pressed during the click.
macro expansion @Codable:31:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:141:4: note: expanded code originates here
139 | 				}
140 | 			}
141 | 		}
    +--- macro expansion @Codable --------------------------------------
    |29 | extension Item.Output.Content: Encodable {
    |30 |     public func encode(to encoder: any Encoder) throws {
    |31 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |32 |         var typeContainer = container
    |33 |         switch self {
    +-------------------------------------------------------------------
142 |
143 | 		/// An output message from the model.
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:72:3: note: expanded code originates here
 70 | 			}
 71 | 		}
 72 | 	}
    +--- 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)
    +-------------------------------------------------------------------
 73 |
 74 | 	/// Content items generated by the model.
macro expansion @Codable:55:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:72:3: note: expanded code originates here
 70 | 			}
 71 | 		}
 72 | 	}
    +--- macro expansion @Codable --------------------------------------
    |53 | extension Item.Input: Encodable {
    |54 |     public func encode(to encoder: any Encoder) throws {
    |55 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |56 |         var typeContainer = container
    |57 |         switch self {
    +-------------------------------------------------------------------
 73 |
 74 | 	/// Content items generated by the model.
macro expansion @Codable:44:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:112:5: note: expanded code originates here
110 | 					index: UInt
111 | 				)
112 | 			}
    +--- macro expansion @Codable --------------------------------------
    |42 | extension Item.Output.Content.Annotation: Encodable {
    |43 |     public func encode(to encoder: any Encoder) throws {
    |44 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |45 |         var typeContainer = container
    |46 |         switch self {
    +-------------------------------------------------------------------
113 |
114 | 			/// A text output from the model.
macro expansion @Codable:43:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:176:3: note: expanded code originates here
174 | 			}
175 | 		}
176 | 	}
    +--- macro expansion @Codable --------------------------------------
    |41 | extension Item.Output: Encodable {
    |42 |     public func encode(to encoder: any Encoder) throws {
    |43 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |44 |         var typeContainer = container
    |45 |         switch self {
    +-------------------------------------------------------------------
177 |
178 | 	/// The results of a file search tool call.
macro expansion @Codable:26:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:544:4: note: expanded code originates here
542 | 				imageUrl: String?
543 | 			)
544 | 		}
    +--- macro expansion @Codable --------------------------------------
    |24 | extension Item.ComputerToolCallOutput.Output: Encodable {
    |25 |     public func encode(to encoder: any Encoder) throws {
    |26 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |27 |         var typeContainer = container
    |28 |         switch self {
    +-------------------------------------------------------------------
545 |
546 | 		/// The ID of the computer tool call output. Populated when this item is returned via API.
[509/517] Compiling OpenAI Message.swift
macro expansion @Codable:24:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:590:4: note: expanded code originates here
588 | 			@CodedAs("summary_text")
589 | 			case text(_ text: String)
590 | 		}
    +--- macro expansion @Codable --------------------------------------
    |22 | extension Item.Reasoning.Summary: Encodable {
    |23 |     public func encode(to encoder: any Encoder) throws {
    |24 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |25 |         var typeContainer = container
    |26 |         switch self {
    +-------------------------------------------------------------------
591 |
592 | 		/// The status of the reasoning data.
macro expansion @Codable:74:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:444:4: note: expanded code originates here
442 | 			/// > Note: This action is not part of the official API. An invalid action gets returned in some cases when streaming back responses, so this catches it.
443 | 			case none
444 | 		}
    +--- macro expansion @Codable --------------------------------------
    | 72 | extension Item.ComputerToolCall.Action: Encodable {
    | 73 |     public func encode(to encoder: any Encoder) throws {
    | 74 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |    |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    | 75 |         var typeContainer = container
    | 76 |         switch self {
    +-------------------------------------------------------------------
445 |
446 | 		/// Indicates which mouse button was pressed during the click.
macro expansion @Codable:31:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:141:4: note: expanded code originates here
139 | 				}
140 | 			}
141 | 		}
    +--- macro expansion @Codable --------------------------------------
    |29 | extension Item.Output.Content: Encodable {
    |30 |     public func encode(to encoder: any Encoder) throws {
    |31 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |32 |         var typeContainer = container
    |33 |         switch self {
    +-------------------------------------------------------------------
142 |
143 | 		/// An output message from the model.
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:72:3: note: expanded code originates here
 70 | 			}
 71 | 		}
 72 | 	}
    +--- 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)
    +-------------------------------------------------------------------
 73 |
 74 | 	/// Content items generated by the model.
macro expansion @Codable:55:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:72:3: note: expanded code originates here
 70 | 			}
 71 | 		}
 72 | 	}
    +--- macro expansion @Codable --------------------------------------
    |53 | extension Item.Input: Encodable {
    |54 |     public func encode(to encoder: any Encoder) throws {
    |55 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |56 |         var typeContainer = container
    |57 |         switch self {
    +-------------------------------------------------------------------
 73 |
 74 | 	/// Content items generated by the model.
macro expansion @Codable:44:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:112:5: note: expanded code originates here
110 | 					index: UInt
111 | 				)
112 | 			}
    +--- macro expansion @Codable --------------------------------------
    |42 | extension Item.Output.Content.Annotation: Encodable {
    |43 |     public func encode(to encoder: any Encoder) throws {
    |44 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |45 |         var typeContainer = container
    |46 |         switch self {
    +-------------------------------------------------------------------
113 |
114 | 			/// A text output from the model.
macro expansion @Codable:43:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:176:3: note: expanded code originates here
174 | 			}
175 | 		}
176 | 	}
    +--- macro expansion @Codable --------------------------------------
    |41 | extension Item.Output: Encodable {
    |42 |     public func encode(to encoder: any Encoder) throws {
    |43 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |44 |         var typeContainer = container
    |45 |         switch self {
    +-------------------------------------------------------------------
177 |
178 | 	/// The results of a file search tool call.
macro expansion @Codable:26:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:544:4: note: expanded code originates here
542 | 				imageUrl: String?
543 | 			)
544 | 		}
    +--- macro expansion @Codable --------------------------------------
    |24 | extension Item.ComputerToolCallOutput.Output: Encodable {
    |25 |     public func encode(to encoder: any Encoder) throws {
    |26 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |27 |         var typeContainer = container
    |28 |         switch self {
    +-------------------------------------------------------------------
545 |
546 | 		/// The ID of the computer tool call output. Populated when this item is returned via API.
[510/517] Compiling OpenAI Model.swift
[511/517] Compiling OpenAI Request.swift
[512/517] Compiling OpenAI Conversation.swift
/host/spi-builder-workspace/src/Conversation.swift:4:2: error: unknown attribute 'Observable'
  2 |
  3 | /// A wrapper around the Responses API for managing a conversation.
  4 | @Observable public final class Conversation: Sendable {
    |  `- 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/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()
[513/517] Compiling OpenAI AsyncBytes+collect.swift
/host/spi-builder-workspace/src/Conversation.swift:4:2: error: unknown attribute 'Observable'
  2 |
  3 | /// A wrapper around the Responses API for managing a conversation.
  4 | @Observable public final class Conversation: Sendable {
    |  `- 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/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)
[514/517] Emitting module OpenAI
/host/spi-builder-workspace/src/Conversation.swift:4:2: error: unknown attribute 'Observable'
  2 |
  3 | /// A wrapper around the Responses API for managing a conversation.
  4 | @Observable public final class Conversation: Sendable {
    |  `- 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-0":/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
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:53:53: warning: 'appending' is deprecated: Use `URL` type instead of `Path`.
 51 |
 52 |         // Setup folder
 53 |         let genFolder = context.pluginWorkDirectory.appending(["ProtocolGen"])
    |                                                     `- warning: 'appending' is deprecated: Use `URL` type instead of `Path`.
 54 |         try FileManager.default.createDirectory(
 55 |             atPath: genFolder.string, withIntermediateDirectories: true
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:55:31: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
 53 |         let genFolder = context.pluginWorkDirectory.appending(["ProtocolGen"])
 54 |         try FileManager.default.createDirectory(
 55 |             atPath: genFolder.string, withIntermediateDirectories: true
    |                               `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
 56 |         )
 57 |
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:63:37: warning: 'path' is deprecated: renamed to 'url'
 61 |             return target.sourceFiles(withSuffix: "swift").map { file in
 62 |                 let moduleName = target.moduleName
 63 |                 let fileName = file.path.stem
    |                                     |- warning: 'path' is deprecated: renamed to 'url'
    |                                     `- note: use 'url' instead
 64 |                 let genFileName = "\(moduleName)-\(fileName)-gen.json"
 65 |                 let genFile = genFolder.appending([genFileName])
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:63:42: warning: 'stem' is deprecated: Use `URL` type instead of `Path`.
 61 |             return target.sourceFiles(withSuffix: "swift").map { file in
 62 |                 let moduleName = target.moduleName
 63 |                 let fileName = file.path.stem
    |                                          `- warning: 'stem' is deprecated: Use `URL` type instead of `Path`.
 64 |                 let genFileName = "\(moduleName)-\(fileName)-gen.json"
 65 |                 let genFile = genFolder.appending([genFileName])
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:65:41: warning: 'appending' is deprecated: Use `URL` type instead of `Path`.
 63 |                 let fileName = file.path.stem
 64 |                 let genFileName = "\(moduleName)-\(fileName)-gen.json"
 65 |                 let genFile = genFolder.appending([genFileName])
    |                                         `- warning: 'appending' is deprecated: Use `URL` type instead of `Path`.
 66 |                 intermFiles.append(genFile)
 67 |                 return Command.buildCommand(
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:67:32: warning: 'buildCommand(displayName:executable:arguments:environment:inputFiles:outputFiles:)' is deprecated: Use `URL` type instead of `Path`.
 65 |                 let genFile = genFolder.appending([genFileName])
 66 |                 intermFiles.append(genFile)
 67 |                 return Command.buildCommand(
    |                                `- warning: 'buildCommand(displayName:executable:arguments:environment:inputFiles:outputFiles:)' is deprecated: Use `URL` type instead of `Path`.
 68 |                     displayName: """
 69 |                         Parse source file "\(fileName)" in module "\(moduleName)"
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:71:38: warning: 'path' is deprecated: renamed to 'url'
 69 |                         Parse source file "\(fileName)" in module "\(moduleName)"
 70 |                         """,
 71 |                     executable: tool.path,
    |                                      |- warning: 'path' is deprecated: renamed to 'url'
    |                                      `- note: use 'url' instead
 72 |                     arguments: [
 73 |                         "parse",
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:74:30: warning: 'path' is deprecated: renamed to 'url'
 72 |                     arguments: [
 73 |                         "parse",
 74 |                         file.path.string,
    |                              |- warning: 'path' is deprecated: renamed to 'url'
    |                              `- note: use 'url' instead
 75 |                         "--output",
 76 |                         genFile.string,
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:74:35: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
 72 |                     arguments: [
 73 |                         "parse",
 74 |                         file.path.string,
    |                                   `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
 75 |                         "--output",
 76 |                         genFile.string,
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:76:33: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
 74 |                         file.path.string,
 75 |                         "--output",
 76 |                         genFile.string,
    |                                 `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
 77 |                     ],
 78 |                     inputFiles: [file.path],
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:78:39: warning: 'path' is deprecated: renamed to 'url'
 76 |                         genFile.string,
 77 |                     ],
 78 |                     inputFiles: [file.path],
    |                                       |- warning: 'path' is deprecated: renamed to 'url'
    |                                       `- note: use 'url' instead
 79 |                     outputFiles: [genFile]
 80 |                 )
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:87:33: warning: 'appending' is deprecated: Use `URL` type instead of `Path`.
 85 |         let moduleName = target.moduleName
 86 |         let genFileName = "\(moduleName)+ProtocolHelperCoders.swift"
 87 |         let genPath = genFolder.appending(genFileName)
    |                                 `- warning: 'appending' is deprecated: Use `URL` type instead of `Path`.
 88 |         var genArgs = ["generate", "--output", genPath.string]
 89 |         for `import` in imports {
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:88:56: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
 86 |         let genFileName = "\(moduleName)+ProtocolHelperCoders.swift"
 87 |         let genPath = genFolder.appending(genFileName)
 88 |         var genArgs = ["generate", "--output", genPath.string]
    |                                                        `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
 89 |         for `import` in imports {
 90 |             genArgs.append(contentsOf: ["--module", `import`])
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:93:33: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
 91 |         }
 92 |         for file in intermFiles {
 93 |             genArgs.append(file.string)
    |                                 `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
 94 |         }
 95 |         buildCommands.append(
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:96:14: warning: 'buildCommand(displayName:executable:arguments:environment:inputFiles:outputFiles:)' is deprecated: Use `URL` type instead of `Path`.
 94 |         }
 95 |         buildCommands.append(
 96 |             .buildCommand(
    |              `- warning: 'buildCommand(displayName:executable:arguments:environment:inputFiles:outputFiles:)' is deprecated: Use `URL` type instead of `Path`.
 97 |                 displayName: """
 98 |                     Generate protocol decoding/encoding syntax for "\(moduleName)"
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/Plugin.swift:100:34: warning: 'path' is deprecated: renamed to 'url'
 98 |                     Generate protocol decoding/encoding syntax for "\(moduleName)"
 99 |                     """,
100 |                 executable: tool.path,
    |                                  |- warning: 'path' is deprecated: renamed to 'url'
    |                                  `- note: use 'url' instead
101 |                 arguments: genArgs,
102 |                 inputFiles: intermFiles,
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/SourceTarget/SwiftPackageTarget.swift:67:42: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
65 |     func configPath(named name: String) throws -> String? {
66 |         let fileManager = FileManager.default
67 |         let directory = module.directory.string
   |                                          `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
68 |         let contents = try fileManager.contentsOfDirectory(atPath: directory)
69 |         let file = contents.first { file in
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/SourceTarget/SwiftPackageTarget.swift:70:24: warning: 'init(_:)' is deprecated: Use `URL` type instead of `Path`.
68 |         let contents = try fileManager.contentsOfDirectory(atPath: directory)
69 |         let file = contents.first { file in
70 |             let path = Path(file)
   |                        `- warning: 'init(_:)' is deprecated: Use `URL` type instead of `Path`.
71 |             return name.lowercased()
72 |                 == path.stem
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/SourceTarget/SwiftPackageTarget.swift:72:25: warning: 'stem' is deprecated: Use `URL` type instead of `Path`.
70 |             let path = Path(file)
71 |             return name.lowercased()
72 |                 == path.stem
   |                         `- warning: 'stem' is deprecated: Use `URL` type instead of `Path`.
73 |                 .components(separatedBy: .alphanumerics.inverted)
74 |                 .joined(separator: "")
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/SourceTarget/SwiftPackageTarget.swift:78:33: warning: 'appending' is deprecated: Use `URL` type instead of `Path`.
76 |         }
77 |         guard let file else { return nil }
78 |         return module.directory.appending([file]).string
   |                                 `- warning: 'appending' is deprecated: Use `URL` type instead of `Path`.
79 |     }
80 | }
/host/spi-builder-workspace/.build/checkouts/MetaCodable/Plugins/MetaProtocolCodable/SourceTarget/SwiftPackageTarget.swift:78:51: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
76 |         }
77 |         guard let file else { return nil }
78 |         return module.directory.appending([file]).string
   |                                                   `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
79 |     }
80 | }
[1/1] Compiling plugin MetaProtocolCodable
[2/2] Compiling plugin GenerateManual
Building for debugging...
[2/28] Write swift-version-24593BA9C3E375BF.txt
[4/48] Compiling SwiftSyntax600 Empty.swift
[5/48] Compiling SwiftSyntax509 Empty.swift
[6/48] Emitting module SwiftSyntax600
[7/49] Emitting module SwiftSyntax509
[8/49] Emitting module SwiftSyntax510
[9/50] Compiling SwiftSyntax510 Empty.swift
[12/50] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[14/49] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[15/49] Compiling InternalCollectionsUtilities Debugging.swift
[16/49] Compiling InternalCollectionsUtilities Descriptions.swift
[17/49] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[18/49] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[19/49] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[20/49] Compiling InternalCollectionsUtilities _SortedCollection.swift
[21/49] Emitting module InternalCollectionsUtilities
[22/49] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[23/49] Compiling InternalCollectionsUtilities Integer rank.swift
[24/49] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[25/49] Compiling InternalCollectionsUtilities UInt+reversed.swift
[26/49] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[27/49] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[29/168] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[30/168] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[31/168] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[32/168] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[33/168] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[34/168] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[35/168] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[36/168] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[37/168] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[38/168] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[39/168] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[40/168] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[41/168] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[42/168] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[43/175] Compiling OrderedCollections OrderedDictionary.swift
[44/175] Compiling OrderedCollections OrderedSet+Codable.swift
[45/175] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[46/175] Compiling OrderedCollections OrderedSet+Descriptions.swift
[47/175] Compiling OrderedCollections OrderedSet+Diffing.swift
[48/175] Compiling OrderedCollections OrderedSet+Equatable.swift
[49/175] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[50/175] Compiling OrderedCollections OrderedSet+Hashable.swift
[51/175] Compiling OrderedCollections OrderedSet+Initializers.swift
[52/175] Compiling OrderedCollections OrderedSet+Insertions.swift
[53/175] Compiling OrderedCollections OrderedSet+Invariants.swift
[54/175] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[55/175] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[56/175] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[57/175] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[58/175] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[59/175] Compiling OrderedCollections OrderedDictionary+Codable.swift
[60/175] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[61/175] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[62/175] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[63/175] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[64/175] Compiling OrderedCollections OrderedDictionary+Elements.swift
[65/175] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[66/175] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[67/175] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[68/175] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[69/175] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[70/175] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[71/175] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[72/175] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[73/175] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[74/175] Compiling OrderedCollections OrderedDictionary+Values.swift
[75/175] Compiling OrderedCollections _HashTable+Bucket.swift
[76/175] Compiling OrderedCollections _HashTable+BucketIterator.swift
[77/175] Compiling OrderedCollections _HashTable+Constants.swift
[78/175] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[79/175] Compiling OrderedCollections _HashTable+Testing.swift
[80/175] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[81/175] Compiling OrderedCollections _HashTable.swift
[82/175] Compiling OrderedCollections _Hashtable+Header.swift
[83/175] Compiling OrderedCollections OrderedSet+Sendable.swift
[84/175] Compiling OrderedCollections OrderedSet+SubSequence.swift
[85/175] Compiling OrderedCollections OrderedSet+Testing.swift
[86/175] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[87/175] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[88/175] Compiling OrderedCollections OrderedSet.swift
[89/175] Compiling OrderedCollections _UnsafeBitset.swift
[90/175] Emitting module OrderedCollections
[92/175] Emitting module SwiftSyntax
[136/183] Compiling SwiftSyntax SourceLength.swift
[137/183] Compiling SwiftSyntax SourceLocation.swift
[156/183] Compiling SwiftSyntax SyntaxNodesC.swift
[157/183] Compiling SwiftSyntax SyntaxNodesD.swift
[158/183] Compiling SwiftSyntax SyntaxNodesEF.swift
[159/183] Compiling SwiftSyntax SyntaxNodesGHI.swift
[160/183] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[161/183] Compiling SwiftSyntax SyntaxNodesOP.swift
[162/183] Compiling SwiftSyntax SyntaxNodesQRS.swift
[163/183] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[165/240] Compiling SwiftDiagnostics Message.swift
[166/241] Compiling SwiftBasicFormat Syntax+Extensions.swift
[167/241] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[168/241] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[169/241] Emitting module SwiftDiagnostics
[170/241] Compiling SwiftParser LexemeSequence.swift
[171/241] Compiling SwiftParser Lexer.swift
[172/241] Compiling SwiftParser RegexLiteralLexer.swift
[173/241] Compiling SwiftParser UnicodeScalarExtensions.swift
[174/241] Compiling SwiftBasicFormat InferIndentation.swift
[175/241] Compiling SwiftBasicFormat BasicFormat.swift
[176/241] Emitting module SwiftBasicFormat
[177/242] Compiling SwiftDiagnostics Note.swift
[179/242] Compiling SwiftDiagnostics FixIt.swift
[180/242] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[181/242] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[182/242] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[188/241] Compiling SwiftParser Lookahead.swift
[189/241] Compiling SwiftParser LoopProgressCondition.swift
[190/246] Emitting module SwiftParser
[191/246] Compiling SwiftParser SwiftParserCompatibility.swift
[192/246] Compiling SwiftParser SwiftVersion.swift
[193/246] Compiling SwiftParser SyntaxUtils.swift
[194/246] Compiling SwiftParser TokenConsumer.swift
[195/246] Compiling SwiftParser TokenPrecedence.swift
[196/246] Compiling SwiftParser TokenSpec.swift
[197/246] Compiling SwiftParser TokenSpecSet.swift
[198/246] Compiling SwiftParser TopLevel.swift
[199/246] Compiling SwiftParser TriviaParser.swift
[200/246] Compiling SwiftParser Types.swift
[201/246] Compiling SwiftParser Modifiers.swift
[202/246] Compiling SwiftParser Names.swift
[203/246] Compiling SwiftParser Nominals.swift
[204/246] Compiling SwiftParser Parameters.swift
[205/246] Compiling SwiftParser ParseSourceFile.swift
[206/246] Compiling SwiftParser Parser.swift
[207/246] Compiling SwiftParser Patterns.swift
[208/246] Compiling SwiftParser Recovery.swift
[209/246] Compiling SwiftParser Specifiers.swift
[210/246] Compiling SwiftParser Statements.swift
[211/246] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[212/246] Compiling SwiftParser StringLiterals.swift
[213/246] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[214/246] Compiling SwiftParser Expressions.swift
[215/246] Compiling SwiftParser IncrementalParseTransition.swift
[216/246] Compiling SwiftParser IsValidIdentifier.swift
[217/246] Compiling SwiftParser Cursor.swift
[218/246] Compiling SwiftParser Lexeme.swift
[219/246] Compiling SwiftParser Attributes.swift
[220/246] Compiling SwiftParser Availability.swift
[221/246] Compiling SwiftParser CharacterInfo.swift
[222/246] Compiling SwiftParser CollectionNodes+Parsable.swift
[223/246] Compiling SwiftParser Declarations.swift
[224/246] Compiling SwiftParser Directives.swift
[225/246] Compiling SwiftParser ExperimentalFeatures.swift
[226/246] Compiling SwiftParser IsLexerClassified.swift
[227/246] Compiling SwiftParser LayoutNodes+Parsable.swift
[228/246] Compiling SwiftParser Parser+TokenSpecSet.swift
[229/246] Compiling SwiftParser TokenSpecStaticMembers.swift
[231/269] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[232/270] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[233/270] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[234/270] Compiling SwiftOperators PrecedenceGroup.swift
[235/270] Emitting module SwiftOperators
[236/270] Compiling SwiftOperators PrecedenceGraph.swift
[237/270] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[238/271] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[239/271] Emitting module SwiftParserDiagnostics
[240/271] Compiling SwiftOperators OperatorTable+Folding.swift
[241/271] Compiling SwiftOperators OperatorTable.swift
[242/271] Compiling SwiftParserDiagnostics MissingNodesError.swift
[243/271] Compiling SwiftParserDiagnostics MissingTokenError.swift
[244/271] Compiling SwiftOperators OperatorTable+Semantics.swift
[245/271] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[246/271] Compiling SwiftParserDiagnostics Utils.swift
[247/271] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[248/271] Compiling SwiftParserDiagnostics PresenceUtils.swift
[251/271] Compiling SwiftOperators SyntaxSynthesis.swift
[252/272] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[253/272] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[258/286] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[259/286] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[260/286] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[261/286] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[262/287] Compiling SwiftSyntaxBuilder Indenter.swift
[263/287] Compiling SwiftSyntaxBuilder ListBuilder.swift
[264/287] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[265/287] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[266/287] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[267/287] Emitting module SwiftSyntaxBuilder
[268/287] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[269/287] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[270/287] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[271/287] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[272/287] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[273/287] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[275/304] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[276/304] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[277/306] Emitting module SwiftSyntaxMacros
[278/306] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[279/306] Compiling SwiftSyntaxMacros Macro+Format.swift
[280/306] Compiling SwiftSyntaxMacros MemberMacro.swift
[281/306] Compiling SwiftSyntaxMacros PeerMacro.swift
[282/306] Compiling SwiftSyntaxMacros Macro.swift
[283/306] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[284/306] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[285/306] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[286/306] Compiling SwiftSyntaxMacros AccessorMacro.swift
[287/306] Compiling SwiftSyntaxMacros AttachedMacro.swift
[288/306] Compiling SwiftSyntaxMacros BodyMacro.swift
[289/306] Compiling SwiftSyntaxMacros PreambleMacro.swift
[290/306] Compiling SwiftSyntaxMacros Syntax+LexicalContext.swift
[291/306] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[292/306] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[293/306] Compiling SwiftSyntaxMacros MacroExpansionDiagnosticMessages.swift
[295/397] Compiling SwiftSyntaxMacroExpansion MacroSpec.swift
[296/398] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[297/398] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[298/398] Compiling SwiftSyntaxMacroExpansion MacroArgument.swift
[299/398] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[300/398] Compiling PluginCore AttributableDeclSyntax.swift
[301/398] Compiling PluginCore Attribute.swift
[302/398] Emitting module SwiftSyntaxMacroExpansion
[303/398] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[304/398] Compiling PluginCore KeyedVariable.swift
[305/398] Compiling PluginCore PropertyVariable.swift
[306/398] Compiling PluginCore PropertyVariableTreeNode+CodingData.swift
[307/398] Compiling PluginCore PropertyVariableTreeNode+CodingLocation.swift
[308/398] Compiling PluginCore PropertyVariableTreeNode+Generated.swift
[309/398] Compiling PluginCore PropertyVariableTreeNode.swift
[310/398] Compiling PluginCore AssociatedDeclSyntax.swift
[311/398] Compiling PluginCore EnumCaseVariableDeclSyntax.swift
[312/398] Compiling PluginCore MemberGroupSyntax.swift
[313/398] Compiling PluginCore PropertyDeclSyntax.swift
[314/398] Compiling PluginCore VariableSyntax.swift
[315/409] Compiling PluginCore CombinedUsage.swift
[316/409] Compiling PluginCore ArgumentCountCondition.swift
[317/409] Compiling PluginCore DeclarationCondition.swift
[318/409] Compiling PluginCore DiagnosticCondition.swift
[319/409] Compiling PluginCore ConditionalDiagnosticProducer.swift
[320/409] Compiling PluginCore DiagnosticProducer.swift
[321/409] Compiling PluginCore DuplicateUsage.swift
[322/409] Compiling PluginCore GroupedVariableDeclaration.swift
[323/409] Compiling PluginCore InvalidCombination.swift
[324/409] Compiling PluginCore InvalidDeclaration.swift
[325/409] Compiling PluginCore MetaCodableMessage.swift
[326/409] Compiling PluginCore StaticVariableDeclaration.swift
[327/409] Compiling PluginCore Default.swift
[328/409] Compiling PluginCore IgnoreCoding.swift
[329/409] Compiling PluginCore IgnoreDecoding.swift
[330/409] Compiling PluginCore IgnoreEncoding.swift
[331/409] Compiling PluginCore CodedAt.swift
[332/409] Compiling PluginCore CodedIn.swift
[333/409] Compiling PluginCore ContentAt.swift
[334/409] Compiling PluginCore KeyPathProvider.swift
[335/409] Compiling PluginCore MemberInit+Expansion.swift
[336/409] Compiling PluginCore MemberInit.swift
[337/409] Compiling PluginCore PeerAttribute.swift
[338/409] Compiling PluginCore AggregatedDiagnosticProducer.swift
[341/409] Compiling PluginCore Codable+Expansion.swift
[342/409] Compiling PluginCore Codable.swift
[343/409] Compiling PluginCore CodingKeyTransformer.swift
[344/409] Compiling PluginCore CodingKeys.swift
[345/409] Compiling PluginCore Strategy.swift
[346/409] Compiling PluginCore IgnoreCodingInitialized.swift
[347/409] Compiling PluginCore Inherits.swift
[348/409] Compiling PluginCore UnTagged.swift
[349/409] Compiling PluginCore CodedAs.swift
[350/409] Compiling PluginCore CodedBy.swift
[351/409] Emitting module PluginCore
[352/409] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[353/410] Compiling PluginCore UninitializedVariableDecl.swift
[354/410] Compiling PluginCore AttributeExpander.swift
[355/410] Compiling PluginCore DeclModifiersGenerator.swift
[356/410] Compiling PluginCore Options.swift
[357/410] Compiling PluginCore ComposedVariable.swift
[358/410] Compiling PluginCore ConditionalCodingVariable.swift
[359/410] Compiling PluginCore AssociatedVariable.swift
[360/410] Compiling PluginCore BasicAssociatedVariable.swift
[361/410] Compiling PluginCore BasicEnumCaseVariable.swift
[362/410] Compiling PluginCore EnumCaseVariable.swift
[363/410] Compiling PluginCore AdjacentlyTaggableSwitcher.swift
[364/410] Compiling PluginCore AdjacentlyTaggedEnumSwitcher.swift
[365/410] Compiling PluginCore RequiredInitialization.swift
[366/410] Compiling PluginCore RequiredInitializationWithDefaultValue.swift
[367/410] Compiling PluginCore RequiredVariableInitialization.swift
[368/410] Compiling PluginCore VariableInitialization.swift
[369/410] Compiling PluginCore AliasedPropertyVariable.swift
[370/410] Compiling PluginCore AnyPropertyVariable.swift
[371/410] Compiling PluginCore BasicPropertyVariable.swift
[372/410] Compiling PluginCore DecodingFallback.swift
[373/410] Compiling PluginCore DefaultValueVariable.swift
[374/410] Compiling PluginCore HelperCodedVariable.swift
[375/410] Compiling PluginCore InitializationVariable.swift
[376/410] Compiling PluginCore AnyEnumSwitcher.swift
[377/410] Compiling PluginCore EnumSwitcherVariable.swift
[378/410] Compiling PluginCore ExternallyTaggedEnumSwitcher.swift
[379/410] Compiling PluginCore InternallyTaggedEnumSwitcher.swift
[380/410] Compiling PluginCore TaggedEnumSwitcherVariable.swift
[381/410] Compiling PluginCore UnTaggedEnumSwitcher.swift
[382/410] Compiling PluginCore AnyInitialization.swift
[383/410] Compiling PluginCore AnyRequiredVariableInitialization.swift
[384/410] Compiling PluginCore IgnoredInitialization.swift
[385/410] Compiling PluginCore MemberwiseInitGenerator.swift
[386/410] Compiling PluginCore OptionalInitialization.swift
[388/421] Compiling SwiftCompilerPluginMessageHandling LRUCache.swift
[389/421] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[390/422] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[391/422] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[392/422] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[393/422] Compiling SwiftCompilerPluginMessageHandling StandardIOMessageConnection.swift
[394/422] Compiling PluginCore ActorVariable.swift
[395/422] Compiling PluginCore ClassVariable.swift
[396/422] Compiling PluginCore Case.swift
[397/422] Compiling PluginCore CodingKeysMap.swift
[398/422] Compiling PluginCore Key.swift
[399/422] Compiling PluginCore ConstraintGenerator.swift
[400/422] Compiling PluginCore Registration.swift
[401/422] Compiling PluginCore EnumVariable.swift
[402/422] Compiling PluginCore MemberGroup.swift
[403/422] Compiling PluginCore TypeVariable.swift
[404/422] Compiling PluginCore Variable.swift
[406/422] Emitting module SwiftCompilerPluginMessageHandling
[407/422] Compiling SwiftCompilerPluginMessageHandling JSONDecoding.swift
[408/422] Compiling SwiftCompilerPluginMessageHandling JSONEncoding.swift
[409/422] Compiling SwiftCompilerPluginMessageHandling CodingUtilities.swift
[410/422] Compiling SwiftCompilerPluginMessageHandling JSON.swift
[411/422] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[412/422] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[414/424] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[415/424] Emitting module SwiftCompilerPlugin
[417/427] Compiling MacroPlugin Plugin.swift
[418/427] Compiling MacroPlugin Definitions.swift
[419/427] Emitting module MacroPlugin
[420/427] Write Objects.LinkFileList
[421/427] Linking MacroPlugin-tool
[423/444] Emitting module MetaCodable
[424/446] Compiling MetaCodable IgnoreCoding.swift
[425/446] Compiling MetaCodable MemberInit.swift
[426/446] Compiling MetaCodable Codable.swift
[427/446] Compiling MetaCodable CodingKeys.swift
[428/446] Compiling MetaCodable IgnoreCodingInitialized.swift
[429/446] Compiling MetaCodable CodedBy.swift
[430/446] Compiling MetaCodable CodedIn.swift
[431/446] Compiling MetaCodable UnTagged.swift
[432/446] Compiling MetaCodable CodedAs.swift
[433/446] Compiling MetaCodable CodedAt.swift
[434/446] Compiling MetaCodable HelperCoder.swift
[435/446] Compiling MetaCodable LossySequence.swift
[436/446] Compiling MetaCodable DynamicCodable.swift
[437/446] Compiling MetaCodable DynamicCodableIdentifier+CodingKey.swift
[438/446] Compiling MetaCodable ContentAt.swift
[439/446] Compiling MetaCodable Default.swift
[440/446] Compiling MetaCodable DynamicCodableIdentifier+Expressible.swift
[441/446] Compiling MetaCodable DynamicCodableIdentifier.swift
[443/459] Compiling HelperCoders String.swift
[444/460] Compiling HelperCoders DefaultSequenceElementCoding.swift
[445/460] Compiling HelperCoders SequenceCoder.swift
[446/460] Compiling HelperCoders NonConformingCoder.swift
[447/460] Compiling HelperCoders PropertyWrapperCoder.swift
[448/460] Compiling HelperCoders Number.swift
[449/460] Compiling HelperCoders SequenceCoderConfiguration.swift
[450/460] Compiling HelperCoders Bool.swift
[451/460] Compiling HelperCoders DateCoder.swift
[452/460] Compiling HelperCoders Since1970DateCoder.swift
[453/460] Compiling HelperCoders Base64Coder.swift
[454/460] Compiling HelperCoders ConditionalCoder.swift
[455/460] Emitting module HelperCoders
[456/460] Compiling HelperCoders ValueCoder.swift
[458/474] 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/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) }
[459/475] Compiling OpenAI MultiPartData.swift
/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
[460/475] Compiling OpenAI File.swift
macro expansion @Codable:42:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Input.swift:75:4: note: expanded code originates here
 73 | 				filename: String? = nil
 74 | 			)
 75 | 		}
    +--- macro expansion @Codable --------------------------------------
    |40 | extension Input.Content.ContentItem: Encodable {
    |41 |     public func encode(to encoder: any Encoder) throws {
    |42 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |43 |         var typeContainer = container
    |44 |         switch self {
    +-------------------------------------------------------------------
 76 |
 77 | 		/// A text input to the model, equivalent to a text input.
macro expansion @Codable:32:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Input.swift:39:3: note: expanded code originates here
 37 | 		/// Can contain text, images, and audio inputs, as well as previous assistant responses and tool call outputs.
 38 | 		case item(Item.Input)
 39 | 	}
    +--- macro expansion @Codable --------------------------------------
    |30 | extension Input.ListItem: Encodable {
    |31 |     public func encode(to encoder: any Encoder) throws {
    |32 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |33 |         var typeContainer = container
    |34 |         switch self {
    +-------------------------------------------------------------------
 40 |
 41 | 	/// Text, image, or audio input to the model, used to generate a response. Can also contain previous assistant responses.
[461/475] Compiling OpenAI Input.swift
macro expansion @Codable:42:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Input.swift:75:4: note: expanded code originates here
 73 | 				filename: String? = nil
 74 | 			)
 75 | 		}
    +--- macro expansion @Codable --------------------------------------
    |40 | extension Input.Content.ContentItem: Encodable {
    |41 |     public func encode(to encoder: any Encoder) throws {
    |42 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |43 |         var typeContainer = container
    |44 |         switch self {
    +-------------------------------------------------------------------
 76 |
 77 | 		/// A text input to the model, equivalent to a text input.
macro expansion @Codable:32:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Input.swift:39:3: note: expanded code originates here
 37 | 		/// Can contain text, images, and audio inputs, as well as previous assistant responses and tool call outputs.
 38 | 		case item(Item.Input)
 39 | 	}
    +--- macro expansion @Codable --------------------------------------
    |30 | extension Input.ListItem: Encodable {
    |31 |     public func encode(to encoder: any Encoder) throws {
    |32 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |33 |         var typeContainer = container
    |34 |         switch self {
    +-------------------------------------------------------------------
 40 |
 41 | 	/// Text, image, or audio input to the model, used to generate a response. Can also contain previous assistant responses.
[462/475] Compiling OpenAI Config.swift
macro expansion @Codable:34:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Config.swift:73:3: note: expanded code originates here
 71 | 		@CodedAs("json_object")
 72 | 		case jsonObject
 73 | 	}
    +--- macro expansion @Codable --------------------------------------
    |32 | extension TextConfig.Format: Encodable {
    |33 |     public func encode(to encoder: any Encoder) throws {
    |34 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |35 |         var typeContainer = container
    |36 |         switch self {
    +-------------------------------------------------------------------
 74 |
 75 | 	/// An object specifying the format that the model must output.
macro expansion @Codable:202:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Event.swift:239:2: note: expanded code originates here
237 | 	@CodedAs("error")
238 | 	case error(error: Response.Error)
239 | }
    +--- macro expansion @Codable --------------------------------------
    |200 | extension Event: Encodable {
    |201 |     public func encode(to encoder: any Encoder) throws {
    |202 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |    |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |203 |         var typeContainer = container
    |204 |         switch self {
    +-------------------------------------------------------------------
240 |
[463/475] Compiling OpenAI Event.swift
macro expansion @Codable:34:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Config.swift:73:3: note: expanded code originates here
 71 | 		@CodedAs("json_object")
 72 | 		case jsonObject
 73 | 	}
    +--- macro expansion @Codable --------------------------------------
    |32 | extension TextConfig.Format: Encodable {
    |33 |     public func encode(to encoder: any Encoder) throws {
    |34 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |35 |         var typeContainer = container
    |36 |         switch self {
    +-------------------------------------------------------------------
 74 |
 75 | 	/// An object specifying the format that the model must output.
macro expansion @Codable:202:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Event.swift:239:2: note: expanded code originates here
237 | 	@CodedAs("error")
238 | 	case error(error: Response.Error)
239 | }
    +--- macro expansion @Codable --------------------------------------
    |200 | extension Event: Encodable {
    |201 |     public func encode(to encoder: any Encoder) throws {
    |202 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |    |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |203 |         var typeContainer = container
    |204 |         switch self {
    +-------------------------------------------------------------------
240 |
[464/475] Compiling OpenAI Item.swift
macro expansion @Codable:24:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:590:4: note: expanded code originates here
588 | 			@CodedAs("summary_text")
589 | 			case text(_ text: String)
590 | 		}
    +--- macro expansion @Codable --------------------------------------
    |22 | extension Item.Reasoning.Summary: Encodable {
    |23 |     public func encode(to encoder: any Encoder) throws {
    |24 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |25 |         var typeContainer = container
    |26 |         switch self {
    +-------------------------------------------------------------------
591 |
592 | 		/// The status of the reasoning data.
macro expansion @Codable:74:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:444:4: note: expanded code originates here
442 | 			/// > Note: This action is not part of the official API. An invalid action gets returned in some cases when streaming back responses, so this catches it.
443 | 			case none
444 | 		}
    +--- macro expansion @Codable --------------------------------------
    | 72 | extension Item.ComputerToolCall.Action: Encodable {
    | 73 |     public func encode(to encoder: any Encoder) throws {
    | 74 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |    |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    | 75 |         var typeContainer = container
    | 76 |         switch self {
    +-------------------------------------------------------------------
445 |
446 | 		/// Indicates which mouse button was pressed during the click.
macro expansion @Codable:31:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:141:4: note: expanded code originates here
139 | 				}
140 | 			}
141 | 		}
    +--- macro expansion @Codable --------------------------------------
    |29 | extension Item.Output.Content: Encodable {
    |30 |     public func encode(to encoder: any Encoder) throws {
    |31 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |32 |         var typeContainer = container
    |33 |         switch self {
    +-------------------------------------------------------------------
142 |
143 | 		/// An output message from the model.
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:72:3: note: expanded code originates here
 70 | 			}
 71 | 		}
 72 | 	}
    +--- 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)
    +-------------------------------------------------------------------
 73 |
 74 | 	/// Content items generated by the model.
macro expansion @Codable:55:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:72:3: note: expanded code originates here
 70 | 			}
 71 | 		}
 72 | 	}
    +--- macro expansion @Codable --------------------------------------
    |53 | extension Item.Input: Encodable {
    |54 |     public func encode(to encoder: any Encoder) throws {
    |55 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |56 |         var typeContainer = container
    |57 |         switch self {
    +-------------------------------------------------------------------
 73 |
 74 | 	/// Content items generated by the model.
macro expansion @Codable:44:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:112:5: note: expanded code originates here
110 | 					index: UInt
111 | 				)
112 | 			}
    +--- macro expansion @Codable --------------------------------------
    |42 | extension Item.Output.Content.Annotation: Encodable {
    |43 |     public func encode(to encoder: any Encoder) throws {
    |44 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |45 |         var typeContainer = container
    |46 |         switch self {
    +-------------------------------------------------------------------
113 |
114 | 			/// A text output from the model.
macro expansion @Codable:43:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:176:3: note: expanded code originates here
174 | 			}
175 | 		}
176 | 	}
    +--- macro expansion @Codable --------------------------------------
    |41 | extension Item.Output: Encodable {
    |42 |     public func encode(to encoder: any Encoder) throws {
    |43 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |44 |         var typeContainer = container
    |45 |         switch self {
    +-------------------------------------------------------------------
177 |
178 | 	/// The results of a file search tool call.
macro expansion @Codable:26:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:544:4: note: expanded code originates here
542 | 				imageUrl: String?
543 | 			)
544 | 		}
    +--- macro expansion @Codable --------------------------------------
    |24 | extension Item.ComputerToolCallOutput.Output: Encodable {
    |25 |     public func encode(to encoder: any Encoder) throws {
    |26 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |27 |         var typeContainer = container
    |28 |         switch self {
    +-------------------------------------------------------------------
545 |
546 | 		/// The ID of the computer tool call output. Populated when this item is returned via API.
[465/475] Compiling OpenAI Message.swift
macro expansion @Codable:24:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:590:4: note: expanded code originates here
588 | 			@CodedAs("summary_text")
589 | 			case text(_ text: String)
590 | 		}
    +--- macro expansion @Codable --------------------------------------
    |22 | extension Item.Reasoning.Summary: Encodable {
    |23 |     public func encode(to encoder: any Encoder) throws {
    |24 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |25 |         var typeContainer = container
    |26 |         switch self {
    +-------------------------------------------------------------------
591 |
592 | 		/// The status of the reasoning data.
macro expansion @Codable:74:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:444:4: note: expanded code originates here
442 | 			/// > Note: This action is not part of the official API. An invalid action gets returned in some cases when streaming back responses, so this catches it.
443 | 			case none
444 | 		}
    +--- macro expansion @Codable --------------------------------------
    | 72 | extension Item.ComputerToolCall.Action: Encodable {
    | 73 |     public func encode(to encoder: any Encoder) throws {
    | 74 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |    |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    | 75 |         var typeContainer = container
    | 76 |         switch self {
    +-------------------------------------------------------------------
445 |
446 | 		/// Indicates which mouse button was pressed during the click.
macro expansion @Codable:31:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:141:4: note: expanded code originates here
139 | 				}
140 | 			}
141 | 		}
    +--- macro expansion @Codable --------------------------------------
    |29 | extension Item.Output.Content: Encodable {
    |30 |     public func encode(to encoder: any Encoder) throws {
    |31 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |32 |         var typeContainer = container
    |33 |         switch self {
    +-------------------------------------------------------------------
142 |
143 | 		/// An output message from the model.
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:72:3: note: expanded code originates here
 70 | 			}
 71 | 		}
 72 | 	}
    +--- 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)
    +-------------------------------------------------------------------
 73 |
 74 | 	/// Content items generated by the model.
macro expansion @Codable:55:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:72:3: note: expanded code originates here
 70 | 			}
 71 | 		}
 72 | 	}
    +--- macro expansion @Codable --------------------------------------
    |53 | extension Item.Input: Encodable {
    |54 |     public func encode(to encoder: any Encoder) throws {
    |55 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |56 |         var typeContainer = container
    |57 |         switch self {
    +-------------------------------------------------------------------
 73 |
 74 | 	/// Content items generated by the model.
macro expansion @Codable:44:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:112:5: note: expanded code originates here
110 | 					index: UInt
111 | 				)
112 | 			}
    +--- macro expansion @Codable --------------------------------------
    |42 | extension Item.Output.Content.Annotation: Encodable {
    |43 |     public func encode(to encoder: any Encoder) throws {
    |44 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |45 |         var typeContainer = container
    |46 |         switch self {
    +-------------------------------------------------------------------
113 |
114 | 			/// A text output from the model.
macro expansion @Codable:43:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:176:3: note: expanded code originates here
174 | 			}
175 | 		}
176 | 	}
    +--- macro expansion @Codable --------------------------------------
    |41 | extension Item.Output: Encodable {
    |42 |     public func encode(to encoder: any Encoder) throws {
    |43 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |44 |         var typeContainer = container
    |45 |         switch self {
    +-------------------------------------------------------------------
177 |
178 | 	/// The results of a file search tool call.
macro expansion @Codable:26:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Item.swift:544:4: note: expanded code originates here
542 | 				imageUrl: String?
543 | 			)
544 | 		}
    +--- macro expansion @Codable --------------------------------------
    |24 | extension Item.ComputerToolCallOutput.Output: Encodable {
    |25 |     public func encode(to encoder: any Encoder) throws {
    |26 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |27 |         var typeContainer = container
    |28 |         switch self {
    +-------------------------------------------------------------------
545 |
546 | 		/// The ID of the computer tool call output. Populated when this item is returned via API.
[466/475] Compiling OpenAI Model.swift
[467/475] Compiling OpenAI Request.swift
[468/475] Compiling OpenAI Response.swift
macro expansion @Codable:35:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Tool.swift:428:2: note: expanded code originates here
426 | 	@CodedAs("web_search_preview")
427 | 	case webSearch(WebSearch)
428 | }
    +--- macro expansion @Codable --------------------------------------
    |33 | extension Tool: Encodable {
    |34 |     public func encode(to encoder: any Encoder) throws {
    |35 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |36 |         var typeContainer = container
    |37 |         switch self {
    +-------------------------------------------------------------------
429 |
430 | public extension Tool {
[469/475] Compiling OpenAI Tool.swift
macro expansion @Codable:35:13: warning: variable 'container' was never mutated; consider changing to 'let' constant
`- /host/spi-builder-workspace/src/Models/Tool.swift:428:2: note: expanded code originates here
426 | 	@CodedAs("web_search_preview")
427 | 	case webSearch(WebSearch)
428 | }
    +--- macro expansion @Codable --------------------------------------
    |33 | extension Tool: Encodable {
    |34 |     public func encode(to encoder: any Encoder) throws {
    |35 |         var container = encoder.container(keyedBy: CodingKeys.self)
    |   |             `- warning: variable 'container' was never mutated; consider changing to 'let' constant
    |36 |         var typeContainer = container
    |37 |         switch self {
    +-------------------------------------------------------------------
429 |
430 | public extension Tool {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[470/475] Emitting module OpenAI
/host/spi-builder-workspace/src/Conversation.swift:4:2: error: unknown attribute 'Observable'
  2 |
  3 | /// A wrapper around the Responses API for managing a conversation.
  4 | @Observable public final class Conversation: Sendable {
    |  `- 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
[471/475] Compiling OpenAI Conversation.swift
/host/spi-builder-workspace/src/Conversation.swift:4:2: error: unknown attribute 'Observable'
  2 |
  3 | /// A wrapper around the Responses API for managing a conversation.
  4 | @Observable public final class Conversation: Sendable {
    |  `- 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/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()
[472/475] Compiling OpenAI AsyncBytes+collect.swift
/host/spi-builder-workspace/src/Conversation.swift:4:2: error: unknown attribute 'Observable'
  2 |
  3 | /// A wrapper around the Responses API for managing a conversation.
  4 | @Observable public final class Conversation: Sendable {
    |  `- 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/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()
BUILD FAILURE 6.1 wasm