Documentation
¶
Overview ¶
Package check_map_staleness implements the ctx system check-map-staleness subcommand.
It detects when context map files have not been updated within the configured staleness window and nudges regeneration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cmd ¶
Cmd returns the "ctx system check-map-staleness" subcommand.
Returns:
- *cobra.Command: Configured check-map-staleness subcommand
func Run ¶
Run executes the check-map-staleness hook logic.
Reads hook input from stdin, checks the map-tracking.json file for stale architecture mapping, counts commits touching internal/ since the last refresh, and emits a relay nudge if the map is stale and there are relevant commits. Throttled to once per day.
Parameters:
- cmd: Cobra command for output
- stdin: standard input for hook JSON
Returns:
- error: Always nil (hook errors are non-fatal)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.