The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Swollama, reference master (72dc85), with Swift 6.1 for macOS (SPM) on 21 Jul 2026 12:08:42 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 InferSendableFromCaptures

Build 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: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/guitaripod/Swollama
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 72dc852 docs: refresh README features (auth, Swift 6, platforms)
Cloned https://github.com/guitaripod/Swollama.git
Revision (git rev-parse @):
72dc8524d6531a59aa8e358a0d63644a912ab150
SUCCESS checkout https://github.com/guitaripod/Swollama.git at master
========================================
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] Emitting module Swollama
[6/46] Compiling Swollama OllamaConfiguration.swift
[7/46] Compiling Swollama OllamaError.swift
[8/46] Compiling Swollama OllamaProtocol+Convenience.swift
[9/46] Compiling Swollama OllamaProtocol.swift
[10/46] Compiling Swollama OllamaWebSearchClient.swift
[11/46] Compiling Swollama WebSearchModels.swift
[12/46] Compiling Swollama ModelInformation.swift
[13/46] Compiling Swollama ModelsResponse.swift
[14/46] Compiling Swollama OllamaDate.swift
[15/46] Compiling Swollama OllamaModelName.swift
[16/46] Compiling Swollama EmbeddingOptions.swift
[17/46] Compiling Swollama GenerationOptions.swift
[18/46] Compiling Swollama ChatRequest.swift
[19/46] Compiling Swollama ChatResponse.swift
[20/46] Compiling Swollama GenerateResponse.swift
[21/46] Compiling Swollama JSONValue.swift
[22/46] Compiling Swollama LegacyEmbedding.swift
[23/46] Compiling Swollama Logprob.swift
[24/46] Compiling Swollama CreateModelRequest.swift
[25/46] Compiling Swollama EmbeddingRequest.swift
[26/46] Compiling Swollama EmbeddingResponse.swift
[27/46] Compiling Swollama GenerateRequest.swift
[28/46] Compiling Swollama ToolCall.swift
[29/46] Compiling Swollama ToolDefinition.swift
[30/46] Compiling Swollama VersionResponse.swift
[31/46] Compiling Swollama NetworkingSupport+Streaming.swift
[32/46] Compiling Swollama OperationProgress.swift
[33/46] Compiling Swollama RunningModelsResponse.swift
[34/46] Compiling Swollama ShowModelRequest.swift
[35/46] Compiling Swollama ThinkingMode.swift
[36/46] Compiling Swollama AgentConfiguration.swift
[37/46] Compiling Swollama AgentEvent.swift
[38/46] Compiling Swollama OllamaAgent.swift
[39/46] Compiling Swollama ChatOptions.swift
[40/46] Compiling Swollama NetworkingSupport.swift
[41/46] Compiling Swollama OllamaClient+Generation.swift
[42/46] Compiling Swollama OllamaClient+ModelManagement.swift
[43/46] Compiling Swollama OllamaClient.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 CopyModelCommand.swift
[46/77] Compiling SwollamaCLI CreateCommand.swift
[47/77] Compiling SwollamaCLI DeleteModelCommand.swift
[48/77] Compiling SwollamaCLI SpeedCalculator.swift
[49/77] Compiling SwollamaCLI TerminalHelper.swift
[50/77] Compiling SwollamaCLI TerminalStyle.swift
[51/77] Compiling SwollamaCLI AgentCommand.swift
[52/77] Compiling SwollamaCLI BlobCommand.swift
[53/77] Compiling SwollamaCLI CommandProtocol.swift
[54/77] Compiling SwollamaCLI SwollamaCLI.swift
[55/77] Compiling SwollamaCLI CLIError.swift
[56/77] Compiling SwollamaCLI ModelFormatter.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 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 |
[61/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 |
[62/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 |
[63/77] Compiling SwollamaCLI PushCommand.swift
[64/77] Compiling SwollamaCLI ShowModelCommand.swift
[65/77] Compiling SwollamaCLI TestCommand.swift
[66/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 |
[67/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 |
[68/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 |
[69/77] Compiling SwollamaCLI EmbeddingsCommand.swift
[70/77] Compiling SwollamaCLI EnhancedChatCommand.swift
[71/77] Compiling SwollamaCLI GenerateCommand.swift
[72/77] Compiling SwollamaCLI ListModelsCommand.swift
[73/77] Compiling SwollamaCLI ListRunningModelsCommand.swift
[74/77] Compiling SwollamaCLI PullModelCommand.swift
[74/77] Write Objects.LinkFileList
[75/77] Linking SwollamaCLI
[76/77] Applying SwollamaCLI
Build complete! (7.55s)
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.