xworkmate-app/lib/runtime/embedded_agent_launch_policy.dart
2026-06-04 22:38:09 +08:00

17 lines
565 B
Dart

import '../app/app_store_policy.dart';
/// Decides whether to block embedded agent process launching based on platform policy.
///
/// In the cloud-neutral bridge model, local process launching is generally disabled.
bool shouldBlockEmbeddedAgentLaunch({
required bool isAppleHost,
bool? enabled,
}) {
// Always apply policy which blocks local execution in restricted environments.
// In the current architecture, we've moved to bridge-mediated execution.
return shouldApplyAppleAppStorePolicy(
isAppleHost: isAppleHost,
enabled: enabled,
);
}