refautoappend

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ID = "ref-autoappend-file"

ID is the feature plugin id for YAML registration.

View Source
const LabelKey = "lip_ref_autoappend"

LabelKey is the session label upserted by the opener; the request transform appends on the first new-session request when this label is present.

View Source
const LabelPending = "pending"

LabelPending marks that session-open prepared first-turn auto-append.

Variables

This section is empty.

Functions

func NewRequestTransform

func NewRequestTransform(cfg Config) request.Transform

NewRequestTransform appends [file_text] to the first user text on the first new-session request when the session-open label is present.

func NewSessionOpener

func NewSessionOpener() session.Opener

NewSessionOpener returns a session opener that marks the first turn for auto-append.

Types

type Config

type Config struct {
	Order    *int   `yaml:"order"`
	FileText string `yaml:"file_text"`
}

Config is decoded from the feature plugin YAML block.

func DecodeConfig

func DecodeConfig(n yaml.Node) (Config, error)

DecodeConfig parses YAML for ref-autoappend-file.

Jump to

Keyboard shortcuts

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