MCPcopy Create free account
hub / github.com/betta-tech/byo-coding-agent / compactorName

Method compactorName

internal/agent/agent.go:189–194  ·  view source on GitHub ↗

compactorName returns a short label for whichever compaction strategy is active. Used in debug-log entries so it's obvious what ran.

()

Source from the content-addressed store, hash-verified

187// compactorName returns a short label for whichever compaction strategy is
188// active. Used in debug-log entries so it's obvious what ran.
189func (a *Agent) compactorName() string {
190 if a.Compactor == nil {
191 return "none"
192 }
193 return fmt.Sprintf("%T", a.Compactor)
194}
195
196func truncate(s string, n int) string {
197 if len(s) <= n {

Callers 1

loopMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected