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

Function injectionMsg

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

Source from the content-addressed store, hash-verified

540 origin: { kind: 'user' as const },
541 });
542 const injectionMsg = (text: string) => ({
543 role: 'user' as const, content: [{ type: 'text' as const, text }], toolCalls: [],
544 origin: { kind: 'injection' as const },
545 });
546 // Layout: [u1, a1, u2, INJECTION, a2]. undo(1) walks from the end:
547 // a2 → removed (non-injection)
548 // INJECTION → skipped (kept), NOT counted

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected