{"modulePath":"github.com/Rethinger/2papi","version":"v0.4.0","isStandardLibrary":false,"packages":{"items":[{"path":"github.com/Rethinger/2papi/cmd/gateway","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/adapter","name":"adapter","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/adapter/anthropic","name":"anthropic","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/adapter/codex","name":"codex","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/adapter/deepseek","name":"deepseek","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/adapter/gemini","name":"gemini","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/adapter/oauthrefresh","name":"oauthrefresh","synopsis":"Package oauthrefresh holds the generic OAuth token-refresh machinery shared by adapters that mint short-lived access tokens (anthropic): expiry checks, single-flight refresh, control-plane persistence with retry, and snapshot re-adoption on revision conflicts.","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/adapter/openai","name":"openai","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/adapter/thirdparty","name":"thirdparty","synopsis":"Package thirdparty hosts lightweight OpenAI-compatible provider adapters for subscription (OAuth/cookie) and free-tier accounts: Cursor, GitHub Copilot, Kimi, OpenCode Free, Felo, Qoder.","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/cache","name":"cache","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/compression","name":"compression","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/config","name":"config","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/controlplane","name":"controlplane","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/dashboard","name":"dashboard","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/edition","name":"edition","synopsis":"Package edition reports which product edition is running.","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/guardrails","name":"guardrails","synopsis":"Package guardrails implements request-content guardrails (G5): regex-PII detection (email/phone/card/API keys) and conservative prompt-injection heuristics.","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/hosts","name":"hosts","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/license","name":"license","synopsis":"Package license implements offline validation of signed 2papi licenses.","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/lite","name":"lite","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/mcp","name":"mcp","synopsis":"Package mcp implements the Model Context Protocol gateway (шаг хребта после 6): streamable-HTTP JSON-RPC passthrough to upstream MCP servers, fronted by virtual-key auth so budgets/RPM/concurrency apply to tool calls exactly like model traffic.","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/mdns","name":"mdns","synopsis":"Package mdns publishes a `2papi.local` service via mDNS/Bonjour so the gateway resolves on the LAN as a real `.local` name without touching /etc/hosts.","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/operations","name":"operations","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/plugin","name":"plugin","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/policy","name":"policy","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/protocol","name":"protocol","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/proxy","name":"proxy","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/proxylib","name":"proxylib","synopsis":"Package proxylib parses proxy lists in any practical format and turns entries into usable dialers/URLs.","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/quota","name":"quota","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/resilience","name":"resilience","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/router","name":"router","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/server","name":"server","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/telemetry","name":"telemetry","synopsis":"OTel GenAI emission (G3): when an OTLP endpoint is configured via env (OTEL_EXPORTER_OTLP_ENDPOINT / OTEL_EXPORTER_OTLP_TRACES_ENDPOINT), every gateway request is mirrored as a trace span with the minimal gen_ai.* attribute set (model, tokens, operation, status).","isRedistributable":true},{"path":"github.com/Rethinger/2papi/internal/tui","name":"tui","synopsis":"","isRedistributable":true},{"path":"github.com/Rethinger/2papi/test/fakeupstream","name":"main","synopsis":"","isRedistributable":true}],"total":34}}
