Files
openclaw/apps/shared/OpenClawKit/Sources/OpenClawKit/SystemCommands.swift
Peter Steinberger e01d1e85f3 ci(swift): enforce shared OpenClawKit dead-code coverage (#105770)
* ci(swift): enforce shared kit dead-code coverage

* chore(i18n): sync native source inventory

* ci(swift): install pinned iOS scan tools
2026-07-12 17:35:47 -07:00

48 lines
1.2 KiB
Swift

import Foundation
public enum OpenClawSystemCommand: String, Codable, Sendable {
case run = "system.run"
case which = "system.which"
case notify = "system.notify"
case execApprovalsGet = "system.execApprovals.get"
case execApprovalsSet = "system.execApprovals.set"
}
public enum OpenClawFileSystemCommand: String, Codable, Sendable {
case listDir = "fs.listDir"
}
public enum OpenClawNotificationPriority: String, Codable, Sendable {
case passive
case active
case timeSensitive
}
public enum OpenClawNotificationDelivery: String, Codable, Sendable {
case system
case overlay
case auto
}
public struct OpenClawSystemNotifyParams: Codable, Sendable, Equatable {
public var title: String
public var body: String
public var sound: String?
public var priority: OpenClawNotificationPriority?
public var delivery: OpenClawNotificationDelivery?
public init(
title: String,
body: String,
sound: String? = nil,
priority: OpenClawNotificationPriority? = nil,
delivery: OpenClawNotificationDelivery? = nil)
{
self.title = title
self.body = body
self.sound = sound
self.priority = priority
self.delivery = delivery
}
}