#!/usr/bin/env bash
set -euo pipefail

# A no-agent Hermes cron runs this under the named profile's HERMES_HOME.
# It emits no routine stdout and wakes the same native-backup reconciler as the
# synchronous post_tool_call hook.
SELLABLE_HERMES_MEMORY_DIRTY_MARKER="${HERMES_HOME:?}/.sellable-agent/memory/dirty.json" \
  /opt/sellable/bin/hermes-memory-dirty </dev/null
