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

Function startsWithApiErrorPrefix

src/services/api/errors.ts:56–61  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

54export const API_ERROR_MESSAGE_PREFIX = 'API Error'
55
56export function startsWithApiErrorPrefix(text: string): boolean {
57 return (
58 text.startsWith(API_ERROR_MESSAGE_PREFIX) ||
59 text.startsWith(`Please run /login · ${API_ERROR_MESSAGE_PREFIX}`)
60 )
61}
62export const PROMPT_TOO_LONG_ERROR_MESSAGE = 'Prompt is too long'
63
64export function isPromptTooLongMessage(msg: AssistantMessage): boolean {

Callers 5

generateTitleFunction · 0.85
AssistantTextMessageFunction · 0.85
getCommandPrefixImplFunction · 0.85
compactConversationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected