mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-12 00:10:44 +08:00
同时收敛启动与运维脚本默认行为(含 wiki worker)、更新 Admin 可观测性与相关测试,降低首轮时延并提高运行稳定性。 Made-with: Cursor
28 lines
773 B
Swift
28 lines
773 B
Swift
import Foundation
|
|
|
|
public enum OpenClawTalkCommand: String, Codable, Sendable {
|
|
case pttStart = "talk.ptt.start"
|
|
case pttStop = "talk.ptt.stop"
|
|
case pttCancel = "talk.ptt.cancel"
|
|
case pttOnce = "talk.ptt.once"
|
|
}
|
|
|
|
public struct OpenClawTalkPTTStartPayload: Codable, Sendable, Equatable {
|
|
public var captureId: String
|
|
|
|
public init(captureId: String) {
|
|
self.captureId = captureId
|
|
}
|
|
}
|
|
|
|
public struct OpenClawTalkPTTStopPayload: Codable, Sendable, Equatable {
|
|
public var captureId: String
|
|
public var transcript: String?
|
|
public var status: String
|
|
|
|
public init(captureId: String, transcript: String?, status: String) {
|
|
self.captureId = captureId
|
|
self.transcript = transcript
|
|
self.status = status
|
|
}
|
|
}
|