Documentation
¶
Index ¶
Constants ¶
View Source
const ( ExitSuccess = 0 ExitNotable = 1 ExitUsageError = 2 ExitOpError = 3 ExitPartial = 4 ExitNoPending = 5 )
Exit code conventions (see docs/CLI_REFERENCE.md).
Variables ¶
View Source
var Version = "0.1.0"
Version is overridden at release build time via -ldflags "-X github.com/Flow-Forge-Lab-Team/skills-manager/internal/cli.Version=<tag>".
Functions ¶
Types ¶
type GitHubFetcher ¶
type GitHubFetcher interface {
FetchFile(owner, repo, ref, path string) ([]byte, error)
FetchTree(owner, repo, ref, subPath string) ([]TreeEntry, error)
}
GitHubFetcher is an interface for fetching files and trees from GitHub. It can be overridden in tests.
type GitHubPoller ¶
type GitHubPoller interface {
// Poll fetches the current commit SHA and ETag for the given GitHub repo and ref.
// If etag is non-empty, sends If-None-Match header and returns notModified=true on 304.
// On success (200), returns (commit, etag, false, nil).
// On 304 (Not Modified), returns (cachedCommit, cachedETag, true, nil).
// If gh CLI is not found or auth fails, returns ("", "", false, error).
Poll(owner, repo, ref, etag string) (commit, newETag string, notModified bool, err error)
}
GitHubPoller defines the interface for polling GitHub for commit info. This allows tests to substitute a fake implementation.
type ScheduleBackend ¶
type ScheduleBackend string
ScheduleBackend identifies which OS scheduler was installed.
const ( BackendManual ScheduleBackend = "manual" BackendLaunchd ScheduleBackend = "launchd" BackendCron ScheduleBackend = "cron" )
type ScheduleConfig ¶
type ScheduleConfig struct {
Provider ScheduleProvider
Interval string // "daily" for v0.2
BinaryPath string // absolute path to the skills-manager binary
LogDir string // ~/.skills-manager/logs
}
ScheduleConfig holds the resolved configuration for a scheduled check.
type ScheduleProvider ¶
type ScheduleProvider string
ScheduleProvider identifies the scheduling mechanism.
const (
ProviderLocal ScheduleProvider = "local"
)
type ScheduleState ¶
type ScheduleState struct {
Version int
Provider ScheduleProvider
Backend ScheduleBackend
Interval string
InstalledAt string
BinaryPath string
IncludeSummarize bool
}
ScheduleState is persisted under the manager home after setup-schedule.
Source Files
¶
- add.go
- agents_assemble.go
- bundled.go
- categorize.go
- check.go
- cleanup.go
- cli.go
- compat_check.go
- compile.go
- config.go
- detect.go
- doctor.go
- globals.go
- ingest.go
- init.go
- install.go
- library.go
- list.go
- llm_provider.go
- llm_provider_process_unix.go
- match.go
- new.go
- otel.go
- poller.go
- port.go
- scan.go
- schedule.go
- schedule_commands.go
- schedule_state.go
- seed_catalog.go
- serve.go
- serve_api.go
- serve_crossmachine.go
- serve_read.go
- set.go
- status.go
- summarize.go
- sync_library.go
- update.go
- update_actions.go
- usage.go
- variants.go
- watch.go
- watch_unix.go
- yaml.go
- yaml_text.go
Click to show internal directories.
Click to hide internal directories.