Build Information
Successful build of Swollama, reference 2.0.0 (21b4bc
), with Swift 6.1 for Linux on 28 Jun 2025 01:37:03 UTC.
Swift 6 data race errors: 20
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" 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
26 |
27 | 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
28 | name: OllamaModelName,
29 | options: PullOptions
:
160 |
161 | /// Options for pulling models
162 | public struct PullOptions {
| `- note: consider making struct 'PullOptions' conform to the 'Sendable' protocol
163 | /// Whether to allow insecure connections
164 | public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45: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
43 | }
44 |
45 | 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
46 | name: OllamaModelName,
47 | options: PushOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable 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
43 | }
44 |
45 | 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
46 | name: OllamaModelName,
47 | options: PushOptions
:
170 |
171 | /// Options for pushing models
172 | public struct PushOptions {
| `- note: consider making struct 'PushOptions' conform to the 'Sendable' protocol
173 | /// Whether to allow insecure connections
174 | public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68: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
66 | }
67 |
68 | 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
69 | source: OllamaModelName,
70 | destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable 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
66 | }
67 |
68 | 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
69 | source: OllamaModelName,
70 | destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:84:17: warning: non-sendable 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
82 | }
83 |
84 | 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
85 | let request = DeleteModelRequest(name: name.fullName)
86 | _ = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:42:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Configuration options for the Ollama client.
4 | public struct OllamaConfiguration {
| `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
5 | /// The timeout interval for requests in seconds
6 | public let timeoutInterval: TimeInterval
:
40 |
41 | /// The default configuration
42 | public static let `default` = OllamaConfiguration()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: 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
43 | }
44 |
[5/38] Compiling Swollama OllamaConfiguration.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:42:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Configuration options for the Ollama client.
4 | public struct OllamaConfiguration {
| `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
5 | /// The timeout interval for requests in seconds
6 | public let timeoutInterval: TimeInterval
:
40 |
41 | /// The default configuration
42 | public static let `default` = OllamaConfiguration()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: 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
43 | }
44 |
[6/38] Compiling Swollama OllamaError.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:42:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Configuration options for the Ollama client.
4 | public struct OllamaConfiguration {
| `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
5 | /// The timeout interval for requests in seconds
6 | public let timeoutInterval: TimeInterval
:
40 |
41 | /// The default configuration
42 | public static let `default` = OllamaConfiguration()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: 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
43 | }
44 |
[7/38] Compiling Swollama OllamaProtocol.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:42:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Configuration options for the Ollama client.
4 | public struct OllamaConfiguration {
| `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
5 | /// The timeout interval for requests in seconds
6 | public let timeoutInterval: TimeInterval
:
40 |
41 | /// The default configuration
42 | public static let `default` = OllamaConfiguration()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OllamaConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: 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
43 | }
44 |
[8/38] Compiling Swollama QuantizationLevel.swift
[9/38] Compiling Swollama RunningModelsResponse.swift
[10/38] Compiling Swollama ShowModelRequest.swift
[11/38] Compiling Swollama ToolCall.swift
[12/38] Compiling Swollama ChatResponse.swift
[13/38] Compiling Swollama CreateModelRequest.swift
[14/38] Compiling Swollama EmbeddingRequest.swift
[15/38] Compiling Swollama EmbeddingResponse.swift
[16/38] Compiling Swollama OllamaClient+Generation.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:9:12: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'OllamaConfiguration'; this is an error in the Swift 6 language mode
7 | public actor OllamaClient: OllamaProtocol {
8 | public let baseURL: URL
9 | 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
10 |
11 | private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:4:15: note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
2 |
3 | /// Configuration options for the Ollama client.
4 | public struct OllamaConfiguration {
| `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
5 | /// The timeout interval for requests in seconds
6 | public let timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:9: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
7 | public actor OllamaClient: OllamaProtocol {
8 | public let baseURL: URL
9 | 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
10 |
11 | private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:4:15: note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
2 |
3 | /// Configuration options for the Ollama client.
4 | public struct OllamaConfiguration {
| `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
5 | /// The timeout interval for requests in seconds
6 | public let timeoutInterval: TimeInterval
/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 -> ModelInformation {
| `- 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 | let request = ShowModelRequest(model: name.fullName, verbose: verbose)
13 | let data = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable 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
25 | }
26 |
27 | 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
28 | name: OllamaModelName,
29 | options: PullOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable 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
25 | }
26 |
27 | 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
28 | name: OllamaModelName,
29 | options: PullOptions
:
160 |
161 | /// Options for pulling models
162 | public struct PullOptions {
| `- note: consider making struct 'PullOptions' conform to the 'Sendable' protocol
163 | /// Whether to allow insecure connections
164 | public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45: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
43 | }
44 |
45 | 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
46 | name: OllamaModelName,
47 | options: PushOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable 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
43 | }
44 |
45 | 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
46 | name: OllamaModelName,
47 | options: PushOptions
:
170 |
171 | /// Options for pushing models
172 | public struct PushOptions {
| `- note: consider making struct 'PushOptions' conform to the 'Sendable' protocol
173 | /// Whether to allow insecure connections
174 | public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68: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
66 | }
67 |
68 | 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
69 | source: OllamaModelName,
70 | destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable 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
66 | }
67 |
68 | 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
69 | source: OllamaModelName,
70 | destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:84:17: warning: non-sendable 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
82 | }
83 |
84 | 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
85 | let request = DeleteModelRequest(name: name.fullName)
86 | _ = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
[17/38] Compiling Swollama OllamaClient+ModelManagement.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:9:12: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'OllamaConfiguration'; this is an error in the Swift 6 language mode
7 | public actor OllamaClient: OllamaProtocol {
8 | public let baseURL: URL
9 | 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
10 |
11 | private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:4:15: note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
2 |
3 | /// Configuration options for the Ollama client.
4 | public struct OllamaConfiguration {
| `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
5 | /// The timeout interval for requests in seconds
6 | public let timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:9: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
7 | public actor OllamaClient: OllamaProtocol {
8 | public let baseURL: URL
9 | 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
10 |
11 | private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:4:15: note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
2 |
3 | /// Configuration options for the Ollama client.
4 | public struct OllamaConfiguration {
| `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
5 | /// The timeout interval for requests in seconds
6 | public let timeoutInterval: TimeInterval
/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 -> ModelInformation {
| `- 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 | let request = ShowModelRequest(model: name.fullName, verbose: verbose)
13 | let data = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable 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
25 | }
26 |
27 | 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
28 | name: OllamaModelName,
29 | options: PullOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable 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
25 | }
26 |
27 | 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
28 | name: OllamaModelName,
29 | options: PullOptions
:
160 |
161 | /// Options for pulling models
162 | public struct PullOptions {
| `- note: consider making struct 'PullOptions' conform to the 'Sendable' protocol
163 | /// Whether to allow insecure connections
164 | public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45: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
43 | }
44 |
45 | 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
46 | name: OllamaModelName,
47 | options: PushOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable 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
43 | }
44 |
45 | 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
46 | name: OllamaModelName,
47 | options: PushOptions
:
170 |
171 | /// Options for pushing models
172 | public struct PushOptions {
| `- note: consider making struct 'PushOptions' conform to the 'Sendable' protocol
173 | /// Whether to allow insecure connections
174 | public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68: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
66 | }
67 |
68 | 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
69 | source: OllamaModelName,
70 | destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable 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
66 | }
67 |
68 | 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
69 | source: OllamaModelName,
70 | destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:84:17: warning: non-sendable 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
82 | }
83 |
84 | 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
85 | let request = DeleteModelRequest(name: name.fullName)
86 | _ = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
[18/38] Compiling Swollama OllamaClient.swift
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:9:12: warning: 'nonisolated' can not be applied to variable with non-'Sendable' type 'OllamaConfiguration'; this is an error in the Swift 6 language mode
7 | public actor OllamaClient: OllamaProtocol {
8 | public let baseURL: URL
9 | 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
10 |
11 | private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:4:15: note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
2 |
3 | /// Configuration options for the Ollama client.
4 | public struct OllamaConfiguration {
| `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
5 | /// The timeout interval for requests in seconds
6 | public let timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Swollama/OllamaClient.swift:9: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
7 | public actor OllamaClient: OllamaProtocol {
8 | public let baseURL: URL
9 | 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
10 |
11 | private let session: URLSession
/host/spi-builder-workspace/Sources/Swollama/OllamaConfiguration.swift:4:15: note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
2 |
3 | /// Configuration options for the Ollama client.
4 | public struct OllamaConfiguration {
| `- note: consider making struct 'OllamaConfiguration' conform to the 'Sendable' protocol
5 | /// The timeout interval for requests in seconds
6 | public let timeoutInterval: TimeInterval
/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 -> ModelInformation {
| `- 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 | let request = ShowModelRequest(model: name.fullName, verbose: verbose)
13 | let data = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable 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
25 | }
26 |
27 | 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
28 | name: OllamaModelName,
29 | options: PullOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:27:17: warning: non-sendable 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
25 | }
26 |
27 | 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
28 | name: OllamaModelName,
29 | options: PullOptions
:
160 |
161 | /// Options for pulling models
162 | public struct PullOptions {
| `- note: consider making struct 'PullOptions' conform to the 'Sendable' protocol
163 | /// Whether to allow insecure connections
164 | public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45: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
43 | }
44 |
45 | 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
46 | name: OllamaModelName,
47 | options: PushOptions
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:45:17: warning: non-sendable 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
43 | }
44 |
45 | 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
46 | name: OllamaModelName,
47 | options: PushOptions
:
170 |
171 | /// Options for pushing models
172 | public struct PushOptions {
| `- note: consider making struct 'PushOptions' conform to the 'Sendable' protocol
173 | /// Whether to allow insecure connections
174 | public let allowInsecure: Bool
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68: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
66 | }
67 |
68 | 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
69 | source: OllamaModelName,
70 | destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:68:17: warning: non-sendable 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
66 | }
67 |
68 | 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
69 | source: OllamaModelName,
70 | destination: OllamaModelName
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
/host/spi-builder-workspace/Sources/Swollama/OllamaClient+ModelManagement.swift:84:17: warning: non-sendable 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
82 | }
83 |
84 | 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
85 | let request = DeleteModelRequest(name: name.fullName)
86 | _ = try await makeRequest(
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: consider making struct 'OllamaModelName' conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | public let namespace: String?
[19/38] Compiling Swollama ChatOptions.swift
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:25:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for chat completion
4 | public struct ChatOptions {
| `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
5 | public let tools: [ToolDefinition]?
6 | public let format: ResponseFormat?
:
23 | }
24 |
25 | 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
26 | }
27 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:19:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for embedding generation
4 | public struct EmbeddingOptions {
| `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
5 | public let truncate: Bool?
6 | public let modelOptions: ModelOptions?
:
17 | }
18 |
19 | public static let `default` = EmbeddingOptions()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: 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
20 | }
21 |
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:40:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for text generation
4 | public struct GenerationOptions {
| `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
5 | public let suffix: String?
6 | public let images: [String]?
:
38 | }
39 |
40 | 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
41 | }
42 |
[20/38] Compiling Swollama EmbeddingOptions.swift
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:25:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for chat completion
4 | public struct ChatOptions {
| `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
5 | public let tools: [ToolDefinition]?
6 | public let format: ResponseFormat?
:
23 | }
24 |
25 | 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
26 | }
27 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:19:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for embedding generation
4 | public struct EmbeddingOptions {
| `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
5 | public let truncate: Bool?
6 | public let modelOptions: ModelOptions?
:
17 | }
18 |
19 | public static let `default` = EmbeddingOptions()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: 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
20 | }
21 |
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:40:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for text generation
4 | public struct GenerationOptions {
| `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
5 | public let suffix: String?
6 | public let images: [String]?
:
38 | }
39 |
40 | 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
41 | }
42 |
[21/38] Compiling Swollama GenerationOptions.swift
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:25:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for chat completion
4 | public struct ChatOptions {
| `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
5 | public let tools: [ToolDefinition]?
6 | public let format: ResponseFormat?
:
23 | }
24 |
25 | 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
26 | }
27 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:19:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for embedding generation
4 | public struct EmbeddingOptions {
| `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
5 | public let truncate: Bool?
6 | public let modelOptions: ModelOptions?
:
17 | }
18 |
19 | public static let `default` = EmbeddingOptions()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: 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
20 | }
21 |
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:40:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for text generation
4 | public struct GenerationOptions {
| `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
5 | public let suffix: String?
6 | public let images: [String]?
:
38 | }
39 |
40 | 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
41 | }
42 |
[22/38] Compiling Swollama ChatRequest.swift
/host/spi-builder-workspace/Sources/Swollama/ChatOptions.swift:25:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ChatOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for chat completion
4 | public struct ChatOptions {
| `- note: consider making struct 'ChatOptions' conform to the 'Sendable' protocol
5 | public let tools: [ToolDefinition]?
6 | public let format: ResponseFormat?
:
23 | }
24 |
25 | 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
26 | }
27 |
/host/spi-builder-workspace/Sources/Swollama/EmbeddingOptions.swift:19:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for embedding generation
4 | public struct EmbeddingOptions {
| `- note: consider making struct 'EmbeddingOptions' conform to the 'Sendable' protocol
5 | public let truncate: Bool?
6 | public let modelOptions: ModelOptions?
:
17 | }
18 |
19 | public static let `default` = EmbeddingOptions()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EmbeddingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: 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
20 | }
21 |
/host/spi-builder-workspace/Sources/Swollama/GenerationOptions.swift:40:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GenerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Options for text generation
4 | public struct GenerationOptions {
| `- note: consider making struct 'GenerationOptions' conform to the 'Sendable' protocol
5 | public let suffix: String?
6 | public let images: [String]?
:
38 | }
39 |
40 | 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
41 | }
42 |
[23/38] Compiling Swollama GenerateRequest.swift
[24/38] Compiling Swollama GenerateResponse.swift
[25/38] Compiling Swollama ModelFamily.swift
[26/38] Compiling Swollama ModelFormat.swift
[27/38] Compiling Swollama ModelInformation.swift
[28/38] Compiling Swollama ModelsResponse.swift
[29/38] Compiling Swollama OllamaModelName.swift
[30/38] Compiling Swollama OperationProgress.swift
[31/38] Compiling Swollama ToolDefinition.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:73:21: warning: variable 'httpResponse' was written to, but never read
71 | var headerData = Data()
72 | var headersParsed = false
73 | var httpResponse: HTTPURLResponse?
| `- warning: variable 'httpResponse' was written to, but never read
74 |
75 | // Read data in chunks
[32/38] Compiling Swollama VersionResponse.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:73:21: warning: variable 'httpResponse' was written to, but never read
71 | var headerData = Data()
72 | var headersParsed = false
73 | var httpResponse: HTTPURLResponse?
| `- warning: variable 'httpResponse' was written to, but never read
74 |
75 | // Read data in chunks
[33/38] Compiling Swollama NetworkingSupport+Streaming.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:73:21: warning: variable 'httpResponse' was written to, but never read
71 | var headerData = Data()
72 | var headersParsed = false
73 | var httpResponse: HTTPURLResponse?
| `- warning: variable 'httpResponse' was written to, but never read
74 |
75 | // Read data in chunks
[34/38] Compiling Swollama NetworkingSupport.swift
/host/spi-builder-workspace/Sources/Swollama/NetworkingSupport+Streaming.swift:73:21: warning: variable 'httpResponse' was written to, but never read
71 | var headerData = Data()
72 | var headersParsed = false
73 | var httpResponse: HTTPURLResponse?
| `- warning: variable 'httpResponse' was written to, but never read
74 |
75 | // Read data in chunks
[35/39] Wrapping AST for Swollama for debugging
[37/64] Emitting module SwollamaCLI
/host/spi-builder-workspace/Sources/SwollamaCLI/ErrorRecovery.swift:149: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
147 | // Recovery errors
148 | enum RecoveryError: LocalizedError {
149 | 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
150 | case hostSwitchRequired(host: String)
151 | case reconnectFailed
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: struct 'OllamaModelName' does not conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: struct 'OllamaModelName' does not conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | 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 | // Error recovery strategies
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:6: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
4 | // Stream debugging utilities
5 | struct StreamDebugger {
6 | 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
7 | static var logFile: FileHandle?
8 |
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:7: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
5 | struct StreamDebugger {
6 | static var isEnabled = false
7 | 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
8 |
9 | private static let dateFormatter: DateFormatter = {
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:125: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
122 |
123 | // Network traffic monitor
124 | class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
125 | 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
126 |
127 | private var requestCount = 0
/host/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:200: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
198 | /// Cached terminal helper for better performance
199 | class CachedTerminalHelper: TerminalHelper {
200 | 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
201 | private static var lastCheck: Date?
202 | private static let cacheDuration: TimeInterval = 1.0
/host/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:201: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
199 | class CachedTerminalHelper: TerminalHelper {
200 | private static var cachedWidth: Int?
201 | 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
202 | private static let cacheDuration: TimeInterval = 1.0
203 |
[38/67] Compiling SwollamaCLI SwollamaCLI.swift
[39/67] Compiling SwollamaCLI CLIError.swift
[40/67] Compiling SwollamaCLI ModelFormatter.swift
[41/67] Compiling SwollamaCLI GenerateCommand.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/GenerateCommand.swift:77: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
75 | printTimestamp()
76 | print("\(TerminalStyle.neonBlue)Generated:\(TerminalStyle.reset) ", terminator: "")
77 | 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
78 |
79 | 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:101: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
99 | let content = response.response
100 | print(content, terminator: "")
101 | 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
102 | fullResponse += content
103 | }
/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:89:47: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
87 | )
88 |
89 | 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
90 | prompt: input,
91 | model: model,
[42/67] Compiling SwollamaCLI ListModelsCommand.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/GenerateCommand.swift:77: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
75 | printTimestamp()
76 | print("\(TerminalStyle.neonBlue)Generated:\(TerminalStyle.reset) ", terminator: "")
77 | 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
78 |
79 | 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:101: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
99 | let content = response.response
100 | print(content, terminator: "")
101 | 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
102 | fullResponse += content
103 | }
/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:89:47: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
87 | )
88 |
89 | 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
90 | prompt: input,
91 | model: model,
[43/67] Compiling SwollamaCLI ListRunningModelsCommand.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/GenerateCommand.swift:77: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
75 | printTimestamp()
76 | print("\(TerminalStyle.neonBlue)Generated:\(TerminalStyle.reset) ", terminator: "")
77 | 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
78 |
79 | 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:101: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
99 | let content = response.response
100 | print(content, terminator: "")
101 | 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
102 | fullResponse += content
103 | }
/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:89:47: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
87 | )
88 |
89 | 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
90 | prompt: input,
91 | model: model,
[44/67] Compiling SwollamaCLI PullModelCommand.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/GenerateCommand.swift:77: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
75 | printTimestamp()
76 | print("\(TerminalStyle.neonBlue)Generated:\(TerminalStyle.reset) ", terminator: "")
77 | 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
78 |
79 | 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:101: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
99 | let content = response.response
100 | print(content, terminator: "")
101 | 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
102 | fullResponse += content
103 | }
/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:89:47: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
87 | )
88 |
89 | 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
90 | prompt: input,
91 | model: model,
[45/67] Compiling SwollamaCLI VersionCommand.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/EnhancedSwollamaCLI.swift:290: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
288 | print("\u{001B}[?25h", terminator: "")
289 |
290 | 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
291 | }
292 | }
/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:149: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
147 | // Recovery errors
148 | enum RecoveryError: LocalizedError {
149 | 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
150 | case hostSwitchRequired(host: String)
151 | case reconnectFailed
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: struct 'OllamaModelName' does not conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: struct 'OllamaModelName' does not conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | 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 | // Error recovery strategies
/host/spi-builder-workspace/Sources/SwollamaCLI/ErrorRecovery.swift:233:39: warning: sending 'self.currentModel' risks causing data races; this is an error in the Swift 6 language mode
231 | }
232 |
233 | 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
234 | messages: messages,
235 | 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 | }
[46/67] Compiling SwollamaCLI EnhancedSwollamaCLI.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/EnhancedSwollamaCLI.swift:290: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
288 | print("\u{001B}[?25h", terminator: "")
289 |
290 | 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
291 | }
292 | }
/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:149: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
147 | // Recovery errors
148 | enum RecoveryError: LocalizedError {
149 | 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
150 | case hostSwitchRequired(host: String)
151 | case reconnectFailed
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: struct 'OllamaModelName' does not conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: struct 'OllamaModelName' does not conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | 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 | // Error recovery strategies
/host/spi-builder-workspace/Sources/SwollamaCLI/ErrorRecovery.swift:233:39: warning: sending 'self.currentModel' risks causing data races; this is an error in the Swift 6 language mode
231 | }
232 |
233 | 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
234 | messages: messages,
235 | 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 | }
[47/67] Compiling SwollamaCLI ErrorRecovery.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/EnhancedSwollamaCLI.swift:290: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
288 | print("\u{001B}[?25h", terminator: "")
289 |
290 | 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
291 | }
292 | }
/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:149: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
147 | // Recovery errors
148 | enum RecoveryError: LocalizedError {
149 | 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
150 | case hostSwitchRequired(host: String)
151 | case reconnectFailed
/host/spi-builder-workspace/Sources/Swollama/Models/OllamaModelName.swift:4:15: note: struct 'OllamaModelName' does not conform to the 'Sendable' protocol
2 |
3 | /// A type-safe representation of an Ollama model name
4 | public struct OllamaModelName {
| `- note: struct 'OllamaModelName' does not conform to the 'Sendable' protocol
5 | /// The namespace of the model (optional)
6 | 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 | // Error recovery strategies
/host/spi-builder-workspace/Sources/SwollamaCLI/ErrorRecovery.swift:233:39: warning: sending 'self.currentModel' risks causing data races; this is an error in the Swift 6 language mode
231 | }
232 |
233 | 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
234 | messages: messages,
235 | 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 | }
[48/67] Compiling SwollamaCLI ProgressTracker.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:200: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
198 | /// Cached terminal helper for better performance
199 | class CachedTerminalHelper: TerminalHelper {
200 | 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
201 | private static var lastCheck: Date?
202 | private static let cacheDuration: TimeInterval = 1.0
/host/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:201: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
199 | class CachedTerminalHelper: TerminalHelper {
200 | private static var cachedWidth: Int?
201 | 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
202 | private static let cacheDuration: TimeInterval = 1.0
203 |
/host/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:174: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
172 | // Use more efficient terminal update
173 | print("\r\u{1B}[K\(progressBar)", terminator: "")
174 | 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
175 | }
176 |
/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. */
[49/67] Compiling SwollamaCLI SpeedCalculator.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:200: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
198 | /// Cached terminal helper for better performance
199 | class CachedTerminalHelper: TerminalHelper {
200 | 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
201 | private static var lastCheck: Date?
202 | private static let cacheDuration: TimeInterval = 1.0
/host/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:201: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
199 | class CachedTerminalHelper: TerminalHelper {
200 | private static var cachedWidth: Int?
201 | 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
202 | private static let cacheDuration: TimeInterval = 1.0
203 |
/host/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:174: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
172 | // Use more efficient terminal update
173 | print("\r\u{1B}[K\(progressBar)", terminator: "")
174 | 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
175 | }
176 |
/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. */
[50/67] Compiling SwollamaCLI TerminalHelper.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:200: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
198 | /// Cached terminal helper for better performance
199 | class CachedTerminalHelper: TerminalHelper {
200 | 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
201 | private static var lastCheck: Date?
202 | private static let cacheDuration: TimeInterval = 1.0
/host/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:201: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
199 | class CachedTerminalHelper: TerminalHelper {
200 | private static var cachedWidth: Int?
201 | 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
202 | private static let cacheDuration: TimeInterval = 1.0
203 |
/host/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:174: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
172 | // Use more efficient terminal update
173 | print("\r\u{1B}[K\(progressBar)", terminator: "")
174 | 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
175 | }
176 |
/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. */
[51/67] Compiling SwollamaCLI CreateCommand.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EmbeddingsCommand.swift:152:36: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
150 | print("# Embeddings CSV Output")
151 | print("# Model: \(response.model)")
152 | print("# Total Duration: \(response.totalDuration)ns")
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
153 | print("# Dimensions: \(response.embeddings.first?.count ?? 0)")
154 | print("")
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EmbeddingsCommand.swift:166:34: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
164 | print("Embeddings: \(response.embeddings.count)")
165 | print("Dimensions: \(response.embeddings.first?.count ?? 0)")
166 | print("Total Duration: \(response.totalDuration)ns")
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
167 | print("Load Duration: \(response.loadDuration)ns")
168 | print("Prompt Eval Count: \(response.promptEvalCount)")
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EmbeddingsCommand.swift:167:33: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
165 | print("Dimensions: \(response.embeddings.first?.count ?? 0)")
166 | print("Total Duration: \(response.totalDuration)ns")
167 | print("Load Duration: \(response.loadDuration)ns")
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
168 | print("Prompt Eval Count: \(response.promptEvalCount)")
169 | print("")
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EmbeddingsCommand.swift:168:37: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
166 | print("Total Duration: \(response.totalDuration)ns")
167 | print("Load Duration: \(response.loadDuration)ns")
168 | print("Prompt Eval Count: \(response.promptEvalCount)")
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
169 | print("")
170 |
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EnhancedChatCommand.swift:124: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
122 | private func printTypingIndicator() {
123 | print("\(EnhancedTerminalStyle.dim)\(configuration.streamingIndicator)\(EnhancedTerminalStyle.reset)", terminator: "")
124 | 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
125 | // Clear the indicator
126 | 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:322: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
320 | printTimestamp()
321 | print("\(EnhancedTerminalStyle.neonBlue)Assistant:\(EnhancedTerminalStyle.reset) ", terminator: "")
322 | 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
323 |
324 | 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:350: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
348 | let content = response.message.content
349 | print(content, terminator: "")
350 | 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
351 | fullResponse += content
352 | 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/EnhancedChatCommand.swift:340:43: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
338 | }
339 |
340 | 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
341 | messages: messages,
342 | model: model,
[52/67] Compiling SwollamaCLI DeleteModelCommand.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EmbeddingsCommand.swift:152:36: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
150 | print("# Embeddings CSV Output")
151 | print("# Model: \(response.model)")
152 | print("# Total Duration: \(response.totalDuration)ns")
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
153 | print("# Dimensions: \(response.embeddings.first?.count ?? 0)")
154 | print("")
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EmbeddingsCommand.swift:166:34: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
164 | print("Embeddings: \(response.embeddings.count)")
165 | print("Dimensions: \(response.embeddings.first?.count ?? 0)")
166 | print("Total Duration: \(response.totalDuration)ns")
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
167 | print("Load Duration: \(response.loadDuration)ns")
168 | print("Prompt Eval Count: \(response.promptEvalCount)")
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EmbeddingsCommand.swift:167:33: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
165 | print("Dimensions: \(response.embeddings.first?.count ?? 0)")
166 | print("Total Duration: \(response.totalDuration)ns")
167 | print("Load Duration: \(response.loadDuration)ns")
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
168 | print("Prompt Eval Count: \(response.promptEvalCount)")
169 | print("")
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EmbeddingsCommand.swift:168:37: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
166 | print("Total Duration: \(response.totalDuration)ns")
167 | print("Load Duration: \(response.loadDuration)ns")
168 | print("Prompt Eval Count: \(response.promptEvalCount)")
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
169 | print("")
170 |
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EnhancedChatCommand.swift:124: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
122 | private func printTypingIndicator() {
123 | print("\(EnhancedTerminalStyle.dim)\(configuration.streamingIndicator)\(EnhancedTerminalStyle.reset)", terminator: "")
124 | 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
125 | // Clear the indicator
126 | 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:322: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
320 | printTimestamp()
321 | print("\(EnhancedTerminalStyle.neonBlue)Assistant:\(EnhancedTerminalStyle.reset) ", terminator: "")
322 | 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
323 |
324 | 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:350: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
348 | let content = response.message.content
349 | print(content, terminator: "")
350 | 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
351 | fullResponse += content
352 | 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/EnhancedChatCommand.swift:340:43: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
338 | }
339 |
340 | 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
341 | messages: messages,
342 | model: model,
[53/67] Compiling SwollamaCLI EmbeddingsCommand.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EmbeddingsCommand.swift:152:36: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
150 | print("# Embeddings CSV Output")
151 | print("# Model: \(response.model)")
152 | print("# Total Duration: \(response.totalDuration)ns")
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
153 | print("# Dimensions: \(response.embeddings.first?.count ?? 0)")
154 | print("")
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EmbeddingsCommand.swift:166:34: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
164 | print("Embeddings: \(response.embeddings.count)")
165 | print("Dimensions: \(response.embeddings.first?.count ?? 0)")
166 | print("Total Duration: \(response.totalDuration)ns")
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
167 | print("Load Duration: \(response.loadDuration)ns")
168 | print("Prompt Eval Count: \(response.promptEvalCount)")
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EmbeddingsCommand.swift:167:33: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
165 | print("Dimensions: \(response.embeddings.first?.count ?? 0)")
166 | print("Total Duration: \(response.totalDuration)ns")
167 | print("Load Duration: \(response.loadDuration)ns")
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
168 | print("Prompt Eval Count: \(response.promptEvalCount)")
169 | print("")
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EmbeddingsCommand.swift:168:37: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
166 | print("Total Duration: \(response.totalDuration)ns")
167 | print("Load Duration: \(response.loadDuration)ns")
168 | print("Prompt Eval Count: \(response.promptEvalCount)")
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
169 | print("")
170 |
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EnhancedChatCommand.swift:124: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
122 | private func printTypingIndicator() {
123 | print("\(EnhancedTerminalStyle.dim)\(configuration.streamingIndicator)\(EnhancedTerminalStyle.reset)", terminator: "")
124 | 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
125 | // Clear the indicator
126 | 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:322: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
320 | printTimestamp()
321 | print("\(EnhancedTerminalStyle.neonBlue)Assistant:\(EnhancedTerminalStyle.reset) ", terminator: "")
322 | 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
323 |
324 | 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:350: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
348 | let content = response.message.content
349 | print(content, terminator: "")
350 | 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
351 | fullResponse += content
352 | 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/EnhancedChatCommand.swift:340:43: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
338 | }
339 |
340 | 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
341 | messages: messages,
342 | model: model,
[54/67] Compiling SwollamaCLI EnhancedChatCommand.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EmbeddingsCommand.swift:152:36: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
150 | print("# Embeddings CSV Output")
151 | print("# Model: \(response.model)")
152 | print("# Total Duration: \(response.totalDuration)ns")
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
153 | print("# Dimensions: \(response.embeddings.first?.count ?? 0)")
154 | print("")
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EmbeddingsCommand.swift:166:34: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
164 | print("Embeddings: \(response.embeddings.count)")
165 | print("Dimensions: \(response.embeddings.first?.count ?? 0)")
166 | print("Total Duration: \(response.totalDuration)ns")
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
167 | print("Load Duration: \(response.loadDuration)ns")
168 | print("Prompt Eval Count: \(response.promptEvalCount)")
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EmbeddingsCommand.swift:167:33: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
165 | print("Dimensions: \(response.embeddings.first?.count ?? 0)")
166 | print("Total Duration: \(response.totalDuration)ns")
167 | print("Load Duration: \(response.loadDuration)ns")
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
168 | print("Prompt Eval Count: \(response.promptEvalCount)")
169 | print("")
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EmbeddingsCommand.swift:168:37: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
166 | print("Total Duration: \(response.totalDuration)ns")
167 | print("Load Duration: \(response.loadDuration)ns")
168 | print("Prompt Eval Count: \(response.promptEvalCount)")
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
169 | print("")
170 |
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/EnhancedChatCommand.swift:124: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
122 | private func printTypingIndicator() {
123 | print("\(EnhancedTerminalStyle.dim)\(configuration.streamingIndicator)\(EnhancedTerminalStyle.reset)", terminator: "")
124 | 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
125 | // Clear the indicator
126 | 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:322: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
320 | printTimestamp()
321 | print("\(EnhancedTerminalStyle.neonBlue)Assistant:\(EnhancedTerminalStyle.reset) ", terminator: "")
322 | 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
323 |
324 | 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:350: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
348 | let content = response.message.content
349 | print(content, terminator: "")
350 | 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
351 | fullResponse += content
352 | 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/EnhancedChatCommand.swift:340:43: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
338 | }
339 |
340 | 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
341 | messages: messages,
342 | model: model,
[55/67] Compiling SwollamaCLI BlobCommand.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/ChatCommand.swift:99: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
97 | printTimestamp()
98 | print("\(TerminalStyle.neonBlue)Assistant:\(TerminalStyle.reset) ", terminator: "")
99 | 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
100 |
101 | 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:119: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
117 | let content = response.message.content
118 | print(content, terminator: "")
119 | 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
120 | fullResponse += content
121 | }
/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:107:47: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
105 |
106 | do {
107 | 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
108 | messages: messages,
109 | model: model,
[56/67] Compiling SwollamaCLI ChatCommand.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/ChatCommand.swift:99: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
97 | printTimestamp()
98 | print("\(TerminalStyle.neonBlue)Assistant:\(TerminalStyle.reset) ", terminator: "")
99 | 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
100 |
101 | 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:119: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
117 | let content = response.message.content
118 | print(content, terminator: "")
119 | 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
120 | fullResponse += content
121 | }
/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:107:47: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
105 |
106 | do {
107 | 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
108 | messages: messages,
109 | model: model,
[57/67] Compiling SwollamaCLI CommandProtocol.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/ChatCommand.swift:99: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
97 | printTimestamp()
98 | print("\(TerminalStyle.neonBlue)Assistant:\(TerminalStyle.reset) ", terminator: "")
99 | 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
100 |
101 | 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:119: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
117 | let content = response.message.content
118 | print(content, terminator: "")
119 | 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
120 | fullResponse += content
121 | }
/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:107:47: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
105 |
106 | do {
107 | 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
108 | messages: messages,
109 | model: model,
[58/67] Compiling SwollamaCLI CopyModelCommand.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/Commands/ChatCommand.swift:99: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
97 | printTimestamp()
98 | print("\(TerminalStyle.neonBlue)Assistant:\(TerminalStyle.reset) ", terminator: "")
99 | 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
100 |
101 | 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:119: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
117 | let content = response.message.content
118 | print(content, terminator: "")
119 | 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
120 | fullResponse += content
121 | }
/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:107:47: warning: sending 'model' risks causing data races; this is an error in the Swift 6 language mode
105 |
106 | do {
107 | 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
108 | messages: messages,
109 | model: model,
[59/67] Compiling SwollamaCLI InputHandler.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:100:13: warning: initialization of variable 'originalTermios' was never used; consider replacing with assignment to '_' or removing it
98 |
99 | // Save original settings
100 | var originalTermios = termios
| `- warning: initialization of variable 'originalTermios' was never used; consider replacing with assignment to '_' or removing it
101 |
102 | // Modify settings for raw mode
/host/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:124: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
122 | func readLine(prompt: String = "") -> String? {
123 | print(prompt, terminator: "")
124 | 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
125 |
126 | // For now, use standard readLine
/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:203: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
201 | func readPassword(prompt: String = "Password: ") -> String? {
202 | print(prompt, terminator: "")
203 | 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
204 |
205 | #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:308: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
306 | while isRunning {
307 | print("\r\(EnhancedTerminalStyle.neonBlue)\(frames[currentFrame])\(EnhancedTerminalStyle.reset) \(message)", terminator: "")
308 | 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
309 | currentFrame = (currentFrame + 1) % frames.count
310 | try? await Task.sleep(nanoseconds: 100_000_000) // 0.1 seconds
/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:313: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
311 | }
312 | print("\r\(String(repeating: " ", count: message.count + 4))\r", terminator: "")
313 | 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
314 | }
315 | }
/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:71: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
69 | private static func cleanupBeforeExit() {
70 | // Flush stdout to ensure all output is written
71 | 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
72 | fflush(stderr)
73 |
/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:72:16: 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
70 | // Flush stdout to ensure all output is written
71 | fflush(stdout)
72 | 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
73 |
74 | // Reset terminal state if needed
/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:6: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
4 | // Stream debugging utilities
5 | struct StreamDebugger {
6 | 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
7 | static var logFile: FileHandle?
8 |
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:7: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
5 | struct StreamDebugger {
6 | static var isEnabled = false
7 | 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
8 |
9 | private static let dateFormatter: DateFormatter = {
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:125: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
122 |
123 | // Network traffic monitor
124 | class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
125 | 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
126 |
127 | private var requestCount = 0
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:20:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
18 | if enabled, let logPath = logPath {
19 | let url = URL(fileURLWithPath: logPath)
20 | FileManager.default.createFile(atPath: logPath, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
21 | logFile = try? FileHandle(forWritingTo: url)
22 | }
/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:305: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
303 | func start() {
304 | isRunning = true
305 | 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
306 | while isRunning {
| `- note: closure captures 'self' which is accessible to code in the current task
307 | print("\r\(EnhancedTerminalStyle.neonBlue)\(frames[currentFrame])\(EnhancedTerminalStyle.reset) \(message)", terminator: "")
308 | fflush(stdout)
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:82: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
80 | func monitoredStream() -> AsyncThrowingStream<T, Error> {
81 | AsyncThrowingStream { continuation in
82 | 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
83 | do {
84 | for try await value in stream {
| `- note: closure captures 'self' which is accessible to code in the current task
85 | chunkCount += 1
86 |
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:102:38: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
100 | }
101 |
102 | 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
103 | }
104 |
/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,
[60/67] Compiling SwollamaCLI LinuxSupport.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:100:13: warning: initialization of variable 'originalTermios' was never used; consider replacing with assignment to '_' or removing it
98 |
99 | // Save original settings
100 | var originalTermios = termios
| `- warning: initialization of variable 'originalTermios' was never used; consider replacing with assignment to '_' or removing it
101 |
102 | // Modify settings for raw mode
/host/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:124: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
122 | func readLine(prompt: String = "") -> String? {
123 | print(prompt, terminator: "")
124 | 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
125 |
126 | // For now, use standard readLine
/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:203: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
201 | func readPassword(prompt: String = "Password: ") -> String? {
202 | print(prompt, terminator: "")
203 | 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
204 |
205 | #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:308: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
306 | while isRunning {
307 | print("\r\(EnhancedTerminalStyle.neonBlue)\(frames[currentFrame])\(EnhancedTerminalStyle.reset) \(message)", terminator: "")
308 | 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
309 | currentFrame = (currentFrame + 1) % frames.count
310 | try? await Task.sleep(nanoseconds: 100_000_000) // 0.1 seconds
/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:313: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
311 | }
312 | print("\r\(String(repeating: " ", count: message.count + 4))\r", terminator: "")
313 | 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
314 | }
315 | }
/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:71: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
69 | private static func cleanupBeforeExit() {
70 | // Flush stdout to ensure all output is written
71 | 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
72 | fflush(stderr)
73 |
/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:72:16: 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
70 | // Flush stdout to ensure all output is written
71 | fflush(stdout)
72 | 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
73 |
74 | // Reset terminal state if needed
/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:6: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
4 | // Stream debugging utilities
5 | struct StreamDebugger {
6 | 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
7 | static var logFile: FileHandle?
8 |
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:7: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
5 | struct StreamDebugger {
6 | static var isEnabled = false
7 | 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
8 |
9 | private static let dateFormatter: DateFormatter = {
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:125: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
122 |
123 | // Network traffic monitor
124 | class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
125 | 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
126 |
127 | private var requestCount = 0
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:20:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
18 | if enabled, let logPath = logPath {
19 | let url = URL(fileURLWithPath: logPath)
20 | FileManager.default.createFile(atPath: logPath, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
21 | logFile = try? FileHandle(forWritingTo: url)
22 | }
/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:305: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
303 | func start() {
304 | isRunning = true
305 | 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
306 | while isRunning {
| `- note: closure captures 'self' which is accessible to code in the current task
307 | print("\r\(EnhancedTerminalStyle.neonBlue)\(frames[currentFrame])\(EnhancedTerminalStyle.reset) \(message)", terminator: "")
308 | fflush(stdout)
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:82: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
80 | func monitoredStream() -> AsyncThrowingStream<T, Error> {
81 | AsyncThrowingStream { continuation in
82 | 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
83 | do {
84 | for try await value in stream {
| `- note: closure captures 'self' which is accessible to code in the current task
85 | chunkCount += 1
86 |
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:102:38: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
100 | }
101 |
102 | 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
103 | }
104 |
/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,
[61/67] Compiling SwollamaCLI StreamDebugger.swift
/host/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:100:13: warning: initialization of variable 'originalTermios' was never used; consider replacing with assignment to '_' or removing it
98 |
99 | // Save original settings
100 | var originalTermios = termios
| `- warning: initialization of variable 'originalTermios' was never used; consider replacing with assignment to '_' or removing it
101 |
102 | // Modify settings for raw mode
/host/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:124: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
122 | func readLine(prompt: String = "") -> String? {
123 | print(prompt, terminator: "")
124 | 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
125 |
126 | // For now, use standard readLine
/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:203: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
201 | func readPassword(prompt: String = "Password: ") -> String? {
202 | print(prompt, terminator: "")
203 | 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
204 |
205 | #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:308: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
306 | while isRunning {
307 | print("\r\(EnhancedTerminalStyle.neonBlue)\(frames[currentFrame])\(EnhancedTerminalStyle.reset) \(message)", terminator: "")
308 | 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
309 | currentFrame = (currentFrame + 1) % frames.count
310 | try? await Task.sleep(nanoseconds: 100_000_000) // 0.1 seconds
/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:313: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
311 | }
312 | print("\r\(String(repeating: " ", count: message.count + 4))\r", terminator: "")
313 | 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
314 | }
315 | }
/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:71: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
69 | private static func cleanupBeforeExit() {
70 | // Flush stdout to ensure all output is written
71 | 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
72 | fflush(stderr)
73 |
/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:72:16: 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
70 | // Flush stdout to ensure all output is written
71 | fflush(stdout)
72 | 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
73 |
74 | // Reset terminal state if needed
/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:6: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
4 | // Stream debugging utilities
5 | struct StreamDebugger {
6 | 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
7 | static var logFile: FileHandle?
8 |
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:7: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
5 | struct StreamDebugger {
6 | static var isEnabled = false
7 | 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
8 |
9 | private static let dateFormatter: DateFormatter = {
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:125: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
122 |
123 | // Network traffic monitor
124 | class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
125 | 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
126 |
127 | private var requestCount = 0
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:20:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
18 | if enabled, let logPath = logPath {
19 | let url = URL(fileURLWithPath: logPath)
20 | FileManager.default.createFile(atPath: logPath, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
21 | logFile = try? FileHandle(forWritingTo: url)
22 | }
/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:305: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
303 | func start() {
304 | isRunning = true
305 | 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
306 | while isRunning {
| `- note: closure captures 'self' which is accessible to code in the current task
307 | print("\r\(EnhancedTerminalStyle.neonBlue)\(frames[currentFrame])\(EnhancedTerminalStyle.reset) \(message)", terminator: "")
308 | fflush(stdout)
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:82: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
80 | func monitoredStream() -> AsyncThrowingStream<T, Error> {
81 | AsyncThrowingStream { continuation in
82 | 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
83 | do {
84 | for try await value in stream {
| `- note: closure captures 'self' which is accessible to code in the current task
85 | chunkCount += 1
86 |
/host/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:102:38: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
100 | }
101 |
102 | 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
103 | }
104 |
/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,
[62/67] Compiling SwollamaCLI PushCommand.swift
[63/67] Compiling SwollamaCLI ShowModelCommand.swift
[64/67] Compiling SwollamaCLI TestCommand.swift
[65/68] Wrapping AST for SwollamaCLI for debugging
[66/68] Write Objects.LinkFileList
[67/68] Linking SwollamaCLI
Build complete! (11.80s)
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" : [
"NewFeaturesTests.swift",
"SwollamaTests.swift"
],
"target_dependencies" : [
"Swollama"
],
"type" : "test"
},
{
"c99name" : "SwollamaCLI",
"module_type" : "SwiftTarget",
"name" : "SwollamaCLI",
"path" : "Sources/SwollamaCLI",
"product_memberships" : [
"SwollamaCLI"
],
"sources" : [
"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" : [
"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"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2e2b3aca8600f890617c2faa770b70e33c1dfd303d6f92b308423b89ef6bde64
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.