mirror of
https://github.com/JuliusBrussee/caveman.git
synced 2026-09-14 18:02:35 +08:00
d4ef06be1c
Removes ADR citations (decision records live in the private repo; links were broken here) while keeping every described invariant inline, and fixes generator headers / doc titles that leaked the private monorepo layout (public/cli, cloud/web). Comments and docs only — no behavior change. Claude-Session: https://claude.ai/code/session_01DLNTYJU8vMEdDWpV7e7k7Z Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
18 lines
995 B
Go
18 lines
995 B
Go
// Package proxy is the public, byte-safe Caveman reverse proxy: the `caveman`
|
|
// binary's standalone mode. It swaps a provider base URL for a local listener,
|
|
// applies the same byte-safe provider-native transforms as the managed gateway
|
|
// (record mode is always pass-through), and records truthful per-request spend
|
|
// to a local store labeled `inferred` — never `verified`.
|
|
//
|
|
// The request lifecycle and provider adapters live under this module:
|
|
// - providers/ the byte-safe adapter set (shared with the managed gateway)
|
|
// - internal/gateway/ the request loop, behind injected auth + telemetry
|
|
// - internal/config/ caveman.yaml + BYOK env-key resolution
|
|
// - internal/store/ the ~/.caveman/ SQLite spend store
|
|
// - cmd/caveman-proxy/ the standalone binary
|
|
package proxy
|
|
|
|
// DefaultListenAddr is where standalone mode binds by default; `caveman start`
|
|
// launches the proxy here and `caveman wrap` points agents at it.
|
|
const DefaultListenAddr = "127.0.0.1:8787"
|