MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isPersistError

Function isPersistError

src/utils/toolResultStorage.ts:361–365  ·  view source on GitHub ↗
(
  result: PersistedToolResult | PersistToolResultError,
)

Source from the content-addressed store, hash-verified

359 * Type guard to check if persist result is an error
360 */
361export function isPersistError(
362 result: PersistedToolResult | PersistToolResultError,
363): result is PersistToolResultError {
364 return 'error' in result
365}
366
367// --- Message-level aggregate tool result budget ---
368//

Callers 3

buildReplacementFunction · 0.85
processMCPResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected