Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions src/agent_sdk.zig
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
// {"type":"result","subtype":"success","result":"<final text>",...}

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".
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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.
Expand Down
Loading