MCPcopy Create free account
hub / github.com/freecodexyz/free-code / addToInMemoryErrorLog

Function addToInMemoryErrorLog

src/bootstrap/state.ts:1215–1224  ·  view source on GitHub ↗
(errorInfo: {
  error: string
  timestamp: string
})

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

shiftMethod · 0.80

Tested by

no test coverage detected