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

Class HistoryLog

claw-code/src/history.py:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12@dataclass
13class HistoryLog:
14 events: list[HistoryEvent] = field(default_factory=list)
15
16 def add(self, title: str, detail: str) -> None:
17 self.events.append(HistoryEvent(title=title, detail=detail))
18
19 def as_markdown(self) -> str:
20 lines = ['# Session History', '']
21 lines.extend(f'- {event.title}: {event.detail}' for event in self.events)
22 return '\n'.join(lines)

Callers 1

bootstrap_sessionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected