No description
Find a file
Snider 9806bbeb4c feat(manifest): add compile step and marketplace index builder
Add manifest compilation (.core/manifest.yaml → core.json) with build
metadata (commit, tag, timestamp, signature) and marketplace index
generation by crawling directories for compiled or source manifests.

New files:
- manifest/compile.go: CompiledManifest, Compile(), ParseCompiled(),
  WriteCompiled(), LoadCompiled(), MarshalJSON()
- marketplace/builder.go: Builder.BuildFromDirs(), BuildFromManifests(),
  WriteIndex()
- cmd/scm/: CLI commands — compile, index, export

Tests: 26 new (12 manifest, 14 marketplace), all passing.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-15 13:45:24 +00:00
.core chore: add .core/ build and release configs 2026-03-06 18:52:37 +00:00
.forgejo/workflows ci: add Forgejo Actions test and security scan workflows 2026-02-23 03:28:08 +00:00
agentci refactor: update import path from go-config to core/config 2026-03-14 10:26:01 +00:00
cmd feat(manifest): add compile step and marketplace index builder 2026-03-15 13:45:24 +00:00
collect refactor: swap pkg/{io,log,i18n} imports to go-io/go-log/go-i18n 2026-03-06 12:35:42 +00:00
docs refactor: update import path from go-config to core/config 2026-03-14 10:26:01 +00:00
forge refactor: update import path from go-config to core/config 2026-03-14 10:26:01 +00:00
git refactor: swap pkg/framework imports to pkg/core 2026-03-06 14:10:59 +00:00
gitea refactor: update import path from go-config to core/config 2026-03-14 10:26:01 +00:00
jobrunner refactor: swap pkg/{io,log,i18n} imports to go-io/go-log/go-i18n 2026-03-06 12:35:42 +00:00
manifest feat(manifest): add compile step and marketplace index builder 2026-03-15 13:45:24 +00:00
marketplace feat(manifest): add compile step and marketplace index builder 2026-03-15 13:45:24 +00:00
pkg/api feat(api): add SCM service provider with Lit custom elements 2026-03-14 10:42:37 +00:00
plugin feat: add manifest, marketplace, plugin, repos subpackages 2026-03-06 13:20:12 +00:00
repos feat(repos): add kb.yaml knowledge base config 2026-03-06 15:55:48 +00:00
ui feat(api): add SCM service provider with Lit custom elements 2026-03-14 10:42:37 +00:00
.editorconfig chore: add Go repo norms (badges, contributing, lint, taskfile, editorconfig) 2026-02-23 06:45:47 +00:00
.gitignore chore: add .core/ and .idea/ to .gitignore 2026-03-15 10:17:50 +00:00
.golangci.yml chore: add Go repo norms (badges, contributing, lint, taskfile, editorconfig) 2026-02-23 06:45:47 +00:00
CLAUDE.md refactor: update import path from go-config to core/config 2026-03-14 10:26:01 +00:00
CONTRIBUTING.md chore: add Go repo norms (badges, contributing, lint, taskfile, editorconfig) 2026-02-23 06:45:47 +00:00
go.mod fix: update stale import paths and dependency versions from extraction 2026-03-14 13:38:59 +00:00
go.sum fix: update stale import paths and dependency versions from extraction 2026-03-14 13:38:59 +00:00
README.md chore: add Go repo norms (badges, contributing, lint, taskfile, editorconfig) 2026-02-23 06:45:47 +00:00

Go Reference License: EUPL-1.2 Go Version

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.