parser

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package parser defines buffer sizes and directory constants for session parsing.

Index

Constants

View Source
const (
	// BufInitSize is the initial scanner buffer size for session parsing (64 KB).
	BufInitSize = 64 * 1024
	// BufMaxSize is the maximum scanner buffer size for session parsing (1 MB).
	BufMaxSize = 1024 * 1024
)
View Source
const (
	// LinesToPeek is the number of lines to scan when detecting file format.
	LinesToPeek = 50
	// DirSubagents is the directory name for sidechain sessions that share
	// the parent sessionId and would cause duplicates if scanned.
	DirSubagents = "subagents"
)

Parser configuration.

Variables

View Source
var DefaultSessionPrefixes = []string{
	"Session:",
}

DefaultSessionPrefixes are the built-in session header prefixes recognized by the Markdown parser. Users can extend this list via the session_prefixes key in .ctxrc.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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