From 8a372ffa0c9b2be8b0621c778bbcdeb45c498f85 Mon Sep 17 00:00:00 2001 From: Lim Yu Xi Date: Fri, 10 Apr 2026 17:34:28 +0800 Subject: [PATCH] fix: remove duplicated doc comments and unused mj import in agent_sdk.zig Fixes #427 Made-with: Cursor --- src/agent_sdk.zig | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/agent_sdk.zig b/src/agent_sdk.zig index f3a3fb1..fe8a5fc 100644 --- a/src/agent_sdk.zig +++ b/src/agent_sdk.zig @@ -13,9 +13,6 @@ // {"type":"result","subtype":"success","result":"",...} const std = @import("std"); -const mj = @import("mcp").json; - -/// Options for a Claude agent run via `claude -p`. /// Options for a Claude agent run via `claude -p`. pub const AgentOptions = struct { /// Comma-separated tool allowlist, e.g. "Bash,Read,Edit". @@ -56,12 +53,6 @@ pub fn runAgent( // ───────────────────────────────────────────────────────────────────────────── -/// Attempts to run the turn via `claude -p`. Returns false when claude is -/// unavailable so the caller can fall back to codex_appserver. -/// Attempts to run the turn via `claude -p`. Returns false when claude is -/// unavailable so the caller can fall back to codex_appserver. -/// Attempts to run the turn via `claude -p`. Returns false when claude is -/// unavailable so the caller can fall back to codex_appserver. /// Attempts to run the turn via `claude -p`. Returns false when claude is /// unavailable so the caller can fall back to codex_appserver. pub fn tryClaudeAgent( @@ -168,9 +159,6 @@ pub fn tryClaudeAgent( return true; } -/// Reads NDJSON from `claude -p --output-format stream-json`. -/// Extracts the agent's final text from the `{"type":"result"}` event. -/// Falls back to accumulated assistant-message text if no result event arrives. /// Reads NDJSON from `claude -p --output-format stream-json`. /// Extracts the agent's final text from the `{"type":"result"}` event. /// Falls back to accumulated assistant-message text if no result event arrives.