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

Function timeoutSeconds

packages/agent-core/src/session/hooks/runner.ts:114–116  ·  view source on GitHub ↗
(timeout: number)

Source from the content-addressed store, hash-verified

112}
113
114function timeoutSeconds(timeout: number): number {
115 return Number.isFinite(timeout) && timeout > 0 ? timeout : DEFAULT_TIMEOUT_SECONDS;
116}
117
118function resultFromExitCode(exitCode: number, stdout: string, stderr: string): HookResult {
119 if (exitCode === 2) {

Callers 1

runHookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected