MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,391 in github.com/JuliusBrussee/caveman

MethodAuthenticate
(context.Context, *http.Request)
proxy/internal/store/prefix_stability_e2e_test.go:50
MethodAuthenticate
(ctx context.Context, r *http.Request)
proxy/internal/gateway/server_test.go:42
MethodAuthenticate
(context.Context, *http.Request)
proxy/internal/gateway/middleware_ops_test.go:70
MethodAuthenticate
(context.Context, *http.Request)
proxy/internal/gateway/models_metadata_route_test.go:39
MethodAutoOffered
AutoOffered reports whether Auto is in the agents' pickers: signed in with the routing module on.
proxy/internal/cloudlink/link.go:576
MethodAutoOffered
()
proxy/internal/gateway/chatgpt_auto_test.go:29
FunctionBenchmarkAskParts5MB
The link's share of the per-request work on a 5 MB body (it runs while compression does, inside the 800 ms budget): parse, ask text, declared request.
proxy/internal/cloudlink/route_effort_test.go:253
FunctionBenchmarkDeepSchema
BenchmarkDeepSchema: a schema nested 3000 levels (a tool's may come from any MCP server) costs linear time, under 5 ms a request, in both walks.
proxy/internal/translate/bench_test.go:181
FunctionBenchmarkElisionGateOnLargeDistinctPayload
The gate runs on the proxy hot path, so its cost has to stay bounded on the worst realistic input: a large payload with no repetition at all, where ev
engine/compressors/redundancy_test.go:156
FunctionBenchmarkExtractCompressible
(b *testing.B)
proxy/providers/gemini/content_compress_test.go:110
FunctionBenchmarkExtractCompressibleChat
(b *testing.B)
proxy/providers/openai/content_compress_test.go:268
FunctionBenchmarkExtractCompressibleResponses
(b *testing.B)
proxy/providers/openai/content_compress_test.go:292
FunctionBenchmarkExtractStabilizable
(b *testing.B)
proxy/providers/gemini/content_compress_test.go:122
FunctionBenchmarkExtractStabilizableChat
(b *testing.B)
proxy/providers/openai/content_compress_test.go:280
FunctionBenchmarkInspectRequest
BenchmarkInspectRequest is the request metadata read every request starts with.
proxy/internal/gateway/hotpath_bench_test.go:217
FunctionBenchmarkMiddlewarePreparation
Profile the same 100 KiB log body as the local HTTP benchmark. These component timings diagnose work; only performance.mjs measures queueing and round
proxy/internal/middleware/benchmark_test.go:19
FunctionBenchmarkNative
BenchmarkNative is the harness path's hygiene on a body with nothing to strip (every request to Anthropic's, OpenAI's or a chat API): it must cost a s
proxy/internal/translate/bench_test.go:156
FunctionBenchmarkParseUsageStream
BenchmarkParseUsageStream is the usage read of a finished Messages stream.
proxy/internal/gateway/hotpath_bench_test.go:235
FunctionBenchmarkPayloadAdversarial4MiB
BenchmarkPayloadAdversarial4MiB owns the throughput regression signal. Run it after any pattern change and compare against a saved baseline with bench
shared/platform/redact/payload_test.go:400
FunctionBenchmarkPayloadTypicalRequest
BenchmarkPayloadTypicalRequest is the shape that actually runs in production: a JSON chat request with one email in it.
shared/platform/redact/payload_test.go:414
FunctionBenchmarkProviderPrefixEvidence
BenchmarkProviderPrefixEvidence is the frozen-prefix digest every request to an adapter with prefix evidence pays.
proxy/internal/gateway/hotpath_bench_test.go:198
FunctionBenchmarkProxyHandler
BenchmarkProxyHandler is one record-mode Messages request through the whole handler against an in-process upstream, wired as the binary ships (rows fi
proxy/internal/gateway/hotpath_bench_test.go:132
FunctionBenchmarkRecord
BenchmarkRecord is one request row into a file-backed store, one caller (serial) or eight at once (parallel, run with -cpu 8).
proxy/internal/store/record_batch_test.go:28
FunctionBenchmarkRecordBatch
BenchmarkRecordBatch is the async writer's insert: rows a few at a time, one transaction each, reported per row.
proxy/internal/store/record_batch_test.go:56
FunctionBenchmarkRequestAccounting
BenchmarkRequestAccounting is the request token count record() runs after the response: a pass-through request, so both sides are the same bytes.
proxy/internal/gateway/hotpath_bench_test.go:177
FunctionBenchmarkRouteEffort5MB
The route stage's per-request work on a 5 MB Claude Code-shaped body (messages first, output_config last) whose session replays two marks.
proxy/internal/gateway/route_effort_test.go:537
FunctionBenchmarkServeRecordMode
BenchmarkServeRecordMode is the shipped wiring end to end: record mode, real SQLite spend store, in-process upstream. c=1 is one caller; c=8 is eight
proxy/internal/standalone/hotpath_bench_test.go:51
FunctionBenchmarkTransformCOGS
(b *testing.B)
proxy/providers/anthropic/cogs_bench_test.go:85
FunctionBenchmarkTranslate
BenchmarkTranslate is Request plus Serve per direction and body size; the ms/100k-tok metric is the time scaled to a 100k-token body.
proxy/internal/translate/bench_test.go:122
MethodBuildLearnSimulation
BuildLearnSimulation evaluates only content observed in the selected scan window. It never invokes retro, projects future turns, or prices tokens.
proxy/internal/store/learn_simulate.go:34
MethodCachedPrefixComponents
CachedPrefixComponents is the adapter form of the package function; a token count is never cached, so it has no cached prefix.
proxy/providers/anthropic/content_compress.go:107
MethodChoices
(scope string, ids []string)
proxy/internal/store/middleware_postgres.go:435
MethodChoices
Choices looks each id up in turn: SQLite runs in process, so a lookup costs no round trip.
proxy/internal/store/middleware.go:639
MethodClose
Close is a no-op.
engine/ccr/store_wasm.go:46
MethodClose
Close releases a valid connection. A quarantined connection is deliberately retained until process exit: SQLite close could replay its obsolete journa
engine/ccr/store_generation.go:187
MethodClose
()
proxy/internal/store/middleware_postgres.go:62
MethodClose
()
proxy/internal/gateway/compress_test.go:99
MethodClose
()
proxy/cmd/caveman-proxy/main.go:1330
MethodClose
()
browse/session_test.go:56
MethodClose
()
browse/cmd/caveman-browse/main.go:510
MethodClose
()
shared/platform/kms/kms_test.go:373
MethodComplete
(_ context.Context, req ModelRequest)
engine/evals/quality.go:62
MethodComplete
(_ context.Context, req ModelRequest)
engine/evals/quality.go:337
MethodComplete
(context.Context, evals.ModelRequest)
engine/evals/harness_test.go:321
MethodCompress
(in []byte)
engine/simulate_test.go:18
MethodCompress
(input []byte)
engine/compressors/axtree.go:35
MethodCompress
(input []byte)
engine/compressors/tabular.go:72
MethodCompress
(input []byte)
engine/compressors/html.go:43
MethodCompress
(input []byte)
engine/compressors/repetition.go:43
MethodCompress
(input []byte)
engine/compressors/diff.go:29
MethodCompress
(input []byte)
engine/compressors/text.go:39
MethodCompress
(input []byte)
engine/compressors/json_strategy.go:30
MethodCompress
(input []byte)
engine/compressors/toolschema.go:91
MethodCompress
(input []byte)
engine/compressors/searchresult.go:36
MethodCompress
(input []byte)
engine/compressors/code_nocgo.go:33
MethodCompress
(input []byte)
engine/compressors/code_cgo.go:58
MethodCompress
(input []byte)
engine/compressors/testreport.go:26
MethodCompress
(input []byte)
engine/compressors/log.go:81
MethodCompress
(input []byte)
engine/compressors/config.go:46
MethodCompress
(input []byte)
engine/compressors/terminal.go:58
MethodCompress
(input []byte)
engine/compressors/toolschema_annotations.go:414
MethodCompress
Compress is the query-agnostic transform (identical to CompressQuery with an empty query).
engine/compressors/json.go:70
MethodCompress
([]byte, engine.Options)
mcp/engine_tools_retrieve_test.go:21
MethodCompress
(in []byte, o engine.Options)
mcp/server_test.go:96
MethodCompressQuery
(input []byte, query string)
engine/compressors/tabular.go:75
MethodCompressQuery
(input []byte, query string)
engine/compressors/text.go:43
MethodCompressQuery
(input []byte, query string)
engine/compressors/json_strategy.go:35
MethodCompressQuery
(input []byte, query string)
engine/compressors/searchresult.go:40
MethodCompressQuery
(input []byte, query string)
engine/compressors/log.go:85
MethodCompressQuery
(input []byte, query string)
engine/compressors/config.go:49
MethodCompressQuery
CompressQuery biases array selection toward elements relevant to query via the shared deterministic BM25. An empty query behaves exactly like Compress
engine/compressors/json.go:74
MethodCompressSegment
(segment []byte)
proxy/internal/standalone/standalone.go:434
MethodCompressSegment
([]byte)
proxy/internal/standalone/provider_routes_test.go:16
MethodCompressSegment
(seg []byte)
proxy/internal/store/prefix_stability_e2e_test.go:73
MethodCompressSegment
(seg []byte)
proxy/internal/store/prefix_stability_e2e_test.go:167
MethodCompressSegment
(seg []byte)
proxy/internal/store/prefix_stability_openai_e2e_test.go:57
MethodCompressSegment
(seg []byte)
proxy/internal/gateway/cache_prefix_invariant_test.go:316
MethodCompressSegment
(seg []byte)
proxy/internal/gateway/cache_prefix_invariant_test.go:1381
MethodCompressSegment
(seg []byte)
proxy/internal/gateway/pixel_test.go:26
MethodCompressSegment
(seg []byte)
proxy/internal/gateway/compress_test.go:83
MethodCompressSegment
(segment []byte)
proxy/internal/gateway/chatgpt_test.go:25
MethodCompressSegment
(seg []byte)
proxy/internal/gateway/estimate_test.go:24
MethodCompressSegment
(seg []byte)
proxy/internal/gateway/live_zone_test.go:62
MethodCompressSegment
(seg []byte)
proxy/internal/gateway/prefix_stability_test.go:103
MethodCompressSegment
(seg []byte)
proxy/internal/gateway/prefix_stability_test.go:544
MethodCompressSegment
(seg []byte)
proxy/internal/gateway/toolschema_strip_test.go:62
MethodCompressSegment
(seg []byte)
proxy/internal/gateway/toolschema_strip_test.go:86
MethodCompressSegmentQuery
CompressSegmentQuery runs the same engine path with latest-user relevance context. Only query-aware compressors consume it; every other content type k
proxy/internal/standalone/standalone.go:455
MethodCompressSegmentQuery
(segment []byte, query string)
proxy/internal/gateway/chatgpt_test.go:33
MethodCompressSegmentQuery
(segment []byte, query string)
proxy/internal/gateway/compression_query_test.go:91
MethodCompressSegmentType
(segment []byte, contentType string)
proxy/internal/standalone/standalone.go:443
MethodCompressSegmentType
(seg []byte, contentType string)
proxy/internal/gateway/compress_test.go:48
MethodCompressWithMetadata
(input []byte, _ string)
engine/compressors/toon.go:26
MethodCompressWithMetadata
(input []byte, query string)
engine/compressors/json.go:78
MethodContentType
()
engine/simulate_test.go:16
MethodContentType
()
engine/compressors/axtree.go:32
MethodContentType
()
engine/compressors/tabular.go:70
MethodContentType
()
engine/compressors/html.go:40
MethodContentType
()
engine/compressors/repetition.go:40
MethodContentType
()
engine/compressors/diff.go:26
← previousnext →7,901–8,000 of 12,391, ranked by callers