herdrsync

command
v1.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command herdrsync refreshes Sidecar's vendored copy of Herdr's agent-detection manifests, the lock that pins them, the alias and authority tables extracted from Herdr's source, and Herdr's provider integration assets.

It writes under two output directories and nowhere else: internal/agentactivity/manifests for the detection lane and internal/agentintegration for the hooks lane, each with its own lock. Vendored files are byte-for-byte copies; nothing here rewrites upstream content.

Usage:

go run ./internal/tools/herdrsync [flags]
scripts/sync-herdr.sh [flags]

The tested path is a local Herdr checkout:

go run ./internal/tools/herdrsync --source-dir ~/code/herdr --ref e2b85c7

A local checkout is read through `git show <ref>:<path>`, so the vendored bytes and the commit recorded in the lock are always the same object; a ref that does not resolve in that checkout fails the run.

There are two pins and they are not the same pin. --ref selects the source tree to vendor and defaults to Herdr's own default branch, because Sidecar ships faster than Herdr tags and takes detection fixes as they land. --release-tag names the release whose binary the differential harness downloads, and defaults to the newest release of any kind, because it has to be something a runner can actually download. A sync never moves --ref's resolved commit backwards past the one the lock records; see holdPin.

All six steps of the plan's sync design are implemented.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL