{"modulePath":"github.com/Dongss/agent2api","version":"v0.1.9","isStandardLibrary":false,"packages":{"items":[{"path":"github.com/Dongss/agent2api/cmd/agent2api","name":"main","synopsis":"Command agent2api serves local agent CLIs as OpenAI- and Anthropic-compatible HTTP APIs.","isRedistributable":true},{"path":"github.com/Dongss/agent2api/internal/adapter","name":"adapter","synopsis":"Package adapter defines the contract every agent CLI backend implements, and the registry that turns a config block into a live adapter.","isRedistributable":true},{"path":"github.com/Dongss/agent2api/internal/adapter/agentcli","name":"agentcli","synopsis":"Package agentcli holds the plumbing every CLI-backed adapter needs: resolving the binary, learning which flags the installed version actually supports, and turning one subprocess run into a stream of IR events.","isRedistributable":true},{"path":"github.com/Dongss/agent2api/internal/adapter/claudecode","name":"claudecode","synopsis":"Package claudecode adapts the Claude Code CLI (`claude`) into an inference backend.","isRedistributable":true},{"path":"github.com/Dongss/agent2api/internal/adapter/codex","name":"codex","synopsis":"Package codex adapts the Codex CLI (`codex exec`) into an inference backend.","isRedistributable":true},{"path":"github.com/Dongss/agent2api/internal/adapter/cursor","name":"cursor","synopsis":"Package cursor adapts the Cursor Agent CLI (`cursor-agent`) into an inference backend.","isRedistributable":true},{"path":"github.com/Dongss/agent2api/internal/adapter/fake","name":"fake","synopsis":"Package fake provides an in-memory adapter for tests: it exercises the gateway end to end without spawning a CLI.","isRedistributable":true},{"path":"github.com/Dongss/agent2api/internal/adapter/mock","name":"mock","synopsis":"Package mock is a scripted backend, compiled in only with the \"conformance\" build tag.","isRedistributable":true},{"path":"github.com/Dongss/agent2api/internal/adapter/qwencode","name":"qwencode","synopsis":"Package qwen adapts the Qwen Code CLI (`qwen`) into an inference backend.","isRedistributable":true},{"path":"github.com/Dongss/agent2api/internal/config","name":"config","synopsis":"Package config defines agent2api's configuration schema and assembles the effective config from three layers: built-in defaults, an optional config file, and CLI flags — later layers winning per key.","isRedistributable":true},{"path":"github.com/Dongss/agent2api/internal/frontend/anthropic","name":"anthropic","synopsis":"Package anthropic implements the Anthropic-compatible HTTP surface: POST /v1/messages, streaming and non-streaming.","isRedistributable":true},{"path":"github.com/Dongss/agent2api/internal/frontend/openai","name":"openai","synopsis":"Package openai implements the OpenAI-compatible HTTP surface: POST /v1/chat/completions and GET /v1/models, streaming and non-streaming.","isRedistributable":true},{"path":"github.com/Dongss/agent2api/internal/frontend/responses","name":"responses","synopsis":"Package responses serves the OpenAI Responses API as a text-only endpoint.","isRedistributable":true},{"path":"github.com/Dongss/agent2api/internal/frontend/sse","name":"sse","synopsis":"Package sse encodes Server-Sent Events and pumps adapter events into them.","isRedistributable":true},{"path":"github.com/Dongss/agent2api/internal/gate","name":"gate","synopsis":"Package gate bounds how many agent CLI processes an adapter may have running at once.","isRedistributable":true},{"path":"github.com/Dongss/agent2api/internal/ir","name":"ir","synopsis":"Package ir defines the protocol-neutral internal representation that sits between API frontends (OpenAI, Anthropic) and agent CLI adapters.","isRedistributable":true},{"path":"github.com/Dongss/agent2api/internal/logging","name":"logging","synopsis":"Package logging builds the process logger from configuration.","isRedistributable":true},{"path":"github.com/Dongss/agent2api/internal/prompt","name":"prompt","synopsis":"Package prompt renders a conversation into the single prompt string an agent CLI accepts.","isRedistributable":true},{"path":"github.com/Dongss/agent2api/internal/router","name":"router","synopsis":"Package router resolves the model name in a request to the adapter that serves it.","isRedistributable":true},{"path":"github.com/Dongss/agent2api/internal/runner","name":"runner","synopsis":"Package runner owns agent CLI subprocess lifecycle: spawning, streaming stdout line by line, capturing a bounded stderr tail, enforcing idle and absolute deadlines, and making sure nothing outlives the request.","isRedistributable":true},{"path":"github.com/Dongss/agent2api/internal/selfupdate","name":"selfupdate","synopsis":"Package selfupdate replaces the running agent2api binary with the latest published release.","isRedistributable":true},{"path":"github.com/Dongss/agent2api/internal/server","name":"server","synopsis":"Package server wires configuration into a running HTTP gateway: it builds the adapters, the router and the API frontends, and owns the listener.","isRedistributable":true},{"path":"github.com/Dongss/agent2api/internal/version","name":"version","synopsis":"Package version reports the build's identity.","isRedistributable":true}],"total":23}}
