Documentation
¶
Overview ¶
Package shared vendors the cross-stack data artifact that ogham-mcp publishes under the shared-data-vX.Y.Z tag stream. The YAML files in this directory are mirrored byte-for-byte from public ogham-mcp's shared/ tree via git subtree (see ../../../README.md for the subtree-pull command), and the schema lock + RE2 dialect promise is documented in shared/README.md upstream.
Do NOT edit hooks_config.yaml, schema.yaml, README.md, or CHANGELOG.md by hand: bump the upstream artifact, retag, and run git subtree pull. The CI parity gate (see TestParity in shared_test.go) will reject any local-only divergence.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RawHooksConfig ¶
func RawHooksConfig() []byte
RawHooksConfig returns the embedded hooks_config.yaml bytes unmodified. Used by the parity hash gate.
Types ¶
type BareToken ¶
BareToken pairs a human-readable name with a RE2-compatible regex pattern for secret detection.
type HooksConfig ¶
type HooksConfig struct {
Signals struct {
Errors []string `yaml:"errors"`
Decisions []string `yaml:"decisions"`
Architecture []string `yaml:"architecture"`
Annotations []string `yaml:"annotations"`
} `yaml:"signals"`
NoiseCommands []string `yaml:"noise_commands"`
AlwaysSkipTools []string `yaml:"always_skip_tools"`
ResponseGatedTools []string `yaml:"response_gated_tools"`
RoutineTools []string `yaml:"routine_tools"`
GitSignal []string `yaml:"git_signal"`
GitNoise []string `yaml:"git_noise"`
Secrets struct {
BareTokens []BareToken `yaml:"bare_tokens"`
EnvKeys []string `yaml:"env_keys"`
} `yaml:"secrets"`
}
HooksConfig mirrors the top-level keys of shared/hooks_config.yaml. Only the surface needed by ogham-cli's native filtering engine is modelled here; unknown YAML keys are accepted silently for forward compatibility with upstream additions.
func LoadHooksConfig ¶
func LoadHooksConfig() (*HooksConfig, error)
LoadHooksConfig parses the embedded hooks_config.yaml.