From 9308762d0bf48668c9d671a43460b2f7a1e36105 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 13 Jan 2026 05:10:04 +0000 Subject: [PATCH] style: swiftformat macos swift files --- apps/macos/Sources/Clawdbot/OnboardingWizard.swift | 3 +-- apps/macos/Sources/ClawdbotWizardCLI/main.swift | 8 ++++---- .../ClawdbotIPCTests/HealthStoreStateTests.swift | 12 ++++-------- 3 files changed, 9 insertions(+), 14 deletions(-) diff --git a/apps/macos/Sources/Clawdbot/OnboardingWizard.swift b/apps/macos/Sources/Clawdbot/OnboardingWizard.swift index edfe2ebd0..2d0ae7bea 100644 --- a/apps/macos/Sources/Clawdbot/OnboardingWizard.swift +++ b/apps/macos/Sources/Clawdbot/OnboardingWizard.swift @@ -149,8 +149,7 @@ final class OnboardingWizardModel { onboardingWizardLogger.error("wizard step decode failed") } if res.done { self.currentStep = nil } - if res.done || status == "done" || status == "cancelled" || status == "error" - { + if res.done || status == "done" || status == "cancelled" || status == "error" { self.sessionId = nil } } diff --git a/apps/macos/Sources/ClawdbotWizardCLI/main.swift b/apps/macos/Sources/ClawdbotWizardCLI/main.swift index 7fbcdb0c5..7369215a2 100644 --- a/apps/macos/Sources/ClawdbotWizardCLI/main.swift +++ b/apps/macos/Sources/ClawdbotWizardCLI/main.swift @@ -22,17 +22,17 @@ struct WizardCliOptions { case "--json": opts.json = true case "--url": - opts.url = nextValue(args, index: &i) + opts.url = self.nextValue(args, index: &i) case "--token": - opts.token = nextValue(args, index: &i) + opts.token = self.nextValue(args, index: &i) case "--password": - opts.password = nextValue(args, index: &i) + opts.password = self.nextValue(args, index: &i) case "--mode": if let value = nextValue(args, index: &i) { opts.mode = value } case "--workspace": - opts.workspace = nextValue(args, index: &i) + opts.workspace = self.nextValue(args, index: &i) default: break } diff --git a/apps/macos/Tests/ClawdbotIPCTests/HealthStoreStateTests.swift b/apps/macos/Tests/ClawdbotIPCTests/HealthStoreStateTests.swift index 560e5ab5a..9c2bb7ce8 100644 --- a/apps/macos/Tests/ClawdbotIPCTests/HealthStoreStateTests.swift +++ b/apps/macos/Tests/ClawdbotIPCTests/HealthStoreStateTests.swift @@ -19,22 +19,19 @@ import Testing error: "gateway connect failed", elapsedMs: 12, bot: nil, - webhook: nil - ), - lastProbeAt: 0 - ), + webhook: nil), + lastProbeAt: 0), ], providerOrder: ["whatsapp"], providerLabels: ["whatsapp": "WhatsApp"], heartbeatSeconds: 60, - sessions: .init(path: "/tmp/sessions.json", count: 0, recent: []) - ) + sessions: .init(path: "/tmp/sessions.json", count: 0, recent: [])) let store = HealthStore.shared store.__setSnapshotForTest(snap, lastError: nil) switch store.state { - case .degraded(let message): + case let .degraded(message): #expect(!message.isEmpty) default: Issue.record("Expected degraded state when probe fails for linked provider") @@ -43,4 +40,3 @@ import Testing #expect(store.summaryLine.contains("probe degraded")) } } -