MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / trimArray

Function trimArray

tools/claw-launcher-ui/server.mjs:361–365  ·  view source on GitHub ↗
(list, limit)

Source from the content-addressed store, hash-verified

359}
360
361function trimArray(list, limit) {
362 while (list.length > limit) {
363 list.shift()
364 }
365}
366
367function upsertRecord(list, entry, idKey = 'id') {
368 const id = entry[idKey]

Callers 10

pushLogFunction · 0.85
upsertTranscriptFunction · 0.85
upsertTimelineFunction · 0.85
upsertToolCallFunction · 0.85
repairInterruptedRunsFunction · 0.85
buildAppSessionRecordFunction · 0.85
finalizeClawRunFunction · 0.85
executeRunRequestFunction · 0.85
launchRunRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected