xworkmate-app/lib/runtime/go_core.dart
Haitao Pan d3b6585bd5 refactor(bridge): enforce remote bridge execution and remove local ACP fallbacks
- Prioritize remote endpoints for svc.plus accounts.
- Remove legacy local go-core execution logic.
- Remove legacy local codex app-server launch logic.
- Update endpoint resolution to support provider-specific paths.
2026-04-21 12:35:52 +08:00

37 lines
995 B
Dart

import 'dart:async';
/// DEPRECATED: Local Go core execution is disabled.
enum GoCoreLaunchSource { buildArtifact }
/// DEPRECATED: Local Go core execution is disabled.
class GoCoreLaunch {
const GoCoreLaunch({
required this.executable,
required this.source,
this.arguments = const <String>[],
this.workingDirectory,
});
final String executable;
final GoCoreLaunchSource source;
final List<String> arguments;
final String? workingDirectory;
}
typedef GoCoreBinaryExistsResolver = Future<bool> Function(String command);
/// DEPRECATED: Local Go core locator is disabled.
class GoCoreLocator {
GoCoreLocator({
GoCoreBinaryExistsResolver? binaryExistsResolver,
String? workspaceRoot,
String Function()? resolvedExecutableResolver,
});
/// Always returns null as local execution is disabled.
Future<GoCoreLaunch?> locate() async => null;
/// Always returns false as local execution is disabled.
Future<bool> isAvailable() async => false;
}