ctxmgr

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: 2 Imported by: 0

Documentation

Overview

Package ctxmgr is the Stage-1 namespace for context budget, decay, packing, providers, visualisation, and read-only context. See ../REFACTOR_PLAN.md.

Named "ctxmgr" (not "context") to avoid shadowing the stdlib context package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatContextItems

func FormatContextItems(items []ContextItem) string

func SuggestFiles

func SuggestFiles(projectDir string) []string

Types

type ContextAllocation

type ContextAllocation = engine.ContextAllocation

type ContextBudget

type ContextBudget = engine.ContextBudget

func NewContextBudget

func NewContextBudget(contextSize int) *ContextBudget

type ContextDecay

type ContextDecay = engine.ContextDecay

func NewContextDecay

func NewContextDecay(halfLife time.Duration) *ContextDecay

type ContextFile

type ContextFile = engine.ContextFile

type ContextFileOption

type ContextFileOption = engine.ContextFileOption

func WithAutoRefresh

func WithAutoRefresh() ContextFileOption

func WithPinned

func WithPinned() ContextFileOption

type ContextItem

type ContextItem = engine.ContextItem

func PrioritizeItems

func PrioritizeItems(items []ContextItem, budget int) []ContextItem

type ContextManager

type ContextManager = engine.ContextManager

func NewContextManager

func NewContextManager(budget int) *ContextManager

type ContextPacker

type ContextPacker = engine.ContextPacker

func NewContextPacker

func NewContextPacker(maxTokens int) *ContextPacker

type ContextProvider

type ContextProvider = engine.ContextProvider

type ContextSection

type ContextSection = engine.ContextSection

type ContextSnapshot

type ContextSnapshot = engine.ContextSnapshot

type ContextStats

type ContextStats = engine.ContextStats

type ContextVisualizer

type ContextVisualizer = engine.ContextVisualizer

func NewContextVisualizer

func NewContextVisualizer(max int) *ContextVisualizer

type DecayEntry

type DecayEntry = engine.DecayEntry

type DecayStats

type DecayStats = engine.DecayStats

type DependencyContextProvider

type DependencyContextProvider = engine.DependencyContextProvider

type ErrorContextProvider

type ErrorContextProvider = engine.ErrorContextProvider

type FileContextProvider

type FileContextProvider = engine.FileContextProvider

type GitContextProvider

type GitContextProvider = engine.GitContextProvider

type PackingResult

type PackingResult = engine.PackingResult

type PackingStrategy

type PackingStrategy = engine.PackingStrategy

type ReadOnlyContext

type ReadOnlyContext = engine.ReadOnlyContext

func NewReadOnlyContext

func NewReadOnlyContext(maxBudget int) *ReadOnlyContext

type ScoredMessage

type ScoredMessage = engine.ScoredMessage

type VizContextItem

type VizContextItem = engine.VizContextItem

Jump to

Keyboard shortcuts

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