Documentation
¶
Overview ¶
Package update tells a user that a newer Jade release exists without getting in their way.
The rules that keep it quiet: nothing is fetched on the request path — a notice is read from a cache, and the cache is refreshed at most once a day in the background with a short timeout; a failed or offline check also waits a day; and the notice appears only where someone asked what they are running, `jade-mcp --version` and the capabilities report, never in the server instructions an agent reads every session. JADE_UPDATE_CHECK=0, a CI environment or a development build turn it off.
The check is one unauthenticated GET of the latest release tag from GitHub. It sends nothing about the workspace or its use; telemetry stays local.
Index ¶
Constants ¶
const ( // DisableEnv set to 0 turns the check off. DisableEnv = "JADE_UPDATE_CHECK" // InstallCommand installs or updates Jade in place. InstallCommand = "curl -fsSL https://raw.githubusercontent.com/julianbei/jade/main/install.sh | sh" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct {
Current string
CachePath string
URL string
Now func() time.Time
Client *http.Client
Getenv func(string) string
}
Checker compares the running version with the latest release.