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

Function isNonAiUserEvent

lib/transcript.js:82–91  ·  view source on GitHub ↗
(event, content)

Source from the content-addressed store, hash-verified

80}
81
82function isNonAiUserEvent(event, content) {
83 if (!event || typeof event !== 'object') return false;
84 if (event.isMeta === true) return true;
85 if (event.isCompactSummary === true) return true;
86 if (event.isVisibleInTranscriptOnly === true) return true;
87 if (isUserInterruptEvent(content)) return true;
88 const text = flattenUserContent(content).trim();
89 if (!text) return false;
90 return /<local-command-(?:stdout|stderr|caveat)>/i.test(text);
91}
92
93function extractSessionPrompt(event) {
94 if (!event || event.type !== 'user') return '';

Callers 3

extractSessionPromptFunction · 0.85
startTailingFunction · 0.85
test-modules.jsFile · 0.85

Calls 2

isUserInterruptEventFunction · 0.85
flattenUserContentFunction · 0.85

Tested by

no test coverage detected