feat: Update 7 files
This commit is contained in:
@@ -21,6 +21,13 @@ chmod +x "${TEMP_DIR}/dehydrate"
|
||||
# Ensure autogen directory exists
|
||||
mkdir -p "${SCRIPT_DIR}/src/autogen"
|
||||
|
||||
# Generate agent hash BEFORE dehydration
|
||||
# Hash all files in agent-remote (excluding agent.hash itself) to create a content fingerprint
|
||||
echo "Generating agent hash..."
|
||||
AGENT_HASH=$(find "${SCRIPT_DIR}/agent-remote" -type f ! -name 'agent.hash' -exec sha256sum {} \; | sort | sha256sum | cut -d' ' -f1)
|
||||
echo "${AGENT_HASH}" > "${SCRIPT_DIR}/agent-remote/agent.hash"
|
||||
echo "Agent hash: ${AGENT_HASH}"
|
||||
|
||||
# Run dehydrate from temp location
|
||||
echo "Running dehydrate from temporary location"
|
||||
"${TEMP_DIR}/dehydrate" "${SCRIPT_DIR}/agent-remote" "${SCRIPT_DIR}/src/autogen"
|
||||
|
||||
Reference in New Issue
Block a user