Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JuliusBrussee/caveman
/ functions
Functions
12,853 in github.com/JuliusBrussee/caveman
⨍
Functions
12,853
◇
Types & classes
1,364
↳
Endpoints
5
Method
Originals
Originals takes the authority's lock in a write transaction: SaveOriginals decides on what it returns.
proxy/internal/store/middleware_postgres.go:690
Method
ParseCountTokens
(response []byte)
proxy/providers/gemini/count_tokens.go:26
Method
ParseCountTokens
(response []byte)
proxy/providers/bedrock/count_tokens.go:21
Method
ParseCountTokens
(response []byte)
proxy/providers/anthropic/count_tokens.go:26
Method
ParseCountTokens
(response []byte)
proxy/providers/openai/count_tokens.go:40
Method
ParseUsage
(ctx context.Context, responseHeaders http.Header, streamOrBody io.Reader)
proxy/providers/adapter.go:827
Method
ParseUsage
ParseUsage extracts token usage from a Bedrock response. Bedrock reports usage in two shapes depending on the operation: - Converse / ConverseStream:
proxy/providers/bedrock/usage.go:33
Method
Persistent
Persistent is false for the browser's in-memory store.
engine/ccr/store_wasm.go:49
Method
Persistent
Persistent distinguishes durable exact recovery from an in-memory test store.
engine/ccr/store_sqlite.go:128
Method
Persistent
()
proxy/internal/store/middleware_postgres.go:63
Method
Persistent
Persistent reports whether this store retains middleware choices on restart.
proxy/internal/store/store.go:427
Method
Plan
(scope, id, digest string, now int64)
proxy/internal/store/middleware_postgres.go:413
Method
Plan
(scope, id, digest string, now int64)
proxy/internal/store/middleware.go:608
Method
PlanCacheBreakpoints
PlanCacheBreakpoints places Bedrock prompt-cache checkpoints on Anthropic Claude requests (Converse `cachePoint` and InvokeModel `cache_control`) with
proxy/providers/bedrock/cache_points.go:320
Method
PlanCacheBreakpoints
PlanCacheBreakpoints places Anthropic prompt-cache breakpoints on the upstream request. cache_control is provider metadata the model never sees, so th
proxy/providers/anthropic/breakpoint_plan.go:64
Method
PlanCacheBreakpoints
(body []byte, meta providers.RequestMetadata, payg bool)
proxy/providers/openaicompat/openaicompat.go:172
Method
PlanCacheBreakpoints
(body []byte, meta providers.RequestMetadata, payg bool)
proxy/providers/openaicompat/openaicompat.go:206
Method
PlanCacheBreakpoints
PlanCacheBreakpoints sets a per-session prompt_cache_key. OpenAI 5.6+ dropped the fallback to the longest unmarked prefix, so cache routing is load-b
proxy/providers/openai/session_cache_key.go:48
Method
PlanCacheBreakpoints
(body []byte, meta providers.RequestMetadata, payg bool)
proxy/providers/azureopenai/azureopenai.go:39
Method
PlanCacheBreakpoints
(body []byte, meta providers.RequestMetadata, payg bool)
proxy/providers/vertex/content_compress.go:98
Method
Put
(rec Recovery)
engine/ccr/store_generation.go:213
Method
PutObject
(obj Object)
engine/ccr/store_generation.go:225
Method
Read
(p []byte)
proxy/internal/translate/wire_gaps_test.go:1124
Method
Read
(p []byte)
proxy/internal/gateway/chatgpt_auto.go:504
Method
Read
(p []byte)
proxy/internal/gateway/route_test.go:435
Method
Read
([]byte)
proxy/internal/gateway/compress_test.go:95
Method
Read
(p []byte)
proxy/internal/gateway/chatgpt.go:734
Method
Read
(p []byte)
proxy/internal/gateway/chatgpt_test.go:633
Function
ReadEmbeddedFixture
ReadEmbeddedFixture reads one built-in fixture file.
engine/evals/harness.go:174
Method
ReadMiddleware
(ctx context.Context, fn func(*store.MiddlewareTx) error)
proxy/internal/middleware/hardening_test.go:324
Method
ReadMiddleware
(ctx context.Context, fn func(*MiddlewareTx) error)
proxy/internal/store/middleware_postgres.go:276
Method
ReadMiddleware
ReadMiddleware takes a consistent snapshot without reserving SQLite's writer. Callers must recheck every decision under WithMiddleware before publishi
proxy/internal/store/middleware.go:480
Method
Ready
(context.Context)
proxy/cmd/caveman-proxy/main.go:461
Method
Receipt
(authority, id, digest string, body []byte, expires int64)
proxy/internal/store/middleware_postgres.go:670
Method
Receipt
(authority, id, digest string, body []byte, expires int64)
proxy/internal/store/middleware.go:899
Method
Record
(gateway.RequestRecord)
proxy/internal/cloudlink/e2e_test.go:38
Method
Record
(rec gateway.RequestRecord)
proxy/internal/standalone/standalone_test.go:692
Method
Record
(record gateway.RequestRecord)
proxy/internal/standalone/provider_stream_test.go:23
Method
Record
(r gateway.RequestRecord)
proxy/internal/standalone/e2e_cost_bench_test.go:971
Method
Record
(gateway.RequestRecord)
proxy/internal/store/prefix_stability_e2e_test.go:62
Method
Record
(rec RequestRecord)
proxy/internal/gateway/server_test.go:63
Method
Record
(RequestRecord)
proxy/internal/gateway/hotpath_bench_test.go:124
Method
Record
(row RequestRecord)
proxy/internal/gateway/recorder_test.go:162
Method
RecordBatch
RecordBatch persists rows in one transaction (gateway.BatchSink): the rows Record would write, with one commit. If the transaction cannot be used, eac
proxy/internal/store/store.go:504
Method
RecordPayload
RecordPayload stores raw request payloads only for explicit trial labels. The database file is chmod 0600 by Open; payloads are never included in repo
proxy/internal/store/trial_store.go:43
Method
RefusesAll
RefusesAll reports that the provider routes refuse every request, so the listener serves the middleware only (see gateway /health/ready).
proxy/internal/standalone/standalone.go:66
Method
Reload
(bool)
proxy/internal/standalone/principal_sources_test.go:168
Method
RememberReplacement
RememberReplacement durably records original→replacement and returns the authoritative bytes for that original. Storage is first-write-wins: if anothe
proxy/internal/store/prefix_cache.go:65
Method
RememberReplacement
(scope string, original, replacement []byte, handle string)
proxy/internal/gateway/dedup_test.go:84
Method
RememberReplacement
(scope string, original, replacement []byte, handle string)
proxy/internal/gateway/prefix_stability_test.go:65
Method
Renew
Renew is SQLite's, plus length(manifest)>0: a scope the sweep purged while this replica's clock still called it live stays purged.
proxy/internal/store/middleware_postgres.go:480
Method
Renew
Renew slides every live scope of an authority to now+retention, never past created_at+maxRetention. Scopes with no created_at (written by an older run
proxy/internal/store/middleware.go:685
Method
Resolve
(string, *http.Request)
proxy/internal/cloudlink/e2e_test.go:28
Method
Resolve
(string, *http.Request)
proxy/internal/store/prefix_stability_e2e_test.go:56
Method
Resolve
(string, *http.Request)
proxy/internal/store/prefix_stability_openai_e2e_test.go:48
Method
Resolve
(_ string, r *http.Request)
proxy/internal/gateway/route_test.go:225
Method
Resolve
(provider string, r *http.Request)
proxy/internal/gateway/server_test.go:48
Method
Resolve
(_ string, _ *http.Request)
proxy/internal/gateway/dedup_test.go:45
Method
Resolve
(provider string, r *http.Request)
proxy/internal/gateway/auth_fallback_test.go:22
Method
ResolveUpstreamURL
(ctx context.Context, req *http.Request, route RouteContext)
proxy/providers/adapter.go:594
Method
ResolveUpstreamURL
(ctx context.Context, req *http.Request, route providers.RouteContext)
proxy/providers/gemini/gemini.go:27
Method
ResolveUpstreamURL
ResolveUpstreamURL removes only the default public /compat mount before resolving the provider path. Named adapters and the reserved legacy routes kee
proxy/providers/openaicompat/openaicompat.go:58
Method
ResolveUpstreamURL
ResolveUpstreamURL intentionally ignores RouteContext.BaseURL. Named mounts are configured as independent static upstreams (`compat:` in standalone or
proxy/providers/openaicompat/openaicompat.go:515
Method
ResolveUpstreamURL
ResolveUpstreamURL validates either the legacy deployment route or the current Foundry Models v1 inference route before resolving upstream.
proxy/providers/azureopenai/azure_routing.go:31
Method
ResolveUpstreamURL
ResolveUpstreamURL validates the Vertex request shape (publisher + model on the allowlist), enforces SSRF/host constraints against the aiplatform endp
proxy/providers/vertex/routing.go:32
Method
ResolveUpstreamURL
(ctx context.Context, r *http.Request, route providers.RouteContext)
proxy/internal/gateway/upstream_bounds_test.go:113
Function
Restrict
Restrict gives home an owner-only DACL (this user, SYSTEM, Administrators) when it grants anything to anyone else. Windows ignores the 0700 the direct
proxy/internal/securehome/securehome_windows.go:25
Method
Retrieve
(string)
mcp/engine_tools_retrieve_test.go:120
Method
Retrieve
(string)
mcp/engine_tools_retrieve_test.go:145
Method
Retrieve
(h string)
mcp/server_test.go:99
Method
RetrieveOriginal
RetrieveOriginal serves the server-side retrieve loop of the PAYG path; the harness never makes the model call it.
proxy/internal/gateway/cache_prefix_invariant_test.go:345
Method
RetrieveOriginal
(handle, query string)
proxy/internal/gateway/compress_test.go:65
Method
RetrieveOriginal
(handle, query string)
proxy/internal/gateway/live_zone_test.go:95
Method
RetrieveQuery
RetrieveQuery recovers the content behind a CCR handle, narrowed to the sections most relevant to query (BM25-rank the stored content's sections, keep
engine/retrieve_query.go:37
Method
RetrieveQuery
(handle, query string)
mcp/engine_tools_retrieve_test.go:31
Method
RetrieveQuery
(string, string)
mcp/engine_tools_retrieve_test.go:123
Method
RetrieveQuery
(string, string)
mcp/engine_tools_retrieve_test.go:148
Method
RetrieveQuery
(h, _ string)
mcp/server_test.go:100
Method
Revoke
Revoke is SQLite's, under the authority's lock.
proxy/internal/store/middleware_postgres.go:488
Method
Revoke
Revoke keeps bounded metadata tombstones: old markers still return a typed revoked result, and no epoch silently resumes old grants. expires_at<=0 rec
proxy/internal/store/middleware.go:725
Method
Revoked
Revoked takes the authority's lock first, so a delete cannot commit between this answer and the scope a writer then creates.
proxy/internal/store/middleware_postgres.go:405
Method
Revoked
(authority string)
proxy/internal/store/middleware.go:603
Method
RoundTrip
(r *http.Request)
proxy/internal/cloudlink/live_cache_test.go:52
Method
RoundTrip
(r *http.Request)
proxy/internal/standalone/standalone_test.go:36
Method
RoundTrip
(r *http.Request)
proxy/internal/standalone/hotpath_bench_test.go:20
Method
RoundTrip
(r *http.Request)
proxy/internal/standalone/golden_rows_test.go:96
Method
RoundTrip
(r *http.Request)
proxy/internal/standalone/e2e_cost_bench_test.go:98
Method
RoundTrip
(r *http.Request)
proxy/internal/store/prefix_stability_e2e_test.go:34
Method
RoundTrip
(r *http.Request)
proxy/internal/store/prefix_stability_openai_e2e_test.go:33
Method
RoundTrip
(*http.Request)
proxy/internal/pool/pool_test.go:248
Method
RoundTrip
(r *http.Request)
proxy/internal/gateway/cache_prefix_invariant_test.go:376
Method
RoundTrip
(r *http.Request)
proxy/internal/gateway/local_turn_effort_test.go:356
Method
RoundTrip
(r *http.Request)
proxy/internal/gateway/dedup_test.go:51
Method
RoundTrip
(r *http.Request)
mcp/codemode/stdio_js_builtin_test.go:660
Method
RoundTrip
(r *http.Request)
shared/platform/kms/kms_test.go:368
Method
RoundTrip
(*http.Request)
shared/platform/ssrf/ssrf.go:571
Method
RoundTrip
(r *http.Request)
shared/platform/awscreds/awscreds_test.go:54
Function
RunWithQuality
RunWithQuality replays the embedded fixture set and also sends baseline and compressed prompts through a model runner before grading the answers.
engine/evals/harness.go:149
Method
SafetyClass
()
engine/simulate_test.go:17
Method
SafetyClass
()
engine/compressors/axtree.go:33
← previous
next →
8,501–8,600 of 12,853, ranked by callers