MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / hasConversationEvent

Function hasConversationEvent

lib/transcript.js:27–32  ·  view source on GitHub ↗
(evt)

Source from the content-addressed store, hash-verified

25// Content Parsing
26// ============================================================
27function hasConversationEvent(evt) {
28 if (!evt || typeof evt !== 'object') return false;
29 if (evt.type === 'user' || evt.type === 'assistant') return true;
30 const role = evt.message && typeof evt.message === 'object' ? evt.message.role : null;
31 return role === 'user' || role === 'assistant';
32}
33
34function fileLooksLikeTranscript(filePath) {
35 try {

Callers 2

fileLooksLikeTranscriptFunction · 0.85
test-modules.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected