Documentation
¶
Overview ¶
Package load provides terminal output functions for the load and agent commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Assembled ¶
func Assembled( cmd *cobra.Command, files []entity.FileInfo, budget, totalTokens int, titleFn func(string) string, ) error
Assembled outputs context as formatted Markdown with token budgeting.
Assembles context files into a single Markdown document with headers, respecting the token budget. Files are included in read order until the budget is exhausted. Truncated files are noted in the output.
Parameters:
- cmd: Cobra command for output stream
- files: Context files sorted by read order
- budget: Maximum token count for the output
- totalTokens: Total available tokens in context
- titleFn: Function to convert filename to display title
Returns:
- error: Always nil (included for interface consistency)
func Raw ¶
Raw outputs context files without assembly or headers.
Files are output in read order, separated by blank lines. Content is printed as-is without modification.
Parameters:
- cmd: Cobra command for output stream
- files: Context files sorted by read order
Returns:
- error: Always nil (included for interface consistency)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.