Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/CodebuffAI/codebuff
/ insert
Method
insert
common/src/util/min-heap.ts:65–68 ·
view source on GitHub ↗
(item: T, score: number)
Source
from the content-addressed store, hash-verified
63
}
64
65
insert(item: T, score: number): void {
66
this.heap.push({ item, score })
67
this.siftUp(this.heap.length - 1)
68
}
69
70
extractMin(): T | undefined {
71
if
(this.heap.length === 0)
return
undefined
Callers
15
insertChatCompletionTraceBigquery
Function · 0.80
insertMessageBigquery
Function · 0.80
insertTrace
Function · 0.80
insertRelabel
Function · 0.80
logSyncFailure
Function · 0.80
e2e-setup.ts
File · 0.80
simulateGrantWithDelay
Function · 0.80
advisory-lock.integration.test.ts
File · 0.80
handleSubscriptionInvoicePaid
Function · 0.80
handleSubscriptionUpdated
Function · 0.80
executeGrantCreditOperation
Function · 0.80
grantOrganizationCredits
Function · 0.80
Calls
1
siftUp
Method · 0.95
Tested by
1
simulateGrantWithDelay
Function · 0.64