MCPcopy Index your code
hub / github.com/anomalyco/opencode / compaction.ts

File compaction.ts

packages/opencode/src/session/compaction.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { LayerNode } from "@opencode-ai/core/effect/layer-node"
2import { SessionV1 } from "@opencode-ai/core/v1/session"
3import { ConfigV1 } from "@opencode-ai/core/v1/config/config"
4import { Session } from "./session"

Callers

nothing calls this directly

Calls 15

serviceUseFunction · 0.90
buildPromptFunction · 0.90
overflowFunction · 0.85
preserveRecentBudgetFunction · 0.85
splitTurnFunction · 0.85
completedCompactionsFunction · 0.85
pushMethod · 0.80
atMethod · 0.80
processMethod · 0.80
turnsFunction · 0.70
getMethod · 0.65
findMethod · 0.65

Tested by

no test coverage detected