Documentation
¶
Overview ¶
Package local captures local work for apply mode: the changed files of a Git worktree, named files, or no file.
Index ¶
Constants ¶
const ( FormChanged = "changed" FormFiles = "files" FormNoFiles = "no-files" )
The capture forms, as local.capture records them.
const ( SkipBinary = "binary" SkipEmpty = "empty" SkipDeleted = "deleted" SkipSubmodule = "submodule" SkipTooLarge = "too-large" )
Skip reasons, as local.skipped records them.
const MaxFileSize = 1 << 20
MaxFileSize is the largest file a local capture takes; a larger one is skipped as too-large.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Captured ¶
type Captured struct {
Local run.LocalTarget
Diff []byte
Outline []run.OutlineEntry
}
Captured is what a local capture stores: the target's local block without its run number, the diff and the outline of the captured Markdown files.
type File ¶
File is one captured file: the display path the diff and anchors use, the absolute path the agent edits, and the content at capture.
type Place ¶
type Place struct {
// Root is the worktree root, or the working directory outside Git.
Root string
// Prefix is owner/repo, or the repository's directory name, or empty outside Git. It is display only.
Prefix string
// Repository is owner/repo when origin names a GitHub repository.
Repository string
// Branch is the current branch, empty on a detached HEAD.
Branch string
InGit bool
}
Place is where a local capture runs: the root that display paths are relative to, and the names a run shows.