diff --git a/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift b/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift index 9d2ca5ed4..9f8ce909c 100644 --- a/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift +++ b/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift @@ -589,20 +589,24 @@ public struct AgentIdentityResult: Codable, Sendable { public let agentid: String public let name: String? public let avatar: String? + public let emoji: String? public init( agentid: String, name: String?, - avatar: String? + avatar: String?, + emoji: String? ) { self.agentid = agentid self.name = name self.avatar = avatar + self.emoji = emoji } private enum CodingKeys: String, CodingKey { case agentid = "agentId" case name case avatar + case emoji } } @@ -1556,6 +1560,157 @@ public struct AgentSummary: Codable, Sendable { } } +public struct AgentsFileEntry: Codable, Sendable { + public let name: String + public let path: String + public let missing: Bool + public let size: Int? + public let updatedatms: Int? + public let content: String? + + public init( + name: String, + path: String, + missing: Bool, + size: Int?, + updatedatms: Int?, + content: String? + ) { + self.name = name + self.path = path + self.missing = missing + self.size = size + self.updatedatms = updatedatms + self.content = content + } + private enum CodingKeys: String, CodingKey { + case name + case path + case missing + case size + case updatedatms = "updatedAtMs" + case content + } +} + +public struct AgentsFilesListParams: Codable, Sendable { + public let agentid: String + + public init( + agentid: String + ) { + self.agentid = agentid + } + private enum CodingKeys: String, CodingKey { + case agentid = "agentId" + } +} + +public struct AgentsFilesListResult: Codable, Sendable { + public let agentid: String + public let workspace: String + public let files: [AgentsFileEntry] + + public init( + agentid: String, + workspace: String, + files: [AgentsFileEntry] + ) { + self.agentid = agentid + self.workspace = workspace + self.files = files + } + private enum CodingKeys: String, CodingKey { + case agentid = "agentId" + case workspace + case files + } +} + +public struct AgentsFilesGetParams: Codable, Sendable { + public let agentid: String + public let name: String + + public init( + agentid: String, + name: String + ) { + self.agentid = agentid + self.name = name + } + private enum CodingKeys: String, CodingKey { + case agentid = "agentId" + case name + } +} + +public struct AgentsFilesGetResult: Codable, Sendable { + public let agentid: String + public let workspace: String + public let file: AgentsFileEntry + + public init( + agentid: String, + workspace: String, + file: AgentsFileEntry + ) { + self.agentid = agentid + self.workspace = workspace + self.file = file + } + private enum CodingKeys: String, CodingKey { + case agentid = "agentId" + case workspace + case file + } +} + +public struct AgentsFilesSetParams: Codable, Sendable { + public let agentid: String + public let name: String + public let content: String + + public init( + agentid: String, + name: String, + content: String + ) { + self.agentid = agentid + self.name = name + self.content = content + } + private enum CodingKeys: String, CodingKey { + case agentid = "agentId" + case name + case content + } +} + +public struct AgentsFilesSetResult: Codable, Sendable { + public let ok: Bool + public let agentid: String + public let workspace: String + public let file: AgentsFileEntry + + public init( + ok: Bool, + agentid: String, + workspace: String, + file: AgentsFileEntry + ) { + self.ok = ok + self.agentid = agentid + self.workspace = workspace + self.file = file + } + private enum CodingKeys: String, CodingKey { + case ok + case agentid = "agentId" + case workspace + case file + } +} + public struct AgentsListParams: Codable, Sendable { } @@ -1630,6 +1785,16 @@ public struct ModelsListResult: Codable, Sendable { } public struct SkillsStatusParams: Codable, Sendable { + public let agentid: String? + + public init( + agentid: String? + ) { + self.agentid = agentid + } + private enum CodingKeys: String, CodingKey { + case agentid = "agentId" + } } public struct SkillsBinsParams: Codable, Sendable { diff --git a/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift b/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift index 9d2ca5ed4..9f8ce909c 100644 --- a/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift +++ b/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift @@ -589,20 +589,24 @@ public struct AgentIdentityResult: Codable, Sendable { public let agentid: String public let name: String? public let avatar: String? + public let emoji: String? public init( agentid: String, name: String?, - avatar: String? + avatar: String?, + emoji: String? ) { self.agentid = agentid self.name = name self.avatar = avatar + self.emoji = emoji } private enum CodingKeys: String, CodingKey { case agentid = "agentId" case name case avatar + case emoji } } @@ -1556,6 +1560,157 @@ public struct AgentSummary: Codable, Sendable { } } +public struct AgentsFileEntry: Codable, Sendable { + public let name: String + public let path: String + public let missing: Bool + public let size: Int? + public let updatedatms: Int? + public let content: String? + + public init( + name: String, + path: String, + missing: Bool, + size: Int?, + updatedatms: Int?, + content: String? + ) { + self.name = name + self.path = path + self.missing = missing + self.size = size + self.updatedatms = updatedatms + self.content = content + } + private enum CodingKeys: String, CodingKey { + case name + case path + case missing + case size + case updatedatms = "updatedAtMs" + case content + } +} + +public struct AgentsFilesListParams: Codable, Sendable { + public let agentid: String + + public init( + agentid: String + ) { + self.agentid = agentid + } + private enum CodingKeys: String, CodingKey { + case agentid = "agentId" + } +} + +public struct AgentsFilesListResult: Codable, Sendable { + public let agentid: String + public let workspace: String + public let files: [AgentsFileEntry] + + public init( + agentid: String, + workspace: String, + files: [AgentsFileEntry] + ) { + self.agentid = agentid + self.workspace = workspace + self.files = files + } + private enum CodingKeys: String, CodingKey { + case agentid = "agentId" + case workspace + case files + } +} + +public struct AgentsFilesGetParams: Codable, Sendable { + public let agentid: String + public let name: String + + public init( + agentid: String, + name: String + ) { + self.agentid = agentid + self.name = name + } + private enum CodingKeys: String, CodingKey { + case agentid = "agentId" + case name + } +} + +public struct AgentsFilesGetResult: Codable, Sendable { + public let agentid: String + public let workspace: String + public let file: AgentsFileEntry + + public init( + agentid: String, + workspace: String, + file: AgentsFileEntry + ) { + self.agentid = agentid + self.workspace = workspace + self.file = file + } + private enum CodingKeys: String, CodingKey { + case agentid = "agentId" + case workspace + case file + } +} + +public struct AgentsFilesSetParams: Codable, Sendable { + public let agentid: String + public let name: String + public let content: String + + public init( + agentid: String, + name: String, + content: String + ) { + self.agentid = agentid + self.name = name + self.content = content + } + private enum CodingKeys: String, CodingKey { + case agentid = "agentId" + case name + case content + } +} + +public struct AgentsFilesSetResult: Codable, Sendable { + public let ok: Bool + public let agentid: String + public let workspace: String + public let file: AgentsFileEntry + + public init( + ok: Bool, + agentid: String, + workspace: String, + file: AgentsFileEntry + ) { + self.ok = ok + self.agentid = agentid + self.workspace = workspace + self.file = file + } + private enum CodingKeys: String, CodingKey { + case ok + case agentid = "agentId" + case workspace + case file + } +} + public struct AgentsListParams: Codable, Sendable { } @@ -1630,6 +1785,16 @@ public struct ModelsListResult: Codable, Sendable { } public struct SkillsStatusParams: Codable, Sendable { + public let agentid: String? + + public init( + agentid: String? + ) { + self.agentid = agentid + } + private enum CodingKeys: String, CodingKey { + case agentid = "agentId" + } } public struct SkillsBinsParams: Codable, Sendable { diff --git a/ui/src/ui/components/resizable-divider.ts b/ui/src/ui/components/resizable-divider.ts index 4741027e8..defec19e5 100644 --- a/ui/src/ui/components/resizable-divider.ts +++ b/ui/src/ui/components/resizable-divider.ts @@ -24,7 +24,6 @@ export class ResizableDivider extends LitElement { flex-shrink: 0; position: relative; } - :host::before { content: ""; position: absolute; @@ -33,11 +32,9 @@ export class ResizableDivider extends LitElement { right: -4px; bottom: 0; } - :host(:hover) { background: var(--accent, #007bff); } - :host(.dragging) { background: var(--accent, #007bff); }