- 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.
37 lines
995 B
Dart
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;
|
|
}
|