Build Information
Successful build of Swollama, reference 2.0.0 (21b4bc
), with Swift 6.1 for macOS (SPM) on 28 Jun 2025 01:37:28 UTC.
Swift 6 data race errors: 20
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/marcusziade/Swollama.git
Reference: 2.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/marcusziade/Swollama
* tag 2.0.0 -> FETCH_HEAD
HEAD is now at 21b4bc7 fix: Remove 'Release' prefix from GitHub release titles
Cloned https://github.com/marcusziade/Swollama.git
Revision (git rev-parse @):
21b4bc72d6dd0ce9e76fa7b91c68215c44f38328
SUCCESS checkout https://github.com/marcusziade/Swollama.git at 2.0.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swollama",
"name": "Swollama",
"url": "https://github.com/marcusziade/Swollama.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Swollama",
"dependencies": [
]
}
]
}
Fetching https://github.com/marcusziade/Swollama.git
[1/497] Fetching swollama
Fetched https://github.com/marcusziade/Swollama.git from cache (0.76s)
Creating working copy for https://github.com/marcusziade/Swollama.git
Working copy of https://github.com/marcusziade/Swollama.git resolved at 2.0.0 (21b4bc7)
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/marcusziade/Swollama.git
https://github.com/marcusziade/Swollama.git
{
"dependencies" : [
],
"manifest_display_name" : "Swollama",
"name" : "Swollama",
"path" : "/Users/admin/builder/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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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
Building for debugging...
[0/7] Write SwollamaCLI-entitlement.plist
[0/7] Write sources
[3/7] Write swift-version-2F0A5646E1D333AE.txt
[5/35] Emitting module Swollama
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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(
/Users/admin/builder/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?
/Users/admin/builder/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
/Users/admin/builder/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?
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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?
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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?
/Users/admin/builder/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
/Users/admin/builder/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?
/Users/admin/builder/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(
/Users/admin/builder/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?
/Users/admin/builder/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 OllamaConfiguration.swift
/Users/admin/builder/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 OllamaError.swift
/Users/admin/builder/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 OllamaProtocol.swift
/Users/admin/builder/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 |
[9/38] Compiling Swollama ShowModelRequest.swift
[10/38] Compiling Swollama ToolCall.swift
[11/38] Compiling Swollama ToolDefinition.swift
[12/38] Compiling Swollama EmbeddingRequest.swift
[13/38] Compiling Swollama EmbeddingResponse.swift
[14/38] Compiling Swollama GenerateRequest.swift
[15/38] Compiling Swollama ChatOptions.swift
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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 |
[16/38] Compiling Swollama EmbeddingOptions.swift
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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 |
[17/38] Compiling Swollama GenerationOptions.swift
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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 |
[18/38] Compiling Swollama GenerateResponse.swift
[19/38] Compiling Swollama ModelFamily.swift
[20/38] Compiling Swollama ModelFormat.swift
[21/38] Compiling Swollama ChatRequest.swift
[22/38] Compiling Swollama ChatResponse.swift
[23/38] Compiling Swollama CreateModelRequest.swift
[24/38] Compiling Swollama ModelInformation.swift
[25/38] Compiling Swollama ModelsResponse.swift
[26/38] Compiling Swollama OllamaModelName.swift
[27/38] Compiling Swollama OperationProgress.swift
[28/38] Compiling Swollama QuantizationLevel.swift
[29/38] Compiling Swollama RunningModelsResponse.swift
[30/38] Compiling Swollama OllamaClient+Generation.swift
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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(
/Users/admin/builder/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?
/Users/admin/builder/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
/Users/admin/builder/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?
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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?
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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?
/Users/admin/builder/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
/Users/admin/builder/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?
/Users/admin/builder/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(
/Users/admin/builder/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?
[31/38] Compiling Swollama OllamaClient+ModelManagement.swift
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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(
/Users/admin/builder/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?
/Users/admin/builder/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
/Users/admin/builder/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?
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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?
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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?
/Users/admin/builder/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
/Users/admin/builder/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?
/Users/admin/builder/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(
/Users/admin/builder/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?
[32/38] Compiling Swollama OllamaClient.swift
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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(
/Users/admin/builder/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?
/Users/admin/builder/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
/Users/admin/builder/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?
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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?
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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?
/Users/admin/builder/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
/Users/admin/builder/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?
/Users/admin/builder/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(
/Users/admin/builder/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?
[33/38] Compiling Swollama VersionResponse.swift
[34/38] Compiling Swollama NetworkingSupport+Streaming.swift
[35/38] Compiling Swollama NetworkingSupport.swift
[36/64] Compiling SwollamaCLI BlobCommand.swift
/Users/admin/builder/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,
[37/64] Compiling SwollamaCLI ChatCommand.swift
/Users/admin/builder/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,
[38/64] Compiling SwollamaCLI CommandProtocol.swift
/Users/admin/builder/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,
[39/66] Emitting module SwollamaCLI
/Users/admin/builder/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
/Users/admin/builder/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?
/Users/admin/builder/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
/Users/admin/builder/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 |
/Users/admin/builder/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 = {
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 |
[40/66] Compiling SwollamaCLI CopyModelCommand.swift
[41/66] Compiling SwollamaCLI CreateCommand.swift
[42/66] Compiling SwollamaCLI DeleteModelCommand.swift
[43/66] Compiling SwollamaCLI ModelFormatter.swift
/Users/admin/builder/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
/Users/admin/builder/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 |
[44/66] Compiling SwollamaCLI ProgressTracker.swift
/Users/admin/builder/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
/Users/admin/builder/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 |
[45/66] Compiling SwollamaCLI PushCommand.swift
[46/66] Compiling SwollamaCLI ShowModelCommand.swift
[47/66] Compiling SwollamaCLI TestCommand.swift
[48/66] Compiling SwollamaCLI SwollamaCLI.swift
[49/66] Compiling SwollamaCLI CLIError.swift
[50/66] Compiling SwollamaCLI ListModelsCommand.swift
[51/66] Compiling SwollamaCLI ListRunningModelsCommand.swift
[52/66] Compiling SwollamaCLI PullModelCommand.swift
[53/66] Compiling SwollamaCLI VersionCommand.swift
/Users/admin/builder/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
/Users/admin/builder/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?
/Users/admin/builder/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
/Users/admin/builder/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,
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/ErrorRecovery.swift:286:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
284 |
285 | func startMonitoring() {
286 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
287 | while true {
288 | await checkHealth()
| `- note: closure captures 'self' which is accessible to code in the current task
289 | try? await Task.sleep(nanoseconds: UInt64(checkInterval * 1_000_000_000))
290 | }
[54/66] Compiling SwollamaCLI EnhancedSwollamaCLI.swift
/Users/admin/builder/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
/Users/admin/builder/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?
/Users/admin/builder/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
/Users/admin/builder/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,
/Users/admin/builder/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 | }
[55/66] Compiling SwollamaCLI ErrorRecovery.swift
/Users/admin/builder/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
/Users/admin/builder/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?
/Users/admin/builder/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
/Users/admin/builder/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,
/Users/admin/builder/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 | }
[56/66] Compiling SwollamaCLI InputHandler.swift
/Users/admin/builder/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 |
/Users/admin/builder/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 = {
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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,
/Users/admin/builder/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,
/Users/admin/builder/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 | )
/Users/admin/builder/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,
[57/66] Compiling SwollamaCLI LinuxSupport.swift
/Users/admin/builder/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 |
/Users/admin/builder/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 = {
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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,
/Users/admin/builder/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,
/Users/admin/builder/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 | )
/Users/admin/builder/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,
[58/66] Compiling SwollamaCLI StreamDebugger.swift
/Users/admin/builder/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 |
/Users/admin/builder/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 = {
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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,
/Users/admin/builder/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,
/Users/admin/builder/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 | )
/Users/admin/builder/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,
[59/66] Compiling SwollamaCLI EmbeddingsCommand.swift
/Users/admin/builder/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("")
/Users/admin/builder/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)")
/Users/admin/builder/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("")
/Users/admin/builder/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 |
/Users/admin/builder/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,
/Users/admin/builder/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,
[60/66] Compiling SwollamaCLI EnhancedChatCommand.swift
/Users/admin/builder/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("")
/Users/admin/builder/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)")
/Users/admin/builder/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("")
/Users/admin/builder/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 |
/Users/admin/builder/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,
/Users/admin/builder/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,
[61/66] Compiling SwollamaCLI GenerateCommand.swift
/Users/admin/builder/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("")
/Users/admin/builder/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)")
/Users/admin/builder/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("")
/Users/admin/builder/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 |
/Users/admin/builder/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,
/Users/admin/builder/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,
[62/66] Compiling SwollamaCLI SpeedCalculator.swift
[63/66] Compiling SwollamaCLI TerminalHelper.swift
[63/66] Write Objects.LinkFileList
[64/66] Linking SwollamaCLI
[65/66] Applying SwollamaCLI
Build complete! (8.05s)
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/README.md
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Swollama",
"name" : "Swollama",
"path" : "/Users/admin/builder/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"
}
Done.