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

Function settle

packages/agent-core/src/session/hooks/runner.ts:71–76  ·  view source on GitHub ↗
(result: HookResult)

Source from the content-addressed store, hash-verified

69 };
70
71 const settle = (result: HookResult): void => {
72 if (settled) return;
73 settled = true;
74 cleanup();
75 resolve(result);
76 };
77
78 const timeout = setTimeout(() => {
79 killProcess(child);

Callers 4

runHookFunction · 0.70
onAbortFunction · 0.70
runCompactCommandMethod · 0.50

Calls 2

cleanupFunction · 0.70
resolveFunction · 0.50

Tested by

no test coverage detected