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

Function ownMessage

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

Source from the content-addressed store, hash-verified

1521 );
1522
1523const ownMessage = (value: unknown): string => {
1524 if (typeof value === "string") return value.trim();
1525 if (typeof value === "object" && value !== null && "message" in value) {
1526 const message = (value as { message: unknown }).message;
1527 if (typeof message === "string") return message.trim();
1528 }
1529 return "";
1530};
1531
1532/**
1533 * 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