MCPcopy Create free account
hub / github.com/IAmUnbounded/devctx / extractMessageText

Function extractMessageText

devctx/src/core/parser.ts:205–216  ·  view source on GitHub ↗
(entry: any)

Source from the content-addressed store, hash-verified

203}
204
205function extractMessageText(entry: any): string {
206 const content = entry.message?.content;
207 if (!content) return "";
208 if (typeof content === "string") return content;
209 if (Array.isArray(content)) {
210 return content
211 .filter((c: any) => c.type === "text")
212 .map((c: any) => c.text)
213 .join("\n");
214 }
215 return "";
216}
217
218// -------------------------------------------------------------------
219// Antigravity: ~/.gemini/antigravity/brain/<id>/

Callers 1

parseClaudeSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected