MCPcopy Create free account
hub / github.com/braintrustdata/bash-agent-evals / saveHistory

Function saveHistory

src/cli.tsx:26–32  ·  view source on GitHub ↗
(history: string[])

Source from the content-addressed store, hash-verified

24}
25
26function saveHistory(history: string[]): void {
27 try {
28 writeFileSync(HISTORY_FILE, JSON.stringify(history.slice(-MAX_HISTORY), null, 2));
29 } catch {
30 // Ignore errors
31 }
32}
33
34// Event types for the activity feed
35type ActivityEvent =

Callers 1

AppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected