@@ -3034,6 +3034,7 @@ public struct SessionFileEntry: Codable, Sendable {
30343034 public let size : Int ?
30353035 public let updatedatms : Int ?
30363036 public let content : String ?
3037+ public let hash : String ?
30373038
30383039 public init (
30393040 path : String ,
@@ -3043,7 +3044,8 @@ public struct SessionFileEntry: Codable, Sendable {
30433044 missing : Bool ,
30443045 size : Int ? = nil ,
30453046 updatedatms : Int ? = nil ,
3046- content : String ? = nil )
3047+ content : String ? = nil ,
3048+ hash : String ? = nil )
30473049 {
30483050 self . path = path
30493051 self . workspacepath = workspacepath
@@ -3053,6 +3055,7 @@ public struct SessionFileEntry: Codable, Sendable {
30533055 self . size = size
30543056 self . updatedatms = updatedatms
30553057 self . content = content
3058+ self . hash = hash
30563059 }
30573060
30583061 private enum CodingKeys : String , CodingKey {
@@ -3064,6 +3067,7 @@ public struct SessionFileEntry: Codable, Sendable {
30643067 case size
30653068 case updatedatms = " updatedAtMs "
30663069 case content
3070+ case hash
30673071 }
30683072}
30693073
@@ -3163,6 +3167,58 @@ public struct SessionsFilesGetResult: Codable, Sendable {
31633167 }
31643168}
31653169
3170+ public struct SessionsFilesSetParams : Codable , Sendable {
3171+ public let sessionkey : String
3172+ public let path : String
3173+ public let agentid : String ?
3174+ public let content : String
3175+ public let expectedhash : String
3176+
3177+ public init (
3178+ sessionkey : String ,
3179+ path : String ,
3180+ agentid : String ? = nil ,
3181+ content : String ,
3182+ expectedhash : String )
3183+ {
3184+ self . sessionkey = sessionkey
3185+ self . path = path
3186+ self . agentid = agentid
3187+ self . content = content
3188+ self . expectedhash = expectedhash
3189+ }
3190+
3191+ private enum CodingKeys : String , CodingKey {
3192+ case sessionkey = " sessionKey "
3193+ case path
3194+ case agentid = " agentId "
3195+ case content
3196+ case expectedhash = " expectedHash "
3197+ }
3198+ }
3199+
3200+ public struct SessionsFilesSetResult : Codable , Sendable {
3201+ public let sessionkey : String
3202+ public let root : String ?
3203+ public let file : SessionFileEntry
3204+
3205+ public init (
3206+ sessionkey : String ,
3207+ root : String ? = nil ,
3208+ file : SessionFileEntry )
3209+ {
3210+ self . sessionkey = sessionkey
3211+ self . root = root
3212+ self . file = file
3213+ }
3214+
3215+ private enum CodingKeys : String , CodingKey {
3216+ case sessionkey = " sessionKey "
3217+ case root
3218+ case file
3219+ }
3220+ }
3221+
31663222public struct SessionDiffFile : Codable , Sendable {
31673223 public let path : String
31683224 public let oldpath : String ?
0 commit comments