The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-ai-sdk, reference main (d8d108), with Swift 6.2 for Android on 13 Aug 2026 01:27:41 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

[60/136] Compiling AI DeepSeekModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
 31 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 32 |         let urlRequest = try buildURLRequest(request)
 33 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 34 |
 35 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 |         urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 |         let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
    |                                                           `- error: value of type 'URLSession' has no member 'bytes'
104 |         if let httpResponse = response as? HTTPURLResponse,
105 |            !(200..<300).contains(httpResponse.statusCode) {
[61/136] Compiling AI DeepgramStreamingTranscription.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
 31 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 32 |         let urlRequest = try buildURLRequest(request)
 33 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 34 |
 35 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 |         urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 |         let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
    |                                                           `- error: value of type 'URLSession' has no member 'bytes'
104 |         if let httpResponse = response as? HTTPURLResponse,
105 |            !(200..<300).contains(httpResponse.statusCode) {
[62/136] Compiling AI ElevenLabsModels.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
 31 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 32 |         let urlRequest = try buildURLRequest(request)
 33 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 34 |
 35 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 |         urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 |         let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
    |                                                           `- error: value of type 'URLSession' has no member 'bytes'
104 |         if let httpResponse = response as? HTTPURLResponse,
105 |            !(200..<300).contains(httpResponse.statusCode) {
[63/136] Compiling AI FileUploads.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
 31 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 32 |         let urlRequest = try buildURLRequest(request)
 33 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 34 |
 35 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 |         urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 |         let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
    |                                                           `- error: value of type 'URLSession' has no member 'bytes'
104 |         if let httpResponse = response as? HTTPURLResponse,
105 |            !(200..<300).contains(httpResponse.statusCode) {
[64/136] Compiling AI FireworksModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
 31 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 32 |         let urlRequest = try buildURLRequest(request)
 33 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 34 |
 35 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 |         urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 |         let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
    |                                                           `- error: value of type 'URLSession' has no member 'bytes'
104 |         if let httpResponse = response as? HTTPURLResponse,
105 |            !(200..<300).contains(httpResponse.statusCode) {
[65/136] Compiling AI FoundationModelsModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
 31 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 32 |         let urlRequest = try buildURLRequest(request)
 33 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 34 |
 35 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 |         urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 |         let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
    |                                                           `- error: value of type 'URLSession' has no member 'bytes'
104 |         if let httpResponse = response as? HTTPURLResponse,
105 |            !(200..<300).contains(httpResponse.statusCode) {
[66/136] Compiling AI GoogleEmbeddingModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
 31 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 32 |         let urlRequest = try buildURLRequest(request)
 33 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 34 |
 35 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 |         urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 |         let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
    |                                                           `- error: value of type 'URLSession' has no member 'bytes'
104 |         if let httpResponse = response as? HTTPURLResponse,
105 |            !(200..<300).contains(httpResponse.statusCode) {
[67/136] Compiling AI GoogleInteractionsModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
 31 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 32 |         let urlRequest = try buildURLRequest(request)
 33 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 34 |
 35 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 |         urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 |         let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
    |                                                           `- error: value of type 'URLSession' has no member 'bytes'
104 |         if let httpResponse = response as? HTTPURLResponse,
105 |            !(200..<300).contains(httpResponse.statusCode) {
[68/136] Compiling AI HTTPChatTransport.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 |     static func chunkStream(
117 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 |     ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
 76 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 77 |
 78 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 79 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 80 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         }
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse {
106 |             if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
 41 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 42 |
 43 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 44 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 45 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 |         urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
113 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 |             var errorBody = ""
[69/136] Compiling AI LocalChatTransport.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 |     static func chunkStream(
117 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 |     ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
 76 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 77 |
 78 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 79 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 80 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         }
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse {
106 |             if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
 41 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 42 |
 43 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 44 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 45 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 |         urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
113 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 |             var errorBody = ""
[70/136] Compiling AI StreamBridge.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 |     static func chunkStream(
117 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 |     ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
 76 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 77 |
 78 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 79 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 80 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         }
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse {
106 |             if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
 41 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 42 |
 43 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 44 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 45 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 |         urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
113 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 |             var errorBody = ""
[71/136] Compiling AI TextStreamChatTransport.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 |     static func chunkStream(
117 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 |     ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
 76 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 77 |
 78 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 79 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 80 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         }
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse {
106 |             if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
 41 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 42 |
 43 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 44 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 45 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 |         urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
113 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 |             var errorBody = ""
[72/136] Compiling AI UIMessage.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 |     static func chunkStream(
117 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 |     ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
 76 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 77 |
 78 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 79 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 80 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         }
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse {
106 |             if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
 41 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 42 |
 43 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 44 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 45 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 |         urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
113 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 |             var errorBody = ""
[73/136] Compiling AI UIMessageChunk.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 |     static func chunkStream(
117 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 |     ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
 76 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 77 |
 78 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 79 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 80 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         }
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse {
106 |             if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
 41 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 42 |
 43 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 44 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 45 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 |         urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
113 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 |             var errorBody = ""
[74/136] Compiling AI UIMessageReducer.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 |     static func chunkStream(
117 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 |     ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
 76 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 77 |
 78 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 79 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 80 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         }
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse {
106 |             if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
 41 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 42 |
 43 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 44 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 45 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 |         urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
113 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 |             var errorBody = ""
[75/136] Compiling AI UIMessageStreamBuilder.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 |     static func chunkStream(
117 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 |     ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
 76 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 77 |
 78 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 79 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 80 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         }
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse {
106 |             if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
 41 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 42 |
 43 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 44 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 45 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 |         urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
113 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 |             var errorBody = ""
[76/136] Compiling AI ChatSession.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 |     static func chunkStream(
117 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 |     ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
 76 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 77 |
 78 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 79 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 80 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         }
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse {
106 |             if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
 41 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 42 |
 43 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 44 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 45 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 |         urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
113 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 |             var errorBody = ""
[77/136] Compiling AI CompletionSession.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 |     static func chunkStream(
117 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 |     ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
 76 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 77 |
 78 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 79 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 80 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         }
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse {
106 |             if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
 41 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 42 |
 43 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 44 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 45 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 |         urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
113 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 |             var errorBody = ""
[78/136] Compiling AI ObjectSession.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 |     static func chunkStream(
117 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 |     ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
 76 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 77 |
 78 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 79 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 80 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         }
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse {
106 |             if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
 41 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 42 |
 43 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 44 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 45 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 |         urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
113 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 |             var errorBody = ""
[79/136] Compiling AI JSONValue.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 |     static func chunkStream(
117 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 |     ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
 76 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 77 |
 78 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 79 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 80 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         }
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse {
106 |             if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
 41 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 42 |
 43 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 44 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 45 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 |         urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
113 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 |             var errorBody = ""
[80/136] Compiling AI MultipartForm.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 |     static func chunkStream(
117 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 |     ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
 76 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 77 |
 78 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 79 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 80 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         }
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse {
106 |             if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
 41 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 42 |
 43 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 44 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 45 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 |         urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
113 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 |             var errorBody = ""
[81/136] Compiling AI PartialJSON.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 |     static func chunkStream(
117 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 |     ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
 76 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 77 |
 78 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 79 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 80 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         }
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse {
106 |             if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
 41 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 42 |
 43 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 44 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 45 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 |         urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
113 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 |             var errorBody = ""
[82/136] Compiling AI ResponseURL.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 |     static func chunkStream(
117 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 |     ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
 76 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 77 |
 78 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 79 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 80 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         }
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse {
106 |             if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
 41 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
 42 |
 43 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 44 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 45 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 |         urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
105 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 |             var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 |         urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
113 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 |             var errorBody = ""
[83/136] Compiling AI Transcription.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
 93 |                 request.setValue(header, forHTTPHeaderField: "Authorization")
 94 |             }
 95 |             let (bytes, response) = try await urlSession.bytes(for: request)
    |                                                          `- error: value of type 'URLSession' has no member 'bytes'
 96 |             if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
 97 |                 let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
 55 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 56 |         let urlRequest = try buildURLRequest(request)
 57 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 58 |
 59 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
 66 |         _ method: String, _ path: String, beta: [String] = []
 67 |     ) async throws -> [JSONValue] {
 68 |         let (bytes, response) = try await urlSession.bytes(
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 69 |             for: request(method, path, beta: beta)
 70 |         )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
 76 |         var results: [JSONValue] = []
 77 |         for try await line in bytes.lines {
 78 |             guard !line.isEmpty, let data = line.data(using: .utf8),
    |                                                               `- error: cannot infer contextual base in reference to member 'utf8'
 79 |                   let value = try? JSONDecoder().decode(JSONValue.self, from: data)
 80 |             else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 74 |
 75 |     private static func pumpEvents(
 76 |         from bytes: URLSession.AsyncBytes,
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 77 |         isForcedJSON: Bool,
 78 |         into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
 52 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 53 |         let urlRequest = try buildURLRequest(request)
 54 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 55 |
 56 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[84/136] Compiling AI VideoGeneration.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
 93 |                 request.setValue(header, forHTTPHeaderField: "Authorization")
 94 |             }
 95 |             let (bytes, response) = try await urlSession.bytes(for: request)
    |                                                          `- error: value of type 'URLSession' has no member 'bytes'
 96 |             if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
 97 |                 let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
 55 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 56 |         let urlRequest = try buildURLRequest(request)
 57 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 58 |
 59 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
 66 |         _ method: String, _ path: String, beta: [String] = []
 67 |     ) async throws -> [JSONValue] {
 68 |         let (bytes, response) = try await urlSession.bytes(
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 69 |             for: request(method, path, beta: beta)
 70 |         )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
 76 |         var results: [JSONValue] = []
 77 |         for try await line in bytes.lines {
 78 |             guard !line.isEmpty, let data = line.data(using: .utf8),
    |                                                               `- error: cannot infer contextual base in reference to member 'utf8'
 79 |                   let value = try? JSONDecoder().decode(JSONValue.self, from: data)
 80 |             else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 74 |
 75 |     private static func pumpEvents(
 76 |         from bytes: URLSession.AsyncBytes,
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 77 |         isForcedJSON: Bool,
 78 |         into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
 52 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 53 |         let urlRequest = try buildURLRequest(request)
 54 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 55 |
 56 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[85/136] Compiling AI MCPClient.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
 93 |                 request.setValue(header, forHTTPHeaderField: "Authorization")
 94 |             }
 95 |             let (bytes, response) = try await urlSession.bytes(for: request)
    |                                                          `- error: value of type 'URLSession' has no member 'bytes'
 96 |             if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
 97 |                 let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
 55 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 56 |         let urlRequest = try buildURLRequest(request)
 57 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 58 |
 59 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
 66 |         _ method: String, _ path: String, beta: [String] = []
 67 |     ) async throws -> [JSONValue] {
 68 |         let (bytes, response) = try await urlSession.bytes(
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 69 |             for: request(method, path, beta: beta)
 70 |         )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
 76 |         var results: [JSONValue] = []
 77 |         for try await line in bytes.lines {
 78 |             guard !line.isEmpty, let data = line.data(using: .utf8),
    |                                                               `- error: cannot infer contextual base in reference to member 'utf8'
 79 |                   let value = try? JSONDecoder().decode(JSONValue.self, from: data)
 80 |             else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 74 |
 75 |     private static func pumpEvents(
 76 |         from bytes: URLSession.AsyncBytes,
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 77 |         isForcedJSON: Bool,
 78 |         into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
 52 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 53 |         let urlRequest = try buildURLRequest(request)
 54 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 55 |
 56 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[86/136] Compiling AI MCPOAuth.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
 93 |                 request.setValue(header, forHTTPHeaderField: "Authorization")
 94 |             }
 95 |             let (bytes, response) = try await urlSession.bytes(for: request)
    |                                                          `- error: value of type 'URLSession' has no member 'bytes'
 96 |             if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
 97 |                 let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
 55 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 56 |         let urlRequest = try buildURLRequest(request)
 57 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 58 |
 59 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
 66 |         _ method: String, _ path: String, beta: [String] = []
 67 |     ) async throws -> [JSONValue] {
 68 |         let (bytes, response) = try await urlSession.bytes(
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 69 |             for: request(method, path, beta: beta)
 70 |         )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
 76 |         var results: [JSONValue] = []
 77 |         for try await line in bytes.lines {
 78 |             guard !line.isEmpty, let data = line.data(using: .utf8),
    |                                                               `- error: cannot infer contextual base in reference to member 'utf8'
 79 |                   let value = try? JSONDecoder().decode(JSONValue.self, from: data)
 80 |             else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 74 |
 75 |     private static func pumpEvents(
 76 |         from bytes: URLSession.AsyncBytes,
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 77 |         isForcedJSON: Bool,
 78 |         into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
 52 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 53 |         let urlRequest = try buildURLRequest(request)
 54 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 55 |
 56 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[87/136] Compiling AI MCPSSETransport.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
 93 |                 request.setValue(header, forHTTPHeaderField: "Authorization")
 94 |             }
 95 |             let (bytes, response) = try await urlSession.bytes(for: request)
    |                                                          `- error: value of type 'URLSession' has no member 'bytes'
 96 |             if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
 97 |                 let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
 55 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 56 |         let urlRequest = try buildURLRequest(request)
 57 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 58 |
 59 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
 66 |         _ method: String, _ path: String, beta: [String] = []
 67 |     ) async throws -> [JSONValue] {
 68 |         let (bytes, response) = try await urlSession.bytes(
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 69 |             for: request(method, path, beta: beta)
 70 |         )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
 76 |         var results: [JSONValue] = []
 77 |         for try await line in bytes.lines {
 78 |             guard !line.isEmpty, let data = line.data(using: .utf8),
    |                                                               `- error: cannot infer contextual base in reference to member 'utf8'
 79 |                   let value = try? JSONDecoder().decode(JSONValue.self, from: data)
 80 |             else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 74 |
 75 |     private static func pumpEvents(
 76 |         from bytes: URLSession.AsyncBytes,
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 77 |         isForcedJSON: Bool,
 78 |         into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
 52 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 53 |         let urlRequest = try buildURLRequest(request)
 54 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 55 |
 56 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[88/136] Compiling AI MCPStdioTransport.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
 93 |                 request.setValue(header, forHTTPHeaderField: "Authorization")
 94 |             }
 95 |             let (bytes, response) = try await urlSession.bytes(for: request)
    |                                                          `- error: value of type 'URLSession' has no member 'bytes'
 96 |             if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
 97 |                 let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
 55 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 56 |         let urlRequest = try buildURLRequest(request)
 57 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 58 |
 59 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
 66 |         _ method: String, _ path: String, beta: [String] = []
 67 |     ) async throws -> [JSONValue] {
 68 |         let (bytes, response) = try await urlSession.bytes(
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 69 |             for: request(method, path, beta: beta)
 70 |         )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
 76 |         var results: [JSONValue] = []
 77 |         for try await line in bytes.lines {
 78 |             guard !line.isEmpty, let data = line.data(using: .utf8),
    |                                                               `- error: cannot infer contextual base in reference to member 'utf8'
 79 |                   let value = try? JSONDecoder().decode(JSONValue.self, from: data)
 80 |             else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 74 |
 75 |     private static func pumpEvents(
 76 |         from bytes: URLSession.AsyncBytes,
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 77 |         isForcedJSON: Bool,
 78 |         into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
 52 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 53 |         let urlRequest = try buildURLRequest(request)
 54 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 55 |
 56 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[89/136] Compiling AI MCPToolDrift.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
 93 |                 request.setValue(header, forHTTPHeaderField: "Authorization")
 94 |             }
 95 |             let (bytes, response) = try await urlSession.bytes(for: request)
    |                                                          `- error: value of type 'URLSession' has no member 'bytes'
 96 |             if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
 97 |                 let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
 55 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 56 |         let urlRequest = try buildURLRequest(request)
 57 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 58 |
 59 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
 66 |         _ method: String, _ path: String, beta: [String] = []
 67 |     ) async throws -> [JSONValue] {
 68 |         let (bytes, response) = try await urlSession.bytes(
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 69 |             for: request(method, path, beta: beta)
 70 |         )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
 76 |         var results: [JSONValue] = []
 77 |         for try await line in bytes.lines {
 78 |             guard !line.isEmpty, let data = line.data(using: .utf8),
    |                                                               `- error: cannot infer contextual base in reference to member 'utf8'
 79 |                   let value = try? JSONDecoder().decode(JSONValue.self, from: data)
 80 |             else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 74 |
 75 |     private static func pumpEvents(
 76 |         from bytes: URLSession.AsyncBytes,
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 77 |         isForcedJSON: Bool,
 78 |         into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
 52 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 53 |         let urlRequest = try buildURLRequest(request)
 54 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 55 |
 56 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[90/136] Compiling AI AIGatewayModel.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
 93 |                 request.setValue(header, forHTTPHeaderField: "Authorization")
 94 |             }
 95 |             let (bytes, response) = try await urlSession.bytes(for: request)
    |                                                          `- error: value of type 'URLSession' has no member 'bytes'
 96 |             if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
 97 |                 let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
 55 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 56 |         let urlRequest = try buildURLRequest(request)
 57 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 58 |
 59 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
 66 |         _ method: String, _ path: String, beta: [String] = []
 67 |     ) async throws -> [JSONValue] {
 68 |         let (bytes, response) = try await urlSession.bytes(
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 69 |             for: request(method, path, beta: beta)
 70 |         )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
 76 |         var results: [JSONValue] = []
 77 |         for try await line in bytes.lines {
 78 |             guard !line.isEmpty, let data = line.data(using: .utf8),
    |                                                               `- error: cannot infer contextual base in reference to member 'utf8'
 79 |                   let value = try? JSONDecoder().decode(JSONValue.self, from: data)
 80 |             else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 74 |
 75 |     private static func pumpEvents(
 76 |         from bytes: URLSession.AsyncBytes,
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 77 |         isForcedJSON: Bool,
 78 |         into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
 52 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 53 |         let urlRequest = try buildURLRequest(request)
 54 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 55 |
 56 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[91/136] Compiling AI AlibabaModel.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
 93 |                 request.setValue(header, forHTTPHeaderField: "Authorization")
 94 |             }
 95 |             let (bytes, response) = try await urlSession.bytes(for: request)
    |                                                          `- error: value of type 'URLSession' has no member 'bytes'
 96 |             if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
 97 |                 let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
 55 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 56 |         let urlRequest = try buildURLRequest(request)
 57 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 58 |
 59 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
 66 |         _ method: String, _ path: String, beta: [String] = []
 67 |     ) async throws -> [JSONValue] {
 68 |         let (bytes, response) = try await urlSession.bytes(
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 69 |             for: request(method, path, beta: beta)
 70 |         )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
 76 |         var results: [JSONValue] = []
 77 |         for try await line in bytes.lines {
 78 |             guard !line.isEmpty, let data = line.data(using: .utf8),
    |                                                               `- error: cannot infer contextual base in reference to member 'utf8'
 79 |                   let value = try? JSONDecoder().decode(JSONValue.self, from: data)
 80 |             else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 74 |
 75 |     private static func pumpEvents(
 76 |         from bytes: URLSession.AsyncBytes,
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 77 |         isForcedJSON: Bool,
 78 |         into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
 52 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 53 |         let urlRequest = try buildURLRequest(request)
 54 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 55 |
 56 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[92/136] Compiling AI AnthropicModel.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
 93 |                 request.setValue(header, forHTTPHeaderField: "Authorization")
 94 |             }
 95 |             let (bytes, response) = try await urlSession.bytes(for: request)
    |                                                          `- error: value of type 'URLSession' has no member 'bytes'
 96 |             if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
 97 |                 let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
 55 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 56 |         let urlRequest = try buildURLRequest(request)
 57 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 58 |
 59 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
 66 |         _ method: String, _ path: String, beta: [String] = []
 67 |     ) async throws -> [JSONValue] {
 68 |         let (bytes, response) = try await urlSession.bytes(
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 69 |             for: request(method, path, beta: beta)
 70 |         )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
 76 |         var results: [JSONValue] = []
 77 |         for try await line in bytes.lines {
 78 |             guard !line.isEmpty, let data = line.data(using: .utf8),
    |                                                               `- error: cannot infer contextual base in reference to member 'utf8'
 79 |                   let value = try? JSONDecoder().decode(JSONValue.self, from: data)
 80 |             else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 74 |
 75 |     private static func pumpEvents(
 76 |         from bytes: URLSession.AsyncBytes,
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 77 |         isForcedJSON: Bool,
 78 |         into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
 52 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 53 |         let urlRequest = try buildURLRequest(request)
 54 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 55 |
 56 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[93/136] Compiling AI AnthropicPlatformClients.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
 93 |                 request.setValue(header, forHTTPHeaderField: "Authorization")
 94 |             }
 95 |             let (bytes, response) = try await urlSession.bytes(for: request)
    |                                                          `- error: value of type 'URLSession' has no member 'bytes'
 96 |             if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
 97 |                 let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
 55 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 56 |         let urlRequest = try buildURLRequest(request)
 57 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 58 |
 59 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
 66 |         _ method: String, _ path: String, beta: [String] = []
 67 |     ) async throws -> [JSONValue] {
 68 |         let (bytes, response) = try await urlSession.bytes(
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 69 |             for: request(method, path, beta: beta)
 70 |         )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
 76 |         var results: [JSONValue] = []
 77 |         for try await line in bytes.lines {
 78 |             guard !line.isEmpty, let data = line.data(using: .utf8),
    |                                                               `- error: cannot infer contextual base in reference to member 'utf8'
 79 |                   let value = try? JSONDecoder().decode(JSONValue.self, from: data)
 80 |             else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 74 |
 75 |     private static func pumpEvents(
 76 |         from bytes: URLSession.AsyncBytes,
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 77 |         isForcedJSON: Bool,
 78 |         into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
 52 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 53 |         let urlRequest = try buildURLRequest(request)
 54 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 55 |
 56 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[94/136] Compiling AI AzureOpenAIProvider.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
 93 |                 request.setValue(header, forHTTPHeaderField: "Authorization")
 94 |             }
 95 |             let (bytes, response) = try await urlSession.bytes(for: request)
    |                                                          `- error: value of type 'URLSession' has no member 'bytes'
 96 |             if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
 97 |                 let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
 55 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 56 |         let urlRequest = try buildURLRequest(request)
 57 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 58 |
 59 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
 66 |         _ method: String, _ path: String, beta: [String] = []
 67 |     ) async throws -> [JSONValue] {
 68 |         let (bytes, response) = try await urlSession.bytes(
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 69 |             for: request(method, path, beta: beta)
 70 |         )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
 76 |         var results: [JSONValue] = []
 77 |         for try await line in bytes.lines {
 78 |             guard !line.isEmpty, let data = line.data(using: .utf8),
    |                                                               `- error: cannot infer contextual base in reference to member 'utf8'
 79 |                   let value = try? JSONDecoder().decode(JSONValue.self, from: data)
 80 |             else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 74 |
 75 |     private static func pumpEvents(
 76 |         from bytes: URLSession.AsyncBytes,
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 77 |         isForcedJSON: Bool,
 78 |         into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
 52 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 53 |         let urlRequest = try buildURLRequest(request)
 54 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 55 |
 56 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[95/136] Compiling AI BasetenModel.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
 93 |                 request.setValue(header, forHTTPHeaderField: "Authorization")
 94 |             }
 95 |             let (bytes, response) = try await urlSession.bytes(for: request)
    |                                                          `- error: value of type 'URLSession' has no member 'bytes'
 96 |             if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
 97 |                 let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
 55 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 56 |         let urlRequest = try buildURLRequest(request)
 57 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 58 |
 59 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
 66 |         _ method: String, _ path: String, beta: [String] = []
 67 |     ) async throws -> [JSONValue] {
 68 |         let (bytes, response) = try await urlSession.bytes(
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 69 |             for: request(method, path, beta: beta)
 70 |         )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
 76 |         var results: [JSONValue] = []
 77 |         for try await line in bytes.lines {
 78 |             guard !line.isEmpty, let data = line.data(using: .utf8),
    |                                                               `- error: cannot infer contextual base in reference to member 'utf8'
 79 |                   let value = try? JSONDecoder().decode(JSONValue.self, from: data)
 80 |             else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 74 |
 75 |     private static func pumpEvents(
 76 |         from bytes: URLSession.AsyncBytes,
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 77 |         isForcedJSON: Bool,
 78 |         into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
 52 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 53 |         let urlRequest = try buildURLRequest(request)
 54 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 55 |
 56 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[96/136] Compiling AI BedrockMantleProvider.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
 93 |                 request.setValue(header, forHTTPHeaderField: "Authorization")
 94 |             }
 95 |             let (bytes, response) = try await urlSession.bytes(for: request)
    |                                                          `- error: value of type 'URLSession' has no member 'bytes'
 96 |             if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
 97 |                 let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
 55 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 56 |         let urlRequest = try buildURLRequest(request)
 57 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 58 |
 59 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
 66 |         _ method: String, _ path: String, beta: [String] = []
 67 |     ) async throws -> [JSONValue] {
 68 |         let (bytes, response) = try await urlSession.bytes(
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 69 |             for: request(method, path, beta: beta)
 70 |         )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
 76 |         var results: [JSONValue] = []
 77 |         for try await line in bytes.lines {
 78 |             guard !line.isEmpty, let data = line.data(using: .utf8),
    |                                                               `- error: cannot infer contextual base in reference to member 'utf8'
 79 |                   let value = try? JSONDecoder().decode(JSONValue.self, from: data)
 80 |             else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 74 |
 75 |     private static func pumpEvents(
 76 |         from bytes: URLSession.AsyncBytes,
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 77 |         isForcedJSON: Bool,
 78 |         into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
 52 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 53 |         let urlRequest = try buildURLRequest(request)
 54 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 55 |
 56 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[97/136] Compiling AI BedrockModel.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
 93 |                 request.setValue(header, forHTTPHeaderField: "Authorization")
 94 |             }
 95 |             let (bytes, response) = try await urlSession.bytes(for: request)
    |                                                          `- error: value of type 'URLSession' has no member 'bytes'
 96 |             if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
 97 |                 let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
 55 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 56 |         let urlRequest = try buildURLRequest(request)
 57 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 58 |
 59 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
 66 |         _ method: String, _ path: String, beta: [String] = []
 67 |     ) async throws -> [JSONValue] {
 68 |         let (bytes, response) = try await urlSession.bytes(
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 69 |             for: request(method, path, beta: beta)
 70 |         )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
 76 |         var results: [JSONValue] = []
 77 |         for try await line in bytes.lines {
 78 |             guard !line.isEmpty, let data = line.data(using: .utf8),
    |                                                               `- error: cannot infer contextual base in reference to member 'utf8'
 79 |                   let value = try? JSONDecoder().decode(JSONValue.self, from: data)
 80 |             else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 74 |
 75 |     private static func pumpEvents(
 76 |         from bytes: URLSession.AsyncBytes,
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 77 |         isForcedJSON: Bool,
 78 |         into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
 52 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
 53 |         let urlRequest = try buildURLRequest(request)
 54 |         let (bytes, response) = try await urlSession.bytes(for: urlRequest)
    |                                                      `- error: value of type 'URLSession' has no member 'bytes'
 55 |
 56 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[98/136] Emitting module AI
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 74 |
 75 |     private static func pumpEvents(
 76 |         from bytes: URLSession.AsyncBytes,
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 77 |         isForcedJSON: Bool,
 78 |         into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:9:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |     public var headers: [String: String]
 8 |     public var queryParams: [String: String]
 9 |     private let urlSession: URLSession
   |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 |     public init(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |         headers: [String: String] = [:],
16 |         queryParams: [String: String] = [:],
17 |         urlSession: URLSession = .shared
   |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     ) {
19 |         self.name = name
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:35: error: value of type '_' expected to be instance of class or class-constrained type
15 |         headers: [String: String] = [:],
16 |         queryParams: [String: String] = [:],
17 |         urlSession: URLSession = .shared
   |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
18 |     ) {
19 |         self.name = name
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 |         headers: [String: String] = [:],
16 |         queryParams: [String: String] = [:],
17 |         urlSession: URLSession = .shared
   |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |     ) {
19 |         self.name = name
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:9:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-Sendable type 'URLSession' (aka 'AnyObject')
 7 |     public var headers: [String: String]
 8 |     public var queryParams: [String: String]
 9 |     private let urlSession: URLSession
   |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-Sendable type 'URLSession' (aka 'AnyObject')
10 |
11 |     public init(
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 |     static func chunkStream(
117 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 |     ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[99/136] Compiling AI VercelModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 |         let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 |         let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
    |                                                             `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[100/136] Compiling AI VoyageModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 |         let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 |         let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
    |                                                             `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[101/136] Compiling AI XaiImageModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 |         let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 |         let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
    |                                                             `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[102/136] Compiling AI XaiModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 |         let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 |         let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
    |                                                             `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[103/136] Compiling AI XaiPlatformClients.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 |         let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 |         let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
    |                                                             `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[104/136] Compiling AI XaiVideoModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 |         let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 |         let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
    |                                                             `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[105/136] Compiling AI AudioResampling.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 |         let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 |         let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
    |                                                             `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[106/136] Compiling AI GoogleRealtimeModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 |         let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 |         let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
    |                                                             `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[107/136] Compiling AI OpenAIRealtimeModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 |         let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 |         let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
    |                                                             `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[108/136] Compiling AI RealtimeModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 |         let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 |         let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
    |                                                             `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[109/136] Compiling AI RealtimeSession.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 |         let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 |         let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
    |                                                             `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[110/136] Compiling AI XaiRealtimeModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 |         let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 |         let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
    |                                                             `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[111/136] Compiling AI AWSEventStream.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 |         let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 |         let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
    |                                                             `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[112/136] Compiling AI SSE.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 |         let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 |         let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
    |                                                             `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[113/136] Compiling AI ChatTransport.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 |     ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 |         let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 |         let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
    |                                                             `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
[114/136] Compiling AI AIError.swift
[115/136] Compiling AI Agent.swift
[116/136] Compiling AI Compaction.swift
[117/136] Compiling AI Embeddings.swift
[118/136] Compiling AI GenerateObject.swift
[119/136] Compiling AI GenerateText.swift
[120/136] Compiling AI ImageGeneration.swift
[121/136] Compiling AI LanguageModel.swift
[122/136] Compiling AI Message.swift
[123/136] Compiling AI Middleware.swift
[124/136] Compiling AI ModelContextWindows.swift
[125/136] Compiling AI ModelMiddleware.swift
[126/136] Compiling AI ProviderDefinedTool.swift
[127/136] Compiling AI ProviderRegistry.swift
[128/136] Compiling AI PruneMessages.swift
BUILD FAILURE 6.2 android