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
↓ 10 callers
Function
New
(baseURL string)
proxy/providers/openaicompat/openaicompat.go:19
↓ 10 callers
Function
New
New returns a link reading the CLI state under home ($CAVEMAN_HOME).
proxy/internal/cloudlink/link.go:164
↓ 10 callers
Function
NewTestReport
NewTestReport returns the default test-report compressor.
engine/compressors/testreport.go:21
↓ 10 callers
Function
_owned
(attempt)
packages/middleware/python/caveman_middleware/llama_index.py:310
↓ 10 callers
Function
_signed_payload
(bundle: str = BUNDLE)
packages/sdk/python/tests/test_runtime_policy.py:99
↓ 10 callers
Function
_urlopen
(req: urllib.request.Request, *, timeout: float)
packages/sdk/python/caveman_cloud/core.py:36
↓ 10 callers
Function
authority
(principal string, s Scope)
proxy/internal/middleware/runtime.go:284
↓ 10 callers
Function
blockString
(block map[string]any, key string)
engine/pixel/transform_anthropic.go:1396
↓ 10 callers
Function
caveFetch
* Shared bounded transport for every SDK request. * * The explicit abort race is intentional: callers still settle on deadline when * a custom fetc
packages/sdk/typescript/src/index.ts:1998
↓ 10 callers
Function
createMiddlewareRuntime
(options: RuntimeOptions = {})
packages/sdk/typescript/src/middleware/runtime.ts:687
↓ 10 callers
Function
currentOwner
()
packages/middleware/typescript/src/common.ts:22
↓ 10 callers
Method
doUpstream
doUpstream retries only connection-setup failures: the provider has not received a request. A missing response does NOT prove an inference POST was un
proxy/internal/gateway/proxy.go:41
↓ 10 callers
Function
e2eHandle
(b []byte)
proxy/internal/store/prefix_stability_e2e_test.go:68
↓ 10 callers
Function
echoUpstream
(t *testing.T, got *string)
proxy/internal/gateway/compress_test.go:284
↓ 10 callers
Function
emitCommandRunOnce
(exitClass: TelemetryExitClass, errorClass?: TelemetryErrorClass)
packages/cli/src/index.ts:1570
↓ 10 callers
Function
enabled
()
proxy/providers/openai/cache_key_test.go:13
↓ 10 callers
Method
event
(name string, data any)
proxy/internal/translate/messages_stream.go:41
↓ 10 callers
Function
expandTilde
(p: string)
packages/cli/src/index.ts:18586
↓ 10 callers
Function
fatalJSON
(logger *slog.Logger, err error)
proxy/cmd/caveman-proxy/main.go:1269
↓ 10 callers
Function
findObjectField
(body []byte, obj jsonSpan, field string)
proxy/providers/anthropic/splice.go:37
↓ 10 callers
Function
get
(path: string)
packages/cli/src/index.ts:22905
↓ 10 callers
Function
getObject
(root: unknown, path: string[])
packages/cli/src/index.ts:7754
↓ 10 callers
Function
localTarget
(host string)
proxy/internal/gateway/route_pool_test.go:134
↓ 10 callers
Function
markedTurnConversation
markedTurnConversation builds the Claude Code request shape for a conversation of n user turns: every user turn carries a cache_control breakpoint (Cl
proxy/internal/gateway/prefix_stability_test.go:138
↓ 10 callers
Function
memoryHealthEnv
memoryHealthEnv isolates every root the doctor reads so no test touches the real ~/.claude, ~/.codex or ~/.gemini. It returns (claudeRoot, repo).
proxy/internal/store/detect_memory_health_test.go:13
↓ 10 callers
Function
memoryHealthSinks
(cwd string, turnsPerDay float64)
proxy/internal/store/detect_memory_health.go:62
↓ 10 callers
Function
memorySinksWithPrefix
(sinks []Sink, prefix string)
proxy/internal/store/detect_memory_health_test.go:44
↓ 10 callers
Function
mustHome
(logger *slog.Logger)
proxy/cmd/caveman-proxy/main.go:1339
↓ 10 callers
Function
nameConflict
(runtime: MiddlewareRuntime, adapter: string)
packages/middleware/typescript/src/common.ts:113
↓ 10 callers
Function
newUnitWarmer
(send func(context.Context, *warmRequest) bool)
proxy/internal/gateway/cache_warm_policy_test.go:428
↓ 10 callers
Function
normalizeScope
(input: unknown)
packages/sdk/typescript/src/middleware/protocol.ts:19
↓ 10 callers
Method
observe
(event turnEvent)
proxy/internal/store/learn_pricing.go:64
↓ 10 callers
Function
postMessages
(t *testing.T, handler http.Handler, headers map[string]string)
proxy/internal/standalone/auth_token_test.go:58
↓ 10 callers
Method
prepare
(messages:Message[],options:StreamOptions)
packages/middleware/typescript/src/strands.ts:36
↓ 10 callers
Function
probeMcpBinary
()
packages/cli/src/index.ts:14267
↓ 10 callers
Function
reasoningPolicy
(flag, gate bool)
proxy/providers/openai/reasoning_effort_test.go:9
↓ 10 callers
Function
recoveryResult
(adapter: string, signal: AbortSignal | null | undefined, input: unknown, retrieve: (args: RetrieveArgs) =>
packages/middleware/typescript/src/common.ts:125
↓ 10 callers
Method
reject
(refused bool)
proxy/internal/gateway/route.go:122
↓ 10 callers
Method
request
(self, messages: list[ModelMessage], model_settings, model_request_parameters: ModelRequestParameters)
packages/middleware/python/caveman_middleware/pydantic_ai.py:283
↓ 10 callers
Function
requirePeers
(t, adapter)
packages/middleware/typescript/tests/peers.mjs:11
↓ 10 callers
Function
returnsAt
returnsAt is a table whose every class comes back exactly at `at` (in that 30 s bin); a negative `at` never comes back.
proxy/internal/gateway/cache_warm_policy_test.go:21
↓ 10 callers
Function
sign
(value: number)
packages/cli/src/learn-trends.ts:94
↓ 10 callers
Method
start
()
packages/pi-extension/src/recovery.ts:169
↓ 10 callers
Function
str
(raw: Raw, key: string)
supabase/functions/cli-telemetry/ingest.ts:43
↓ 10 callers
Function
testSession
(t *testing.T)
browse/session_test.go:61
↓ 10 callers
Method
tool
(self, name: str, options: dict[str, Any], fn: Callable[[], Any])
packages/sdk/python/caveman_cloud/core.py:1129
↓ 10 callers
Function
trimTrailingSlashes
(s: string)
packages/cli/src/provider-routing.ts:41
↓ 10 callers
Function
validate
(original_path: Path, compressed_path: Path)
skills/caveman-compress/scripts/validate.py:400
↓ 10 callers
Function
with_caveman_anthropic
Return a native SDK clone. Existing native middleware stays in order. Plain ``messages.create`` calls are recovery-free (``recovery_unbound`` in
packages/middleware/python/caveman_middleware/anthropic.py:176
↓ 10 callers
Function
wrapRuntimeConfig
(options: { forStart?: boolean } = {})
packages/cli/src/index.ts:4740
↓ 9 callers
Method
AddUpstream
AddUpstream registers a downstream MCP server and indexes its tool catalog.
mcp/codemode/codemode.go:263
↓ 9 callers
Function
AtlasRank
AtlasRank binary-searches the sorted codepoint table; -1 when absent.
engine/pixel/atlas.go:110
↓ 9 callers
Method
Complete
Complete reports whether both provider token totals were observed and all recognized counters were internally valid. Billing must not extrapolate a pl
proxy/providers/adapter.go:332
↓ 9 callers
Function
New
(listen, mode, owner, version string)
proxy/internal/runstate/runstate.go:113
↓ 9 callers
Function
New
New validates configuration and returns immutable client.
shared/platform/kms/kms.go:75
↓ 9 callers
Function
NewHTTPClient
NewHTTPClient returns an *http.Client whose Transport enforces the SSRF policy at dial time. The caller may set additional fields (Timeout, etc.) on
shared/platform/ssrf/ssrf.go:524
↓ 9 callers
Function
NewNamedWithWireDialect
NewNamedWithWireDialect builds a named mount whose upstream speaks a different wire grammar than the mount's OpenAI-compatible identity. "anthropic" i
proxy/providers/openaicompat/openaicompat.go:441
↓ 9 callers
Function
NewTOON
NewTOON returns the lossless TOON re-encoder. It is reached only by forcing Options.Type = "toon"; Detect never routes to it.
engine/compressors/toon.go:11
↓ 9 callers
Function
Open
Open opens (creating if needed) a cavemem store.
mem/store.go:94
↓ 9 callers
Function
ParsePoolConfig
ParsePoolConfig validates the connection string and applies the managed database CA to every TLS path; with no CA configured, verify-full checks the s
shared/platform/postgresconfig/postgresconfig.go:39
↓ 9 callers
Function
Reflow
(text string)
engine/pixel/render.go:123
↓ 9 callers
Method
RetrieveQuery
(handle, query string)
mcp/engine_tools.go:22
↓ 9 callers
Method
SaveChoice
SaveChoice publishes one immutable choice (see SaveChoices).
proxy/internal/store/middleware.go:377
↓ 9 callers
Method
ServeHTTP
(w http.ResponseWriter, _ *http.Request)
proxy/cmd/caveman-proxy/main.go:463
↓ 9 callers
Function
SessionCacheKey
SessionCacheKey is the stable, content-blind key derived from a session id.
proxy/providers/openai/session_cache_key.go:80
↓ 9 callers
Method
Sign
Sign computes the SigV4 signature for req against the given payload and sets the Authorization, X-Amz-Date, X-Amz-Content-Sha256 (and, when present, X
shared/platform/awssig/awssig.go:66
↓ 9 callers
Function
StringProp
StringProp is a string property schema with a description.
mcp/protocol.go:100
↓ 9 callers
Function
StripToolSchemaAnnotations
StripToolSchemaAnnotations removes the annotationDropKeys keywords from a serialized tool catalog (the provider `tools` array) and returns ok=false wi
engine/compressors/toolschema_annotations.go:102
↓ 9 callers
Method
Supersede
Supersede atomically replaces one current memory with a new current version. The old row remains durable for history and byte-exact audit, but normal
mem/store.go:214
↓ 9 callers
Function
ToolRawText
ToolRawText wraps a raw string (e.g. recovered original bytes) as text content.
mcp/protocol.go:79
↓ 9 callers
Function
ValidateURL
ValidateURL resolves raw to a URL, validates the scheme/port constraints, and checks every IP the hostname resolves to against the SSRF block lists. I
shared/platform/ssrf/ssrf.go:193
↓ 9 callers
Method
_deadlines
(self)
packages/sdk/python/caveman_cloud/middleware/runtime.py:306
↓ 9 callers
Method
aclose
(self)
packages/middleware/python/caveman_middleware/google.py:474
↓ 9 callers
Function
anthropicPixelResponse
(model string)
proxy/internal/gateway/pixel_test.go:451
↓ 9 callers
Function
benchAnthropicBody
benchAnthropicBody is a deterministic agent-shaped Messages request of about size bytes: system, tools, alternating turns and a cache breakpoint on th
proxy/internal/gateway/hotpath_bench_test.go:32
↓ 9 callers
Function
bindRecovery
(runtime: MiddlewareRuntime, scope: Scope | null)
packages/middleware/typescript/src/common.ts:101
↓ 9 callers
Function
bold
(s: string)
packages/cli/src/index.ts:23451
↓ 9 callers
Function
buildWrapEnv
(agent?: AgentProfile, gw = gatewayURL(), mcpMode: McpSurfaceMode = "auto", agentArgs: string[] = [], upstream
packages/cli/src/index.ts:12808
↓ 9 callers
Function
callRetrieveTool
callRetrieveTool drives the caveman_retrieve tool exactly as the MCP server does: through the handler EngineTools built.
mcp/retrieve_integration_test.go:61
↓ 9 callers
Function
decodeToolText
(t *testing.T, tr mcp.ToolResult, out any)
browse/session_test.go:402
↓ 9 callers
Function
entry
(name, namespaces string, tokens ...string)
proxy/internal/identity/identity_test.go:42
↓ 9 callers
Method
export
POST buffered spans to standard OTLP/HTTP ``{base_url}/v1/traces``. Returns the gateway's JSON response (``ok`` / ``spans_accepted`` /
packages/sdk/python/caveman_cloud/core.py:1778
↓ 9 callers
Function
extract_inline_codes
Backtick-delimited inline spans, with fenced code blocks stripped first. Previously used a column-0-anchored regex to strip fences, which misses
skills/caveman-compress/scripts/validate.py:242
↓ 9 callers
Function
fields
(pairs ...string)
engine/compressors/invariants_test.go:29
↓ 9 callers
Method
flush
flush sends what is queued, up to eventBatchMax per request, and drops a batch that fails.
proxy/internal/cloudlink/events.go:220
↓ 9 callers
Function
frameworkVersion
(name: Framework)
packages/middleware/typescript/src/compatibility.ts:76
↓ 9 callers
Function
fuzzDirection
fuzzDirection checks one direction: a valid body translates to a valid body or an error, never a panic; Anthropic never gets a thinking signature it d
proxy/internal/translate/properties_test.go:227
↓ 9 callers
Function
getDefaultMode
(startDir)
src/hooks/caveman-config.js:203
↓ 9 callers
Function
globalCapabilityDocument
()
packages/cli/src/index.ts:4320
↓ 9 callers
Function
jsonStr
jsonStr quotes s as a JSON string literal for embedding in a request line.
mcp/server_test.go:764
↓ 9 callers
Method
lookupTarget
(uid string)
browse/session.go:347
↓ 9 callers
Function
newBodyCapture
newBodyCapture returns nil when capture is off, so the hot path costs one nil check. A directory that cannot be created disables capture rather than f
proxy/internal/gateway/capture.go:79
↓ 9 callers
Function
newCompressTestServer
(t *testing.T, upstream string, sink TelemetrySink, comp Compressor)
proxy/internal/gateway/compress_test.go:103
↓ 9 callers
Function
newestMarkedConversation
newestMarkedConversation is the Claude Code shape: only the newest message carries cache_control, so the marker moves forward every turn.
proxy/internal/gateway/cache_prefix_invariant_test.go:1247
↓ 9 callers
Method
ownsBinding
(binding: RecoveryBinding | null | undefined, scope: Scope)
packages/sdk/typescript/src/middleware/runtime.ts:290
↓ 9 callers
Method
priceInputTokens
priceInputTokens converts a token quantity into USD at the user's own measured effective input rate. Every sink in the report is input-side (context r
proxy/internal/store/learn_pricing.go:320
↓ 9 callers
Function
probeProxyVersion
()
packages/cli/src/index.ts:21842
↓ 9 callers
Function
realEngine
(t *testing.T)
mcp/server_test.go:76
↓ 9 callers
Method
report
Report after a native patch is applied, or None for original fallback. optimize() prepares a plan. It cannot claim the host applied that plan
packages/sdk/python/caveman_cloud/middleware/runtime.py:388
↓ 9 callers
Function
routeTag
routeTag is "<length>:<route>:", the route a signature names, length first so no route's tag starts another's (an id may hold ':', as "x" and "x:free"
proxy/internal/translate/messages.go:265
← previous
next →
501–600 of 12,853, ranked by callers