Documentation
¶
Overview ¶
Package workspace owns repository and workspace context used by the CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdditionalDirContext ¶
AdditionalDirContext validates a directory and formats its AGENTS.md instructions for inclusion in a conversation.
func BranchSummary ¶
func BranchSummary() string
BranchSummary returns a compact branch, revision, upstream, and status report suitable for interactive CLI output.
func DiffReport ¶
DiffReport returns the current working-tree diff, falling back to the index when there are no unstaged changes. An empty report means no changes exist.
func DiffReportWith ¶
func DiffReportWith(git GitOutputFunc) (string, error)
DiffReportWith makes diff selection and truncation independently testable.
func FilesSummary ¶
func FilesSummary() string
FilesSummary returns a compact modified-files report.
Types ¶
type GitOutputFunc ¶
GitOutputFunc is the narrow git boundary used by DiffReport.
Click to show internal directories.
Click to hide internal directories.