MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

↓ 40 callersFunctionsend
send POSTs body as principal, with the features header when given.
proxy/internal/middleware/protocol_v11_test.go:74
↓ 40 callersFunctionserve
serve runs reply.Serve over an upstream answering payload; cut breaks the body after it.
proxy/internal/translate/helpers_test.go:45
↓ 39 callersFunctionwhich
(cmd: string)
packages/cli/src/index.ts:23605
↓ 38 callersMethodHandle
Handle decides one packed host event. The context is the hook deadline and it is honored: the thin host adapter across the socket gives up at the same
proxy/internal/nativeruntime/runtime.go:247
↓ 38 callersMethodResolveUpstreamURL
(ctx context.Context, req *http.Request, route RouteContext)
proxy/providers/adapter.go:353
↓ 38 callersFunctionrunCli
(argv, options = {})
packages/cli/tests/_cli.mjs:64
↓ 38 callersMethodstr
str is the value of key decoded as a string ("" when absent or not one).
proxy/internal/translate/jsonfast.go:197
↓ 37 callersMethodListSessionObjects
(sessionID string, limit int)
engine/ccr/store_wasm.go:175
↓ 37 callersMethodall
all loads every memory.
mem/store.go:621
↓ 37 callersFunctioncloudHome
cloudHome writes the CLI state a signed-in user with routing on leaves.
proxy/internal/cloudlink/link_test.go:33
↓ 37 callersFunctionfileBytes
(path: string)
packages/cli/src/index.ts:8795
↓ 37 callersFunctionrequire_adapter
Import an eligible adapter; skip only absent/unsupported optional extras.
packages/middleware/python/tests/frameworks.py:32
↓ 37 callersFunctiontoken
(exp time.Time)
proxy/internal/cloudlink/link_test.go:51
↓ 36 callersFunctionElements
(body []byte, array Span)
proxy/providers/jsonsplice/jsonsplice.go:110
↓ 36 callersMethodPutObject
(input Object)
engine/ccr/store_wasm.go:118
↓ 36 callersMethodlast
()
proxy/internal/gateway/route_effort_test.go:121
↓ 35 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:369
↓ 35 callersFunctionLoad
Load reads caveman.yaml from path, applying defaults. A missing file yields the default config (record mode on 127.0.0.1:8787) rather than an error: a
proxy/internal/config/config.go:191
↓ 35 callersFunctiondigest
(b []byte)
proxy/internal/middleware/runtime.go:282
↓ 34 callersFunctionStringField
(body []byte, object Span, name string)
proxy/providers/jsonsplice/jsonsplice.go:141
↓ 34 callersFunctionappendString
appendString appends s as a JSON string. Invalid UTF-8 becomes U+FFFD, as encoding/json writes it.
proxy/internal/translate/jsonfast.go:244
↓ 34 callersMethodoptimize
(options: OptimizeOptions)
packages/sdk/typescript/src/middleware/runtime.ts:332
↓ 33 callersMethodat
(c byte)
proxy/providers/inspect.go:148
↓ 33 callersFunctionsse
--- SSE -------------------------------------------------------------------- sse renders data frames; Anthropic frames also carry their event line.
proxy/internal/translate/helpers_test.go:70
↓ 32 callersMethodError
()
proxy/internal/gateway/prefix_stability_test.go:88
↓ 32 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:1049
↓ 32 callersFunctionfail_open
Non-strict: warn once and return ``adapter_error`` so the caller passes the original input through. Strict: raise, keeping an SDK ``MiddlewareErr
packages/middleware/python/caveman_middleware/_guard.py:11
↓ 32 callersFunctionflagFrom
(values: string[], name: string, fallback: string)
packages/cli/src/index.ts:21561
↓ 32 callersFunctionmessagesAsk
(model string)
proxy/internal/cloudlink/link_test.go:62
↓ 32 callersFunctionnext
(...args: [] | [unknown])
packages/middleware/typescript/src/google.ts:178
↓ 32 callersFunctionturnText
(n int)
proxy/internal/gateway/prefix_stability_test.go:162
↓ 31 callersMethodComplete
(context.Context, ModelRequest)
engine/evals/quality.go:41
↓ 31 callersMethodadvance
(d time.Duration)
proxy/internal/gateway/cache_warm_test.go:58
↓ 31 callersMethodsearch
(query: string, opts?: { server?: string; limit?: number })
packages/middleware/typescript/src/codemode.ts:80
↓ 31 callersMethodsend
(self, prompt)
tests/test_mode_tracker.py:39
↓ 30 callersMethodGetObject
(id string)
engine/ccr/store_wasm.go:135
↓ 30 callersMethodWithMiddleware
WithMiddleware runs fn in a write transaction whose reads see every write committed by a competing writer of the same data before fn's decisions.
proxy/internal/store/middleware.go:249
↓ 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:2431
↓ 30 callersFunctionfirstString
(values ...any)
proxy/internal/store/usage_import.go:530
↓ 30 callersFunctiongatewayURL
()
packages/cli/src/index.ts:157
↓ 30 callersFunctionisStr
isStr reports a JSON string token.
proxy/internal/translate/jsonfast.go:214
↓ 30 callersFunctionmoduleHost
()
packages/cli/src/modules/apply.ts:121
↓ 30 callersFunctionopenRetroTestStore
(t *testing.T)
proxy/internal/store/learn_retro_test.go:126
↓ 29 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:48
↓ 29 callersMethodflag_value
(self)
tests/test_mode_tracker.py:56
↓ 29 callersFunctionmark
(effort string)
proxy/internal/gateway/route_effort_test.go:188
↓ 29 callersFunctionpeer_runtime
A real SDK runtime with a deterministic protocol peer, never a provider. This validates adapter projection and recovery plumbing, not Engine qual
packages/middleware/python/tests/conftest.py:80
↓ 28 callersMethodCompress
(input []byte, opts engine.Options)
mcp/engine_tools.go:20
↓ 28 callersMethodString
()
mcp/codemode/stdio_upstream.go:445
↓ 28 callersFunctionplain
(value: Any)
packages/middleware/python/caveman_middleware/_native.py:22
↓ 28 callersFunctionwrapMode
(gw = gatewayURL())
packages/cli/src/index.ts:7501
↓ 28 callersFunctionwriteFile
(t *testing.T, path, content string)
proxy/internal/identity/identity_test.go:23
↓ 27 callersMethodName
()
proxy/providers/adapter.go:351
↓ 27 callersFunctionasMap
(v any)
proxy/internal/store/usage_import.go:523
↓ 27 callersFunctionchatgptTestServer
chatgptTestServer wires a Server whose /chatgpt upstream is a local stub.
proxy/internal/gateway/chatgpt_test.go:46
↓ 27 callersFunctioncopy
(source, ...target)
installer/lib/host-hooks.js:27
↓ 27 callersFunctionfailureCode
(t *testing.T, body []byte)
proxy/internal/middleware/acceptance_test.go:52
↓ 27 callersFunctionllm_env
(**overrides)
tests/test_compress_safety.py:50
↓ 27 callersFunctionnewRecurringMiner
()
proxy/internal/store/recurring.go:177
↓ 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:376
↓ 26 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
↓ 26 callersMethodWriteHeader
(status int)
proxy/internal/gateway/server.go:781
↓ 26 callersFunctionapply
(t *testing.T, body string, policy providers.TransformPolicy)
proxy/providers/openai/cache_key_test.go:17
↓ 26 callersMethodexecute
( args: { steps?: CodeModePipelineStep[]; tool?: string; args?: Record<string, unknown>; return_step?: str
packages/middleware/typescript/src/codemode.ts:84
↓ 26 callersMethodfail
fail reports an upstream failure: before content nothing reaches the caller (the gate keeps it); after content an error chunk ends the stream, without
proxy/internal/translate/chat_stream.go:210
↓ 26 callersFunctioninvokedAs
()
packages/cli/src/index.ts:837
↓ 25 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:359
↓ 25 callersMethodWrite
(p []byte)
proxy/internal/translate/translate.go:429
↓ 25 callersFunctionauto
auto turns a route-stage test request into an Auto one that runs on the model it named: that model is Auto's fallback for the test, so the route stage
proxy/internal/gateway/route_test.go:47
↓ 25 callersFunctionisolatedEnv
(home, binDirs = [])
tests/installer/_isolated-env.mjs:13
↓ 25 callersFunctionnewWarmFixture
(t *testing.T, rt *warmTransport, base string, logger *slog.Logger)
proxy/internal/gateway/cache_warm_test.go:190
↓ 25 callersFunctionplain
(value: unknown)
packages/middleware/typescript/src/common.ts:39
↓ 25 callersFunctionreqBody
catalog: input 2.00, read 0.20, write 2.50 / 1h 4.00 per M
proxy/internal/gateway/cache_warm_test.go:169
↓ 24 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
↓ 24 callersMethodExecContext
(ctx context.Context, query string, args ...any)
proxy/internal/store/store.go:463
↓ 24 callersMethodParseUsage
(ctx context.Context, responseHeaders http.Header, streamOrBody io.Reader)
proxy/providers/adapter.go:370
↓ 24 callersMethodWrite
(p []byte)
proxy/providers/adapter.go:899
↓ 24 callersFunctionnewRetroFixture
(t *testing.T)
proxy/internal/store/learn_retro_test.go:114
↓ 24 callersMethodrun_reply
(self, original, replies, accepted, expected=None)
tests/test_compress_frontmatter.py:24
↓ 23 callersMethodExtractStabilizable
(body []byte, meta providers.RequestMetadata)
proxy/providers/azureopenai/content_compress_test.go:29
↓ 23 callersMethod_file_with
(self, dirpath: Path, text: str)
tests/test_compress_safety.py:66
↓ 23 callersFunctioncall
(t *testing.T, r *Runtime, path string, body any, principal string)
proxy/internal/middleware/runtime_test.go:113
↓ 23 callersFunctionfindAgent
(requested: string)
packages/cli/src/index.ts:342
↓ 23 callersFunctionparseObj
(b []byte)
proxy/internal/translate/jsonfast.go:161
↓ 23 callersFunctionpoolSend
(t *testing.T, srv *Server, body string)
proxy/internal/gateway/route_pool_test.go:142
↓ 23 callersMethodserve
(t *testing.T, body string, headers map[string]string)
proxy/internal/gateway/cache_warm_test.go:217
↓ 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 callersFunctionNew
(baseURL string)
proxy/providers/gemini/gemini.go:85
↓ 22 callersFunctionOpenWithBudget
OpenWithBudget mirrors the host API. WASM storage is session-memory only; browser-host quota enforcement belongs to the embedding host.
engine/ccr/store_wasm.go:38
↓ 22 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
↓ 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 callersFunctioncodexBody
codexBody is a Codex-shaped request: store false, stream true, the whole input, reasoning.encrypted_content included, tool_choice auto.
proxy/internal/translate/helpers_test.go:286
↓ 22 callersFunctioneachItem
eachItem calls fn with each element of the array arr: its raw bytes and, for an object, its members, read in the same pass. False when arr is not a we
proxy/internal/translate/jsonfast.go:403
↓ 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
↓ 22 callersMethodget
Get returns the exact original bytes for a handle, or ErrNotFound.
engine/ccr/store_sqlite.go:874
↓ 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 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 callersFunctioncavemanBin
(name: string, envVar: string)
packages/cli/src/index.ts:14164
↓ 21 callersFunctioncodexHomeDir
(env: NodeJS.ProcessEnv = process.env)
packages/cli/src/index.ts:7915
← previousnext →101–200 of 12,853, ranked by callers