The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Swollama, reference master (1ae1e1), with Swift 6.0 for Linux on 6 Nov 2024 23:28:45 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/marcusziade/Swollama.git
Reference: master
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/marcusziade/Swollama
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 1ae1e15 remove redundant license.md file
Cloned https://github.com/marcusziade/Swollama.git
Revision (git rev-parse @):
1ae1e15b0730e034f9b0d34bf4872cf342acdb31
SUCCESS checkout https://github.com/marcusziade/Swollama.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/marcusziade/Swollama.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/30] Emitting module Swollama
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:22:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for chat completion
 4 | public struct ChatOptions {
   |               `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
 5 |     public let tools: [ToolDefinition]?
 6 |     public let format: ResponseFormat?
   :
20 |     }
21 |
22 |     public static let `default` = ChatOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:19:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for embedding generation
 4 | public struct EmbeddingOptions {
   |               `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
 5 |     public let truncate: Bool?
 6 |     public let modelOptions: ModelOptions?
   :
17 |     }
18 |
19 |     public static let `default` = EmbeddingOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:37:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for text generation
 4 | public struct GenerationOptions {
   |               `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
 5 |     public let suffix: String?
 6 |     public let images: [String]?
   :
35 |     }
36 |
37 |     public static let `default` = GenerationOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | }
39 |
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:22:16: warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
20 |     public let tools: [ToolDefinition]?
21 |     /// The format to return the response in
22 |     public let format: ResponseFormat?
   |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
23 |     /// Additional model parameters
24 |     public let options: ModelOptions?
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:52:16: warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
50 |
51 |     /// The role of the message sender
52 |     public let role: MessageRole
   |                `- warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
53 |
54 |     /// The content of the message
   :
69 |
70 | /// Available message roles
71 | public enum MessageRole: String, Codable {
   |             `- note: consider making enum 'MessageRole' conform to the 'Sendable' protocol
72 |     case system
73 |     case user
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:14:16: warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 12 |     public let images: [String]?
 13 |     /// The format to return the response in
 14 |     public let format: ResponseFormat?
    |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 15 |     /// Additional model parameters
 16 |     public let options: ModelOptions?
    :
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     public let configuration: OllamaConfiguration
  7 |
  8 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     let decoder: JSONDecoder
 10 |     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/OllamaConfiguration.swift:42:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Configuration options for the Ollama client.
 4 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
 5 |     /// The timeout interval for requests in seconds
 6 |     public let timeoutInterval: TimeInterval
   :
40 |
41 |     /// The default configuration
42 |     public static let `default` = OllamaConfiguration()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:6:16: warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
  2 |
  3 | /// A client for interacting with the Ollama API
  4 | public actor OllamaClient: OllamaProtocol {
    |                            `- note: add '@preconcurrency' to the 'OllamaProtocol' conformance to defer isolation checking to run time
  5 |     public let baseURL: URL
  6 |     public let configuration: OllamaConfiguration
    |                `- warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
  7 |
  8 |     private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaProtocol.swift:12:9: note: 'configuration' declared here
 10 |
 11 |     /// The configuration used for API requests
 12 |     var configuration: OllamaConfiguration { get }
    |         `- note: 'configuration' declared here
 13 |
 14 |     /// Lists all models that are available locally.
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:11:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'showModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
  9 |     }
 10 |
 11 |     public func showModel(name: OllamaModelName) async throws -> ModelInformation {
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'showModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 12 |         let request = ShowModelRequest(name: name.fullName)
 13 |         let data = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 25 |     }
 26 |
 27 |     public func pullModel(
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 28 |         name: OllamaModelName,
 29 |         options: PullOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable type 'PullOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 25 |     }
 26 |
 27 |     public func pullModel(
    |                 `- warning: non-sendable type 'PullOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 28 |         name: OllamaModelName,
 29 |         options: PullOptions
    :
124 |
125 | /// Options for pulling models
126 | public struct PullOptions {
    |               `- note: consider making struct 'PullOptions' conform to the 'Sendable' protocol
127 |     /// Whether to allow insecure connections
128 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 43 |     }
 44 |
 45 |     public func pushModel(
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 46 |         name: OllamaModelName,
 47 |         options: PushOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable type 'PushOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 43 |     }
 44 |
 45 |     public func pushModel(
    |                 `- warning: non-sendable type 'PushOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 46 |         name: OllamaModelName,
 47 |         options: PushOptions
    :
134 |
135 | /// Options for pushing models
136 | public struct PushOptions {
    |               `- note: consider making struct 'PushOptions' conform to the 'Sendable' protocol
137 |     /// Whether to allow insecure connections
138 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 66 |     }
 67 |
 68 |     public func copyModel(
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 69 |         source: OllamaModelName,
 70 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 66 |     }
 67 |
 68 |     public func copyModel(
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 69 |         source: OllamaModelName,
 70 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:84:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'deleteModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 82 |     }
 83 |
 84 |     public func deleteModel(name: OllamaModelName) async throws {
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'deleteModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 85 |         let request = DeleteModelRequest(name: name.fullName)
 86 |         _ = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:16:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 14 |         self.configuration = configuration
 15 |
 16 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 17 |         config.timeoutIntervalForRequest = configuration.timeoutInterval
 18 |         config.allowsExpensiveNetworkAccess = true
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:21:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 19 |         config.allowsConstrainedNetworkAccess = true
 20 |
 21 |         self.session = URLSession(configuration: config)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 22 |
 23 |         self.decoder = JSONDecoder()
[5/33] Compiling Swollama OllamaConfiguration.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:42:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Configuration options for the Ollama client.
 4 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
 5 |     /// The timeout interval for requests in seconds
 6 |     public let timeoutInterval: TimeInterval
   :
40 |
41 |     /// The default configuration
42 |     public static let `default` = OllamaConfiguration()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
[6/33] Compiling Swollama OllamaError.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:42:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Configuration options for the Ollama client.
 4 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
 5 |     /// The timeout interval for requests in seconds
 6 |     public let timeoutInterval: TimeInterval
   :
40 |
41 |     /// The default configuration
42 |     public static let `default` = OllamaConfiguration()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
[7/33] Compiling Swollama OllamaProtocol.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:42:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Configuration options for the Ollama client.
 4 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
 5 |     /// The timeout interval for requests in seconds
 6 |     public let timeoutInterval: TimeInterval
   :
40 |
41 |     /// The default configuration
42 |     public static let `default` = OllamaConfiguration()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
[8/33] Compiling Swollama ChatResponse.swift
[9/33] Compiling Swollama EmbeddingRequest.swift
[10/33] Compiling Swollama EmbeddingResponse.swift
[11/33] Compiling Swollama RunningModelsResponse.swift
[12/33] Compiling Swollama ToolCall.swift
[13/33] Compiling Swollama ToolDefinition.swift
[14/33] Compiling Swollama OllamaModelName.swift
[15/33] Compiling Swollama OperationProgress.swift
[16/33] Compiling Swollama QuantizationLevel.swift
[17/33] Compiling Swollama OllamaClient+Generation.swift
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:37:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for text generation
 4 | public struct GenerationOptions {
   |               `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
 5 |     public let suffix: String?
 6 |     public let images: [String]?
   :
35 |     }
36 |
37 |     public static let `default` = GenerationOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | }
39 |
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:22:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for chat completion
 4 | public struct ChatOptions {
   |               `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
 5 |     public let tools: [ToolDefinition]?
 6 |     public let format: ResponseFormat?
   :
20 |     }
21 |
22 |     public static let `default` = ChatOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:19:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for embedding generation
 4 | public struct EmbeddingOptions {
   |               `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
 5 |     public let truncate: Bool?
 6 |     public let modelOptions: ModelOptions?
   :
17 |     }
18 |
19 |     public static let `default` = EmbeddingOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     public let configuration: OllamaConfiguration
  7 |
  8 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     let decoder: JSONDecoder
 10 |     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/OllamaConfiguration.swift:42:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Configuration options for the Ollama client.
 4 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
 5 |     /// The timeout interval for requests in seconds
 6 |     public let timeoutInterval: TimeInterval
   :
40 |
41 |     /// The default configuration
42 |     public static let `default` = OllamaConfiguration()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:6:16: warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
  2 |
  3 | /// A client for interacting with the Ollama API
  4 | public actor OllamaClient: OllamaProtocol {
    |                            `- note: add '@preconcurrency' to the 'OllamaProtocol' conformance to defer isolation checking to run time
  5 |     public let baseURL: URL
  6 |     public let configuration: OllamaConfiguration
    |                `- warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
  7 |
  8 |     private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaProtocol.swift:12:9: note: 'configuration' declared here
 10 |
 11 |     /// The configuration used for API requests
 12 |     var configuration: OllamaConfiguration { get }
    |         `- note: 'configuration' declared here
 13 |
 14 |     /// Lists all models that are available locally.
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:11:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'showModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
  9 |     }
 10 |
 11 |     public func showModel(name: OllamaModelName) async throws -> ModelInformation {
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'showModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 12 |         let request = ShowModelRequest(name: name.fullName)
 13 |         let data = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 25 |     }
 26 |
 27 |     public func pullModel(
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 28 |         name: OllamaModelName,
 29 |         options: PullOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable type 'PullOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 25 |     }
 26 |
 27 |     public func pullModel(
    |                 `- warning: non-sendable type 'PullOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 28 |         name: OllamaModelName,
 29 |         options: PullOptions
    :
124 |
125 | /// Options for pulling models
126 | public struct PullOptions {
    |               `- note: consider making struct 'PullOptions' conform to the 'Sendable' protocol
127 |     /// Whether to allow insecure connections
128 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 43 |     }
 44 |
 45 |     public func pushModel(
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 46 |         name: OllamaModelName,
 47 |         options: PushOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable type 'PushOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 43 |     }
 44 |
 45 |     public func pushModel(
    |                 `- warning: non-sendable type 'PushOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 46 |         name: OllamaModelName,
 47 |         options: PushOptions
    :
134 |
135 | /// Options for pushing models
136 | public struct PushOptions {
    |               `- note: consider making struct 'PushOptions' conform to the 'Sendable' protocol
137 |     /// Whether to allow insecure connections
138 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 66 |     }
 67 |
 68 |     public func copyModel(
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 69 |         source: OllamaModelName,
 70 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 66 |     }
 67 |
 68 |     public func copyModel(
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 69 |         source: OllamaModelName,
 70 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:84:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'deleteModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 82 |     }
 83 |
 84 |     public func deleteModel(name: OllamaModelName) async throws {
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'deleteModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 85 |         let request = DeleteModelRequest(name: name.fullName)
 86 |         _ = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:16:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 14 |         self.configuration = configuration
 15 |
 16 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 17 |         config.timeoutIntervalForRequest = configuration.timeoutInterval
 18 |         config.allowsExpensiveNetworkAccess = true
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:21:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 19 |         config.allowsConstrainedNetworkAccess = true
 20 |
 21 |         self.session = URLSession(configuration: config)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 22 |
 23 |         self.decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:43:23: error: cannot find 'URLRequest' in scope
 41 |     ) async throws -> Data {
 42 |         let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
 43 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 44 |         request.httpMethod = method
 45 |         request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:54:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 52 |         for attempt in 0...configuration.maxRetries {
 53 |             do {
 54 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 55 |
 56 |                 guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:108:35: error: cannot find 'URLRequest' in scope
106 |                 do {
107 |                     let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
108 |                     var request = URLRequest(url: url)
    |                                   `- error: cannot find 'URLRequest' in scope
109 |                     request.httpMethod = method
110 |                     request.httpBody = body
[18/33] Compiling Swollama OllamaClient+ModelManagement.swift
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:37:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for text generation
 4 | public struct GenerationOptions {
   |               `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
 5 |     public let suffix: String?
 6 |     public let images: [String]?
   :
35 |     }
36 |
37 |     public static let `default` = GenerationOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | }
39 |
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:22:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for chat completion
 4 | public struct ChatOptions {
   |               `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
 5 |     public let tools: [ToolDefinition]?
 6 |     public let format: ResponseFormat?
   :
20 |     }
21 |
22 |     public static let `default` = ChatOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:19:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for embedding generation
 4 | public struct EmbeddingOptions {
   |               `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
 5 |     public let truncate: Bool?
 6 |     public let modelOptions: ModelOptions?
   :
17 |     }
18 |
19 |     public static let `default` = EmbeddingOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     public let configuration: OllamaConfiguration
  7 |
  8 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     let decoder: JSONDecoder
 10 |     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/OllamaConfiguration.swift:42:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Configuration options for the Ollama client.
 4 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
 5 |     /// The timeout interval for requests in seconds
 6 |     public let timeoutInterval: TimeInterval
   :
40 |
41 |     /// The default configuration
42 |     public static let `default` = OllamaConfiguration()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:6:16: warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
  2 |
  3 | /// A client for interacting with the Ollama API
  4 | public actor OllamaClient: OllamaProtocol {
    |                            `- note: add '@preconcurrency' to the 'OllamaProtocol' conformance to defer isolation checking to run time
  5 |     public let baseURL: URL
  6 |     public let configuration: OllamaConfiguration
    |                `- warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
  7 |
  8 |     private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaProtocol.swift:12:9: note: 'configuration' declared here
 10 |
 11 |     /// The configuration used for API requests
 12 |     var configuration: OllamaConfiguration { get }
    |         `- note: 'configuration' declared here
 13 |
 14 |     /// Lists all models that are available locally.
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:11:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'showModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
  9 |     }
 10 |
 11 |     public func showModel(name: OllamaModelName) async throws -> ModelInformation {
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'showModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 12 |         let request = ShowModelRequest(name: name.fullName)
 13 |         let data = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 25 |     }
 26 |
 27 |     public func pullModel(
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 28 |         name: OllamaModelName,
 29 |         options: PullOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable type 'PullOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 25 |     }
 26 |
 27 |     public func pullModel(
    |                 `- warning: non-sendable type 'PullOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 28 |         name: OllamaModelName,
 29 |         options: PullOptions
    :
124 |
125 | /// Options for pulling models
126 | public struct PullOptions {
    |               `- note: consider making struct 'PullOptions' conform to the 'Sendable' protocol
127 |     /// Whether to allow insecure connections
128 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 43 |     }
 44 |
 45 |     public func pushModel(
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 46 |         name: OllamaModelName,
 47 |         options: PushOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable type 'PushOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 43 |     }
 44 |
 45 |     public func pushModel(
    |                 `- warning: non-sendable type 'PushOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 46 |         name: OllamaModelName,
 47 |         options: PushOptions
    :
134 |
135 | /// Options for pushing models
136 | public struct PushOptions {
    |               `- note: consider making struct 'PushOptions' conform to the 'Sendable' protocol
137 |     /// Whether to allow insecure connections
138 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 66 |     }
 67 |
 68 |     public func copyModel(
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 69 |         source: OllamaModelName,
 70 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 66 |     }
 67 |
 68 |     public func copyModel(
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 69 |         source: OllamaModelName,
 70 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:84:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'deleteModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 82 |     }
 83 |
 84 |     public func deleteModel(name: OllamaModelName) async throws {
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'deleteModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 85 |         let request = DeleteModelRequest(name: name.fullName)
 86 |         _ = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:16:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 14 |         self.configuration = configuration
 15 |
 16 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 17 |         config.timeoutIntervalForRequest = configuration.timeoutInterval
 18 |         config.allowsExpensiveNetworkAccess = true
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:21:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 19 |         config.allowsConstrainedNetworkAccess = true
 20 |
 21 |         self.session = URLSession(configuration: config)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 22 |
 23 |         self.decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:43:23: error: cannot find 'URLRequest' in scope
 41 |     ) async throws -> Data {
 42 |         let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
 43 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 44 |         request.httpMethod = method
 45 |         request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:54:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 52 |         for attempt in 0...configuration.maxRetries {
 53 |             do {
 54 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 55 |
 56 |                 guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:108:35: error: cannot find 'URLRequest' in scope
106 |                 do {
107 |                     let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
108 |                     var request = URLRequest(url: url)
    |                                   `- error: cannot find 'URLRequest' in scope
109 |                     request.httpMethod = method
110 |                     request.httpBody = body
[19/33] Compiling Swollama OllamaClient.swift
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:37:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for text generation
 4 | public struct GenerationOptions {
   |               `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
 5 |     public let suffix: String?
 6 |     public let images: [String]?
   :
35 |     }
36 |
37 |     public static let `default` = GenerationOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | }
39 |
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:22:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for chat completion
 4 | public struct ChatOptions {
   |               `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
 5 |     public let tools: [ToolDefinition]?
 6 |     public let format: ResponseFormat?
   :
20 |     }
21 |
22 |     public static let `default` = ChatOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:19:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for embedding generation
 4 | public struct EmbeddingOptions {
   |               `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
 5 |     public let truncate: Bool?
 6 |     public let modelOptions: ModelOptions?
   :
17 |     }
18 |
19 |     public static let `default` = EmbeddingOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     public let configuration: OllamaConfiguration
  7 |
  8 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     let decoder: JSONDecoder
 10 |     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/OllamaConfiguration.swift:42:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Configuration options for the Ollama client.
 4 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
 5 |     /// The timeout interval for requests in seconds
 6 |     public let timeoutInterval: TimeInterval
   :
40 |
41 |     /// The default configuration
42 |     public static let `default` = OllamaConfiguration()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:6:16: warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
  2 |
  3 | /// A client for interacting with the Ollama API
  4 | public actor OllamaClient: OllamaProtocol {
    |                            `- note: add '@preconcurrency' to the 'OllamaProtocol' conformance to defer isolation checking to run time
  5 |     public let baseURL: URL
  6 |     public let configuration: OllamaConfiguration
    |                `- warning: actor-isolated property 'configuration' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
  7 |
  8 |     private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaProtocol.swift:12:9: note: 'configuration' declared here
 10 |
 11 |     /// The configuration used for API requests
 12 |     var configuration: OllamaConfiguration { get }
    |         `- note: 'configuration' declared here
 13 |
 14 |     /// Lists all models that are available locally.
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:11:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'showModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
  9 |     }
 10 |
 11 |     public func showModel(name: OllamaModelName) async throws -> ModelInformation {
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'showModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 12 |         let request = ShowModelRequest(name: name.fullName)
 13 |         let data = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 25 |     }
 26 |
 27 |     public func pullModel(
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 28 |         name: OllamaModelName,
 29 |         options: PullOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable type 'PullOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 25 |     }
 26 |
 27 |     public func pullModel(
    |                 `- warning: non-sendable type 'PullOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pullModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 28 |         name: OllamaModelName,
 29 |         options: PullOptions
    :
124 |
125 | /// Options for pulling models
126 | public struct PullOptions {
    |               `- note: consider making struct 'PullOptions' conform to the 'Sendable' protocol
127 |     /// Whether to allow insecure connections
128 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 43 |     }
 44 |
 45 |     public func pushModel(
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 46 |         name: OllamaModelName,
 47 |         options: PushOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable type 'PushOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 43 |     }
 44 |
 45 |     public func pushModel(
    |                 `- warning: non-sendable type 'PushOptions' in parameter of the protocol requirement satisfied by actor-isolated instance method 'pushModel(name:options:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 46 |         name: OllamaModelName,
 47 |         options: PushOptions
    :
134 |
135 | /// Options for pushing models
136 | public struct PushOptions {
    |               `- note: consider making struct 'PushOptions' conform to the 'Sendable' protocol
137 |     /// Whether to allow insecure connections
138 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 66 |     }
 67 |
 68 |     public func copyModel(
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 69 |         source: OllamaModelName,
 70 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 66 |     }
 67 |
 68 |     public func copyModel(
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'copyModel(source:destination:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 69 |         source: OllamaModelName,
 70 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:84:17: warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'deleteModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 82 |     }
 83 |
 84 |     public func deleteModel(name: OllamaModelName) async throws {
    |                 `- warning: non-sendable type 'OllamaModelName' in parameter of the protocol requirement satisfied by actor-isolated instance method 'deleteModel(name:)' cannot cross actor boundary; this is an error in the Swift 6 language mode
 85 |         let request = DeleteModelRequest(name: name.fullName)
 86 |         _ = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 2 |
 3 | /// A type-safe representation of an Ollama model name
 4 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
 5 |     /// The namespace of the model (optional)
 6 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:16:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 14 |         self.configuration = configuration
 15 |
 16 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 17 |         config.timeoutIntervalForRequest = configuration.timeoutInterval
 18 |         config.allowsExpensiveNetworkAccess = true
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:21:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 19 |         config.allowsConstrainedNetworkAccess = true
 20 |
 21 |         self.session = URLSession(configuration: config)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 22 |
 23 |         self.decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:43:23: error: cannot find 'URLRequest' in scope
 41 |     ) async throws -> Data {
 42 |         let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
 43 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 44 |         request.httpMethod = method
 45 |         request.httpBody = body
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:54:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 52 |         for attempt in 0...configuration.maxRetries {
 53 |             do {
 54 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 55 |
 56 |                 guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:108:35: error: cannot find 'URLRequest' in scope
106 |                 do {
107 |                     let url = baseURL.appendingPathComponent("/api").appendingPathComponent(endpoint)
108 |                     var request = URLRequest(url: url)
    |                                   `- error: cannot find 'URLRequest' in scope
109 |                     request.httpMethod = method
110 |                     request.httpBody = body
[20/33] Compiling Swollama GenerateRequest.swift
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:14:16: warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 12 |     public let images: [String]?
 13 |     /// The format to return the response in
 14 |     public let format: ResponseFormat?
    |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 15 |     /// Additional model parameters
 16 |     public let options: ModelOptions?
    :
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
[21/33] Compiling Swollama GenerateResponse.swift
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:14:16: warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 12 |     public let images: [String]?
 13 |     /// The format to return the response in
 14 |     public let format: ResponseFormat?
    |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 15 |     /// Additional model parameters
 16 |     public let options: ModelOptions?
    :
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
[22/33] Compiling Swollama ModelFamily.swift
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:14:16: warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 12 |     public let images: [String]?
 13 |     /// The format to return the response in
 14 |     public let format: ResponseFormat?
    |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'GenerateRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
 15 |     /// Additional model parameters
 16 |     public let options: ModelOptions?
    :
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
[23/33] Compiling Swollama ChatOptions.swift
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:22:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for chat completion
 4 | public struct ChatOptions {
   |               `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
 5 |     public let tools: [ToolDefinition]?
 6 |     public let format: ResponseFormat?
   :
20 |     }
21 |
22 |     public static let `default` = ChatOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:19:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for embedding generation
 4 | public struct EmbeddingOptions {
   |               `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
 5 |     public let truncate: Bool?
 6 |     public let modelOptions: ModelOptions?
   :
17 |     }
18 |
19 |     public static let `default` = EmbeddingOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:37:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for text generation
 4 | public struct GenerationOptions {
   |               `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
 5 |     public let suffix: String?
 6 |     public let images: [String]?
   :
35 |     }
36 |
37 |     public static let `default` = GenerationOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | }
39 |
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:22:16: warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
20 |     public let tools: [ToolDefinition]?
21 |     /// The format to return the response in
22 |     public let format: ResponseFormat?
   |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
23 |     /// Additional model parameters
24 |     public let options: ModelOptions?
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:52:16: warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
50 |
51 |     /// The role of the message sender
52 |     public let role: MessageRole
   |                `- warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
53 |
54 |     /// The content of the message
   :
69 |
70 | /// Available message roles
71 | public enum MessageRole: String, Codable {
   |             `- note: consider making enum 'MessageRole' conform to the 'Sendable' protocol
72 |     case system
73 |     case user
[24/33] Compiling Swollama EmbeddingOptions.swift
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:22:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for chat completion
 4 | public struct ChatOptions {
   |               `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
 5 |     public let tools: [ToolDefinition]?
 6 |     public let format: ResponseFormat?
   :
20 |     }
21 |
22 |     public static let `default` = ChatOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:19:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for embedding generation
 4 | public struct EmbeddingOptions {
   |               `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
 5 |     public let truncate: Bool?
 6 |     public let modelOptions: ModelOptions?
   :
17 |     }
18 |
19 |     public static let `default` = EmbeddingOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:37:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for text generation
 4 | public struct GenerationOptions {
   |               `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
 5 |     public let suffix: String?
 6 |     public let images: [String]?
   :
35 |     }
36 |
37 |     public static let `default` = GenerationOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | }
39 |
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:22:16: warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
20 |     public let tools: [ToolDefinition]?
21 |     /// The format to return the response in
22 |     public let format: ResponseFormat?
   |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
23 |     /// Additional model parameters
24 |     public let options: ModelOptions?
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:52:16: warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
50 |
51 |     /// The role of the message sender
52 |     public let role: MessageRole
   |                `- warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
53 |
54 |     /// The content of the message
   :
69 |
70 | /// Available message roles
71 | public enum MessageRole: String, Codable {
   |             `- note: consider making enum 'MessageRole' conform to the 'Sendable' protocol
72 |     case system
73 |     case user
[25/33] Compiling Swollama GenerationOptions.swift
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:22:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for chat completion
 4 | public struct ChatOptions {
   |               `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
 5 |     public let tools: [ToolDefinition]?
 6 |     public let format: ResponseFormat?
   :
20 |     }
21 |
22 |     public static let `default` = ChatOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:19:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for embedding generation
 4 | public struct EmbeddingOptions {
   |               `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
 5 |     public let truncate: Bool?
 6 |     public let modelOptions: ModelOptions?
   :
17 |     }
18 |
19 |     public static let `default` = EmbeddingOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:37:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for text generation
 4 | public struct GenerationOptions {
   |               `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
 5 |     public let suffix: String?
 6 |     public let images: [String]?
   :
35 |     }
36 |
37 |     public static let `default` = GenerationOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | }
39 |
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:22:16: warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
20 |     public let tools: [ToolDefinition]?
21 |     /// The format to return the response in
22 |     public let format: ResponseFormat?
   |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
23 |     /// Additional model parameters
24 |     public let options: ModelOptions?
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:52:16: warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
50 |
51 |     /// The role of the message sender
52 |     public let role: MessageRole
   |                `- warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
53 |
54 |     /// The content of the message
   :
69 |
70 | /// Available message roles
71 | public enum MessageRole: String, Codable {
   |             `- note: consider making enum 'MessageRole' conform to the 'Sendable' protocol
72 |     case system
73 |     case user
[26/33] Compiling Swollama ChatRequest.swift
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:22:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for chat completion
 4 | public struct ChatOptions {
   |               `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
 5 |     public let tools: [ToolDefinition]?
 6 |     public let format: ResponseFormat?
   :
20 |     }
21 |
22 |     public static let `default` = ChatOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:19:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for embedding generation
 4 | public struct EmbeddingOptions {
   |               `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
 5 |     public let truncate: Bool?
 6 |     public let modelOptions: ModelOptions?
   :
17 |     }
18 |
19 |     public static let `default` = EmbeddingOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:37:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options for text generation
 4 | public struct GenerationOptions {
   |               `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
 5 |     public let suffix: String?
 6 |     public let images: [String]?
   :
35 |     }
36 |
37 |     public static let `default` = GenerationOptions()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | }
39 |
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:22:16: warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
20 |     public let tools: [ToolDefinition]?
21 |     /// The format to return the response in
22 |     public let format: ResponseFormat?
   |                `- warning: stored property 'format' of 'Sendable'-conforming struct 'ChatRequest' has non-sendable type 'ResponseFormat?'; this is an error in the Swift 6 language mode
23 |     /// Additional model parameters
24 |     public let options: ModelOptions?
/host/spi-builder-workspace/Sources/Swollama/Models/GenerateRequest.swift:66:13: note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 64 |
 65 | /// Response format options
 66 | public enum ResponseFormat: String, Codable {
    |             `- note: consider making enum 'ResponseFormat' conform to the 'Sendable' protocol
 67 |     case json
 68 | }
/host/spi-builder-workspace/Sources/Swollama/Models/ChatRequest.swift:52:16: warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
50 |
51 |     /// The role of the message sender
52 |     public let role: MessageRole
   |                `- warning: stored property 'role' of 'Sendable'-conforming struct 'ChatMessage' has non-sendable type 'MessageRole'; this is an error in the Swift 6 language mode
53 |
54 |     /// The content of the message
   :
69 |
70 | /// Available message roles
71 | public enum MessageRole: String, Codable {
   |             `- note: consider making enum 'MessageRole' conform to the 'Sendable' protocol
72 |     case system
73 |     case user
[27/33] Compiling Swollama ModelFormat.swift
[28/33] Compiling Swollama ModelInformation.swift
[29/33] Compiling Swollama ModelsResponse.swift
BUILD FAILURE 6.0 linux