heartbeat

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 heartbeat defines state file prefixes and filenames for the heartbeat subsystem.

Index

Constants

View Source
const (
	// HeartbeatCounterPrefix is the state file prefix for per-session
	// heartbeat prompt counters.
	HeartbeatCounterPrefix = "heartbeat-"
	// HeartbeatMtimePrefix is the state file prefix for per-session
	// heartbeat context mtime tracking.
	HeartbeatMtimePrefix = "heartbeat-mtime-"
	// HeartbeatLogFile is the log filename for heartbeat events.
	HeartbeatLogFile = "heartbeat.log"
)

Heartbeat state file prefixes.

View Source
const (
	// VarPromptCount is the heartbeat field for prompt count.
	VarPromptCount = "prompt_count"
	// VarSessionID is the heartbeat field for session identifier.
	VarSessionID = "session_id"
	// VarContextModified is the heartbeat field for context modification flag.
	VarContextModified = "context_modified"
	// VarTokens is the heartbeat field for token count.
	VarTokens = "tokens"
	// VarContextWindow is the heartbeat field for context window size.
	VarContextWindow = "context_window"
	// VarUsagePct is the heartbeat field for usage percentage.
	VarUsagePct = "usage_pct"
)

Template variable keys for heartbeat payloads.

Variables

This section is empty.

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