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

Function installHeadlessHandlers

apps/kimi-code/src/cli/run-prompt.ts:386–389  ·  view source on GitHub ↗
(session: Session)

Source from the content-addressed store, hash-verified

384}
385
386function installHeadlessHandlers(session: Session): void {
387 session.setApprovalHandler(() => ({ decision: 'approved' }));
388 session.setQuestionHandler(() => null);
389}
390
391function installPromptTerminationCleanup(
392 promptProcess: PromptProcess,

Callers 1

resolvePromptSessionFunction · 0.85

Calls 2

setApprovalHandlerMethod · 0.45
setQuestionHandlerMethod · 0.45

Tested by

no test coverage detected