refactor(setup): reuse client layer location fields (#17100)

This commit is contained in:
Vincent Koc authored and GitHub committed 2026-12-05 22:55:18 +08:00
1 parent 40109b81c8
commit fea4f9db56
1 file changed
+4 -11
+4 -11
View File
@@ -219,19 +219,12 @@ export interface ClientSystemPaths {
* A user-scope location decided by which configuration layers exist, which
* only an asynchronous probe can observe.
*/
export interface ClientLayeredLocation {
readonly configPath: string;
export interface ClientLayeredLocation extends Pick<
SetupClient,
"configPath" | "inlineConfiguration" | "readUpperLayers" | "readOnlyFiles"
> {
/** Every file layer in load order, including `configPath`. */
readonly configPaths: readonly string[];
readonly inlineConfiguration?: ClientInlineConfiguration;
/** Reads file-backed upper layers again, since they can change after selection. */
readonly readUpperLayers?: (
resources?: ArtifactResourceScope,
) => Promise<
Result<ClientInlineConfiguration | undefined, ClientPathFailure>
>;
/** Files no write target may reach, whether or not they exist yet. */
readonly readOnlyFiles?: readonly string[];
}
/** One resolved configuration location and its detection evidence. */