The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Swollama, reference 3.0.1 (1eada8), with Swift 6.3 for Wasm on 17 Apr 2026 03:28:41 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/guitaripod/Swollama.git
Reference: 3.0.1
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/guitaripod/Swollama
 * tag               3.0.1      -> FETCH_HEAD
HEAD is now at 1eada84 chore: remove automated release workflow
Cloned https://github.com/guitaripod/Swollama.git
Revision (git rev-parse @):
1eada844ce5e477fa5a2178483b3540e1c07c5e0
SUCCESS checkout https://github.com/guitaripod/Swollama.git at 3.0.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/guitaripod/Swollama.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/39] Compiling Swollama ModelInformation.swift
[5/39] Compiling Swollama ModelsResponse.swift
[6/39] Compiling Swollama OllamaModelName.swift
[7/39] Compiling Swollama OperationProgress.swift
[8/39] Compiling Swollama ToolDefinition.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:11:22: error: cannot find type 'URLRequest' in scope
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
 11 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 12 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
 13 |         #if os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:10:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         for request: URLRequest
 12 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport+Streaming.swift:12:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |         session: URLSession,
 11 |         for request: URLRequest
 12 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |         #if os(Linux)
 14 |
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/Swollama/NetworkingSupport.swift:58:22: error: cannot find type 'URLRequest' in scope
 56 |     static func streamTask(
 57 |         session: URLSession,
 58 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 59 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
 60 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:11:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     static let streamBufferSize = 65536
 10 |
 11 |     static func createSession(configuration: URLSessionConfiguration) -> URLSession {
    |                                              `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |         return URLSession(configuration: configuration)
 13 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:11:74: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     static let streamBufferSize = 65536
 10 |
 11 |     static func createSession(configuration: URLSessionConfiguration) -> URLSession {
    |                                                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |         return URLSession(configuration: configuration)
 13 |     }
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/Swollama/NetworkingSupport.swift:15:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     }
 14 |
 15 |     static func createDefaultConfiguration() -> URLSessionConfiguration {
    |                                                 `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         let config = URLSessionConfiguration.default
 17 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:32:22: error: cannot find type 'URLRequest' in scope
 30 |     static func dataTask(
 31 |         session: URLSession,
 32 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 33 |     ) async throws -> (Data, URLResponse) {
 34 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:31:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |
 30 |     static func dataTask(
 31 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |         for request: URLRequest
 33 |     ) async throws -> (Data, URLResponse) {
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/Swollama/NetworkingSupport.swift:33:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |         session: URLSession,
 32 |         for request: URLRequest
 33 |     ) async throws -> (Data, URLResponse) {
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         #if canImport(FoundationNetworking)
 35 |
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/Swollama/NetworkingSupport.swift:57:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |
 56 |     static func streamTask(
 57 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |         for request: URLRequest
 59 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport.swift:59:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |         session: URLSession,
 58 |         for request: URLRequest
 59 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |         #if canImport(FoundationNetworking)
 61 |
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/Swollama/NetworkingSupport.swift:12:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 10 |
 11 |     static func createSession(configuration: URLSessionConfiguration) -> URLSession {
 12 |         return URLSession(configuration: configuration)
    |                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 13 |     }
 14 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:16:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 14 |
 15 |     static func createDefaultConfiguration() -> URLSessionConfiguration {
 16 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 17 |
 18 |         config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:19:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 17 |
 18 |         config.urlCache = nil
 19 |         config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
    |                                      `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 20 |
 21 |         #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:52:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 50 |         #else
 51 |
 52 |             return try await session.data(for: request)
    |                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 53 |         #endif
 54 |     }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:85:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 83 |         #else
 84 |
 85 |             let (bytes, response) = try await session.bytes(for: request)
    |                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 86 |             let stream = AsyncThrowingStream<Data, Error> { continuation in
 87 |                 Task {
[9/39] Compiling Swollama VersionResponse.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:11:22: error: cannot find type 'URLRequest' in scope
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
 11 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 12 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
 13 |         #if os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:10:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         for request: URLRequest
 12 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport+Streaming.swift:12:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |         session: URLSession,
 11 |         for request: URLRequest
 12 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |         #if os(Linux)
 14 |
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/Swollama/NetworkingSupport.swift:58:22: error: cannot find type 'URLRequest' in scope
 56 |     static func streamTask(
 57 |         session: URLSession,
 58 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 59 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
 60 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:11:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     static let streamBufferSize = 65536
 10 |
 11 |     static func createSession(configuration: URLSessionConfiguration) -> URLSession {
    |                                              `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |         return URLSession(configuration: configuration)
 13 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:11:74: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     static let streamBufferSize = 65536
 10 |
 11 |     static func createSession(configuration: URLSessionConfiguration) -> URLSession {
    |                                                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |         return URLSession(configuration: configuration)
 13 |     }
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/Swollama/NetworkingSupport.swift:15:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     }
 14 |
 15 |     static func createDefaultConfiguration() -> URLSessionConfiguration {
    |                                                 `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         let config = URLSessionConfiguration.default
 17 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:32:22: error: cannot find type 'URLRequest' in scope
 30 |     static func dataTask(
 31 |         session: URLSession,
 32 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 33 |     ) async throws -> (Data, URLResponse) {
 34 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:31:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |
 30 |     static func dataTask(
 31 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |         for request: URLRequest
 33 |     ) async throws -> (Data, URLResponse) {
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/Swollama/NetworkingSupport.swift:33:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |         session: URLSession,
 32 |         for request: URLRequest
 33 |     ) async throws -> (Data, URLResponse) {
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         #if canImport(FoundationNetworking)
 35 |
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/Swollama/NetworkingSupport.swift:57:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |
 56 |     static func streamTask(
 57 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |         for request: URLRequest
 59 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport.swift:59:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |         session: URLSession,
 58 |         for request: URLRequest
 59 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |         #if canImport(FoundationNetworking)
 61 |
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/Swollama/NetworkingSupport.swift:12:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 10 |
 11 |     static func createSession(configuration: URLSessionConfiguration) -> URLSession {
 12 |         return URLSession(configuration: configuration)
    |                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 13 |     }
 14 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:16:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 14 |
 15 |     static func createDefaultConfiguration() -> URLSessionConfiguration {
 16 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 17 |
 18 |         config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:19:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 17 |
 18 |         config.urlCache = nil
 19 |         config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
    |                                      `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 20 |
 21 |         #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:52:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 50 |         #else
 51 |
 52 |             return try await session.data(for: request)
    |                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 53 |         #endif
 54 |     }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:85:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 83 |         #else
 84 |
 85 |             let (bytes, response) = try await session.bytes(for: request)
    |                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 86 |             let stream = AsyncThrowingStream<Data, Error> { continuation in
 87 |                 Task {
[10/39] Compiling Swollama NetworkingSupport+Streaming.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:11:22: error: cannot find type 'URLRequest' in scope
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
 11 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 12 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
 13 |         #if os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:10:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         for request: URLRequest
 12 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport+Streaming.swift:12:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |         session: URLSession,
 11 |         for request: URLRequest
 12 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |         #if os(Linux)
 14 |
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/Swollama/NetworkingSupport.swift:58:22: error: cannot find type 'URLRequest' in scope
 56 |     static func streamTask(
 57 |         session: URLSession,
 58 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 59 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
 60 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:11:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     static let streamBufferSize = 65536
 10 |
 11 |     static func createSession(configuration: URLSessionConfiguration) -> URLSession {
    |                                              `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |         return URLSession(configuration: configuration)
 13 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:11:74: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     static let streamBufferSize = 65536
 10 |
 11 |     static func createSession(configuration: URLSessionConfiguration) -> URLSession {
    |                                                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |         return URLSession(configuration: configuration)
 13 |     }
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/Swollama/NetworkingSupport.swift:15:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     }
 14 |
 15 |     static func createDefaultConfiguration() -> URLSessionConfiguration {
    |                                                 `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         let config = URLSessionConfiguration.default
 17 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:32:22: error: cannot find type 'URLRequest' in scope
 30 |     static func dataTask(
 31 |         session: URLSession,
 32 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 33 |     ) async throws -> (Data, URLResponse) {
 34 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:31:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |
 30 |     static func dataTask(
 31 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |         for request: URLRequest
 33 |     ) async throws -> (Data, URLResponse) {
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/Swollama/NetworkingSupport.swift:33:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |         session: URLSession,
 32 |         for request: URLRequest
 33 |     ) async throws -> (Data, URLResponse) {
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         #if canImport(FoundationNetworking)
 35 |
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/Swollama/NetworkingSupport.swift:57:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |
 56 |     static func streamTask(
 57 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |         for request: URLRequest
 59 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport.swift:59:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |         session: URLSession,
 58 |         for request: URLRequest
 59 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |         #if canImport(FoundationNetworking)
 61 |
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/Swollama/NetworkingSupport.swift:12:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 10 |
 11 |     static func createSession(configuration: URLSessionConfiguration) -> URLSession {
 12 |         return URLSession(configuration: configuration)
    |                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 13 |     }
 14 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:16:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 14 |
 15 |     static func createDefaultConfiguration() -> URLSessionConfiguration {
 16 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 17 |
 18 |         config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:19:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 17 |
 18 |         config.urlCache = nil
 19 |         config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
    |                                      `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 20 |
 21 |         #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:52:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 50 |         #else
 51 |
 52 |             return try await session.data(for: request)
    |                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 53 |         #endif
 54 |     }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:85:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 83 |         #else
 84 |
 85 |             let (bytes, response) = try await session.bytes(for: request)
    |                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 86 |             let stream = AsyncThrowingStream<Data, Error> { continuation in
 87 |                 Task {
[11/39] Compiling Swollama NetworkingSupport.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:11:22: error: cannot find type 'URLRequest' in scope
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
 11 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 12 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
 13 |         #if os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:10:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         for request: URLRequest
 12 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport+Streaming.swift:12:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |         session: URLSession,
 11 |         for request: URLRequest
 12 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |         #if os(Linux)
 14 |
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/Swollama/NetworkingSupport.swift:58:22: error: cannot find type 'URLRequest' in scope
 56 |     static func streamTask(
 57 |         session: URLSession,
 58 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 59 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
 60 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:11:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     static let streamBufferSize = 65536
 10 |
 11 |     static func createSession(configuration: URLSessionConfiguration) -> URLSession {
    |                                              `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |         return URLSession(configuration: configuration)
 13 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:11:74: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     static let streamBufferSize = 65536
 10 |
 11 |     static func createSession(configuration: URLSessionConfiguration) -> URLSession {
    |                                                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |         return URLSession(configuration: configuration)
 13 |     }
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/Swollama/NetworkingSupport.swift:15:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     }
 14 |
 15 |     static func createDefaultConfiguration() -> URLSessionConfiguration {
    |                                                 `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         let config = URLSessionConfiguration.default
 17 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:32:22: error: cannot find type 'URLRequest' in scope
 30 |     static func dataTask(
 31 |         session: URLSession,
 32 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 33 |     ) async throws -> (Data, URLResponse) {
 34 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:31:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |
 30 |     static func dataTask(
 31 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |         for request: URLRequest
 33 |     ) async throws -> (Data, URLResponse) {
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/Swollama/NetworkingSupport.swift:33:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |         session: URLSession,
 32 |         for request: URLRequest
 33 |     ) async throws -> (Data, URLResponse) {
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         #if canImport(FoundationNetworking)
 35 |
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/Swollama/NetworkingSupport.swift:57:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |
 56 |     static func streamTask(
 57 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |         for request: URLRequest
 59 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport.swift:59:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |         session: URLSession,
 58 |         for request: URLRequest
 59 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |         #if canImport(FoundationNetworking)
 61 |
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/Swollama/NetworkingSupport.swift:12:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 10 |
 11 |     static func createSession(configuration: URLSessionConfiguration) -> URLSession {
 12 |         return URLSession(configuration: configuration)
    |                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 13 |     }
 14 |
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:16:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 14 |
 15 |     static func createDefaultConfiguration() -> URLSessionConfiguration {
 16 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 17 |
 18 |         config.urlCache = nil
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:19:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 17 |
 18 |         config.urlCache = nil
 19 |         config.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
    |                                      `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 20 |
 21 |         #if !os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:52:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 50 |         #else
 51 |
 52 |             return try await session.data(for: request)
    |                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 53 |         #endif
 54 |     }
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:85:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 83 |         #else
 84 |
 85 |             let (bytes, response) = try await session.bytes(for: request)
    |                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 86 |             let stream = AsyncThrowingStream<Data, Error> { continuation in
 87 |                 Task {
[12/39] Compiling Swollama EmbeddingResponse.swift
[13/39] Compiling Swollama GenerateRequest.swift
[14/39] Compiling Swollama GenerateResponse.swift
[15/39] Compiling Swollama ModelFamily.swift
[16/39] Compiling Swollama ModelFormat.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[17/39] Emitting module Swollama
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:11:22: error: cannot find type 'URLRequest' in scope
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
 11 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 12 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
 13 |         #if os(Linux)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:10:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |
  9 |     static func enhancedStreamTask(
 10 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         for request: URLRequest
 12 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport+Streaming.swift:12:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |         session: URLSession,
 11 |         for request: URLRequest
 12 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |         #if os(Linux)
 14 |
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/Swollama/NetworkingSupport.swift:11:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     static let streamBufferSize = 65536
 10 |
 11 |     static func createSession(configuration: URLSessionConfiguration) -> URLSession {
    |                                              `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |         return URLSession(configuration: configuration)
 13 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:11:74: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     static let streamBufferSize = 65536
 10 |
 11 |     static func createSession(configuration: URLSessionConfiguration) -> URLSession {
    |                                                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |         return URLSession(configuration: configuration)
 13 |     }
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/Swollama/NetworkingSupport.swift:15:49: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     }
 14 |
 15 |     static func createDefaultConfiguration() -> URLSessionConfiguration {
    |                                                 `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         let config = URLSessionConfiguration.default
 17 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:32:22: error: cannot find type 'URLRequest' in scope
 30 |     static func dataTask(
 31 |         session: URLSession,
 32 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 33 |     ) async throws -> (Data, URLResponse) {
 34 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:31:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |
 30 |     static func dataTask(
 31 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |         for request: URLRequest
 33 |     ) async throws -> (Data, URLResponse) {
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/Swollama/NetworkingSupport.swift:33:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |         session: URLSession,
 32 |         for request: URLRequest
 33 |     ) async throws -> (Data, URLResponse) {
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         #if canImport(FoundationNetworking)
 35 |
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/Swollama/NetworkingSupport.swift:58:22: error: cannot find type 'URLRequest' in scope
 56 |     static func streamTask(
 57 |         session: URLSession,
 58 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 59 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
 60 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:57:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |
 56 |     static func streamTask(
 57 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |         for request: URLRequest
 59 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
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/Swollama/NetworkingSupport.swift:59:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |         session: URLSession,
 58 |         for request: URLRequest
 59 |     ) async throws -> (AsyncThrowingStream<Data, Error>, URLResponse) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |         #if canImport(FoundationNetworking)
 61 |
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/Swollama/OllamaClient.swift:55:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |     public nonisolated let configuration: OllamaConfiguration
 54 |
 55 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     let decoder: JSONDecoder
 57 |     private let encoder: JSONEncoder
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/Swollama/OllamaClient.swift:86:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 |         baseURL: URL,
 85 |         configuration: OllamaConfiguration,
 86 |         session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 87 |     ) {
 88 |         self.baseURL = baseURL
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/Swollama/OllamaClient.swift:72:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 70 |
 71 |         let config = NetworkingSupport.createDefaultConfiguration()
 72 |         config.timeoutIntervalForRequest = configuration.timeoutInterval
    |                `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 73 |
 74 |         self.session = NetworkingSupport.createSession(configuration: config)
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:44:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     private let apiKey: String
 43 |     private let baseURL: URL
 44 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// Creates a new Ollama web search client.
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/Swollama/WebSearch/OllamaWebSearchClient.swift:55:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     ) {
 57 |         self.apiKey = apiKey
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
[18/39] Compiling Swollama AgentConfiguration.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 56 |     ) {
 57 |         self.apiKey = apiKey
[19/39] Compiling Swollama AgentEvent.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 56 |     ) {
 57 |         self.apiKey = apiKey
[20/39] Compiling Swollama OllamaAgent.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 56 |     ) {
 57 |         self.apiKey = apiKey
[21/39] Compiling Swollama ChatOptions.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 56 |     ) {
 57 |         self.apiKey = apiKey
[22/39] Compiling Swollama EmbeddingOptions.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 56 |     ) {
 57 |         self.apiKey = apiKey
[23/39] Compiling Swollama GenerationOptions.swift
[24/39] Compiling Swollama ChatRequest.swift
[25/39] Compiling Swollama ChatResponse.swift
[26/39] Compiling Swollama CreateModelRequest.swift
[27/39] Compiling Swollama EmbeddingRequest.swift
[28/39] Compiling Swollama QuantizationLevel.swift
[29/39] Compiling Swollama RunningModelsResponse.swift
[30/39] Compiling Swollama ShowModelRequest.swift
[31/39] Compiling Swollama ToolCall.swift
[32/39] Compiling Swollama OllamaClient+Generation.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:55:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |     public nonisolated let configuration: OllamaConfiguration
 54 |
 55 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     let decoder: JSONDecoder
 57 |     private let encoder: JSONEncoder
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/Swollama/OllamaClient.swift:86:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 |         baseURL: URL,
 85 |         configuration: OllamaConfiguration,
 86 |         session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 87 |     ) {
 88 |         self.baseURL = baseURL
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/Swollama/OllamaClient.swift:72:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 70 |
 71 |         let config = NetworkingSupport.createDefaultConfiguration()
 72 |         config.timeoutIntervalForRequest = configuration.timeoutInterval
    |                `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 73 |
 74 |         self.session = NetworkingSupport.createSession(configuration: config)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:105:23: error: cannot find 'URLRequest' in scope
103 |     ) async throws -> Data {
104 |         let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
105 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
106 |         request.httpMethod = method
107 |         request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:32:22: error: cannot find type 'URLRequest' in scope
 30 |     static func dataTask(
 31 |         session: URLSession,
 32 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 33 |     ) async throws -> (Data, URLResponse) {
 34 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:182:35: error: cannot find 'URLRequest' in scope
180 |                         endpoint
181 |                     )
182 |                     var request = URLRequest(url: url)
    |                                   `- error: cannot find 'URLRequest' in scope
183 |                     request.httpMethod = method
184 |                     request.httpBody = body
[33/39] Compiling Swollama OllamaClient+ModelManagement.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:55:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |     public nonisolated let configuration: OllamaConfiguration
 54 |
 55 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     let decoder: JSONDecoder
 57 |     private let encoder: JSONEncoder
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/Swollama/OllamaClient.swift:86:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 |         baseURL: URL,
 85 |         configuration: OllamaConfiguration,
 86 |         session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 87 |     ) {
 88 |         self.baseURL = baseURL
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/Swollama/OllamaClient.swift:72:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 70 |
 71 |         let config = NetworkingSupport.createDefaultConfiguration()
 72 |         config.timeoutIntervalForRequest = configuration.timeoutInterval
    |                `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 73 |
 74 |         self.session = NetworkingSupport.createSession(configuration: config)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:105:23: error: cannot find 'URLRequest' in scope
103 |     ) async throws -> Data {
104 |         let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
105 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
106 |         request.httpMethod = method
107 |         request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:32:22: error: cannot find type 'URLRequest' in scope
 30 |     static func dataTask(
 31 |         session: URLSession,
 32 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 33 |     ) async throws -> (Data, URLResponse) {
 34 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:182:35: error: cannot find 'URLRequest' in scope
180 |                         endpoint
181 |                     )
182 |                     var request = URLRequest(url: url)
    |                                   `- error: cannot find 'URLRequest' in scope
183 |                     request.httpMethod = method
184 |                     request.httpBody = body
[34/39] Compiling Swollama OllamaClient.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:55:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |     public nonisolated let configuration: OllamaConfiguration
 54 |
 55 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     let decoder: JSONDecoder
 57 |     private let encoder: JSONEncoder
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/Swollama/OllamaClient.swift:86:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 |         baseURL: URL,
 85 |         configuration: OllamaConfiguration,
 86 |         session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 87 |     ) {
 88 |         self.baseURL = baseURL
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/Swollama/OllamaClient.swift:72:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 70 |
 71 |         let config = NetworkingSupport.createDefaultConfiguration()
 72 |         config.timeoutIntervalForRequest = configuration.timeoutInterval
    |                `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 73 |
 74 |         self.session = NetworkingSupport.createSession(configuration: config)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:105:23: error: cannot find 'URLRequest' in scope
103 |     ) async throws -> Data {
104 |         let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
105 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
106 |         request.httpMethod = method
107 |         request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:32:22: error: cannot find type 'URLRequest' in scope
 30 |     static func dataTask(
 31 |         session: URLSession,
 32 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 33 |     ) async throws -> (Data, URLResponse) {
 34 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:182:35: error: cannot find 'URLRequest' in scope
180 |                         endpoint
181 |                     )
182 |                     var request = URLRequest(url: url)
    |                                   `- error: cannot find 'URLRequest' in scope
183 |                     request.httpMethod = method
184 |                     request.httpBody = body
[35/39] Compiling Swollama OllamaConfiguration.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:55:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |     public nonisolated let configuration: OllamaConfiguration
 54 |
 55 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     let decoder: JSONDecoder
 57 |     private let encoder: JSONEncoder
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/Swollama/OllamaClient.swift:86:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 |         baseURL: URL,
 85 |         configuration: OllamaConfiguration,
 86 |         session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 87 |     ) {
 88 |         self.baseURL = baseURL
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/Swollama/OllamaClient.swift:72:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 70 |
 71 |         let config = NetworkingSupport.createDefaultConfiguration()
 72 |         config.timeoutIntervalForRequest = configuration.timeoutInterval
    |                `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 73 |
 74 |         self.session = NetworkingSupport.createSession(configuration: config)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:105:23: error: cannot find 'URLRequest' in scope
103 |     ) async throws -> Data {
104 |         let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
105 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
106 |         request.httpMethod = method
107 |         request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport.swift:32:22: error: cannot find type 'URLRequest' in scope
 30 |     static func dataTask(
 31 |         session: URLSession,
 32 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 33 |     ) async throws -> (Data, URLResponse) {
 34 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:182:35: error: cannot find 'URLRequest' in scope
180 |                         endpoint
181 |                     )
182 |                     var request = URLRequest(url: url)
    |                                   `- error: cannot find 'URLRequest' in scope
183 |                     request.httpMethod = method
184 |                     request.httpBody = body
[36/43] Compiling Swollama OllamaError.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:44:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     private let apiKey: String
 43 |     private let baseURL: URL
 44 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// Creates a new Ollama web search client.
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/Swollama/WebSearch/OllamaWebSearchClient.swift:55:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     ) {
 57 |         self.apiKey = apiKey
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/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:96:23: error: cannot find 'URLRequest' in scope
 94 |     ) async throws -> R {
 95 |         let url = baseURL.appendingPathComponent(path)
 96 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 97 |         request.httpMethod = "POST"
 98 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:102:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 |         request.httpBody = try JSONEncoder().encode(body)
101 |
102 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
103 |
104 |         guard let httpResponse = response as? HTTPURLResponse else {
[37/43] Compiling Swollama OllamaProtocol.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:44:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     private let apiKey: String
 43 |     private let baseURL: URL
 44 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// Creates a new Ollama web search client.
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/Swollama/WebSearch/OllamaWebSearchClient.swift:55:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     ) {
 57 |         self.apiKey = apiKey
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/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:96:23: error: cannot find 'URLRequest' in scope
 94 |     ) async throws -> R {
 95 |         let url = baseURL.appendingPathComponent(path)
 96 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 97 |         request.httpMethod = "POST"
 98 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:102:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 |         request.httpBody = try JSONEncoder().encode(body)
101 |
102 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
103 |
104 |         guard let httpResponse = response as? HTTPURLResponse else {
[38/43] Compiling Swollama OllamaWebSearchClient.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:44:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     private let apiKey: String
 43 |     private let baseURL: URL
 44 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// Creates a new Ollama web search client.
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/Swollama/WebSearch/OllamaWebSearchClient.swift:55:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     ) {
 57 |         self.apiKey = apiKey
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/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:96:23: error: cannot find 'URLRequest' in scope
 94 |     ) async throws -> R {
 95 |         let url = baseURL.appendingPathComponent(path)
 96 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 97 |         request.httpMethod = "POST"
 98 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:102:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 |         request.httpBody = try JSONEncoder().encode(body)
101 |
102 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
103 |
104 |         guard let httpResponse = response as? HTTPURLResponse else {
[39/43] Compiling Swollama WebSearchModels.swift
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:44:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     private let apiKey: String
 43 |     private let baseURL: URL
 44 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |     /// Creates a new Ollama web search client.
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/Swollama/WebSearch/OllamaWebSearchClient.swift:55:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     ) {
 57 |         self.apiKey = apiKey
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/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:55:32: error: value of type '_' expected to be instance of class or class-constrained type
 53 |         apiKey: String,
 54 |         baseURL: URL = URL(string: "https://ollama.com")!,
 55 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 56 |     ) {
 57 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:96:23: error: cannot find 'URLRequest' in scope
 94 |     ) async throws -> R {
 95 |         let url = baseURL.appendingPathComponent(path)
 96 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 97 |         request.httpMethod = "POST"
 98 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Swollama/WebSearch/OllamaWebSearchClient.swift:102:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 |         request.httpBody = try JSONEncoder().encode(body)
101 |
102 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
103 |
104 |         guard let httpResponse = response as? HTTPURLResponse else {
BUILD FAILURE 6.3 wasm