The Swift Package Index logo.Swift Package Index

Build Information

Failed to build opencode-sdk-swift, reference main (dc59af), with Swift 6.3 for Android on 18 Apr 2026 04:26:17 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dl-alexandre/opencode-sdk-swift.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/dl-alexandre/opencode-sdk-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at dc59af9 Remove SECURITY.md file as it is no longer needed for the project. This simplifies the documentation and focuses on essential resources.
Cloned https://github.com/dl-alexandre/opencode-sdk-swift.git
Revision (git rev-parse @):
dc59af9e52759e8bf590addd6f3008332e34fd21
SUCCESS checkout https://github.com/dl-alexandre/opencode-sdk-swift.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/dl-alexandre/opencode-sdk-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--4F562202D5529B1.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/50] Emitting module opencode_sdk_swift
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:7:5: error: 'nonisolated' can not be applied to variable with non-'Sendable' type 'URLSession' (aka 'AnyObject')
  5 |     public let configuration: OpenCodeConfiguration
  6 |
  7 |     nonisolated private let urlSession: URLSession
    |     `- error: 'nonisolated' can not be applied to variable with non-'Sendable' type 'URLSession' (aka 'AnyObject')
  8 |     private let encoder: JSONEncoder
  9 |     private let decoder: JSONDecoder
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:7:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  5 |     public let configuration: OpenCodeConfiguration
  6 |
  7 |     nonisolated private let urlSession: URLSession
    |                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     private let encoder: JSONEncoder
  9 |     private let decoder: JSONDecoder
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/opencode-sdk-swift/Core/Client.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
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/opencode-sdk-swift/Core/Client.swift:13:32: error: value of type '_' expected to be instance of class or class-constrained type
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:154:17: error: cannot find type 'URLRequest' in scope
152 |         from request: OpenCodeRequest<Response>,
153 |         bodyData: Data?
154 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
155 |         var urlComponents = URLComponents(
156 |             url: configuration.baseURL,
[4/56] Compiling opencode_sdk_swift formatter.swift
[5/56] Compiling opencode_sdk_swift global.swift
[6/56] Compiling opencode_sdk_swift instance.swift
[7/56] Compiling opencode_sdk_swift lsp.swift
[8/56] Compiling opencode_sdk_swift mcp.swift
[9/56] Compiling opencode_sdk_swift part.swift
[10/56] Compiling opencode_sdk_swift Client.swift
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:7:5: error: 'nonisolated' can not be applied to variable with non-'Sendable' type 'URLSession' (aka 'AnyObject')
  5 |     public let configuration: OpenCodeConfiguration
  6 |
  7 |     nonisolated private let urlSession: URLSession
    |     `- error: 'nonisolated' can not be applied to variable with non-'Sendable' type 'URLSession' (aka 'AnyObject')
  8 |     private let encoder: JSONEncoder
  9 |     private let decoder: JSONDecoder
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:7:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  5 |     public let configuration: OpenCodeConfiguration
  6 |
  7 |     nonisolated private let urlSession: URLSession
    |                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     private let encoder: JSONEncoder
  9 |     private let decoder: JSONDecoder
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/opencode-sdk-swift/Core/Client.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
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/opencode-sdk-swift/Core/Client.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:13:32: error: value of type '_' expected to be instance of class or class-constrained type
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:154:17: error: cannot find type 'URLRequest' in scope
152 |         from request: OpenCodeRequest<Response>,
153 |         bodyData: Data?
154 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
155 |         var urlComponents = URLComponents(
156 |             url: configuration.baseURL,
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:62:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |
 61 |         let data: Data
 62 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |         do {
 64 |             (data, response) = try await urlSession.data(for: urlRequest)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:64:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 62 |         let response: URLResponse
 63 |         do {
 64 |             (data, response) = try await urlSession.data(for: urlRequest)
    |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 65 |         } catch {
 66 |             if Task.isCancelled {
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:74:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 72 |         try Task.checkCancellation()
 73 |
 74 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 75 |             throw OpenCodeError.invalidResponse(statusCode: -1, data: data)
 76 |         }
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:74:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         try Task.checkCancellation()
 73 |
 74 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |             throw OpenCodeError.invalidResponse(statusCode: -1, data: data)
 76 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:78:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 76 |         }
 77 |
 78 |         guard (200...299).contains(httpResponse.statusCode) else {
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 79 |             throw OpenCodeError.invalidResponse(statusCode: httpResponse.statusCode, data: data)
 80 |         }
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:79:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |
 78 |         guard (200...299).contains(httpResponse.statusCode) else {
 79 |             throw OpenCodeError.invalidResponse(statusCode: httpResponse.statusCode, data: data)
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |         }
 81 |
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:170:26: error: cannot find 'URLRequest' in scope
168 |         }
169 |
170 |         var urlRequest = URLRequest(url: url, timeoutInterval: configuration.timeout)
    |                          `- error: cannot find 'URLRequest' in scope
171 |         urlRequest.httpMethod = request.method.rawValue
172 |
[11/56] Compiling opencode_sdk_swift Configuration.swift
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:7:5: error: 'nonisolated' can not be applied to variable with non-'Sendable' type 'URLSession' (aka 'AnyObject')
  5 |     public let configuration: OpenCodeConfiguration
  6 |
  7 |     nonisolated private let urlSession: URLSession
    |     `- error: 'nonisolated' can not be applied to variable with non-'Sendable' type 'URLSession' (aka 'AnyObject')
  8 |     private let encoder: JSONEncoder
  9 |     private let decoder: JSONDecoder
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:7:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  5 |     public let configuration: OpenCodeConfiguration
  6 |
  7 |     nonisolated private let urlSession: URLSession
    |                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     private let encoder: JSONEncoder
  9 |     private let decoder: JSONDecoder
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/opencode-sdk-swift/Core/Client.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
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/opencode-sdk-swift/Core/Client.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:13:32: error: value of type '_' expected to be instance of class or class-constrained type
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:154:17: error: cannot find type 'URLRequest' in scope
152 |         from request: OpenCodeRequest<Response>,
153 |         bodyData: Data?
154 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
155 |         var urlComponents = URLComponents(
156 |             url: configuration.baseURL,
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:62:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |
 61 |         let data: Data
 62 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |         do {
 64 |             (data, response) = try await urlSession.data(for: urlRequest)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:64:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 62 |         let response: URLResponse
 63 |         do {
 64 |             (data, response) = try await urlSession.data(for: urlRequest)
    |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 65 |         } catch {
 66 |             if Task.isCancelled {
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:74:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 72 |         try Task.checkCancellation()
 73 |
 74 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 75 |             throw OpenCodeError.invalidResponse(statusCode: -1, data: data)
 76 |         }
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:74:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         try Task.checkCancellation()
 73 |
 74 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |             throw OpenCodeError.invalidResponse(statusCode: -1, data: data)
 76 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:78:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 76 |         }
 77 |
 78 |         guard (200...299).contains(httpResponse.statusCode) else {
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 79 |             throw OpenCodeError.invalidResponse(statusCode: httpResponse.statusCode, data: data)
 80 |         }
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:79:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |
 78 |         guard (200...299).contains(httpResponse.statusCode) else {
 79 |             throw OpenCodeError.invalidResponse(statusCode: httpResponse.statusCode, data: data)
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |         }
 81 |
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:170:26: error: cannot find 'URLRequest' in scope
168 |         }
169 |
170 |         var urlRequest = URLRequest(url: url, timeoutInterval: configuration.timeout)
    |                          `- error: cannot find 'URLRequest' in scope
171 |         urlRequest.httpMethod = request.method.rawValue
172 |
[12/56] Compiling opencode_sdk_swift Error.swift
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:7:5: error: 'nonisolated' can not be applied to variable with non-'Sendable' type 'URLSession' (aka 'AnyObject')
  5 |     public let configuration: OpenCodeConfiguration
  6 |
  7 |     nonisolated private let urlSession: URLSession
    |     `- error: 'nonisolated' can not be applied to variable with non-'Sendable' type 'URLSession' (aka 'AnyObject')
  8 |     private let encoder: JSONEncoder
  9 |     private let decoder: JSONDecoder
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:7:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  5 |     public let configuration: OpenCodeConfiguration
  6 |
  7 |     nonisolated private let urlSession: URLSession
    |                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     private let encoder: JSONEncoder
  9 |     private let decoder: JSONDecoder
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/opencode-sdk-swift/Core/Client.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
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/opencode-sdk-swift/Core/Client.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:13:32: error: value of type '_' expected to be instance of class or class-constrained type
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:154:17: error: cannot find type 'URLRequest' in scope
152 |         from request: OpenCodeRequest<Response>,
153 |         bodyData: Data?
154 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
155 |         var urlComponents = URLComponents(
156 |             url: configuration.baseURL,
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:62:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |
 61 |         let data: Data
 62 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |         do {
 64 |             (data, response) = try await urlSession.data(for: urlRequest)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:64:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 62 |         let response: URLResponse
 63 |         do {
 64 |             (data, response) = try await urlSession.data(for: urlRequest)
    |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 65 |         } catch {
 66 |             if Task.isCancelled {
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:74:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 72 |         try Task.checkCancellation()
 73 |
 74 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 75 |             throw OpenCodeError.invalidResponse(statusCode: -1, data: data)
 76 |         }
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:74:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         try Task.checkCancellation()
 73 |
 74 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |             throw OpenCodeError.invalidResponse(statusCode: -1, data: data)
 76 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:78:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 76 |         }
 77 |
 78 |         guard (200...299).contains(httpResponse.statusCode) else {
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 79 |             throw OpenCodeError.invalidResponse(statusCode: httpResponse.statusCode, data: data)
 80 |         }
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:79:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |
 78 |         guard (200...299).contains(httpResponse.statusCode) else {
 79 |             throw OpenCodeError.invalidResponse(statusCode: httpResponse.statusCode, data: data)
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |         }
 81 |
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:170:26: error: cannot find 'URLRequest' in scope
168 |         }
169 |
170 |         var urlRequest = URLRequest(url: url, timeoutInterval: configuration.timeout)
    |                          `- error: cannot find 'URLRequest' in scope
171 |         urlRequest.httpMethod = request.method.rawValue
172 |
[13/56] Compiling opencode_sdk_swift Request.swift
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:7:5: error: 'nonisolated' can not be applied to variable with non-'Sendable' type 'URLSession' (aka 'AnyObject')
  5 |     public let configuration: OpenCodeConfiguration
  6 |
  7 |     nonisolated private let urlSession: URLSession
    |     `- error: 'nonisolated' can not be applied to variable with non-'Sendable' type 'URLSession' (aka 'AnyObject')
  8 |     private let encoder: JSONEncoder
  9 |     private let decoder: JSONDecoder
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:7:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  5 |     public let configuration: OpenCodeConfiguration
  6 |
  7 |     nonisolated private let urlSession: URLSession
    |                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     private let encoder: JSONEncoder
  9 |     private let decoder: JSONDecoder
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/opencode-sdk-swift/Core/Client.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
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/opencode-sdk-swift/Core/Client.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:13:32: error: value of type '_' expected to be instance of class or class-constrained type
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:154:17: error: cannot find type 'URLRequest' in scope
152 |         from request: OpenCodeRequest<Response>,
153 |         bodyData: Data?
154 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
155 |         var urlComponents = URLComponents(
156 |             url: configuration.baseURL,
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:62:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |
 61 |         let data: Data
 62 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |         do {
 64 |             (data, response) = try await urlSession.data(for: urlRequest)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:64:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 62 |         let response: URLResponse
 63 |         do {
 64 |             (data, response) = try await urlSession.data(for: urlRequest)
    |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 65 |         } catch {
 66 |             if Task.isCancelled {
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:74:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 72 |         try Task.checkCancellation()
 73 |
 74 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 75 |             throw OpenCodeError.invalidResponse(statusCode: -1, data: data)
 76 |         }
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:74:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         try Task.checkCancellation()
 73 |
 74 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |             throw OpenCodeError.invalidResponse(statusCode: -1, data: data)
 76 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:78:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 76 |         }
 77 |
 78 |         guard (200...299).contains(httpResponse.statusCode) else {
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 79 |             throw OpenCodeError.invalidResponse(statusCode: httpResponse.statusCode, data: data)
 80 |         }
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:79:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |
 78 |         guard (200...299).contains(httpResponse.statusCode) else {
 79 |             throw OpenCodeError.invalidResponse(statusCode: httpResponse.statusCode, data: data)
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |         }
 81 |
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:170:26: error: cannot find 'URLRequest' in scope
168 |         }
169 |
170 |         var urlRequest = URLRequest(url: url, timeoutInterval: configuration.timeout)
    |                          `- error: cannot find 'URLRequest' in scope
171 |         urlRequest.httpMethod = request.method.rawValue
172 |
[14/56] Compiling opencode_sdk_swift agentModels.swift
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:7:5: error: 'nonisolated' can not be applied to variable with non-'Sendable' type 'URLSession' (aka 'AnyObject')
  5 |     public let configuration: OpenCodeConfiguration
  6 |
  7 |     nonisolated private let urlSession: URLSession
    |     `- error: 'nonisolated' can not be applied to variable with non-'Sendable' type 'URLSession' (aka 'AnyObject')
  8 |     private let encoder: JSONEncoder
  9 |     private let decoder: JSONDecoder
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:7:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  5 |     public let configuration: OpenCodeConfiguration
  6 |
  7 |     nonisolated private let urlSession: URLSession
    |                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     private let encoder: JSONEncoder
  9 |     private let decoder: JSONDecoder
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/opencode-sdk-swift/Core/Client.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
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/opencode-sdk-swift/Core/Client.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:13:32: error: value of type '_' expected to be instance of class or class-constrained type
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:154:17: error: cannot find type 'URLRequest' in scope
152 |         from request: OpenCodeRequest<Response>,
153 |         bodyData: Data?
154 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
155 |         var urlComponents = URLComponents(
156 |             url: configuration.baseURL,
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:62:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |
 61 |         let data: Data
 62 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |         do {
 64 |             (data, response) = try await urlSession.data(for: urlRequest)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:64:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 62 |         let response: URLResponse
 63 |         do {
 64 |             (data, response) = try await urlSession.data(for: urlRequest)
    |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 65 |         } catch {
 66 |             if Task.isCancelled {
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:74:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 72 |         try Task.checkCancellation()
 73 |
 74 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 75 |             throw OpenCodeError.invalidResponse(statusCode: -1, data: data)
 76 |         }
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:74:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         try Task.checkCancellation()
 73 |
 74 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |             throw OpenCodeError.invalidResponse(statusCode: -1, data: data)
 76 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:78:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 76 |         }
 77 |
 78 |         guard (200...299).contains(httpResponse.statusCode) else {
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 79 |             throw OpenCodeError.invalidResponse(statusCode: httpResponse.statusCode, data: data)
 80 |         }
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:79:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |
 78 |         guard (200...299).contains(httpResponse.statusCode) else {
 79 |             throw OpenCodeError.invalidResponse(statusCode: httpResponse.statusCode, data: data)
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |         }
 81 |
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:170:26: error: cannot find 'URLRequest' in scope
168 |         }
169 |
170 |         var urlRequest = URLRequest(url: url, timeoutInterval: configuration.timeout)
    |                          `- error: cannot find 'URLRequest' in scope
171 |         urlRequest.httpMethod = request.method.rawValue
172 |
[15/56] Compiling opencode_sdk_swift appModels.swift
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:7:5: error: 'nonisolated' can not be applied to variable with non-'Sendable' type 'URLSession' (aka 'AnyObject')
  5 |     public let configuration: OpenCodeConfiguration
  6 |
  7 |     nonisolated private let urlSession: URLSession
    |     `- error: 'nonisolated' can not be applied to variable with non-'Sendable' type 'URLSession' (aka 'AnyObject')
  8 |     private let encoder: JSONEncoder
  9 |     private let decoder: JSONDecoder
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:7:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  5 |     public let configuration: OpenCodeConfiguration
  6 |
  7 |     nonisolated private let urlSession: URLSession
    |                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     private let encoder: JSONEncoder
  9 |     private let decoder: JSONDecoder
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/opencode-sdk-swift/Core/Client.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
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/opencode-sdk-swift/Core/Client.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:13:32: error: value of type '_' expected to be instance of class or class-constrained type
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:154:17: error: cannot find type 'URLRequest' in scope
152 |         from request: OpenCodeRequest<Response>,
153 |         bodyData: Data?
154 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
155 |         var urlComponents = URLComponents(
156 |             url: configuration.baseURL,
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:62:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |
 61 |         let data: Data
 62 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |         do {
 64 |             (data, response) = try await urlSession.data(for: urlRequest)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:64:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 62 |         let response: URLResponse
 63 |         do {
 64 |             (data, response) = try await urlSession.data(for: urlRequest)
    |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 65 |         } catch {
 66 |             if Task.isCancelled {
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:74:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 72 |         try Task.checkCancellation()
 73 |
 74 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 75 |             throw OpenCodeError.invalidResponse(statusCode: -1, data: data)
 76 |         }
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:74:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         try Task.checkCancellation()
 73 |
 74 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |             throw OpenCodeError.invalidResponse(statusCode: -1, data: data)
 76 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:78:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 76 |         }
 77 |
 78 |         guard (200...299).contains(httpResponse.statusCode) else {
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 79 |             throw OpenCodeError.invalidResponse(statusCode: httpResponse.statusCode, data: data)
 80 |         }
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:79:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |
 78 |         guard (200...299).contains(httpResponse.statusCode) else {
 79 |             throw OpenCodeError.invalidResponse(statusCode: httpResponse.statusCode, data: data)
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |         }
 81 |
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:170:26: error: cannot find 'URLRequest' in scope
168 |         }
169 |
170 |         var urlRequest = URLRequest(url: url, timeoutInterval: configuration.timeout)
    |                          `- error: cannot find 'URLRequest' in scope
171 |         urlRequest.httpMethod = request.method.rawValue
172 |
[16/56] Compiling opencode_sdk_swift authModels.swift
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:7:5: error: 'nonisolated' can not be applied to variable with non-'Sendable' type 'URLSession' (aka 'AnyObject')
  5 |     public let configuration: OpenCodeConfiguration
  6 |
  7 |     nonisolated private let urlSession: URLSession
    |     `- error: 'nonisolated' can not be applied to variable with non-'Sendable' type 'URLSession' (aka 'AnyObject')
  8 |     private let encoder: JSONEncoder
  9 |     private let decoder: JSONDecoder
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:7:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  5 |     public let configuration: OpenCodeConfiguration
  6 |
  7 |     nonisolated private let urlSession: URLSession
    |                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     private let encoder: JSONEncoder
  9 |     private let decoder: JSONDecoder
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/opencode-sdk-swift/Core/Client.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
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/opencode-sdk-swift/Core/Client.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:13:32: error: value of type '_' expected to be instance of class or class-constrained type
 11 |     public init(
 12 |         configuration: OpenCodeConfiguration,
 13 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 14 |         encoder: JSONEncoder = JSONEncoder(),
 15 |         decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:154:17: error: cannot find type 'URLRequest' in scope
152 |         from request: OpenCodeRequest<Response>,
153 |         bodyData: Data?
154 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
155 |         var urlComponents = URLComponents(
156 |             url: configuration.baseURL,
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:62:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |
 61 |         let data: Data
 62 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |         do {
 64 |             (data, response) = try await urlSession.data(for: urlRequest)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:64:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 62 |         let response: URLResponse
 63 |         do {
 64 |             (data, response) = try await urlSession.data(for: urlRequest)
    |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 65 |         } catch {
 66 |             if Task.isCancelled {
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:74:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 72 |         try Task.checkCancellation()
 73 |
 74 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 75 |             throw OpenCodeError.invalidResponse(statusCode: -1, data: data)
 76 |         }
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:74:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         try Task.checkCancellation()
 73 |
 74 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |             throw OpenCodeError.invalidResponse(statusCode: -1, data: data)
 76 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:78:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 76 |         }
 77 |
 78 |         guard (200...299).contains(httpResponse.statusCode) else {
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 79 |             throw OpenCodeError.invalidResponse(statusCode: httpResponse.statusCode, data: data)
 80 |         }
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:79:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |
 78 |         guard (200...299).contains(httpResponse.statusCode) else {
 79 |             throw OpenCodeError.invalidResponse(statusCode: httpResponse.statusCode, data: data)
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |         }
 81 |
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Core/Client.swift:170:26: error: cannot find 'URLRequest' in scope
168 |         }
169 |
170 |         var urlRequest = URLRequest(url: url, timeoutInterval: configuration.timeout)
    |                          `- error: cannot find 'URLRequest' in scope
171 |         urlRequest.httpMethod = request.method.rawValue
172 |
[17/56] Compiling opencode_sdk_swift session.swift
[18/56] Compiling opencode_sdk_swift tool.swift
[19/56] Compiling opencode_sdk_swift tui.swift
[20/56] Compiling opencode_sdk_swift vcs.swift
[21/56] Compiling opencode_sdk_swift worktree.swift
[22/56] Compiling opencode_sdk_swift opencode_sdk_swift.swift
[23/56] Compiling opencode_sdk_swift ptyModels.swift
[24/56] Compiling opencode_sdk_swift questionModels.swift
[25/56] Compiling opencode_sdk_swift sessionModels.swift
[26/56] Compiling opencode_sdk_swift todoModels.swift
[27/56] Compiling opencode_sdk_swift tuiModels.swift
[28/56] Compiling opencode_sdk_swift app.swift
[29/56] Compiling opencode_sdk_swift auth.swift
[30/56] Compiling opencode_sdk_swift path.swift
[31/56] Compiling opencode_sdk_swift permission.swift
[32/56] Compiling opencode_sdk_swift project.swift
[33/56] Compiling opencode_sdk_swift provider.swift
[34/56] Compiling opencode_sdk_swift pty.swift
[35/56] Compiling opencode_sdk_swift question.swift
[36/56] Compiling opencode_sdk_swift batch.swift
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:25:29: error: cannot find type 'URLRequest' in scope
23 |                 throw OpenCodeError.invalidURL
24 |             }
25 |             let urlRequest: URLRequest = {
   |                             `- error: cannot find type 'URLRequest' in scope
26 |                 var request = URLRequest(url: url, timeoutInterval: .infinity)
27 |                 request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:26:31: error: cannot find 'URLRequest' in scope
24 |             }
25 |             let urlRequest: URLRequest = {
26 |                 var request = URLRequest(url: url, timeoutInterval: .infinity)
   |                               `- error: cannot find 'URLRequest' in scope
27 |                 request.httpMethod = "GET"
28 |                 request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:26:70: error: cannot infer contextual base in reference to member 'infinity'
24 |             }
25 |             let urlRequest: URLRequest = {
26 |                 var request = URLRequest(url: url, timeoutInterval: .infinity)
   |                                                                      `- error: cannot infer contextual base in reference to member 'infinity'
27 |                 request.httpMethod = "GET"
28 |                 request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:35:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |                 let task = Task {
34 |                     do {
35 |                         let session = URLSession.shared
   |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 |                         let (asyncBytes, _) = try await session.bytes(for: urlRequest)
37 |                         for try await line in asyncBytes.lines {
[37/56] Compiling opencode_sdk_swift command.swift
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:25:29: error: cannot find type 'URLRequest' in scope
23 |                 throw OpenCodeError.invalidURL
24 |             }
25 |             let urlRequest: URLRequest = {
   |                             `- error: cannot find type 'URLRequest' in scope
26 |                 var request = URLRequest(url: url, timeoutInterval: .infinity)
27 |                 request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:26:31: error: cannot find 'URLRequest' in scope
24 |             }
25 |             let urlRequest: URLRequest = {
26 |                 var request = URLRequest(url: url, timeoutInterval: .infinity)
   |                               `- error: cannot find 'URLRequest' in scope
27 |                 request.httpMethod = "GET"
28 |                 request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:26:70: error: cannot infer contextual base in reference to member 'infinity'
24 |             }
25 |             let urlRequest: URLRequest = {
26 |                 var request = URLRequest(url: url, timeoutInterval: .infinity)
   |                                                                      `- error: cannot infer contextual base in reference to member 'infinity'
27 |                 request.httpMethod = "GET"
28 |                 request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:35:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |                 let task = Task {
34 |                     do {
35 |                         let session = URLSession.shared
   |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 |                         let (asyncBytes, _) = try await session.bytes(for: urlRequest)
37 |                         for try await line in asyncBytes.lines {
[38/56] Compiling opencode_sdk_swift config.swift
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:25:29: error: cannot find type 'URLRequest' in scope
23 |                 throw OpenCodeError.invalidURL
24 |             }
25 |             let urlRequest: URLRequest = {
   |                             `- error: cannot find type 'URLRequest' in scope
26 |                 var request = URLRequest(url: url, timeoutInterval: .infinity)
27 |                 request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:26:31: error: cannot find 'URLRequest' in scope
24 |             }
25 |             let urlRequest: URLRequest = {
26 |                 var request = URLRequest(url: url, timeoutInterval: .infinity)
   |                               `- error: cannot find 'URLRequest' in scope
27 |                 request.httpMethod = "GET"
28 |                 request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:26:70: error: cannot infer contextual base in reference to member 'infinity'
24 |             }
25 |             let urlRequest: URLRequest = {
26 |                 var request = URLRequest(url: url, timeoutInterval: .infinity)
   |                                                                      `- error: cannot infer contextual base in reference to member 'infinity'
27 |                 request.httpMethod = "GET"
28 |                 request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:35:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |                 let task = Task {
34 |                     do {
35 |                         let session = URLSession.shared
   |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 |                         let (asyncBytes, _) = try await session.bytes(for: urlRequest)
37 |                         for try await line in asyncBytes.lines {
[39/56] Compiling opencode_sdk_swift event.swift
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:25:29: error: cannot find type 'URLRequest' in scope
23 |                 throw OpenCodeError.invalidURL
24 |             }
25 |             let urlRequest: URLRequest = {
   |                             `- error: cannot find type 'URLRequest' in scope
26 |                 var request = URLRequest(url: url, timeoutInterval: .infinity)
27 |                 request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:26:31: error: cannot find 'URLRequest' in scope
24 |             }
25 |             let urlRequest: URLRequest = {
26 |                 var request = URLRequest(url: url, timeoutInterval: .infinity)
   |                               `- error: cannot find 'URLRequest' in scope
27 |                 request.httpMethod = "GET"
28 |                 request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:26:70: error: cannot infer contextual base in reference to member 'infinity'
24 |             }
25 |             let urlRequest: URLRequest = {
26 |                 var request = URLRequest(url: url, timeoutInterval: .infinity)
   |                                                                      `- error: cannot infer contextual base in reference to member 'infinity'
27 |                 request.httpMethod = "GET"
28 |                 request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:35:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |                 let task = Task {
34 |                     do {
35 |                         let session = URLSession.shared
   |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 |                         let (asyncBytes, _) = try await session.bytes(for: urlRequest)
37 |                         for try await line in asyncBytes.lines {
[40/56] Compiling opencode_sdk_swift experimental.swift
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:25:29: error: cannot find type 'URLRequest' in scope
23 |                 throw OpenCodeError.invalidURL
24 |             }
25 |             let urlRequest: URLRequest = {
   |                             `- error: cannot find type 'URLRequest' in scope
26 |                 var request = URLRequest(url: url, timeoutInterval: .infinity)
27 |                 request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:26:31: error: cannot find 'URLRequest' in scope
24 |             }
25 |             let urlRequest: URLRequest = {
26 |                 var request = URLRequest(url: url, timeoutInterval: .infinity)
   |                               `- error: cannot find 'URLRequest' in scope
27 |                 request.httpMethod = "GET"
28 |                 request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:26:70: error: cannot infer contextual base in reference to member 'infinity'
24 |             }
25 |             let urlRequest: URLRequest = {
26 |                 var request = URLRequest(url: url, timeoutInterval: .infinity)
   |                                                                      `- error: cannot infer contextual base in reference to member 'infinity'
27 |                 request.httpMethod = "GET"
28 |                 request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:35:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |                 let task = Task {
34 |                     do {
35 |                         let session = URLSession.shared
   |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 |                         let (asyncBytes, _) = try await session.bytes(for: urlRequest)
37 |                         for try await line in asyncBytes.lines {
[41/56] Compiling opencode_sdk_swift file.swift
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:25:29: error: cannot find type 'URLRequest' in scope
23 |                 throw OpenCodeError.invalidURL
24 |             }
25 |             let urlRequest: URLRequest = {
   |                             `- error: cannot find type 'URLRequest' in scope
26 |                 var request = URLRequest(url: url, timeoutInterval: .infinity)
27 |                 request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:26:31: error: cannot find 'URLRequest' in scope
24 |             }
25 |             let urlRequest: URLRequest = {
26 |                 var request = URLRequest(url: url, timeoutInterval: .infinity)
   |                               `- error: cannot find 'URLRequest' in scope
27 |                 request.httpMethod = "GET"
28 |                 request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:26:70: error: cannot infer contextual base in reference to member 'infinity'
24 |             }
25 |             let urlRequest: URLRequest = {
26 |                 var request = URLRequest(url: url, timeoutInterval: .infinity)
   |                                                                      `- error: cannot infer contextual base in reference to member 'infinity'
27 |                 request.httpMethod = "GET"
28 |                 request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:35:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |                 let task = Task {
34 |                     do {
35 |                         let session = URLSession.shared
   |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 |                         let (asyncBytes, _) = try await session.bytes(for: urlRequest)
37 |                         for try await line in asyncBytes.lines {
[42/56] Compiling opencode_sdk_swift find.swift
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:25:29: error: cannot find type 'URLRequest' in scope
23 |                 throw OpenCodeError.invalidURL
24 |             }
25 |             let urlRequest: URLRequest = {
   |                             `- error: cannot find type 'URLRequest' in scope
26 |                 var request = URLRequest(url: url, timeoutInterval: .infinity)
27 |                 request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:26:31: error: cannot find 'URLRequest' in scope
24 |             }
25 |             let urlRequest: URLRequest = {
26 |                 var request = URLRequest(url: url, timeoutInterval: .infinity)
   |                               `- error: cannot find 'URLRequest' in scope
27 |                 request.httpMethod = "GET"
28 |                 request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:26:70: error: cannot infer contextual base in reference to member 'infinity'
24 |             }
25 |             let urlRequest: URLRequest = {
26 |                 var request = URLRequest(url: url, timeoutInterval: .infinity)
   |                                                                      `- error: cannot infer contextual base in reference to member 'infinity'
27 |                 request.httpMethod = "GET"
28 |                 request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/opencode-sdk-swift/Resources/event.swift:35:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |                 let task = Task {
34 |                     do {
35 |                         let session = URLSession.shared
   |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 |                         let (asyncBytes, _) = try await session.bytes(for: urlRequest)
37 |                         for try await line in asyncBytes.lines {
[43/56] Compiling opencode_sdk_swift commandModels.swift
[44/56] Compiling opencode_sdk_swift configModels.swift
[45/56] Compiling opencode_sdk_swift errorModels.swift
[46/56] Compiling opencode_sdk_swift fileModels.swift
[47/56] Compiling opencode_sdk_swift globalModels.swift
[48/56] Compiling opencode_sdk_swift lspModels.swift
[49/56] Compiling opencode_sdk_swift mcpModels.swift
[50/56] Compiling opencode_sdk_swift messageModels.swift
[51/56] Compiling opencode_sdk_swift partModels.swift
[52/56] Compiling opencode_sdk_swift partinputModels.swift
[53/56] Compiling opencode_sdk_swift pathModels.swift
[54/56] Compiling opencode_sdk_swift permissionModels.swift
[55/56] Compiling opencode_sdk_swift projectModels.swift
[56/56] Compiling opencode_sdk_swift providerModels.swift
BUILD FAILURE 6.3 android