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

Function isCompactionHandoffMessage

sessionmemory/store.go:758–765  ·  view source on GitHub ↗
(msg map[string]any)

Source from the content-addressed store, hash-verified

756 var value sql.NullInt64
757 _ = s.db.QueryRowContext(ctx, `SELECT MAX(user_turn_count) FROM messages`).Scan(&value)
758 if value.Valid {
759 return int(value.Int64)
760 }
761 return 0
762}
763
764func (s *Store) metaInt(ctx context.Context, key string) int {
765 var value string
766 if err := s.db.QueryRowContext(ctx, `SELECT value FROM schema_meta WHERE key = ?`, key).Scan(&value); err != nil {
767 return 0
768 }

Callers 1

IngestMessagesMethod · 0.85

Calls 2

textPreviewFunction · 0.85
stringValueFunction · 0.70

Tested by

no test coverage detected