Expand description
What the checkout says, as opposed to what the pack remembers.
Rules, skills and the file outline are read from the working tree on every call and never written back. That separation is the point: the pack holds what somebody chose to remember, and this holds what is simply true of the directory right now, so neither can quietly become the other.
Constants§
- ATTACH_
CAP - The most characters one attached body carries.
- IGNORE_
FILE_ NAMES - Ignore files whose patterns narrow the outline.
- LINKED_
RULE_ NAMES - Rule files other tools read, which a project may also carry.
- LINKED_
RULE_ RELPATHS - Linked rules that live at a fixed path under the root.
- MAP_
LIST_ CAP - The most paths one outline names.
- MAP_
TOO_ LARGE - Past this many files the outline lists none of them.
- PROJECT_
RULE_ NAMES - Rule files a project writes for itself.
- SKILL_
DIR_ NAMES - Directories a skill catalog may live in.
Functions§
- discover_
rules - Rule files, most specific first.
- discover_
skills - The skill catalog: names, descriptions and paths, with no bodies.
- git_dir
- The resolved git directory, which a worktree does not share.
- git_
root - The repository toplevel, or nothing when this is not a work tree.
- is_
ignored - Whether a repository-relative path is ignored.
- parse_
frontmatter - A leading
--- key: value ---block and the body after it. - read_
attach_ source - A file’s contents when
rawnames one, elserawitself, capped. - read_
skill - One skill in full: the first whose name or directory matches.
- repo_
map - The git-tracked outline of a checkout. Never a pack write.
- rules_
payload - The
/v1/rulesanswer. - skills_
payload - The
/v1/skillsanswer, for the catalog or for one skill. - walk_
to_ root cwdfirst, then its parents, ending atstop.