updateAgentSites
View as Markdownfunction updateAgentSites(home, fn): Promise<object[]>;Defined in: agent/src/config.ts:277
Re-reads the file, applies fn to its sites, and writes it back atomically, user-only (0600 / ACL),
under the agent.yaml lock. Comments, localPolicy and runtimes (hand-edited by the user) are preserved.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
home |
string |
fn |
(sites) => object[] |
Returns
Section titled “Returns”Promise<object[]>