buildEgressAllowlist
buildEgressAllowlist(
opts):string[]
Defined in: src/egress.ts:394
Build the deduped, sorted egress allowlist of domains for an agent spawn.
- Anthropic base set: always included.
- Forge hosts: every map KEY (the host); for
type === "github"entries the GitHub well-known set is also added; for abaseUrl, its hostname is extracted. Whenforgesis EMPTY (no entries), the GitHub well-known set is added as the default forge (Shepherd defaults to github.com via theghCLI). extraHosts: operator additions, appended verbatim (after normalization).
Invalid hosts (empty, non-hostname characters, no dot) are silently dropped.
Parameters
Section titled “Parameters”extraHosts?
Section titled “extraHosts?”string[]
forges
Section titled “forges”Returns
Section titled “Returns”string[]