MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / addToInMemoryErrorLog

Function addToInMemoryErrorLog

source code/bootstrap/state.ts:1217–1226  ·  view source on GitHub ↗
(errorInfo: {
  error: string
  timestamp: string
})

Source from the content-addressed store, hash-verified

1215}
1216
1217export function addToInMemoryErrorLog(errorInfo: {
1218 error: string
1219 timestamp: string
1220}): void {
1221 const MAX_IN_MEMORY_ERRORS = 100
1222 if (STATE.inMemoryErrorLog.length >= MAX_IN_MEMORY_ERRORS) {
1223 STATE.inMemoryErrorLog.shift() // Remove oldest error
1224 }
1225 STATE.inMemoryErrorLog.push(errorInfo)
1226}
1227
1228export function getAllowedSettingSources(): SettingSource[] {
1229 return STATE.allowedSettingSources

Callers

nothing calls this directly

Calls 1

shiftMethod · 0.80

Tested by

no test coverage detected