MCPcopy Create free account
hub / github.com/anus-dev/ANUS / hasMessage

Function hasMessage

packages/core/src/utils/memoryImportProcessor.ts:76–83  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

74
75// Add a type guard for error objects
76function hasMessage(err: unknown): err is { message: string } {
77 return (
78 typeof err === 'object' &&
79 err !== null &&
80 'message' in err &&
81 typeof (err as { message: unknown }).message === 'string'
82 );
83}
84
85// Helper to find all code block and inline code regions using marked
86/**

Callers 2

processFlatFunction · 0.85
processImportsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected