Documentation
¶
Overview ¶
Package keepalive provides agent activity signaling via file touch.
This package uses a best-effort design: all write operations silently ignore errors. This is intentional because:
- Keepalive signals are non-critical - the system works without them
- Failures (disk full, permissions, etc.) should not interrupt gt commands
- The daemon tolerates missing signals by using timeouts
Functions in this package write JSON files to .runtime/ or daemon/ directories. These files are used by the daemon to detect agent activity and implement features like exponential backoff during idle periods.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Touch ¶
func Touch(command string)
Touch updates the keepalive file in the workspace's .runtime directory. It silently ignores errors (best-effort signaling).
func TouchInWorkspace ¶
func TouchInWorkspace(workspaceRoot, command string)
TouchInWorkspace updates the keepalive file in a specific workspace. It silently ignores errors (best-effort signaling).
func TouchWithArgs ¶
TouchWithArgs updates the keepalive file with the full command including args. It silently ignores errors (best-effort signaling).