MCPcopy Create free account
hub / github.com/diillson/chatcli / writeDigest

Method writeDigest

cli/workspace/memory/rollup.go:372–377  ·  view source on GitHub ↗
(path, content string)

Source from the content-addressed store, hash-verified

370}
371
372func (rs *RollupStore) writeDigest(path, content string) error {
373 if err := os.MkdirAll(filepath.Dir(path), 0o750); err != nil {
374 return err
375 }
376 return atomicWriteFile(path, []byte(content), 0o600)
377}
378
379// enforceWeeklyRetention deletes the oldest weeklies beyond the cap; their
380// content lives on in the monthly digests.

Callers 2

RunMethod · 0.95
rollMonthsMethod · 0.95

Calls 2

atomicWriteFileFunction · 0.85
DirMethod · 0.45

Tested by

no test coverage detected