import { FetchedRelease } from './fetch'; import { FetchLike } from './registry'; /** * GitHub-repo skill source: the skills repo is just a git repository * (e.g. `constructive-io/constructive-skills`), released by tagging. Releases * are downloaded as codeload tarballs and unpacked into the same * `//` layout the npm fetcher uses, so * `latestLocalRelease()` and `DirectorySkillSource` work identically for both. */ export interface GitFetchOptions { /** `owner/repo`, e.g. `constructive-io/constructive-skills`. */ repo: string; /** * Ref pin: a tag (`v1.2.0`), a semver range resolved against tags * (`^1.2.0`), a full commit SHA, or a branch name. Tags and SHAs are * reproducible pins; a branch is a moving pointer resolved at fetch time. */ pin: string; /** Root directory releases unpack into: `//`. */ skillsRoot: string; /** Path of the skills tree inside the repo (default `.agents/skills`). */ repoSubdir?: string; /** GitHub API/codeload base overrides (GHES) and injectable HTTP. */ apiUrl?: string; codeloadUrl?: string; fetchImpl?: FetchLike; /** Token for private repos; sent as `authorization: Bearer `. */ token?: string; } export declare function fetchSkillsFromGit(options: GitFetchOptions): Promise; /** Semver versions published as tags on the repo (e.g. `v1.2.0` → `1.2.0`). */ export declare function listGitTagVersions(options: Pick): Promise;