load

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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

func Raw(cmd *cobra.Command, files []entity.FileInfo) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL