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

Method SaveWithMeta

session/store.go:52–59  ·  view source on GitHub ↗
(sessionID string, messages []map[string]any, meta *Meta, turnCount int)

Source from the content-addressed store, hash-verified

50// preflight commands.
51func NewInspectionStore(sessionDir string) *Store {
52 return &Store{dir: sessionDir}
53}
54
55func (s *Store) Save(sessionID string, messages []map[string]any, turnCount int) error {
56 if err := s.requireWritable(sessionID); err != nil {
57 return err
58 }
59 s.migrateLegacySession(sessionID)
60 if err := atomicWriteJSONL(s.sessionPath(sessionID), messages); err != nil {
61 return err
62 }

Calls 4

migrateLegacySessionMethod · 0.95
sessionPathMethod · 0.95
upsertMetaMethod · 0.95
atomicWriteJSONLFunction · 0.85