Documentation
¶
Index ¶
Constants ¶
const DefaultSource = "github.com/elliottpolk/agentic-kernel"
DefaultSource is the canonical kernel used when --kernel.source is omitted.
Variables ¶
This section is empty.
Functions ¶
func CheckRateLimit ¶
CheckRateLimit fetches the current GitHub API core rate limit and returns an error (including the reset time) if the limit is exhausted. It is intended as a pre-flight check before any API calls are made.
func IsNotFound ¶
IsNotFound returns true when err is a GitHub API 404 response.
func NewClient ¶
NewClient constructs a GitHub API client. If token is non-empty it creates an authenticated client via an oauth2 transport; otherwise it returns an unauthenticated client subject to GitHub's lower rate limits.
func ParseSource ¶
ParseSource parses a kernel source string of the form "host/owner/repo". An empty or whitespace-only value resolves to DefaultSource. Any host other than "github.com" returns an error.
Types ¶
This section is empty.