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

Method wait

packages/kaos/src/process.ts:22–22  ·  view source on GitHub ↗

Wait for the process to exit and return its exit code.

()

Source from the content-addressed store, hash-verified

20 readonly exitCode: number | null;
21 /** Wait for the process to exit and return its exit code. */
22 wait(): Promise<number>;
23 /** Send a signal to the process (defaults to `SIGTERM`). */
24 kill(signal?: NodeJS.Signals): Promise<void>;
25 /** Release stdin/stdout/stderr resources owned by this process wrapper. */

Callers 15

ask-user.test.tsFile · 0.65
bash.test.tsFile · 0.65
agent.test.tsFile · 0.65
task-tools.test.tsFile · 0.65
waitForTerminalFunction · 0.65
rpc-events.test.tsFile · 0.65
manager.test.tsFile · 0.65
executeMethod · 0.65
killProcFunction · 0.65

Implementers 2

SSHProcesspackages/kaos/src/ssh.ts
LocalProcesspackages/kaos/src/local.ts

Calls

no outgoing calls

Tested by 2

runCmdFunction · 0.52
runShFunction · 0.52