fix(FN-4717): complete Step 4 — align worktrunk source union types

Fusion-Task-Id: FN-4717
Fusion-Task-Lineage: a2533cd8-52c4-43a0-9daf-e0a49745306b
This commit is contained in:
Fusion (runfusion.ai)
2026-05-16 01:57:26 -07:00
committed by gsxdsm
parent 3f77bc2534
commit 36645bdb84

View File

@@ -36,7 +36,10 @@ const _worktrunkBinaryCache = new Map<string, { binaryPath: string; resolvedAt:
export async function getWorktrunkBinary(
settings: WorktrunkSettings,
): Promise<{ binaryPath: string; source: "override" | "path" | "cached" }> {
): Promise<{
binaryPath: string;
source: "override" | "path" | "cached" | "installed-release" | "installed-cargo";
}> {
const cacheKey = `${process.env.HOME ?? ""}::${settings.binaryPath ?? ""}`;
const cached = _worktrunkBinaryCache.get(cacheKey);
if (cached) {