MCPcopy
hub / github.com/coder/mux / getMessageText

Function getMessageText

src/node/services/agentSession.agentSkillSnapshot.test.ts:38–44  ·  view source on GitHub ↗
(message: MuxMessage)

Source from the content-addressed store, hash-verified

36 });
37
38 function getMessageText(message: MuxMessage): string {
39 const textPart = message.parts.find((part) => part.type === "text");
40 if (textPart?.type !== "text") {
41 throw new Error(`Expected text part for message ${message.id}`);
42 }
43 return textPart.text;
44 }
45
46 async function createSessionHarness(args: {
47 workspacePath: string;

Calls

no outgoing calls

Tested by

no test coverage detected