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

Function isRealUserInput

packages/agent-core/src/agent/compaction/handoff.ts:108–110  ·  view source on GitHub ↗
(message: MessageLike)

Source from the content-addressed store, hash-verified

106 * policy and the rationale for each origin.
107 */
108export function isRealUserInput(message: MessageLike): boolean {
109 return message.role === 'user' && compactionUserMessageDisposition(message.origin) === 'keep';
110}
111
112export function collectCompactableUserMessages<T extends MessageLike>(messages: readonly T[]): T[] {
113 return messages.filter(

Callers 7

handoff.test.tsFile · 0.90
canUndoHistoryFunction · 0.90
applyUndoFunction · 0.90
undoMethod · 0.90
compactionRoundMethod · 0.90
computeUndoCutoffFunction · 0.90

Calls 1

Tested by

no test coverage detected