MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions7,561 in github.com/JuliusBrussee/caveman

↓ 311 callersMethodClose
()
browse/session.go:35
↓ 210 callersFunctionresolve
(index: int)
packages/sdk/python/tests/test_trace_continuity.py:172
↓ 206 callersMethodRun
Run validates full population, prepares equivalent bodies, then dispatches replay.
cacheengine/cachebench/replay.go:464
↓ 188 callersMethodString
String returns the class name, or "S?" for an unknown class.
engine/safety/safety.go:65
↓ 158 callersFunctiontest
(name, fn)
tests/test_mcp_shrink.js:20
↓ 135 callersMethodCompress
Compress returns the compressed bytes with ok=true on success. On any parse problem (malformed input, an unsupported shape) it returns (nil-or-input,
engine/compressors/compressor.go:30
↓ 133 callersMethodGet
Get returns the bytes at key, or ErrNotFound.
shared/platform/objectstore/objectstore.go:46
↓ 121 callersMethodget
(self, artifact_id: str)
packages/sdk/python/caveman_cloud/core.py:1330
↓ 120 callersFunctionString
(body []byte, span Span)
proxy/providers/jsonsplice/jsonsplice.go:84
↓ 117 callersMethodwrite
(job captureJob)
proxy/internal/gateway/capture.go:218
↓ 110 callersMethodreplace
replace returns the input with all matches replaced by [REDACTED:<name>].
shared/platform/redact/redact.go:90
↓ 95 callersMethodSet
(value string)
cacheengine/cmd/cache-replay/main.go:38
↓ 87 callersMethodok
(self)
packages/sdk/python/caveman_cloud/core.py:108
↓ 79 callersMethodHandler
Handler returns the standalone HTTP handler: health, metrics, and the proxy catch-all. Unlike the managed gateway it serves no SDK/OTLP endpoints — th
proxy/internal/gateway/server.go:496
↓ 71 callersFunctionOpenMemory
OpenMemory returns a fresh in-memory store.
engine/ccr/store_wasm.go:41
↓ 68 callersMethodCount
Count returns a local token estimate for b.
engine/tokens/tokens.go:21
↓ 68 callersFunctionNew
New constructs an engine while preserving legacy one-result API. Invalid configuration makes every operation return its stored error; prefer NewChecke
cacheengine/engine.go:39
↓ 67 callersMethodresolve
()
proxy/internal/gateway/capture.go:268
↓ 61 callersMethodError
()
engine/compressors/compressor.go:204
↓ 61 callersFunctionOpen
Open opens (creating if needed) the SQLite database at path and migrates the schema. logger may be nil.
proxy/internal/store/store.go:265
↓ 61 callersFunctionmax
(kinds: readonly string[])
packages/agent/src/cli.ts:1319
↓ 60 callersFunctionPath
(home string, port int)
proxy/internal/runstate/runstate.go:64
↓ 60 callersMethodmax
()
packages/agent/src/budget.ts:816
↓ 60 callersFunctionprint
(value: unknown)
packages/cli/src/index.ts:14588
↓ 59 callersMethodError
()
proxy/internal/gateway/prefix_stability_test.go:78
↓ 58 callersMethodError
()
mem/cmd/cavemem/main_test.go:308
↓ 58 callersFunctionNew
New builds an engine with the default compressor registry. store backs CCR recovery and stats and may be nil — without it the engine still detects and
engine/engine.go:36
↓ 58 callersFunctionNew
(baseURL string)
proxy/providers/openai/openai.go:10
↓ 58 callersMethodScan
(dest ...any)
mem/store.go:619
↓ 58 callersMethodclose
Release the optional background refresh timer. Mirrors the Python `close()`.
packages/sdk/typescript/src/index.ts:1211
↓ 58 callersFunctionserveBody
(t *testing.T, srv *Server, path, body string, headers map[string]string)
proxy/internal/gateway/live_zone_test.go:118
↓ 54 callersMethodlast
(t *testing.T)
proxy/internal/gateway/server_test.go:69
↓ 53 callersMethodwrite
(w *bufio.Writer, resp rpcResponse)
mcp/server.go:232
↓ 52 callersMethodBytes
()
cacheengine/cmd/cache-replay/main.go:147
↓ 52 callersFunctionmark
(state: "ok" | "bad" | "warn")
packages/cli/src/index.ts:14663
↓ 50 callersMethodValid
Valid reports whether c is a registered class.
engine/safety/safety.go:59
↓ 49 callersMethodencode
(self, *args, **kwargs)
tests/test_compress_safety.py:117
↓ 48 callersFunctionString
(name, fallback string)
shared/platform/env/env.go:14
↓ 47 callersFunctionNew
(baseURL string)
proxy/providers/anthropic/anthropic.go:24
↓ 47 callersFunctionNew
New constructs a standalone proxy Server.
proxy/internal/gateway/server.go:445
↓ 40 callersMethodFormat
Format renders a rollup as a stable, human-readable string.
engine/evals/fixtures/sample.go:70
↓ 40 callersMethodkill
Latch this client off. Every later `decide()` returns the caller's baseline.
packages/sdk/typescript/src/index.ts:1188
↓ 40 callersFunctionnewAdapter
(t *testing.T)
proxy/providers/bedrock/bedrock_test.go:16
↓ 39 callersFunctionnewTestPrefixCache
()
proxy/internal/gateway/prefix_stability_test.go:41
↓ 37 callersMethodOptimize
Optimize applies provider-native cache metadata or returns copied original bytes on every unsupported or unsafe path. It makes no network call.
cacheengine/native.go:18
↓ 33 callersMethodQueryRow
(context.Context, string, ...any)
shared/platform/postgresconfig/postgresconfig.go:212
↓ 32 callersMethodExtractCompressible
ExtractCompressible returns only the request's cache-cold live-zone text segments and a reassemble fn that byte-splices replacements into the original
proxy/providers/adapter.go:323
↓ 32 callersFunctionwhich
(cmd: string)
packages/cli/src/index.ts:14806
↓ 31 callersFunctioncavemanHome
()
packages/cli/src/index.ts:8948
↓ 31 callersFunctionflagFrom
(values: string[], name: string, fallback: string)
packages/cli/src/index.ts:12850
↓ 30 callersMethoddecide
Decide what to run for ``task_family``. Synchronous, local, total. Performs no network I/O and never raises — a garbage context, a broken
packages/sdk/python/caveman_cloud/core.py:2398
↓ 30 callersFunctiondim
(s: string)
packages/cli/src/index.ts:14657
↓ 27 callersMethodWrite
(p []byte)
browse/session.go:394
↓ 27 callersFunctionsha256
(path)
packages/cli/tests/openclaw-wrap.runtime.mjs:12
↓ 27 callersMethodtrace
Run a block inside a trace. The trace allocates a ``trace_id`` (32 lowercase hex) and a root ``span_id`` (16 lowercase hex) with the
packages/sdk/python/caveman_cloud/core.py:354
↓ 26 callersFunctionNew
(store *ccr.Store)
proxy/internal/nativeruntime/runtime.go:142
↓ 26 callersMethodResolveUpstreamURL
(ctx context.Context, req *http.Request, route RouteContext)
proxy/providers/adapter.go:307
↓ 26 callersFunctionoptimizeRequest
(provider, model, endpoint, epoch, body string)
cacheengine/native_test.go:15
↓ 26 callersFunctionstr
(v: unknown)
packages/cli/src/index.ts:8608
↓ 25 callersFunctionapply
(t *testing.T, body string, policy providers.TransformPolicy)
proxy/providers/openai/cache_key_test.go:17
↓ 24 callersMethodHandle
(_ context.Context, request Request)
proxy/internal/nativeruntime/runtime.go:204
↓ 24 callersFunctionParseUsageBytes
ParseUsageBytes extracts token usage from a complete provider response body, whether a single JSON document (non-stream) or an SSE / newline-delimited
proxy/providers/adapter.go:794
↓ 24 callersMethodPick
(f Features, pool []Candidate, alpha float64)
proxy/routing/routing.go:15
↓ 24 callersFunctionagent
(options: { id: string; instructions: string | FileSource; model: Auto | string | Model<Api>; reasonin
packages/agent/src/index.ts:87
↓ 24 callersFunctionnewRetroFixture
(t *testing.T)
proxy/internal/store/learn_retro_test.go:114
↓ 23 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:90
↓ 23 callersMethodListSessionObjects
(sessionID string, limit int)
engine/ccr/store_wasm.go:172
↓ 23 callersMethodParseUsage
(ctx context.Context, responseHeaders http.Header, streamOrBody io.Reader)
proxy/providers/adapter.go:324
↓ 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 callersMethodsend
(self, prompt)
tests/test_mode_tracker.py:38
↓ 22 callersMethodComplete
(context.Context, ModelRequest)
engine/evals/quality.go:41
↓ 22 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
↓ 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 callersMethodflag_value
(self)
tests/test_mode_tracker.py:54
↓ 22 callersFunctionfn
(url, init)
packages/graders/tests/grade.runtime.mjs:799
↓ 22 callersFunctionturnText
(n int)
proxy/internal/gateway/prefix_stability_test.go:152
↓ 21 callersFunctionField
(body []byte, object Span, name string)
proxy/providers/jsonsplice/jsonsplice.go:30
↓ 21 callersMethodLen
Len reports how many objects are stored (test helper for ZDR assertions).
shared/platform/objectstore/memory.go:102
↓ 21 callersFunctionNew
(baseURL string)
proxy/providers/gemini/gemini.go:33
↓ 21 callersMethodQuery
(context.Context, string, ...any)
shared/platform/postgresconfig/postgresconfig.go:211
↓ 21 callersFunctionRoot
(body []byte)
proxy/providers/jsonsplice/jsonsplice.go:21
↓ 21 callersFunction_make_cave
()
packages/sdk/python/tests/test_runtime_policy.py:79
↓ 21 callersFunctioninvokedAs
()
packages/cli/src/index.ts:437
↓ 21 callersFunctioninvokedCommand
(legacyVerb: string, groupedTail = "")
packages/cli/src/index.ts:442
↓ 21 callersFunctionopenRetroTestStore
(t *testing.T)
proxy/internal/store/learn_retro_test.go:123
↓ 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:870
↓ 21 callersFunctionstableStringify
(value: unknown)
packages/agent/src/context-ir.ts:334
↓ 20 callersFunctionOpen
Open ignores path (there is no filesystem) and returns an in-memory store.
engine/ccr/store_wasm.go:34
↓ 20 callersMethodRecord
(RequestRecord)
proxy/internal/gateway/server.go:69
↓ 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
↓ 19 callersFunctionNewRepetition
NewRepetition returns the default repetition (run-length) compressor.
engine/compressors/repetition.go:38
↓ 19 callersFunction_client_holding
(bundle: str)
packages/sdk/python/tests/test_runtime_policy.py:654
↓ 19 callersFunctionexplicitProfile
()
cacheengine/planner_test.go:10
↓ 19 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:611
↓ 19 callersFunctionfileBytes
(path: string)
packages/cli/src/index.ts:5826
↓ 19 callersFunctioninvokePath
(model, action string)
proxy/providers/bedrock/bedrock_test.go:21
↓ 19 callersFunctionrunCli
(argv, options = {})
packages/cli/tests/_cli.mjs:44
↓ 19 callersFunctiontool
( options: ToolOptions<TSchema, unknown> | StandardToolOptions<unknown, unknown, unknown> | Standard
packages/agent/src/primitives.ts:123
↓ 18 callersMethodExtractStabilizable
(body []byte, meta providers.RequestMetadata)
proxy/providers/azureopenai/content_compress_test.go:29
↓ 18 callersFunctionParse
Parse dispatches to the per-format parser. An unknown/misspelled format returns an error (fail-closed) — it never silently passes through. On any par
shared/platform/importers/importers.go:71
next →1–100 of 7,561, ranked by callers