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

Function formatGoalSummaryText

apps/kimi-code/src/cli/goal-prompt.ts:93–98  ·  view source on GitHub ↗
(goal: GoalSnapshot | null)

Source from the content-addressed store, hash-verified

91}
92
93export function formatGoalSummaryText(goal: GoalSnapshot | null): string {
94 if (goal === null) return 'Goal: no goal found.';
95 const parts = [`Goal [${goal.status}]`];
96 if (goal.terminalReason !== undefined) parts.push(goal.terminalReason);
97 return `${parts.join(': ')} (turns: ${goal.turnsUsed}, tokens: ${goal.tokensUsed})`;
98}

Callers 2

runHeadlessGoalFunction · 0.90

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected