MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / resolveAgentTimeoutMs

Function resolveAgentTimeoutMs

src/core/tools/ExecuteCommandTool.ts:54–61  ·  view source on GitHub ↗
(timeoutSeconds: number | null | undefined)

Source from the content-addressed store, hash-verified

52}
53
54export function resolveAgentTimeoutMs(timeoutSeconds: number | null | undefined): number {
55 const requestedAgentTimeout = typeof timeoutSeconds === "number" && timeoutSeconds > 0 ? timeoutSeconds * 1000 : 0
56
57 // In CLI runtime, stdin harnesses expect command lifetime to be governed
58 // solely by commandExecutionTimeout (user setting), not model-provided
59 // background timeouts.
60 return process.env.ROO_CLI_RUNTIME === "1" ? 0 : requestedAgentTimeout
61}
62
63export class ExecuteCommandTool extends BaseTool<"execute_command"> {
64 readonly name = "execute_command" as const

Callers 1

executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected