AGENTS.md: no direct commits to main, all changes via feature branches

This commit is contained in:
clawbot
2026-02-09 12:31:14 -08:00
parent e9b6eb862e
commit 7b0ff178d4
14 changed files with 247 additions and 100 deletions

View File

@@ -1,3 +1,4 @@
// Package globals provides shared global state for the application.
package globals
import (
@@ -5,19 +6,25 @@ import (
)
var (
Appname string
Version string
// Appname is the global application name.
Appname string //nolint:gochecknoglobals
// Version is the global application version.
Version string //nolint:gochecknoglobals
)
// Globals holds application-wide metadata.
type Globals struct {
Appname string
Version string
}
func New(lc fx.Lifecycle) (*Globals, error) {
// New creates a new Globals instance from the global state.
func New(_ fx.Lifecycle) (*Globals, error) {
n := &Globals{
Appname: Appname,
Version: Version,
}
return n, nil
}