Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct DiscoveryClient: DependencyClient {

static func live(
defaultFileURL: @escaping @Sendable () -> URL = {
ProxyFilesystemLocations.discoveryFileURL()
Discovery.defaultFileURL(environment: ProcessInfo.processInfo.environment)
},
loadRecord: @escaping @Sendable (_ url: URL) throws -> DiscoveryRecord = {
try Discovery.loadRecord(from: $0)
Expand Down

This file was deleted.

12 changes: 0 additions & 12 deletions Sources/XcodeMCPProxyKit/XcodeMCPProxyLogging.swift

This file was deleted.

This file was deleted.

8 changes: 5 additions & 3 deletions Sources/XcodeMCPProxyKit/XcodeMCPProxyServer+Launch.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import Foundation
import XcodeMCPCore
import XcodeMCPProxyRuntime

package struct XcodeMCPProxyProductMetadata: Equatable, Sendable {
package let name: String
Expand All @@ -18,7 +20,7 @@ extension XcodeMCPProxyServer {
}

package static var productMetadata: XcodeMCPProxyProductMetadata {
XcodeMCPProxyProductMetadata(version: ProxyBuildInfo.version)
XcodeMCPProxyProductMetadata(version: ProxyBuildGeneratedInfo.version)
}

package static var serverUsage: String {
Expand Down Expand Up @@ -49,7 +51,7 @@ extension XcodeMCPProxyServer {
}

package static func bootstrapLogging(environment: [String: String]) {
XcodeMCPProxyLogging.bootstrap(environment: environment)
ProxyLogging.bootstrap(environment: environment)
}
}

Expand All @@ -66,7 +68,7 @@ private extension ProxyServerCommand {
maxBodyBytes: maxBodyBytes ?? 1_048_576,
requestTimeout: requestTimeout.map { $0.duration }
?? XcodeMCPProxyServerConfiguration().requestTimeout,
discovery: .file(ProxyFilesystemLocations.discoveryFileURL(environment: environment)),
discovery: .file(Discovery.defaultFileURL(environment: environment)),
approvalPolicy: autoApprove ? .automatic : .manual,
enablesDebugEndpoints: debugEndpoints
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ extension XcodeMCPProxyServer {
}

package static var live: Self {
let existingServerController = XcodeMCPProxyServer.ExistingServerController.liveValue
let existingServerController = ExistingProxyServerProcessController.liveValue
return Self(
makeServer: { configuration in
XcodeMCPProxyServer(configuration: configuration)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Logging
import XcodeMCPPermissionAutomation
import XcodeMCPProxyRuntime

protocol ProxyServerPermissionDialogAutoApprover: Sendable {
func start()
Expand All @@ -20,7 +21,7 @@ extension XcodePermissionDialogAutomation.AutoApprover: ProxyServerPermissionDia
agentProcessIDCandidates: { descendantProcessIDCandidates() },
agentScope: .allAgents
),
logger: XcodeMCPProxyLogging.make("xcode.permission")
logger: ProxyLogging.make("xcode.permission")
)
}
}