Documentation
¶
Overview ¶
Package extract pulls structured sections from loaded context files for inclusion in agent context packets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActiveTasks ¶
ActiveTasks extracts unchecked task items from TASKS.md.
Parameters:
- ctx: Loaded context containing the files
Returns:
- []string: List of active tasks with "- [ ]" prefix; nil if the file is not found
func BulletItems ¶
BulletItems extracts Markdown bullet items up to a limit.
Skips empty items and lines starting with "#" (headers).
Parameters:
- content: Markdown content to parse
- limit: Maximum number of items to return
Returns:
- []string: Bullet item text without the "- " prefix
func CheckboxItems ¶
CheckboxItems extracts text from Markdown checkbox items.
Matches both checked "- [x]" and unchecked "- [ ]" items.
Parameters:
- content: Markdown content to parse
Returns:
- []string: Text content of each checkbox item
func ConstitutionRules ¶
ConstitutionRules extracts checkbox items from CONSTITUTION.md.
Parameters:
- ctx: Loaded context containing the files
Returns:
- []string: List of constitution rules; nil if the file is not found
func UncheckedTasks ¶
UncheckedTasks extracts unchecked Markdown checkbox items.
Only matches "- [ ]" items (not checked). Returns items with the "- [ ]" prefix preserved for display.
Parameters:
- content: Markdown content to parse
Returns:
- []string: Unchecked task items with "- [ ]" prefix
Types ¶
This section is empty.