Documentation
¶
Overview ¶
Package version resolves the sfw-mcp binary version and its linked semantic_firewall engine version at runtime from the embedded Go build info. `go install ...@v0.1.2` populates debug.ReadBuildInfo().Main.Version with the binary's own tag and debug.ReadBuildInfo().Deps with the resolved dependency versions; a local `go run` or `go build` without a tag leaves both as "(devel)".
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Engine ¶
func Engine() string
Engine returns the version of the semantic_firewall engine library linked into this binary. We deliberately do NOT call sfw/pkg/version.EngineVersion here: that helper reports info.Main.Version, which is the sfw-mcp tag whenever sfw-mcp is the main module -- giving downstream operators a misleading "Engine: <mcp-tag>" reading. Walking info.Deps for the engine path returns the real linked dependency.
Types ¶
This section is empty.