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

Function replayEntry

apps/kimi-code/src/tui/utils/message-replay.ts:143–159  ·  view source on GitHub ↗
(
  context: ReplayRenderContext,
  kind: TranscriptEntry['kind'],
  content: string,
  renderMode: TranscriptEntry['renderMode'],
  extras: { detail?: string; bullet?: string } = {},
)

Source from the content-addressed store, hash-verified

141}
142
143export function replayEntry(
144 context: ReplayRenderContext,
145 kind: TranscriptEntry['kind'],
146 content: string,
147 renderMode: TranscriptEntry['renderMode'],
148 extras: { detail?: string; bullet?: string } = {},
149): TranscriptEntry {
150 return {
151 id: nextTranscriptId(),
152 kind,
153 turnId: context.currentTurnId,
154 renderMode,
155 content,
156 detail: extras.detail,
157 bullet: extras.bullet,
158 };
159}
160
161export function collectReplayMessageContent(
162 target: ReplayRenderContext['assistant'],

Callers 14

renderRecordMethod · 0.90
renderUserMessageMethod · 0.90
renderSkillActivationMethod · 0.90
renderPluginCommandMethod · 0.90
renderCompactionMethod · 0.90
renderHookResultMethod · 0.90
renderCronJobMethod · 0.90
renderCronMissedMethod · 0.90
renderApprovalResultMethod · 0.90

Calls 1

nextTranscriptIdFunction · 0.90

Tested by

no test coverage detected