ScriptWidget now uses Apple Private Cloud Compute as its default AI backend on eligible iOS/macOS 27 devices. Users no longer need to supply an API key for the default path; existing OpenAI-compatible profiles remain available as a fallback.
Implementation
Add an Apple PCC provider backed by PrivateCloudComputeLanguageModel
Add PCC entitlement to the iOS and macOS main apps only
Check OS support, Apple model availability, network/service errors, and daily quota
Migrate existing installs once by adding/selecting the Apple profile while preserving existing providers
Default fresh installs to the zero-configuration Apple profile
Cap PCC agent repair loops at 3 requests to protect daily quota
Update iOS/macOS provider settings, onboarding copy, tests, and documentation
Security and compatibility
PCC requires no user credential and persists no Apple session data
API keys for optional OpenAI-compatible profiles remain Keychain-backed
Widget/share extensions do not receive the PCC entitlement and do not call AI services
Legacy profiles decode as OpenAI-compatible
Builds made with older compilers fail closed with a clear unavailable error
Verification
Real signed PCC call on macOS 27: passed in 2.204s with non-empty content and token usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User outcome
ScriptWidget now uses Apple Private Cloud Compute as its default AI backend on eligible iOS/macOS 27 devices. Users no longer need to supply an API key for the default path; existing OpenAI-compatible profiles remain available as a fallback.
Implementation
Security and compatibility
Verification
Physical-device PCC execution was not run; the live PCC request was executed in the signed macOS 27 app test host.