fleet-memory/hindsight-integrations/openclaw/src
akhater 087545cc1b
feat(openclaw): JSONL-backed retain queue for external API resilience (#740)
When the external Hindsight API is unreachable, retain requests are
buffered as JSON lines in a local file and automatically flushed once
connectivity is restored. Queue survives process restarts.

- Only active in external API mode (local daemon handles its own persistence)
- Zero dependencies — uses only Node built-ins (fs, crypto)
- Bulk removal via removeMany() for O(1) file rewrites during flush
- Cached item count so size() is O(1)
- Configurable: retainQueuePath, retainQueueMaxAgeMs (-1 = forever),
  retainQueueFlushIntervalMs (default 60s)
- Flushes on successful retain and on a periodic timer
- All logging routed through structured logger (api.logger)

Co-authored-by: billy <billy@oclaw.local>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Antoine Khater <ak@ptgroup.eu>
2026-04-01 18:06:57 +02:00
..
client.test.ts feat(openclaw): v2 recall/retention controls, scalability fixes, and Gemini safety settings (#480) 2026-03-05 16:55:16 +01:00
client.ts feat(openclaw): configurable logging with structured output (#739) 2026-03-30 10:38:02 +02:00
derive-bank-id.test.ts feat(openclaw): v2 recall/retention controls, scalability fixes, and Gemini safety settings (#480) 2026-03-05 16:55:16 +01:00
embed-manager.ts fix(openclaw): remove unused imports, retry health check, suppress unhandled rejection (#373) 2026-02-16 10:02:19 +01:00
index.test.ts fix(openclaw): add warn log and tests for CLI mode no-op in waitForReady (#799) 2026-03-31 09:25:52 +02:00
index.ts feat(openclaw): JSONL-backed retain queue for external API resilience (#740) 2026-04-01 18:06:57 +02:00
logger.ts feat(openclaw): configurable logging with structured output (#739) 2026-03-30 10:38:02 +02:00
manifest.test.ts Fix trailing commas in openclaw.plugin.json and add JSON manifest CI tests (#774) 2026-03-30 16:55:06 +02:00
moltbot-types.ts fix: rename openclawd to openclaw (#252) 2026-01-30 13:04:42 +01:00
remote-no-llm.test.ts feat(openclaw): v2 recall/retention controls, scalability fixes, and Gemini safety settings (#480) 2026-03-05 16:55:16 +01:00
retain-queue.ts feat(openclaw): JSONL-backed retain queue for external API resilience (#740) 2026-04-01 18:06:57 +02:00
types.ts feat(openclaw): JSONL-backed retain queue for external API resilience (#740) 2026-04-01 18:06:57 +02:00