From 058f00ba0b7c34bbaaa506de24c8dff600e73ce2 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Thu, 22 Jan 2026 11:02:03 +0000 Subject: [PATCH] chore: update protocol Swift models --- .../ClawdbotProtocol/GatewayModels.swift | 21 +++++++++++++++++++ .../ClawdbotProtocol/GatewayModels.swift | 21 +++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/apps/macos/Sources/ClawdbotProtocol/GatewayModels.swift b/apps/macos/Sources/ClawdbotProtocol/GatewayModels.swift index aefbdb572..4b80bf3f6 100644 --- a/apps/macos/Sources/ClawdbotProtocol/GatewayModels.swift +++ b/apps/macos/Sources/ClawdbotProtocol/GatewayModels.swift @@ -925,6 +925,27 @@ public struct SessionsListParams: Codable, Sendable { } } +public struct SessionsPreviewParams: Codable, Sendable { + public let keys: [String] + public let limit: Int? + public let maxchars: Int? + + public init( + keys: [String], + limit: Int?, + maxchars: Int? + ) { + self.keys = keys + self.limit = limit + self.maxchars = maxchars + } + private enum CodingKeys: String, CodingKey { + case keys + case limit + case maxchars = "maxChars" + } +} + public struct SessionsResolveParams: Codable, Sendable { public let key: String? public let label: String? diff --git a/apps/shared/ClawdbotKit/Sources/ClawdbotProtocol/GatewayModels.swift b/apps/shared/ClawdbotKit/Sources/ClawdbotProtocol/GatewayModels.swift index aefbdb572..4b80bf3f6 100644 --- a/apps/shared/ClawdbotKit/Sources/ClawdbotProtocol/GatewayModels.swift +++ b/apps/shared/ClawdbotKit/Sources/ClawdbotProtocol/GatewayModels.swift @@ -925,6 +925,27 @@ public struct SessionsListParams: Codable, Sendable { } } +public struct SessionsPreviewParams: Codable, Sendable { + public let keys: [String] + public let limit: Int? + public let maxchars: Int? + + public init( + keys: [String], + limit: Int?, + maxchars: Int? + ) { + self.keys = keys + self.limit = limit + self.maxchars = maxchars + } + private enum CodingKeys: String, CodingKey { + case keys + case limit + case maxchars = "maxChars" + } +} + public struct SessionsResolveParams: Codable, Sendable { public let key: String? public let label: String?