Documentation
¶
Overview ¶
Package workspaceseed builds a compact, deterministic workspace context seed for future agent prompt/session wiring.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Render ¶
func Render(seed Seed, options RenderOptions) string
Render formats a seed for prompt/session context while respecting simple line and rune-width budgets.
Types ¶
type GitInfo ¶
GitInfo is metadata supplied by integration code that already knows git state. BuildFromWorkspace does not invoke git.
type Input ¶
type Input struct {
CWD string
GitBranch string
GitDirty *bool
GitSummary string
Paths []string
MaxLayoutEntries int
}
Input is the pure builder input. Callers provide paths and git metadata; the builder never shells out.
type RenderOptions ¶
RenderOptions controls text output budgets.
type Seed ¶
type Seed struct {
CWD string
GitBranch string
GitSummary string
Layout []string
ProjectFiles []string
MemoryFiles []string
Truncated bool
}
Seed is the compact workspace context model ready for rendering.
func BuildFromWorkspace ¶
BuildFromWorkspace scans the local filesystem with workspaceindex and builds a seed from the resulting file list. Its only git operation is the read-only ignored-path lookup inside workspaceindex.Scan; branch and dirty state come from the caller's GitInfo.