The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftLI, reference main (7c9d52), with Swift 6.2 for Wasm on 11 Nov 2026 01:10:32 UTC.

Build Command

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

Build Log

150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:150:13: error: cannot find 'DispatchQueue' in scope
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
150 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
151 |                 StateObserverRegistry.shared.notifyChange()
152 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:9: error: cannot find 'signal' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:16: error: cannot find 'SIGWINCH' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                `- error: cannot find 'SIGWINCH' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:26: error: cannot find 'SIG_DFL' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                          `- error: cannot find 'SIG_DFL' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:9: error: cannot find 'signal' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:16: error: cannot find 'SIGINT' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                `- error: cannot find 'SIGINT' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:24: error: cannot find 'SIG_DFL' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                        `- error: cannot find 'SIG_DFL' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:138:32: error: cannot find type 'DispatchSourceTimer' in scope
 136 |     // "flick" feel as native scroll views. A new gesture cancels any in-
 137 |     // flight momentum and restarts it from the new velocity.
 138 |     private var momentumTimer: DispatchSourceTimer?
     |                                `- error: cannot find type 'DispatchSourceTimer' in scope
 139 |     private var momentumScrollID: String?
 140 |     private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:21: error: cannot find 'DispatchSource' in scope
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                     `- error: cannot find 'DispatchSource' in scope
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:60: error: cannot infer contextual base in reference to member 'main'
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                                                            `- error: cannot infer contextual base in reference to member 'main'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:966:35: error: cannot call value of non-function type 'Date'
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
     |                                   `- error: cannot call value of non-function type 'Date'
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:967:36: error: cannot infer contextual base in reference to member 'milliseconds'
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
     |                                    `- error: cannot infer contextual base in reference to member 'milliseconds'
 968 |                        leeway: .milliseconds(2))
 969 |         timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:968:33: error: cannot infer contextual base in reference to member 'milliseconds'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
     |                                 `- error: cannot infer contextual base in reference to member 'milliseconds'
 969 |         timer.setEventHandler { [weak self] in
 970 |             guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
 71 |             // Schedule a redraw asynchronously so a focus change made *during* a
 72 |             // layout pass (e.g. from Tab syncing back) never re-enters rendering.
 73 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
 74 |                 AppRuntime.shared?.scheduleRender()
 75 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
 91 |             nonmutating set {
 92 |                 box.value = newValue
 93 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 94 |                     AppRuntime.shared?.scheduleRender()
 95 |                     StateObserverRegistry.shared.notifyChange()
[545/658] Compiling SwiftLI Bindable.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:31: error: 'current' is unavailable: RunLoop is not available on WASI
 82 |         performRender()
 83 |
 84 |         let runLoop = RunLoop.current
    |                               `- error: 'current' is unavailable: RunLoop is not available on WASI
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 |   open class var current: RunLoop { get }}
  |                  `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:25: error: value of type 'RunLoop' has no member 'run'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                         `- error: value of type 'RunLoop' has no member 'run'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:36: error: cannot infer contextual base in reference to member 'default'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                                    `- error: cannot infer contextual base in reference to member 'default'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:117:9: error: cannot find 'DispatchQueue' in scope
115 |
116 |         // Dispatch to main so renders are serialized with timer callbacks.
117 |         DispatchQueue.main.async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
118 |             self?.coalescedRender()
119 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:13: error: cannot find 'DispatchQueue' in scope
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |             `- error: cannot find 'DispatchQueue' in scope
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:54: error: cannot call value of non-function type 'Date'
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |                                                      `- error: cannot call value of non-function type 'Date'
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:9: error: cannot find 'signal' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:16: error: cannot find 'SIGINT' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:9: error: cannot find 'signal' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:16: error: cannot find 'SIGWINCH' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | ///   are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 |     private var source: DispatchSourceTimer?
   |                         `- error: cannot find type 'DispatchSourceTimer' in scope
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 |     private var source: DispatchSourceTimer?
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
   |                        `- error: cannot find type 'DispatchQueue' in scope
45 |     private let lock = NSLock()
46 |     /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 |     ///   - queue: The dispatch queue on which `action` is called.
54 |     ///     Defaults to `.main`.
55 |     public init(interval: TimeInterval, queue: DispatchQueue = .main) {
   |                                                `- error: cannot find type 'DispatchQueue' in scope
56 |         self.interval = interval
57 |         self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 |     public func start(action: @escaping @Sendable () -> Void) {
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
   |                         `- error: cannot find 'DispatchSource' in scope
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
70 |         newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
   |                                       `- error: cannot call value of non-function type 'Date'
70 |         newSource.setEventHandler(handler: action)
71 |         newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:9: error: cannot find 'signal' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:16: error: cannot find 'SIGINT' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:131:13: error: cannot find 'DispatchQueue' in scope
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
131 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
132 |                 BodyRenderingStore.shared.requestExit()
133 |                 AppRuntime.shared?.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:9: error: cannot find 'signal' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:16: error: cannot find 'SIGWINCH' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:150:13: error: cannot find 'DispatchQueue' in scope
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
150 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
151 |                 StateObserverRegistry.shared.notifyChange()
152 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:9: error: cannot find 'signal' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:16: error: cannot find 'SIGWINCH' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                `- error: cannot find 'SIGWINCH' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:26: error: cannot find 'SIG_DFL' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                          `- error: cannot find 'SIG_DFL' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:9: error: cannot find 'signal' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:16: error: cannot find 'SIGINT' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                `- error: cannot find 'SIGINT' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:24: error: cannot find 'SIG_DFL' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                        `- error: cannot find 'SIG_DFL' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:138:32: error: cannot find type 'DispatchSourceTimer' in scope
 136 |     // "flick" feel as native scroll views. A new gesture cancels any in-
 137 |     // flight momentum and restarts it from the new velocity.
 138 |     private var momentumTimer: DispatchSourceTimer?
     |                                `- error: cannot find type 'DispatchSourceTimer' in scope
 139 |     private var momentumScrollID: String?
 140 |     private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:21: error: cannot find 'DispatchSource' in scope
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                     `- error: cannot find 'DispatchSource' in scope
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:60: error: cannot infer contextual base in reference to member 'main'
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                                                            `- error: cannot infer contextual base in reference to member 'main'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:966:35: error: cannot call value of non-function type 'Date'
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
     |                                   `- error: cannot call value of non-function type 'Date'
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:967:36: error: cannot infer contextual base in reference to member 'milliseconds'
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
     |                                    `- error: cannot infer contextual base in reference to member 'milliseconds'
 968 |                        leeway: .milliseconds(2))
 969 |         timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:968:33: error: cannot infer contextual base in reference to member 'milliseconds'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
     |                                 `- error: cannot infer contextual base in reference to member 'milliseconds'
 969 |         timer.setEventHandler { [weak self] in
 970 |             guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
 71 |             // Schedule a redraw asynchronously so a focus change made *during* a
 72 |             // layout pass (e.g. from Tab syncing back) never re-enters rendering.
 73 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
 74 |                 AppRuntime.shared?.scheduleRender()
 75 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
 91 |             nonmutating set {
 92 |                 box.value = newValue
 93 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 94 |                     AppRuntime.shared?.scheduleRender()
 95 |                     StateObserverRegistry.shared.notifyChange()
[546/658] Compiling SwiftLI Binding.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:31: error: 'current' is unavailable: RunLoop is not available on WASI
 82 |         performRender()
 83 |
 84 |         let runLoop = RunLoop.current
    |                               `- error: 'current' is unavailable: RunLoop is not available on WASI
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 |   open class var current: RunLoop { get }}
  |                  `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:25: error: value of type 'RunLoop' has no member 'run'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                         `- error: value of type 'RunLoop' has no member 'run'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:36: error: cannot infer contextual base in reference to member 'default'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                                    `- error: cannot infer contextual base in reference to member 'default'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:117:9: error: cannot find 'DispatchQueue' in scope
115 |
116 |         // Dispatch to main so renders are serialized with timer callbacks.
117 |         DispatchQueue.main.async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
118 |             self?.coalescedRender()
119 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:13: error: cannot find 'DispatchQueue' in scope
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |             `- error: cannot find 'DispatchQueue' in scope
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:54: error: cannot call value of non-function type 'Date'
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |                                                      `- error: cannot call value of non-function type 'Date'
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:9: error: cannot find 'signal' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:16: error: cannot find 'SIGINT' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:9: error: cannot find 'signal' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:16: error: cannot find 'SIGWINCH' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | ///   are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 |     private var source: DispatchSourceTimer?
   |                         `- error: cannot find type 'DispatchSourceTimer' in scope
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 |     private var source: DispatchSourceTimer?
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
   |                        `- error: cannot find type 'DispatchQueue' in scope
45 |     private let lock = NSLock()
46 |     /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 |     ///   - queue: The dispatch queue on which `action` is called.
54 |     ///     Defaults to `.main`.
55 |     public init(interval: TimeInterval, queue: DispatchQueue = .main) {
   |                                                `- error: cannot find type 'DispatchQueue' in scope
56 |         self.interval = interval
57 |         self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 |     public func start(action: @escaping @Sendable () -> Void) {
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
   |                         `- error: cannot find 'DispatchSource' in scope
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
70 |         newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
   |                                       `- error: cannot call value of non-function type 'Date'
70 |         newSource.setEventHandler(handler: action)
71 |         newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:9: error: cannot find 'signal' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:16: error: cannot find 'SIGINT' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:131:13: error: cannot find 'DispatchQueue' in scope
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
131 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
132 |                 BodyRenderingStore.shared.requestExit()
133 |                 AppRuntime.shared?.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:9: error: cannot find 'signal' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:16: error: cannot find 'SIGWINCH' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:150:13: error: cannot find 'DispatchQueue' in scope
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
150 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
151 |                 StateObserverRegistry.shared.notifyChange()
152 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:9: error: cannot find 'signal' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:16: error: cannot find 'SIGWINCH' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                `- error: cannot find 'SIGWINCH' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:26: error: cannot find 'SIG_DFL' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                          `- error: cannot find 'SIG_DFL' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:9: error: cannot find 'signal' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:16: error: cannot find 'SIGINT' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                `- error: cannot find 'SIGINT' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:24: error: cannot find 'SIG_DFL' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                        `- error: cannot find 'SIG_DFL' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:138:32: error: cannot find type 'DispatchSourceTimer' in scope
 136 |     // "flick" feel as native scroll views. A new gesture cancels any in-
 137 |     // flight momentum and restarts it from the new velocity.
 138 |     private var momentumTimer: DispatchSourceTimer?
     |                                `- error: cannot find type 'DispatchSourceTimer' in scope
 139 |     private var momentumScrollID: String?
 140 |     private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:21: error: cannot find 'DispatchSource' in scope
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                     `- error: cannot find 'DispatchSource' in scope
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:60: error: cannot infer contextual base in reference to member 'main'
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                                                            `- error: cannot infer contextual base in reference to member 'main'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:966:35: error: cannot call value of non-function type 'Date'
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
     |                                   `- error: cannot call value of non-function type 'Date'
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:967:36: error: cannot infer contextual base in reference to member 'milliseconds'
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
     |                                    `- error: cannot infer contextual base in reference to member 'milliseconds'
 968 |                        leeway: .milliseconds(2))
 969 |         timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:968:33: error: cannot infer contextual base in reference to member 'milliseconds'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
     |                                 `- error: cannot infer contextual base in reference to member 'milliseconds'
 969 |         timer.setEventHandler { [weak self] in
 970 |             guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
 71 |             // Schedule a redraw asynchronously so a focus change made *during* a
 72 |             // layout pass (e.g. from Tab syncing back) never re-enters rendering.
 73 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
 74 |                 AppRuntime.shared?.scheduleRender()
 75 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
 91 |             nonmutating set {
 92 |                 box.value = newValue
 93 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 94 |                     AppRuntime.shared?.scheduleRender()
 95 |                     StateObserverRegistry.shared.notifyChange()
[547/658] Compiling SwiftLI CLIApp.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:31: error: 'current' is unavailable: RunLoop is not available on WASI
 82 |         performRender()
 83 |
 84 |         let runLoop = RunLoop.current
    |                               `- error: 'current' is unavailable: RunLoop is not available on WASI
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 |   open class var current: RunLoop { get }}
  |                  `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:25: error: value of type 'RunLoop' has no member 'run'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                         `- error: value of type 'RunLoop' has no member 'run'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:36: error: cannot infer contextual base in reference to member 'default'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                                    `- error: cannot infer contextual base in reference to member 'default'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:117:9: error: cannot find 'DispatchQueue' in scope
115 |
116 |         // Dispatch to main so renders are serialized with timer callbacks.
117 |         DispatchQueue.main.async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
118 |             self?.coalescedRender()
119 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:13: error: cannot find 'DispatchQueue' in scope
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |             `- error: cannot find 'DispatchQueue' in scope
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:54: error: cannot call value of non-function type 'Date'
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |                                                      `- error: cannot call value of non-function type 'Date'
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:9: error: cannot find 'signal' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:16: error: cannot find 'SIGINT' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:9: error: cannot find 'signal' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:16: error: cannot find 'SIGWINCH' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | ///   are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 |     private var source: DispatchSourceTimer?
   |                         `- error: cannot find type 'DispatchSourceTimer' in scope
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 |     private var source: DispatchSourceTimer?
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
   |                        `- error: cannot find type 'DispatchQueue' in scope
45 |     private let lock = NSLock()
46 |     /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 |     ///   - queue: The dispatch queue on which `action` is called.
54 |     ///     Defaults to `.main`.
55 |     public init(interval: TimeInterval, queue: DispatchQueue = .main) {
   |                                                `- error: cannot find type 'DispatchQueue' in scope
56 |         self.interval = interval
57 |         self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 |     public func start(action: @escaping @Sendable () -> Void) {
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
   |                         `- error: cannot find 'DispatchSource' in scope
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
70 |         newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
   |                                       `- error: cannot call value of non-function type 'Date'
70 |         newSource.setEventHandler(handler: action)
71 |         newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:9: error: cannot find 'signal' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:16: error: cannot find 'SIGINT' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:131:13: error: cannot find 'DispatchQueue' in scope
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
131 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
132 |                 BodyRenderingStore.shared.requestExit()
133 |                 AppRuntime.shared?.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:9: error: cannot find 'signal' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:16: error: cannot find 'SIGWINCH' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:150:13: error: cannot find 'DispatchQueue' in scope
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
150 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
151 |                 StateObserverRegistry.shared.notifyChange()
152 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:9: error: cannot find 'signal' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:16: error: cannot find 'SIGWINCH' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                `- error: cannot find 'SIGWINCH' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:26: error: cannot find 'SIG_DFL' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                          `- error: cannot find 'SIG_DFL' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:9: error: cannot find 'signal' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:16: error: cannot find 'SIGINT' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                `- error: cannot find 'SIGINT' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:24: error: cannot find 'SIG_DFL' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                        `- error: cannot find 'SIG_DFL' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:138:32: error: cannot find type 'DispatchSourceTimer' in scope
 136 |     // "flick" feel as native scroll views. A new gesture cancels any in-
 137 |     // flight momentum and restarts it from the new velocity.
 138 |     private var momentumTimer: DispatchSourceTimer?
     |                                `- error: cannot find type 'DispatchSourceTimer' in scope
 139 |     private var momentumScrollID: String?
 140 |     private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:21: error: cannot find 'DispatchSource' in scope
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                     `- error: cannot find 'DispatchSource' in scope
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:60: error: cannot infer contextual base in reference to member 'main'
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                                                            `- error: cannot infer contextual base in reference to member 'main'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:966:35: error: cannot call value of non-function type 'Date'
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
     |                                   `- error: cannot call value of non-function type 'Date'
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:967:36: error: cannot infer contextual base in reference to member 'milliseconds'
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
     |                                    `- error: cannot infer contextual base in reference to member 'milliseconds'
 968 |                        leeway: .milliseconds(2))
 969 |         timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:968:33: error: cannot infer contextual base in reference to member 'milliseconds'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
     |                                 `- error: cannot infer contextual base in reference to member 'milliseconds'
 969 |         timer.setEventHandler { [weak self] in
 970 |             guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
 71 |             // Schedule a redraw asynchronously so a focus change made *during* a
 72 |             // layout pass (e.g. from Tab syncing back) never re-enters rendering.
 73 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
 74 |                 AppRuntime.shared?.scheduleRender()
 75 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
 91 |             nonmutating set {
 92 |                 box.value = newValue
 93 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 94 |                     AppRuntime.shared?.scheduleRender()
 95 |                     StateObserverRegistry.shared.notifyChange()
[548/658] Compiling SwiftLI CLITimer.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:31: error: 'current' is unavailable: RunLoop is not available on WASI
 82 |         performRender()
 83 |
 84 |         let runLoop = RunLoop.current
    |                               `- error: 'current' is unavailable: RunLoop is not available on WASI
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 |   open class var current: RunLoop { get }}
  |                  `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:25: error: value of type 'RunLoop' has no member 'run'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                         `- error: value of type 'RunLoop' has no member 'run'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:36: error: cannot infer contextual base in reference to member 'default'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                                    `- error: cannot infer contextual base in reference to member 'default'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:117:9: error: cannot find 'DispatchQueue' in scope
115 |
116 |         // Dispatch to main so renders are serialized with timer callbacks.
117 |         DispatchQueue.main.async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
118 |             self?.coalescedRender()
119 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:13: error: cannot find 'DispatchQueue' in scope
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |             `- error: cannot find 'DispatchQueue' in scope
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:54: error: cannot call value of non-function type 'Date'
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |                                                      `- error: cannot call value of non-function type 'Date'
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:9: error: cannot find 'signal' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:16: error: cannot find 'SIGINT' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:9: error: cannot find 'signal' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:16: error: cannot find 'SIGWINCH' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | ///   are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 |     private var source: DispatchSourceTimer?
   |                         `- error: cannot find type 'DispatchSourceTimer' in scope
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 |     private var source: DispatchSourceTimer?
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
   |                        `- error: cannot find type 'DispatchQueue' in scope
45 |     private let lock = NSLock()
46 |     /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 |     ///   - queue: The dispatch queue on which `action` is called.
54 |     ///     Defaults to `.main`.
55 |     public init(interval: TimeInterval, queue: DispatchQueue = .main) {
   |                                                `- error: cannot find type 'DispatchQueue' in scope
56 |         self.interval = interval
57 |         self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 |     public func start(action: @escaping @Sendable () -> Void) {
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
   |                         `- error: cannot find 'DispatchSource' in scope
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
70 |         newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
   |                                       `- error: cannot call value of non-function type 'Date'
70 |         newSource.setEventHandler(handler: action)
71 |         newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:9: error: cannot find 'signal' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:16: error: cannot find 'SIGINT' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:131:13: error: cannot find 'DispatchQueue' in scope
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
131 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
132 |                 BodyRenderingStore.shared.requestExit()
133 |                 AppRuntime.shared?.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:9: error: cannot find 'signal' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:16: error: cannot find 'SIGWINCH' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:150:13: error: cannot find 'DispatchQueue' in scope
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
150 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
151 |                 StateObserverRegistry.shared.notifyChange()
152 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:9: error: cannot find 'signal' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:16: error: cannot find 'SIGWINCH' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                `- error: cannot find 'SIGWINCH' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:26: error: cannot find 'SIG_DFL' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                          `- error: cannot find 'SIG_DFL' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:9: error: cannot find 'signal' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:16: error: cannot find 'SIGINT' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                `- error: cannot find 'SIGINT' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:24: error: cannot find 'SIG_DFL' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                        `- error: cannot find 'SIG_DFL' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:138:32: error: cannot find type 'DispatchSourceTimer' in scope
 136 |     // "flick" feel as native scroll views. A new gesture cancels any in-
 137 |     // flight momentum and restarts it from the new velocity.
 138 |     private var momentumTimer: DispatchSourceTimer?
     |                                `- error: cannot find type 'DispatchSourceTimer' in scope
 139 |     private var momentumScrollID: String?
 140 |     private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:21: error: cannot find 'DispatchSource' in scope
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                     `- error: cannot find 'DispatchSource' in scope
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:60: error: cannot infer contextual base in reference to member 'main'
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                                                            `- error: cannot infer contextual base in reference to member 'main'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:966:35: error: cannot call value of non-function type 'Date'
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
     |                                   `- error: cannot call value of non-function type 'Date'
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:967:36: error: cannot infer contextual base in reference to member 'milliseconds'
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
     |                                    `- error: cannot infer contextual base in reference to member 'milliseconds'
 968 |                        leeway: .milliseconds(2))
 969 |         timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:968:33: error: cannot infer contextual base in reference to member 'milliseconds'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
     |                                 `- error: cannot infer contextual base in reference to member 'milliseconds'
 969 |         timer.setEventHandler { [weak self] in
 970 |             guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
 71 |             // Schedule a redraw asynchronously so a focus change made *during* a
 72 |             // layout pass (e.g. from Tab syncing back) never re-enters rendering.
 73 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
 74 |                 AppRuntime.shared?.scheduleRender()
 75 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
 91 |             nonmutating set {
 92 |                 box.value = newValue
 93 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 94 |                     AppRuntime.shared?.scheduleRender()
 95 |                     StateObserverRegistry.shared.notifyChange()
[549/658] Compiling SwiftLI Command.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:31: error: 'current' is unavailable: RunLoop is not available on WASI
 82 |         performRender()
 83 |
 84 |         let runLoop = RunLoop.current
    |                               `- error: 'current' is unavailable: RunLoop is not available on WASI
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 |   open class var current: RunLoop { get }}
  |                  `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:25: error: value of type 'RunLoop' has no member 'run'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                         `- error: value of type 'RunLoop' has no member 'run'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:36: error: cannot infer contextual base in reference to member 'default'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                                    `- error: cannot infer contextual base in reference to member 'default'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:117:9: error: cannot find 'DispatchQueue' in scope
115 |
116 |         // Dispatch to main so renders are serialized with timer callbacks.
117 |         DispatchQueue.main.async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
118 |             self?.coalescedRender()
119 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:13: error: cannot find 'DispatchQueue' in scope
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |             `- error: cannot find 'DispatchQueue' in scope
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:54: error: cannot call value of non-function type 'Date'
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |                                                      `- error: cannot call value of non-function type 'Date'
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:9: error: cannot find 'signal' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:16: error: cannot find 'SIGINT' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:9: error: cannot find 'signal' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:16: error: cannot find 'SIGWINCH' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | ///   are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 |     private var source: DispatchSourceTimer?
   |                         `- error: cannot find type 'DispatchSourceTimer' in scope
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 |     private var source: DispatchSourceTimer?
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
   |                        `- error: cannot find type 'DispatchQueue' in scope
45 |     private let lock = NSLock()
46 |     /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 |     ///   - queue: The dispatch queue on which `action` is called.
54 |     ///     Defaults to `.main`.
55 |     public init(interval: TimeInterval, queue: DispatchQueue = .main) {
   |                                                `- error: cannot find type 'DispatchQueue' in scope
56 |         self.interval = interval
57 |         self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 |     public func start(action: @escaping @Sendable () -> Void) {
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
   |                         `- error: cannot find 'DispatchSource' in scope
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
70 |         newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
   |                                       `- error: cannot call value of non-function type 'Date'
70 |         newSource.setEventHandler(handler: action)
71 |         newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:9: error: cannot find 'signal' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:16: error: cannot find 'SIGINT' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:131:13: error: cannot find 'DispatchQueue' in scope
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
131 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
132 |                 BodyRenderingStore.shared.requestExit()
133 |                 AppRuntime.shared?.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:9: error: cannot find 'signal' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:16: error: cannot find 'SIGWINCH' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:150:13: error: cannot find 'DispatchQueue' in scope
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
150 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
151 |                 StateObserverRegistry.shared.notifyChange()
152 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:9: error: cannot find 'signal' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:16: error: cannot find 'SIGWINCH' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                `- error: cannot find 'SIGWINCH' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:26: error: cannot find 'SIG_DFL' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                          `- error: cannot find 'SIG_DFL' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:9: error: cannot find 'signal' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:16: error: cannot find 'SIGINT' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                `- error: cannot find 'SIGINT' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:24: error: cannot find 'SIG_DFL' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                        `- error: cannot find 'SIG_DFL' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:138:32: error: cannot find type 'DispatchSourceTimer' in scope
 136 |     // "flick" feel as native scroll views. A new gesture cancels any in-
 137 |     // flight momentum and restarts it from the new velocity.
 138 |     private var momentumTimer: DispatchSourceTimer?
     |                                `- error: cannot find type 'DispatchSourceTimer' in scope
 139 |     private var momentumScrollID: String?
 140 |     private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:21: error: cannot find 'DispatchSource' in scope
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                     `- error: cannot find 'DispatchSource' in scope
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:60: error: cannot infer contextual base in reference to member 'main'
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                                                            `- error: cannot infer contextual base in reference to member 'main'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:966:35: error: cannot call value of non-function type 'Date'
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
     |                                   `- error: cannot call value of non-function type 'Date'
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:967:36: error: cannot infer contextual base in reference to member 'milliseconds'
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
     |                                    `- error: cannot infer contextual base in reference to member 'milliseconds'
 968 |                        leeway: .milliseconds(2))
 969 |         timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:968:33: error: cannot infer contextual base in reference to member 'milliseconds'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
     |                                 `- error: cannot infer contextual base in reference to member 'milliseconds'
 969 |         timer.setEventHandler { [weak self] in
 970 |             guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
 71 |             // Schedule a redraw asynchronously so a focus change made *during* a
 72 |             // layout pass (e.g. from Tab syncing back) never re-enters rendering.
 73 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
 74 |                 AppRuntime.shared?.scheduleRender()
 75 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
 91 |             nonmutating set {
 92 |                 box.value = newValue
 93 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 94 |                     AppRuntime.shared?.scheduleRender()
 95 |                     StateObserverRegistry.shared.notifyChange()
[550/658] Compiling SwiftLI CommandState.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:31: error: 'current' is unavailable: RunLoop is not available on WASI
 82 |         performRender()
 83 |
 84 |         let runLoop = RunLoop.current
    |                               `- error: 'current' is unavailable: RunLoop is not available on WASI
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 |   open class var current: RunLoop { get }}
  |                  `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:25: error: value of type 'RunLoop' has no member 'run'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                         `- error: value of type 'RunLoop' has no member 'run'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:36: error: cannot infer contextual base in reference to member 'default'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                                    `- error: cannot infer contextual base in reference to member 'default'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:117:9: error: cannot find 'DispatchQueue' in scope
115 |
116 |         // Dispatch to main so renders are serialized with timer callbacks.
117 |         DispatchQueue.main.async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
118 |             self?.coalescedRender()
119 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:13: error: cannot find 'DispatchQueue' in scope
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |             `- error: cannot find 'DispatchQueue' in scope
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:54: error: cannot call value of non-function type 'Date'
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |                                                      `- error: cannot call value of non-function type 'Date'
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:9: error: cannot find 'signal' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:16: error: cannot find 'SIGINT' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:9: error: cannot find 'signal' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:16: error: cannot find 'SIGWINCH' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | ///   are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 |     private var source: DispatchSourceTimer?
   |                         `- error: cannot find type 'DispatchSourceTimer' in scope
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 |     private var source: DispatchSourceTimer?
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
   |                        `- error: cannot find type 'DispatchQueue' in scope
45 |     private let lock = NSLock()
46 |     /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 |     ///   - queue: The dispatch queue on which `action` is called.
54 |     ///     Defaults to `.main`.
55 |     public init(interval: TimeInterval, queue: DispatchQueue = .main) {
   |                                                `- error: cannot find type 'DispatchQueue' in scope
56 |         self.interval = interval
57 |         self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 |     public func start(action: @escaping @Sendable () -> Void) {
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
   |                         `- error: cannot find 'DispatchSource' in scope
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
70 |         newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
   |                                       `- error: cannot call value of non-function type 'Date'
70 |         newSource.setEventHandler(handler: action)
71 |         newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:9: error: cannot find 'signal' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:16: error: cannot find 'SIGINT' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:131:13: error: cannot find 'DispatchQueue' in scope
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
131 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
132 |                 BodyRenderingStore.shared.requestExit()
133 |                 AppRuntime.shared?.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:9: error: cannot find 'signal' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:16: error: cannot find 'SIGWINCH' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:150:13: error: cannot find 'DispatchQueue' in scope
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
150 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
151 |                 StateObserverRegistry.shared.notifyChange()
152 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:9: error: cannot find 'signal' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:16: error: cannot find 'SIGWINCH' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                `- error: cannot find 'SIGWINCH' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:26: error: cannot find 'SIG_DFL' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                          `- error: cannot find 'SIG_DFL' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:9: error: cannot find 'signal' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:16: error: cannot find 'SIGINT' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                `- error: cannot find 'SIGINT' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:24: error: cannot find 'SIG_DFL' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                        `- error: cannot find 'SIG_DFL' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:138:32: error: cannot find type 'DispatchSourceTimer' in scope
 136 |     // "flick" feel as native scroll views. A new gesture cancels any in-
 137 |     // flight momentum and restarts it from the new velocity.
 138 |     private var momentumTimer: DispatchSourceTimer?
     |                                `- error: cannot find type 'DispatchSourceTimer' in scope
 139 |     private var momentumScrollID: String?
 140 |     private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:21: error: cannot find 'DispatchSource' in scope
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                     `- error: cannot find 'DispatchSource' in scope
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:60: error: cannot infer contextual base in reference to member 'main'
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                                                            `- error: cannot infer contextual base in reference to member 'main'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:966:35: error: cannot call value of non-function type 'Date'
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
     |                                   `- error: cannot call value of non-function type 'Date'
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:967:36: error: cannot infer contextual base in reference to member 'milliseconds'
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
     |                                    `- error: cannot infer contextual base in reference to member 'milliseconds'
 968 |                        leeway: .milliseconds(2))
 969 |         timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:968:33: error: cannot infer contextual base in reference to member 'milliseconds'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
     |                                 `- error: cannot infer contextual base in reference to member 'milliseconds'
 969 |         timer.setEventHandler { [weak self] in
 970 |             guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
 71 |             // Schedule a redraw asynchronously so a focus change made *during* a
 72 |             // layout pass (e.g. from Tab syncing back) never re-enters rendering.
 73 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
 74 |                 AppRuntime.shared?.scheduleRender()
 75 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
 91 |             nonmutating set {
 92 |                 box.value = newValue
 93 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 94 |                     AppRuntime.shared?.scheduleRender()
 95 |                     StateObserverRegistry.shared.notifyChange()
[551/658] Compiling SwiftLI FocusCoordinator.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:31: error: 'current' is unavailable: RunLoop is not available on WASI
 82 |         performRender()
 83 |
 84 |         let runLoop = RunLoop.current
    |                               `- error: 'current' is unavailable: RunLoop is not available on WASI
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 |   open class var current: RunLoop { get }}
  |                  `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:25: error: value of type 'RunLoop' has no member 'run'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                         `- error: value of type 'RunLoop' has no member 'run'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:36: error: cannot infer contextual base in reference to member 'default'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                                    `- error: cannot infer contextual base in reference to member 'default'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:117:9: error: cannot find 'DispatchQueue' in scope
115 |
116 |         // Dispatch to main so renders are serialized with timer callbacks.
117 |         DispatchQueue.main.async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
118 |             self?.coalescedRender()
119 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:13: error: cannot find 'DispatchQueue' in scope
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |             `- error: cannot find 'DispatchQueue' in scope
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:54: error: cannot call value of non-function type 'Date'
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |                                                      `- error: cannot call value of non-function type 'Date'
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:9: error: cannot find 'signal' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:16: error: cannot find 'SIGINT' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:9: error: cannot find 'signal' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:16: error: cannot find 'SIGWINCH' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | ///   are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 |     private var source: DispatchSourceTimer?
   |                         `- error: cannot find type 'DispatchSourceTimer' in scope
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 |     private var source: DispatchSourceTimer?
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
   |                        `- error: cannot find type 'DispatchQueue' in scope
45 |     private let lock = NSLock()
46 |     /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 |     ///   - queue: The dispatch queue on which `action` is called.
54 |     ///     Defaults to `.main`.
55 |     public init(interval: TimeInterval, queue: DispatchQueue = .main) {
   |                                                `- error: cannot find type 'DispatchQueue' in scope
56 |         self.interval = interval
57 |         self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 |     public func start(action: @escaping @Sendable () -> Void) {
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
   |                         `- error: cannot find 'DispatchSource' in scope
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
70 |         newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
   |                                       `- error: cannot call value of non-function type 'Date'
70 |         newSource.setEventHandler(handler: action)
71 |         newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:9: error: cannot find 'signal' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:16: error: cannot find 'SIGINT' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:131:13: error: cannot find 'DispatchQueue' in scope
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
131 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
132 |                 BodyRenderingStore.shared.requestExit()
133 |                 AppRuntime.shared?.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:9: error: cannot find 'signal' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:16: error: cannot find 'SIGWINCH' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:150:13: error: cannot find 'DispatchQueue' in scope
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
150 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
151 |                 StateObserverRegistry.shared.notifyChange()
152 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:9: error: cannot find 'signal' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:16: error: cannot find 'SIGWINCH' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                `- error: cannot find 'SIGWINCH' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:26: error: cannot find 'SIG_DFL' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                          `- error: cannot find 'SIG_DFL' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:9: error: cannot find 'signal' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:16: error: cannot find 'SIGINT' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                `- error: cannot find 'SIGINT' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:24: error: cannot find 'SIG_DFL' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                        `- error: cannot find 'SIG_DFL' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:138:32: error: cannot find type 'DispatchSourceTimer' in scope
 136 |     // "flick" feel as native scroll views. A new gesture cancels any in-
 137 |     // flight momentum and restarts it from the new velocity.
 138 |     private var momentumTimer: DispatchSourceTimer?
     |                                `- error: cannot find type 'DispatchSourceTimer' in scope
 139 |     private var momentumScrollID: String?
 140 |     private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:21: error: cannot find 'DispatchSource' in scope
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                     `- error: cannot find 'DispatchSource' in scope
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:60: error: cannot infer contextual base in reference to member 'main'
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                                                            `- error: cannot infer contextual base in reference to member 'main'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:966:35: error: cannot call value of non-function type 'Date'
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
     |                                   `- error: cannot call value of non-function type 'Date'
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:967:36: error: cannot infer contextual base in reference to member 'milliseconds'
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
     |                                    `- error: cannot infer contextual base in reference to member 'milliseconds'
 968 |                        leeway: .milliseconds(2))
 969 |         timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:968:33: error: cannot infer contextual base in reference to member 'milliseconds'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
     |                                 `- error: cannot infer contextual base in reference to member 'milliseconds'
 969 |         timer.setEventHandler { [weak self] in
 970 |             guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
 71 |             // Schedule a redraw asynchronously so a focus change made *during* a
 72 |             // layout pass (e.g. from Tab syncing back) never re-enters rendering.
 73 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
 74 |                 AppRuntime.shared?.scheduleRender()
 75 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
 91 |             nonmutating set {
 92 |                 box.value = newValue
 93 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 94 |                     AppRuntime.shared?.scheduleRender()
 95 |                     StateObserverRegistry.shared.notifyChange()
[552/658] Compiling SwiftLI FocusState.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:31: error: 'current' is unavailable: RunLoop is not available on WASI
 82 |         performRender()
 83 |
 84 |         let runLoop = RunLoop.current
    |                               `- error: 'current' is unavailable: RunLoop is not available on WASI
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 |   open class var current: RunLoop { get }}
  |                  `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:25: error: value of type 'RunLoop' has no member 'run'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                         `- error: value of type 'RunLoop' has no member 'run'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:36: error: cannot infer contextual base in reference to member 'default'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                                    `- error: cannot infer contextual base in reference to member 'default'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:117:9: error: cannot find 'DispatchQueue' in scope
115 |
116 |         // Dispatch to main so renders are serialized with timer callbacks.
117 |         DispatchQueue.main.async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
118 |             self?.coalescedRender()
119 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:13: error: cannot find 'DispatchQueue' in scope
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |             `- error: cannot find 'DispatchQueue' in scope
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:54: error: cannot call value of non-function type 'Date'
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |                                                      `- error: cannot call value of non-function type 'Date'
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:9: error: cannot find 'signal' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:16: error: cannot find 'SIGINT' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:9: error: cannot find 'signal' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:16: error: cannot find 'SIGWINCH' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | ///   are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 |     private var source: DispatchSourceTimer?
   |                         `- error: cannot find type 'DispatchSourceTimer' in scope
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 |     private var source: DispatchSourceTimer?
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
   |                        `- error: cannot find type 'DispatchQueue' in scope
45 |     private let lock = NSLock()
46 |     /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 |     ///   - queue: The dispatch queue on which `action` is called.
54 |     ///     Defaults to `.main`.
55 |     public init(interval: TimeInterval, queue: DispatchQueue = .main) {
   |                                                `- error: cannot find type 'DispatchQueue' in scope
56 |         self.interval = interval
57 |         self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 |     public func start(action: @escaping @Sendable () -> Void) {
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
   |                         `- error: cannot find 'DispatchSource' in scope
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
70 |         newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
   |                                       `- error: cannot call value of non-function type 'Date'
70 |         newSource.setEventHandler(handler: action)
71 |         newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:9: error: cannot find 'signal' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:16: error: cannot find 'SIGINT' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:131:13: error: cannot find 'DispatchQueue' in scope
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
131 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
132 |                 BodyRenderingStore.shared.requestExit()
133 |                 AppRuntime.shared?.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:9: error: cannot find 'signal' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:16: error: cannot find 'SIGWINCH' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:150:13: error: cannot find 'DispatchQueue' in scope
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
150 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
151 |                 StateObserverRegistry.shared.notifyChange()
152 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:9: error: cannot find 'signal' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:16: error: cannot find 'SIGWINCH' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                `- error: cannot find 'SIGWINCH' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:26: error: cannot find 'SIG_DFL' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                          `- error: cannot find 'SIG_DFL' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:9: error: cannot find 'signal' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:16: error: cannot find 'SIGINT' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                `- error: cannot find 'SIGINT' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:24: error: cannot find 'SIG_DFL' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                        `- error: cannot find 'SIG_DFL' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:138:32: error: cannot find type 'DispatchSourceTimer' in scope
 136 |     // "flick" feel as native scroll views. A new gesture cancels any in-
 137 |     // flight momentum and restarts it from the new velocity.
 138 |     private var momentumTimer: DispatchSourceTimer?
     |                                `- error: cannot find type 'DispatchSourceTimer' in scope
 139 |     private var momentumScrollID: String?
 140 |     private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:21: error: cannot find 'DispatchSource' in scope
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                     `- error: cannot find 'DispatchSource' in scope
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:60: error: cannot infer contextual base in reference to member 'main'
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                                                            `- error: cannot infer contextual base in reference to member 'main'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:966:35: error: cannot call value of non-function type 'Date'
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
     |                                   `- error: cannot call value of non-function type 'Date'
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:967:36: error: cannot infer contextual base in reference to member 'milliseconds'
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
     |                                    `- error: cannot infer contextual base in reference to member 'milliseconds'
 968 |                        leeway: .milliseconds(2))
 969 |         timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:968:33: error: cannot infer contextual base in reference to member 'milliseconds'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
     |                                 `- error: cannot infer contextual base in reference to member 'milliseconds'
 969 |         timer.setEventHandler { [weak self] in
 970 |             guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
 71 |             // Schedule a redraw asynchronously so a focus change made *during* a
 72 |             // layout pass (e.g. from Tab syncing back) never re-enters rendering.
 73 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
 74 |                 AppRuntime.shared?.scheduleRender()
 75 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
 91 |             nonmutating set {
 92 |                 box.value = newValue
 93 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 94 |                     AppRuntime.shared?.scheduleRender()
 95 |                     StateObserverRegistry.shared.notifyChange()
[553/658] Compiling SwiftLI FocusedValue.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:31: error: 'current' is unavailable: RunLoop is not available on WASI
 82 |         performRender()
 83 |
 84 |         let runLoop = RunLoop.current
    |                               `- error: 'current' is unavailable: RunLoop is not available on WASI
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 |   open class var current: RunLoop { get }}
  |                  `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:25: error: value of type 'RunLoop' has no member 'run'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                         `- error: value of type 'RunLoop' has no member 'run'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:36: error: cannot infer contextual base in reference to member 'default'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                                    `- error: cannot infer contextual base in reference to member 'default'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:117:9: error: cannot find 'DispatchQueue' in scope
115 |
116 |         // Dispatch to main so renders are serialized with timer callbacks.
117 |         DispatchQueue.main.async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
118 |             self?.coalescedRender()
119 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:13: error: cannot find 'DispatchQueue' in scope
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |             `- error: cannot find 'DispatchQueue' in scope
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:54: error: cannot call value of non-function type 'Date'
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |                                                      `- error: cannot call value of non-function type 'Date'
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:9: error: cannot find 'signal' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:16: error: cannot find 'SIGINT' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:9: error: cannot find 'signal' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:16: error: cannot find 'SIGWINCH' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | ///   are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 |     private var source: DispatchSourceTimer?
   |                         `- error: cannot find type 'DispatchSourceTimer' in scope
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 |     private var source: DispatchSourceTimer?
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
   |                        `- error: cannot find type 'DispatchQueue' in scope
45 |     private let lock = NSLock()
46 |     /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 |     ///   - queue: The dispatch queue on which `action` is called.
54 |     ///     Defaults to `.main`.
55 |     public init(interval: TimeInterval, queue: DispatchQueue = .main) {
   |                                                `- error: cannot find type 'DispatchQueue' in scope
56 |         self.interval = interval
57 |         self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 |     public func start(action: @escaping @Sendable () -> Void) {
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
   |                         `- error: cannot find 'DispatchSource' in scope
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
70 |         newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
   |                                       `- error: cannot call value of non-function type 'Date'
70 |         newSource.setEventHandler(handler: action)
71 |         newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:9: error: cannot find 'signal' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:16: error: cannot find 'SIGINT' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:131:13: error: cannot find 'DispatchQueue' in scope
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
131 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
132 |                 BodyRenderingStore.shared.requestExit()
133 |                 AppRuntime.shared?.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:9: error: cannot find 'signal' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:16: error: cannot find 'SIGWINCH' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:150:13: error: cannot find 'DispatchQueue' in scope
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
150 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
151 |                 StateObserverRegistry.shared.notifyChange()
152 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:9: error: cannot find 'signal' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:16: error: cannot find 'SIGWINCH' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                `- error: cannot find 'SIGWINCH' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:26: error: cannot find 'SIG_DFL' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                          `- error: cannot find 'SIG_DFL' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:9: error: cannot find 'signal' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:16: error: cannot find 'SIGINT' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                `- error: cannot find 'SIGINT' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:24: error: cannot find 'SIG_DFL' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                        `- error: cannot find 'SIG_DFL' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:138:32: error: cannot find type 'DispatchSourceTimer' in scope
 136 |     // "flick" feel as native scroll views. A new gesture cancels any in-
 137 |     // flight momentum and restarts it from the new velocity.
 138 |     private var momentumTimer: DispatchSourceTimer?
     |                                `- error: cannot find type 'DispatchSourceTimer' in scope
 139 |     private var momentumScrollID: String?
 140 |     private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:21: error: cannot find 'DispatchSource' in scope
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                     `- error: cannot find 'DispatchSource' in scope
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:60: error: cannot infer contextual base in reference to member 'main'
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                                                            `- error: cannot infer contextual base in reference to member 'main'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:966:35: error: cannot call value of non-function type 'Date'
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
     |                                   `- error: cannot call value of non-function type 'Date'
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:967:36: error: cannot infer contextual base in reference to member 'milliseconds'
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
     |                                    `- error: cannot infer contextual base in reference to member 'milliseconds'
 968 |                        leeway: .milliseconds(2))
 969 |         timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:968:33: error: cannot infer contextual base in reference to member 'milliseconds'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
     |                                 `- error: cannot infer contextual base in reference to member 'milliseconds'
 969 |         timer.setEventHandler { [weak self] in
 970 |             guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
 71 |             // Schedule a redraw asynchronously so a focus change made *during* a
 72 |             // layout pass (e.g. from Tab syncing back) never re-enters rendering.
 73 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
 74 |                 AppRuntime.shared?.scheduleRender()
 75 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
 91 |             nonmutating set {
 92 |                 box.value = newValue
 93 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 94 |                     AppRuntime.shared?.scheduleRender()
 95 |                     StateObserverRegistry.shared.notifyChange()
[554/658] Compiling SwiftLI InlineRenderer.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:31: error: 'current' is unavailable: RunLoop is not available on WASI
 82 |         performRender()
 83 |
 84 |         let runLoop = RunLoop.current
    |                               `- error: 'current' is unavailable: RunLoop is not available on WASI
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 |   open class var current: RunLoop { get }}
  |                  `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:25: error: value of type 'RunLoop' has no member 'run'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                         `- error: value of type 'RunLoop' has no member 'run'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:36: error: cannot infer contextual base in reference to member 'default'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                                    `- error: cannot infer contextual base in reference to member 'default'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:117:9: error: cannot find 'DispatchQueue' in scope
115 |
116 |         // Dispatch to main so renders are serialized with timer callbacks.
117 |         DispatchQueue.main.async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
118 |             self?.coalescedRender()
119 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:13: error: cannot find 'DispatchQueue' in scope
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |             `- error: cannot find 'DispatchQueue' in scope
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:54: error: cannot call value of non-function type 'Date'
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |                                                      `- error: cannot call value of non-function type 'Date'
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:9: error: cannot find 'signal' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:16: error: cannot find 'SIGINT' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:9: error: cannot find 'signal' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:16: error: cannot find 'SIGWINCH' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | ///   are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 |     private var source: DispatchSourceTimer?
   |                         `- error: cannot find type 'DispatchSourceTimer' in scope
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 |     private var source: DispatchSourceTimer?
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
   |                        `- error: cannot find type 'DispatchQueue' in scope
45 |     private let lock = NSLock()
46 |     /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 |     ///   - queue: The dispatch queue on which `action` is called.
54 |     ///     Defaults to `.main`.
55 |     public init(interval: TimeInterval, queue: DispatchQueue = .main) {
   |                                                `- error: cannot find type 'DispatchQueue' in scope
56 |         self.interval = interval
57 |         self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 |     public func start(action: @escaping @Sendable () -> Void) {
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
   |                         `- error: cannot find 'DispatchSource' in scope
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
70 |         newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
   |                                       `- error: cannot call value of non-function type 'Date'
70 |         newSource.setEventHandler(handler: action)
71 |         newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:9: error: cannot find 'signal' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:16: error: cannot find 'SIGINT' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:131:13: error: cannot find 'DispatchQueue' in scope
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
131 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
132 |                 BodyRenderingStore.shared.requestExit()
133 |                 AppRuntime.shared?.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:9: error: cannot find 'signal' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:16: error: cannot find 'SIGWINCH' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:150:13: error: cannot find 'DispatchQueue' in scope
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
150 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
151 |                 StateObserverRegistry.shared.notifyChange()
152 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:9: error: cannot find 'signal' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:16: error: cannot find 'SIGWINCH' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                `- error: cannot find 'SIGWINCH' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:26: error: cannot find 'SIG_DFL' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                          `- error: cannot find 'SIG_DFL' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:9: error: cannot find 'signal' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:16: error: cannot find 'SIGINT' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                `- error: cannot find 'SIGINT' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:24: error: cannot find 'SIG_DFL' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                        `- error: cannot find 'SIG_DFL' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:138:32: error: cannot find type 'DispatchSourceTimer' in scope
 136 |     // "flick" feel as native scroll views. A new gesture cancels any in-
 137 |     // flight momentum and restarts it from the new velocity.
 138 |     private var momentumTimer: DispatchSourceTimer?
     |                                `- error: cannot find type 'DispatchSourceTimer' in scope
 139 |     private var momentumScrollID: String?
 140 |     private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:21: error: cannot find 'DispatchSource' in scope
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                     `- error: cannot find 'DispatchSource' in scope
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:60: error: cannot infer contextual base in reference to member 'main'
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                                                            `- error: cannot infer contextual base in reference to member 'main'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:966:35: error: cannot call value of non-function type 'Date'
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
     |                                   `- error: cannot call value of non-function type 'Date'
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:967:36: error: cannot infer contextual base in reference to member 'milliseconds'
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
     |                                    `- error: cannot infer contextual base in reference to member 'milliseconds'
 968 |                        leeway: .milliseconds(2))
 969 |         timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:968:33: error: cannot infer contextual base in reference to member 'milliseconds'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
     |                                 `- error: cannot infer contextual base in reference to member 'milliseconds'
 969 |         timer.setEventHandler { [weak self] in
 970 |             guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
 71 |             // Schedule a redraw asynchronously so a focus change made *during* a
 72 |             // layout pass (e.g. from Tab syncing back) never re-enters rendering.
 73 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
 74 |                 AppRuntime.shared?.scheduleRender()
 75 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
 91 |             nonmutating set {
 92 |                 box.value = newValue
 93 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 94 |                     AppRuntime.shared?.scheduleRender()
 95 |                     StateObserverRegistry.shared.notifyChange()
[555/658] Compiling SwiftLI KeyDecoder.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:31: error: 'current' is unavailable: RunLoop is not available on WASI
 82 |         performRender()
 83 |
 84 |         let runLoop = RunLoop.current
    |                               `- error: 'current' is unavailable: RunLoop is not available on WASI
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 |   open class var current: RunLoop { get }}
  |                  `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:25: error: value of type 'RunLoop' has no member 'run'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                         `- error: value of type 'RunLoop' has no member 'run'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:36: error: cannot infer contextual base in reference to member 'default'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                                    `- error: cannot infer contextual base in reference to member 'default'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:117:9: error: cannot find 'DispatchQueue' in scope
115 |
116 |         // Dispatch to main so renders are serialized with timer callbacks.
117 |         DispatchQueue.main.async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
118 |             self?.coalescedRender()
119 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:13: error: cannot find 'DispatchQueue' in scope
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |             `- error: cannot find 'DispatchQueue' in scope
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:54: error: cannot call value of non-function type 'Date'
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |                                                      `- error: cannot call value of non-function type 'Date'
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:9: error: cannot find 'signal' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:16: error: cannot find 'SIGINT' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:9: error: cannot find 'signal' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:16: error: cannot find 'SIGWINCH' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | ///   are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 |     private var source: DispatchSourceTimer?
   |                         `- error: cannot find type 'DispatchSourceTimer' in scope
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 |     private var source: DispatchSourceTimer?
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
   |                        `- error: cannot find type 'DispatchQueue' in scope
45 |     private let lock = NSLock()
46 |     /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 |     ///   - queue: The dispatch queue on which `action` is called.
54 |     ///     Defaults to `.main`.
55 |     public init(interval: TimeInterval, queue: DispatchQueue = .main) {
   |                                                `- error: cannot find type 'DispatchQueue' in scope
56 |         self.interval = interval
57 |         self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 |     public func start(action: @escaping @Sendable () -> Void) {
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
   |                         `- error: cannot find 'DispatchSource' in scope
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
70 |         newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
   |                                       `- error: cannot call value of non-function type 'Date'
70 |         newSource.setEventHandler(handler: action)
71 |         newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:9: error: cannot find 'signal' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:16: error: cannot find 'SIGINT' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:131:13: error: cannot find 'DispatchQueue' in scope
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
131 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
132 |                 BodyRenderingStore.shared.requestExit()
133 |                 AppRuntime.shared?.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:9: error: cannot find 'signal' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:16: error: cannot find 'SIGWINCH' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:150:13: error: cannot find 'DispatchQueue' in scope
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
150 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
151 |                 StateObserverRegistry.shared.notifyChange()
152 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:9: error: cannot find 'signal' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:16: error: cannot find 'SIGWINCH' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                `- error: cannot find 'SIGWINCH' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:26: error: cannot find 'SIG_DFL' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                          `- error: cannot find 'SIG_DFL' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:9: error: cannot find 'signal' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:16: error: cannot find 'SIGINT' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                `- error: cannot find 'SIGINT' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:24: error: cannot find 'SIG_DFL' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                        `- error: cannot find 'SIG_DFL' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:138:32: error: cannot find type 'DispatchSourceTimer' in scope
 136 |     // "flick" feel as native scroll views. A new gesture cancels any in-
 137 |     // flight momentum and restarts it from the new velocity.
 138 |     private var momentumTimer: DispatchSourceTimer?
     |                                `- error: cannot find type 'DispatchSourceTimer' in scope
 139 |     private var momentumScrollID: String?
 140 |     private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:21: error: cannot find 'DispatchSource' in scope
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                     `- error: cannot find 'DispatchSource' in scope
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:60: error: cannot infer contextual base in reference to member 'main'
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                                                            `- error: cannot infer contextual base in reference to member 'main'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:966:35: error: cannot call value of non-function type 'Date'
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
     |                                   `- error: cannot call value of non-function type 'Date'
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:967:36: error: cannot infer contextual base in reference to member 'milliseconds'
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
     |                                    `- error: cannot infer contextual base in reference to member 'milliseconds'
 968 |                        leeway: .milliseconds(2))
 969 |         timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:968:33: error: cannot infer contextual base in reference to member 'milliseconds'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
     |                                 `- error: cannot infer contextual base in reference to member 'milliseconds'
 969 |         timer.setEventHandler { [weak self] in
 970 |             guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
 71 |             // Schedule a redraw asynchronously so a focus change made *during* a
 72 |             // layout pass (e.g. from Tab syncing back) never re-enters rendering.
 73 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
 74 |                 AppRuntime.shared?.scheduleRender()
 75 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
 91 |             nonmutating set {
 92 |                 box.value = newValue
 93 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 94 |                     AppRuntime.shared?.scheduleRender()
 95 |                     StateObserverRegistry.shared.notifyChange()
[556/658] Compiling SwiftLI KeyEvent.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:31: error: 'current' is unavailable: RunLoop is not available on WASI
 82 |         performRender()
 83 |
 84 |         let runLoop = RunLoop.current
    |                               `- error: 'current' is unavailable: RunLoop is not available on WASI
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 |   open class var current: RunLoop { get }}
  |                  `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:25: error: value of type 'RunLoop' has no member 'run'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                         `- error: value of type 'RunLoop' has no member 'run'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:87:36: error: cannot infer contextual base in reference to member 'default'
 85 |         while isRunning {
 86 |             // 100ms timeout keeps the loop responsive to signal-driven stops
 87 |             _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
    |                                    `- error: cannot infer contextual base in reference to member 'default'
 88 |         }
 89 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:117:9: error: cannot find 'DispatchQueue' in scope
115 |
116 |         // Dispatch to main so renders are serialized with timer callbacks.
117 |         DispatchQueue.main.async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
118 |             self?.coalescedRender()
119 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:13: error: cannot find 'DispatchQueue' in scope
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |             `- error: cannot find 'DispatchQueue' in scope
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:142:54: error: cannot call value of non-function type 'Date'
140 |             // Too soon — try again after the remaining interval.
141 |             let delay = minRenderInterval - elapsed
142 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
    |                                                      `- error: cannot call value of non-function type 'Date'
143 |                 self?.performRender()
144 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:9: error: cannot find 'signal' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:168:16: error: cannot find 'SIGINT' in scope
166 |     private func setupSignalHandlers() {
167 |         // Ctrl+C: stop the run loop gracefully
168 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
169 |             AppRuntime.shared?.stop()
170 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:9: error: cannot find 'signal' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:180:16: error: cannot find 'SIGWINCH' in scope
178 |         poller.start()
179 |         #else
180 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
181 |             AppRuntime.shared?.scheduleRender()
182 |         }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | ///   are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 |     private var source: DispatchSourceTimer?
   |                         `- error: cannot find type 'DispatchSourceTimer' in scope
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 |     private var source: DispatchSourceTimer?
43 |     private let interval: TimeInterval
44 |     private let queue: DispatchQueue
   |                        `- error: cannot find type 'DispatchQueue' in scope
45 |     private let lock = NSLock()
46 |     /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 |     ///   - queue: The dispatch queue on which `action` is called.
54 |     ///     Defaults to `.main`.
55 |     public init(interval: TimeInterval, queue: DispatchQueue = .main) {
   |                                                `- error: cannot find type 'DispatchQueue' in scope
56 |         self.interval = interval
57 |         self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 |     public func start(action: @escaping @Sendable () -> Void) {
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
   |                         `- error: cannot find 'DispatchSource' in scope
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
70 |         newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 |         stop()
68 |         let newSource = DispatchSource.makeTimerSource(queue: queue)
69 |         newSource.schedule(deadline: .now() + interval, repeating: interval)
   |                                       `- error: cannot call value of non-function type 'Date'
70 |         newSource.setEventHandler(handler: action)
71 |         newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:9: error: cannot find 'signal' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |         `- error: cannot find 'signal' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:130:16: error: cannot find 'SIGINT' in scope
128 |         // converts to a C function pointer; it hops to the main queue before
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
    |                `- error: cannot find 'SIGINT' in scope
131 |             DispatchQueue.main.async {
132 |                 BodyRenderingStore.shared.requestExit()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:131:13: error: cannot find 'DispatchQueue' in scope
129 |         // touching any lock.
130 |         signal(SIGINT) { _ in
131 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
132 |                 BodyRenderingStore.shared.requestExit()
133 |                 AppRuntime.shared?.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:9: error: cannot find 'signal' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |         `- error: cannot find 'signal' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:149:16: error: cannot find 'SIGWINCH' in scope
147 |         // The handler captures nothing so it converts to a C function pointer;
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
    |                `- error: cannot find 'SIGWINCH' in scope
150 |             DispatchQueue.main.async {
151 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:150:13: error: cannot find 'DispatchQueue' in scope
148 |         // it hops to the main queue before touching stdout.
149 |         signal(SIGWINCH) { _ in
150 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
151 |                 StateObserverRegistry.shared.notifyChange()
152 |             }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:9: error: cannot find 'signal' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:16: error: cannot find 'SIGWINCH' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                `- error: cannot find 'SIGWINCH' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:176:26: error: cannot find 'SIG_DFL' in scope
174 |         BodyRenderingStore.shared.resizePoller = nil
175 |         #else
176 |         signal(SIGWINCH, SIG_DFL)
    |                          `- error: cannot find 'SIG_DFL' in scope
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:9: error: cannot find 'signal' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |         `- error: cannot find 'signal' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:16: error: cannot find 'SIGINT' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                `- error: cannot find 'SIGINT' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:178:24: error: cannot find 'SIG_DFL' in scope
176 |         signal(SIGWINCH, SIG_DFL)
177 |         #endif
178 |         signal(SIGINT, SIG_DFL)
    |                        `- error: cannot find 'SIG_DFL' in scope
179 |         KeyInputRouter.shared.stop()
180 |         StateObserverRegistry.shared.unregister()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:138:32: error: cannot find type 'DispatchSourceTimer' in scope
 136 |     // "flick" feel as native scroll views. A new gesture cancels any in-
 137 |     // flight momentum and restarts it from the new velocity.
 138 |     private var momentumTimer: DispatchSourceTimer?
     |                                `- error: cannot find type 'DispatchSourceTimer' in scope
 139 |     private var momentumScrollID: String?
 140 |     private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:21: error: cannot find 'DispatchSource' in scope
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                     `- error: cannot find 'DispatchSource' in scope
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:965:60: error: cannot infer contextual base in reference to member 'main'
 963 |         // effective scroll range without changing the per-event delta.
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
     |                                                            `- error: cannot infer contextual base in reference to member 'main'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:966:35: error: cannot call value of non-function type 'Date'
 964 |         momentumVelocity = velocity * 2.2
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
     |                                   `- error: cannot call value of non-function type 'Date'
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:967:36: error: cannot infer contextual base in reference to member 'milliseconds'
 965 |         let timer = DispatchSource.makeTimerSource(queue: .main)
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
     |                                    `- error: cannot infer contextual base in reference to member 'milliseconds'
 968 |                        leeway: .milliseconds(2))
 969 |         timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:968:33: error: cannot infer contextual base in reference to member 'milliseconds'
 966 |         timer.schedule(deadline: .now() + 0.08,
 967 |                        repeating: .milliseconds(16),
 968 |                        leeway: .milliseconds(2))
     |                                 `- error: cannot infer contextual base in reference to member 'milliseconds'
 969 |         timer.setEventHandler { [weak self] in
 970 |             guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
 71 |             // Schedule a redraw asynchronously so a focus change made *during* a
 72 |             // layout pass (e.g. from Tab syncing back) never re-enters rendering.
 73 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
 74 |                 AppRuntime.shared?.scheduleRender()
 75 |                 StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
 91 |             nonmutating set {
 92 |                 box.value = newValue
 93 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 94 |                     AppRuntime.shared?.scheduleRender()
 95 |                     StateObserverRegistry.shared.notifyChange()
BUILD FAILURE 6.2 wasm