feat(seed): install AGENTS.md from seed to zot's ZOT_HOME global slot #138
1 changed files with 10 additions and 0 deletions
|
|
@ -358,6 +358,16 @@ _seed_activate_agent() {
|
|||
# Same seed material, same private key, separate ~/.ssh directory.
|
||||
_seed_install_ssh_material "${_dir}/ssh" "${SEED_DAEMON_USER}" "${SEED_DAEMON_HOME}"
|
||||
fi
|
||||
# Install AGENTS.md to zot's global slot so the autospawned zot reads
|
||||
# operational rules (mother, verbs, "install Hermes next") on first boot.
|
||||
# Must match ZOT_HOME exported by colibri_daemon.in prestart.
|
||||
if [ -f "${_dir}/AGENTS.md" ]; then
|
||||
_zot_home="${SEED_DAEMON_HOME}/.local/state/zot"
|
||||
mkdir -p "${_zot_home}"
|
||||
install -m 0644 -o "${SEED_DAEMON_USER}" -g "${SEED_DAEMON_USER}" \
|
||||
"${_dir}/AGENTS.md" "${_zot_home}/AGENTS.md"
|
||||
_seed_log "installed AGENTS.md -> ${_zot_home}/AGENTS.md"
|
||||
fi
|
||||
|
||||
_seed_log "activated agent '${_agent}' for user ${_user} (home ${_home})"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue