MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / readInstallPlan

Function readInstallPlan

packages/server/src/svc/install-plan.ts:67–76  ·  view source on GitHub ↗
(path: string = installPlanPath())

Source from the content-addressed store, hash-verified

65
66
67export function readInstallPlan(path: string = installPlanPath()): InstallPlan | undefined {
68 try {
69 const raw = readFileSync(path, 'utf8');
70 const parsed = JSON.parse(raw) as unknown;
71 if (!isInstallPlan(parsed)) return undefined;
72 return parsed;
73 } catch {
74 return undefined;
75 }
76}
77
78
79export function deleteInstallPlan(path: string = installPlanPath()): void {

Callers 6

launchd.test.tsFile · 0.90
systemd.test.tsFile · 0.90
schtasks.test.tsFile · 0.90
statusFunction · 0.90
statusFunction · 0.90
statusFunction · 0.90

Calls 2

installPlanPathFunction · 0.90
isInstallPlanFunction · 0.85

Tested by

no test coverage detected