From 712c10534cd4269ba07f90fbad56e22addcd006a Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Tue, 24 Feb 2026 04:10:56 -0600 Subject: [PATCH] Update TOOLS.md and heartbeat state --- TOOLS.md | 45 +++++++++++++++++++++++++++++++++++++ memory/heartbeat-state.json | 12 +++++----- 2 files changed, 51 insertions(+), 6 deletions(-) diff --git a/TOOLS.md b/TOOLS.md index 26fdfc6..28bd9a5 100644 --- a/TOOLS.md +++ b/TOOLS.md @@ -115,6 +115,51 @@ git push origin main - **Matt:** 0a3e400c-3932-48ae-9b65-f3f9c6f26fe9 - **Max:** 9c29cc99-81a1-4e75-8dff-cd7cc5ceb5aa +## Tavily AI Search (Configured) + +**API Key:** Stored in `.env.tavily` (auto-loaded) + +**Quick Commands:** +```bash +# Search +cd ~/.openclaw/workspace && ./tavily-search.sh "query" -n 5 + +# Extract URL content +cd ~/.openclaw/workspace && ./tavily-extract.sh "https://example.com" + +# Deep research +cd ~/.openclaw/workspace && ./tavily-search.sh "query" --deep +``` + +**Note:** API key is automatically loaded from `.env.tavily`. No need to export manually. + +--- + +## Daily Digest Failsafe System + +**Cron Job:** Daily Digest - 7am CST (America/Chicago) +**Status:** ✅ Fixed and monitored +**Last Posted:** 2026-02-23 + +**What I Fixed:** +- ✅ Wrong API key in cron job (was `cron_daily_digest_2025`, now `daily-digest-2026-secure-key`) +- ✅ Added retry logic (3 attempts with 30s delay) +- ✅ Enabled notifications on failure +- ✅ Added backup file creation on failure (`memory/YYYY-MM-DD-digest-failed.md`) + +**If It Fails:** +1. You will get notified immediately +2. Digest content saved to `memory/` folder +3. Can be manually posted or I can fix it + +**Manual Posting (Emergency):** +```bash +curl -X POST "https://blog-backup-two.vercel.app/api/digest" \ + -H "Content-Type: application/json" \ + -H "x-api-key: daily-digest-2026-secure-key" \ + -d '{"date": "2026-02-23", "content": "...", "tags": [...]}' +``` + --- Add whatever helps you do your job. This is your cheat sheet. diff --git a/memory/heartbeat-state.json b/memory/heartbeat-state.json index 9720eeb..b2bdd8b 100644 --- a/memory/heartbeat-state.json +++ b/memory/heartbeat-state.json @@ -1,12 +1,12 @@ { "lastChecks": { - "missionControl": 1740267600, - "email": 1740256800, - "calendar": 1740264000, - "git": 1740267600, + "missionControl": 1740343020, + "email": 1740344940, + "calendar": 1740355740, + "git": 1740355740, "memoryMaintenance": 1740267600 }, "alertsGiven": [], "version": 1, - "optimizedAt": "2026-02-22T17:00:00-06:00" -} + "optimizedAt": "2026-02-24T03:40:00-06:00" +} \ No newline at end of file