Directories
¶
| Path | Synopsis |
|---|---|
|
oauthrefresh
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.
|
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. |
|
thirdparty
Package thirdparty hosts lightweight OpenAI-compatible provider adapters for subscription (OAuth/cookie) and free-tier accounts: Cursor, GitHub Copilot, Kimi, OpenCode Free, Felo, Qoder.
|
Package thirdparty hosts lightweight OpenAI-compatible provider adapters for subscription (OAuth/cookie) and free-tier accounts: Cursor, GitHub Copilot, Kimi, OpenCode Free, Felo, Qoder. |
|
Package edition reports which product edition is running.
|
Package edition reports which product edition is running. |
|
Package guardrails implements request-content guardrails (G5): regex-PII detection (email/phone/card/API keys) and conservative prompt-injection heuristics.
|
Package guardrails implements request-content guardrails (G5): regex-PII detection (email/phone/card/API keys) and conservative prompt-injection heuristics. |
|
Package license implements offline validation of signed 2papi licenses.
|
Package license implements offline validation of signed 2papi licenses. |
|
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.
|
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. |
|
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.
|
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. |
|
Package proxylib parses proxy lists in any practical format and turns entries into usable dialers/URLs.
|
Package proxylib parses proxy lists in any practical format and turns entries into usable dialers/URLs. |
|
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).
|
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). |
Click to show internal directories.
Click to hide internal directories.