refactor(setup): require the platform in client-layer readers and private-profile helpers (#11074)

* refactor(setup): require the platform in client-layer readers and private-profile helpers

* refactor(setup): drop the client-layer readers' unused host import
This commit is contained in:
morluto authored and GitHub committed 2026-11-15 20:21:04 +08:00
1 parent ce9bdc526a
commit 97ffa67f84
7 files changed
+23 -17

No files matched your search

+1 -2
View File
@@ -1,4 +1,3 @@
import { HOST_PLATFORM } from "../platform/HostPlatform.js";
import { err, ok, type Result } from "../domain/result.js";
import { RegularFileCleanupFailure } from "../filesystem/OwnedRegularFile.js";
import { readRegularFileText } from "./RegularFileRead.js";
@@ -295,7 +294,7 @@ export const inlineRegistrationOverride = (
client: Pick<SetupClient, "configPath" | "configPaths">,
sources: readonly ClientConfigurationSource[],
desired: unknown,
platform: NodeJS.Platform = HOST_PLATFORM.platform,
platform: NodeJS.Platform,
): ClientInlineConfiguration["origin"] | undefined => {
const name = PRODUCT_IDENTITY.mcpServerKey;
const inline = sources.filter(