Build Information
Successful build of agy-usage-stats, reference main (6e37a6), with Swift 6.1 for macOS (SPM) on 27 Nov 2026 06:45:07 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sameerbajaj/agy-usage-stats.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sameerbajaj/agy-usage-stats
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 6e37a6e feat(menubar): add crisp AGY chevron & cute Muse bear row icons and high-contrast bold countdown text
Cloned https://github.com/sameerbajaj/agy-usage-stats.git
Revision (git rev-parse @):
6e37a6e16f2cfad57103a1cdb8930e14cf828603
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/sameerbajaj/agy-usage-stats.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/sameerbajaj/agy-usage-stats.git
https://github.com/sameerbajaj/agy-usage-stats.git
{
"dependencies" : [
],
"manifest_display_name" : "agy-usage-stats",
"name" : "agy-usage-stats",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "15.0"
}
],
"products" : [
{
"name" : "agy-usage-stats",
"targets" : [
"agy-usage-stats"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "agy_usage_statsTests",
"module_type" : "SwiftTarget",
"name" : "agy-usage-statsTests",
"path" : "agy-usage-statsTests",
"sources" : [
"AgyStatsServiceTests.swift",
"OverviewTabViewTests.swift",
"agy_usage_statsTests.swift"
],
"target_dependencies" : [
"agy-usage-stats"
],
"type" : "test"
},
{
"c99name" : "agy_usage_stats",
"module_type" : "SwiftTarget",
"name" : "agy-usage-stats",
"path" : "agy-usage-stats",
"product_memberships" : [
"agy-usage-stats"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Assets.xcassets",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"ContentView.swift",
"Models/AgyModels.swift",
"Services/AgyFileWatcher.swift",
"Services/AgyQuotaService.swift",
"Services/AgyStatsService.swift",
"Services/MuseQuotaService.swift",
"Services/SelfUpdater.swift",
"Services/UpdateChecker.swift",
"ViewModels/AgyStatsViewModel.swift",
"Views/ActivityTabView.swift",
"Views/AppTheme.swift",
"Views/CostTabView.swift",
"Views/HistoryTabView.swift",
"Views/MenuBarPopover.swift",
"Views/OverviewTabView.swift",
"Views/SettingsTabView.swift",
"Views/StatsTabView.swift",
"Views/Styles.swift",
"Views/WorkspacesTabView.swift",
"agy_usage_statsApp.swift"
],
"type" : "executable"
}
],
"tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/7] Write sources
[0/7] Write agy-usage-stats-entitlement.plist
[2/7] Copying Assets.xcassets
[3/7] Write swift-version-2F0A5646E1D333AE.txt
[5/27] Compiling agy_usage_stats MuseQuotaService.swift
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/MuseQuotaService.swift:58:24: warning: static property 'cachedFetch' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | private static let lock = NSLock()
58 | private static var cachedFetch: CachedFetch? = nil
| |- warning: static property 'cachedFetch' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedFetch' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedFetch' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | private static var cachedAutoCookie: CachedCookie? = nil
60 | private static var cachedDefaultPersistedQuota: MuseQuotaInfo? = nil
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/MuseQuotaService.swift:59:24: warning: static property 'cachedAutoCookie' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
57 | private static let lock = NSLock()
58 | private static var cachedFetch: CachedFetch? = nil
59 | private static var cachedAutoCookie: CachedCookie? = nil
| |- warning: static property 'cachedAutoCookie' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedAutoCookie' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedAutoCookie' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | private static var cachedDefaultPersistedQuota: MuseQuotaInfo? = nil
61 | private static var hasLoadedDefaultPersistedQuota = false
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/MuseQuotaService.swift:60:24: warning: static property 'cachedDefaultPersistedQuota' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 | private static var cachedFetch: CachedFetch? = nil
59 | private static var cachedAutoCookie: CachedCookie? = nil
60 | private static var cachedDefaultPersistedQuota: MuseQuotaInfo? = nil
| |- warning: static property 'cachedDefaultPersistedQuota' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedDefaultPersistedQuota' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedDefaultPersistedQuota' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | private static var hasLoadedDefaultPersistedQuota = false
62 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/MuseQuotaService.swift:61:24: warning: static property 'hasLoadedDefaultPersistedQuota' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 | private static var cachedAutoCookie: CachedCookie? = nil
60 | private static var cachedDefaultPersistedQuota: MuseQuotaInfo? = nil
61 | private static var hasLoadedDefaultPersistedQuota = false
| |- warning: static property 'hasLoadedDefaultPersistedQuota' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hasLoadedDefaultPersistedQuota' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hasLoadedDefaultPersistedQuota' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | private static let redirectDelegate = NoAuthRedirectDelegate()
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/MuseQuotaService.swift:81:24: warning: static property 'testIsolatedDefaults' is not concurrency-safe because non-'Sendable' type 'UserDefaults' may have shared mutable state; this is an error in the Swift 6 language mode
79 | }()
80 |
81 | private static let testIsolatedDefaults: UserDefaults = {
| |- warning: static property 'testIsolatedDefaults' is not concurrency-safe because non-'Sendable' type 'UserDefaults' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'testIsolatedDefaults' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 | let suite = "com.sameerbajaj.agy-usage-stats.muse-test.\(ProcessInfo.processInfo.processIdentifier)"
83 | let ud = UserDefaults(suiteName: suite) ?? .standard
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserDefaults.h:49:12: note: class 'UserDefaults' does not conform to the 'Sendable' protocol
47 | NSUserDefaults can be observed using Key-Value Observing for any key stored in it. Using NSKeyValueObservingOptionPrior to observe changes from other processes or devices will behave as though NSKeyValueObservingOptionPrior was not specified.
48 | */
49 | @interface NSUserDefaults : NSObject {
| `- note: class 'UserDefaults' does not conform to the 'Sendable' protocol
50 | @private
51 | id _kvo_;
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/SelfUpdater.swift:274:9: warning: stored property 'onProgress' of 'Sendable'-conforming class 'DownloadDelegate' has non-sendable type '(Double) -> Void'; this is an error in the Swift 6 language mode
272 |
273 | private final class DownloadDelegate: NSObject, URLSessionDownloadDelegate {
274 | let onProgress: (Double) -> Void
| |- warning: stored property 'onProgress' of 'Sendable'-conforming class 'DownloadDelegate' has non-sendable type '(Double) -> Void'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
275 |
276 | init(progress: @escaping (Double) -> Void) {
[6/27] Compiling agy_usage_stats SelfUpdater.swift
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/MuseQuotaService.swift:58:24: warning: static property 'cachedFetch' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | private static let lock = NSLock()
58 | private static var cachedFetch: CachedFetch? = nil
| |- warning: static property 'cachedFetch' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedFetch' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedFetch' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | private static var cachedAutoCookie: CachedCookie? = nil
60 | private static var cachedDefaultPersistedQuota: MuseQuotaInfo? = nil
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/MuseQuotaService.swift:59:24: warning: static property 'cachedAutoCookie' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
57 | private static let lock = NSLock()
58 | private static var cachedFetch: CachedFetch? = nil
59 | private static var cachedAutoCookie: CachedCookie? = nil
| |- warning: static property 'cachedAutoCookie' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedAutoCookie' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedAutoCookie' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | private static var cachedDefaultPersistedQuota: MuseQuotaInfo? = nil
61 | private static var hasLoadedDefaultPersistedQuota = false
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/MuseQuotaService.swift:60:24: warning: static property 'cachedDefaultPersistedQuota' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 | private static var cachedFetch: CachedFetch? = nil
59 | private static var cachedAutoCookie: CachedCookie? = nil
60 | private static var cachedDefaultPersistedQuota: MuseQuotaInfo? = nil
| |- warning: static property 'cachedDefaultPersistedQuota' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedDefaultPersistedQuota' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedDefaultPersistedQuota' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | private static var hasLoadedDefaultPersistedQuota = false
62 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/MuseQuotaService.swift:61:24: warning: static property 'hasLoadedDefaultPersistedQuota' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 | private static var cachedAutoCookie: CachedCookie? = nil
60 | private static var cachedDefaultPersistedQuota: MuseQuotaInfo? = nil
61 | private static var hasLoadedDefaultPersistedQuota = false
| |- warning: static property 'hasLoadedDefaultPersistedQuota' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hasLoadedDefaultPersistedQuota' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hasLoadedDefaultPersistedQuota' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | private static let redirectDelegate = NoAuthRedirectDelegate()
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/MuseQuotaService.swift:81:24: warning: static property 'testIsolatedDefaults' is not concurrency-safe because non-'Sendable' type 'UserDefaults' may have shared mutable state; this is an error in the Swift 6 language mode
79 | }()
80 |
81 | private static let testIsolatedDefaults: UserDefaults = {
| |- warning: static property 'testIsolatedDefaults' is not concurrency-safe because non-'Sendable' type 'UserDefaults' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'testIsolatedDefaults' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 | let suite = "com.sameerbajaj.agy-usage-stats.muse-test.\(ProcessInfo.processInfo.processIdentifier)"
83 | let ud = UserDefaults(suiteName: suite) ?? .standard
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserDefaults.h:49:12: note: class 'UserDefaults' does not conform to the 'Sendable' protocol
47 | NSUserDefaults can be observed using Key-Value Observing for any key stored in it. Using NSKeyValueObservingOptionPrior to observe changes from other processes or devices will behave as though NSKeyValueObservingOptionPrior was not specified.
48 | */
49 | @interface NSUserDefaults : NSObject {
| `- note: class 'UserDefaults' does not conform to the 'Sendable' protocol
50 | @private
51 | id _kvo_;
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/SelfUpdater.swift:274:9: warning: stored property 'onProgress' of 'Sendable'-conforming class 'DownloadDelegate' has non-sendable type '(Double) -> Void'; this is an error in the Swift 6 language mode
272 |
273 | private final class DownloadDelegate: NSObject, URLSessionDownloadDelegate {
274 | let onProgress: (Double) -> Void
| |- warning: stored property 'onProgress' of 'Sendable'-conforming class 'DownloadDelegate' has non-sendable type '(Double) -> Void'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
275 |
276 | init(progress: @escaping (Double) -> Void) {
[7/27] Compiling agy_usage_stats UpdateChecker.swift
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:63:23: warning: static property 'minimum' is not concurrency-safe because non-'Sendable' type 'IconQuotaLimitTarget' may have shared mutable state; this is an error in the Swift 6 language mode
54 | }
55 |
56 | public enum IconQuotaLimitTarget: String, Codable, CaseIterable, Identifiable {
| `- note: consider making enum 'IconQuotaLimitTarget' conform to the 'Sendable' protocol
57 | case fiveHour = "5-Hour Limit"
58 | case weekly = "Weekly Limit"
:
61 | public var id: String { rawValue }
62 |
63 | public static let minimum: IconQuotaLimitTarget = .auto
| |- warning: static property 'minimum' is not concurrency-safe because non-'Sendable' type 'IconQuotaLimitTarget' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'minimum' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 |
65 | public init?(rawValue: String) {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:82:23: warning: static property 'usageRemaining' is not concurrency-safe because non-'Sendable' type 'IconCircleFillMetric' may have shared mutable state; this is an error in the Swift 6 language mode
73 | }
74 |
75 | public enum IconCircleFillMetric: String, Codable, CaseIterable, Identifiable {
| `- note: consider making enum 'IconCircleFillMetric' conform to the 'Sendable' protocol
76 | case weekly = "Weekly Limit"
77 | case fiveHour = "5-Hour Limit"
:
80 | public var id: String { rawValue }
81 |
82 | public static let usageRemaining: IconCircleFillMetric = .matchNumber
| |- warning: static property 'usageRemaining' is not concurrency-safe because non-'Sendable' type 'IconCircleFillMetric' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'usageRemaining' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
83 | public static let timeUntilReset: IconCircleFillMetric = .weekly
84 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:83:23: warning: static property 'timeUntilReset' is not concurrency-safe because non-'Sendable' type 'IconCircleFillMetric' may have shared mutable state; this is an error in the Swift 6 language mode
73 | }
74 |
75 | public enum IconCircleFillMetric: String, Codable, CaseIterable, Identifiable {
| `- note: consider making enum 'IconCircleFillMetric' conform to the 'Sendable' protocol
76 | case weekly = "Weekly Limit"
77 | case fiveHour = "5-Hour Limit"
:
81 |
82 | public static let usageRemaining: IconCircleFillMetric = .matchNumber
83 | public static let timeUntilReset: IconCircleFillMetric = .weekly
| |- warning: static property 'timeUntilReset' is not concurrency-safe because non-'Sendable' type 'IconCircleFillMetric' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'timeUntilReset' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 |
85 | public init?(rawValue: String) {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1133:24: warning: static property 'isoFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
1131 | }
1132 |
1133 | private static let isoFormatter = ISO8601DateFormatter()
| |- warning: static property 'isoFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'isoFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1134 | private static let relativeDateTimeFormatter: RelativeDateTimeFormatter = {
1135 | let formatter = RelativeDateTimeFormatter()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 | CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1134:24: warning: static property 'relativeDateTimeFormatter' is not concurrency-safe because non-'Sendable' type 'RelativeDateTimeFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
1132 |
1133 | private static let isoFormatter = ISO8601DateFormatter()
1134 | private static let relativeDateTimeFormatter: RelativeDateTimeFormatter = {
| |- warning: static property 'relativeDateTimeFormatter' is not concurrency-safe because non-'Sendable' type 'RelativeDateTimeFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'relativeDateTimeFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1135 | let formatter = RelativeDateTimeFormatter()
1136 | formatter.unitsStyle = .short
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSRelativeDateTimeFormatter.h:27:12: note: class 'RelativeDateTimeFormatter' does not conform to the 'Sendable' protocol
25 | */
26 | API_AVAILABLE(macosx(10.15), ios(13.0), watchos(6.0), tvos(13.0))
27 | @interface NSRelativeDateTimeFormatter : NSFormatter
| `- note: class 'RelativeDateTimeFormatter' does not conform to the 'Sendable' protocol
28 | #if !__OBJC2__
29 | {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1846:37: warning: capture of 'self' with non-sendable type 'AgyStatsViewModel?' in a '@Sendable' closure
211 |
212 | @Observable
213 | public final class AgyStatsViewModel {
| `- note: class 'AgyStatsViewModel' does not conform to the 'Sendable' protocol
214 | private let userDefaults: UserDefaults
215 |
:
1844 | let interval = adaptivePollingInterval
1845 | let timer = Timer(timeInterval: interval, repeats: false) { [weak self] _ in
1846 | Task { @MainActor [weak self] in
| `- warning: capture of 'self' with non-sendable type 'AgyStatsViewModel?' in a '@Sendable' closure
1847 | await self?.refreshQuotaOnly()
1848 | if let self, self.showMuseTracking {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/UpdateChecker.swift:29:9: warning: code after 'return' will never be executed
27 | #endif
28 |
29 | if Bundle.main.bundlePath.contains("DerivedData") {
| `- warning: code after 'return' will never be executed
30 | return nil
31 | }
macro expansion @ObservationTracked:7:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:224:6: note: expanded code originates here
222 | Task { await refresh() }
223 | }
224 | }
+--- macro expansion @ObservationTracked --------------------------
| 5 | AgyStatsService.clearCaches()
| 6 | restartWatcher()
| 7 | Task {
| | `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
| 8 | await refresh()
| | `- note: closure captures 'self' which is accessible to code in the current task
| 9 | }
|10 | }
+------------------------------------------------------------------
225 |
226 | public var menuBarDisplayMode: MenuBarDisplayMode {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1934:20: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1932 | public func refresh() async {
1933 | let canStart = await MainActor.run { () -> Bool in
1934 | guard !isRefreshing else { return false }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1935 | isRefreshing = true
1936 | return true
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1940:41: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1938 | guard canStart else { return }
1939 |
1940 | let dir = await MainActor.run { self.cliDir }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1941 | let resolvedEmail = await Task.detached(priority: .userInitiated) {
1942 | AgyStatsService.resolveActiveConsumerEmail(cliDir: dir)
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1945:24: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1943 | }.value
1944 | let (previousEmail, currentQuota) = await MainActor.run { () -> (String?, AgyQuotaInfo?) in
1945 | let prev = self.activeConsumerEmail
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1946 | if prev != resolvedEmail {
1947 | self.activeConsumerEmail = resolvedEmail
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1970:32: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1968 | }
1969 | // Fast structural fingerprint check avoids O(40k) array equality scans on MainActor
1970 | let statsChanged = self.stats.totalQueries != updatedStats.totalQueries
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1971 | || self.stats.queriesToday != updatedStats.queriesToday
1972 | || abs(self.stats.totalCostEstimate - updatedStats.totalCostEstimate) > 0.000001
macro expansion @ObservationTracked:5:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:305:6: note: expanded code originates here
303 | }
304 | }
305 | }
+--- macro expansion @ObservationTracked --------------------------
| 3 | userDefaults.set(showMuseTracking, forKey: "agy_showMuseTracking")
| 4 | if showMuseTracking {
| 5 | Task {
| | `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
| 6 | await refreshMuseQuota(forceRefresh: false)
| | `- note: closure captures 'self' which is accessible to code in the current task
| 7 | }
| 8 | }
+------------------------------------------------------------------
306 |
307 | public var showMuseInMenuBar: Bool {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1864:20: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1862 | public func refreshMuseQuota(forceRefresh: Bool = false) async {
1863 | let (enabled, manualCookie, alreadyRunning) = await MainActor.run { () -> (Bool, String, Bool) in
1864 | guard !isRefreshingMuse else { return (showMuseTracking, museManualCookieHeader, true) }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1865 | if showMuseTracking {
1866 | isRefreshingMuse = true
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1882:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1880 |
1881 | await MainActor.run {
1882 | self.lastMuseRefreshAt = Date()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1883 | if let q = result.quota {
1884 | self.museQuota = q
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1822:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1820 |
1821 | // Initial load
1822 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1823 | await refresh()
| `- note: closure captures 'self' which is accessible to code in the current task
1824 | if showMuseTracking {
1825 | await refreshMuseQuota(forceRefresh: false)
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1798:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1796 | watcher.onFileChanged = { [weak self] in
1797 | Task { @MainActor [weak self] in
1798 | self?.lastFileChangedAt = Date()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1799 | self?.scheduleAdaptiveQuotaPolling()
1800 | }
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1801:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1799 | self?.scheduleAdaptiveQuotaPolling()
1800 | }
1801 | Task { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1802 | // Do NOT block UI updates waiting on slow network timeouts or clear verified quota.
1803 | // Refresh stats immediately, preserving existing quotaInfo.
1804 | await self?.refresh()
| `- note: closure captures 'self' which is accessible to code in the current task
1805 | await MainActor.run { [weak self] in
1806 | self?.scheduleAdaptiveQuotaPolling()
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1901:41: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1899 | /// Fast-path quota refresh without re-reading or parsing history files (<1ms localhost request)
1900 | public func refreshQuotaOnly(forceRefresh: Bool = false) async {
1901 | let dir = await MainActor.run { self.cliDir }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1902 | let resolvedEmail = await Task.detached(priority: .userInitiated) {
1903 | AgyStatsService.resolveActiveConsumerEmail(cliDir: dir)
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1906:24: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1904 | }.value
1905 | let (previousEmail, currentQuotaEmail) = await MainActor.run { () -> (String?, String?) in
1906 | let prev = self.activeConsumerEmail
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1907 | if prev != resolvedEmail {
1908 | self.activeConsumerEmail = resolvedEmail
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1923:16: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1921 | guard let quota = await AgyQuotaService.fetchQuota(forceRefresh: shouldForce, expectedEmail: resolvedEmail) else { return }
1922 | await MainActor.run {
1923 | if self.activeConsumerEmail != resolvedEmail {
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1924 | self.activeConsumerEmail = resolvedEmail
1925 | }
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1806:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1804 | await self?.refresh()
1805 | await MainActor.run { [weak self] in
1806 | self?.scheduleAdaptiveQuotaPolling()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1807 | }
1808 | // Fast follow-up: language server quota accounting may take 1-2s to settle after streaming
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1812:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1810 | await self?.refreshQuotaOnly(forceRefresh: true)
1811 | await MainActor.run { [weak self] in
1812 | self?.scheduleAdaptiveQuotaPolling()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1813 | }
1814 | }
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:2018:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
2016 | public func checkForUpdates(showUpToDateFeedback: Bool = false) async {
2017 | await MainActor.run {
2018 | isCheckingForUpdates = true
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
2019 | if showUpToDateFeedback {
2020 | updateCheckMessage = nil
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:2027:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
2025 |
2026 | await MainActor.run {
2027 | isCheckingForUpdates = false
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
2028 | availableUpdate = update
2029 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:2042:20: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
2040 | try? await Task.sleep(for: .seconds(4))
2041 | await MainActor.run {
2042 | if availableUpdate == nil {
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
2043 | updateCheckMessage = nil
2044 | }
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:2056:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
2054 | guard let update = availableUpdate, let dmgURL = update.downloadURL else { return }
2055 |
2056 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
2057 | let didInstall = await SelfUpdater.update(
2058 | dmgURL: dmgURL,
2059 | publishedAt: update.publishedAt,
2060 | version: update.version
2061 | ) { [weak self] state in
| `- note: closure captures 'self' which is accessible to code in the current task
2062 | Task { @MainActor in
2063 | self?.selfUpdateState = state
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:2063:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
2061 | ) { [weak self] state in
2062 | Task { @MainActor in
2063 | self?.selfUpdateState = state
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
2064 | }
2065 | }
[8/27] Compiling agy_usage_stats AgyStatsViewModel.swift
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:63:23: warning: static property 'minimum' is not concurrency-safe because non-'Sendable' type 'IconQuotaLimitTarget' may have shared mutable state; this is an error in the Swift 6 language mode
54 | }
55 |
56 | public enum IconQuotaLimitTarget: String, Codable, CaseIterable, Identifiable {
| `- note: consider making enum 'IconQuotaLimitTarget' conform to the 'Sendable' protocol
57 | case fiveHour = "5-Hour Limit"
58 | case weekly = "Weekly Limit"
:
61 | public var id: String { rawValue }
62 |
63 | public static let minimum: IconQuotaLimitTarget = .auto
| |- warning: static property 'minimum' is not concurrency-safe because non-'Sendable' type 'IconQuotaLimitTarget' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'minimum' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 |
65 | public init?(rawValue: String) {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:82:23: warning: static property 'usageRemaining' is not concurrency-safe because non-'Sendable' type 'IconCircleFillMetric' may have shared mutable state; this is an error in the Swift 6 language mode
73 | }
74 |
75 | public enum IconCircleFillMetric: String, Codable, CaseIterable, Identifiable {
| `- note: consider making enum 'IconCircleFillMetric' conform to the 'Sendable' protocol
76 | case weekly = "Weekly Limit"
77 | case fiveHour = "5-Hour Limit"
:
80 | public var id: String { rawValue }
81 |
82 | public static let usageRemaining: IconCircleFillMetric = .matchNumber
| |- warning: static property 'usageRemaining' is not concurrency-safe because non-'Sendable' type 'IconCircleFillMetric' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'usageRemaining' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
83 | public static let timeUntilReset: IconCircleFillMetric = .weekly
84 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:83:23: warning: static property 'timeUntilReset' is not concurrency-safe because non-'Sendable' type 'IconCircleFillMetric' may have shared mutable state; this is an error in the Swift 6 language mode
73 | }
74 |
75 | public enum IconCircleFillMetric: String, Codable, CaseIterable, Identifiable {
| `- note: consider making enum 'IconCircleFillMetric' conform to the 'Sendable' protocol
76 | case weekly = "Weekly Limit"
77 | case fiveHour = "5-Hour Limit"
:
81 |
82 | public static let usageRemaining: IconCircleFillMetric = .matchNumber
83 | public static let timeUntilReset: IconCircleFillMetric = .weekly
| |- warning: static property 'timeUntilReset' is not concurrency-safe because non-'Sendable' type 'IconCircleFillMetric' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'timeUntilReset' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 |
85 | public init?(rawValue: String) {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1133:24: warning: static property 'isoFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
1131 | }
1132 |
1133 | private static let isoFormatter = ISO8601DateFormatter()
| |- warning: static property 'isoFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'isoFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1134 | private static let relativeDateTimeFormatter: RelativeDateTimeFormatter = {
1135 | let formatter = RelativeDateTimeFormatter()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 | CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1134:24: warning: static property 'relativeDateTimeFormatter' is not concurrency-safe because non-'Sendable' type 'RelativeDateTimeFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
1132 |
1133 | private static let isoFormatter = ISO8601DateFormatter()
1134 | private static let relativeDateTimeFormatter: RelativeDateTimeFormatter = {
| |- warning: static property 'relativeDateTimeFormatter' is not concurrency-safe because non-'Sendable' type 'RelativeDateTimeFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'relativeDateTimeFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1135 | let formatter = RelativeDateTimeFormatter()
1136 | formatter.unitsStyle = .short
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSRelativeDateTimeFormatter.h:27:12: note: class 'RelativeDateTimeFormatter' does not conform to the 'Sendable' protocol
25 | */
26 | API_AVAILABLE(macosx(10.15), ios(13.0), watchos(6.0), tvos(13.0))
27 | @interface NSRelativeDateTimeFormatter : NSFormatter
| `- note: class 'RelativeDateTimeFormatter' does not conform to the 'Sendable' protocol
28 | #if !__OBJC2__
29 | {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1846:37: warning: capture of 'self' with non-sendable type 'AgyStatsViewModel?' in a '@Sendable' closure
211 |
212 | @Observable
213 | public final class AgyStatsViewModel {
| `- note: class 'AgyStatsViewModel' does not conform to the 'Sendable' protocol
214 | private let userDefaults: UserDefaults
215 |
:
1844 | let interval = adaptivePollingInterval
1845 | let timer = Timer(timeInterval: interval, repeats: false) { [weak self] _ in
1846 | Task { @MainActor [weak self] in
| `- warning: capture of 'self' with non-sendable type 'AgyStatsViewModel?' in a '@Sendable' closure
1847 | await self?.refreshQuotaOnly()
1848 | if let self, self.showMuseTracking {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/UpdateChecker.swift:29:9: warning: code after 'return' will never be executed
27 | #endif
28 |
29 | if Bundle.main.bundlePath.contains("DerivedData") {
| `- warning: code after 'return' will never be executed
30 | return nil
31 | }
macro expansion @ObservationTracked:7:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:224:6: note: expanded code originates here
222 | Task { await refresh() }
223 | }
224 | }
+--- macro expansion @ObservationTracked --------------------------
| 5 | AgyStatsService.clearCaches()
| 6 | restartWatcher()
| 7 | Task {
| | `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
| 8 | await refresh()
| | `- note: closure captures 'self' which is accessible to code in the current task
| 9 | }
|10 | }
+------------------------------------------------------------------
225 |
226 | public var menuBarDisplayMode: MenuBarDisplayMode {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1934:20: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1932 | public func refresh() async {
1933 | let canStart = await MainActor.run { () -> Bool in
1934 | guard !isRefreshing else { return false }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1935 | isRefreshing = true
1936 | return true
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1940:41: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1938 | guard canStart else { return }
1939 |
1940 | let dir = await MainActor.run { self.cliDir }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1941 | let resolvedEmail = await Task.detached(priority: .userInitiated) {
1942 | AgyStatsService.resolveActiveConsumerEmail(cliDir: dir)
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1945:24: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1943 | }.value
1944 | let (previousEmail, currentQuota) = await MainActor.run { () -> (String?, AgyQuotaInfo?) in
1945 | let prev = self.activeConsumerEmail
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1946 | if prev != resolvedEmail {
1947 | self.activeConsumerEmail = resolvedEmail
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1970:32: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1968 | }
1969 | // Fast structural fingerprint check avoids O(40k) array equality scans on MainActor
1970 | let statsChanged = self.stats.totalQueries != updatedStats.totalQueries
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1971 | || self.stats.queriesToday != updatedStats.queriesToday
1972 | || abs(self.stats.totalCostEstimate - updatedStats.totalCostEstimate) > 0.000001
macro expansion @ObservationTracked:5:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:305:6: note: expanded code originates here
303 | }
304 | }
305 | }
+--- macro expansion @ObservationTracked --------------------------
| 3 | userDefaults.set(showMuseTracking, forKey: "agy_showMuseTracking")
| 4 | if showMuseTracking {
| 5 | Task {
| | `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
| 6 | await refreshMuseQuota(forceRefresh: false)
| | `- note: closure captures 'self' which is accessible to code in the current task
| 7 | }
| 8 | }
+------------------------------------------------------------------
306 |
307 | public var showMuseInMenuBar: Bool {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1864:20: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1862 | public func refreshMuseQuota(forceRefresh: Bool = false) async {
1863 | let (enabled, manualCookie, alreadyRunning) = await MainActor.run { () -> (Bool, String, Bool) in
1864 | guard !isRefreshingMuse else { return (showMuseTracking, museManualCookieHeader, true) }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1865 | if showMuseTracking {
1866 | isRefreshingMuse = true
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1882:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1880 |
1881 | await MainActor.run {
1882 | self.lastMuseRefreshAt = Date()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1883 | if let q = result.quota {
1884 | self.museQuota = q
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1822:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1820 |
1821 | // Initial load
1822 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1823 | await refresh()
| `- note: closure captures 'self' which is accessible to code in the current task
1824 | if showMuseTracking {
1825 | await refreshMuseQuota(forceRefresh: false)
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1798:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1796 | watcher.onFileChanged = { [weak self] in
1797 | Task { @MainActor [weak self] in
1798 | self?.lastFileChangedAt = Date()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1799 | self?.scheduleAdaptiveQuotaPolling()
1800 | }
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1801:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1799 | self?.scheduleAdaptiveQuotaPolling()
1800 | }
1801 | Task { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1802 | // Do NOT block UI updates waiting on slow network timeouts or clear verified quota.
1803 | // Refresh stats immediately, preserving existing quotaInfo.
1804 | await self?.refresh()
| `- note: closure captures 'self' which is accessible to code in the current task
1805 | await MainActor.run { [weak self] in
1806 | self?.scheduleAdaptiveQuotaPolling()
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1901:41: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1899 | /// Fast-path quota refresh without re-reading or parsing history files (<1ms localhost request)
1900 | public func refreshQuotaOnly(forceRefresh: Bool = false) async {
1901 | let dir = await MainActor.run { self.cliDir }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1902 | let resolvedEmail = await Task.detached(priority: .userInitiated) {
1903 | AgyStatsService.resolveActiveConsumerEmail(cliDir: dir)
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1906:24: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1904 | }.value
1905 | let (previousEmail, currentQuotaEmail) = await MainActor.run { () -> (String?, String?) in
1906 | let prev = self.activeConsumerEmail
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1907 | if prev != resolvedEmail {
1908 | self.activeConsumerEmail = resolvedEmail
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1923:16: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1921 | guard let quota = await AgyQuotaService.fetchQuota(forceRefresh: shouldForce, expectedEmail: resolvedEmail) else { return }
1922 | await MainActor.run {
1923 | if self.activeConsumerEmail != resolvedEmail {
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1924 | self.activeConsumerEmail = resolvedEmail
1925 | }
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1806:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1804 | await self?.refresh()
1805 | await MainActor.run { [weak self] in
1806 | self?.scheduleAdaptiveQuotaPolling()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1807 | }
1808 | // Fast follow-up: language server quota accounting may take 1-2s to settle after streaming
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1812:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
1810 | await self?.refreshQuotaOnly(forceRefresh: true)
1811 | await MainActor.run { [weak self] in
1812 | self?.scheduleAdaptiveQuotaPolling()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1813 | }
1814 | }
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:2018:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
2016 | public func checkForUpdates(showUpToDateFeedback: Bool = false) async {
2017 | await MainActor.run {
2018 | isCheckingForUpdates = true
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
2019 | if showUpToDateFeedback {
2020 | updateCheckMessage = nil
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:2027:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
2025 |
2026 | await MainActor.run {
2027 | isCheckingForUpdates = false
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
2028 | availableUpdate = update
2029 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:2042:20: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
2040 | try? await Task.sleep(for: .seconds(4))
2041 | await MainActor.run {
2042 | if availableUpdate == nil {
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
2043 | updateCheckMessage = nil
2044 | }
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:2056:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
2054 | guard let update = availableUpdate, let dmgURL = update.downloadURL else { return }
2055 |
2056 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
2057 | let didInstall = await SelfUpdater.update(
2058 | dmgURL: dmgURL,
2059 | publishedAt: update.publishedAt,
2060 | version: update.version
2061 | ) { [weak self] state in
| `- note: closure captures 'self' which is accessible to code in the current task
2062 | Task { @MainActor in
2063 | self?.selfUpdateState = state
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:2063:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
2061 | ) { [weak self] state in
2062 | Task { @MainActor in
2063 | self?.selfUpdateState = state
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
2064 | }
2065 | }
[9/27] Compiling agy_usage_stats Styles.swift
[10/27] Compiling agy_usage_stats WorkspacesTabView.swift
[11/27] Compiling agy_usage_stats ActivityTabView.swift
[12/27] Compiling agy_usage_stats AppTheme.swift
[13/27] Compiling agy_usage_stats SettingsTabView.swift
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Views/SettingsTabView.swift:575:49: warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
573 | Button {
574 | Task {
575 | await viewModel.refreshMuseQuota(forceRefresh: true)
| |- warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.viewModel' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
576 | }
577 | } label: {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Views/SettingsTabView.swift:604:60: warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
602 | MuseQuotaService.clearCache(clearCookie: true)
603 | isEditingMuseCookie = false
604 | Task { await viewModel.refreshMuseQuota(forceRefresh: true) }
| |- warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.viewModel' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
605 | }
606 | .font(.system(size: 9, weight: .bold))
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Views/SettingsTabView.swift:616:64: warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
614 | MuseQuotaService.clearCache(clearCookie: true)
615 | isEditingMuseCookie = false
616 | Task { await viewModel.refreshMuseQuota(forceRefresh: true) }
| |- warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.viewModel' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
617 | }
618 | .font(.system(size: 9, weight: .medium))
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Views/SettingsTabView.swift:870:45: warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
868 | Button(action: {
869 | Task {
870 | await viewModel.checkForUpdates(showUpToDateFeedback: true)
| |- warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.viewModel' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
871 | }
872 | }) {
[14/27] Compiling agy_usage_stats StatsTabView.swift
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Views/SettingsTabView.swift:575:49: warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
573 | Button {
574 | Task {
575 | await viewModel.refreshMuseQuota(forceRefresh: true)
| |- warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.viewModel' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
576 | }
577 | } label: {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Views/SettingsTabView.swift:604:60: warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
602 | MuseQuotaService.clearCache(clearCookie: true)
603 | isEditingMuseCookie = false
604 | Task { await viewModel.refreshMuseQuota(forceRefresh: true) }
| |- warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.viewModel' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
605 | }
606 | .font(.system(size: 9, weight: .bold))
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Views/SettingsTabView.swift:616:64: warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
614 | MuseQuotaService.clearCache(clearCookie: true)
615 | isEditingMuseCookie = false
616 | Task { await viewModel.refreshMuseQuota(forceRefresh: true) }
| |- warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.viewModel' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
617 | }
618 | .font(.system(size: 9, weight: .medium))
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Views/SettingsTabView.swift:870:45: warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
868 | Button(action: {
869 | Task {
870 | await viewModel.checkForUpdates(showUpToDateFeedback: true)
| |- warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.viewModel' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
871 | }
872 | }) {
[15/29] Compiling agy_usage_stats agy_usage_statsApp.swift
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/agy_usage_statsApp.swift:287:23: warning: static property 'menuBarFont' is not concurrency-safe because non-'Sendable' type 'NSFont' may have shared mutable state; this is an error in the Swift 6 language mode
285 | }
286 |
287 | public static let menuBarFont: NSFont = {
| |- warning: static property 'menuBarFont' is not concurrency-safe because non-'Sendable' type 'NSFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'menuBarFont' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
288 | let baseDesc = NSFont.systemFont(ofSize: 11.0, weight: .bold).fontDescriptor.withDesign(.rounded)
289 | if let baseDesc {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h:24:12: note: class 'NSFont' does not conform to the 'Sendable' protocol
22 | APPKIT_EXTERN const CGFloat * NSFontIdentityMatrix;
23 |
24 | @interface NSFont : NSObject <NSCopying, NSSecureCoding>
| `- note: class 'NSFont' does not conform to the 'Sendable' protocol
25 |
26 | /********* Factory *********/
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/agy_usage_statsApp.swift:303:23: warning: static property 'compactMenuBarFont' is not concurrency-safe because non-'Sendable' type 'NSFont' may have shared mutable state; this is an error in the Swift 6 language mode
301 | }()
302 |
303 | public static let compactMenuBarFont: NSFont = {
| |- warning: static property 'compactMenuBarFont' is not concurrency-safe because non-'Sendable' type 'NSFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'compactMenuBarFont' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
304 | let baseDesc = NSFont.systemFont(ofSize: 8.5, weight: .bold).fontDescriptor.withDesign(.rounded)
305 | if let baseDesc {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h:24:12: note: class 'NSFont' does not conform to the 'Sendable' protocol
22 | APPKIT_EXTERN const CGFloat * NSFontIdentityMatrix;
23 |
24 | @interface NSFont : NSObject <NSCopying, NSSecureCoding>
| `- note: class 'NSFont' does not conform to the 'Sendable' protocol
25 |
26 | /********* Factory *********/
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/agy_usage_statsApp.swift:319:23: warning: static property 'compactTimeFont' is not concurrency-safe because non-'Sendable' type 'NSFont' may have shared mutable state; this is an error in the Swift 6 language mode
317 | }()
318 |
319 | public static let compactTimeFont: NSFont = {
| |- warning: static property 'compactTimeFont' is not concurrency-safe because non-'Sendable' type 'NSFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'compactTimeFont' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
320 | let baseDesc = NSFont.systemFont(ofSize: 8.5, weight: .bold).fontDescriptor.withDesign(.rounded)
321 | if let baseDesc {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h:24:12: note: class 'NSFont' does not conform to the 'Sendable' protocol
22 | APPKIT_EXTERN const CGFloat * NSFontIdentityMatrix;
23 |
24 | @interface NSFont : NSObject <NSCopying, NSSecureCoding>
| `- note: class 'NSFont' does not conform to the 'Sendable' protocol
25 |
26 | /********* Factory *********/
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/agy_usage_statsApp.swift:648:24: warning: static property 'cachedAntigravityIcon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
646 |
647 | public enum AgyMenuBarRenderer {
648 | private static var cachedAntigravityIcon: (key: String, image: NSImage)? = nil
| |- warning: static property 'cachedAntigravityIcon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedAntigravityIcon' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedAntigravityIcon' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
649 | private static var cachedCompactIcon: (key: String, image: NSImage)? = nil
650 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/agy_usage_statsApp.swift:649:24: warning: static property 'cachedCompactIcon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
647 | public enum AgyMenuBarRenderer {
648 | private static var cachedAntigravityIcon: (key: String, image: NSImage)? = nil
649 | private static var cachedCompactIcon: (key: String, image: NSImage)? = nil
| |- warning: static property 'cachedCompactIcon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedCompactIcon' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedCompactIcon' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
650 |
651 | public static func makeCompactStackedImage(
[16/29] Compiling agy_usage_stats resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/agy_usage_statsApp.swift:287:23: warning: static property 'menuBarFont' is not concurrency-safe because non-'Sendable' type 'NSFont' may have shared mutable state; this is an error in the Swift 6 language mode
285 | }
286 |
287 | public static let menuBarFont: NSFont = {
| |- warning: static property 'menuBarFont' is not concurrency-safe because non-'Sendable' type 'NSFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'menuBarFont' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
288 | let baseDesc = NSFont.systemFont(ofSize: 11.0, weight: .bold).fontDescriptor.withDesign(.rounded)
289 | if let baseDesc {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h:24:12: note: class 'NSFont' does not conform to the 'Sendable' protocol
22 | APPKIT_EXTERN const CGFloat * NSFontIdentityMatrix;
23 |
24 | @interface NSFont : NSObject <NSCopying, NSSecureCoding>
| `- note: class 'NSFont' does not conform to the 'Sendable' protocol
25 |
26 | /********* Factory *********/
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/agy_usage_statsApp.swift:303:23: warning: static property 'compactMenuBarFont' is not concurrency-safe because non-'Sendable' type 'NSFont' may have shared mutable state; this is an error in the Swift 6 language mode
301 | }()
302 |
303 | public static let compactMenuBarFont: NSFont = {
| |- warning: static property 'compactMenuBarFont' is not concurrency-safe because non-'Sendable' type 'NSFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'compactMenuBarFont' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
304 | let baseDesc = NSFont.systemFont(ofSize: 8.5, weight: .bold).fontDescriptor.withDesign(.rounded)
305 | if let baseDesc {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h:24:12: note: class 'NSFont' does not conform to the 'Sendable' protocol
22 | APPKIT_EXTERN const CGFloat * NSFontIdentityMatrix;
23 |
24 | @interface NSFont : NSObject <NSCopying, NSSecureCoding>
| `- note: class 'NSFont' does not conform to the 'Sendable' protocol
25 |
26 | /********* Factory *********/
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/agy_usage_statsApp.swift:319:23: warning: static property 'compactTimeFont' is not concurrency-safe because non-'Sendable' type 'NSFont' may have shared mutable state; this is an error in the Swift 6 language mode
317 | }()
318 |
319 | public static let compactTimeFont: NSFont = {
| |- warning: static property 'compactTimeFont' is not concurrency-safe because non-'Sendable' type 'NSFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'compactTimeFont' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
320 | let baseDesc = NSFont.systemFont(ofSize: 8.5, weight: .bold).fontDescriptor.withDesign(.rounded)
321 | if let baseDesc {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h:24:12: note: class 'NSFont' does not conform to the 'Sendable' protocol
22 | APPKIT_EXTERN const CGFloat * NSFontIdentityMatrix;
23 |
24 | @interface NSFont : NSObject <NSCopying, NSSecureCoding>
| `- note: class 'NSFont' does not conform to the 'Sendable' protocol
25 |
26 | /********* Factory *********/
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/agy_usage_statsApp.swift:648:24: warning: static property 'cachedAntigravityIcon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
646 |
647 | public enum AgyMenuBarRenderer {
648 | private static var cachedAntigravityIcon: (key: String, image: NSImage)? = nil
| |- warning: static property 'cachedAntigravityIcon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedAntigravityIcon' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedAntigravityIcon' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
649 | private static var cachedCompactIcon: (key: String, image: NSImage)? = nil
650 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/agy_usage_statsApp.swift:649:24: warning: static property 'cachedCompactIcon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
647 | public enum AgyMenuBarRenderer {
648 | private static var cachedAntigravityIcon: (key: String, image: NSImage)? = nil
649 | private static var cachedCompactIcon: (key: String, image: NSImage)? = nil
| |- warning: static property 'cachedCompactIcon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedCompactIcon' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedCompactIcon' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
650 |
651 | public static func makeCompactStackedImage(
[17/29] Emitting module agy_usage_stats
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Models/AgyModels.swift:364:24: warning: static property 'iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
362 | }
363 |
364 | private static let iso8601Formatter = ISO8601DateFormatter()
| |- warning: static property 'iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'iso8601Formatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
365 | private static let iso8601FractionalFormatter: ISO8601DateFormatter = {
366 | let f = ISO8601DateFormatter()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 | CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Models/AgyModels.swift:365:24: warning: static property 'iso8601FractionalFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
363 |
364 | private static let iso8601Formatter = ISO8601DateFormatter()
365 | private static let iso8601FractionalFormatter: ISO8601DateFormatter = {
| |- warning: static property 'iso8601FractionalFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'iso8601FractionalFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
366 | let f = ISO8601DateFormatter()
367 | f.formatOptions = [.withInternetDateTime, .withFractionalSeconds]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 | CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:87:24: warning: static property 'conversationCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
85 | }
86 |
87 | private static var conversationCache: [String: ConversationCacheEntry] = [:]
| |- warning: static property 'conversationCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'conversationCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'conversationCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 | private static let conversationCacheLock = NSLock()
89 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:90:24: warning: static property 'historyCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
88 | private static let conversationCacheLock = NSLock()
89 |
90 | private static var historyCache: [String: HistoryCacheEntry] = [:]
| |- warning: static property 'historyCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'historyCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'historyCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
91 | private static let historyCacheLock = NSLock()
92 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:93:24: warning: static property 'authCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
91 | private static let historyCacheLock = NSLock()
92 |
93 | private static var authCache: AuthCacheEntry? = nil
| |- warning: static property 'authCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'authCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'authCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
94 | private static let authCacheLock = NSLock()
95 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:96:24: warning: static property 'logFileCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
94 | private static let authCacheLock = NSLock()
95 |
96 | private static var logFileCache: [String: LogFileEntry] = [:]
| |- warning: static property 'logFileCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logFileCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logFileCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 | private static let logFileCacheLock = NSLock()
98 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:99:24: warning: static property 'gcpConsumerLogCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
97 | private static let logFileCacheLock = NSLock()
98 |
99 | private static var gcpConsumerLogCache: [String: GcpConsumerLogEntry] = [:]
| |- warning: static property 'gcpConsumerLogCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gcpConsumerLogCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'gcpConsumerLogCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 | private static let gcpConsumerLogCacheLock = NSLock()
101 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:126:24: warning: static property 'modelTransitionCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
124 | }
125 |
126 | private static var modelTransitionCache: ModelTransitionCacheEntry? = nil
| |- warning: static property 'modelTransitionCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'modelTransitionCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'modelTransitionCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
127 | private static let modelTransitionCacheLock = NSLock()
128 | private static var modelLogFileCache: [String: ModelLogFileEntry] = [:]
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:128:24: warning: static property 'modelLogFileCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
126 | private static var modelTransitionCache: ModelTransitionCacheEntry? = nil
127 | private static let modelTransitionCacheLock = NSLock()
128 | private static var modelLogFileCache: [String: ModelLogFileEntry] = [:]
| |- warning: static property 'modelLogFileCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'modelLogFileCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'modelLogFileCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
129 | private static let modelLogFileCacheLock = NSLock()
130 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:147:24: warning: static property 'diskCacheLoaded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
145 | private static let diskCacheQueue = DispatchQueue(label: "com.antigravity.agy-usage-stats.diskcache", qos: .utility)
146 | private static let diskCacheStateLock = NSLock()
147 | private static var diskCacheLoaded = false
| |- warning: static property 'diskCacheLoaded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'diskCacheLoaded' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'diskCacheLoaded' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 | private static var diskCacheSaveScheduled = false
149 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:148:24: warning: static property 'diskCacheSaveScheduled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
146 | private static let diskCacheStateLock = NSLock()
147 | private static var diskCacheLoaded = false
148 | private static var diskCacheSaveScheduled = false
| |- warning: static property 'diskCacheSaveScheduled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'diskCacheSaveScheduled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'diskCacheSaveScheduled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
149 |
150 | private static var diskCacheFileURL: URL? {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:280:24: warning: static property 'statsCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
278 | }
279 |
280 | private static var statsCache: StatsCacheEntry? = nil
| |- warning: static property 'statsCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'statsCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'statsCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
281 | private static let statsCacheLock = NSLock()
282 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:293:24: warning: static property 'consumerEmailCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
291 | }
292 |
293 | private static var consumerEmailCache: [String: ConsumerEmailCacheEntry] = [:]
| |- warning: static property 'consumerEmailCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'consumerEmailCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'consumerEmailCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
294 | private static let consumerEmailCacheLock = NSLock()
295 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/MuseQuotaService.swift:58:24: warning: static property 'cachedFetch' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | private static let lock = NSLock()
58 | private static var cachedFetch: CachedFetch? = nil
| |- warning: static property 'cachedFetch' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedFetch' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedFetch' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | private static var cachedAutoCookie: CachedCookie? = nil
60 | private static var cachedDefaultPersistedQuota: MuseQuotaInfo? = nil
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/MuseQuotaService.swift:59:24: warning: static property 'cachedAutoCookie' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
57 | private static let lock = NSLock()
58 | private static var cachedFetch: CachedFetch? = nil
59 | private static var cachedAutoCookie: CachedCookie? = nil
| |- warning: static property 'cachedAutoCookie' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedAutoCookie' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedAutoCookie' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | private static var cachedDefaultPersistedQuota: MuseQuotaInfo? = nil
61 | private static var hasLoadedDefaultPersistedQuota = false
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/MuseQuotaService.swift:60:24: warning: static property 'cachedDefaultPersistedQuota' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 | private static var cachedFetch: CachedFetch? = nil
59 | private static var cachedAutoCookie: CachedCookie? = nil
60 | private static var cachedDefaultPersistedQuota: MuseQuotaInfo? = nil
| |- warning: static property 'cachedDefaultPersistedQuota' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedDefaultPersistedQuota' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedDefaultPersistedQuota' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | private static var hasLoadedDefaultPersistedQuota = false
62 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/MuseQuotaService.swift:61:24: warning: static property 'hasLoadedDefaultPersistedQuota' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 | private static var cachedAutoCookie: CachedCookie? = nil
60 | private static var cachedDefaultPersistedQuota: MuseQuotaInfo? = nil
61 | private static var hasLoadedDefaultPersistedQuota = false
| |- warning: static property 'hasLoadedDefaultPersistedQuota' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hasLoadedDefaultPersistedQuota' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hasLoadedDefaultPersistedQuota' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | private static let redirectDelegate = NoAuthRedirectDelegate()
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/MuseQuotaService.swift:81:24: warning: static property 'testIsolatedDefaults' is not concurrency-safe because non-'Sendable' type 'UserDefaults' may have shared mutable state; this is an error in the Swift 6 language mode
79 | }()
80 |
81 | private static let testIsolatedDefaults: UserDefaults = {
| |- warning: static property 'testIsolatedDefaults' is not concurrency-safe because non-'Sendable' type 'UserDefaults' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'testIsolatedDefaults' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 | let suite = "com.sameerbajaj.agy-usage-stats.muse-test.\(ProcessInfo.processInfo.processIdentifier)"
83 | let ud = UserDefaults(suiteName: suite) ?? .standard
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserDefaults.h:49:12: note: class 'UserDefaults' does not conform to the 'Sendable' protocol
47 | NSUserDefaults can be observed using Key-Value Observing for any key stored in it. Using NSKeyValueObservingOptionPrior to observe changes from other processes or devices will behave as though NSKeyValueObservingOptionPrior was not specified.
48 | */
49 | @interface NSUserDefaults : NSObject {
| `- note: class 'UserDefaults' does not conform to the 'Sendable' protocol
50 | @private
51 | id _kvo_;
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/SelfUpdater.swift:274:9: warning: stored property 'onProgress' of 'Sendable'-conforming class 'DownloadDelegate' has non-sendable type '(Double) -> Void'; this is an error in the Swift 6 language mode
272 |
273 | private final class DownloadDelegate: NSObject, URLSessionDownloadDelegate {
274 | let onProgress: (Double) -> Void
| |- warning: stored property 'onProgress' of 'Sendable'-conforming class 'DownloadDelegate' has non-sendable type '(Double) -> Void'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
275 |
276 | init(progress: @escaping (Double) -> Void) {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:63:23: warning: static property 'minimum' is not concurrency-safe because non-'Sendable' type 'IconQuotaLimitTarget' may have shared mutable state; this is an error in the Swift 6 language mode
54 | }
55 |
56 | public enum IconQuotaLimitTarget: String, Codable, CaseIterable, Identifiable {
| `- note: consider making enum 'IconQuotaLimitTarget' conform to the 'Sendable' protocol
57 | case fiveHour = "5-Hour Limit"
58 | case weekly = "Weekly Limit"
:
61 | public var id: String { rawValue }
62 |
63 | public static let minimum: IconQuotaLimitTarget = .auto
| |- warning: static property 'minimum' is not concurrency-safe because non-'Sendable' type 'IconQuotaLimitTarget' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'minimum' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 |
65 | public init?(rawValue: String) {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:82:23: warning: static property 'usageRemaining' is not concurrency-safe because non-'Sendable' type 'IconCircleFillMetric' may have shared mutable state; this is an error in the Swift 6 language mode
73 | }
74 |
75 | public enum IconCircleFillMetric: String, Codable, CaseIterable, Identifiable {
| `- note: consider making enum 'IconCircleFillMetric' conform to the 'Sendable' protocol
76 | case weekly = "Weekly Limit"
77 | case fiveHour = "5-Hour Limit"
:
80 | public var id: String { rawValue }
81 |
82 | public static let usageRemaining: IconCircleFillMetric = .matchNumber
| |- warning: static property 'usageRemaining' is not concurrency-safe because non-'Sendable' type 'IconCircleFillMetric' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'usageRemaining' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
83 | public static let timeUntilReset: IconCircleFillMetric = .weekly
84 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:83:23: warning: static property 'timeUntilReset' is not concurrency-safe because non-'Sendable' type 'IconCircleFillMetric' may have shared mutable state; this is an error in the Swift 6 language mode
73 | }
74 |
75 | public enum IconCircleFillMetric: String, Codable, CaseIterable, Identifiable {
| `- note: consider making enum 'IconCircleFillMetric' conform to the 'Sendable' protocol
76 | case weekly = "Weekly Limit"
77 | case fiveHour = "5-Hour Limit"
:
81 |
82 | public static let usageRemaining: IconCircleFillMetric = .matchNumber
83 | public static let timeUntilReset: IconCircleFillMetric = .weekly
| |- warning: static property 'timeUntilReset' is not concurrency-safe because non-'Sendable' type 'IconCircleFillMetric' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'timeUntilReset' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 |
85 | public init?(rawValue: String) {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1133:24: warning: static property 'isoFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
1131 | }
1132 |
1133 | private static let isoFormatter = ISO8601DateFormatter()
| |- warning: static property 'isoFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'isoFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1134 | private static let relativeDateTimeFormatter: RelativeDateTimeFormatter = {
1135 | let formatter = RelativeDateTimeFormatter()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 | CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:1134:24: warning: static property 'relativeDateTimeFormatter' is not concurrency-safe because non-'Sendable' type 'RelativeDateTimeFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
1132 |
1133 | private static let isoFormatter = ISO8601DateFormatter()
1134 | private static let relativeDateTimeFormatter: RelativeDateTimeFormatter = {
| |- warning: static property 'relativeDateTimeFormatter' is not concurrency-safe because non-'Sendable' type 'RelativeDateTimeFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'relativeDateTimeFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1135 | let formatter = RelativeDateTimeFormatter()
1136 | formatter.unitsStyle = .short
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSRelativeDateTimeFormatter.h:27:12: note: class 'RelativeDateTimeFormatter' does not conform to the 'Sendable' protocol
25 | */
26 | API_AVAILABLE(macosx(10.15), ios(13.0), watchos(6.0), tvos(13.0))
27 | @interface NSRelativeDateTimeFormatter : NSFormatter
| `- note: class 'RelativeDateTimeFormatter' does not conform to the 'Sendable' protocol
28 | #if !__OBJC2__
29 | {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/agy_usage_statsApp.swift:287:23: warning: static property 'menuBarFont' is not concurrency-safe because non-'Sendable' type 'NSFont' may have shared mutable state; this is an error in the Swift 6 language mode
285 | }
286 |
287 | public static let menuBarFont: NSFont = {
| |- warning: static property 'menuBarFont' is not concurrency-safe because non-'Sendable' type 'NSFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'menuBarFont' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
288 | let baseDesc = NSFont.systemFont(ofSize: 11.0, weight: .bold).fontDescriptor.withDesign(.rounded)
289 | if let baseDesc {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h:24:12: note: class 'NSFont' does not conform to the 'Sendable' protocol
22 | APPKIT_EXTERN const CGFloat * NSFontIdentityMatrix;
23 |
24 | @interface NSFont : NSObject <NSCopying, NSSecureCoding>
| `- note: class 'NSFont' does not conform to the 'Sendable' protocol
25 |
26 | /********* Factory *********/
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/agy_usage_statsApp.swift:303:23: warning: static property 'compactMenuBarFont' is not concurrency-safe because non-'Sendable' type 'NSFont' may have shared mutable state; this is an error in the Swift 6 language mode
301 | }()
302 |
303 | public static let compactMenuBarFont: NSFont = {
| |- warning: static property 'compactMenuBarFont' is not concurrency-safe because non-'Sendable' type 'NSFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'compactMenuBarFont' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
304 | let baseDesc = NSFont.systemFont(ofSize: 8.5, weight: .bold).fontDescriptor.withDesign(.rounded)
305 | if let baseDesc {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h:24:12: note: class 'NSFont' does not conform to the 'Sendable' protocol
22 | APPKIT_EXTERN const CGFloat * NSFontIdentityMatrix;
23 |
24 | @interface NSFont : NSObject <NSCopying, NSSecureCoding>
| `- note: class 'NSFont' does not conform to the 'Sendable' protocol
25 |
26 | /********* Factory *********/
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/agy_usage_statsApp.swift:319:23: warning: static property 'compactTimeFont' is not concurrency-safe because non-'Sendable' type 'NSFont' may have shared mutable state; this is an error in the Swift 6 language mode
317 | }()
318 |
319 | public static let compactTimeFont: NSFont = {
| |- warning: static property 'compactTimeFont' is not concurrency-safe because non-'Sendable' type 'NSFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'compactTimeFont' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
320 | let baseDesc = NSFont.systemFont(ofSize: 8.5, weight: .bold).fontDescriptor.withDesign(.rounded)
321 | if let baseDesc {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h:24:12: note: class 'NSFont' does not conform to the 'Sendable' protocol
22 | APPKIT_EXTERN const CGFloat * NSFontIdentityMatrix;
23 |
24 | @interface NSFont : NSObject <NSCopying, NSSecureCoding>
| `- note: class 'NSFont' does not conform to the 'Sendable' protocol
25 |
26 | /********* Factory *********/
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/agy_usage_statsApp.swift:648:24: warning: static property 'cachedAntigravityIcon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
646 |
647 | public enum AgyMenuBarRenderer {
648 | private static var cachedAntigravityIcon: (key: String, image: NSImage)? = nil
| |- warning: static property 'cachedAntigravityIcon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedAntigravityIcon' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedAntigravityIcon' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
649 | private static var cachedCompactIcon: (key: String, image: NSImage)? = nil
650 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/agy_usage_statsApp.swift:649:24: warning: static property 'cachedCompactIcon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
647 | public enum AgyMenuBarRenderer {
648 | private static var cachedAntigravityIcon: (key: String, image: NSImage)? = nil
649 | private static var cachedCompactIcon: (key: String, image: NSImage)? = nil
| |- warning: static property 'cachedCompactIcon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cachedCompactIcon' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cachedCompactIcon' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
650 |
651 | public static func makeCompactStackedImage(
macro expansion @ObservationTracked:7:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:224:6: note: expanded code originates here
222 | Task { await refresh() }
223 | }
224 | }
+--- macro expansion @ObservationTracked --------------------------
| 5 | AgyStatsService.clearCaches()
| 6 | restartWatcher()
| 7 | Task {
| | `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
| 8 | await refresh()
| | `- note: closure captures 'self' which is accessible to code in the current task
| 9 | }
|10 | }
+------------------------------------------------------------------
225 |
226 | public var menuBarDisplayMode: MenuBarDisplayMode {
macro expansion @ObservationTracked:5:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/agy-usage-stats/ViewModels/AgyStatsViewModel.swift:305:6: note: expanded code originates here
303 | }
304 | }
305 | }
+--- macro expansion @ObservationTracked --------------------------
| 3 | userDefaults.set(showMuseTracking, forKey: "agy_showMuseTracking")
| 4 | if showMuseTracking {
| 5 | Task {
| | `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
| 6 | await refreshMuseQuota(forceRefresh: false)
| | `- note: closure captures 'self' which is accessible to code in the current task
| 7 | }
| 8 | }
+------------------------------------------------------------------
306 |
307 | public var showMuseInMenuBar: Bool {
[18/29] Compiling agy_usage_stats MenuBarPopover.swift
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Views/MenuBarPopover.swift:80:33: warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
78 | viewModel.setup()
79 | Task {
80 | await viewModel.refreshQuotaOnly(forceRefresh: false)
| |- warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.viewModel' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
81 | if viewModel.showMuseTracking {
82 | await viewModel.refreshMuseQuota(forceRefresh: false)
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Views/MenuBarPopover.swift:82:37: warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
80 | await viewModel.refreshQuotaOnly(forceRefresh: false)
81 | if viewModel.showMuseTracking {
82 | await viewModel.refreshMuseQuota(forceRefresh: false)
| |- warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.viewModel' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Views/MenuBarPopover.swift:123:49: warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
121 | Button {
122 | Task {
123 | await viewModel.refresh()
| |- warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.viewModel' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
124 | if viewModel.showMuseTracking {
125 | await viewModel.refreshMuseQuota(forceRefresh: true)
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Views/MenuBarPopover.swift:125:53: warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
123 | await viewModel.refresh()
124 | if viewModel.showMuseTracking {
125 | await viewModel.refreshMuseQuota(forceRefresh: true)
| |- warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.viewModel' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
126 | }
127 | }
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Views/OverviewTabView.swift:1347:49: warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
1345 | Button {
1346 | Task {
1347 | await viewModel.refreshMuseQuota(forceRefresh: true)
| |- warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.viewModel' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
1348 | }
1349 | } label: {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Views/OverviewTabView.swift:1395:49: warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
1393 | Button {
1394 | Task {
1395 | await viewModel.refreshMuseQuota(forceRefresh: true)
| |- warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.viewModel' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
1396 | }
1397 | } label: {
[19/29] Compiling agy_usage_stats OverviewTabView.swift
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Views/MenuBarPopover.swift:80:33: warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
78 | viewModel.setup()
79 | Task {
80 | await viewModel.refreshQuotaOnly(forceRefresh: false)
| |- warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.viewModel' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
81 | if viewModel.showMuseTracking {
82 | await viewModel.refreshMuseQuota(forceRefresh: false)
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Views/MenuBarPopover.swift:82:37: warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
80 | await viewModel.refreshQuotaOnly(forceRefresh: false)
81 | if viewModel.showMuseTracking {
82 | await viewModel.refreshMuseQuota(forceRefresh: false)
| |- warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.viewModel' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Views/MenuBarPopover.swift:123:49: warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
121 | Button {
122 | Task {
123 | await viewModel.refresh()
| |- warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.viewModel' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
124 | if viewModel.showMuseTracking {
125 | await viewModel.refreshMuseQuota(forceRefresh: true)
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Views/MenuBarPopover.swift:125:53: warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
123 | await viewModel.refresh()
124 | if viewModel.showMuseTracking {
125 | await viewModel.refreshMuseQuota(forceRefresh: true)
| |- warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.viewModel' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
126 | }
127 | }
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Views/OverviewTabView.swift:1347:49: warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
1345 | Button {
1346 | Task {
1347 | await viewModel.refreshMuseQuota(forceRefresh: true)
| |- warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.viewModel' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
1348 | }
1349 | } label: {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Views/OverviewTabView.swift:1395:49: warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
1393 | Button {
1394 | Task {
1395 | await viewModel.refreshMuseQuota(forceRefresh: true)
| |- warning: sending 'self.viewModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.viewModel' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
1396 | }
1397 | } label: {
[20/29] Compiling agy_usage_stats AgyQuotaService.swift
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:87:24: warning: static property 'conversationCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
85 | }
86 |
87 | private static var conversationCache: [String: ConversationCacheEntry] = [:]
| |- warning: static property 'conversationCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'conversationCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'conversationCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 | private static let conversationCacheLock = NSLock()
89 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:90:24: warning: static property 'historyCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
88 | private static let conversationCacheLock = NSLock()
89 |
90 | private static var historyCache: [String: HistoryCacheEntry] = [:]
| |- warning: static property 'historyCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'historyCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'historyCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
91 | private static let historyCacheLock = NSLock()
92 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:93:24: warning: static property 'authCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
91 | private static let historyCacheLock = NSLock()
92 |
93 | private static var authCache: AuthCacheEntry? = nil
| |- warning: static property 'authCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'authCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'authCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
94 | private static let authCacheLock = NSLock()
95 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:96:24: warning: static property 'logFileCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
94 | private static let authCacheLock = NSLock()
95 |
96 | private static var logFileCache: [String: LogFileEntry] = [:]
| |- warning: static property 'logFileCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logFileCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logFileCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 | private static let logFileCacheLock = NSLock()
98 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:99:24: warning: static property 'gcpConsumerLogCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
97 | private static let logFileCacheLock = NSLock()
98 |
99 | private static var gcpConsumerLogCache: [String: GcpConsumerLogEntry] = [:]
| |- warning: static property 'gcpConsumerLogCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gcpConsumerLogCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'gcpConsumerLogCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 | private static let gcpConsumerLogCacheLock = NSLock()
101 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:126:24: warning: static property 'modelTransitionCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
124 | }
125 |
126 | private static var modelTransitionCache: ModelTransitionCacheEntry? = nil
| |- warning: static property 'modelTransitionCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'modelTransitionCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'modelTransitionCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
127 | private static let modelTransitionCacheLock = NSLock()
128 | private static var modelLogFileCache: [String: ModelLogFileEntry] = [:]
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:128:24: warning: static property 'modelLogFileCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
126 | private static var modelTransitionCache: ModelTransitionCacheEntry? = nil
127 | private static let modelTransitionCacheLock = NSLock()
128 | private static var modelLogFileCache: [String: ModelLogFileEntry] = [:]
| |- warning: static property 'modelLogFileCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'modelLogFileCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'modelLogFileCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
129 | private static let modelLogFileCacheLock = NSLock()
130 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:147:24: warning: static property 'diskCacheLoaded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
145 | private static let diskCacheQueue = DispatchQueue(label: "com.antigravity.agy-usage-stats.diskcache", qos: .utility)
146 | private static let diskCacheStateLock = NSLock()
147 | private static var diskCacheLoaded = false
| |- warning: static property 'diskCacheLoaded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'diskCacheLoaded' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'diskCacheLoaded' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 | private static var diskCacheSaveScheduled = false
149 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:148:24: warning: static property 'diskCacheSaveScheduled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
146 | private static let diskCacheStateLock = NSLock()
147 | private static var diskCacheLoaded = false
148 | private static var diskCacheSaveScheduled = false
| |- warning: static property 'diskCacheSaveScheduled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'diskCacheSaveScheduled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'diskCacheSaveScheduled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
149 |
150 | private static var diskCacheFileURL: URL? {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:280:24: warning: static property 'statsCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
278 | }
279 |
280 | private static var statsCache: StatsCacheEntry? = nil
| |- warning: static property 'statsCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'statsCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'statsCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
281 | private static let statsCacheLock = NSLock()
282 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:293:24: warning: static property 'consumerEmailCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
291 | }
292 |
293 | private static var consumerEmailCache: [String: ConsumerEmailCacheEntry] = [:]
| |- warning: static property 'consumerEmailCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'consumerEmailCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'consumerEmailCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
294 | private static let consumerEmailCacheLock = NSLock()
295 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:2792:82: warning: left side of nil coalescing operator '??' has non-optional type 'String', so the right side is never used
2790 | hadMiss = true
2791 | var fileConvIds: [String] = []
2792 | if let text = try? String(contentsOfFile: fullPath, encoding: .utf8) ?? String(contentsOfFile: fullPath, encoding: .ascii) {
| `- warning: left side of nil coalescing operator '??' has non-optional type 'String', so the right side is never used
2793 | let isConsumer = text.contains("authMethod=consumer") || text.contains("daily-cloudcode-pa.googleapis.com")
2794 | let isGcp = text.contains("authMethod=gcp") || text.contains("aiplatform")
[21/29] Compiling agy_usage_stats AgyStatsService.swift
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:87:24: warning: static property 'conversationCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
85 | }
86 |
87 | private static var conversationCache: [String: ConversationCacheEntry] = [:]
| |- warning: static property 'conversationCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'conversationCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'conversationCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 | private static let conversationCacheLock = NSLock()
89 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:90:24: warning: static property 'historyCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
88 | private static let conversationCacheLock = NSLock()
89 |
90 | private static var historyCache: [String: HistoryCacheEntry] = [:]
| |- warning: static property 'historyCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'historyCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'historyCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
91 | private static let historyCacheLock = NSLock()
92 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:93:24: warning: static property 'authCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
91 | private static let historyCacheLock = NSLock()
92 |
93 | private static var authCache: AuthCacheEntry? = nil
| |- warning: static property 'authCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'authCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'authCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
94 | private static let authCacheLock = NSLock()
95 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:96:24: warning: static property 'logFileCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
94 | private static let authCacheLock = NSLock()
95 |
96 | private static var logFileCache: [String: LogFileEntry] = [:]
| |- warning: static property 'logFileCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logFileCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logFileCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 | private static let logFileCacheLock = NSLock()
98 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:99:24: warning: static property 'gcpConsumerLogCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
97 | private static let logFileCacheLock = NSLock()
98 |
99 | private static var gcpConsumerLogCache: [String: GcpConsumerLogEntry] = [:]
| |- warning: static property 'gcpConsumerLogCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gcpConsumerLogCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'gcpConsumerLogCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 | private static let gcpConsumerLogCacheLock = NSLock()
101 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:126:24: warning: static property 'modelTransitionCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
124 | }
125 |
126 | private static var modelTransitionCache: ModelTransitionCacheEntry? = nil
| |- warning: static property 'modelTransitionCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'modelTransitionCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'modelTransitionCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
127 | private static let modelTransitionCacheLock = NSLock()
128 | private static var modelLogFileCache: [String: ModelLogFileEntry] = [:]
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:128:24: warning: static property 'modelLogFileCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
126 | private static var modelTransitionCache: ModelTransitionCacheEntry? = nil
127 | private static let modelTransitionCacheLock = NSLock()
128 | private static var modelLogFileCache: [String: ModelLogFileEntry] = [:]
| |- warning: static property 'modelLogFileCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'modelLogFileCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'modelLogFileCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
129 | private static let modelLogFileCacheLock = NSLock()
130 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:147:24: warning: static property 'diskCacheLoaded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
145 | private static let diskCacheQueue = DispatchQueue(label: "com.antigravity.agy-usage-stats.diskcache", qos: .utility)
146 | private static let diskCacheStateLock = NSLock()
147 | private static var diskCacheLoaded = false
| |- warning: static property 'diskCacheLoaded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'diskCacheLoaded' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'diskCacheLoaded' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 | private static var diskCacheSaveScheduled = false
149 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:148:24: warning: static property 'diskCacheSaveScheduled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
146 | private static let diskCacheStateLock = NSLock()
147 | private static var diskCacheLoaded = false
148 | private static var diskCacheSaveScheduled = false
| |- warning: static property 'diskCacheSaveScheduled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'diskCacheSaveScheduled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'diskCacheSaveScheduled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
149 |
150 | private static var diskCacheFileURL: URL? {
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:280:24: warning: static property 'statsCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
278 | }
279 |
280 | private static var statsCache: StatsCacheEntry? = nil
| |- warning: static property 'statsCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'statsCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'statsCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
281 | private static let statsCacheLock = NSLock()
282 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:293:24: warning: static property 'consumerEmailCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
291 | }
292 |
293 | private static var consumerEmailCache: [String: ConsumerEmailCacheEntry] = [:]
| |- warning: static property 'consumerEmailCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'consumerEmailCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'consumerEmailCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
294 | private static let consumerEmailCacheLock = NSLock()
295 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyStatsService.swift:2792:82: warning: left side of nil coalescing operator '??' has non-optional type 'String', so the right side is never used
2790 | hadMiss = true
2791 | var fileConvIds: [String] = []
2792 | if let text = try? String(contentsOfFile: fullPath, encoding: .utf8) ?? String(contentsOfFile: fullPath, encoding: .ascii) {
| `- warning: left side of nil coalescing operator '??' has non-optional type 'String', so the right side is never used
2793 | let isConsumer = text.contains("authMethod=consumer") || text.contains("daily-cloudcode-pa.googleapis.com")
2794 | let isGcp = text.contains("authMethod=gcp") || text.contains("aiplatform")
[22/29] Compiling agy_usage_stats ContentView.swift
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Models/AgyModels.swift:364:24: warning: static property 'iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
362 | }
363 |
364 | private static let iso8601Formatter = ISO8601DateFormatter()
| |- warning: static property 'iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'iso8601Formatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
365 | private static let iso8601FractionalFormatter: ISO8601DateFormatter = {
366 | let f = ISO8601DateFormatter()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 | CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Models/AgyModels.swift:365:24: warning: static property 'iso8601FractionalFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
363 |
364 | private static let iso8601Formatter = ISO8601DateFormatter()
365 | private static let iso8601FractionalFormatter: ISO8601DateFormatter = {
| |- warning: static property 'iso8601FractionalFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'iso8601FractionalFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
366 | let f = ISO8601DateFormatter()
367 | f.formatOptions = [.withInternetDateTime, .withFractionalSeconds]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 | CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyFileWatcher.swift:91:30: warning: capture of 'self' with non-sendable type 'AgyFileWatcher?' in a '@Sendable' closure
10 |
11 | @Observable
12 | public final class AgyFileWatcher {
| `- note: class 'AgyFileWatcher' does not conform to the 'Sendable' protocol
13 | public var isWatching = false
14 | public var onFileChanged: (() -> Void)?
:
89 |
90 | queue.async { [weak self] in
91 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'AgyFileWatcher?' in a '@Sendable' closure
92 | self.lastSignature = self.currentSignature()
93 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyFileWatcher.swift:207:13: warning: capture of 'self' with non-sendable type 'AgyFileWatcher?' in a '@Sendable' closure
10 |
11 | @Observable
12 | public final class AgyFileWatcher {
| `- note: class 'AgyFileWatcher' does not conform to the 'Sendable' protocol
13 | public var isWatching = false
14 | public var onFileChanged: (() -> Void)?
:
205 | isWatching = false
206 | queue.async { [weak self] in
207 | self?.timerSource?.cancel()
| `- warning: capture of 'self' with non-sendable type 'AgyFileWatcher?' in a '@Sendable' closure
208 | self?.timerSource = nil
209 | self?.historySource?.cancel()
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyFileWatcher.swift:270:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
268 | let workItem = DispatchWorkItem { [weak self] in
269 | DispatchQueue.main.async {
270 | self?.onFileChanged?()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
271 | }
272 | }
[23/29] Compiling agy_usage_stats AgyModels.swift
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Models/AgyModels.swift:364:24: warning: static property 'iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
362 | }
363 |
364 | private static let iso8601Formatter = ISO8601DateFormatter()
| |- warning: static property 'iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'iso8601Formatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
365 | private static let iso8601FractionalFormatter: ISO8601DateFormatter = {
366 | let f = ISO8601DateFormatter()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 | CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Models/AgyModels.swift:365:24: warning: static property 'iso8601FractionalFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
363 |
364 | private static let iso8601Formatter = ISO8601DateFormatter()
365 | private static let iso8601FractionalFormatter: ISO8601DateFormatter = {
| |- warning: static property 'iso8601FractionalFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'iso8601FractionalFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
366 | let f = ISO8601DateFormatter()
367 | f.formatOptions = [.withInternetDateTime, .withFractionalSeconds]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 | CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyFileWatcher.swift:91:30: warning: capture of 'self' with non-sendable type 'AgyFileWatcher?' in a '@Sendable' closure
10 |
11 | @Observable
12 | public final class AgyFileWatcher {
| `- note: class 'AgyFileWatcher' does not conform to the 'Sendable' protocol
13 | public var isWatching = false
14 | public var onFileChanged: (() -> Void)?
:
89 |
90 | queue.async { [weak self] in
91 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'AgyFileWatcher?' in a '@Sendable' closure
92 | self.lastSignature = self.currentSignature()
93 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyFileWatcher.swift:207:13: warning: capture of 'self' with non-sendable type 'AgyFileWatcher?' in a '@Sendable' closure
10 |
11 | @Observable
12 | public final class AgyFileWatcher {
| `- note: class 'AgyFileWatcher' does not conform to the 'Sendable' protocol
13 | public var isWatching = false
14 | public var onFileChanged: (() -> Void)?
:
205 | isWatching = false
206 | queue.async { [weak self] in
207 | self?.timerSource?.cancel()
| `- warning: capture of 'self' with non-sendable type 'AgyFileWatcher?' in a '@Sendable' closure
208 | self?.timerSource = nil
209 | self?.historySource?.cancel()
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyFileWatcher.swift:270:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
268 | let workItem = DispatchWorkItem { [weak self] in
269 | DispatchQueue.main.async {
270 | self?.onFileChanged?()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
271 | }
272 | }
[24/29] Compiling agy_usage_stats AgyFileWatcher.swift
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Models/AgyModels.swift:364:24: warning: static property 'iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
362 | }
363 |
364 | private static let iso8601Formatter = ISO8601DateFormatter()
| |- warning: static property 'iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'iso8601Formatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
365 | private static let iso8601FractionalFormatter: ISO8601DateFormatter = {
366 | let f = ISO8601DateFormatter()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 | CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Models/AgyModels.swift:365:24: warning: static property 'iso8601FractionalFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
363 |
364 | private static let iso8601Formatter = ISO8601DateFormatter()
365 | private static let iso8601FractionalFormatter: ISO8601DateFormatter = {
| |- warning: static property 'iso8601FractionalFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'iso8601FractionalFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
366 | let f = ISO8601DateFormatter()
367 | f.formatOptions = [.withInternetDateTime, .withFractionalSeconds]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 | CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyFileWatcher.swift:91:30: warning: capture of 'self' with non-sendable type 'AgyFileWatcher?' in a '@Sendable' closure
10 |
11 | @Observable
12 | public final class AgyFileWatcher {
| `- note: class 'AgyFileWatcher' does not conform to the 'Sendable' protocol
13 | public var isWatching = false
14 | public var onFileChanged: (() -> Void)?
:
89 |
90 | queue.async { [weak self] in
91 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'AgyFileWatcher?' in a '@Sendable' closure
92 | self.lastSignature = self.currentSignature()
93 |
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyFileWatcher.swift:207:13: warning: capture of 'self' with non-sendable type 'AgyFileWatcher?' in a '@Sendable' closure
10 |
11 | @Observable
12 | public final class AgyFileWatcher {
| `- note: class 'AgyFileWatcher' does not conform to the 'Sendable' protocol
13 | public var isWatching = false
14 | public var onFileChanged: (() -> Void)?
:
205 | isWatching = false
206 | queue.async { [weak self] in
207 | self?.timerSource?.cancel()
| `- warning: capture of 'self' with non-sendable type 'AgyFileWatcher?' in a '@Sendable' closure
208 | self?.timerSource = nil
209 | self?.historySource?.cancel()
/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Services/AgyFileWatcher.swift:270:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
268 | let workItem = DispatchWorkItem { [weak self] in
269 | DispatchQueue.main.async {
270 | self?.onFileChanged?()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
271 | }
272 | }
[25/29] Compiling agy_usage_stats CostTabView.swift
[26/29] Compiling agy_usage_stats HistoryTabView.swift
[26/29] Write Objects.LinkFileList
[27/29] Linking agy-usage-stats
[28/29] Applying agy-usage-stats
Build complete! (17.20s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "agy-usage-stats",
"name" : "agy-usage-stats",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "15.0"
}
],
"products" : [
{
"name" : "agy-usage-stats",
"targets" : [
"agy-usage-stats"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "agy_usage_statsTests",
"module_type" : "SwiftTarget",
"name" : "agy-usage-statsTests",
"path" : "agy-usage-statsTests",
"sources" : [
"AgyStatsServiceTests.swift",
"OverviewTabViewTests.swift",
"agy_usage_statsTests.swift"
],
"target_dependencies" : [
"agy-usage-stats"
],
"type" : "test"
},
{
"c99name" : "agy_usage_stats",
"module_type" : "SwiftTarget",
"name" : "agy-usage-stats",
"path" : "agy-usage-stats",
"product_memberships" : [
"agy-usage-stats"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/agy-usage-stats/Assets.xcassets",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"ContentView.swift",
"Models/AgyModels.swift",
"Services/AgyFileWatcher.swift",
"Services/AgyQuotaService.swift",
"Services/AgyStatsService.swift",
"Services/MuseQuotaService.swift",
"Services/SelfUpdater.swift",
"Services/UpdateChecker.swift",
"ViewModels/AgyStatsViewModel.swift",
"Views/ActivityTabView.swift",
"Views/AppTheme.swift",
"Views/CostTabView.swift",
"Views/HistoryTabView.swift",
"Views/MenuBarPopover.swift",
"Views/OverviewTabView.swift",
"Views/SettingsTabView.swift",
"Views/StatsTabView.swift",
"Views/Styles.swift",
"Views/WorkspacesTabView.swift",
"agy_usage_statsApp.swift"
],
"type" : "executable"
}
],
"tools_version" : "5.9"
}
Done.