Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JuliusBrussee/caveman
/ functions
Functions
9,729 in github.com/JuliusBrussee/caveman
⨍
Functions
9,729
◇
Types & classes
1,056
↳
Endpoints
5
↓ 668 callers
Function
append
(base: URL, path: string)
packages/cli/src/provider-routing.ts:47
↓ 492 callers
Function
string
()
packages/middleware/typescript/src/wire.ts:14
↓ 430 callers
Method
Close
()
browse/session.go:35
↓ 282 callers
Method
get
(self, artifact_id: str)
packages/sdk/python/caveman_cloud/core.py:1352
↓ 280 callers
Method
String
String returns the class name, or "S?" for an unknown class.
engine/safety/safety.go:65
↓ 241 callers
Method
Run
Run keeps storage work off the request path until ctx ends: batched retrieve renewals every second and an expiry sweep every minute. Without it nothin
proxy/internal/middleware/runtime.go:606
↓ 207 callers
Function
resolve
(index: int)
packages/sdk/python/tests/test_trace_continuity.py:172
↓ 185 callers
Method
Get
Get returns the exact original bytes for a handle, or ErrNotFound.
engine/ccr/store_wasm.go:77
↓ 165 callers
Method
replace
replace returns the input with all matches replaced by [REDACTED:<name>].
shared/platform/redact/redact.go:94
↓ 162 callers
Method
close
Destroys pooled and in-flight sockets, including tunnels still being set up.
packages/sdk/typescript/src/middleware/transport.ts:14
↓ 147 callers
Function
test
(name, fn)
packages/shared/contracts/conformance/run.mjs:65
↓ 144 callers
Method
ok
(self)
packages/sdk/python/caveman_cloud/core.py:130
↓ 143 callers
Method
Compress
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
↓ 136 callers
Method
Add
Add accumulates another batch's counts. Legacy is a property of the authority, not of a batch, so the larger report wins.
proxy/internal/store/middleware.go:703
↓ 130 callers
Method
write
write runs fn in a write transaction that stamps and bounds rows by principal; the principal's own quota overrides the runtime-wide one.
proxy/internal/middleware/runtime.go:299
↓ 123 callers
Method
resolve
resolve returns the window a turn is measured against. inferred is true when the session's own context exceeded the assumed window; exact still report
proxy/internal/store/learn.go:1313
↓ 121 callers
Method
Handler
Handler returns the standalone HTTP handler: health, metrics, and the proxy catch-all, plus the separately authenticated framework optimization API.
proxy/internal/gateway/server.go:584
↓ 118 callers
Method
Now
()
proxy/internal/identity/oidc_test.go:88
↓ 116 callers
Method
Scan
(dest ...any)
mem/store.go:619
↓ 114 callers
Function
Path
(home string, port int)
proxy/internal/runstate/runstate.go:102
↓ 111 callers
Method
now
()
shared/platform/awscreds/awscreds_test.go:27
↓ 105 callers
Function
int
(raw: Raw, key: string, max = MAX_TOKENS)
supabase/functions/cli-telemetry/ingest.ts:50
↓ 95 callers
Function
String
(body []byte, span Span)
proxy/providers/jsonsplice/jsonsplice.go:84
↓ 93 callers
Function
Open
Open opens (creating if needed) the SQLite database at path and migrates the schema. logger may be nil.
proxy/internal/store/store.go:354
↓ 93 callers
Function
str
(v: unknown)
packages/cli/src/index.ts:10846
↓ 92 callers
Method
add
(self, value, attributes)
packages/sdk/python/tests/test_middleware_v1_1.py:795
↓ 83 callers
Method
encode
(self, *args, **kwargs)
tests/test_compress_safety.py:176
↓ 79 callers
Function
OpenMemory
OpenMemory returns a fresh in-memory store.
engine/ccr/store_wasm.go:41
↓ 79 callers
Method
end
()
packages/sdk/typescript/src/middleware/runtime.ts:21
↓ 76 callers
Method
Error
()
proxy/internal/middleware/protocol.go:317
↓ 74 callers
Method
Count
Count returns a local token estimate for b.
engine/tokens/tokens.go:21
↓ 74 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
proxy/internal/gateway/middleware_ops_test.go:17
↓ 69 callers
Function
print
(value: unknown)
packages/cli/src/index.ts:19534
↓ 67 callers
Function
setTimeout
(fn)
tests/test_mcp_shrink.js:361
↓ 66 callers
Method
Error
()
engine/compressors/compressor.go:204
↓ 65 callers
Function
New
(baseURL string)
proxy/providers/openai/openai.go:11
↓ 65 callers
Function
New
New constructs a standalone proxy Server.
proxy/internal/gateway/server.go:518
↓ 65 callers
Method
write
(w *bufio.Writer, resp rpcResponse)
mcp/server.go:232
↓ 64 callers
Function
mark
(state: "ok" | "bad" | "warn")
packages/cli/src/index.ts:19611
↓ 63 callers
Function
New
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:40
↓ 62 callers
Method
Error
()
mem/cmd/cavemem/main_test.go:308
↓ 62 callers
Method
last
(t *testing.T)
proxy/internal/gateway/server_test.go:69
↓ 61 callers
Function
serveBody
(t *testing.T, srv *Server, path, body string, headers map[string]string)
proxy/internal/gateway/live_zone_test.go:118
↓ 60 callers
Function
String
(name, fallback string)
shared/platform/env/env.go:14
↓ 59 callers
Function
requestFor
(r *Runtime)
proxy/internal/middleware/runtime_test.go:101
↓ 59 callers
Function
test
(name, fn)
tests/test_mcp_shrink.js:23
↓ 57 callers
Method
kill
Latch this client off. Every later `decide()` returns the caller's baseline.
packages/sdk/typescript/src/index.ts:1196
↓ 55 callers
Method
run
()
proxy/internal/gateway/capture.go:206
↓ 54 callers
Method
Format
Format renders a rollup as a stable, human-readable string.
engine/evals/fixtures/sample.go:70
↓ 53 callers
Function
New
(baseURL string)
proxy/providers/anthropic/anthropic.go:24
↓ 53 callers
Method
ServeHTTP
(w http.ResponseWriter, request *http.Request)
proxy/internal/middleware/http.go:48
↓ 50 callers
Method
reset
(self)
packages/middleware/python/caveman_middleware/autogen.py:466
↓ 49 callers
Method
observe
(self, event, usage=None)
packages/middleware/python/caveman_middleware/_native.py:265
↓ 48 callers
Method
Valid
Valid reports whether c is a registered class.
engine/safety/safety.go:59
↓ 48 callers
Function
newFixture
(t *testing.T)
proxy/internal/middleware/runtime_test.go:65
↓ 44 callers
Function
fn
()
packages/sdk/python/tests/test_structural.py:61
↓ 44 callers
Function
patch
Apply {op: set|delete|append, path, value} patches to a deep copy of `doc`.
packages/sdk/typescript/tests/middleware-v1_1.runtime.mjs:13
↓ 44 callers
Function
set
(obj, cb)
extension/popup.js:15
↓ 42 callers
Function
cancel
(reason)
packages/middleware/typescript/src/common.ts:164
↓ 41 callers
Function
newAdapter
(t *testing.T)
proxy/providers/bedrock/bedrock_test.go:16
↓ 41 callers
Function
newTestPrefixCache
()
proxy/internal/gateway/prefix_stability_test.go:41
↓ 40 callers
Function
New
New assembles a standalone gateway server from a config and a telemetry sink.
proxy/internal/standalone/standalone.go:297
↓ 40 callers
Function
optimizeOK
(t *testing.T, r *Runtime, req OptimizeRequest)
proxy/internal/middleware/runtime_test.go:126
↓ 39 callers
Function
dim
(s: string)
packages/cli/src/index.ts:19605
↓ 37 callers
Function
require_adapter
Import an eligible adapter; skip only absent/unsupported optional extras.
packages/middleware/python/tests/frameworks.py:32
↓ 36 callers
Method
ResolveUpstreamURL
(ctx context.Context, req *http.Request, route RouteContext)
proxy/providers/adapter.go:344
↓ 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:360
↓ 35 callers
Function
cavemanHome
()
packages/cli/src/index.ts:11186
↓ 35 callers
Function
digest
(b []byte)
proxy/internal/middleware/runtime.go:282
↓ 34 callers
Method
Record
(RequestRecord)
proxy/internal/gateway/server.go:77
↓ 34 callers
Method
optimize
(options: OptimizeOptions)
packages/sdk/typescript/src/middleware/runtime.ts:332
↓ 34 callers
Function
which
(cmd: string)
packages/cli/src/index.ts:19758
↓ 33 callers
Method
WriteHeader
(status int)
proxy/internal/gateway/server.go:689
↓ 33 callers
Method
values
()
packages/middleware/typescript/src/langchain-model.ts:142
↓ 32 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:180
↓ 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
next
(...args: [] | [unknown])
packages/middleware/typescript/src/google.ts:178
↓ 32 callers
Function
send
send POSTs body as principal, with the features header when given.
proxy/internal/middleware/protocol_v11_test.go:74
↓ 31 callers
Function
New
(store *ccr.Store)
proxy/internal/nativeruntime/runtime.go:143
↓ 31 callers
Function
Open
Open ignores path (there is no filesystem) and returns an in-memory store.
engine/ccr/store_wasm.go:34
↓ 31 callers
Method
Open
Open reports that no credential is configured: every caller is the operator.
proxy/internal/identity/identity.go:188
↓ 31 callers
Function
flagFrom
(values: string[], name: string, fallback: string)
packages/cli/src/index.ts:17737
↓ 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
all
all loads every memory.
mem/store.go:599
↓ 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
openRetroTestStore
(t *testing.T)
proxy/internal/store/learn_retro_test.go:126
↓ 29 callers
Method
Handle
(_ context.Context, request Request)
proxy/internal/nativeruntime/runtime.go:205
↓ 29 callers
Function
clearTimeout
(id)
tests/test_mcp_shrink.js:362
↓ 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
Complete
(context.Context, ModelRequest)
engine/evals/quality.go:41
↓ 28 callers
Function
plain
(value: Any)
packages/middleware/python/caveman_middleware/_native.py:22
↓ 28 callers
Function
writeFile
(t *testing.T, path, content string)
proxy/internal/identity/identity_test.go:23
↓ 27 callers
Method
ListSessionObjects
(sessionID string, limit int)
engine/ccr/store_wasm.go:175
↓ 27 callers
Function
failureCode
(t *testing.T, body []byte)
proxy/internal/middleware/acceptance_test.go:52
↓ 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
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:892
↓ 26 callers
Function
apply
(t *testing.T, body string, policy providers.TransformPolicy)
proxy/providers/openai/cache_key_test.go:17
↓ 26 callers
Function
fileBytes
(path: string)
packages/cli/src/index.ts:7107
↓ 25 callers
Function
Field
(body []byte, object Span, name string)
proxy/providers/jsonsplice/jsonsplice.go:30
↓ 25 callers
Function
firstString
(values ...any)
proxy/internal/store/usage_import.go:530
next →
1–100 of 9,729, ranked by callers