Build Information
Failed to build swift-ai-sdk, reference main (d8d108), with Swift 6.3 for Android on 13 Aug 2026 01:19:14 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344849-0":/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.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
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: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:9:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-Sendable type '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 'AnyObject'
10 |
11 | public init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:38:25: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
36 | headers: headers,
37 | queryParams: queryParams,
38 | urlSession: urlSession,
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
39 | providerName: name
40 | )
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:49:25: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
47 | baseURL: baseURL,
48 | headers: headers,
49 | urlSession: urlSession,
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
50 | providerName: name
51 | )
[67/136] Compiling AI OpenAICompatibleModelSupport.swift
/host/spi-builder-workspace/Sources/AI/Providers/GoogleModel.swift:41:54: error: value of type 'URLSession' has no member 'bytes'
39 | urlSession: URLSession
40 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
41 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
42 |
43 | 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/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: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:9:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-Sendable type '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 'AnyObject'
10 |
11 | public init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:38:25: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
36 | headers: headers,
37 | queryParams: queryParams,
38 | urlSession: urlSession,
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
39 | providerName: name
40 | )
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:49:25: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
47 | baseURL: baseURL,
48 | headers: headers,
49 | urlSession: urlSession,
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
50 | providerName: name
51 | )
[68/136] Compiling AI OpenAICompatibleProvider.swift
/host/spi-builder-workspace/Sources/AI/Providers/GoogleModel.swift:41:54: error: value of type 'URLSession' has no member 'bytes'
39 | urlSession: URLSession
40 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
41 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
42 |
43 | 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/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: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:9:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-Sendable type '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 'AnyObject'
10 |
11 | public init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:38:25: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
36 | headers: headers,
37 | queryParams: queryParams,
38 | urlSession: urlSession,
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
39 | providerName: name
40 | )
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:49:25: error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
47 | baseURL: baseURL,
48 | headers: headers,
49 | urlSession: urlSession,
| |- error: 'Foundation.URLSession' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSession'
| `- note: did you mean to use 'as!' to force downcast?
50 | providerName: name
51 | )
[69/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)
[70/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)
[71/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)
[72/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)
[73/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)
[74/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)
[75/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)
[76/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)
[77/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)
[78/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)
[79/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)
[80/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)
[81/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)
[82/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)
[83/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)
[84/136] Compiling AI RemoteContent.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[85/136] Compiling AI Reranking.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[86/136] Compiling AI Retry.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[87/136] Compiling AI RuntimeContext.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[88/136] Compiling AI Schema.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[89/136] Compiling AI SpeechGeneration.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[90/136] Compiling AI StepControl.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[91/136] Compiling AI StepRequest.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[92/136] Compiling AI StreamSmoothing.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[93/136] Compiling AI StreamText.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[94/136] Compiling AI StreamTranscription.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[95/136] Compiling AI Telemetry.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[96/136] Compiling AI Timeouts.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[97/136] Compiling AI Tool.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[98/136] Compiling AI ToolApproval.swift
/host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift:66:55: error: value of type 'URLSession' has no member 'bytes'
64 | }
65 |
66 | let (stream, response) = try await urlSession.bytes(from: url)
| `- error: value of type 'URLSession' has no member 'bytes'
67 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
68 | throw AIError.http(
[99/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 = ""
[100/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 = ""
[101/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 = ""
[102/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 = ""
[103/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 = ""
[104/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 = ""
[105/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 = ""
[106/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 = ""
[107/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 = ""
[108/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 = ""
[109/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 = ""
[110/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 = ""
[111/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 = ""
[112/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 = ""
[113/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 = ""
[114/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)
[115/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)
[116/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)
[117/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)
[118/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)
[119/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)
[120/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)
[121/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)
[122/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)
[123/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)
[124/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)
[125/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)
[126/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)
[127/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)
[128/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)
BUILD FAILURE 6.3 android