okf: scaffold knowledge bundle and MCP server config

Adds a harvested .okf/ knowledge bundle (codebase concepts + starter
architecture/services/rules scaffolding) and .mcp.json pointing at the
shared okf MCP service (http://localhost:8765/archie-core/), which
serves multiple projects' bundles from a single process.
This commit is contained in:
sam committed 2026-07-22 04:36:50 +10:00
1 parent 7dbb17a4cb
commit 7c34bdae5a
106 files changed
+3882

No files matched your search

+50
View File
@@ -0,0 +1,50 @@
---
description: Source module internal/forge/github.go (309 lines).
resource: internal/forge/github.go
tags:
- go
- source
timestamp: "2026-07-21T18:36:22Z"
title: github.go
type: Module
---
# Module github.go
**Path**: `internal/forge/github.go`
**Lines**: 309
## Snippet Preview
```
// Package forge wraps the GitHub API surface archied needs: polling
// labelled issues, accepting collaborator invitations, commenting, and
// opening pull requests. Gitea support later lands as a second
// implementation behind the same methods.
package forge
import (
"context"
"fmt"
"log/slog"
"strings"
"sync"
"github.com/google/go-github/v78/github"
)
// GitHubClient implements Forge against the GitHub API.
type GitHubClient struct {
gh *github.Client
log *slog.Logger
labelMu sync.Mutex
labelsEnsured map[string]bool
}
// New creates a GitHub-backed Forge implementation. Non-github.com hosts
// are configured using GitHub Enterprise's API and upload URL conventions.
func New(token, host string, log *slog.Logger) (Forge, error) {
client := github.NewClient(nil)
if strings.TrimRight(host, "/") != "https://github.com" {
```