No description
Find a file
Snider a315c3894e
Some checks failed
Security Scan / security (push) Failing after 8s
Test / test (push) Failing after 23s
refactor: modernise to Go 1.26 — iterators, slices, maps
- Add StatusIter, DirtyReposIter, AheadReposIter on git.Service
- Add StatusIter, PushMultipleIter on git package functions
- Add ListOrgReposIter, ListUserReposIter on forge/gitea clients
- Add ListPullRequestsIter on forge/gitea clients
- Add extractIACRPapersIter, extractPostsIter iterators
- Replace manual map-key-sort with slices.Sorted(maps.Keys(...))
- Modernise range-over-int in excavate_test.go

Co-Authored-By: Gemini <noreply@google.com>
Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-23 06:23:45 +00:00
.forgejo/workflows ci: add Forgejo Actions test and security scan workflows 2026-02-23 03:28:08 +00:00
agentci feat: restore agentci, git, and jobrunner packages 2026-02-21 19:27:35 +00:00
cmd refactor: migrate CLI imports from core/go to core/cli 2026-02-22 23:29:41 +00:00
collect refactor: modernise to Go 1.26 — iterators, slices, maps 2026-02-23 06:23:45 +00:00
docs docs: graduate TODO/FINDINGS into production documentation 2026-02-20 15:02:22 +00:00
forge refactor: modernise to Go 1.26 — iterators, slices, maps 2026-02-23 06:23:45 +00:00
git refactor: modernise to Go 1.26 — iterators, slices, maps 2026-02-23 06:23:45 +00:00
gitea refactor: modernise to Go 1.26 — iterators, slices, maps 2026-02-23 06:23:45 +00:00
jobrunner feat: restore agentci, git, and jobrunner packages 2026-02-21 19:27:35 +00:00
CLAUDE.md refactor: remove git/ package (extracted to core/go-git) 2026-02-21 17:26:35 +00:00
go.mod refactor: migrate CLI imports from core/go to core/cli 2026-02-22 23:29:41 +00:00
go.sum refactor: modernise to Go 1.26 — iterators, slices, maps 2026-02-23 06:23:45 +00:00
README.md docs: add README with quick start and docs links 2026-02-20 15:11:19 +00:00

go-scm

SCM integration, AgentCI dispatch automation, and data collection for the Lethean ecosystem. Provides a Forgejo API client and a Gitea client for the public mirror, multi-repo git operations with parallel status checks, the Clotho Protocol orchestrator for dual-run agent verification, a PR automation pipeline (poll → dispatch → journal) driven by epic issue task lists, and pluggable data collectors for BitcoinTalk, GitHub, market data, and research papers.

Module: forge.lthn.ai/core/go-scm Licence: EUPL-1.2 Language: Go 1.25

Quick Start

import (
    "forge.lthn.ai/core/go-scm/forge"
    "forge.lthn.ai/core/go-scm/git"
    "forge.lthn.ai/core/go-scm/jobrunner"
)

// Forgejo client
client, err := forge.NewFromConfig("", "")

// Multi-repo status
statuses := git.Status(ctx, git.StatusOptions{Paths: repoPaths})

// AgentCI dispatch loop
poller := jobrunner.NewPoller(jobrunner.PollerConfig{
    Sources:      []jobrunner.JobSource{forgejoSrc},
    Handlers:     []jobrunner.JobHandler{dispatch, tickParent},
    PollInterval: 60 * time.Second,
})
poller.Run(ctx)

Documentation

Build & Test

go test ./...
go test -race ./...
go build ./...

Licence

European Union Public Licence 1.2 — see LICENCE for details.