From 312e39b8c03d462edfba72a227bb0272954c04d0 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 25 Nov 2025 03:23:09 +0100 Subject: [PATCH] docs: clarify claude output handling --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 0c654fe3c..482065a04 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,12 @@ You can also use a personal WhatsApp Web session (QR login) via `--provider web` } ``` +### Claude CLI integration + +- When `command[0]` is `claude`, set `claudeOutputFormat` to `"text"`, `"json"`, or `"stream-json"` and warelay will inject `--output-format` and `-p/--print` automatically. +- For `"json"`/`"stream-json"`, warelay now parses Claude's JSON payload and sends just the text content to WhatsApp while keeping the full JSON in logs for debugging. +- If you omit `claudeOutputFormat`, warelay leaves your args untouched (useful for custom Claude flags). + ### Simple text echo ```json5 {