MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

MethodOriginals
Originals takes the authority's lock in a write transaction: SaveOriginals decides on what it returns.
proxy/internal/store/middleware_postgres.go:690
MethodParseCountTokens
(response []byte)
proxy/providers/gemini/count_tokens.go:26
MethodParseCountTokens
(response []byte)
proxy/providers/bedrock/count_tokens.go:21
MethodParseCountTokens
(response []byte)
proxy/providers/anthropic/count_tokens.go:26
MethodParseCountTokens
(response []byte)
proxy/providers/openai/count_tokens.go:40
MethodParseUsage
(ctx context.Context, responseHeaders http.Header, streamOrBody io.Reader)
proxy/providers/adapter.go:827
MethodParseUsage
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
MethodPersistent
Persistent is false for the browser's in-memory store.
engine/ccr/store_wasm.go:49
MethodPersistent
Persistent distinguishes durable exact recovery from an in-memory test store.
engine/ccr/store_sqlite.go:128
MethodPersistent
()
proxy/internal/store/middleware_postgres.go:63
MethodPersistent
Persistent reports whether this store retains middleware choices on restart.
proxy/internal/store/store.go:427
MethodPlan
(scope, id, digest string, now int64)
proxy/internal/store/middleware_postgres.go:413
MethodPlan
(scope, id, digest string, now int64)
proxy/internal/store/middleware.go:608
MethodPlanCacheBreakpoints
PlanCacheBreakpoints places Bedrock prompt-cache checkpoints on Anthropic Claude requests (Converse `cachePoint` and InvokeModel `cache_control`) with
proxy/providers/bedrock/cache_points.go:320
MethodPlanCacheBreakpoints
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
MethodPlanCacheBreakpoints
(body []byte, meta providers.RequestMetadata, payg bool)
proxy/providers/openaicompat/openaicompat.go:172
MethodPlanCacheBreakpoints
(body []byte, meta providers.RequestMetadata, payg bool)
proxy/providers/openaicompat/openaicompat.go:206
MethodPlanCacheBreakpoints
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
MethodPlanCacheBreakpoints
(body []byte, meta providers.RequestMetadata, payg bool)
proxy/providers/azureopenai/azureopenai.go:39
MethodPlanCacheBreakpoints
(body []byte, meta providers.RequestMetadata, payg bool)
proxy/providers/vertex/content_compress.go:98
MethodPut
(rec Recovery)
engine/ccr/store_generation.go:213
MethodPutObject
(obj Object)
engine/ccr/store_generation.go:225
MethodRead
(p []byte)
proxy/internal/translate/wire_gaps_test.go:1124
MethodRead
(p []byte)
proxy/internal/gateway/chatgpt_auto.go:504
MethodRead
(p []byte)
proxy/internal/gateway/route_test.go:435
MethodRead
([]byte)
proxy/internal/gateway/compress_test.go:95
MethodRead
(p []byte)
proxy/internal/gateway/chatgpt.go:734
MethodRead
(p []byte)
proxy/internal/gateway/chatgpt_test.go:633
FunctionReadEmbeddedFixture
ReadEmbeddedFixture reads one built-in fixture file.
engine/evals/harness.go:174
MethodReadMiddleware
(ctx context.Context, fn func(*store.MiddlewareTx) error)
proxy/internal/middleware/hardening_test.go:324
MethodReadMiddleware
(ctx context.Context, fn func(*MiddlewareTx) error)
proxy/internal/store/middleware_postgres.go:276
MethodReadMiddleware
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
MethodReady
(context.Context)
proxy/cmd/caveman-proxy/main.go:461
MethodReceipt
(authority, id, digest string, body []byte, expires int64)
proxy/internal/store/middleware_postgres.go:670
MethodReceipt
(authority, id, digest string, body []byte, expires int64)
proxy/internal/store/middleware.go:899
MethodRecord
(gateway.RequestRecord)
proxy/internal/cloudlink/e2e_test.go:38
MethodRecord
(rec gateway.RequestRecord)
proxy/internal/standalone/standalone_test.go:692
MethodRecord
(record gateway.RequestRecord)
proxy/internal/standalone/provider_stream_test.go:23
MethodRecord
(r gateway.RequestRecord)
proxy/internal/standalone/e2e_cost_bench_test.go:971
MethodRecord
(gateway.RequestRecord)
proxy/internal/store/prefix_stability_e2e_test.go:62
MethodRecord
(rec RequestRecord)
proxy/internal/gateway/server_test.go:63
MethodRecord
(RequestRecord)
proxy/internal/gateway/hotpath_bench_test.go:124
MethodRecord
(row RequestRecord)
proxy/internal/gateway/recorder_test.go:162
MethodRecordBatch
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
MethodRecordPayload
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
MethodRefusesAll
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
MethodReload
(bool)
proxy/internal/standalone/principal_sources_test.go:168
MethodRememberReplacement
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
MethodRememberReplacement
(scope string, original, replacement []byte, handle string)
proxy/internal/gateway/dedup_test.go:84
MethodRememberReplacement
(scope string, original, replacement []byte, handle string)
proxy/internal/gateway/prefix_stability_test.go:65
MethodRenew
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
MethodRenew
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
MethodResolve
(string, *http.Request)
proxy/internal/cloudlink/e2e_test.go:28
MethodResolve
(string, *http.Request)
proxy/internal/store/prefix_stability_e2e_test.go:56
MethodResolve
(string, *http.Request)
proxy/internal/store/prefix_stability_openai_e2e_test.go:48
MethodResolve
(_ string, r *http.Request)
proxy/internal/gateway/route_test.go:225
MethodResolve
(provider string, r *http.Request)
proxy/internal/gateway/server_test.go:48
MethodResolve
(_ string, _ *http.Request)
proxy/internal/gateway/dedup_test.go:45
MethodResolve
(provider string, r *http.Request)
proxy/internal/gateway/auth_fallback_test.go:22
MethodResolveUpstreamURL
(ctx context.Context, req *http.Request, route RouteContext)
proxy/providers/adapter.go:594
MethodResolveUpstreamURL
(ctx context.Context, req *http.Request, route providers.RouteContext)
proxy/providers/gemini/gemini.go:27
MethodResolveUpstreamURL
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
MethodResolveUpstreamURL
ResolveUpstreamURL intentionally ignores RouteContext.BaseURL. Named mounts are configured as independent static upstreams (`compat:` in standalone or
proxy/providers/openaicompat/openaicompat.go:515
MethodResolveUpstreamURL
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
MethodResolveUpstreamURL
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
MethodResolveUpstreamURL
(ctx context.Context, r *http.Request, route providers.RouteContext)
proxy/internal/gateway/upstream_bounds_test.go:113
FunctionRestrict
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
MethodRetrieve
(string)
mcp/engine_tools_retrieve_test.go:120
MethodRetrieve
(string)
mcp/engine_tools_retrieve_test.go:145
MethodRetrieve
(h string)
mcp/server_test.go:99
MethodRetrieveOriginal
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
MethodRetrieveOriginal
(handle, query string)
proxy/internal/gateway/compress_test.go:65
MethodRetrieveOriginal
(handle, query string)
proxy/internal/gateway/live_zone_test.go:95
MethodRetrieveQuery
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
MethodRetrieveQuery
(handle, query string)
mcp/engine_tools_retrieve_test.go:31
MethodRetrieveQuery
(string, string)
mcp/engine_tools_retrieve_test.go:123
MethodRetrieveQuery
(string, string)
mcp/engine_tools_retrieve_test.go:148
MethodRetrieveQuery
(h, _ string)
mcp/server_test.go:100
MethodRevoke
Revoke is SQLite's, under the authority's lock.
proxy/internal/store/middleware_postgres.go:488
MethodRevoke
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
MethodRevoked
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
MethodRevoked
(authority string)
proxy/internal/store/middleware.go:603
MethodRoundTrip
(r *http.Request)
proxy/internal/cloudlink/live_cache_test.go:52
MethodRoundTrip
(r *http.Request)
proxy/internal/standalone/standalone_test.go:36
MethodRoundTrip
(r *http.Request)
proxy/internal/standalone/hotpath_bench_test.go:20
MethodRoundTrip
(r *http.Request)
proxy/internal/standalone/golden_rows_test.go:96
MethodRoundTrip
(r *http.Request)
proxy/internal/standalone/e2e_cost_bench_test.go:98
MethodRoundTrip
(r *http.Request)
proxy/internal/store/prefix_stability_e2e_test.go:34
MethodRoundTrip
(r *http.Request)
proxy/internal/store/prefix_stability_openai_e2e_test.go:33
MethodRoundTrip
(*http.Request)
proxy/internal/pool/pool_test.go:248
MethodRoundTrip
(r *http.Request)
proxy/internal/gateway/cache_prefix_invariant_test.go:376
MethodRoundTrip
(r *http.Request)
proxy/internal/gateway/local_turn_effort_test.go:356
MethodRoundTrip
(r *http.Request)
proxy/internal/gateway/dedup_test.go:51
MethodRoundTrip
(r *http.Request)
mcp/codemode/stdio_js_builtin_test.go:660
MethodRoundTrip
(r *http.Request)
shared/platform/kms/kms_test.go:368
MethodRoundTrip
(*http.Request)
shared/platform/ssrf/ssrf.go:571
MethodRoundTrip
(r *http.Request)
shared/platform/awscreds/awscreds_test.go:54
FunctionRunWithQuality
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
MethodSafetyClass
()
engine/simulate_test.go:17
MethodSafetyClass
()
engine/compressors/axtree.go:33
← previousnext →8,501–8,600 of 12,853, ranked by callers