Skip to content

Commit 017722d

Browse files
ralyodioclaude
andcommitted
Merge feat/news-nntp-server: v0.1.0 + AgentGit provisioning wiring
Brings the AgentGit provisioning wiring (provisionGit hook in both email-verify paths + setup.sh Forgejo backend section) and the v0.1.0 stack version onto main. The internal/forgejo package was already on main but unwired; this connects it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2 parents 115df74 + 5d56e02 commit 017722d

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@
55
*.db
66
*.log
77
.env
8+
9+
# Claude Code local worktrees/state
10+
.claude/

cmd/agentbbs/main.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,15 @@ type app struct {
108108
newsAddr string // loopback NNTP address the news@ reader dials
109109
}
110110

111+
// Version is the agentbbs stack release, surfaced via `agentbbs version` and
112+
// logged at startup. Bump on each release of the bbs.profullstack.com stack.
113+
const Version = "v0.1.0"
114+
111115
func main() {
116+
if len(os.Args) > 1 && (os.Args[1] == "version" || os.Args[1] == "--version" || os.Args[1] == "-v") {
117+
fmt.Println("agentbbs " + Version)
118+
return
119+
}
112120
dataDir := env("AGENTBBS_DATA", "./data")
113121
_ = os.MkdirAll(filepath.Join(dataDir, "users"), 0o755)
114122

@@ -258,7 +266,7 @@ func main() {
258266

259267
done := make(chan os.Signal, 1)
260268
signal.Notify(done, os.Interrupt, syscall.SIGINT, syscall.SIGTERM)
261-
log.Info("agentbbs listening", "addr", addr)
269+
log.Info("agentbbs listening", "addr", addr, "version", Version)
262270
go func() {
263271
if err := srv.ListenAndServe(); err != nil && !errors.Is(err, ssh.ErrServerClosed) {
264272
log.Error("serve", "err", err)

0 commit comments

Comments
 (0)