MCPcopy Index your code
hub / github.com/anomalyco/opencode / apply

Function apply

packages/opencode/src/cli/cmd/run/session-replay.ts:35–43  ·  view source on GitHub ↗
(data: SessionData, event: Event, sessionID: string, thinking: boolean, limits: Record<string, number>)

Source from the content-addressed store, hash-verified

33const SHELL_SYNTHETIC_USER_TEXT = "The following tool was executed by the user"
34
35function apply(data: SessionData, event: Event, sessionID: string, thinking: boolean, limits: Record<string, number>) {
36 return reduceSessionData({
37 data,
38 event,
39 sessionID,
40 thinking,
41 limits,
42 })
43}
44
45function mergePatch(left: FooterPatch | undefined, right: FooterPatch | undefined) {
46 if (!left) {

Callers 2

replayMessageFunction · 0.70
edit.test.tsFile · 0.50

Calls 1

reduceSessionDataFunction · 0.90

Tested by

no test coverage detected