MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,391 in github.com/JuliusBrussee/caveman

↓ 20 callersMethodInspectRequest
(ctx context.Context, body BodyReader, headers http.Header)
proxy/providers/adapter.go:356
↓ 20 callersMethodSummary
Summary aggregates the in-memory recoveries into totals + per-type buckets.
engine/ccr/store_wasm.go:220
↓ 20 callersMethodWrite
(p []byte)
proxy/providers/adapter.go:873
↓ 20 callersFunctioncanonicalMcpConfigPath
(path: string)
packages/cli/src/index.ts:14990
↓ 20 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
↓ 20 callersFunctionensure_async
Async view of either runtime type. Other objects pass through.
packages/sdk/python/caveman_cloud/middleware/async_runtime.py:200
↓ 20 callersFunctionerrorBody
errorBody is Anthropic's 400 envelope around message.
proxy/internal/gateway/route_effort_test.go:332
↓ 20 callersFunctionnote
tests/middleware-e2e/run.mjs:26
↓ 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 callersMethodrun_cmd
(self, cmd, home, extra_env=None)
tests/test_hooks.py:28
↓ 20 callersFunctionruntime_with
(peer, **options)
packages/sdk/python/tests/test_middleware_v1_1.py:116
↓ 20 callersFunctionsum
(v []float64)
proxy/internal/gateway/cache_warm_table_test.go:208
↓ 19 callersFunctionElements
(body []byte, array Span)
proxy/providers/jsonsplice/jsonsplice.go:69
↓ 19 callersMethodMatchRoute
(method string, path string)
proxy/providers/adapter.go:348
↓ 19 callersFunctionNewJSON
NewJSON returns the default JSON/tool-output compressor.
engine/compressors/json.go:61
↓ 19 callersFunctionNewLog
NewLog returns the default log/build-output compressor.
engine/compressors/log.go:76
↓ 19 callersFunctionNewRepetition
NewRepetition returns the default repetition (run-length) compressor.
engine/compressors/repetition.go:38
↓ 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 callersFunctionchatStream
(chunks ...string)
proxy/internal/translate/helpers_test.go:84
↓ 19 callersFunctioncontentHandle
(original []byte)
proxy/internal/gateway/live_zone_test.go:328
↓ 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
(condition: bool, message: str)
tests/verify_repo.py:43
↓ 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 callersMethodexpired
()
proxy/internal/store/learn.go:963
↓ 19 callersFunctionfetch
(_url, init)
packages/middleware/typescript/tests/drivers.mjs:27
↓ 19 callersFunctionisolatedCliEnv
(extra = {})
packages/cli/tests/_cli.mjs:10
↓ 19 callersFunctionnewPoolCase
(t *testing.T, target *RouteTarget, effort string)
proxy/internal/gateway/route_pool_test.go:161
↓ 19 callersFunctionnodeStub
(dir, name, source)
packages/cli/tests/harness/stub-bin.mjs:42
↓ 19 callersFunctionprefixStableTransport
(turns int)
proxy/internal/gateway/prefix_stability_test.go:180
↓ 19 callersFunctionreadNativeJournal
(agent: string)
packages/cli/src/index.ts:10668
↓ 19 callersMethodrun
()
tests/test_compress_concurrency.py:287
↓ 19 callersMethodstart
(self, *args, **kwargs)
packages/sdk/python/tests/test_middleware_transport.py:141
↓ 19 callersMethodtext
(delta string)
proxy/internal/translate/chat_stream.go:111
↓ 18 callersFunctionError
Error removes transport URLs from *url.Error values, including wrapped and joined errors, then applies String redaction. URLs can carry opaque or perc
shared/platform/redact/redact.go:335
↓ 18 callersMethodError
()
mem/cmd/cavemem/main_test.go:309
↓ 18 callersMethodRememberReplacement
RememberReplacement durably records original→replacement (nil under RawDecisionHandle records raw) and returns the AUTHORITATIVE bytes for that origin
proxy/internal/gateway/server.go:186
↓ 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 callersMethodRetrieve
(handle string)
mcp/engine_tools.go:21
↓ 18 callersMethodServe
--- answers ---------------------------------------------------------------- Serve writes a 2xx upstream answer to w in the caller's grammar (streamed
proxy/internal/translate/translate.go:370
↓ 18 callersMethodStart
Start begins reading the CLI state now, off any request: a keychain read starts here, so the first request after a start finds its credential. From he
proxy/internal/cloudlink/link.go:156
↓ 18 callersMethodaclose
(self)
packages/sdk/python/caveman_cloud/middleware/async_runtime.py:151
↓ 18 callersFunctionconfigPath
()
packages/cli/src/index.ts:23135
↓ 18 callersMethodexecute
(arguments=None, **_native_options)
packages/middleware/python/caveman_middleware/mcp.py:64
↓ 18 callersMethodexpectedReplacement
expectedReplacement is the exact JSON-encoded string the splice must produce for a block this compressor shrank: compressed bytes, newline, CCR marker
proxy/internal/gateway/prefix_stability_test.go:119
↓ 18 callersFunctionfamily_gate
(runtime, family, adapter=None, accept=False)
packages/middleware/python/caveman_middleware/_versions.py:144
↓ 18 callersFunctionisNull
isNull reports an absent or null value.
proxy/internal/translate/jsonfast.go:217
↓ 18 callersMethodowns_binding
(self, binding: RecoveryBinding | None, scope: Scope)
packages/sdk/python/caveman_cloud/middleware/runtime.py:369
↓ 18 callersFunctionportableInvocation
(command, args, { platform = process.platform, env = process.env, execPath = process.execPath, allowBu
installer/lib/portable-process.js:104
↓ 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 callersMethodstate
What the client holds right now.
packages/sdk/python/caveman_cloud/core.py:2298
↓ 18 callersFunctionwarn
()
packages/cli/src/index.ts:3347
↓ 17 callersMethodFlush
Flush returns once every row recorded so far is in the sink. A reader that must see the request it follows (a session's receipt) calls it first. Witho
proxy/internal/gateway/recorder.go:192
↓ 17 callersMethodObserve
(rec RequestRecord)
proxy/internal/gateway/route.go:154
↓ 17 callersMethodRead
(p []byte)
proxy/internal/gateway/route.go:1581
↓ 17 callersFunctionRequest
Request renders the caller's body (grammar from) for upstream wire to. Same-grammar requests are fitted (model, effort, params; Messages bodies get fo
proxy/internal/translate/translate.go:152
↓ 17 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
↓ 17 callersMethodUsage
()
proxy/providers/adapter.go:914
↓ 17 callersFunctionasJsonObject
(v: unknown)
packages/cli/src/index.ts:7532
↓ 17 callersFunctionbinOf
(a: AgentProfile)
packages/cli/src/index.ts:316
↓ 17 callersFunctioncliVersion
()
packages/cli/src/index.ts:21889
↓ 17 callersMethodencode
(self, *args, **kwargs)
tests/test_compress_safety.py:333
↓ 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:189
↓ 17 callersMethodinsert
(tx *sql.Tx)
engine/ccr/store_repair.go:535
↓ 17 callersFunctionjsLen
(s string)
engine/pixel/render.go:99
↓ 17 callersFunctionmustPayload
(t *testing.T, body []byte, rules []Rule)
shared/platform/redact/payload_test.go:11
↓ 17 callersFunctionnewPrefixStableServer
(comp Compressor, cache PrefixCache, rt *captureTransport)
proxy/internal/gateway/prefix_stability_test.go:166
↓ 17 callersFunctionobserve
(attempt: Attempt, event: 'dispatch_intent' | 'completed' | 'failed' | 'cancelled', usage: Usage | null = null
packages/middleware/typescript/src/common.ts:25
↓ 17 callersFunctionrawRequest
(t *testing.T, from, to, body string, opts Options)
proxy/internal/translate/helpers_test.go:29
↓ 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:80
↓ 17 callersFunctionsection
(title: str)
tests/verify_repo.py:39
↓ 17 callersMethodstop
(child: ChildProcess | undefined)
packages/pi-extension/src/recovery.ts:214
↓ 17 callersFunctionstubEnv
(base, dir)
packages/cli/tests/harness/stub-bin.mjs:78
↓ 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:39
↓ 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 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 callersFunctionNewNamed
NewNamed builds a dedicated OpenAI-compatible upstream mounted at compat/<name>/. The provider enum intentionally stays openai_compatible so usage/cos
proxy/providers/openaicompat/openaicompat.go:358
↓ 16 callersFunctionNewTerminal
NewTerminal returns the default terminal/command-output compressor.
engine/compressors/terminal.go:53
↓ 16 callersMethodRecall
Recall returns the memories most relevant to query, ranked by BM25, filtered by the threshold, and compressed for injection. It fails toward no recall
mem/store.go:433
↓ 16 callersMethodSummary
Summary returns aggregate spend across all recorded requests. The savings basis is "inferred" whenever any row carries a non-`verified` basis, which i
proxy/internal/store/store.go:997
↓ 16 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
↓ 16 callersFunction_bundle_with_policies
(policies: list[Any], **overrides: Any)
packages/sdk/python/tests/test_runtime_policy.py:638
↓ 16 callersFunctionappendComma
appendComma appends a comma unless dst ends an opening bracket.
proxy/internal/translate/jsonfast.go:300
↓ 16 callersFunctionclaudeConfigDir
(env: NodeJS.ProcessEnv = process.env)
packages/cli/src/index.ts:7675
↓ 16 callersFunctionconfig
(refreshTimeoutMs = 5000)
packages/cli/src/index.ts:22835
↓ 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 callersFunctiondecodeTool
(t *testing.T, raw json.RawMessage)
mcp/server_test.go:64
↓ 16 callersFunctionint64FromAny
(v any)
proxy/internal/store/usage_import.go:546
↓ 16 callersFunctionopenElem
openElem starts one more element of a JSON array being built in arr: '[' before the first, a comma before every other (the caller closes it).
proxy/internal/translate/jsonfast.go:519
↓ 16 callersFunctionparseJsonFileObject
(path: string, bytes: Buffer | null)
packages/cli/src/index.ts:8687
↓ 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 callersMethodsettings
settings re-reads the CLI state when cloud.json or the credentials file changed (login, logout, token refresh and `caveman on|off` all rewrite cloud.j
proxy/internal/cloudlink/link.go:214
↓ 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
↓ 16 callersFunctionwriteClaudeProject
(t *testing.T, root, slug, file string, lines []string)
proxy/internal/store/trial_feature_test.go:377
↓ 15 callersFunctionDefaultTransformOptions
(model string)
engine/pixel/types.go:152
↓ 15 callersFunctionNew
New builds a Provider from opts.
shared/platform/awscreds/awscreds.go:111
← previousnext →201–300 of 12,391, ranked by callers