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

Function userMsg

apps/vis/server/test/lib/context-projector.test.ts:452–455  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

450
451 it('apply_compaction keeps user messages across a preceding undo marker (model)', () => {
452 const userMsg = (text: string) => ({
453 role: 'user' as const, content: [{ type: 'text' as const, text }], toolCalls: [],
454 origin: { kind: 'user' as const },
455 });
456 // Step 1: append u1, u2 then undo(1) → removes u2, leaves [u1, <undo marker>].
457 // Step 2: append u3, u4 → array is [u1, <undo marker>, u3, u4].
458 // History entries (agent-core _history, which has NO marker) are the three

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected