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
SafetyClass
()
engine/compressors/tabular.go:71
Method
SafetyClass
()
engine/compressors/html.go:41
Method
SafetyClass
()
engine/compressors/repetition.go:41
Method
SafetyClass
()
engine/compressors/diff.go:27
Method
SafetyClass
()
engine/compressors/text.go:37
Method
SafetyClass
()
engine/compressors/json_strategy.go:29
Method
SafetyClass
()
engine/compressors/toon.go:16
Method
SafetyClass
()
engine/compressors/toolschema.go:89
Method
SafetyClass
()
engine/compressors/searchresult.go:35
Method
SafetyClass
()
engine/compressors/code_nocgo.go:31
Method
SafetyClass
()
engine/compressors/code_cgo.go:56
Method
SafetyClass
()
engine/compressors/testreport.go:24
Method
SafetyClass
()
engine/compressors/log.go:79
Method
SafetyClass
()
engine/compressors/config.go:45
Method
SafetyClass
()
engine/compressors/terminal.go:56
Method
SafetyClass
()
engine/compressors/toolschema_annotations.go:417
Method
SafetyClass
()
engine/compressors/json.go:66
Method
SanitizeAndMapHeaders
(ctx context.Context, req *http.Request, credential providers.Credential, upstream *url.URL)
proxy/providers/gemini/gemini.go:44
Method
SanitizeAndMapHeaders
SanitizeAndMapHeaders builds the upstream header set for Bedrock Runtime or Mantle. Bedrock API keys use a bearer on Runtime and x-api-key on Mantle.
proxy/providers/bedrock/signing.go:29
Method
SanitizeAndMapHeaders
SanitizeAndMapHeaders puts the credential in the header that the wire protocol of the request expects. A named mount can serve two protocols from one
proxy/providers/openaicompat/openaicompat.go:303
Method
SanitizeAndMapHeaders
(ctx context.Context, req *http.Request, credential providers.Credential, upstream *url.URL)
proxy/providers/vertex/vertex.go:40
Method
SaveChoices
(scope string, choices []MiddlewareChoice)
proxy/internal/store/middleware_postgres.go:455
Method
SaveChoices
SaveChoices publishes immutable choices. Handle is a CCR handle only for choices an older runtime made; this runtime's choices store their original in
proxy/internal/store/middleware.go:659
Method
SavePlan
(scope, id, digest string, body []byte, now, expires int64)
proxy/internal/store/middleware_postgres.go:423
Method
SavePlan
SavePlan records an idempotent replay. Plans carry their own expiry: a scope renewed on every call would otherwise keep one row per call until it laps
proxy/internal/store/middleware.go:620
Method
SaveScope
(s MiddlewareScope)
proxy/internal/store/middleware_postgres.go:392
Method
SaveScope
SaveScope inserts or advances a scope. created_at is set once, at insert.
proxy/internal/store/middleware.go:595
Method
Scope
(id string)
proxy/internal/store/middleware_postgres.go:368
Method
Scope
(id string)
proxy/internal/store/middleware.go:587
Function
Serve
Serve binds runtime transport for current platform.
proxy/internal/nativeruntime/server_unix.go:28
Method
SessionUsage
SessionUsage returns content-blind provider telemetry for one exact correlated native session. Dollar values remain catalog list-price subtotals/infer
proxy/internal/store/store.go:931
Method
SessionUsage
(string)
proxy/internal/nativeruntime/runtime_test.go:22
Method
SetObjectCurrentness
(id string, value Currentness)
engine/ccr/store_generation.go:233
Method
SetObjectLifecycle
(id string, value Lifecycle)
engine/ccr/store_generation.go:238
Method
ShrinkToolSchema
ShrinkToolSchema compresses a serialized tool catalog using Caveman's toolschema compressor (dropping annotation metadata and condensing verbose free-
proxy/internal/standalone/standalone.go:491
Method
ShrinkToolSchema
(tools []byte)
proxy/internal/gateway/server.go:131
Method
ShrinkToolSchema
(tools []byte)
proxy/internal/gateway/toolschema_strip_test.go:436
Function
SlogReplaceAttr
SlogReplaceAttr is a slog.HandlerOptions.ReplaceAttr hook that applies the same secret scrubbing to every string and error attribute before a handler
shared/platform/redact/redact.go:390
Method
Snapshot
(_ context.Context, url string, _ time.Duration)
browse/session_test.go:31
Method
Snapshot
(ctx context.Context, pageURL string, wait time.Duration)
browse/cdp_integration_test.go:24
Method
Snapshot
(context.Context, string, time.Duration)
browse/cmd/caveman-browse/main.go:503
Method
Snapshot
(_ context.Context, _ string, _ time.Duration)
mcp/codemode/stdio_js_builtin_test.go:791
Method
StartNewEpoch
StartNewEpoch explicitly replaces cache state. Callers must separately prove cold creation plus warm reads beat baseline total catalog cost.
shared/platform/cacheguard/cacheguard.go:142
Method
StoreOriginal
([]byte)
proxy/internal/standalone/provider_routes_test.go:21
Method
StoreOriginal
(b []byte)
proxy/internal/store/prefix_stability_e2e_test.go:77
Method
StoreOriginal
(b []byte)
proxy/internal/store/prefix_stability_e2e_test.go:174
Method
StoreOriginal
(b []byte)
proxy/internal/store/prefix_stability_openai_e2e_test.go:61
Method
StoreOriginal
(body []byte)
proxy/internal/gateway/cache_prefix_invariant_test.go:330
Method
StoreOriginal
(body []byte)
proxy/internal/gateway/pixel_test.go:31
Method
StoreOriginal
(body []byte)
proxy/internal/gateway/compress_test.go:54
Method
StoreOriginal
(body []byte)
proxy/internal/gateway/compress_test.go:88
Method
StoreOriginal
(body []byte)
proxy/internal/gateway/chatgpt_test.go:41
Method
StoreOriginal
(body []byte)
proxy/internal/gateway/dedup_test.go:33
Method
StoreOriginal
(body []byte)
proxy/internal/gateway/estimate_test.go:29
Method
StoreOriginal
(body []byte)
proxy/internal/gateway/live_zone_test.go:82
Method
StoreOriginal
(body []byte)
proxy/internal/gateway/prefix_stability_test.go:110
Method
StoreOriginal
(body []byte)
proxy/internal/gateway/prefix_stability_test.go:551
Method
StoreOriginal
(body []byte)
proxy/internal/gateway/toolschema_strip_test.go:66
Method
StoreOriginal
(body []byte)
proxy/internal/gateway/toolschema_strip_test.go:88
Method
StripToolSchema
StripToolSchema removes the documentation-only JSON-Schema annotation keywords from a serialized tool catalog through the engine's canonical strip — t
proxy/internal/standalone/standalone.go:483
Method
StripToolSchema
([]byte)
proxy/internal/standalone/provider_routes_test.go:26
Method
StripToolSchema
(tools []byte)
proxy/internal/gateway/server.go:122
Method
StripToolSchema
(tools []byte)
proxy/internal/gateway/cache_prefix_invariant_test.go:339
Method
StripToolSchema
(tools []byte)
proxy/internal/gateway/toolschema_strip_test.go:76
Function
Summarize
Summarize groups items by tag, totals them, and finds the highest scorer. It returns ErrEmpty when there is nothing to summarize.
engine/evals/fixtures/sample.go:31
Method
Summary
()
engine/ccr/store_generation.go:251
Function
TestADecisionHoldsWhileItIsUsed
A decision holds 30 min after its last use, so a tool loop longer than that never switches model halfway.
proxy/internal/cloudlink/link_test.go:1421
Function
TestAKeychainSlowerThanTheBudgetNeverPauses
A keychain read slower than the route budget leaves the first request on the asked model within the budget, without a pause: the next request, once th
proxy/internal/cloudlink/link_test.go:1319
Function
TestALateKeychainReadSendsNoAsk
A keychain read landing with less than askFloor of the budget left sends no ask (a timeout there would pause routing): credential_loading, and the nex
proxy/internal/cloudlink/link_test.go:1394
Function
TestARefusedCacheKeyReplaysWithoutItAndLatches
A 4xx that names prompt_cache_key replays the agent's own bytes, without it, and the session goes without it from then on. The error is asked for with
proxy/internal/gateway/route_effort_responses_test.go:387
Function
TestAXTreeCapturedCDPFixtureReductionAndExactRecovery
(t *testing.T)
engine/axtree_test.go:117
Function
TestAXTreeCapturedFixtureCompactGoldenAndTokenBudget
(t *testing.T)
engine/compressors/axtree_test.go:222
Function
TestAXTreeCuratesIgnoredAndGenericNodes
(t *testing.T)
engine/compressors/axtree_test.go:60
Function
TestAXTreeDanglingChildBecomesLeaf
TestAXTreeDanglingChildBecomesLeaf pins the fix: an <iframe> node whose childId points at a child-document root absent from this frame's getFullAXTre
engine/compressors/axtree_test.go:111
Function
TestAXTreeEngineForcedOnlyCCRRoundTrip
(t *testing.T)
engine/axtree_test.go:60
Function
TestAXTreeHighNoiseFixtureReducesIgnoredNodesAndTokens
(t *testing.T)
engine/compressors/axtree_test.go:182
Function
TestAXTreeMalformedFailsClosed
(t *testing.T)
engine/compressors/axtree_test.go:90
Function
TestAXTreeNoCCRPassesThrough
(t *testing.T)
engine/axtree_test.go:106
Function
TestAXTreeQueryKeepsBestMatchesAncestorsAndVisibleUIDsOnly
(t *testing.T)
engine/compressors/axtree_test.go:248
Function
TestAXTreeQueryKeepsWholeRowForLineItemMatches
(t *testing.T)
engine/compressors/axtree_test.go:274
Function
TestAXTreeQueryMissIsExplicitAndHasNoGuessableTargets
(t *testing.T)
engine/compressors/axtree_test.go:303
Function
TestAXTreeUIDsAreUniqueAcrossFramesAndDuplicates
(t *testing.T)
engine/compressors/axtree_test.go:143
Function
TestAXTreeUnknownStateTokenIsNotInvented
(t *testing.T)
engine/compressors/axtree_test.go:167
Function
TestAbandonedSessionRepositoryRefsPrunedAfterIdleWindow
A host can disappear without ever sending session.end. repositoryEnded is only written by session.end, so a ref prune keyed off it alone keeps one ent
proxy/internal/nativeruntime/runtime_test.go:1555
Function
TestAcceptedFieldsAreNeverDropped
A field Cloud has answered 200 for is never blamed for a later generic 400: a bad ask is not sent again without it.
proxy/internal/cloudlink/cache_ttl_test.go:137
Function
TestAcceptedRawRetryPinsTheConversationRaw
TestAcceptedRawRetryPinsTheConversationRaw: once the provider accepted a request only in its original form, that is what it cached, so every later req
proxy/internal/gateway/cache_prefix_invariant_test.go:1488
Function
TestAccountingRoutesResolveForBothPublishers
The Anthropic SDK counts tokens on Vertex through a fixed pseudo-model segment: .../publishers/anthropic/models/count-tokens:rawPredict. Rejecting it
proxy/providers/vertex/proxy_preflight_test.go:52
Function
TestActRejectsUnknownActionBeforeUIDLookup
(t *testing.T)
browse/session_test.go:339
Function
TestActUsesCachedTargetAndFailsClosedOnUnknownUID
(t *testing.T)
browse/session_test.go:347
Function
TestAddUsageOverflowFailsClosed
(t *testing.T)
proxy/internal/gateway/usage_aggregation_test.go:9
Function
TestAgentAttribution
TestAgentAttribution proves the proxy tags each spend row with the wrapped agent from the x-cave-agent header (set by `caveman wrap <agent>`), default
proxy/internal/gateway/server_test.go:375
Function
TestAgentEvidenceForBuildReturnsExactContentBlindRequests
(t *testing.T)
proxy/internal/store/agent_evidence_test.go:10
Function
TestAgentEvidenceMarksIncompleteRequestHashes
(t *testing.T)
proxy/internal/store/agent_evidence_test.go:75
Function
TestAgentPathAttribution
(t *testing.T)
proxy/internal/gateway/server_test.go:408
Function
TestAgentPathAttributionAcrossWireProtocols
TestAgentPathAttributionAcrossWireProtocols keeps /w/<slug> attribution a proxy contract, independent of the CLI's compiled agent registry. An intenti
proxy/internal/gateway/agent_path_protocol_test.go:20
Function
TestAgentRootsHonorRelocationVariables
(t *testing.T)
proxy/internal/store/agent_roots_test.go:20
Function
TestAgentsOwnEffortComesBackWithoutCloud
Without an effort from Cloud the agent's own top-level effort runs: routed low, then routing off while the agent asks for max puts max back, cache-saf
proxy/internal/gateway/route_effort_test.go:1025
Function
TestAiderSessionSourceSplitsHeadersAndRoundTripsMarkdownLineLocator
(t *testing.T)
proxy/internal/store/source_aider_test.go:11
Function
TestAllCachedInputLeavesNoEstimateStanding
All input cached: message_delta's input_tokens is not 0, so a client that keeps message_start's count on a 0 does not add the estimate to the cache.
proxy/internal/translate/review_regressions_test.go:312
Function
TestAllowedDefaultModels
(t *testing.T)
engine/pixel/applicability_test.go:10
← previous
next →
8,601–8,700 of 12,853, ranked by callers