MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

MethodSafetyClass
()
engine/compressors/tabular.go:71
MethodSafetyClass
()
engine/compressors/html.go:41
MethodSafetyClass
()
engine/compressors/repetition.go:41
MethodSafetyClass
()
engine/compressors/diff.go:27
MethodSafetyClass
()
engine/compressors/text.go:37
MethodSafetyClass
()
engine/compressors/json_strategy.go:29
MethodSafetyClass
()
engine/compressors/toon.go:16
MethodSafetyClass
()
engine/compressors/toolschema.go:89
MethodSafetyClass
()
engine/compressors/searchresult.go:35
MethodSafetyClass
()
engine/compressors/code_nocgo.go:31
MethodSafetyClass
()
engine/compressors/code_cgo.go:56
MethodSafetyClass
()
engine/compressors/testreport.go:24
MethodSafetyClass
()
engine/compressors/log.go:79
MethodSafetyClass
()
engine/compressors/config.go:45
MethodSafetyClass
()
engine/compressors/terminal.go:56
MethodSafetyClass
()
engine/compressors/toolschema_annotations.go:417
MethodSafetyClass
()
engine/compressors/json.go:66
MethodSanitizeAndMapHeaders
(ctx context.Context, req *http.Request, credential providers.Credential, upstream *url.URL)
proxy/providers/gemini/gemini.go:44
MethodSanitizeAndMapHeaders
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
MethodSanitizeAndMapHeaders
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
MethodSanitizeAndMapHeaders
(ctx context.Context, req *http.Request, credential providers.Credential, upstream *url.URL)
proxy/providers/vertex/vertex.go:40
MethodSaveChoices
(scope string, choices []MiddlewareChoice)
proxy/internal/store/middleware_postgres.go:455
MethodSaveChoices
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
MethodSavePlan
(scope, id, digest string, body []byte, now, expires int64)
proxy/internal/store/middleware_postgres.go:423
MethodSavePlan
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
MethodSaveScope
(s MiddlewareScope)
proxy/internal/store/middleware_postgres.go:392
MethodSaveScope
SaveScope inserts or advances a scope. created_at is set once, at insert.
proxy/internal/store/middleware.go:595
MethodScope
(id string)
proxy/internal/store/middleware_postgres.go:368
MethodScope
(id string)
proxy/internal/store/middleware.go:587
FunctionServe
Serve binds runtime transport for current platform.
proxy/internal/nativeruntime/server_unix.go:28
MethodSessionUsage
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
MethodSessionUsage
(string)
proxy/internal/nativeruntime/runtime_test.go:22
MethodSetObjectCurrentness
(id string, value Currentness)
engine/ccr/store_generation.go:233
MethodSetObjectLifecycle
(id string, value Lifecycle)
engine/ccr/store_generation.go:238
MethodShrinkToolSchema
ShrinkToolSchema compresses a serialized tool catalog using Caveman's toolschema compressor (dropping annotation metadata and condensing verbose free-
proxy/internal/standalone/standalone.go:491
MethodShrinkToolSchema
(tools []byte)
proxy/internal/gateway/server.go:131
MethodShrinkToolSchema
(tools []byte)
proxy/internal/gateway/toolschema_strip_test.go:436
FunctionSlogReplaceAttr
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
MethodSnapshot
(_ context.Context, url string, _ time.Duration)
browse/session_test.go:31
MethodSnapshot
(ctx context.Context, pageURL string, wait time.Duration)
browse/cdp_integration_test.go:24
MethodSnapshot
(context.Context, string, time.Duration)
browse/cmd/caveman-browse/main.go:503
MethodSnapshot
(_ context.Context, _ string, _ time.Duration)
mcp/codemode/stdio_js_builtin_test.go:791
MethodStartNewEpoch
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
MethodStoreOriginal
([]byte)
proxy/internal/standalone/provider_routes_test.go:21
MethodStoreOriginal
(b []byte)
proxy/internal/store/prefix_stability_e2e_test.go:77
MethodStoreOriginal
(b []byte)
proxy/internal/store/prefix_stability_e2e_test.go:174
MethodStoreOriginal
(b []byte)
proxy/internal/store/prefix_stability_openai_e2e_test.go:61
MethodStoreOriginal
(body []byte)
proxy/internal/gateway/cache_prefix_invariant_test.go:330
MethodStoreOriginal
(body []byte)
proxy/internal/gateway/pixel_test.go:31
MethodStoreOriginal
(body []byte)
proxy/internal/gateway/compress_test.go:54
MethodStoreOriginal
(body []byte)
proxy/internal/gateway/compress_test.go:88
MethodStoreOriginal
(body []byte)
proxy/internal/gateway/chatgpt_test.go:41
MethodStoreOriginal
(body []byte)
proxy/internal/gateway/dedup_test.go:33
MethodStoreOriginal
(body []byte)
proxy/internal/gateway/estimate_test.go:29
MethodStoreOriginal
(body []byte)
proxy/internal/gateway/live_zone_test.go:82
MethodStoreOriginal
(body []byte)
proxy/internal/gateway/prefix_stability_test.go:110
MethodStoreOriginal
(body []byte)
proxy/internal/gateway/prefix_stability_test.go:551
MethodStoreOriginal
(body []byte)
proxy/internal/gateway/toolschema_strip_test.go:66
MethodStoreOriginal
(body []byte)
proxy/internal/gateway/toolschema_strip_test.go:88
MethodStripToolSchema
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
MethodStripToolSchema
([]byte)
proxy/internal/standalone/provider_routes_test.go:26
MethodStripToolSchema
(tools []byte)
proxy/internal/gateway/server.go:122
MethodStripToolSchema
(tools []byte)
proxy/internal/gateway/cache_prefix_invariant_test.go:339
MethodStripToolSchema
(tools []byte)
proxy/internal/gateway/toolschema_strip_test.go:76
FunctionSummarize
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
MethodSummary
()
engine/ccr/store_generation.go:251
FunctionTestADecisionHoldsWhileItIsUsed
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
FunctionTestAKeychainSlowerThanTheBudgetNeverPauses
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
FunctionTestALateKeychainReadSendsNoAsk
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
FunctionTestARefusedCacheKeyReplaysWithoutItAndLatches
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
FunctionTestAXTreeCapturedCDPFixtureReductionAndExactRecovery
(t *testing.T)
engine/axtree_test.go:117
FunctionTestAXTreeCapturedFixtureCompactGoldenAndTokenBudget
(t *testing.T)
engine/compressors/axtree_test.go:222
FunctionTestAXTreeCuratesIgnoredAndGenericNodes
(t *testing.T)
engine/compressors/axtree_test.go:60
FunctionTestAXTreeDanglingChildBecomesLeaf
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
FunctionTestAXTreeEngineForcedOnlyCCRRoundTrip
(t *testing.T)
engine/axtree_test.go:60
FunctionTestAXTreeHighNoiseFixtureReducesIgnoredNodesAndTokens
(t *testing.T)
engine/compressors/axtree_test.go:182
FunctionTestAXTreeMalformedFailsClosed
(t *testing.T)
engine/compressors/axtree_test.go:90
FunctionTestAXTreeNoCCRPassesThrough
(t *testing.T)
engine/axtree_test.go:106
FunctionTestAXTreeQueryKeepsBestMatchesAncestorsAndVisibleUIDsOnly
(t *testing.T)
engine/compressors/axtree_test.go:248
FunctionTestAXTreeQueryKeepsWholeRowForLineItemMatches
(t *testing.T)
engine/compressors/axtree_test.go:274
FunctionTestAXTreeQueryMissIsExplicitAndHasNoGuessableTargets
(t *testing.T)
engine/compressors/axtree_test.go:303
FunctionTestAXTreeUIDsAreUniqueAcrossFramesAndDuplicates
(t *testing.T)
engine/compressors/axtree_test.go:143
FunctionTestAXTreeUnknownStateTokenIsNotInvented
(t *testing.T)
engine/compressors/axtree_test.go:167
FunctionTestAbandonedSessionRepositoryRefsPrunedAfterIdleWindow
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
FunctionTestAcceptedFieldsAreNeverDropped
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
FunctionTestAcceptedRawRetryPinsTheConversationRaw
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
FunctionTestAccountingRoutesResolveForBothPublishers
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
FunctionTestActRejectsUnknownActionBeforeUIDLookup
(t *testing.T)
browse/session_test.go:339
FunctionTestActUsesCachedTargetAndFailsClosedOnUnknownUID
(t *testing.T)
browse/session_test.go:347
FunctionTestAddUsageOverflowFailsClosed
(t *testing.T)
proxy/internal/gateway/usage_aggregation_test.go:9
FunctionTestAgentAttribution
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
FunctionTestAgentEvidenceForBuildReturnsExactContentBlindRequests
(t *testing.T)
proxy/internal/store/agent_evidence_test.go:10
FunctionTestAgentEvidenceMarksIncompleteRequestHashes
(t *testing.T)
proxy/internal/store/agent_evidence_test.go:75
FunctionTestAgentPathAttribution
(t *testing.T)
proxy/internal/gateway/server_test.go:408
FunctionTestAgentPathAttributionAcrossWireProtocols
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
FunctionTestAgentRootsHonorRelocationVariables
(t *testing.T)
proxy/internal/store/agent_roots_test.go:20
FunctionTestAgentsOwnEffortComesBackWithoutCloud
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
FunctionTestAiderSessionSourceSplitsHeadersAndRoundTripsMarkdownLineLocator
(t *testing.T)
proxy/internal/store/source_aider_test.go:11
FunctionTestAllCachedInputLeavesNoEstimateStanding
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
FunctionTestAllowedDefaultModels
(t *testing.T)
engine/pixel/applicability_test.go:10
← previousnext →8,601–8,700 of 12,853, ranked by callers