MCPcopy Create free account
hub / github.com/agent-tower/core / concatMessageText

Function concatMessageText

packages/server/src/output/cursor-agent-parser.ts:471–479  ·  view source on GitHub ↗

* 连接 CursorMessage 中的所有文本内容

(message: CursorMessage)

Source from the content-addressed store, hash-verified

469 * 连接 CursorMessage 中的所有文本内容
470 */
471function concatMessageText(message: CursorMessage): string | null {
472 let out = '';
473 for (const item of message.content) {
474 if (item.type === 'text' && item.text) {
475 out += item.text;
476 }
477 }
478 return out || null;
479}
480
481// ============ Cursor Agent 解析器 ============
482

Callers 1

handleAssistantMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected