@@ -20,8 +20,7 @@ import AppKit
2020#endif
2121
2222@available ( iOS 16 , macOS 13 , tvOS 16 , watchOS 9 , * )
23- struct UTMStatusActionIntent : UTMIntent {
24- static var id : String = " UTMStatusActionIntent "
23+ struct UTMStatusActionIntent : AppIntent , UTMIntent {
2524 static let title : LocalizedStringResource = " Get Virtual Machine Status "
2625 static let description = IntentDescription ( " Get the status of a virtual machine. " )
2726 static var parameterSummary : some ParameterSummary {
@@ -41,8 +40,7 @@ struct UTMStatusActionIntent: UTMIntent {
4140}
4241
4342@available ( iOS 16 , macOS 13 , tvOS 16 , watchOS 9 , * )
44- struct UTMStartActionIntent : UTMIntent {
45- static var id : String = " UTMStartActionIntent "
43+ struct UTMStartActionIntent : AppIntent , UTMIntent {
4644 static let title : LocalizedStringResource = " Start Virtual Machine "
4745 static let description = IntentDescription ( " Start a virtual machine. " )
4846 static var parameterSummary : some ParameterSummary {
@@ -99,8 +97,7 @@ struct UTMStartActionIntent: UTMIntent {
9997}
10098
10199@available ( iOS 16 , macOS 13 , tvOS 16 , watchOS 9 , * )
102- struct UTMStopActionIntent : UTMIntent {
103- static var id : String = " UTMStopActionIntent "
100+ struct UTMStopActionIntent : AppIntent , UTMIntent {
104101 static let title : LocalizedStringResource = " Stop Virtual Machine "
105102 static let description = IntentDescription ( " Stop a virtual machine. " )
106103 static var parameterSummary : some ParameterSummary {
@@ -138,8 +135,7 @@ extension UTMVirtualMachineStopMethod: AppEnum {
138135}
139136
140137@available ( iOS 16 , macOS 13 , tvOS 16 , watchOS 9 , * )
141- struct UTMPauseActionIntent : UTMIntent {
142- static var id : String = " UTMPauseActionIntent "
138+ struct UTMPauseActionIntent : AppIntent , UTMIntent {
143139 static let title : LocalizedStringResource = " Pause Virtual Machine "
144140 static let description = IntentDescription ( " Pause a virtual machine. " )
145141 static var parameterSummary : some ParameterSummary {
@@ -168,8 +164,7 @@ struct UTMPauseActionIntent: UTMIntent {
168164}
169165
170166@available ( iOS 16 , macOS 13 , tvOS 16 , watchOS 9 , * )
171- struct UTMResumeActionIntent : UTMIntent {
172- static var id : String = " UTMResumeActionIntent "
167+ struct UTMResumeActionIntent : AppIntent , UTMIntent {
173168 static let title : LocalizedStringResource = " Resume Virtual Machine "
174169 static let description = IntentDescription ( " Resume a virtual machine. " )
175170 static var parameterSummary : some ParameterSummary {
@@ -195,8 +190,7 @@ struct UTMResumeActionIntent: UTMIntent {
195190}
196191
197192@available ( iOS 16 , macOS 13 , tvOS 16 , watchOS 9 , * )
198- struct UTMRestartActionIntent : UTMIntent {
199- static var id : String = " UTMRestartActionIntent "
193+ struct UTMRestartActionIntent : AppIntent , UTMIntent {
200194 static let title : LocalizedStringResource = " Restart Virtual Machine "
201195 static let description = IntentDescription ( " Restart a virtual machine. " )
202196 static var parameterSummary : some ParameterSummary {
0 commit comments