Documentation
¶
Overview ¶
Package task iterates pending tasks from TASKS.md for MCP tool responses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsOverlap ¶
ContainsOverlap checks if two strings share meaningful words.
Uses word-set intersection rather than substring matching to avoid false positives (e.g., "test" matching inside "contestant").
Parameters:
- action: the recent action description
- taskText: the task text to compare against
Returns:
- bool: true if at least 2 significant words overlap
func ForEachPending ¶
ForEachPending iterates pending top-level tasks in TASKS.md, skipping the Completed section and subtasks. It calls fn for each match; if fn returns true, iteration stops early.
Parameters:
- lines: TASKS.md split by newline
- fn: visitor called with each pending task; return true to stop
Types ¶
Click to show internal directories.
Click to hide internal directories.