From 8778c39ed06a57d6c2549cc41d0673a6bb177fde Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 13 Jan 2026 10:10:25 +0000 Subject: [PATCH] fix: restore GatewayAgentChannel enum location --- .../Clawdbot/GatewayAgentChannel.swift | 22 ------------------- .../Sources/Clawdbot/GatewayConnection.swift | 21 ++++++++++++++++++ 2 files changed, 21 insertions(+), 22 deletions(-) delete mode 100644 apps/macos/Sources/Clawdbot/GatewayAgentChannel.swift diff --git a/apps/macos/Sources/Clawdbot/GatewayAgentChannel.swift b/apps/macos/Sources/Clawdbot/GatewayAgentChannel.swift deleted file mode 100644 index cab513446..000000000 --- a/apps/macos/Sources/Clawdbot/GatewayAgentChannel.swift +++ /dev/null @@ -1,22 +0,0 @@ -import Foundation - -enum GatewayAgentChannel: String, Codable, CaseIterable, Sendable { - case last - case whatsapp - case telegram - case discord - case slack - case signal - case imessage - case msteams - case webchat - - init(raw: String?) { - let normalized = (raw ?? "").trimmingCharacters(in: .whitespacesAndNewlines).lowercased() - self = GatewayAgentChannel(rawValue: normalized) ?? .last - } - - var isDeliverable: Bool { self != .webchat } - - func shouldDeliver(_ deliver: Bool) -> Bool { deliver && self.isDeliverable } -} diff --git a/apps/macos/Sources/Clawdbot/GatewayConnection.swift b/apps/macos/Sources/Clawdbot/GatewayConnection.swift index c73353a63..29ee39fed 100644 --- a/apps/macos/Sources/Clawdbot/GatewayConnection.swift +++ b/apps/macos/Sources/Clawdbot/GatewayConnection.swift @@ -5,6 +5,27 @@ import OSLog private let gatewayConnectionLogger = Logger(subsystem: "com.clawdbot", category: "gateway.connection") +enum GatewayAgentChannel: String, Codable, CaseIterable, Sendable { + case last + case whatsapp + case telegram + case discord + case slack + case signal + case imessage + case msteams + case webchat + + init(raw: String?) { + let normalized = (raw ?? "").trimmingCharacters(in: .whitespacesAndNewlines).lowercased() + self = GatewayAgentChannel(rawValue: normalized) ?? .last + } + + var isDeliverable: Bool { self != .webchat } + + func shouldDeliver(_ deliver: Bool) -> Bool { deliver && self.isDeliverable } +} + struct GatewayAgentInvocation: Sendable { var message: String var sessionKey: String = "main"