sessioncheckpoint

package
v0.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package sessioncheckpoint provides the single ephemeral handoff slot for a session. It is intentionally separate from file-edit checkpoints.

Index

Constants

View Source
const MaxBytes = 16 << 10
View Source
const MetadataKey = "session_checkpoint"

Variables

This section is empty.

Functions

This section is empty.

Types

type Slot

type Slot struct {
	// contains filtered or unexported fields
}

func New

func New() *Slot

func (*Slot) Clear

func (s *Slot) Clear()

func (*Slot) ClearIfGeneration

func (s *Slot) ClearIfGeneration(gen uint64) bool

func (*Slot) Read

func (s *Slot) Read() (string, uint64)

func (*Slot) Restore

func (s *Slot) Restore(meta map[string]any)

func (*Slot) SaveToMetadata

func (s *Slot) SaveToMetadata() map[string]any

func (*Slot) Write

func (s *Slot) Write(text string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL