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

Function goalExitCode

apps/kimi-code/src/cli/goal-prompt.ts:32–41  ·  view source on GitHub ↗
(status: string | undefined)

Source from the content-addressed store, hash-verified

30} as const;
31
32export function goalExitCode(status: string | undefined): number {
33 switch (status) {
34 case 'blocked':
35 return GOAL_EXIT_CODES.blocked;
36 case 'paused':
37 return GOAL_EXIT_CODES.paused;
38 default:
39 return GOAL_EXIT_CODES.complete;
40 }
41}
42
43const GOAL_PREFIX = /^\/goal(\s|$)/;
44

Callers 2

runHeadlessGoalFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected