API Reference lemon_cli_runners v#0.1.0

View Source

Modules

Claude CLI subprocess runner.

Claude CLI JSONL event schema definitions.

Session initialization message

User message (typically tool results)

Plain text content block

Extended thinking/reasoning block

Tool execution result block

Tool invocation request block

Token usage statistics

Content of a user message (tool results)

High-level API for using Claude (Claude Code CLI) as a collaborating subagent.

Codex CLI subprocess runner.

Codex CLI JSONL event schema definitions.

Final text response from agent

Individual file change within a FileChangeItem

Extended thinking/reasoning text

Stream-level error or notice

Error information for failed turns

Conversation turn has finished

Conversation turn has begun

Token usage statistics

High-level API for using Codex as a collaborating subagent.

Factory Droid CLI subprocess runner.

High-level API for using Factory Droid as a collaborating subagent.

Environment variables read by lemon_cli_runners — the vendor CLI wrappers.

Base GenServer for running CLI tools that emit JSONL events.

Kimi CLI subprocess runner.

Kimi CLI JSONL event schema definitions.

Error line emitted by the CLI

Kimi message payload

Wrapper for a message line

Function payload for a tool call

High-level API for using Kimi (Kimi CLI) as a collaborating subagent.

OpenCode CLI subprocess runner.

High-level API for using OpenCode (opencode CLI) as a collaborating subagent.

Pi Coding Agent CLI subprocess runner.

High-level API for using Pi (pi-coding-agent CLI) as a collaborating subagent.

Shared helpers for translating tool calls and tool results into action events.

Core type definitions for CLI-based subprocess runners.

Represents a discrete action performed by a CLI agent.

Emitted for action lifecycle events (started/updated/completed).

Emitted when a CLI session ends.

Factory for creating CLI runner events with consistent engine identification.

Compatibility wrapper - delegates to LemonCore.ResumeToken.

Emitted when a CLI session begins.