session

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package session is the Stage-1 namespace for session-lifecycle types in package engine. See ../REFACTOR_PLAN.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompressMessage

type CompressMessage = engine.CompressMessage

CompressMessage is the per-message input to compression.

type CompressStrategy

type CompressStrategy = engine.CompressStrategy

CompressStrategy names a compression algorithm.

type CompressedBlock

type CompressedBlock = engine.CompressedBlock

CompressedBlock is one block of compressed history.

type CompressionResult

type CompressionResult = engine.CompressionResult

CompressionResult is what a Compressor returns.

type Compressor

type Compressor = engine.SessionCompressor

Compressor reduces a session's message history while preserving meaning.

func NewCompressor

func NewCompressor(strategy CompressStrategy) *Compressor

NewCompressor returns a session compressor using the named strategy.

type CrossSessionLearner

type CrossSessionLearner = engine.CrossSessionLearner

CrossSessionLearner mines insights from past sessions to inform new ones.

func NewCrossSessionLearner

func NewCrossSessionLearner(dir string) *CrossSessionLearner

NewCrossSessionLearner returns a learner that persists state under dir.

type FailurePattern

type FailurePattern = engine.FailurePattern

FailurePattern is a recurring failure mode the learner has seen.

type Insight

type Insight = engine.Insight

Insight is one cross-session learning, e.g. "tests fail on Linux".

type LearnerStats

type LearnerStats = engine.LearnerStats

LearnerStats summarises cross-session learner state.

type ServiceOption

type ServiceOption = engine.ServiceOption

ServiceOption configures a Services bundle.

type Services

type Services = engine.SessionServices

Services bundles the dependencies a session uses (provider, tools, memory).

type SessionConvention

type SessionConvention = engine.SessionConvention

SessionConvention is a project-specific habit (naming, layout, etc.).

type Timeline

type Timeline = engine.Timeline

Timeline records significant session events for replay/debugging.

func NewTimeline

func NewTimeline(sessionID string) *Timeline

NewTimeline returns a new timeline scoped to sessionID.

type TimelineEvent

type TimelineEvent = engine.TimelineEvent

TimelineEvent is one entry in a Timeline.

Jump to

Keyboard shortcuts

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