MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / atomicWriteJSON

Function atomicWriteJSON

session/store.go:551–557  ·  view source on GitHub ↗
(path string, value any)

Source from the content-addressed store, hash-verified

549 ".skill-recovery.commit.json",
550 ".skill-recovery.json",
551 ".transcript.md",
552 ".meta.json",
553 ".state.json",
554 ".tasks.json",
555 ".jsonl",
556 ".sqlite",
557 }
558 for _, suffix := range suffixes {
559 if strings.HasSuffix(base, suffix) {
560 return strings.TrimSuffix(base, suffix)

Callers 2

SaveStateWithRecoveryMethod · 0.85
upsertMetaMethod · 0.85

Calls 2

marshalPythonJSONFunction · 0.85
atomicReplaceFunction · 0.85

Tested by

no test coverage detected