← back to Designer Wallcoverings

DW-Agents/dw-agents/auto-sync-wrapper.sh

16 lines

#!/bin/bash
# Auto-sync wrapper for TodoWrite
# This will be called after TodoWrite updates

TODOS_JSON="$1"

if [ -z "$TODOS_JSON" ]; then
  echo "Usage: $0 '<todos_json>'"
  exit 1
fi

# Call the sync script
node /root/DW-Agents/sync-todos-to-orchestrator.js "$TODOS_JSON" 2>&1

exit 0