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
↓ 1 callers
Function
yamlChildIndent
(lines: string[], start: number, end: number)
packages/cli/src/index.ts:14801
↓ 1 callers
Function
yamlMappingChildren
(lines: string[], start: number, end: number)
packages/cli/src/index.ts:14668
↓ 1 callers
Function
yamlParentLine
(line []byte)
engine/compressors/config.go:202
Method
Act
(_ context.Context, req ActionRequest, target Target)
browse/session_test.go:40
Method
Act
(context.Context, browse.ActionRequest, browse.Target)
browse/cmd/caveman-browse/main.go:506
Method
Act
(_ context.Context, _ browse.ActionRequest, _ browse.Target)
mcp/codemode/stdio_js_builtin_test.go:794
Method
AfterFunc
(d time.Duration, f func())
proxy/internal/gateway/cache_warm.go:84
Method
AfterFunc
(d time.Duration, f func())
proxy/internal/gateway/cache_warm_test.go:50
Function
Apply
Apply executes a plan. For ActionResize it returns the downscaled image (PNG, deterministic). For ActionDetailLow it returns the original bytes unchan
engine/image/image.go:157
Method
ApplyProviderNativeTransforms
(ctx context.Context, body BodyReader, meta RequestMetadata, transformPolicy TransformPolicy)
proxy/providers/adapter.go:816
Method
ApplyProviderNativeTransforms
ApplyProviderNativeTransforms is an unconditional byte-safe pass-through. Why it cannot transform: legacy generateContent explicit caching requires a
proxy/providers/gemini/explicit_cache.go:33
Method
ApplyProviderNativeTransforms
ApplyProviderNativeTransforms adds one Bedrock-native cache marker to the largest stable Anthropic Claude prefix on Bedrock Runtime. Caller-managed ma
proxy/providers/bedrock/cache_points.go:42
Method
ApplyProviderNativeTransforms
ApplyProviderNativeTransforms applies at most one enabled Anthropic caching strategy. OptimizerID places an explicit breakpoint on the last non-deferr
proxy/providers/anthropic/cache_breakpoints.go:26
Method
ApplyProviderNativeTransforms
(ctx context.Context, body providers.BodyReader, meta providers.RequestMetadata, policy providers.TransformPol
proxy/providers/openaicompat/openaicompat.go:168
Method
ApplyProviderNativeTransforms
(ctx context.Context, body providers.BodyReader, meta providers.RequestMetadata, policy providers.TransformPol
proxy/providers/openaicompat/openaicompat.go:199
Method
ApplyProviderNativeTransforms
ApplyProviderNativeTransforms injects a top-level prompt_cache_key derived from the request's stable prefix (model + tools + leading system/instructio
proxy/providers/openai/cache_key.go:42
Method
ApplyProviderNativeTransforms
(ctx context.Context, body providers.BodyReader, meta providers.RequestMetadata, policy providers.TransformPol
proxy/providers/azureopenai/azureopenai.go:35
Method
ApplyProviderNativeTransforms
(ctx context.Context, body providers.BodyReader, meta providers.RequestMetadata, policy providers.TransformPol
proxy/providers/vertex/content_compress.go:91
Method
ApplyProviderNativeTransforms
(ctx context.Context, body providers.BodyReader, meta providers.RequestMetadata, policy providers.TransformPol
proxy/internal/gateway/server_test.go:25
Method
ApplyProviderNativeTransforms
(context.Context, providers.BodyReader, providers.RequestMetadata, providers.TransformPolicy)
proxy/internal/gateway/server_test.go:31
Method
Ask
Ask starts the decision for one request and returns the wait for it. The wait never outlasts routeBudget from the ask.
proxy/internal/cloudlink/link.go:540
Method
Ask
(_ context.Context, ask RouteAsk)
proxy/internal/gateway/route_test.go:75
Method
Authenticate
(context.Context, *http.Request)
proxy/internal/cloudlink/e2e_test.go:22
Method
Authenticate
(ctx context.Context, r *http.Request)
proxy/internal/standalone/standalone.go:72
Method
Authenticate
(context.Context, *http.Request)
proxy/internal/store/prefix_stability_e2e_test.go:50
Method
Authenticate
(ctx context.Context, r *http.Request)
proxy/internal/gateway/server_test.go:42
Method
Authenticate
(context.Context, *http.Request)
proxy/internal/gateway/middleware_ops_test.go:70
Method
Authenticate
(context.Context, *http.Request)
proxy/internal/gateway/models_metadata_route_test.go:39
Method
Authenticate
(_ context.Context, _ *http.Request)
proxy/internal/gateway/dedup_test.go:39
Method
AutoOffered
AutoOffered reports whether Auto is in the agents' pickers: signed in with the routing module on.
proxy/internal/cloudlink/link.go:576
Method
AutoOffered
()
proxy/internal/gateway/chatgpt_auto_test.go:29
Function
BenchmarkAskParts5MB
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
Function
BenchmarkDeepSchema
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
Function
BenchmarkElisionGateOnLargeDistinctPayload
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
Function
BenchmarkExtractCompressible
(b *testing.B)
proxy/providers/gemini/content_compress_test.go:110
Function
BenchmarkExtractCompressibleChat
(b *testing.B)
proxy/providers/openai/content_compress_test.go:268
Function
BenchmarkExtractCompressibleResponses
(b *testing.B)
proxy/providers/openai/content_compress_test.go:292
Function
BenchmarkExtractStabilizable
(b *testing.B)
proxy/providers/gemini/content_compress_test.go:122
Function
BenchmarkExtractStabilizableChat
(b *testing.B)
proxy/providers/openai/content_compress_test.go:280
Function
BenchmarkInspectRequest
BenchmarkInspectRequest is the request metadata read every request starts with.
proxy/internal/gateway/hotpath_bench_test.go:217
Function
BenchmarkMiddlewarePreparation
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
Function
BenchmarkNative
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
Function
BenchmarkParseUsageStream
BenchmarkParseUsageStream is the usage read of a finished Messages stream.
proxy/internal/gateway/hotpath_bench_test.go:235
Function
BenchmarkPayloadAdversarial4MiB
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
Function
BenchmarkPayloadTypicalRequest
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
Function
BenchmarkProviderPrefixEvidence
BenchmarkProviderPrefixEvidence is the frozen-prefix digest every request to an adapter with prefix evidence pays.
proxy/internal/gateway/hotpath_bench_test.go:198
Function
BenchmarkProxyHandler
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
Function
BenchmarkRecord
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
Function
BenchmarkRecordBatch
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
Function
BenchmarkRequestAccounting
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
Function
BenchmarkRouteEffort5MB
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
Function
BenchmarkServeRecordMode
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
Function
BenchmarkTransformCOGS
(b *testing.B)
proxy/providers/anthropic/cogs_bench_test.go:85
Function
BenchmarkTranslate
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
Method
BuildLearnSimulation
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
Method
CachedPrefixComponents
CachedPrefixComponents splits a direct Gemini generateContent request into `[systemInstruction, tools, content_0, ...]`, aligning with Vertex Gemini a
proxy/providers/gemini/gemini.go:117
Method
CachedPrefixComponents
CachedPrefixComponents splits a Bedrock Claude request into the components Bedrock's prompt cache keys on (system, tools/toolConfig, then each message
proxy/providers/bedrock/cache_points.go:512
Method
CachedPrefixComponents
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
Method
CachedPrefixComponents
(body []byte, meta providers.RequestMetadata)
proxy/providers/openaicompat/openaicompat.go:176
Method
CachedPrefixComponents
CachedPrefixComponents mirrors Anthropic's marker-stripped prefix view on Anthropic-dialect compat mounts (so rolling frontier breakpoints never read
proxy/providers/openaicompat/openaicompat.go:225
Method
CachedPrefixComponents
(body []byte, meta providers.RequestMetadata)
proxy/providers/azureopenai/azureopenai.go:43
Method
CachedPrefixComponents
CachedPrefixComponents splits a Vertex request into the components its upstream prompt cache keys on. Both Anthropic Claude and Google Gemini families
proxy/providers/vertex/content_compress.go:80
Method
CallTool
(context.Context, string, map[string]any)
mcp/codemode/stdio_js_builtin_test.go:944
Method
CallTool
(ctx context.Context, name string, args map[string]any)
mcp/codemode/http_upstream.go:198
Method
CallTool
(ctx context.Context, name string, args map[string]any)
mcp/codemode/http_upstream.go:281
Method
CallTool
CallTool invokes tools/call on the downstream MCP server and normalizes the MCP content response into structured JSON (when the text payload is JSON)
mcp/codemode/stdio_upstream.go:221
Method
CallTool
(ctx context.Context, name string, args map[string]any)
mcp/codemode/codemode.go:180
Method
Choices
(scope string, ids []string)
proxy/internal/store/middleware_postgres.go:435
Method
Choices
Choices looks each id up in turn: SQLite runs in process, so a lookup costs no round trip.
proxy/internal/store/middleware.go:639
Method
Close
Close is a no-op.
engine/ccr/store_wasm.go:46
Method
Close
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
Method
Close
()
proxy/internal/store/middleware_postgres.go:62
Method
Close
()
proxy/internal/gateway/compress_test.go:99
Method
Close
()
proxy/cmd/caveman-proxy/main.go:1330
Method
Close
()
browse/session_test.go:56
Method
Close
()
browse/cmd/caveman-browse/main.go:510
Method
Close
()
mcp/codemode/stdio_js_builtin_test.go:800
Method
Close
()
mcp/codemode/http_upstream.go:205
Method
Close
()
mcp/codemode/http_upstream.go:301
Method
Close
()
shared/platform/kms/kms_test.go:373
Method
Complete
(_ context.Context, req ModelRequest)
engine/evals/quality.go:62
Method
Complete
(_ context.Context, req ModelRequest)
engine/evals/quality.go:337
Method
Complete
(context.Context, evals.ModelRequest)
engine/evals/harness_test.go:321
Method
Compress
(in []byte)
engine/simulate_test.go:18
Method
Compress
(input []byte)
engine/compressors/axtree.go:35
Method
Compress
(input []byte)
engine/compressors/tabular.go:72
Method
Compress
(input []byte)
engine/compressors/html.go:43
Method
Compress
(input []byte)
engine/compressors/repetition.go:43
Method
Compress
(input []byte)
engine/compressors/diff.go:29
Method
Compress
(input []byte)
engine/compressors/text.go:39
Method
Compress
(input []byte)
engine/compressors/json_strategy.go:30
Method
Compress
(input []byte)
engine/compressors/toolschema.go:91
Method
Compress
(input []byte)
engine/compressors/searchresult.go:37
Method
Compress
(input []byte)
engine/compressors/code_nocgo.go:33
Method
Compress
(input []byte)
engine/compressors/code_cgo.go:68
Method
Compress
(input []byte)
engine/compressors/testreport.go:26
Method
Compress
(input []byte)
engine/compressors/log.go:81
Method
Compress
(input []byte)
engine/compressors/config.go:46
Method
Compress
(input []byte)
engine/compressors/terminal.go:58
Method
Compress
(input []byte)
engine/compressors/toolschema_annotations.go:419
← previous
next →
8,201–8,300 of 12,853, ranked by callers