MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions9,729 in github.com/JuliusBrussee/caveman

↓ 24 callersMethodParseUsage
(ctx context.Context, responseHeaders http.Header, streamOrBody io.Reader)
proxy/providers/adapter.go:361
↓ 24 callersMethodPick
(f Features, pool []Candidate, alpha float64)
proxy/routing/routing.go:15
↓ 24 callersFunctionasMap
(v any)
proxy/internal/store/usage_import.go:523
↓ 24 callersFunctioninvokedAs
()
packages/cli/src/index.ts:476
↓ 24 callersFunctionnewRetroFixture
(t *testing.T)
proxy/internal/store/learn_retro_test.go:114
↓ 24 callersFunctionplain
(value: unknown)
packages/middleware/typescript/src/common.ts:39
↓ 24 callersMethodsend
(self, prompt)
tests/test_mode_tracker.py:39
↓ 23 callersMethodPutObject
(input Object)
engine/ccr/store_wasm.go:118
↓ 23 callersMethodRemember
Remember stores text durably and returns it with a content-addressed id. Remembering identical current text twice is idempotent (same id, stored once)
mem/store.go:166
↓ 23 callersMethodSanitizeAndMapHeaders
SanitizeAndMapHeaders maps the inbound headers to the upstream header set and applies any provider auth/signing. upstream is the ALREADY-RESOLVED forw
proxy/providers/adapter.go:350
↓ 23 callersMethodWrite
(p []byte)
proxy/internal/gateway/proxy.go:1642
↓ 23 callersFunctioncall
(t *testing.T, r *Runtime, path string, body any, principal string)
proxy/internal/middleware/runtime_test.go:113
↓ 23 callersMethodcreate
(self, body: dict[str, Any], *, latency_class: str | None = None, tool_session_id: str | None = None)
packages/sdk/python/caveman_cloud/core.py:1335
↓ 23 callersMethodflag_value
(self)
tests/test_mode_tracker.py:55
↓ 23 callersFunctionnewRecurringMiner
()
proxy/internal/store/recurring.go:98
↓ 23 callersFunctionrunCli
(argv, options = {})
packages/cli/tests/_cli.mjs:58
↓ 23 callersFunctionturnText
(n int)
proxy/internal/gateway/prefix_stability_test.go:152
↓ 22 callersMethodBuildLearnPlanWithRetro
BuildLearnPlanWithRetro is BuildLearnPlan plus the opt-in retrospective pass. With retro disabled the two are the same code path and the same output b
proxy/internal/store/learn.go:160
↓ 22 callersMethodExtractStabilizable
(body []byte, meta providers.RequestMetadata)
proxy/providers/azureopenai/content_compress_test.go:29
↓ 22 callersFunctionNew
(baseURL string)
proxy/providers/gemini/gemini.go:82
↓ 22 callersFunction_refresh_with
(client: RuntimePolicyClient, payload: Any, captured: list[dict[str, Any]] | None = None)
packages/sdk/python/tests/test_runtime_policy.py:107
↓ 22 callersMethodexporter
Create a one-call OTel exporter bound to this Cave's gateway config. The exporter ships spans to the gateway's OTLP endpoint (``POST
packages/sdk/python/caveman_cloud/core.py:633
↓ 21 callersMethodBuildLearnPlan
BuildLearnPlan is the front-door analyzer: scan config + real history, compute the detectors, the Cave Score, rank by daily-equivalent magnitude, and
proxy/internal/store/learn.go:154
↓ 21 callersMethodCompress
(input []byte, opts engine.Options)
mcp/engine_tools.go:16
↓ 21 callersMethodName
()
proxy/providers/adapter.go:342
↓ 21 callersMethodWrite
(p []byte)
proxy/providers/adapter.go:750
↓ 21 callersFunction_make_cave
()
packages/sdk/python/tests/test_runtime_policy.py:79
↓ 21 callersFunctioncall
(runtime, binding=None, **overrides)
packages/sdk/python/tests/test_middleware_v1_1.py:106
↓ 21 callersFunctionclose
(server)
packages/cli/tests/harness/stub-upstream.mjs:13
↓ 21 callersFunctioninvokedCommand
(legacyVerb: string, groupedTail = "")
packages/cli/src/index.ts:481
↓ 21 callersMethodruntime_policy
A local runtime-policy client for this project. The client pulls the project's published policy bundle (``GET /sdk/v1/runtime-policy`
packages/sdk/python/caveman_cloud/core.py:892
↓ 20 callersMethodCredentials
Credentials returns credentials for signing, refreshing them when they are within five minutes of expiry.
shared/platform/awscreds/awscreds.go:172
↓ 20 callersFunctionDefault
Default returns the engine's shared default counter: the o200k_base BPE tokenizer (the GPT-4o-family encoding), used across every content type. If the
engine/tokens/tokens.go:92
↓ 20 callersFunctioncanonicalMcpConfigPath
(path: string)
packages/cli/src/index.ts:11818
↓ 20 callersFunctionensure_async
Async view of either runtime type. Other objects pass through.
packages/sdk/python/caveman_cloud/middleware/async_runtime.py:200
↓ 20 callersFunctionfetch
(_url, init)
packages/middleware/typescript/tests/drivers.mjs:27
↓ 20 callersFunctioninvokePath
(model, action string)
proxy/providers/bedrock/bedrock_test.go:21
↓ 20 callersFunctionrun
run drives the server with the given JSON-RPC request lines and returns the decoded responses plus whatever the server logged (which must be empty on
mcp/server_test.go:32
↓ 20 callersFunctionruntime_with
(peer, **options)
packages/sdk/python/tests/test_middleware_v1_1.py:116
↓ 20 callersFunctionwrapMode
(gw = gatewayURL())
packages/cli/src/index.ts:6026
↓ 19 callersMethodMatchRoute
(method string, path string)
proxy/providers/adapter.go:343
↓ 19 callersFunctionNewRepetition
NewRepetition returns the default repetition (run-length) compressor.
engine/compressors/repetition.go:38
↓ 19 callersMethodPut
Put stores a recovery and returns its content-addressed handle (idempotent).
engine/ccr/store_wasm.go:52
↓ 19 callersFunctionRoot
(body []byte)
proxy/providers/jsonsplice/jsonsplice.go:21
↓ 19 callersMethodSaveScope
(s MiddlewareScope)
proxy/internal/store/middleware.go:290
↓ 19 callersFunction_client_holding
(bundle: str)
packages/sdk/python/tests/test_runtime_policy.py:654
↓ 19 callersFunctioncavemanBin
(name: string, envVar: string)
packages/cli/src/index.ts:11207
↓ 19 callersFunctionconfigPath
()
packages/cli/src/index.ts:19530
↓ 19 callersFunctioneachMiddlewareBackend
eachMiddlewareBackend runs test on SQLite, and on Postgres when CAVEMAN_TEST_POSTGRES_URL names a database the test may create schemas in. Each Postgr
proxy/internal/store/middleware_backend_test.go:29
↓ 19 callersFunctionensure_sync
Sync view of either runtime type, so sync code paths never receive coroutines. Other objects pass through.
packages/sdk/python/caveman_cloud/middleware/async_runtime.py:195
↓ 19 callersFunctionfindAgent
(requested: string)
packages/cli/src/index.ts:150
↓ 19 callersMethodsearch
Search the full catalog via the gateway's ``/sdk/v1/tool-search`` endpoint. Returns a :class:`ToolSearchResult` with the reduced tool list
packages/sdk/python/caveman_cloud/core.py:1372
↓ 18 callersFunctionNewLog
NewLog returns the default log/build-output compressor.
engine/compressors/log.go:76
↓ 18 callersFunctionResidualRisk
ResidualRisk reports which residual-risk classes a body still exhibits AFTER a Payload pass. An empty result means the body cleared the screen; it doe
shared/platform/redact/residual.go:94
↓ 18 callersMethodaclose
(self)
packages/sdk/python/caveman_cloud/middleware/async_runtime.py:151
↓ 18 callersFunctionfamily_gate
(runtime, family, adapter=None, accept=False)
packages/middleware/python/caveman_middleware/_versions.py:144
↓ 18 callersFunctiongatewayURL
()
packages/cli/src/index.ts:115
↓ 18 callersFunctionnewStore
(t *testing.T)
mem/store_test.go:11
↓ 18 callersMethodowns_binding
(self, binding: RecoveryBinding | None, scope: Scope)
packages/sdk/python/caveman_cloud/middleware/runtime.py:369
↓ 18 callersFunctionrecovery_failed
A ``caveman_retrieve`` call the runtime refused (unknown or expired handle, 404/410/503) becomes the ``{"error": code}`` tool result the model rea
packages/middleware/python/caveman_middleware/_guard.py:57
↓ 18 callersMethodstart
(self, *args, **kwargs)
packages/sdk/python/tests/test_middleware_transport.py:141
↓ 18 callersMethodstate
What the client holds right now.
packages/sdk/python/caveman_cloud/core.py:2298
↓ 17 callersMethodError
()
proxy/internal/gateway/prefix_stability_test.go:78
↓ 17 callersMethodInspectRequest
(ctx context.Context, body BodyReader, headers http.Header)
proxy/providers/adapter.go:351
↓ 17 callersFunctionestimateTokens
estimateTokens is the project's inferred token heuristic (bytes/4), matching the usage importer's roughJSONSize/4 convention. Conservative, determinis
proxy/internal/store/config_scan.go:116
↓ 17 callersMethodexecute
(arguments=None, **_native_options)
packages/middleware/python/caveman_middleware/mcp.py:64
↓ 17 callersMethodexpired
()
proxy/internal/store/learn.go:963
↓ 17 callersFunctionjsLen
(s string)
engine/pixel/render.go:98
↓ 17 callersFunctionmustPayload
(t *testing.T, body []byte, rules []Rule)
shared/platform/redact/payload_test.go:11
↓ 17 callersFunctionprice
(input, output float64)
proxy/routing/routing_test.go:568
↓ 17 callersMethodrecord_span
Buffer a span, mapping GenAI fields to ``gen_ai.*`` attributes. Returns the :class:`OTelSpan` (with generated ids) so callers can chain
packages/sdk/python/caveman_cloud/core.py:1661
↓ 17 callersMethodretrieve
(handle: string, query: string | undefined, signal: AbortSignal | undefined)
packages/pi-extension/src/recovery.ts:76
↓ 16 callersFunctionCandidateActionID
CandidateActionID is a delimiter-safe, stable identity for the complete provider/model/effort tuple. Sixteen digest bytes are enough for compact telem
proxy/routing/routing.go:710
↓ 16 callersMethodDetect
Detect classifies a payload into a content type. It is deterministic and fail-open: anything it is not confident about is "text", which routes to a co
engine/detect.go:43
↓ 16 callersFunctionEngineTools
EngineTools returns the five Caveman compression tools bound to eng. log may be nil. This is the tool set the caveman-mcp binary serves.
mcp/engine_tools.go:35
↓ 16 callersFunctionEstimateUSD
EstimateUSD prices already-classified billable token buckets. Token counts must be disjoint: InputTokens is uncached input; CachedInputTokens is cache
shared/platform/cost/cost.go:38
↓ 16 callersMethodGetObject
(id string)
engine/ccr/store_wasm.go:135
↓ 16 callersMethodIdentify
Identify resolves the request's principal from its credential alone: a bearer (Authorization: Bearer, or x-cave-api-key for static tokens) decides whe
proxy/internal/identity/identity.go:204
↓ 16 callersFunctionNew
(cfg Config)
proxy/internal/identity/identity.go:166
↓ 16 callersFunction_bundle_with_policies
(policies: list[Any], **overrides: Any)
packages/sdk/python/tests/test_runtime_policy.py:638
↓ 16 callersFunctioncodexHomeDir
(env: NodeJS.ProcessEnv = process.env)
packages/cli/src/index.ts:6438
↓ 16 callersMethodcreate
(self, messages, *, tools=(), tool_choice="auto", json_output=None, extra_create_args={}, cancellation_token=N
packages/middleware/python/caveman_middleware/autogen.py:306
↓ 16 callersFunctiondecode
(t *testing.T, b []byte)
proxy/providers/openai/cache_key_test.go:31
↓ 16 callersFunctiondecodeTool
(t *testing.T, raw json.RawMessage)
mcp/server_test.go:64
↓ 16 callersFunctionrecovered
(t *testing.T, r *Runtime, scope Scope, handle, principal string)
proxy/internal/middleware/acceptance_test.go:64
↓ 16 callersMethodrecovery
A schema or a look-alike object cannot create this executable binding. The scope is normalized (spec §9); an * invalid scope returns null, or raise
packages/sdk/typescript/src/middleware/runtime.ts:273
↓ 16 callersMethodrun
()
tests/test_compress_concurrency.py:257
↓ 16 callersFunctionuntouched
(value)
packages/middleware/python/tests/test_behavior.py:54
↓ 16 callersMethodwait
( self, job_id: str, *, interval_s: float = 0.5, timeout_s: float = 60
packages/sdk/python/caveman_cloud/core.py:1459
↓ 15 callersFunctionDefaultTransformOptions
(model string)
engine/pixel/types.go:152
↓ 15 callersFunctionNew
New builds a Provider from opts.
shared/platform/awscreds/awscreds.go:111
↓ 15 callersFunctionNewToolSchema
NewToolSchema returns the tool-schema / tool-catalog compressor. It is selected by forcing the "toolschema" content type (engine.Options.Type); Detect
engine/compressors/toolschema.go:86
↓ 15 callersMethodRetrieve
(handle string)
mcp/engine_tools.go:17
↓ 15 callersMethodSimulate
Simulate runs the same detect → route → compress → count pipeline as Compress but stores NOTHING (no CCR Put) and makes no network call: a pure dry-ru
engine/engine.go:157
↓ 15 callersFunctionToolError
ToolError is a fail-closed tool error: isError=true with a cave_snake_code, so a host never mistakes it for a successful payload.
mcp/protocol.go:85
↓ 15 callersFunctionTransformAnthropic
(body []byte, opts TransformOptions)
engine/pixel/transform_anthropic.go:109
↓ 15 callersFunctionasJsonObject
(v: unknown)
packages/cli/src/index.ts:6273
↓ 15 callersFunctionbytesHash
(bytes: Buffer)
packages/cli/src/index.ts:7114
↓ 15 callersFunctioncapsWithContext
(contextTokens float64, keys ...string)
proxy/routing/routing_test.go:584
↓ 15 callersFunctionconfigTokenCount
configTokenCount uses the engine's offline o200k tokenizer when available. The byte estimate remains an explicit deterministic fallback; callers alway
proxy/internal/store/config_scan.go:127
← previousnext →101–200 of 9,729, ranked by callers