Build Information
Successful build of Swollama, reference 4.2.0 (f0d56d), with Swift 6.1 for macOS (SPM) on 20 Jul 2026 23:23:49 UTC.
Swift 6 data race errors: 5
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 InferSendableFromCapturesBuild Log
========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/guitaripod/Swollama.git
Reference: 4.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/guitaripod/Swollama
* tag 4.2.0 -> FETCH_HEAD
HEAD is now at f0d56d5 feat: 4.2.0 — streaming correctness, auth, and Swift 6 readiness
Cloned https://github.com/guitaripod/Swollama.git
Revision (git rev-parse @):
f0d56d5db6bf7126c33f7ffd6c1112ec58385f8b
SUCCESS checkout https://github.com/guitaripod/Swollama.git at 4.2.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/guitaripod/Swollama.git
https://github.com/guitaripod/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"
},
{
"name" : "tvos",
"version" : "17.0"
},
{
"name" : "watchos",
"version" : "10.0"
},
{
"name" : "visionos",
"version" : "1.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" : [
"APICoverageTests.swift",
"AgentTests.swift",
"ConfigurationTests.swift",
"ConvenienceTests.swift",
"DigestValidationTests.swift",
"ErrorHandlingTests.swift",
"ModelNameParsingTests.swift",
"NewFeaturesTests.swift",
"RetryLogicTests.swift",
"StreamingBufferTests.swift",
"SwollamaTests.swift"
],
"target_dependencies" : [
"Swollama"
],
"type" : "test"
},
{
"c99name" : "SwollamaCLI",
"module_type" : "SwiftTarget",
"name" : "SwollamaCLI",
"path" : "Sources/SwollamaCLI",
"product_memberships" : [
"SwollamaCLI"
],
"sources" : [
"Commands/AgentCommand.swift",
"Commands/BlobCommand.swift",
"Commands/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/OllamaErrorFormatting.swift",
"Tools/Output.swift",
"Tools/ProgressTracker.swift",
"Tools/SpeedCalculator.swift",
"Tools/TerminalHelper.swift",
"Tools/TerminalStyle.swift"
],
"target_dependencies" : [
"Swollama"
],
"type" : "executable"
},
{
"c99name" : "Swollama",
"module_type" : "SwiftTarget",
"name" : "Swollama",
"path" : "Sources/Swollama",
"product_memberships" : [
"Swollama",
"SwollamaCLI"
],
"sources" : [
"Agent/AgentConfiguration.swift",
"Agent/AgentEvent.swift",
"Agent/OllamaAgent.swift",
"ChatOptions.swift",
"EmbeddingOptions.swift",
"GenerationOptions.swift",
"Models/ChatRequest.swift",
"Models/ChatResponse.swift",
"Models/CreateModelRequest.swift",
"Models/EmbeddingRequest.swift",
"Models/EmbeddingResponse.swift",
"Models/GenerateRequest.swift",
"Models/GenerateResponse.swift",
"Models/JSONValue.swift",
"Models/LegacyEmbedding.swift",
"Models/Logprob.swift",
"Models/ModelInformation.swift",
"Models/ModelsResponse.swift",
"Models/OllamaDate.swift",
"Models/OllamaModelName.swift",
"Models/OperationProgress.swift",
"Models/RunningModelsResponse.swift",
"Models/ShowModelRequest.swift",
"Models/ThinkingMode.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+Convenience.swift",
"OllamaProtocol.swift",
"WebSearch/OllamaWebSearchClient.swift",
"WebSearch/WebSearchModels.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 sources
[1/7] Write SwollamaCLI-entitlement.plist
[3/7] Write swift-version-2F0A5646E1D333AE.txt
[5/43] Compiling Swollama OllamaConfiguration.swift
[6/43] Compiling Swollama OllamaError.swift
[7/43] Compiling Swollama OllamaProtocol+Convenience.swift
[8/46] Compiling Swollama GenerateResponse.swift
[9/46] Compiling Swollama JSONValue.swift
[10/46] Compiling Swollama LegacyEmbedding.swift
[11/46] Compiling Swollama Logprob.swift
[12/46] Emitting module Swollama
[13/46] Compiling Swollama CreateModelRequest.swift
[14/46] Compiling Swollama EmbeddingRequest.swift
[15/46] Compiling Swollama EmbeddingResponse.swift
[16/46] Compiling Swollama GenerateRequest.swift
[17/46] Compiling Swollama OperationProgress.swift
[18/46] Compiling Swollama RunningModelsResponse.swift
[19/46] Compiling Swollama ShowModelRequest.swift
[20/46] Compiling Swollama ThinkingMode.swift
[21/46] Compiling Swollama AgentConfiguration.swift
[22/46] Compiling Swollama AgentEvent.swift
[23/46] Compiling Swollama OllamaAgent.swift
[24/46] Compiling Swollama ChatOptions.swift
[25/46] Compiling Swollama NetworkingSupport.swift
[26/46] Compiling Swollama OllamaClient+Generation.swift
[27/46] Compiling Swollama OllamaClient+ModelManagement.swift
[28/46] Compiling Swollama OllamaClient.swift
[29/46] Compiling Swollama EmbeddingOptions.swift
[30/46] Compiling Swollama GenerationOptions.swift
[31/46] Compiling Swollama ChatRequest.swift
[32/46] Compiling Swollama ChatResponse.swift
[33/46] Compiling Swollama ToolCall.swift
[34/46] Compiling Swollama ToolDefinition.swift
[35/46] Compiling Swollama VersionResponse.swift
[36/46] Compiling Swollama NetworkingSupport+Streaming.swift
[37/46] Compiling Swollama ModelInformation.swift
[38/46] Compiling Swollama ModelsResponse.swift
[39/46] Compiling Swollama OllamaDate.swift
[40/46] Compiling Swollama OllamaModelName.swift
[41/46] Compiling Swollama OllamaProtocol.swift
[42/46] Compiling Swollama OllamaWebSearchClient.swift
[43/46] Compiling Swollama WebSearchModels.swift
[44/74] Emitting module SwollamaCLI
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:5:16: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | struct StreamDebugger {
5 | static var isEnabled = false
| |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isEnabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | static var logFile: FileHandle?
7 |
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:6:16: warning: static property 'logFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | struct StreamDebugger {
5 | static var isEnabled = false
6 | static var logFile: FileHandle?
| |- warning: static property 'logFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logFile' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logFile' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | private static let dateFormatter: DateFormatter = {
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:121:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
118 | }
119 |
120 | class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
121 | static let shared = NetworkMonitor()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 | private var requestCount = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:184:24: warning: static property 'cachedWidth' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
182 |
183 | class CachedTerminalHelper: TerminalHelper {
184 | private static var cachedWidth: Int?
| |- warning: static property 'cachedWidth' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedWidth' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedWidth' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
185 | private static var lastCheck: Date?
186 | private static let cacheDuration: TimeInterval = 1.0
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:185:24: warning: static property 'lastCheck' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
183 | class CachedTerminalHelper: TerminalHelper {
184 | private static var cachedWidth: Int?
185 | private static var lastCheck: Date?
| |- warning: static property 'lastCheck' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastCheck' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'lastCheck' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 | private static let cacheDuration: TimeInterval = 1.0
187 |
[45/77] Compiling SwollamaCLI ListModelsCommand.swift
[46/77] Compiling SwollamaCLI ListRunningModelsCommand.swift
[47/77] Compiling SwollamaCLI PullModelCommand.swift
[48/77] Compiling SwollamaCLI SpeedCalculator.swift
[49/77] Compiling SwollamaCLI TerminalHelper.swift
[50/77] Compiling SwollamaCLI TerminalStyle.swift
[51/77] Compiling SwollamaCLI SwollamaCLI.swift
[52/77] Compiling SwollamaCLI CLIError.swift
[53/77] Compiling SwollamaCLI ModelFormatter.swift
[54/77] Compiling SwollamaCLI AgentCommand.swift
[55/77] Compiling SwollamaCLI BlobCommand.swift
[56/77] Compiling SwollamaCLI CommandProtocol.swift
[57/77] Compiling SwollamaCLI VersionCommand.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/ErrorRecovery.swift:292: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
290 |
291 | func startMonitoring() {
292 | 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
293 | while true {
294 | await checkHealth()
| `- note: closure captures 'self' which is accessible to code in the current task
295 | try? await Task.sleep(nanoseconds: UInt64(checkInterval * 1_000_000_000))
296 | }
[58/77] Compiling SwollamaCLI EnhancedSwollamaCLI.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/ErrorRecovery.swift:292: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
290 |
291 | func startMonitoring() {
292 | 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
293 | while true {
294 | await checkHealth()
| `- note: closure captures 'self' which is accessible to code in the current task
295 | try? await Task.sleep(nanoseconds: UInt64(checkInterval * 1_000_000_000))
296 | }
[59/77] Compiling SwollamaCLI ErrorRecovery.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/ErrorRecovery.swift:292: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
290 |
291 | func startMonitoring() {
292 | 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
293 | while true {
294 | await checkHealth()
| `- note: closure captures 'self' which is accessible to code in the current task
295 | try? await Task.sleep(nanoseconds: UInt64(checkInterval * 1_000_000_000))
296 | }
[60/77] Compiling SwollamaCLI CopyModelCommand.swift
[61/77] Compiling SwollamaCLI CreateCommand.swift
[62/77] Compiling SwollamaCLI DeleteModelCommand.swift
[63/77] Compiling SwollamaCLI PushCommand.swift
[64/77] Compiling SwollamaCLI ShowModelCommand.swift
[65/77] Compiling SwollamaCLI TestCommand.swift
[66/77] Compiling SwollamaCLI InputHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:5:16: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | struct StreamDebugger {
5 | static var isEnabled = false
| |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isEnabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | static var logFile: FileHandle?
7 |
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:6:16: warning: static property 'logFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | struct StreamDebugger {
5 | static var isEnabled = false
6 | static var logFile: FileHandle?
| |- warning: static property 'logFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logFile' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logFile' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | private static let dateFormatter: DateFormatter = {
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:121:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
118 | }
119 |
120 | class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
121 | static let shared = NetworkMonitor()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 | private var requestCount = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:275:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
273 | func start() {
274 | isRunning = true
275 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
276 | while isRunning {
| `- note: closure captures 'self' which is accessible to code in the current task
277 | print(
278 | "\r\(EnhancedTerminalStyle.neonBlue)\(frames[currentFrame])\(EnhancedTerminalStyle.reset) \(message)",
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:80:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
78 | func monitoredStream() -> AsyncThrowingStream<T, Error> {
79 | AsyncThrowingStream { continuation in
80 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
81 | do {
82 | for try await value in stream {
| `- note: closure captures 'self' which is accessible to code in the current task
83 | chunkCount += 1
84 |
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:99:38: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
97 | }
98 |
99 | continuation.yield(value)
| |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
100 | }
101 |
[67/77] Compiling SwollamaCLI LinuxSupport.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:5:16: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | struct StreamDebugger {
5 | static var isEnabled = false
| |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isEnabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | static var logFile: FileHandle?
7 |
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:6:16: warning: static property 'logFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | struct StreamDebugger {
5 | static var isEnabled = false
6 | static var logFile: FileHandle?
| |- warning: static property 'logFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logFile' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logFile' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | private static let dateFormatter: DateFormatter = {
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:121:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
118 | }
119 |
120 | class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
121 | static let shared = NetworkMonitor()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 | private var requestCount = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:275:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
273 | func start() {
274 | isRunning = true
275 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
276 | while isRunning {
| `- note: closure captures 'self' which is accessible to code in the current task
277 | print(
278 | "\r\(EnhancedTerminalStyle.neonBlue)\(frames[currentFrame])\(EnhancedTerminalStyle.reset) \(message)",
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:80:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
78 | func monitoredStream() -> AsyncThrowingStream<T, Error> {
79 | AsyncThrowingStream { continuation in
80 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
81 | do {
82 | for try await value in stream {
| `- note: closure captures 'self' which is accessible to code in the current task
83 | chunkCount += 1
84 |
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:99:38: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
97 | }
98 |
99 | continuation.yield(value)
| |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
100 | }
101 |
[68/77] Compiling SwollamaCLI StreamDebugger.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:5:16: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | struct StreamDebugger {
5 | static var isEnabled = false
| |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isEnabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | static var logFile: FileHandle?
7 |
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:6:16: warning: static property 'logFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | struct StreamDebugger {
5 | static var isEnabled = false
6 | static var logFile: FileHandle?
| |- warning: static property 'logFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logFile' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logFile' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | private static let dateFormatter: DateFormatter = {
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:121:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
118 | }
119 |
120 | class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
121 | static let shared = NetworkMonitor()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 | private var requestCount = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/InputHandler.swift:275:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
273 | func start() {
274 | isRunning = true
275 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
276 | while isRunning {
| `- note: closure captures 'self' which is accessible to code in the current task
277 | print(
278 | "\r\(EnhancedTerminalStyle.neonBlue)\(frames[currentFrame])\(EnhancedTerminalStyle.reset) \(message)",
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:80:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
78 | func monitoredStream() -> AsyncThrowingStream<T, Error> {
79 | AsyncThrowingStream { continuation in
80 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
81 | do {
82 | for try await value in stream {
| `- note: closure captures 'self' which is accessible to code in the current task
83 | chunkCount += 1
84 |
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/StreamDebugger.swift:99:38: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
97 | }
98 |
99 | continuation.yield(value)
| |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
100 | }
101 |
[69/77] Compiling SwollamaCLI OllamaErrorFormatting.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:184:24: warning: static property 'cachedWidth' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
182 |
183 | class CachedTerminalHelper: TerminalHelper {
184 | private static var cachedWidth: Int?
| |- warning: static property 'cachedWidth' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedWidth' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedWidth' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
185 | private static var lastCheck: Date?
186 | private static let cacheDuration: TimeInterval = 1.0
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:185:24: warning: static property 'lastCheck' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
183 | class CachedTerminalHelper: TerminalHelper {
184 | private static var cachedWidth: Int?
185 | private static var lastCheck: Date?
| |- warning: static property 'lastCheck' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastCheck' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'lastCheck' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 | private static let cacheDuration: TimeInterval = 1.0
187 |
[70/77] Compiling SwollamaCLI Output.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:184:24: warning: static property 'cachedWidth' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
182 |
183 | class CachedTerminalHelper: TerminalHelper {
184 | private static var cachedWidth: Int?
| |- warning: static property 'cachedWidth' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedWidth' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedWidth' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
185 | private static var lastCheck: Date?
186 | private static let cacheDuration: TimeInterval = 1.0
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:185:24: warning: static property 'lastCheck' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
183 | class CachedTerminalHelper: TerminalHelper {
184 | private static var cachedWidth: Int?
185 | private static var lastCheck: Date?
| |- warning: static property 'lastCheck' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastCheck' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'lastCheck' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 | private static let cacheDuration: TimeInterval = 1.0
187 |
[71/77] Compiling SwollamaCLI ProgressTracker.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:184:24: warning: static property 'cachedWidth' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
182 |
183 | class CachedTerminalHelper: TerminalHelper {
184 | private static var cachedWidth: Int?
| |- warning: static property 'cachedWidth' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedWidth' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedWidth' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
185 | private static var lastCheck: Date?
186 | private static let cacheDuration: TimeInterval = 1.0
/Users/admin/builder/spi-builder-workspace/Sources/SwollamaCLI/Tools/ProgressTracker.swift:185:24: warning: static property 'lastCheck' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
183 | class CachedTerminalHelper: TerminalHelper {
184 | private static var cachedWidth: Int?
185 | private static var lastCheck: Date?
| |- warning: static property 'lastCheck' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastCheck' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'lastCheck' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 | private static let cacheDuration: TimeInterval = 1.0
187 |
[72/77] Compiling SwollamaCLI EmbeddingsCommand.swift
[73/77] Compiling SwollamaCLI EnhancedChatCommand.swift
[74/77] Compiling SwollamaCLI GenerateCommand.swift
[74/77] Write Objects.LinkFileList
[75/77] Linking SwollamaCLI
[76/77] Applying SwollamaCLI
Build complete! (8.12s)
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"
},
{
"name" : "tvos",
"version" : "17.0"
},
{
"name" : "watchos",
"version" : "10.0"
},
{
"name" : "visionos",
"version" : "1.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" : [
"APICoverageTests.swift",
"AgentTests.swift",
"ConfigurationTests.swift",
"ConvenienceTests.swift",
"DigestValidationTests.swift",
"ErrorHandlingTests.swift",
"ModelNameParsingTests.swift",
"NewFeaturesTests.swift",
"RetryLogicTests.swift",
"StreamingBufferTests.swift",
"SwollamaTests.swift"
],
"target_dependencies" : [
"Swollama"
],
"type" : "test"
},
{
"c99name" : "SwollamaCLI",
"module_type" : "SwiftTarget",
"name" : "SwollamaCLI",
"path" : "Sources/SwollamaCLI",
"product_memberships" : [
"SwollamaCLI"
],
"sources" : [
"Commands/AgentCommand.swift",
"Commands/BlobCommand.swift",
"Commands/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/OllamaErrorFormatting.swift",
"Tools/Output.swift",
"Tools/ProgressTracker.swift",
"Tools/SpeedCalculator.swift",
"Tools/TerminalHelper.swift",
"Tools/TerminalStyle.swift"
],
"target_dependencies" : [
"Swollama"
],
"type" : "executable"
},
{
"c99name" : "Swollama",
"module_type" : "SwiftTarget",
"name" : "Swollama",
"path" : "Sources/Swollama",
"product_memberships" : [
"Swollama",
"SwollamaCLI"
],
"sources" : [
"Agent/AgentConfiguration.swift",
"Agent/AgentEvent.swift",
"Agent/OllamaAgent.swift",
"ChatOptions.swift",
"EmbeddingOptions.swift",
"GenerationOptions.swift",
"Models/ChatRequest.swift",
"Models/ChatResponse.swift",
"Models/CreateModelRequest.swift",
"Models/EmbeddingRequest.swift",
"Models/EmbeddingResponse.swift",
"Models/GenerateRequest.swift",
"Models/GenerateResponse.swift",
"Models/JSONValue.swift",
"Models/LegacyEmbedding.swift",
"Models/Logprob.swift",
"Models/ModelInformation.swift",
"Models/ModelsResponse.swift",
"Models/OllamaDate.swift",
"Models/OllamaModelName.swift",
"Models/OperationProgress.swift",
"Models/RunningModelsResponse.swift",
"Models/ShowModelRequest.swift",
"Models/ThinkingMode.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+Convenience.swift",
"OllamaProtocol.swift",
"WebSearch/OllamaWebSearchClient.swift",
"WebSearch/WebSearchModels.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.