MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / isFreeModeUnavailableError

Function isFreeModeUnavailableError

cli/src/utils/error-handling.ts:52–58  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

50 * Standardized on statusCode === 403 + error === 'free_mode_unavailable'.
51 */
52export const isFreeModeUnavailableError = (error: unknown): boolean => {
53 const details = getCliApiErrorDetails(error)
54 return (
55 details.statusCode === 403 &&
56 details.errorCode === 'free_mode_unavailable'
57 )
58}
59
60const getTopLevelApiErrorDetails = (
61 error: unknown,

Callers 4

handleRunCompletionFunction · 0.90
handleRunErrorFunction · 0.90

Calls 1

getCliApiErrorDetailsFunction · 0.85

Tested by

no test coverage detected