The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Monstra, reference main (2418aa), with Swift 6.3 for Wasm on 16 Apr 2026 22:32:07 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/yangchenlarkin/Monstra.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/yangchenlarkin/Monstra
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2418aac fix: Update README_CN.md content
Cloned https://github.com/yangchenlarkin/Monstra.git
Revision (git rev-parse @):
2418aac0715fdccabb03cce7a26ceba3b659094a
SUCCESS checkout https://github.com/yangchenlarkin/Monstra.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/yangchenlarkin/Monstra.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/Monstore/MemoryCache/README.md
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/15] Emitting module Monstra
/host/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:633:28: error: cannot find type 'DispatchSemaphore' in scope
 631 |     /// The semaphore is used with minimal scope to ensure high concurrency while maintaining
 632 |     /// data integrity and preventing race conditions.
 633 |     private var semaphore: DispatchSemaphore = .init(value: 1)
     |                            `- error: cannot find type 'DispatchSemaphore' in scope
 634 | }
 635 |
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:400:29: error: cannot find 'DispatchSemaphore' in scope
398 |
399 |     /// DispatchSemaphore for thread synchronization (used when enableThreadSynchronization=true)
400 |     private let semaphore = DispatchSemaphore(value: 1)
    |                             `- error: cannot find 'DispatchSemaphore' in scope
401 |
402 |     /// Internal method that handles the core fetching logic with cache integration.
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:418:24: error: cannot find type 'DispatchQueue' in scope
416 |     private func fetchWithCallback(
417 |         keys: [K],
418 |         dispatchQueue: DispatchQueue? = nil,
    |                        `- error: cannot find type 'DispatchQueue' in scope
419 |         completion: @escaping ResultCallback
420 |     ) {
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:466:58: error: cannot find type 'DispatchQueue' in scope
464 |     }
465 |
466 |     private func consumeCallbacks(key: K, dispatchQueue: DispatchQueue, result: Result<Element?, Error>) {
    |                                                          `- error: cannot find type 'DispatchQueue' in scope
467 |         resultCallbacks[key]?.forEach { callback in
468 |             dispatchQueue.async { callback(key, result) }
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:83:28: error: cannot find type 'DispatchQueue' in scope
 81 |
 82 |     /// Queue where the actual task execution happens (can be background for expensive operations)
 83 |     private let taskQueue: DispatchQueue
    |                            `- error: cannot find type 'DispatchQueue' in scope
 84 |
 85 |     /// Queue where callbacks are invoked (can be main queue for UI updates)
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:86:32: error: cannot find type 'DispatchQueue' in scope
 84 |
 85 |     /// Queue where callbacks are invoked (can be main queue for UI updates)
 86 |     private let callbackQueue: DispatchQueue
    |                                `- error: cannot find type 'DispatchQueue' in scope
 87 |
 88 |     // MARK: - Result Caching State
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:94:29: error: cannot find 'DispatchSemaphore' in scope
 92 |
 93 |     /// Semaphore protecting result and expiration state (semaphore)
 94 |     private var semaphore = DispatchSemaphore(value: 1)
    |                             `- error: cannot find 'DispatchSemaphore' in scope
 95 |
 96 |     // MARK: - Execution Tracking
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:123:20: error: cannot find type 'DispatchQueue' in scope
121 |         retry: RetryCount,
122 |         resultExpireDuration: TimeInterval,
123 |         taskQueue: DispatchQueue,
    |                    `- error: cannot find type 'DispatchQueue' in scope
124 |         callbackQueue: DispatchQueue,
125 |         executeBlock: @escaping (@escaping ResultCallback) -> Void
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:124:24: error: cannot find type 'DispatchQueue' in scope
122 |         resultExpireDuration: TimeInterval,
123 |         taskQueue: DispatchQueue,
124 |         callbackQueue: DispatchQueue,
    |                        `- error: cannot find type 'DispatchQueue' in scope
125 |         executeBlock: @escaping (@escaping ResultCallback) -> Void
126 |     ) {
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:352:20: error: cannot find type 'DispatchQueue' in scope
350 |         retry: RetryCount = .never,
351 |         resultExpireDuration: TimeInterval,
352 |         taskQueue: DispatchQueue = DispatchQueue.global(),
    |                    `- error: cannot find type 'DispatchQueue' in scope
353 |         callbackQueue: DispatchQueue = DispatchQueue.global(),
354 |         task: @escaping CallbackExecution
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:353:24: error: cannot find type 'DispatchQueue' in scope
351 |         resultExpireDuration: TimeInterval,
352 |         taskQueue: DispatchQueue = DispatchQueue.global(),
353 |         callbackQueue: DispatchQueue = DispatchQueue.global(),
    |                        `- error: cannot find type 'DispatchQueue' in scope
354 |         task: @escaping CallbackExecution
355 |     ) {
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:393:20: error: cannot find type 'DispatchQueue' in scope
391 |         retry: RetryCount = .never,
392 |         resultExpireDuration: TimeInterval,
393 |         taskQueue: DispatchQueue = DispatchQueue.global(),
    |                    `- error: cannot find type 'DispatchQueue' in scope
394 |         callbackQueue: DispatchQueue = DispatchQueue.global(),
395 |         task: @escaping AsyncExecution
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:394:24: error: cannot find type 'DispatchQueue' in scope
392 |         resultExpireDuration: TimeInterval,
393 |         taskQueue: DispatchQueue = DispatchQueue.global(),
394 |         callbackQueue: DispatchQueue = DispatchQueue.global(),
    |                        `- error: cannot find type 'DispatchQueue' in scope
395 |         task: @escaping AsyncExecution
396 |     ) {
/host/spi-builder-workspace/Sources/Monstore/MemoryCache/MemoryCache.swift:197:29: error: cannot find 'DispatchSemaphore' in scope
195 |
196 |     /// DispatchSemaphore for thread synchronization (used when enableThreadSynchronization=true)
197 |     private let semaphore = DispatchSemaphore(value: 1)
    |                             `- error: cannot find 'DispatchSemaphore' in scope
198 |
199 |     /// The configuration for this cache instance.
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:18:38: error: cannot find type 'mach_timebase_info_data_t' in scope
 16 |
 17 |     /// Mach timebase info for converting between different time units. Cached for performance.
 18 |     private static let timebaseInfo: mach_timebase_info_data_t = {
    |                                      `- error: cannot find type 'mach_timebase_info_data_t' in scope
 19 |         var info = mach_timebase_info_data_t()
 20 |         mach_timebase_info(&info)
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:19:20: error: cannot find 'mach_timebase_info_data_t' in scope
 17 |     /// Mach timebase info for converting between different time units. Cached for performance.
 18 |     private static let timebaseInfo: mach_timebase_info_data_t = {
 19 |         var info = mach_timebase_info_data_t()
    |                    `- error: cannot find 'mach_timebase_info_data_t' in scope
 20 |         mach_timebase_info(&info)
 21 |         return info
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:20:9: error: cannot find 'mach_timebase_info' in scope
 18 |     private static let timebaseInfo: mach_timebase_info_data_t = {
 19 |         var info = mach_timebase_info_data_t()
 20 |         mach_timebase_info(&info)
    |         `- error: cannot find 'mach_timebase_info' in scope
 21 |         return info
 22 |     }()
/host/spi-builder-workspace/Sources/MonstraBase/TracingIDFactory.swift:223:24: error: cannot find 'os_unfair_lock' in scope
221 |     /// Uses `os_unfair_lock` for minimal overhead while providing mutual exclusion.
222 |     /// This lock protects the `sequentialCounter` during increment and ID calculation.
223 |     private var lock = os_unfair_lock()
    |                        `- error: cannot find 'os_unfair_lock' in scope
224 |
225 |     /// Core ID generation logic without thread safety (maximum performance).
[4/16] Compiling Monstra Heap.swift
[5/16] Compiling Monstra CacheStatistics.swift
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:18:38: error: cannot find type 'mach_timebase_info_data_t' in scope
 16 |
 17 |     /// Mach timebase info for converting between different time units. Cached for performance.
 18 |     private static let timebaseInfo: mach_timebase_info_data_t = {
    |                                      `- error: cannot find type 'mach_timebase_info_data_t' in scope
 19 |         var info = mach_timebase_info_data_t()
 20 |         mach_timebase_info(&info)
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:19:20: error: cannot find 'mach_timebase_info_data_t' in scope
 17 |     /// Mach timebase info for converting between different time units. Cached for performance.
 18 |     private static let timebaseInfo: mach_timebase_info_data_t = {
 19 |         var info = mach_timebase_info_data_t()
    |                    `- error: cannot find 'mach_timebase_info_data_t' in scope
 20 |         mach_timebase_info(&info)
 21 |         return info
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:20:9: error: cannot find 'mach_timebase_info' in scope
 18 |     private static let timebaseInfo: mach_timebase_info_data_t = {
 19 |         var info = mach_timebase_info_data_t()
 20 |         mach_timebase_info(&info)
    |         `- error: cannot find 'mach_timebase_info' in scope
 21 |         return info
 22 |     }()
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:45:29: error: cannot find 'mach_absolute_time' in scope
 43 |     /// Initialize with current CPU time.
 44 |     public init() {
 45 |         self.init(rawTicks: mach_absolute_time())
    |                             `- error: cannot find 'mach_absolute_time' in scope
 46 |     }
 47 |
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:100:51: error: cannot find 'NSEC_PER_SEC' in scope
 98 |     static func convertTicksToSeconds(_ ticks: UInt64) -> TimeInterval {
 99 |         let nanos = (ticks / UInt64(Self.timebaseInfo.denom)) * UInt64(Self.timebaseInfo.numer)
100 |         return TimeInterval(nanos) / TimeInterval(NSEC_PER_SEC)
    |                                                   `- error: cannot find 'NSEC_PER_SEC' in scope
101 |     }
102 | }
[6/16] Compiling Monstra CPUTimeStamp.swift
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:18:38: error: cannot find type 'mach_timebase_info_data_t' in scope
 16 |
 17 |     /// Mach timebase info for converting between different time units. Cached for performance.
 18 |     private static let timebaseInfo: mach_timebase_info_data_t = {
    |                                      `- error: cannot find type 'mach_timebase_info_data_t' in scope
 19 |         var info = mach_timebase_info_data_t()
 20 |         mach_timebase_info(&info)
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:19:20: error: cannot find 'mach_timebase_info_data_t' in scope
 17 |     /// Mach timebase info for converting between different time units. Cached for performance.
 18 |     private static let timebaseInfo: mach_timebase_info_data_t = {
 19 |         var info = mach_timebase_info_data_t()
    |                    `- error: cannot find 'mach_timebase_info_data_t' in scope
 20 |         mach_timebase_info(&info)
 21 |         return info
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:20:9: error: cannot find 'mach_timebase_info' in scope
 18 |     private static let timebaseInfo: mach_timebase_info_data_t = {
 19 |         var info = mach_timebase_info_data_t()
 20 |         mach_timebase_info(&info)
    |         `- error: cannot find 'mach_timebase_info' in scope
 21 |         return info
 22 |     }()
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:45:29: error: cannot find 'mach_absolute_time' in scope
 43 |     /// Initialize with current CPU time.
 44 |     public init() {
 45 |         self.init(rawTicks: mach_absolute_time())
    |                             `- error: cannot find 'mach_absolute_time' in scope
 46 |     }
 47 |
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:100:51: error: cannot find 'NSEC_PER_SEC' in scope
 98 |     static func convertTicksToSeconds(_ ticks: UInt64) -> TimeInterval {
 99 |         let nanos = (ticks / UInt64(Self.timebaseInfo.denom)) * UInt64(Self.timebaseInfo.numer)
100 |         return TimeInterval(nanos) / TimeInterval(NSEC_PER_SEC)
    |                                                   `- error: cannot find 'NSEC_PER_SEC' in scope
101 |     }
102 | }
[7/16] Compiling Monstra TracingIDFactory.swift
/host/spi-builder-workspace/Sources/MonstraBase/TracingIDFactory.swift:223:24: error: cannot find 'os_unfair_lock' in scope
221 |     /// Uses `os_unfair_lock` for minimal overhead while providing mutual exclusion.
222 |     /// This lock protects the `sequentialCounter` during increment and ID calculation.
223 |     private var lock = os_unfair_lock()
    |                        `- error: cannot find 'os_unfair_lock' in scope
224 |
225 |     /// Core ID generation logic without thread safety (maximum performance).
/host/spi-builder-workspace/Sources/MonstraBase/TracingIDFactory.swift:280:9: error: cannot find 'os_unfair_lock_lock' in scope
278 |     private mutating func _safe_next() -> Int64 {
279 |         // Acquire exclusive access to mutable state
280 |         os_unfair_lock_lock(&lock)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
281 |         defer {
282 |             // Ensure lock is always released, even if _unsafe_next() throws or returns early
/host/spi-builder-workspace/Sources/MonstraBase/TracingIDFactory.swift:283:13: error: cannot find 'os_unfair_lock_unlock' in scope
281 |         defer {
282 |             // Ensure lock is always released, even if _unsafe_next() throws or returns early
283 |             os_unfair_lock_unlock(&self.lock)
    |             `- error: cannot find 'os_unfair_lock_unlock' in scope
284 |         }
285 |
[8/16] Compiling Monstra PriorityLRUQueue.swift
[9/16] Compiling Monstra TTLPriorityLRUQueue.swift
[10/16] Compiling Monstra DoublyLink.swift
[11/16] Compiling Monstra HashQueue.swift
[12/16] Compiling Monstra MonoTask.swift
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:83:28: error: cannot find type 'DispatchQueue' in scope
 81 |
 82 |     /// Queue where the actual task execution happens (can be background for expensive operations)
 83 |     private let taskQueue: DispatchQueue
    |                            `- error: cannot find type 'DispatchQueue' in scope
 84 |
 85 |     /// Queue where callbacks are invoked (can be main queue for UI updates)
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:86:32: error: cannot find type 'DispatchQueue' in scope
 84 |
 85 |     /// Queue where callbacks are invoked (can be main queue for UI updates)
 86 |     private let callbackQueue: DispatchQueue
    |                                `- error: cannot find type 'DispatchQueue' in scope
 87 |
 88 |     // MARK: - Result Caching State
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:94:29: error: cannot find 'DispatchSemaphore' in scope
 92 |
 93 |     /// Semaphore protecting result and expiration state (semaphore)
 94 |     private var semaphore = DispatchSemaphore(value: 1)
    |                             `- error: cannot find 'DispatchSemaphore' in scope
 95 |
 96 |     // MARK: - Execution Tracking
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:123:20: error: cannot find type 'DispatchQueue' in scope
121 |         retry: RetryCount,
122 |         resultExpireDuration: TimeInterval,
123 |         taskQueue: DispatchQueue,
    |                    `- error: cannot find type 'DispatchQueue' in scope
124 |         callbackQueue: DispatchQueue,
125 |         executeBlock: @escaping (@escaping ResultCallback) -> Void
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:124:24: error: cannot find type 'DispatchQueue' in scope
122 |         resultExpireDuration: TimeInterval,
123 |         taskQueue: DispatchQueue,
124 |         callbackQueue: DispatchQueue,
    |                        `- error: cannot find type 'DispatchQueue' in scope
125 |         executeBlock: @escaping (@escaping ResultCallback) -> Void
126 |     ) {
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:352:20: error: cannot find type 'DispatchQueue' in scope
350 |         retry: RetryCount = .never,
351 |         resultExpireDuration: TimeInterval,
352 |         taskQueue: DispatchQueue = DispatchQueue.global(),
    |                    `- error: cannot find type 'DispatchQueue' in scope
353 |         callbackQueue: DispatchQueue = DispatchQueue.global(),
354 |         task: @escaping CallbackExecution
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:353:24: error: cannot find type 'DispatchQueue' in scope
351 |         resultExpireDuration: TimeInterval,
352 |         taskQueue: DispatchQueue = DispatchQueue.global(),
353 |         callbackQueue: DispatchQueue = DispatchQueue.global(),
    |                        `- error: cannot find type 'DispatchQueue' in scope
354 |         task: @escaping CallbackExecution
355 |     ) {
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:393:20: error: cannot find type 'DispatchQueue' in scope
391 |         retry: RetryCount = .never,
392 |         resultExpireDuration: TimeInterval,
393 |         taskQueue: DispatchQueue = DispatchQueue.global(),
    |                    `- error: cannot find type 'DispatchQueue' in scope
394 |         callbackQueue: DispatchQueue = DispatchQueue.global(),
395 |         task: @escaping AsyncExecution
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:394:24: error: cannot find type 'DispatchQueue' in scope
392 |         resultExpireDuration: TimeInterval,
393 |         taskQueue: DispatchQueue = DispatchQueue.global(),
394 |         callbackQueue: DispatchQueue = DispatchQueue.global(),
    |                        `- error: cannot find type 'DispatchQueue' in scope
395 |         task: @escaping AsyncExecution
396 |     ) {
/host/spi-builder-workspace/Sources/Monstore/MemoryCache/MemoryCache.swift:197:29: error: cannot find 'DispatchSemaphore' in scope
195 |
196 |     /// DispatchSemaphore for thread synchronization (used when enableThreadSynchronization=true)
197 |     private let semaphore = DispatchSemaphore(value: 1)
    |                             `- error: cannot find 'DispatchSemaphore' in scope
198 |
199 |     /// The configuration for this cache instance.
[13/16] Compiling Monstra MemoryCache.swift
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:83:28: error: cannot find type 'DispatchQueue' in scope
 81 |
 82 |     /// Queue where the actual task execution happens (can be background for expensive operations)
 83 |     private let taskQueue: DispatchQueue
    |                            `- error: cannot find type 'DispatchQueue' in scope
 84 |
 85 |     /// Queue where callbacks are invoked (can be main queue for UI updates)
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:86:32: error: cannot find type 'DispatchQueue' in scope
 84 |
 85 |     /// Queue where callbacks are invoked (can be main queue for UI updates)
 86 |     private let callbackQueue: DispatchQueue
    |                                `- error: cannot find type 'DispatchQueue' in scope
 87 |
 88 |     // MARK: - Result Caching State
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:94:29: error: cannot find 'DispatchSemaphore' in scope
 92 |
 93 |     /// Semaphore protecting result and expiration state (semaphore)
 94 |     private var semaphore = DispatchSemaphore(value: 1)
    |                             `- error: cannot find 'DispatchSemaphore' in scope
 95 |
 96 |     // MARK: - Execution Tracking
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:123:20: error: cannot find type 'DispatchQueue' in scope
121 |         retry: RetryCount,
122 |         resultExpireDuration: TimeInterval,
123 |         taskQueue: DispatchQueue,
    |                    `- error: cannot find type 'DispatchQueue' in scope
124 |         callbackQueue: DispatchQueue,
125 |         executeBlock: @escaping (@escaping ResultCallback) -> Void
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:124:24: error: cannot find type 'DispatchQueue' in scope
122 |         resultExpireDuration: TimeInterval,
123 |         taskQueue: DispatchQueue,
124 |         callbackQueue: DispatchQueue,
    |                        `- error: cannot find type 'DispatchQueue' in scope
125 |         executeBlock: @escaping (@escaping ResultCallback) -> Void
126 |     ) {
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:352:20: error: cannot find type 'DispatchQueue' in scope
350 |         retry: RetryCount = .never,
351 |         resultExpireDuration: TimeInterval,
352 |         taskQueue: DispatchQueue = DispatchQueue.global(),
    |                    `- error: cannot find type 'DispatchQueue' in scope
353 |         callbackQueue: DispatchQueue = DispatchQueue.global(),
354 |         task: @escaping CallbackExecution
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:353:24: error: cannot find type 'DispatchQueue' in scope
351 |         resultExpireDuration: TimeInterval,
352 |         taskQueue: DispatchQueue = DispatchQueue.global(),
353 |         callbackQueue: DispatchQueue = DispatchQueue.global(),
    |                        `- error: cannot find type 'DispatchQueue' in scope
354 |         task: @escaping CallbackExecution
355 |     ) {
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:393:20: error: cannot find type 'DispatchQueue' in scope
391 |         retry: RetryCount = .never,
392 |         resultExpireDuration: TimeInterval,
393 |         taskQueue: DispatchQueue = DispatchQueue.global(),
    |                    `- error: cannot find type 'DispatchQueue' in scope
394 |         callbackQueue: DispatchQueue = DispatchQueue.global(),
395 |         task: @escaping AsyncExecution
/host/spi-builder-workspace/Sources/Monstask/MonoTask.swift:394:24: error: cannot find type 'DispatchQueue' in scope
392 |         resultExpireDuration: TimeInterval,
393 |         taskQueue: DispatchQueue = DispatchQueue.global(),
394 |         callbackQueue: DispatchQueue = DispatchQueue.global(),
    |                        `- error: cannot find type 'DispatchQueue' in scope
395 |         task: @escaping AsyncExecution
396 |     ) {
/host/spi-builder-workspace/Sources/Monstore/MemoryCache/MemoryCache.swift:197:29: error: cannot find 'DispatchSemaphore' in scope
195 |
196 |     /// DispatchSemaphore for thread synchronization (used when enableThreadSynchronization=true)
197 |     private let semaphore = DispatchSemaphore(value: 1)
    |                             `- error: cannot find 'DispatchSemaphore' in scope
198 |
199 |     /// The configuration for this cache instance.
[14/16] Compiling Monstra KVHeavyTasksManager.swift
/host/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:633:28: error: cannot find type 'DispatchSemaphore' in scope
 631 |     /// The semaphore is used with minimal scope to ensure high concurrency while maintaining
 632 |     /// data integrity and preventing race conditions.
 633 |     private var semaphore: DispatchSemaphore = .init(value: 1)
     |                            `- error: cannot find type 'DispatchSemaphore' in scope
 634 | }
 635 |
/host/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:753:13: error: cannot find 'DispatchQueue' in scope
 751 |         case let .hitNonNullElement(element):
 752 |             // Cache hit with valid result - return immediately without task execution
 753 |             DispatchQueue.global().async {
     |             `- error: cannot find 'DispatchQueue' in scope
 754 |                 resultCallback?(.success(element))
 755 |             }
/host/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:760:13: error: cannot find 'DispatchQueue' in scope
 758 |         case .hitNullElement, .invalidKey:
 759 |             // Key rejected by cache validation - return nil immediately (invalid request)
 760 |             DispatchQueue.global().async {
     |             `- error: cannot find 'DispatchQueue' in scope
 761 |                 resultCallback?(.success(nil))
 762 |             }
/host/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1011:17: error: cannot find 'DispatchQueue' in scope
1009 |             dataProviders[key] = DataProvider(key: key, customEventPublisher: { [weak self] customEvent in
1010 |                 // Handle custom events (progress updates, status changes, etc.)
1011 |                 DispatchQueue.global().async { [weak self] in
     |                 `- error: cannot find 'DispatchQueue' in scope
1012 |                     guard let taskManager = self else { return }
1013 |                     taskManager.semaphore.wait()
/host/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1018:25: error: cannot find 'DispatchQueue' in scope
1016 |                     // Broadcast event to all registered observers for this key
1017 |                     taskManager.customEventObservers[key]?.forEach { observer in
1018 |                         DispatchQueue.global().async {
     |                         `- error: cannot find 'DispatchQueue' in scope
1019 |                             observer(customEvent)
1020 |                         }
/host/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1025:17: error: cannot find 'DispatchQueue' in scope
1023 |             }, resultPublisher: { [weak self] result in
1024 |                 // Handle final task result (success or failure)
1025 |                 DispatchQueue.global().async { [weak self] in
     |                 `- error: cannot find 'DispatchQueue' in scope
1026 |                     guard let taskManager = self else { return }
1027 |                     taskManager.semaphore.wait()
/host/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1118:13: error: cannot find 'DispatchQueue' in scope
1116 |         // Deliver result to all registered callbacks asynchronously
1117 |         resultCallbacks[key]?.forEach { callback in
1118 |             DispatchQueue.global().async {
     |             `- error: cannot find 'DispatchQueue' in scope
1119 |                 callback(result)
1120 |             }
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:400:29: error: cannot find 'DispatchSemaphore' in scope
398 |
399 |     /// DispatchSemaphore for thread synchronization (used when enableThreadSynchronization=true)
400 |     private let semaphore = DispatchSemaphore(value: 1)
    |                             `- error: cannot find 'DispatchSemaphore' in scope
401 |
402 |     /// Internal method that handles the core fetching logic with cache integration.
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:418:24: error: cannot find type 'DispatchQueue' in scope
416 |     private func fetchWithCallback(
417 |         keys: [K],
418 |         dispatchQueue: DispatchQueue? = nil,
    |                        `- error: cannot find type 'DispatchQueue' in scope
419 |         completion: @escaping ResultCallback
420 |     ) {
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:466:58: error: cannot find type 'DispatchQueue' in scope
464 |     }
465 |
466 |     private func consumeCallbacks(key: K, dispatchQueue: DispatchQueue, result: Result<Element?, Error>) {
    |                                                          `- error: cannot find type 'DispatchQueue' in scope
467 |         resultCallbacks[key]?.forEach { callback in
468 |             dispatchQueue.async { callback(key, result) }
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:235:56: error: cannot infer contextual base in reference to member 'global'
233 |     ///   - completion: Callback that receives the result for the key
234 |     func fetch(key: K, completion: @escaping ResultCallback) {
235 |         fetchWithCallback(keys: [key], dispatchQueue: .global(), completion: completion)
    |                                                        `- error: cannot infer contextual base in reference to member 'global'
236 |     }
237 |
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:253:55: error: cannot infer contextual base in reference to member 'global'
251 |     ///   - completion: Callback that receives results for each key (called once per key)
252 |     func fetch(keys: [K], completion: @escaping ResultCallback) {
253 |         fetchWithCallback(keys: keys, dispatchQueue: .global(), completion: completion)
    |                                                       `- error: cannot infer contextual base in reference to member 'global'
254 |     }
255 |
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:280:32: error: cannot find 'DispatchSemaphore' in scope
278 |
279 |         var results = [K: Result<Element?, Error>]()
280 |         let resultsSemaphore = DispatchSemaphore(value: 1)
    |                                `- error: cannot find 'DispatchSemaphore' in scope
281 |         let keysCount = Set<K>(keys).count
282 |         fetchWithCallback(keys: keys) { key, result in
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:289:17: error: cannot find 'DispatchQueue' in scope
287 |                 // Capture results dictionary safely to prevent memory corruption
288 |                 let capturedResults = results
289 |                 DispatchQueue.global().async {
    |                 `- error: cannot find 'DispatchQueue' in scope
290 |                     multiCallback(
291 |                         keys.map { ($0, capturedResults[$0] ?? .success(nil)) }
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:423:46: error: cannot find 'DispatchQueue' in scope
421 |         semaphore.wait()
422 |         defer { semaphore.signal() }
423 |         let dispatchQueue = dispatchQueue ?? DispatchQueue.global()
    |                                              `- error: cannot find 'DispatchQueue' in scope
424 |         var remoteKeys = [K]()
425 |         for key in keys {
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:444:13: error: cannot find 'DispatchQueue' in scope
442 |
443 |         startTaskExecution(keys: _remoteKeys) { [weak self] key, res in
444 |             DispatchQueue.global().async {
    |             `- error: cannot find 'DispatchQueue' in scope
445 |                 guard let self else { return }
446 |                 self.semaphore.wait()
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:549:9: error: cannot find 'DispatchQueue' in scope
547 |         }
548 |
549 |         DispatchQueue.global().async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
550 |             guard let self else { return }
551 |
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:553:17: error: cannot find 'DispatchQueue' in scope
551 |
552 |             _executeMonoprovide(key: key, provide: provide) { [weak self] key, res in
553 |                 DispatchQueue.global().async { [weak self] in
    |                 `- error: cannot find 'DispatchQueue' in scope
554 |                     guard let self else { return }
555 |                     semaphore.wait()
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:591:9: error: cannot find 'DispatchQueue' in scope
589 |         }
590 |
591 |         DispatchQueue.global().async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
592 |             guard let self else { return }
593 |             _executeMultiprovide(keys: keys, provide: provide) { [weak self] res in
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:594:17: error: cannot find 'DispatchQueue' in scope
592 |             guard let self else { return }
593 |             _executeMultiprovide(keys: keys, provide: provide) { [weak self] res in
594 |                 DispatchQueue.global().async { [weak self] in
    |                 `- error: cannot find 'DispatchQueue' in scope
595 |                     guard let self else { return }
596 |                     semaphore.wait()
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:599:42: error: cannot find 'DispatchQueue' in scope
597 |                     defer { semaphore.signal() }
598 |                     _startOneMultiprovideThread(batchCount: batchCount, provide: provide, callback: callback)
599 |                     res.forEach { res in DispatchQueue.global().async { callback(res.0, res.1) } }
    |                                          `- error: cannot find 'DispatchQueue' in scope
600 |                 }
601 |             }
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:620:21: error: cannot find 'Thread' in scope
618 |                 let retryCount = retryCount ?? self.config.retryCount
619 |                 if retryCount.shouldRetry {
620 |                     Thread.sleep(forTimeInterval: retryCount.timeInterval)
    |                     `- error: cannot find 'Thread' in scope
621 |                     self._executeMonoprovide(
622 |                         key: key,
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:655:21: error: cannot find 'Thread' in scope
653 |                 let retryCount = retryCount ?? self.config.retryCount
654 |                 if retryCount.shouldRetry {
655 |                     Thread.sleep(forTimeInterval: retryCount.timeInterval)
    |                     `- error: cannot find 'Thread' in scope
656 |                     self._executeMultiprovide(
657 |                         keys: keys,
[15/16] Compiling Monstra KVLightTasksManager.swift
/host/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:633:28: error: cannot find type 'DispatchSemaphore' in scope
 631 |     /// The semaphore is used with minimal scope to ensure high concurrency while maintaining
 632 |     /// data integrity and preventing race conditions.
 633 |     private var semaphore: DispatchSemaphore = .init(value: 1)
     |                            `- error: cannot find type 'DispatchSemaphore' in scope
 634 | }
 635 |
/host/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:753:13: error: cannot find 'DispatchQueue' in scope
 751 |         case let .hitNonNullElement(element):
 752 |             // Cache hit with valid result - return immediately without task execution
 753 |             DispatchQueue.global().async {
     |             `- error: cannot find 'DispatchQueue' in scope
 754 |                 resultCallback?(.success(element))
 755 |             }
/host/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:760:13: error: cannot find 'DispatchQueue' in scope
 758 |         case .hitNullElement, .invalidKey:
 759 |             // Key rejected by cache validation - return nil immediately (invalid request)
 760 |             DispatchQueue.global().async {
     |             `- error: cannot find 'DispatchQueue' in scope
 761 |                 resultCallback?(.success(nil))
 762 |             }
/host/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1011:17: error: cannot find 'DispatchQueue' in scope
1009 |             dataProviders[key] = DataProvider(key: key, customEventPublisher: { [weak self] customEvent in
1010 |                 // Handle custom events (progress updates, status changes, etc.)
1011 |                 DispatchQueue.global().async { [weak self] in
     |                 `- error: cannot find 'DispatchQueue' in scope
1012 |                     guard let taskManager = self else { return }
1013 |                     taskManager.semaphore.wait()
/host/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1018:25: error: cannot find 'DispatchQueue' in scope
1016 |                     // Broadcast event to all registered observers for this key
1017 |                     taskManager.customEventObservers[key]?.forEach { observer in
1018 |                         DispatchQueue.global().async {
     |                         `- error: cannot find 'DispatchQueue' in scope
1019 |                             observer(customEvent)
1020 |                         }
/host/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1025:17: error: cannot find 'DispatchQueue' in scope
1023 |             }, resultPublisher: { [weak self] result in
1024 |                 // Handle final task result (success or failure)
1025 |                 DispatchQueue.global().async { [weak self] in
     |                 `- error: cannot find 'DispatchQueue' in scope
1026 |                     guard let taskManager = self else { return }
1027 |                     taskManager.semaphore.wait()
/host/spi-builder-workspace/Sources/Monstask/KVHeavyTasksManager.swift:1118:13: error: cannot find 'DispatchQueue' in scope
1116 |         // Deliver result to all registered callbacks asynchronously
1117 |         resultCallbacks[key]?.forEach { callback in
1118 |             DispatchQueue.global().async {
     |             `- error: cannot find 'DispatchQueue' in scope
1119 |                 callback(result)
1120 |             }
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:400:29: error: cannot find 'DispatchSemaphore' in scope
398 |
399 |     /// DispatchSemaphore for thread synchronization (used when enableThreadSynchronization=true)
400 |     private let semaphore = DispatchSemaphore(value: 1)
    |                             `- error: cannot find 'DispatchSemaphore' in scope
401 |
402 |     /// Internal method that handles the core fetching logic with cache integration.
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:418:24: error: cannot find type 'DispatchQueue' in scope
416 |     private func fetchWithCallback(
417 |         keys: [K],
418 |         dispatchQueue: DispatchQueue? = nil,
    |                        `- error: cannot find type 'DispatchQueue' in scope
419 |         completion: @escaping ResultCallback
420 |     ) {
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:466:58: error: cannot find type 'DispatchQueue' in scope
464 |     }
465 |
466 |     private func consumeCallbacks(key: K, dispatchQueue: DispatchQueue, result: Result<Element?, Error>) {
    |                                                          `- error: cannot find type 'DispatchQueue' in scope
467 |         resultCallbacks[key]?.forEach { callback in
468 |             dispatchQueue.async { callback(key, result) }
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:235:56: error: cannot infer contextual base in reference to member 'global'
233 |     ///   - completion: Callback that receives the result for the key
234 |     func fetch(key: K, completion: @escaping ResultCallback) {
235 |         fetchWithCallback(keys: [key], dispatchQueue: .global(), completion: completion)
    |                                                        `- error: cannot infer contextual base in reference to member 'global'
236 |     }
237 |
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:253:55: error: cannot infer contextual base in reference to member 'global'
251 |     ///   - completion: Callback that receives results for each key (called once per key)
252 |     func fetch(keys: [K], completion: @escaping ResultCallback) {
253 |         fetchWithCallback(keys: keys, dispatchQueue: .global(), completion: completion)
    |                                                       `- error: cannot infer contextual base in reference to member 'global'
254 |     }
255 |
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:280:32: error: cannot find 'DispatchSemaphore' in scope
278 |
279 |         var results = [K: Result<Element?, Error>]()
280 |         let resultsSemaphore = DispatchSemaphore(value: 1)
    |                                `- error: cannot find 'DispatchSemaphore' in scope
281 |         let keysCount = Set<K>(keys).count
282 |         fetchWithCallback(keys: keys) { key, result in
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:289:17: error: cannot find 'DispatchQueue' in scope
287 |                 // Capture results dictionary safely to prevent memory corruption
288 |                 let capturedResults = results
289 |                 DispatchQueue.global().async {
    |                 `- error: cannot find 'DispatchQueue' in scope
290 |                     multiCallback(
291 |                         keys.map { ($0, capturedResults[$0] ?? .success(nil)) }
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:423:46: error: cannot find 'DispatchQueue' in scope
421 |         semaphore.wait()
422 |         defer { semaphore.signal() }
423 |         let dispatchQueue = dispatchQueue ?? DispatchQueue.global()
    |                                              `- error: cannot find 'DispatchQueue' in scope
424 |         var remoteKeys = [K]()
425 |         for key in keys {
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:444:13: error: cannot find 'DispatchQueue' in scope
442 |
443 |         startTaskExecution(keys: _remoteKeys) { [weak self] key, res in
444 |             DispatchQueue.global().async {
    |             `- error: cannot find 'DispatchQueue' in scope
445 |                 guard let self else { return }
446 |                 self.semaphore.wait()
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:549:9: error: cannot find 'DispatchQueue' in scope
547 |         }
548 |
549 |         DispatchQueue.global().async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
550 |             guard let self else { return }
551 |
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:553:17: error: cannot find 'DispatchQueue' in scope
551 |
552 |             _executeMonoprovide(key: key, provide: provide) { [weak self] key, res in
553 |                 DispatchQueue.global().async { [weak self] in
    |                 `- error: cannot find 'DispatchQueue' in scope
554 |                     guard let self else { return }
555 |                     semaphore.wait()
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:591:9: error: cannot find 'DispatchQueue' in scope
589 |         }
590 |
591 |         DispatchQueue.global().async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
592 |             guard let self else { return }
593 |             _executeMultiprovide(keys: keys, provide: provide) { [weak self] res in
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:594:17: error: cannot find 'DispatchQueue' in scope
592 |             guard let self else { return }
593 |             _executeMultiprovide(keys: keys, provide: provide) { [weak self] res in
594 |                 DispatchQueue.global().async { [weak self] in
    |                 `- error: cannot find 'DispatchQueue' in scope
595 |                     guard let self else { return }
596 |                     semaphore.wait()
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:599:42: error: cannot find 'DispatchQueue' in scope
597 |                     defer { semaphore.signal() }
598 |                     _startOneMultiprovideThread(batchCount: batchCount, provide: provide, callback: callback)
599 |                     res.forEach { res in DispatchQueue.global().async { callback(res.0, res.1) } }
    |                                          `- error: cannot find 'DispatchQueue' in scope
600 |                 }
601 |             }
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:620:21: error: cannot find 'Thread' in scope
618 |                 let retryCount = retryCount ?? self.config.retryCount
619 |                 if retryCount.shouldRetry {
620 |                     Thread.sleep(forTimeInterval: retryCount.timeInterval)
    |                     `- error: cannot find 'Thread' in scope
621 |                     self._executeMonoprovide(
622 |                         key: key,
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:655:21: error: cannot find 'Thread' in scope
653 |                 let retryCount = retryCount ?? self.config.retryCount
654 |                 if retryCount.shouldRetry {
655 |                     Thread.sleep(forTimeInterval: retryCount.timeInterval)
    |                     `- error: cannot find 'Thread' in scope
656 |                     self._executeMultiprovide(
657 |                         keys: keys,
[16/16] Compiling Monstra RetryCount.swift
BUILD FAILURE 6.3 wasm