The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Swollama, reference master (1eada8), with Swift 6.1 for Linux on 2 Oct 2025 14:20:45 UTC.

Swift 6 data race errors: 20

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

19 | /// ```
20 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
21 |     /// Timeout for individual HTTP requests in seconds. Defaults to 30 seconds.
22 |     public let timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:53:28: warning: non-sendable type 'OllamaConfiguration' cannot be returned from nonisolated implementation to caller of protocol requirement 'configuration'; this is an error in the Swift 6 language mode
 51 |
 52 |     /// Configuration settings for the client including timeouts, retries, and keep-alive behavior.
 53 |     public nonisolated let configuration: OllamaConfiguration
    |                            `- warning: non-sendable type 'OllamaConfiguration' cannot be returned from nonisolated implementation to caller of protocol requirement 'configuration'; this is an error in the Swift 6 language mode
 54 |
 55 |     private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:20:15: note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
18 | /// let client = OllamaClient(configuration: config)
19 | /// ```
20 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
21 |     /// Timeout for individual HTTP requests in seconds. Defaults to 30 seconds.
22 |     public let timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:11:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:verbose:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
  9 |     }
 10 |
 11 |     public func showModel(name: OllamaModelName, verbose: Bool? = nil) async throws
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:verbose:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 12 |         -> ModelInformation
 13 |     {
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:29:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 27 |     }
 28 |
 29 |     public func pullModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 30 |         name: OllamaModelName,
 31 |         options: PullOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:29:17: warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 27 |     }
 28 |
 29 |     public func pullModel(
    |                 `- warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 30 |         name: OllamaModelName,
 31 |         options: PullOptions
    :
198 |
199 | /// Options for pulling models from the Ollama registry.
200 | public struct PullOptions {
    |               `- note: consider making struct 'PullOptions' conform to the 'Sendable' protocol
201 |     /// Whether to allow insecure (non-HTTPS) connections to the registry.
202 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:47:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 45 |     }
 46 |
 47 |     public func pushModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 48 |         name: OllamaModelName,
 49 |         options: PushOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:47:17: warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 45 |     }
 46 |
 47 |     public func pushModel(
    |                 `- warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 48 |         name: OllamaModelName,
 49 |         options: PushOptions
    :
211 |
212 | /// Options for pushing models to the Ollama registry.
213 | public struct PushOptions {
    |               `- note: consider making struct 'PushOptions' conform to the 'Sendable' protocol
214 |     /// Whether to allow insecure (non-HTTPS) connections to the registry.
215 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:70:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 68 |     }
 69 |
 70 |     public func copyModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 71 |         source: OllamaModelName,
 72 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:70:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 68 |     }
 69 |
 70 |     public func copyModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 71 |         source: OllamaModelName,
 72 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:86:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 84 |     }
 85 |
 86 |     public func deleteModel(name: OllamaModelName) async throws {
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 87 |         let request = DeleteModelRequest(name: name.fullName)
 88 |         _ = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:62: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
18 | /// let client = OllamaClient(configuration: config)
19 | /// ```
20 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
21 |     /// Timeout for individual HTTP requests in seconds. Defaults to 30 seconds.
22 |     public let timeoutInterval: TimeInterval
   :
60 |
61 |     /// Default configuration with standard settings.
62 |     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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 | }
64 |
[10/43] Compiling Swollama OllamaClient+ModelManagement.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:53:12: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'OllamaConfiguration'; this is an error in the Swift 6 language mode
 51 |
 52 |     /// Configuration settings for the client including timeouts, retries, and keep-alive behavior.
 53 |     public nonisolated let configuration: OllamaConfiguration
    |            `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'OllamaConfiguration'; this is an error in the Swift 6 language mode
 54 |
 55 |     private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:20:15: note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
18 | /// let client = OllamaClient(configuration: config)
19 | /// ```
20 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
21 |     /// Timeout for individual HTTP requests in seconds. Defaults to 30 seconds.
22 |     public let timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:53:28: warning: non-sendable type 'OllamaConfiguration' cannot be returned from nonisolated implementation to caller of protocol requirement 'configuration'; this is an error in the Swift 6 language mode
 51 |
 52 |     /// Configuration settings for the client including timeouts, retries, and keep-alive behavior.
 53 |     public nonisolated let configuration: OllamaConfiguration
    |                            `- warning: non-sendable type 'OllamaConfiguration' cannot be returned from nonisolated implementation to caller of protocol requirement 'configuration'; this is an error in the Swift 6 language mode
 54 |
 55 |     private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:20:15: note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
18 | /// let client = OllamaClient(configuration: config)
19 | /// ```
20 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
21 |     /// Timeout for individual HTTP requests in seconds. Defaults to 30 seconds.
22 |     public let timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:11:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:verbose:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
  9 |     }
 10 |
 11 |     public func showModel(name: OllamaModelName, verbose: Bool? = nil) async throws
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:verbose:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 12 |         -> ModelInformation
 13 |     {
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:29:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 27 |     }
 28 |
 29 |     public func pullModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 30 |         name: OllamaModelName,
 31 |         options: PullOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:29:17: warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 27 |     }
 28 |
 29 |     public func pullModel(
    |                 `- warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 30 |         name: OllamaModelName,
 31 |         options: PullOptions
    :
198 |
199 | /// Options for pulling models from the Ollama registry.
200 | public struct PullOptions {
    |               `- note: consider making struct 'PullOptions' conform to the 'Sendable' protocol
201 |     /// Whether to allow insecure (non-HTTPS) connections to the registry.
202 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:47:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 45 |     }
 46 |
 47 |     public func pushModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 48 |         name: OllamaModelName,
 49 |         options: PushOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:47:17: warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 45 |     }
 46 |
 47 |     public func pushModel(
    |                 `- warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 48 |         name: OllamaModelName,
 49 |         options: PushOptions
    :
211 |
212 | /// Options for pushing models to the Ollama registry.
213 | public struct PushOptions {
    |               `- note: consider making struct 'PushOptions' conform to the 'Sendable' protocol
214 |     /// Whether to allow insecure (non-HTTPS) connections to the registry.
215 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:70:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 68 |     }
 69 |
 70 |     public func copyModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 71 |         source: OllamaModelName,
 72 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:70:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 68 |     }
 69 |
 70 |     public func copyModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 71 |         source: OllamaModelName,
 72 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:86:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 84 |     }
 85 |
 86 |     public func deleteModel(name: OllamaModelName) async throws {
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 87 |         let request = DeleteModelRequest(name: name.fullName)
 88 |         _ = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:62: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
18 | /// let client = OllamaClient(configuration: config)
19 | /// ```
20 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
21 |     /// Timeout for individual HTTP requests in seconds. Defaults to 30 seconds.
22 |     public let timeoutInterval: TimeInterval
   :
60 |
61 |     /// Default configuration with standard settings.
62 |     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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 | }
64 |
[11/43] Compiling Swollama OllamaClient.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:53:12: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'OllamaConfiguration'; this is an error in the Swift 6 language mode
 51 |
 52 |     /// Configuration settings for the client including timeouts, retries, and keep-alive behavior.
 53 |     public nonisolated let configuration: OllamaConfiguration
    |            `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'OllamaConfiguration'; this is an error in the Swift 6 language mode
 54 |
 55 |     private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:20:15: note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
18 | /// let client = OllamaClient(configuration: config)
19 | /// ```
20 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
21 |     /// Timeout for individual HTTP requests in seconds. Defaults to 30 seconds.
22 |     public let timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:53:28: warning: non-sendable type 'OllamaConfiguration' cannot be returned from nonisolated implementation to caller of protocol requirement 'configuration'; this is an error in the Swift 6 language mode
 51 |
 52 |     /// Configuration settings for the client including timeouts, retries, and keep-alive behavior.
 53 |     public nonisolated let configuration: OllamaConfiguration
    |                            `- warning: non-sendable type 'OllamaConfiguration' cannot be returned from nonisolated implementation to caller of protocol requirement 'configuration'; this is an error in the Swift 6 language mode
 54 |
 55 |     private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:20:15: note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
18 | /// let client = OllamaClient(configuration: config)
19 | /// ```
20 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
21 |     /// Timeout for individual HTTP requests in seconds. Defaults to 30 seconds.
22 |     public let timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:11:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:verbose:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
  9 |     }
 10 |
 11 |     public func showModel(name: OllamaModelName, verbose: Bool? = nil) async throws
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:verbose:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 12 |         -> ModelInformation
 13 |     {
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:29:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 27 |     }
 28 |
 29 |     public func pullModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 30 |         name: OllamaModelName,
 31 |         options: PullOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:29:17: warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 27 |     }
 28 |
 29 |     public func pullModel(
    |                 `- warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 30 |         name: OllamaModelName,
 31 |         options: PullOptions
    :
198 |
199 | /// Options for pulling models from the Ollama registry.
200 | public struct PullOptions {
    |               `- note: consider making struct 'PullOptions' conform to the 'Sendable' protocol
201 |     /// Whether to allow insecure (non-HTTPS) connections to the registry.
202 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:47:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 45 |     }
 46 |
 47 |     public func pushModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 48 |         name: OllamaModelName,
 49 |         options: PushOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:47:17: warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 45 |     }
 46 |
 47 |     public func pushModel(
    |                 `- warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 48 |         name: OllamaModelName,
 49 |         options: PushOptions
    :
211 |
212 | /// Options for pushing models to the Ollama registry.
213 | public struct PushOptions {
    |               `- note: consider making struct 'PushOptions' conform to the 'Sendable' protocol
214 |     /// Whether to allow insecure (non-HTTPS) connections to the registry.
215 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:70:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 68 |     }
 69 |
 70 |     public func copyModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 71 |         source: OllamaModelName,
 72 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:70:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 68 |     }
 69 |
 70 |     public func copyModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 71 |         source: OllamaModelName,
 72 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:86:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 84 |     }
 85 |
 86 |     public func deleteModel(name: OllamaModelName) async throws {
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 87 |         let request = DeleteModelRequest(name: name.fullName)
 88 |         _ = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:62: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
18 | /// let client = OllamaClient(configuration: config)
19 | /// ```
20 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
21 |     /// Timeout for individual HTTP requests in seconds. Defaults to 30 seconds.
22 |     public let timeoutInterval: TimeInterval
   :
60 |
61 |     /// Default configuration with standard settings.
62 |     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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 | }
64 |
[12/43] Compiling Swollama OllamaConfiguration.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:53:12: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'OllamaConfiguration'; this is an error in the Swift 6 language mode
 51 |
 52 |     /// Configuration settings for the client including timeouts, retries, and keep-alive behavior.
 53 |     public nonisolated let configuration: OllamaConfiguration
    |            `- warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'OllamaConfiguration'; this is an error in the Swift 6 language mode
 54 |
 55 |     private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:20:15: note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
18 | /// let client = OllamaClient(configuration: config)
19 | /// ```
20 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
21 |     /// Timeout for individual HTTP requests in seconds. Defaults to 30 seconds.
22 |     public let timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:53:28: warning: non-sendable type 'OllamaConfiguration' cannot be returned from nonisolated implementation to caller of protocol requirement 'configuration'; this is an error in the Swift 6 language mode
 51 |
 52 |     /// Configuration settings for the client including timeouts, retries, and keep-alive behavior.
 53 |     public nonisolated let configuration: OllamaConfiguration
    |                            `- warning: non-sendable type 'OllamaConfiguration' cannot be returned from nonisolated implementation to caller of protocol requirement 'configuration'; this is an error in the Swift 6 language mode
 54 |
 55 |     private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:20:15: note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
18 | /// let client = OllamaClient(configuration: config)
19 | /// ```
20 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
21 |     /// Timeout for individual HTTP requests in seconds. Defaults to 30 seconds.
22 |     public let timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:11:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:verbose:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
  9 |     }
 10 |
 11 |     public func showModel(name: OllamaModelName, verbose: Bool? = nil) async throws
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'showModel(name:verbose:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 12 |         -> ModelInformation
 13 |     {
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:29:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 27 |     }
 28 |
 29 |     public func pullModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 30 |         name: OllamaModelName,
 31 |         options: PullOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:29:17: warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 27 |     }
 28 |
 29 |     public func pullModel(
    |                 `- warning: non-sendable parameter type 'PullOptions' cannot be sent from caller of protocol requirement 'pullModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 30 |         name: OllamaModelName,
 31 |         options: PullOptions
    :
198 |
199 | /// Options for pulling models from the Ollama registry.
200 | public struct PullOptions {
    |               `- note: consider making struct 'PullOptions' conform to the 'Sendable' protocol
201 |     /// Whether to allow insecure (non-HTTPS) connections to the registry.
202 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:47:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 45 |     }
 46 |
 47 |     public func pushModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 48 |         name: OllamaModelName,
 49 |         options: PushOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:47:17: warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 45 |     }
 46 |
 47 |     public func pushModel(
    |                 `- warning: non-sendable parameter type 'PushOptions' cannot be sent from caller of protocol requirement 'pushModel(name:options:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 48 |         name: OllamaModelName,
 49 |         options: PushOptions
    :
211 |
212 | /// Options for pushing models to the Ollama registry.
213 | public struct PushOptions {
    |               `- note: consider making struct 'PushOptions' conform to the 'Sendable' protocol
214 |     /// Whether to allow insecure (non-HTTPS) connections to the registry.
215 |     public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:70:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 68 |     }
 69 |
 70 |     public func copyModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 71 |         source: OllamaModelName,
 72 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:70:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 68 |     }
 69 |
 70 |     public func copyModel(
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'copyModel(source:destination:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 71 |         source: OllamaModelName,
 72 |         destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:86:17: warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 84 |     }
 85 |
 86 |     public func deleteModel(name: OllamaModelName) async throws {
    |                 `- warning: non-sendable parameter type 'OllamaModelName' cannot be sent from caller of protocol requirement 'deleteModel(name:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
 87 |         let request = DeleteModelRequest(name: name.fullName)
 88 |         _ = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:62: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
18 | /// let client = OllamaClient(configuration: config)
19 | /// ```
20 | public struct OllamaConfiguration {
   |               `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
21 |     /// Timeout for individual HTTP requests in seconds. Defaults to 30 seconds.
22 |     public let timeoutInterval: TimeInterval
   :
60 |
61 |     /// Default configuration with standard settings.
62 |     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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 | }
64 |
[13/43] Compiling Swollama OllamaError.swift
[14/43] Compiling Swollama OllamaProtocol.swift
[15/43] Compiling Swollama OllamaWebSearchClient.swift
[16/43] Compiling Swollama WebSearchModels.swift
[17/43] Compiling Swollama EmbeddingResponse.swift
[18/43] Compiling Swollama GenerateRequest.swift
[19/43] Compiling Swollama GenerateResponse.swift
[20/43] Compiling Swollama ModelFamily.swift
[21/43] Compiling Swollama ModelFormat.swift
[22/43] Compiling Swollama ModelInformation.swift
[23/43] Compiling Swollama ModelsResponse.swift
[24/43] Compiling Swollama OllamaModelName.swift
[25/43] Compiling Swollama OperationProgress.swift
[26/43] Compiling Swollama ToolDefinition.swift
[27/43] Compiling Swollama VersionResponse.swift
[28/43] Compiling Swollama NetworkingSupport+Streaming.swift
[29/43] Compiling Swollama NetworkingSupport.swift
[30/43] Compiling Swollama AgentConfiguration.swift
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:56: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
15 | /// )
16 | /// ```
17 | public struct ChatOptions {
   |               `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
18 |     /// Tool definitions to make available to the model for function calling.
19 |     public let tools: [ToolDefinition]?
   :
54 |
55 |     /// Default chat options with no constraints.
56 |     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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | }
58 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:34: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
 5 | /// Controls embedding behavior including input truncation, model parameters, and
 6 | /// model keep-alive duration.
 7 | public struct EmbeddingOptions {
   |               `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
 8 |     /// Whether to truncate input text that exceeds the model's maximum context length. Defaults to `true`.
 9 |     public let truncate: Bool?
   :
32 |
33 |     /// Default embedding options with truncation enabled.
34 |     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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 |
/host/spi-builder-workspace/Sources/Swollama/Agent/OllamaAgent.swift:110:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
108 |     ) -> AsyncThrowingStream<AgentEvent, Error> {
109 |         AsyncThrowingStream { continuation in
110 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
111 |
112 |                 do {
    :
122 |                         let response = try await self.client.chat(
123 |                             messages: messages,
124 |                             model: model,
    |                                    `- note: closure captures 'model' which is accessible to code in the current task
125 |                             options: ChatOptions(
126 |                                 tools: [
/host/spi-builder-workspace/Sources/Swollama/Agent/OllamaAgent.swift:122:62: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
120 |                         iterations += 1
121 |
122 |                         let response = try await self.client.chat(
    |                                                              |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                                              `- note: sending task-isolated 'model' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
123 |                             messages: messages,
124 |                             model: model,
[31/43] Compiling Swollama AgentEvent.swift
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:56: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
15 | /// )
16 | /// ```
17 | public struct ChatOptions {
   |               `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
18 |     /// Tool definitions to make available to the model for function calling.
19 |     public let tools: [ToolDefinition]?
   :
54 |
55 |     /// Default chat options with no constraints.
56 |     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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | }
58 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:34: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
 5 | /// Controls embedding behavior including input truncation, model parameters, and
 6 | /// model keep-alive duration.
 7 | public struct EmbeddingOptions {
   |               `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
 8 |     /// Whether to truncate input text that exceeds the model's maximum context length. Defaults to `true`.
 9 |     public let truncate: Bool?
   :
32 |
33 |     /// Default embedding options with truncation enabled.
34 |     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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 |
/host/spi-builder-workspace/Sources/Swollama/Agent/OllamaAgent.swift:110:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
108 |     ) -> AsyncThrowingStream<AgentEvent, Error> {
109 |         AsyncThrowingStream { continuation in
110 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
111 |
112 |                 do {
    :
122 |                         let response = try await self.client.chat(
123 |                             messages: messages,
124 |                             model: model,
    |                                    `- note: closure captures 'model' which is accessible to code in the current task
125 |                             options: ChatOptions(
126 |                                 tools: [
/host/spi-builder-workspace/Sources/Swollama/Agent/OllamaAgent.swift:122:62: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
120 |                         iterations += 1
121 |
122 |                         let response = try await self.client.chat(
    |                                                              |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                                              `- note: sending task-isolated 'model' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
123 |                             messages: messages,
124 |                             model: model,
[32/43] Compiling Swollama OllamaAgent.swift
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:56: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
15 | /// )
16 | /// ```
17 | public struct ChatOptions {
   |               `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
18 |     /// Tool definitions to make available to the model for function calling.
19 |     public let tools: [ToolDefinition]?
   :
54 |
55 |     /// Default chat options with no constraints.
56 |     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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | }
58 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:34: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
 5 | /// Controls embedding behavior including input truncation, model parameters, and
 6 | /// model keep-alive duration.
 7 | public struct EmbeddingOptions {
   |               `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
 8 |     /// Whether to truncate input text that exceeds the model's maximum context length. Defaults to `true`.
 9 |     public let truncate: Bool?
   :
32 |
33 |     /// Default embedding options with truncation enabled.
34 |     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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 |
/host/spi-builder-workspace/Sources/Swollama/Agent/OllamaAgent.swift:110:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
108 |     ) -> AsyncThrowingStream<AgentEvent, Error> {
109 |         AsyncThrowingStream { continuation in
110 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
111 |
112 |                 do {
    :
122 |                         let response = try await self.client.chat(
123 |                             messages: messages,
124 |                             model: model,
    |                                    `- note: closure captures 'model' which is accessible to code in the current task
125 |                             options: ChatOptions(
126 |                                 tools: [
/host/spi-builder-workspace/Sources/Swollama/Agent/OllamaAgent.swift:122:62: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
120 |                         iterations += 1
121 |
122 |                         let response = try await self.client.chat(
    |                                                              |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                                              `- note: sending task-isolated 'model' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
123 |                             messages: messages,
124 |                             model: model,
[33/43] Compiling Swollama ChatOptions.swift
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:56: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
15 | /// )
16 | /// ```
17 | public struct ChatOptions {
   |               `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
18 |     /// Tool definitions to make available to the model for function calling.
19 |     public let tools: [ToolDefinition]?
   :
54 |
55 |     /// Default chat options with no constraints.
56 |     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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | }
58 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:34: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
 5 | /// Controls embedding behavior including input truncation, model parameters, and
 6 | /// model keep-alive duration.
 7 | public struct EmbeddingOptions {
   |               `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
 8 |     /// Whether to truncate input text that exceeds the model's maximum context length. Defaults to `true`.
 9 |     public let truncate: Bool?
   :
32 |
33 |     /// Default embedding options with truncation enabled.
34 |     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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 |
/host/spi-builder-workspace/Sources/Swollama/Agent/OllamaAgent.swift:110:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
108 |     ) -> AsyncThrowingStream<AgentEvent, Error> {
109 |         AsyncThrowingStream { continuation in
110 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
111 |
112 |                 do {
    :
122 |                         let response = try await self.client.chat(
123 |                             messages: messages,
124 |                             model: model,
    |                                    `- note: closure captures 'model' which is accessible to code in the current task
125 |                             options: ChatOptions(
126 |                                 tools: [
/host/spi-builder-workspace/Sources/Swollama/Agent/OllamaAgent.swift:122:62: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
120 |                         iterations += 1
121 |
122 |                         let response = try await self.client.chat(
    |                                                              |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                                              `- note: sending task-isolated 'model' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
123 |                             messages: messages,
124 |                             model: model,
[34/43] Compiling Swollama EmbeddingOptions.swift
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:56: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
15 | /// )
16 | /// ```
17 | public struct ChatOptions {
   |               `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
18 |     /// Tool definitions to make available to the model for function calling.
19 |     public let tools: [ToolDefinition]?
   :
54 |
55 |     /// Default chat options with no constraints.
56 |     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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | }
58 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:34: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
 5 | /// Controls embedding behavior including input truncation, model parameters, and
 6 | /// model keep-alive duration.
 7 | public struct EmbeddingOptions {
   |               `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
 8 |     /// Whether to truncate input text that exceeds the model's maximum context length. Defaults to `true`.
 9 |     public let truncate: Bool?
   :
32 |
33 |     /// Default embedding options with truncation enabled.
34 |     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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 |
/host/spi-builder-workspace/Sources/Swollama/Agent/OllamaAgent.swift:110:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
108 |     ) -> AsyncThrowingStream<AgentEvent, Error> {
109 |         AsyncThrowingStream { continuation in
110 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
111 |
112 |                 do {
    :
122 |                         let response = try await self.client.chat(
123 |                             messages: messages,
124 |                             model: model,
    |                                    `- note: closure captures 'model' which is accessible to code in the current task
125 |                             options: ChatOptions(
126 |                                 tools: [
/host/spi-builder-workspace/Sources/Swollama/Agent/OllamaAgent.swift:122:62: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
120 |                         iterations += 1
121 |
122 |                         let response = try await self.client.chat(
    |                                                              |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                                              `- note: sending task-isolated 'model' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
123 |                             messages: messages,
124 |                             model: model,
[35/43] Compiling Swollama GenerationOptions.swift
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:76: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
 5 | /// Provides comprehensive control over generation behavior including multimodal inputs,
 6 | /// output formatting, system prompts, and conversation context.
 7 | public struct GenerationOptions {
   |               `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
 8 |     /// Text to append after the model's generated response (for fill-in-the-middle scenarios).
 9 |     public let suffix: String?
   :
74 |
75 |     /// Default generation options with no constraints.
76 |     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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
77 | }
78 |
[36/43] Compiling Swollama ChatRequest.swift
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:76: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
 5 | /// Provides comprehensive control over generation behavior including multimodal inputs,
 6 | /// output formatting, system prompts, and conversation context.
 7 | public struct GenerationOptions {
   |               `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
 8 |     /// Text to append after the model's generated response (for fill-in-the-middle scenarios).
 9 |     public let suffix: String?
   :
74 |
75 |     /// Default generation options with no constraints.
76 |     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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
77 | }
78 |
[37/43] Compiling Swollama ChatResponse.swift
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:76: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
 5 | /// Provides comprehensive control over generation behavior including multimodal inputs,
 6 | /// output formatting, system prompts, and conversation context.
 7 | public struct GenerationOptions {
   |               `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
 8 |     /// Text to append after the model's generated response (for fill-in-the-middle scenarios).
 9 |     public let suffix: String?
   :
74 |
75 |     /// Default generation options with no constraints.
76 |     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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
77 | }
78 |
[38/43] Compiling Swollama CreateModelRequest.swift
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:76: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
 5 | /// Provides comprehensive control over generation behavior including multimodal inputs,
 6 | /// output formatting, system prompts, and conversation context.
 7 | public struct GenerationOptions {
   |               `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
 8 |     /// Text to append after the model's generated response (for fill-in-the-middle scenarios).
 9 |     public let suffix: String?
   :
74 |
75 |     /// Default generation options with no constraints.
76 |     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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
77 | }
78 |
[39/43] Compiling Swollama EmbeddingRequest.swift
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:76: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
 5 | /// Provides comprehensive control over generation behavior including multimodal inputs,
 6 | /// output formatting, system prompts, and conversation context.
 7 | public struct GenerationOptions {
   |               `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
 8 |     /// Text to append after the model's generated response (for fill-in-the-middle scenarios).
 9 |     public let suffix: String?
   :
74 |
75 |     /// Default generation options with no constraints.
76 |     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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
77 | }
78 |
[40/44] Wrapping AST for Swollama for debugging
[42/70] Emitting module SwollamaCLI
/host/spi-builder-workspace/Sources/SwollamaCLI/ErrorRecovery.swift:153:10: warning: associated value 'fallbackRequired(model:)' of 'Sendable'-conforming enum 'RecoveryError' has non-sendable type 'OllamaModelName'; this is an error in the Swift 6 language mode
151 |
152 | enum RecoveryError: LocalizedError {
153 |     case fallbackRequired(model: OllamaModelName)
    |          `- warning: associated value 'fallbackRequired(model:)' of 'Sendable'-conforming enum 'RecoveryError' has non-sendable type 'OllamaModelName'; this is an error in the Swift 6 language mode
154 |     case hostSwitchRequired(host: String)
155 |     case reconnectFailed
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: struct 'OllamaModelName' does not conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: struct 'OllamaModelName' does not conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/SwollamaCLI/ErrorRecovery.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Swollama'
  1 | import Foundation
  2 | import Swollama
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Swollama'
  3 |
  4 | enum RecoveryStrategy {
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:5:16: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | struct StreamDebugger {
  5 |     static var isEnabled = false
    |                |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'isEnabled' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  6 |     static var logFile: FileHandle?
  7 |
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:6:16: warning: static property 'logFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  4 | struct StreamDebugger {
  5 |     static var isEnabled = false
  6 |     static var logFile: FileHandle?
    |                |- warning: static property 'logFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'logFile' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'logFile' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  7 |
  8 |     private static let dateFormatter: DateFormatter = {
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:121:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
118 | }
119 |
120 | class NetworkMonitor {
    |       `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
121 |     static let shared = NetworkMonitor()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 |     private var requestCount = 0
/host/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:184:24: warning: static property 'cachedWidth' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
182 |
183 | class CachedTerminalHelper: TerminalHelper {
184 |     private static var cachedWidth: Int?
    |                        |- warning: static property 'cachedWidth' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'cachedWidth' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'cachedWidth' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
185 |     private static var lastCheck: Date?
186 |     private static let cacheDuration: TimeInterval = 1.0
/host/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:185:24: warning: static property 'lastCheck' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
183 | class CachedTerminalHelper: TerminalHelper {
184 |     private static var cachedWidth: Int?
185 |     private static var lastCheck: Date?
    |                        |- warning: static property 'lastCheck' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'lastCheck' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'lastCheck' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 |     private static let cacheDuration: TimeInterval = 1.0
187 |
[43/73] Compiling SwollamaCLI AgentCommand.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/ChatCommand.swift:114:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
112 |             printTimestamp()
113 |             print("\(TerminalStyle.neonBlue)Assistant:\(TerminalStyle.reset) ", terminator: "")
114 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
115 |
116 |             guard let client = client as? OllamaClient else {
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/ChatCommand.swift:136:32: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
134 |                         let content = response.message.content
135 |                         print(content, terminator: "")
136 |                         fflush(stdout)
    |                                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
137 |                         fullResponse += content
138 |                     }
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/ChatCommand.swift:124:47: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
122 |
123 |             do {
124 |                 let stream = try await client.chat(
    |                                               |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                               |- note: sending 'model' to actor-isolated callee risks causing data races between actor-isolated and local nonisolated uses
    |                                               `- note: access can happen concurrently
125 |                     messages: messages,
126 |                     model: model,
[44/73] Compiling SwollamaCLI BlobCommand.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/ChatCommand.swift:114:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
112 |             printTimestamp()
113 |             print("\(TerminalStyle.neonBlue)Assistant:\(TerminalStyle.reset) ", terminator: "")
114 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
115 |
116 |             guard let client = client as? OllamaClient else {
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/ChatCommand.swift:136:32: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
134 |                         let content = response.message.content
135 |                         print(content, terminator: "")
136 |                         fflush(stdout)
    |                                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
137 |                         fullResponse += content
138 |                     }
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/ChatCommand.swift:124:47: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
122 |
123 |             do {
124 |                 let stream = try await client.chat(
    |                                               |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                               |- note: sending 'model' to actor-isolated callee risks causing data races between actor-isolated and local nonisolated uses
    |                                               `- note: access can happen concurrently
125 |                     messages: messages,
126 |                     model: model,
[45/73] Compiling SwollamaCLI ChatCommand.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/ChatCommand.swift:114:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
112 |             printTimestamp()
113 |             print("\(TerminalStyle.neonBlue)Assistant:\(TerminalStyle.reset) ", terminator: "")
114 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
115 |
116 |             guard let client = client as? OllamaClient else {
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/ChatCommand.swift:136:32: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
134 |                         let content = response.message.content
135 |                         print(content, terminator: "")
136 |                         fflush(stdout)
    |                                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
137 |                         fullResponse += content
138 |                     }
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/ChatCommand.swift:124:47: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
122 |
123 |             do {
124 |                 let stream = try await client.chat(
    |                                               |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                               |- note: sending 'model' to actor-isolated callee risks causing data races between actor-isolated and local nonisolated uses
    |                                               `- note: access can happen concurrently
125 |                     messages: messages,
126 |                     model: model,
[46/73] Compiling SwollamaCLI CommandProtocol.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/ChatCommand.swift:114:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
112 |             printTimestamp()
113 |             print("\(TerminalStyle.neonBlue)Assistant:\(TerminalStyle.reset) ", terminator: "")
114 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
115 |
116 |             guard let client = client as? OllamaClient else {
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/ChatCommand.swift:136:32: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
134 |                         let content = response.message.content
135 |                         print(content, terminator: "")
136 |                         fflush(stdout)
    |                                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
137 |                         fullResponse += content
138 |                     }
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/ChatCommand.swift:124:47: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
122 |
123 |             do {
124 |                 let stream = try await client.chat(
    |                                               |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                               |- note: sending 'model' to actor-isolated callee risks causing data races between actor-isolated and local nonisolated uses
    |                                               `- note: access can happen concurrently
125 |                     messages: messages,
126 |                     model: model,
[47/73] Compiling SwollamaCLI CopyModelCommand.swift
[48/73] Compiling SwollamaCLI CreateCommand.swift
[49/73] Compiling SwollamaCLI DeleteModelCommand.swift
[50/73] Compiling SwollamaCLI EmbeddingsCommand.swift
[51/73] Compiling SwollamaCLI VersionCommand.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/EnhancedSwollamaCLI.swift:285:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
283 |         print("\u{001B}[?25h", terminator: "")
284 |
285 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
286 |     }
287 | }
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/ErrorRecovery.swift:153:10: warning: associated value 'fallbackRequired(model:)' of 'Sendable'-conforming enum 'RecoveryError' has non-sendable type 'OllamaModelName'; this is an error in the Swift 6 language mode
151 |
152 | enum RecoveryError: LocalizedError {
153 |     case fallbackRequired(model: OllamaModelName)
    |          `- warning: associated value 'fallbackRequired(model:)' of 'Sendable'-conforming enum 'RecoveryError' has non-sendable type 'OllamaModelName'; this is an error in the Swift 6 language mode
154 |     case hostSwitchRequired(host: String)
155 |     case reconnectFailed
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: struct 'OllamaModelName' does not conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: struct 'OllamaModelName' does not conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/SwollamaCLI/ErrorRecovery.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Swollama'
  1 | import Foundation
  2 | import Swollama
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Swollama'
  3 |
  4 | enum RecoveryStrategy {
/host/spi-builder-workspace/Sources/SwollamaCLI/ErrorRecovery.swift:230:39: warning: sending 'self.currentModel' risks causing data races; this is an error in the Swift 6 language mode
228 |         }
229 |
230 |         let stream = try await client.chat(
    |                                       |- warning: sending 'self.currentModel' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending task-isolated 'self.currentModel' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
231 |             messages: messages,
232 |             model: currentModel,
/host/spi-builder-workspace/Sources/SwollamaCLI/ErrorRecovery.swift:286:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
284 |
285 |     func startMonitoring() {
286 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
287 |             while true {
288 |                 await checkHealth()
    |                       `- note: closure captures 'self' which is accessible to code in the current task
289 |                 try? await Task.sleep(nanoseconds: UInt64(checkInterval * 1_000_000_000))
290 |             }
[52/73] Compiling SwollamaCLI EnhancedSwollamaCLI.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/EnhancedSwollamaCLI.swift:285:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
283 |         print("\u{001B}[?25h", terminator: "")
284 |
285 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
286 |     }
287 | }
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/ErrorRecovery.swift:153:10: warning: associated value 'fallbackRequired(model:)' of 'Sendable'-conforming enum 'RecoveryError' has non-sendable type 'OllamaModelName'; this is an error in the Swift 6 language mode
151 |
152 | enum RecoveryError: LocalizedError {
153 |     case fallbackRequired(model: OllamaModelName)
    |          `- warning: associated value 'fallbackRequired(model:)' of 'Sendable'-conforming enum 'RecoveryError' has non-sendable type 'OllamaModelName'; this is an error in the Swift 6 language mode
154 |     case hostSwitchRequired(host: String)
155 |     case reconnectFailed
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: struct 'OllamaModelName' does not conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: struct 'OllamaModelName' does not conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/SwollamaCLI/ErrorRecovery.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Swollama'
  1 | import Foundation
  2 | import Swollama
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Swollama'
  3 |
  4 | enum RecoveryStrategy {
/host/spi-builder-workspace/Sources/SwollamaCLI/ErrorRecovery.swift:230:39: warning: sending 'self.currentModel' risks causing data races; this is an error in the Swift 6 language mode
228 |         }
229 |
230 |         let stream = try await client.chat(
    |                                       |- warning: sending 'self.currentModel' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending task-isolated 'self.currentModel' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
231 |             messages: messages,
232 |             model: currentModel,
/host/spi-builder-workspace/Sources/SwollamaCLI/ErrorRecovery.swift:286:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
284 |
285 |     func startMonitoring() {
286 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
287 |             while true {
288 |                 await checkHealth()
    |                       `- note: closure captures 'self' which is accessible to code in the current task
289 |                 try? await Task.sleep(nanoseconds: UInt64(checkInterval * 1_000_000_000))
290 |             }
[53/73] Compiling SwollamaCLI ErrorRecovery.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/EnhancedSwollamaCLI.swift:285:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
283 |         print("\u{001B}[?25h", terminator: "")
284 |
285 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
286 |     }
287 | }
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/ErrorRecovery.swift:153:10: warning: associated value 'fallbackRequired(model:)' of 'Sendable'-conforming enum 'RecoveryError' has non-sendable type 'OllamaModelName'; this is an error in the Swift 6 language mode
151 |
152 | enum RecoveryError: LocalizedError {
153 |     case fallbackRequired(model: OllamaModelName)
    |          `- warning: associated value 'fallbackRequired(model:)' of 'Sendable'-conforming enum 'RecoveryError' has non-sendable type 'OllamaModelName'; this is an error in the Swift 6 language mode
154 |     case hostSwitchRequired(host: String)
155 |     case reconnectFailed
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:24:15: note: struct 'OllamaModelName' does not conform to the 'Sendable' protocol
22 | /// print(model3.namespace)
23 | /// ```
24 | public struct OllamaModelName {
   |               `- note: struct 'OllamaModelName' does not conform to the 'Sendable' protocol
25 |     /// The model's namespace (e.g., "library", "username"). Optional for local-only models.
26 |     public let namespace: String?
/host/spi-builder-workspace/Sources/SwollamaCLI/ErrorRecovery.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Swollama'
  1 | import Foundation
  2 | import Swollama
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Swollama'
  3 |
  4 | enum RecoveryStrategy {
/host/spi-builder-workspace/Sources/SwollamaCLI/ErrorRecovery.swift:230:39: warning: sending 'self.currentModel' risks causing data races; this is an error in the Swift 6 language mode
228 |         }
229 |
230 |         let stream = try await client.chat(
    |                                       |- warning: sending 'self.currentModel' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending task-isolated 'self.currentModel' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
231 |             messages: messages,
232 |             model: currentModel,
/host/spi-builder-workspace/Sources/SwollamaCLI/ErrorRecovery.swift:286:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
284 |
285 |     func startMonitoring() {
286 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
287 |             while true {
288 |                 await checkHealth()
    |                       `- note: closure captures 'self' which is accessible to code in the current task
289 |                 try? await Task.sleep(nanoseconds: UInt64(checkInterval * 1_000_000_000))
290 |             }
[54/73] Compiling SwollamaCLI ProgressTracker.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:184:24: warning: static property 'cachedWidth' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
182 |
183 | class CachedTerminalHelper: TerminalHelper {
184 |     private static var cachedWidth: Int?
    |                        |- warning: static property 'cachedWidth' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'cachedWidth' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'cachedWidth' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
185 |     private static var lastCheck: Date?
186 |     private static let cacheDuration: TimeInterval = 1.0
/host/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:185:24: warning: static property 'lastCheck' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
183 | class CachedTerminalHelper: TerminalHelper {
184 |     private static var cachedWidth: Int?
185 |     private static var lastCheck: Date?
    |                        |- warning: static property 'lastCheck' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'lastCheck' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'lastCheck' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 |     private static let cacheDuration: TimeInterval = 1.0
187 |
/host/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:159:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
157 |
158 |         print("\r\u{1B}[K\(progressBar)", terminator: "")
159 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
160 |     }
161 |
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
[55/73] Compiling SwollamaCLI SpeedCalculator.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:184:24: warning: static property 'cachedWidth' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
182 |
183 | class CachedTerminalHelper: TerminalHelper {
184 |     private static var cachedWidth: Int?
    |                        |- warning: static property 'cachedWidth' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'cachedWidth' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'cachedWidth' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
185 |     private static var lastCheck: Date?
186 |     private static let cacheDuration: TimeInterval = 1.0
/host/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:185:24: warning: static property 'lastCheck' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
183 | class CachedTerminalHelper: TerminalHelper {
184 |     private static var cachedWidth: Int?
185 |     private static var lastCheck: Date?
    |                        |- warning: static property 'lastCheck' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'lastCheck' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'lastCheck' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 |     private static let cacheDuration: TimeInterval = 1.0
187 |
/host/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:159:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
157 |
158 |         print("\r\u{1B}[K\(progressBar)", terminator: "")
159 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
160 |     }
161 |
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
[56/73] Compiling SwollamaCLI TerminalHelper.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:184:24: warning: static property 'cachedWidth' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
182 |
183 | class CachedTerminalHelper: TerminalHelper {
184 |     private static var cachedWidth: Int?
    |                        |- warning: static property 'cachedWidth' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'cachedWidth' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'cachedWidth' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
185 |     private static var lastCheck: Date?
186 |     private static let cacheDuration: TimeInterval = 1.0
/host/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:185:24: warning: static property 'lastCheck' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
183 | class CachedTerminalHelper: TerminalHelper {
184 |     private static var cachedWidth: Int?
185 |     private static var lastCheck: Date?
    |                        |- warning: static property 'lastCheck' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'lastCheck' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'lastCheck' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 |     private static let cacheDuration: TimeInterval = 1.0
187 |
/host/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:159:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
157 |
158 |         print("\r\u{1B}[K\(progressBar)", terminator: "")
159 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
160 |     }
161 |
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
[57/73] Compiling SwollamaCLI PullModelCommand.swift
[58/73] Compiling SwollamaCLI PushCommand.swift
[59/73] Compiling SwollamaCLI ShowModelCommand.swift
[60/73] Compiling SwollamaCLI TestCommand.swift
[61/73] Compiling SwollamaCLI EnhancedChatCommand.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EnhancedChatCommand.swift:162:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
160 |             terminator: ""
161 |         )
162 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
163 |
164 |         print("\r", terminator: "")
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EnhancedChatCommand.swift:367:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
365 |             terminator: ""
366 |         )
367 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
368 |
369 |         guard let client = client as? OllamaClient else {
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EnhancedChatCommand.swift:394:28: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
392 |                     let content = response.message.content
393 |                     print(content, terminator: "")
394 |                     fflush(stdout)
    |                            `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
395 |                     fullResponse += content
396 |                     tokenCount += 1
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/GenerateCommand.swift:95:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 93 |             printTimestamp()
 94 |             print("\(TerminalStyle.neonBlue)Generated:\(TerminalStyle.reset) ", terminator: "")
 95 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 96 |
 97 |             guard let client = client as? OllamaClient else {
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/GenerateCommand.swift:121:32: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
119 |                         let content = response.response
120 |                         print(content, terminator: "")
121 |                         fflush(stdout)
    |                                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
122 |                         fullResponse += content
123 |                     }
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EnhancedChatCommand.swift:384:43: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
382 |             }
383 |
384 |             let stream = try await client.chat(
    |                                           |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                           `- note: sending task-isolated 'model' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
385 |                 messages: messages,
386 |                 model: model,
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/GenerateCommand.swift:109:47: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
107 |                 )
108 |
109 |                 let stream = try await client.generateText(
    |                                               |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                               |- note: sending 'model' to actor-isolated callee risks causing data races between actor-isolated and local nonisolated uses
    |                                               `- note: access can happen concurrently
110 |                     prompt: input,
111 |                     model: model,
[62/73] Compiling SwollamaCLI GenerateCommand.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EnhancedChatCommand.swift:162:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
160 |             terminator: ""
161 |         )
162 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
163 |
164 |         print("\r", terminator: "")
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EnhancedChatCommand.swift:367:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
365 |             terminator: ""
366 |         )
367 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
368 |
369 |         guard let client = client as? OllamaClient else {
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EnhancedChatCommand.swift:394:28: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
392 |                     let content = response.message.content
393 |                     print(content, terminator: "")
394 |                     fflush(stdout)
    |                            `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
395 |                     fullResponse += content
396 |                     tokenCount += 1
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/GenerateCommand.swift:95:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 93 |             printTimestamp()
 94 |             print("\(TerminalStyle.neonBlue)Generated:\(TerminalStyle.reset) ", terminator: "")
 95 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 96 |
 97 |             guard let client = client as? OllamaClient else {
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/GenerateCommand.swift:121:32: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
119 |                         let content = response.response
120 |                         print(content, terminator: "")
121 |                         fflush(stdout)
    |                                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
122 |                         fullResponse += content
123 |                     }
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EnhancedChatCommand.swift:384:43: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
382 |             }
383 |
384 |             let stream = try await client.chat(
    |                                           |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                           `- note: sending task-isolated 'model' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
385 |                 messages: messages,
386 |                 model: model,
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/GenerateCommand.swift:109:47: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
107 |                 )
108 |
109 |                 let stream = try await client.generateText(
    |                                               |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                               |- note: sending 'model' to actor-isolated callee risks causing data races between actor-isolated and local nonisolated uses
    |                                               `- note: access can happen concurrently
110 |                     prompt: input,
111 |                     model: model,
[63/73] Compiling SwollamaCLI ListModelsCommand.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EnhancedChatCommand.swift:162:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
160 |             terminator: ""
161 |         )
162 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
163 |
164 |         print("\r", terminator: "")
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EnhancedChatCommand.swift:367:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
365 |             terminator: ""
366 |         )
367 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
368 |
369 |         guard let client = client as? OllamaClient else {
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EnhancedChatCommand.swift:394:28: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
392 |                     let content = response.message.content
393 |                     print(content, terminator: "")
394 |                     fflush(stdout)
    |                            `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
395 |                     fullResponse += content
396 |                     tokenCount += 1
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/GenerateCommand.swift:95:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 93 |             printTimestamp()
 94 |             print("\(TerminalStyle.neonBlue)Generated:\(TerminalStyle.reset) ", terminator: "")
 95 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 96 |
 97 |             guard let client = client as? OllamaClient else {
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/GenerateCommand.swift:121:32: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
119 |                         let content = response.response
120 |                         print(content, terminator: "")
121 |                         fflush(stdout)
    |                                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
122 |                         fullResponse += content
123 |                     }
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EnhancedChatCommand.swift:384:43: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
382 |             }
383 |
384 |             let stream = try await client.chat(
    |                                           |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                           `- note: sending task-isolated 'model' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
385 |                 messages: messages,
386 |                 model: model,
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/GenerateCommand.swift:109:47: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
107 |                 )
108 |
109 |                 let stream = try await client.generateText(
    |                                               |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                               |- note: sending 'model' to actor-isolated callee risks causing data races between actor-isolated and local nonisolated uses
    |                                               `- note: access can happen concurrently
110 |                     prompt: input,
111 |                     model: model,
[64/73] Compiling SwollamaCLI ListRunningModelsCommand.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EnhancedChatCommand.swift:162:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
160 |             terminator: ""
161 |         )
162 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
163 |
164 |         print("\r", terminator: "")
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EnhancedChatCommand.swift:367:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
365 |             terminator: ""
366 |         )
367 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
368 |
369 |         guard let client = client as? OllamaClient else {
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EnhancedChatCommand.swift:394:28: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
392 |                     let content = response.message.content
393 |                     print(content, terminator: "")
394 |                     fflush(stdout)
    |                            `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
395 |                     fullResponse += content
396 |                     tokenCount += 1
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/GenerateCommand.swift:95:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 93 |             printTimestamp()
 94 |             print("\(TerminalStyle.neonBlue)Generated:\(TerminalStyle.reset) ", terminator: "")
 95 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 96 |
 97 |             guard let client = client as? OllamaClient else {
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/GenerateCommand.swift:121:32: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
119 |                         let content = response.response
120 |                         print(content, terminator: "")
121 |                         fflush(stdout)
    |                                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
122 |                         fullResponse += content
123 |                     }
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EnhancedChatCommand.swift:384:43: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
382 |             }
383 |
384 |             let stream = try await client.chat(
    |                                           |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                           `- note: sending task-isolated 'model' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
385 |                 messages: messages,
386 |                 model: model,
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/GenerateCommand.swift:109:47: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
107 |                 )
108 |
109 |                 let stream = try await client.generateText(
    |                                               |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                               |- note: sending 'model' to actor-isolated callee risks causing data races between actor-isolated and local nonisolated uses
    |                                               `- note: access can happen concurrently
110 |                     prompt: input,
111 |                     model: model,
[65/73] Compiling SwollamaCLI SwollamaCLI.swift
[66/73] Compiling SwollamaCLI CLIError.swift
[67/73] Compiling SwollamaCLI ModelFormatter.swift
[68/73] Compiling SwollamaCLI InputHandler.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:106:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
104 |     func readLine(prompt: String = "") -> String? {
105 |         print(prompt, terminator: "")
106 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
107 |
108 |         guard let input = Swift.readLine() else {
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:175:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
173 |     func readPassword(prompt: String = "Password: ") -> String? {
174 |         print(prompt, terminator: "")
175 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
176 |
177 |         #if os(Linux)
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:281:24: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
279 |                     terminator: ""
280 |                 )
281 |                 fflush(stdout)
    |                        `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
282 |                 currentFrame = (currentFrame + 1) % frames.count
283 |                 try? await Task.sleep(nanoseconds: 100_000_000)
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:286:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
284 |             }
285 |             print("\r\(String(repeating: " ", count: message.count + 4))\r", terminator: "")
286 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
287 |         }
288 |     }
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/LinuxSupport.swift:54:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 52 |         private static func cleanupBeforeExit() {
 53 |
 54 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 55 |             fflush(stderr)
 56 |
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/LinuxSupport.swift:55:20: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 53 |
 54 |             fflush(stdout)
 55 |             fflush(stderr)
    |                    `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 56 |
 57 |             print("\u{1B}[?25h")
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:5:16: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | struct StreamDebugger {
  5 |     static var isEnabled = false
    |                |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'isEnabled' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  6 |     static var logFile: FileHandle?
  7 |
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:6:16: warning: static property 'logFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  4 | struct StreamDebugger {
  5 |     static var isEnabled = false
  6 |     static var logFile: FileHandle?
    |                |- warning: static property 'logFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'logFile' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'logFile' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  7 |
  8 |     private static let dateFormatter: DateFormatter = {
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:121:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
118 | }
119 |
120 | class NetworkMonitor {
    |       `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
121 |     static let shared = NetworkMonitor()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 |     private var requestCount = 0
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:229:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
227 |         for try await response in monitoredStream {
228 |             print(response.response, terminator: "")
229 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
230 |         }
231 |         print()
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:252:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
250 |         for try await response in monitoredStream {
251 |             print(response.message.content, terminator: "")
252 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
253 |         }
254 |         print()
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:277:36: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
275 |                         for try await response in stream {
276 |                             print(response.message.content, terminator: "")
277 |                             fflush(stdout)
    |                                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
278 |                         }
279 |                     } catch {
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:275:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
273 |     func start() {
274 |         isRunning = true
275 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
276 |             while isRunning {
    |                   `- note: closure captures 'self' which is accessible to code in the current task
277 |                 print(
278 |                     "\r\(EnhancedTerminalStyle.neonBlue)\(frames[currentFrame])\(EnhancedTerminalStyle.reset) \(message)",
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:80:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 78 |     func monitoredStream() -> AsyncThrowingStream<T, Error> {
 79 |         AsyncThrowingStream { continuation in
 80 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 81 |                 do {
 82 |                     for try await value in stream {
    |                                            `- note: closure captures 'self' which is accessible to code in the current task
 83 |                         chunkCount += 1
 84 |
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:99:38: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
 97 |                         }
 98 |
 99 |                         continuation.yield(value)
    |                                      |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
100 |                     }
101 |
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:218:39: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
216 |         print("Prompt: \(prompt)")
217 |
218 |         let stream = try await client.generateText(
    |                                       |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending task-isolated 'model' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
219 |             prompt: prompt,
220 |             model: model,
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:241:39: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
239 |         print("Messages: \(messages[0].content)")
240 |
241 |         let stream = try await client.chat(
    |                                       |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending task-isolated 'model' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
242 |             messages: messages,
243 |             model: model,
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:262:31: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
260 |         await withTaskGroup(of: Void.self) { group in
261 |             for i in 1...3 {
262 |                 group.addTask {
    |                               `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
263 |                     do {
264 |                         let messages = [
    :
268 |                         let stream = try await client.chat(
269 |                             messages: messages,
270 |                             model: model,
    |                                    `- note: closure captures 'model' which is accessible to code in the current task
271 |                             options: .default
272 |                         )
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:268:55: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
266 |                         ]
267 |
268 |                         let stream = try await client.chat(
    |                                                       |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                                       `- note: sending task-isolated 'model' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
269 |                             messages: messages,
270 |                             model: model,
[69/73] Compiling SwollamaCLI LinuxSupport.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:106:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
104 |     func readLine(prompt: String = "") -> String? {
105 |         print(prompt, terminator: "")
106 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
107 |
108 |         guard let input = Swift.readLine() else {
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:175:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
173 |     func readPassword(prompt: String = "Password: ") -> String? {
174 |         print(prompt, terminator: "")
175 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
176 |
177 |         #if os(Linux)
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:281:24: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
279 |                     terminator: ""
280 |                 )
281 |                 fflush(stdout)
    |                        `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
282 |                 currentFrame = (currentFrame + 1) % frames.count
283 |                 try? await Task.sleep(nanoseconds: 100_000_000)
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:286:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
284 |             }
285 |             print("\r\(String(repeating: " ", count: message.count + 4))\r", terminator: "")
286 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
287 |         }
288 |     }
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/LinuxSupport.swift:54:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 52 |         private static func cleanupBeforeExit() {
 53 |
 54 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 55 |             fflush(stderr)
 56 |
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/LinuxSupport.swift:55:20: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 53 |
 54 |             fflush(stdout)
 55 |             fflush(stderr)
    |                    `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 56 |
 57 |             print("\u{1B}[?25h")
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:5:16: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | struct StreamDebugger {
  5 |     static var isEnabled = false
    |                |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'isEnabled' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  6 |     static var logFile: FileHandle?
  7 |
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:6:16: warning: static property 'logFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  4 | struct StreamDebugger {
  5 |     static var isEnabled = false
  6 |     static var logFile: FileHandle?
    |                |- warning: static property 'logFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'logFile' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'logFile' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  7 |
  8 |     private static let dateFormatter: DateFormatter = {
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:121:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
118 | }
119 |
120 | class NetworkMonitor {
    |       `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
121 |     static let shared = NetworkMonitor()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 |     private var requestCount = 0
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:229:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
227 |         for try await response in monitoredStream {
228 |             print(response.response, terminator: "")
229 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
230 |         }
231 |         print()
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:252:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
250 |         for try await response in monitoredStream {
251 |             print(response.message.content, terminator: "")
252 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
253 |         }
254 |         print()
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:277:36: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
275 |                         for try await response in stream {
276 |                             print(response.message.content, terminator: "")
277 |                             fflush(stdout)
    |                                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
278 |                         }
279 |                     } catch {
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:275:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
273 |     func start() {
274 |         isRunning = true
275 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
276 |             while isRunning {
    |                   `- note: closure captures 'self' which is accessible to code in the current task
277 |                 print(
278 |                     "\r\(EnhancedTerminalStyle.neonBlue)\(frames[currentFrame])\(EnhancedTerminalStyle.reset) \(message)",
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:80:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 78 |     func monitoredStream() -> AsyncThrowingStream<T, Error> {
 79 |         AsyncThrowingStream { continuation in
 80 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 81 |                 do {
 82 |                     for try await value in stream {
    |                                            `- note: closure captures 'self' which is accessible to code in the current task
 83 |                         chunkCount += 1
 84 |
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:99:38: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
 97 |                         }
 98 |
 99 |                         continuation.yield(value)
    |                                      |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
100 |                     }
101 |
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:218:39: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
216 |         print("Prompt: \(prompt)")
217 |
218 |         let stream = try await client.generateText(
    |                                       |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending task-isolated 'model' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
219 |             prompt: prompt,
220 |             model: model,
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:241:39: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
239 |         print("Messages: \(messages[0].content)")
240 |
241 |         let stream = try await client.chat(
    |                                       |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending task-isolated 'model' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
242 |             messages: messages,
243 |             model: model,
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:262:31: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
260 |         await withTaskGroup(of: Void.self) { group in
261 |             for i in 1...3 {
262 |                 group.addTask {
    |                               `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
263 |                     do {
264 |                         let messages = [
    :
268 |                         let stream = try await client.chat(
269 |                             messages: messages,
270 |                             model: model,
    |                                    `- note: closure captures 'model' which is accessible to code in the current task
271 |                             options: .default
272 |                         )
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:268:55: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
266 |                         ]
267 |
268 |                         let stream = try await client.chat(
    |                                                       |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                                       `- note: sending task-isolated 'model' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
269 |                             messages: messages,
270 |                             model: model,
[70/73] Compiling SwollamaCLI StreamDebugger.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:106:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
104 |     func readLine(prompt: String = "") -> String? {
105 |         print(prompt, terminator: "")
106 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
107 |
108 |         guard let input = Swift.readLine() else {
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:175:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
173 |     func readPassword(prompt: String = "Password: ") -> String? {
174 |         print(prompt, terminator: "")
175 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
176 |
177 |         #if os(Linux)
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:281:24: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
279 |                     terminator: ""
280 |                 )
281 |                 fflush(stdout)
    |                        `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
282 |                 currentFrame = (currentFrame + 1) % frames.count
283 |                 try? await Task.sleep(nanoseconds: 100_000_000)
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:286:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
284 |             }
285 |             print("\r\(String(repeating: " ", count: message.count + 4))\r", terminator: "")
286 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
287 |         }
288 |     }
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/LinuxSupport.swift:54:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 52 |         private static func cleanupBeforeExit() {
 53 |
 54 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 55 |             fflush(stderr)
 56 |
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/LinuxSupport.swift:55:20: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 53 |
 54 |             fflush(stdout)
 55 |             fflush(stderr)
    |                    `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 56 |
 57 |             print("\u{1B}[?25h")
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:5:16: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | struct StreamDebugger {
  5 |     static var isEnabled = false
    |                |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'isEnabled' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  6 |     static var logFile: FileHandle?
  7 |
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:6:16: warning: static property 'logFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  4 | struct StreamDebugger {
  5 |     static var isEnabled = false
  6 |     static var logFile: FileHandle?
    |                |- warning: static property 'logFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'logFile' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'logFile' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  7 |
  8 |     private static let dateFormatter: DateFormatter = {
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:121:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
118 | }
119 |
120 | class NetworkMonitor {
    |       `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
121 |     static let shared = NetworkMonitor()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 |     private var requestCount = 0
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:229:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
227 |         for try await response in monitoredStream {
228 |             print(response.response, terminator: "")
229 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
230 |         }
231 |         print()
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:252:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
250 |         for try await response in monitoredStream {
251 |             print(response.message.content, terminator: "")
252 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
253 |         }
254 |         print()
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:277:36: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
275 |                         for try await response in stream {
276 |                             print(response.message.content, terminator: "")
277 |                             fflush(stdout)
    |                                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
278 |                         }
279 |                     } catch {
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:275:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
273 |     func start() {
274 |         isRunning = true
275 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
276 |             while isRunning {
    |                   `- note: closure captures 'self' which is accessible to code in the current task
277 |                 print(
278 |                     "\r\(EnhancedTerminalStyle.neonBlue)\(frames[currentFrame])\(EnhancedTerminalStyle.reset) \(message)",
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:80:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 78 |     func monitoredStream() -> AsyncThrowingStream<T, Error> {
 79 |         AsyncThrowingStream { continuation in
 80 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 81 |                 do {
 82 |                     for try await value in stream {
    |                                            `- note: closure captures 'self' which is accessible to code in the current task
 83 |                         chunkCount += 1
 84 |
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:99:38: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
 97 |                         }
 98 |
 99 |                         continuation.yield(value)
    |                                      |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
100 |                     }
101 |
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:218:39: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
216 |         print("Prompt: \(prompt)")
217 |
218 |         let stream = try await client.generateText(
    |                                       |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending task-isolated 'model' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
219 |             prompt: prompt,
220 |             model: model,
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:241:39: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
239 |         print("Messages: \(messages[0].content)")
240 |
241 |         let stream = try await client.chat(
    |                                       |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending task-isolated 'model' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
242 |             messages: messages,
243 |             model: model,
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:262:31: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
260 |         await withTaskGroup(of: Void.self) { group in
261 |             for i in 1...3 {
262 |                 group.addTask {
    |                               `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
263 |                     do {
264 |                         let messages = [
    :
268 |                         let stream = try await client.chat(
269 |                             messages: messages,
270 |                             model: model,
    |                                    `- note: closure captures 'model' which is accessible to code in the current task
271 |                             options: .default
272 |                         )
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:268:55: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
266 |                         ]
267 |
268 |                         let stream = try await client.chat(
    |                                                       |- warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
    |                                                       `- note: sending task-isolated 'model' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
269 |                             messages: messages,
270 |                             model: model,
[71/74] Wrapping AST for SwollamaCLI for debugging
[72/74] Write Objects.LinkFileList
[73/74] Linking SwollamaCLI
Build complete! (11.50s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Swollama",
  "name" : "Swollama",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "ios",
      "version" : "17.0"
    }
  ],
  "products" : [
    {
      "name" : "Swollama",
      "targets" : [
        "Swollama"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SwollamaCLI",
      "targets" : [
        "SwollamaCLI"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwollamaTests",
      "module_type" : "SwiftTarget",
      "name" : "SwollamaTests",
      "path" : "Tests/SwollamaTests",
      "sources" : [
        "AgentTests.swift",
        "ConfigurationTests.swift",
        "DigestValidationTests.swift",
        "ErrorHandlingTests.swift",
        "ModelNameParsingTests.swift",
        "NewFeaturesTests.swift",
        "RetryLogicTests.swift",
        "StreamingBufferTests.swift",
        "SwollamaTests.swift"
      ],
      "target_dependencies" : [
        "Swollama"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwollamaCLI",
      "module_type" : "SwiftTarget",
      "name" : "SwollamaCLI",
      "path" : "Sources/SwollamaCLI",
      "product_memberships" : [
        "SwollamaCLI"
      ],
      "sources" : [
        "Commands/AgentCommand.swift",
        "Commands/BlobCommand.swift",
        "Commands/ChatCommand.swift",
        "Commands/CommandProtocol.swift",
        "Commands/CopyModelCommand.swift",
        "Commands/CreateCommand.swift",
        "Commands/DeleteModelCommand.swift",
        "Commands/EmbeddingsCommand.swift",
        "Commands/EnhancedChatCommand.swift",
        "Commands/GenerateCommand.swift",
        "Commands/ListModelsCommand.swift",
        "Commands/ListRunningModelsCommand.swift",
        "Commands/PullModelCommand.swift",
        "Commands/PushCommand.swift",
        "Commands/ShowModelCommand.swift",
        "Commands/TestCommand.swift",
        "Commands/VersionCommand.swift",
        "EnhancedSwollamaCLI.swift",
        "ErrorRecovery.swift",
        "InputHandler.swift",
        "LinuxSupport.swift",
        "StreamDebugger.swift",
        "SwollamaCLI.swift",
        "Tools/CLIError.swift",
        "Tools/ModelFormatter.swift",
        "Tools/ProgressTracker.swift",
        "Tools/SpeedCalculator.swift",
        "Tools/TerminalHelper.swift"
      ],
      "target_dependencies" : [
        "Swollama"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "Swollama",
      "module_type" : "SwiftTarget",
      "name" : "Swollama",
      "path" : "Sources/Swollama",
      "product_memberships" : [
        "Swollama",
        "SwollamaCLI"
      ],
      "sources" : [
        "Agent/AgentConfiguration.swift",
        "Agent/AgentEvent.swift",
        "Agent/OllamaAgent.swift",
        "ChatOptions.swift",
        "EmbeddingOptions.swift",
        "GenerationOptions.swift",
        "Models/ChatRequest.swift",
        "Models/ChatResponse.swift",
        "Models/CreateModelRequest.swift",
        "Models/EmbeddingRequest.swift",
        "Models/EmbeddingResponse.swift",
        "Models/GenerateRequest.swift",
        "Models/GenerateResponse.swift",
        "Models/ModelFamily.swift",
        "Models/ModelFormat.swift",
        "Models/ModelInformation.swift",
        "Models/ModelsResponse.swift",
        "Models/OllamaModelName.swift",
        "Models/OperationProgress.swift",
        "Models/QuantizationLevel.swift",
        "Models/RunningModelsResponse.swift",
        "Models/ShowModelRequest.swift",
        "Models/ToolCall.swift",
        "Models/ToolDefinition.swift",
        "Models/VersionResponse.swift",
        "NetworkingSupport+Streaming.swift",
        "NetworkingSupport.swift",
        "OllamaClient+Generation.swift",
        "OllamaClient+ModelManagement.swift",
        "OllamaClient.swift",
        "OllamaConfiguration.swift",
        "OllamaError.swift",
        "OllamaProtocol.swift",
        "WebSearch/OllamaWebSearchClient.swift",
        "WebSearch/WebSearchModels.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:808cb2b2a6cec76654a3acbd283c6c2205bc60d2b29562c95b9f5147612f6d32
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.