88// validation, and parity live in AppIntentsKit where they are host-tested;
99// nothing here may grow beyond gate → resolve → forward → map the error.
1010//
11- // 1100: every perform() opens with `requireAutomation ()`. The intents stay LISTED in
11+ // 1100: every perform() opens with `requireSupporterUnlock ()`. The intents stay LISTED in
1212// Shortcuts while locked — hiding them would strand shortcuts an owner already built and
1313// make the capability undiscoverable; a locked intent is a discoverable intent that fails
1414// with a readable unlock message.
@@ -25,9 +25,9 @@ enum FrameIntentError: Error, Equatable, CustomLocalizedStringResourceConvertibl
2525 case frameNotOpen
2626 case brightnessOutOfRange
2727 case sourceMissing
28- /// 1100: the frame does not own the Automation unlock . Not a mapping of any
28+ /// 1100: the frame does not own the Supporter Unlock . Not a mapping of any
2929 /// `FrameCommandError` — it is raised before the command layer is reached at all.
30- case automationLocked
30+ case supporterRequired
3131
3232 init ( _ error: FrameCommandError ) {
3333 switch error {
@@ -48,10 +48,10 @@ enum FrameIntentError: Error, Equatable, CustomLocalizedStringResourceConvertibl
4848 return " Brightness must be between 0 and 100 percent. "
4949 case . sourceMissing:
5050 return " This source no longer exists in the frame's library. "
51- case . automationLocked :
51+ case . supporterRequired :
5252 return LocalizedStringResource (
53- " unlock.required.automation " ,
54- defaultValue: " Remote control requires the Automation unlock . "
53+ " unlock.required.supporter " ,
54+ defaultValue: " Remote control requires the Supporter Unlock . "
5555 )
5656 }
5757 }
@@ -64,7 +64,7 @@ struct PauseSlideshowIntent: AppIntent {
6464
6565 @MainActor
6666 func perform( ) async throws -> some IntentResult {
67- try FrameIntentContext . requireAutomation ( )
67+ try FrameIntentContext . requireSupporterUnlock ( )
6868 let registry = try FrameIntentContext . requireRegistry ( )
6969 do { try await FrameCommandService ( registry: registry) . pause ( ) }
7070 catch { throw FrameIntentError ( error) }
@@ -79,7 +79,7 @@ struct ResumeSlideshowIntent: AppIntent {
7979
8080 @MainActor
8181 func perform( ) async throws -> some IntentResult {
82- try FrameIntentContext . requireAutomation ( )
82+ try FrameIntentContext . requireSupporterUnlock ( )
8383 let registry = try FrameIntentContext . requireRegistry ( )
8484 do { try await FrameCommandService ( registry: registry) . resume ( ) }
8585 catch { throw FrameIntentError ( error) }
@@ -94,7 +94,7 @@ struct NextPhotoIntent: AppIntent {
9494
9595 @MainActor
9696 func perform( ) async throws -> some IntentResult {
97- try FrameIntentContext . requireAutomation ( )
97+ try FrameIntentContext . requireSupporterUnlock ( )
9898 let registry = try FrameIntentContext . requireRegistry ( )
9999 do { try await FrameCommandService ( registry: registry) . nextPhoto ( ) }
100100 catch { throw FrameIntentError ( error) }
@@ -109,7 +109,7 @@ struct PreviousPhotoIntent: AppIntent {
109109
110110 @MainActor
111111 func perform( ) async throws -> some IntentResult {
112- try FrameIntentContext . requireAutomation ( )
112+ try FrameIntentContext . requireSupporterUnlock ( )
113113 let registry = try FrameIntentContext . requireRegistry ( )
114114 do { try await FrameCommandService ( registry: registry) . previousPhoto ( ) }
115115 catch { throw FrameIntentError ( error) }
@@ -131,7 +131,7 @@ struct SelectSourceIntent: AppIntent {
131131
132132 @MainActor
133133 func perform( ) async throws -> some IntentResult {
134- try FrameIntentContext . requireAutomation ( )
134+ try FrameIntentContext . requireSupporterUnlock ( )
135135 let registry = try FrameIntentContext . requireRegistry ( )
136136 do { try await FrameCommandService ( registry: registry) . selectSource ( id: source. id, label: source. label) }
137137 catch { throw FrameIntentError ( error) }
@@ -148,7 +148,7 @@ struct GetFrameStateIntent: AppIntent {
148148
149149 @MainActor
150150 func perform( ) async throws -> some IntentResult & ReturnsValue < FrameStateEntity > {
151- try FrameIntentContext . requireAutomation ( )
151+ try FrameIntentContext . requireSupporterUnlock ( )
152152 let registry = try FrameIntentContext . requireRegistry ( )
153153 do {
154154 let snapshot = try await FrameCommandService ( registry: registry) . frameState ( )
@@ -173,7 +173,7 @@ struct SetBrightnessIntent: AppIntent {
173173
174174 @MainActor
175175 func perform( ) async throws -> some IntentResult {
176- try FrameIntentContext . requireAutomation ( )
176+ try FrameIntentContext . requireSupporterUnlock ( )
177177 let registry = try FrameIntentContext . requireRegistry ( )
178178 do { try await FrameCommandService ( registry: registry) . setBrightness ( percent: brightness) }
179179 catch { throw FrameIntentError ( error) }
0 commit comments