fix: unblock macOS exec host build

This commit is contained in:
Peter Steinberger
2026-01-18 16:44:26 +00:00
parent 081123c0e4
commit cf7437cb4c
2 changed files with 8 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ private struct ExecApprovalSocketDecision: Codable {
var decision: ExecApprovalDecision var decision: ExecApprovalDecision
} }
private struct ExecHostSocketRequest: Codable { fileprivate struct ExecHostSocketRequest: Codable {
var type: String var type: String
var id: String var id: String
var nonce: String var nonce: String
@@ -37,7 +37,7 @@ private struct ExecHostSocketRequest: Codable {
var requestJson: String var requestJson: String
} }
private struct ExecHostRequest: Codable { fileprivate struct ExecHostRequest: Codable {
var command: [String] var command: [String]
var rawCommand: String? var rawCommand: String?
var cwd: String? var cwd: String?
@@ -48,7 +48,7 @@ private struct ExecHostRequest: Codable {
var sessionKey: String? var sessionKey: String?
} }
private struct ExecHostRunResult: Codable { fileprivate struct ExecHostRunResult: Codable {
var exitCode: Int? var exitCode: Int?
var timedOut: Bool var timedOut: Bool
var success: Bool var success: Bool
@@ -57,13 +57,13 @@ private struct ExecHostRunResult: Codable {
var error: String? var error: String?
} }
private struct ExecHostError: Codable { fileprivate struct ExecHostError: Codable {
var code: String var code: String
var message: String var message: String
var reason: String? var reason: String?
} }
private struct ExecHostResponse: Codable { fileprivate struct ExecHostResponse: Codable {
var type: String var type: String
var id: String var id: String
var ok: Bool var ok: Bool
@@ -254,7 +254,7 @@ enum ExecApprovalsPromptPresenter {
} }
@MainActor @MainActor
enum ExecHostExecutor { fileprivate enum ExecHostExecutor {
private static let blockedEnvKeys: Set<String> = [ private static let blockedEnvKeys: Set<String> = [
"PATH", "PATH",
"NODE_OPTIONS", "NODE_OPTIONS",

View File

@@ -440,6 +440,8 @@ extension MenuSessionsInjector {
displayName: "Gateway", displayName: "Gateway",
platform: platform, platform: platform,
version: nil, version: nil,
coreVersion: nil,
uiVersion: nil,
deviceFamily: nil, deviceFamily: nil,
modelIdentifier: nil, modelIdentifier: nil,
remoteIp: host, remoteIp: host,