nudge

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 nudge defines configuration constants for persistence and task-completion nudge hooks.

Index

Constants

View Source
const (
	// PersistenceNudgePrefix is the state file prefix for per-session
	// persistence nudge counters.
	PersistenceNudgePrefix = "persistence-nudge-"
	// PersistenceEarlyMin is the minimum prompt count before nudging begins.
	PersistenceEarlyMin = 11
	// PersistenceEarlyMax is the upper bound for the early nudge window.
	PersistenceEarlyMax = 25
	// PersistenceEarlyInterval is the number of prompts between nudges
	// during the early window (prompts 11-25).
	PersistenceEarlyInterval = 20
	// PersistenceLateInterval is the number of prompts between nudges
	// after the early window (prompts 25+).
	PersistenceLateInterval = 15
	// PersistenceLogFile is the log filename for persistence check events.
	PersistenceLogFile = "check-persistence.log"
	// PersistenceKeyCount is the state file key for prompt count.
	PersistenceKeyCount = "count"
	// PersistenceKeyLastNudge is the state file key for last nudge prompt number.
	PersistenceKeyLastNudge = "last_nudge"
	// PersistenceKeyLastMtime is the state file key for last modification time.
	PersistenceKeyLastMtime = "last_mtime"
)

Check-persistence configuration.

View Source
const (
	// VarPromptCount is the template variable for prompt counter.
	VarPromptCount = "PromptCount"
	// VarPromptsSinceNudge is the template variable for prompts since last nudge.
	VarPromptsSinceNudge = "PromptsSinceNudge"
)

Template variable keys for persistence nudge hooks.

View Source
const (
	// PrefixTask is the state file prefix for per-session
	// task completion nudge counters.
	PrefixTask = "task-nudge-"
)

Check-task-completion configuration.

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