MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,391 in github.com/JuliusBrussee/caveman

MethodListSessionObjects
(sessionID string, limit int)
engine/ccr/store_generation.go:243
MethodLookupReplacement
LookupReplacement returns the replacement bytes this proxy previously emitted for these exact original bytes, plus the CCR handle they disclose. It im
proxy/internal/store/prefix_cache.go:38
MethodLookupReplacement
(scope string, original []byte)
proxy/internal/gateway/prefix_stability_test.go:52
MethodMapProviderError
MapProviderError maps a Bedrock error response to a ProviderError, preferring the AWS x-amzn-errortype header (e.g. ThrottlingException, ValidationExc
proxy/providers/bedrock/usage.go:646
MethodMarshalJSON
()
engine/pixel/transform_gemini.go:379
MethodMarshalJSON
()
engine/pixel/transform_gemini.go:438
MethodMarshalJSON
()
engine/pixel/transform_gemini.go:471
MethodMatchMetadataRequest
MatchMetadataRequest claims /anthropic/v1/models always, but the bare v1/models spelling only from Anthropic wire-protocol callers: every Anthropic SD
proxy/providers/anthropic/anthropic.go:51
MethodMatchMetadataRequest
MatchMetadataRequest is the OpenAI half of the bare /v1/models split (see anthropic.Adapter.MatchMetadataRequest): /openai/v1/models is always OpenAI,
proxy/providers/openai/openai.go:23
MethodMatchMetadataRoute
MatchMetadataRoute reports whether this is a read-only provider metadata request (see Base.MetadataRoutes). GET only: a write verb on a metadata mount
proxy/providers/adapter.go:530
MethodMatchMetadataRoute
MatchMetadataRoute mirrors MatchRoute: validate the decoded path spelling first, then consult the GET-only metadata allowlist.
proxy/providers/openaicompat/openaicompat.go:233
MethodMatchOAuthTokenRoute
MatchOAuthTokenRoute reports whether this is a request to the provider's OAuth token endpoint (see Base.OAuthTokenRoutes).
proxy/providers/adapter.go:556
MethodMatchRoute
(method string, path string)
proxy/providers/gemini/gemini.go:86
MethodMatchRoute
MatchRoute rejects path spellings whose decoded form could claim a different compatibility mount than the caller sent. The gateway performs the same c
proxy/providers/openaicompat/openaicompat.go:37
MethodMatchRoute
(method, path string)
proxy/providers/openaicompat/openaicompat.go:224
MethodMiddlewareBacklog
(ctx context.Context, now int64)
proxy/internal/store/middleware_postgres.go:335
MethodMiddlewareBacklog
(ctx context.Context, now int64)
proxy/internal/store/middleware.go:562
MethodMiddlewareKeys
(ctx context.Context)
proxy/internal/store/middleware_postgres.go:317
MethodMiddlewareKeys
(ctx context.Context)
proxy/internal/store/middleware.go:544
MethodMiddlewareUsage
(ctx context.Context)
proxy/internal/store/middleware_postgres.go:312
MethodMiddlewareUsage
MiddlewareUsage reports the whole store's admitted rows and bytes.
proxy/internal/store/middleware.go:539
MethodMiddlewareWritable
(ctx context.Context)
proxy/internal/middleware/hardening_test.go:172
MethodMiddlewareWritable
MiddlewareWritable assigns a transaction id, which a read-only or recovering (standby) server refuses, without touching a middleware row.
proxy/internal/store/middleware_postgres.go:305
MethodMiddlewareWritable
MiddlewareWritable proves the store accepts a write: it rewrites one existing row in a transaction and commits, so a read-only file, a full disk or a
proxy/internal/store/middleware.go:531
MethodName
()
engine/engine_test.go:18
MethodName
()
engine/tokens/tokens.go:43
MethodName
()
engine/tokens/tokens.go:66
MethodName
()
proxy/providers/adapter.go:508
MethodName
()
proxy/internal/middleware/counter.go:28
FunctionNewSpanID
()
shared/platform/id/id.go:33
MethodNewUsageScanner
NewUsageScanner returns a Bedrock-aware usage scanner so streamed (converse-stream / invoke-with-response-stream) responses are parsed with the same c
proxy/providers/bedrock/usage.go:47
FunctionNewWithReceipts
(store *ccr.Store, receiptDir string)
proxy/internal/nativeruntime/runtime.go:173
MethodNow
Now is wall time: a laptop that slept must see the hours it slept, which the monotonic reading does not count.
proxy/internal/gateway/cache_warm.go:83
MethodObserve
Observe queues one event for a recorded request. It never blocks.
proxy/internal/cloudlink/events.go:94
MethodObserve
(rec RequestRecord)
proxy/internal/gateway/route_test.go:98
FunctionOpen
Open opens (creating if needed) the SQLite database at path and migrates the schema. Use ":memory:" for an ephemeral store (tests, the eval harness).
engine/ccr/store_sqlite.go:280
FunctionOpenMemory
OpenMemory opens an ephemeral in-memory store.
engine/ccr/store_sqlite.go:628
MethodOriginal
Original returns a stored original and its key id; sql.ErrNoRows when the authority holds no content for digest.
proxy/internal/store/middleware_originals.go:60
MethodOriginal
(authority, digest string)
proxy/internal/store/middleware_postgres.go:738
MethodOriginals
Middleware originals are stored once per (authority, digest): the row is both the exact original a grant recovers and the unique-content credit. A row
proxy/internal/store/middleware_originals.go:17
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:801
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 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:63
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:47
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:669
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
(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/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
(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:568
MethodResolveUpstreamURL
(ctx context.Context, req *http.Request, route providers.RouteContext)
proxy/providers/gemini/gemini.go:24
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:470
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
← previousnext →8,101–8,200 of 12,391, ranked by callers