MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / ownMessage

Function ownMessage

apps/cli/src/main.ts:1587–1594  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

1585 );
1586
1587const ownMessage = (value: unknown): string => {
1588 if (typeof value === "string") return value.trim();
1589 if (typeof value === "object" && value !== null && "message" in value) {
1590 const message = (value as { message: unknown }).message;
1591 if (typeof message === "string") return message.trim();
1592 }
1593 return "";
1594};
1595
1596/**
1597 * Render an unknown failure by walking its `cause` chain. Wrapper errors

Callers 1

formatUnknownMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected