Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JuliusBrussee/caveman
/ functions
Functions
12,853 in github.com/JuliusBrussee/caveman
⨍
Functions
12,853
◇
Types & classes
1,364
↳
Endpoints
5
↓ 40 callers
Function
send
send POSTs body as principal, with the features header when given.
proxy/internal/middleware/protocol_v11_test.go:74
↓ 40 callers
Function
serve
serve runs reply.Serve over an upstream answering payload; cut breaks the body after it.
proxy/internal/translate/helpers_test.go:45
↓ 39 callers
Function
which
(cmd: string)
packages/cli/src/index.ts:23605
↓ 38 callers
Method
Handle
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 callers
Method
ResolveUpstreamURL
(ctx context.Context, req *http.Request, route RouteContext)
proxy/providers/adapter.go:353
↓ 38 callers
Function
runCli
(argv, options = {})
packages/cli/tests/_cli.mjs:64
↓ 38 callers
Method
str
str is the value of key decoded as a string ("" when absent or not one).
proxy/internal/translate/jsonfast.go:197
↓ 37 callers
Method
ListSessionObjects
(sessionID string, limit int)
engine/ccr/store_wasm.go:175
↓ 37 callers
Method
all
all loads every memory.
mem/store.go:621
↓ 37 callers
Function
cloudHome
cloudHome writes the CLI state a signed-in user with routing on leaves.
proxy/internal/cloudlink/link_test.go:33
↓ 37 callers
Function
fileBytes
(path: string)
packages/cli/src/index.ts:8795
↓ 37 callers
Function
require_adapter
Import an eligible adapter; skip only absent/unsupported optional extras.
packages/middleware/python/tests/frameworks.py:32
↓ 37 callers
Function
token
(exp time.Time)
proxy/internal/cloudlink/link_test.go:51
↓ 36 callers
Function
Elements
(body []byte, array Span)
proxy/providers/jsonsplice/jsonsplice.go:110
↓ 36 callers
Method
PutObject
(input Object)
engine/ccr/store_wasm.go:118
↓ 36 callers
Method
last
()
proxy/internal/gateway/route_effort_test.go:121
↓ 35 callers
Method
ExtractCompressible
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 callers
Function
Load
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 callers
Function
digest
(b []byte)
proxy/internal/middleware/runtime.go:282
↓ 34 callers
Function
StringField
(body []byte, object Span, name string)
proxy/providers/jsonsplice/jsonsplice.go:141
↓ 34 callers
Function
appendString
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 callers
Method
optimize
(options: OptimizeOptions)
packages/sdk/typescript/src/middleware/runtime.ts:332
↓ 33 callers
Method
at
(c byte)
proxy/providers/inspect.go:148
↓ 33 callers
Function
sse
--- SSE -------------------------------------------------------------------- sse renders data frames; Anthropic frames also carry their event line.
proxy/internal/translate/helpers_test.go:70
↓ 32 callers
Method
Error
()
proxy/internal/gateway/prefix_stability_test.go:88
↓ 32 callers
Function
ParseUsageBytes
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 callers
Function
fail_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 callers
Function
flagFrom
(values: string[], name: string, fallback: string)
packages/cli/src/index.ts:21561
↓ 32 callers
Function
messagesAsk
(model string)
proxy/internal/cloudlink/link_test.go:62
↓ 32 callers
Function
next
(...args: [] | [unknown])
packages/middleware/typescript/src/google.ts:178
↓ 32 callers
Function
turnText
(n int)
proxy/internal/gateway/prefix_stability_test.go:162
↓ 31 callers
Method
Complete
(context.Context, ModelRequest)
engine/evals/quality.go:41
↓ 31 callers
Method
advance
(d time.Duration)
proxy/internal/gateway/cache_warm_test.go:58
↓ 31 callers
Method
search
(query: string, opts?: { server?: string; limit?: number })
packages/middleware/typescript/src/codemode.ts:80
↓ 31 callers
Method
send
(self, prompt)
tests/test_mode_tracker.py:39
↓ 30 callers
Method
GetObject
(id string)
engine/ccr/store_wasm.go:135
↓ 30 callers
Method
WithMiddleware
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 callers
Method
decide
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 callers
Function
firstString
(values ...any)
proxy/internal/store/usage_import.go:530
↓ 30 callers
Function
gatewayURL
()
packages/cli/src/index.ts:157
↓ 30 callers
Function
isStr
isStr reports a JSON string token.
proxy/internal/translate/jsonfast.go:214
↓ 30 callers
Function
moduleHost
()
packages/cli/src/modules/apply.ts:121
↓ 30 callers
Function
openRetroTestStore
(t *testing.T)
proxy/internal/store/learn_retro_test.go:126
↓ 29 callers
Method
Detect
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 callers
Method
flag_value
(self)
tests/test_mode_tracker.py:56
↓ 29 callers
Function
mark
(effort string)
proxy/internal/gateway/route_effort_test.go:188
↓ 29 callers
Function
peer_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 callers
Method
Compress
(input []byte, opts engine.Options)
mcp/engine_tools.go:20
↓ 28 callers
Method
String
()
mcp/codemode/stdio_upstream.go:445
↓ 28 callers
Function
plain
(value: Any)
packages/middleware/python/caveman_middleware/_native.py:22
↓ 28 callers
Function
wrapMode
(gw = gatewayURL())
packages/cli/src/index.ts:7501
↓ 28 callers
Function
writeFile
(t *testing.T, path, content string)
proxy/internal/identity/identity_test.go:23
↓ 27 callers
Method
Name
()
proxy/providers/adapter.go:351
↓ 27 callers
Function
asMap
(v any)
proxy/internal/store/usage_import.go:523
↓ 27 callers
Function
chatgptTestServer
chatgptTestServer wires a Server whose /chatgpt upstream is a local stub.
proxy/internal/gateway/chatgpt_test.go:46
↓ 27 callers
Function
copy
(source, ...target)
installer/lib/host-hooks.js:27
↓ 27 callers
Function
failureCode
(t *testing.T, body []byte)
proxy/internal/middleware/acceptance_test.go:52
↓ 27 callers
Function
llm_env
(**overrides)
tests/test_compress_safety.py:50
↓ 27 callers
Function
newRecurringMiner
()
proxy/internal/store/recurring.go:177
↓ 27 callers
Method
trace
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 callers
Method
Remember
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 callers
Method
WriteHeader
(status int)
proxy/internal/gateway/server.go:781
↓ 26 callers
Function
apply
(t *testing.T, body string, policy providers.TransformPolicy)
proxy/providers/openai/cache_key_test.go:17
↓ 26 callers
Method
execute
( args: { steps?: CodeModePipelineStep[]; tool?: string; args?: Record<string, unknown>; return_step?: str
packages/middleware/typescript/src/codemode.ts:84
↓ 26 callers
Method
fail
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 callers
Function
invokedAs
()
packages/cli/src/index.ts:837
↓ 25 callers
Method
SanitizeAndMapHeaders
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 callers
Method
Write
(p []byte)
proxy/internal/translate/translate.go:429
↓ 25 callers
Function
auto
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 callers
Function
isolatedEnv
(home, binDirs = [])
tests/installer/_isolated-env.mjs:13
↓ 25 callers
Function
newWarmFixture
(t *testing.T, rt *warmTransport, base string, logger *slog.Logger)
proxy/internal/gateway/cache_warm_test.go:190
↓ 25 callers
Function
plain
(value: unknown)
packages/middleware/typescript/src/common.ts:39
↓ 25 callers
Function
reqBody
catalog: input 2.00, read 0.20, write 2.50 / 1h 4.00 per M
proxy/internal/gateway/cache_warm_test.go:169
↓ 24 callers
Function
Default
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 callers
Method
ExecContext
(ctx context.Context, query string, args ...any)
proxy/internal/store/store.go:463
↓ 24 callers
Method
ParseUsage
(ctx context.Context, responseHeaders http.Header, streamOrBody io.Reader)
proxy/providers/adapter.go:370
↓ 24 callers
Method
Write
(p []byte)
proxy/providers/adapter.go:899
↓ 24 callers
Function
newRetroFixture
(t *testing.T)
proxy/internal/store/learn_retro_test.go:114
↓ 24 callers
Method
run_reply
(self, original, replies, accepted, expected=None)
tests/test_compress_frontmatter.py:24
↓ 23 callers
Method
ExtractStabilizable
(body []byte, meta providers.RequestMetadata)
proxy/providers/azureopenai/content_compress_test.go:29
↓ 23 callers
Method
_file_with
(self, dirpath: Path, text: str)
tests/test_compress_safety.py:66
↓ 23 callers
Function
call
(t *testing.T, r *Runtime, path string, body any, principal string)
proxy/internal/middleware/runtime_test.go:113
↓ 23 callers
Function
findAgent
(requested: string)
packages/cli/src/index.ts:342
↓ 23 callers
Function
parseObj
(b []byte)
proxy/internal/translate/jsonfast.go:161
↓ 23 callers
Function
poolSend
(t *testing.T, srv *Server, body string)
proxy/internal/gateway/route_pool_test.go:142
↓ 23 callers
Method
serve
(t *testing.T, body string, headers map[string]string)
proxy/internal/gateway/cache_warm_test.go:217
↓ 22 callers
Method
BuildLearnPlanWithRetro
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 callers
Function
New
(baseURL string)
proxy/providers/gemini/gemini.go:85
↓ 22 callers
Function
OpenWithBudget
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 callers
Function
ToolError
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 callers
Function
_refresh_with
(client: RuntimePolicyClient, payload: Any, captured: list[dict[str, Any]] | None = None)
packages/sdk/python/tests/test_runtime_policy.py:107
↓ 22 callers
Function
codexBody
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 callers
Function
eachItem
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 callers
Method
exporter
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 callers
Method
get
Get returns the exact original bytes for a handle, or ErrNotFound.
engine/ccr/store_sqlite.go:874
↓ 21 callers
Method
BuildLearnPlan
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 callers
Function
_make_cave
()
packages/sdk/python/tests/test_runtime_policy.py:79
↓ 21 callers
Function
call
(runtime, binding=None, **overrides)
packages/sdk/python/tests/test_middleware_v1_1.py:106
↓ 21 callers
Function
cavemanBin
(name: string, envVar: string)
packages/cli/src/index.ts:14164
↓ 21 callers
Function
codexHomeDir
(env: NodeJS.ProcessEnv = process.env)
packages/cli/src/index.ts:7915
← previous
next →
101–200 of 12,853, ranked by callers