From 7381feb1d659cf95641ee1ddc9af0265e495632c Mon Sep 17 00:00:00 2001 From: operator Date: Mon, 5 Oct 2026 05:28:55 +0000 Subject: [PATCH] feat(harvester): auto-extract and execute curl commands against box.muse-dev.online --- bin/response-harvester.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bin/response-harvester.py b/bin/response-harvester.py index ff5d3e3..4f02fc8 100755 --- a/bin/response-harvester.py +++ b/bin/response-harvester.py @@ -152,6 +152,17 @@ def parse_tool_calls(text): calls.append((d["op"], d.get("args", {}))) except Exception: pass + + # Extract curl command tool calls (e.g. curl ... -d '{"op": "...", "args": ...}') + for m in re.finditer(r"curl\s+.*?https?://(?:box\.muse-dev\.online|100\.123\.153\.75:8444|exec\.muse-dev\.online)/exec.*?-[dD]\s+(['\"])(.*?)\1", text or "", re.DOTALL): + raw_body = m.group(2) + try: + d = json.loads(raw_body) + if isinstance(d, dict) and "op" in d: + calls.append((d["op"], d.get("args", {}))) + except Exception: + pass + return calls