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
↓ 5 callers
Function
blockedf
(format string, args ...any)
shared/platform/ssrf/ssrf.go:29
↓ 5 callers
Method
body
()
proxy/internal/gateway/cache_prefix_invariant_test.go:287
↓ 5 callers
Function
buildLearnSpend
buildLearnSpend prices the accumulated buckets. Returns nil when nothing priceable was measured — an empty spend card is worse than none.
proxy/internal/store/learn_pricing.go:185
↓ 5 callers
Method
call
(event: HookEvent, payload: Record<string, unknown>)
packages/pi-extension/src/lifecycle.ts:61
↓ 5 callers
Method
call
(ctx context.Context, region, keyID, operation string, input, output any)
shared/platform/kms/kms.go:346
↓ 5 callers
Function
canonicalTestPath
(path)
packages/cli/tests/kilo-wrap.runtime.mjs:101
↓ 5 callers
Function
capabilities
(t *testing.T, r *Runtime, features string)
proxy/internal/middleware/protocol_v11_test.go:91
↓ 5 callers
Function
chat
(message, finish_reason = 'stop')
packages/middleware/typescript/tests/hardening.test.mjs:302
↓ 5 callers
Function
chatGPTRequestHeaders
chatGPTRequestHeaders preserves OAuth/account and ordinary application headers while removing proxy-private and hop-by-hop fields.
proxy/internal/gateway/headers.go:49
↓ 5 callers
Function
chatGPTRouteServer
chatGPTRouteServer is a record-mode ChatGPT route served by rt.
proxy/internal/gateway/chatgpt_auto_test.go:671
↓ 5 callers
Function
chatgptCompressServer
chatgptCompressServer wires the /chatgpt route with live-zone compression available; recovery toggles the out-of-band CAVEMAN_RECOVERY=mcp stamp.
proxy/internal/gateway/chatgpt_test.go:1187
↓ 5 callers
Function
chatgptProxyLogLine
(t *testing.T, logs *bytes.Buffer)
proxy/internal/gateway/chatgpt_test.go:1203
↓ 5 callers
Function
check
(schemaName, value, label)
packages/shared/contracts/scripts/validate-schemas.mjs:93
↓ 5 callers
Function
check
(ok: boolean)
supabase/functions/blocks-telemetry/ingest.ts:44
↓ 5 callers
Function
chromeHealthy
(endpoint string)
browse/cmd/caveman-browse/main.go:289
↓ 5 callers
Function
claimRuntimePort
(say: (line: string) => void = (line) => process.stderr.write(`${line}\n`))
packages/cli/src/modules/apply.ts:457
↓ 5 callers
Function
clearAWSEnv
clearAWSEnv leaves only the chain source the test wires; a developer's own AWS_* exports would otherwise take precedence and the assertions would pass
proxy/internal/standalone/bedrock_chain_test.go:37
↓ 5 callers
Method
click
(ctx context.Context, x, y float64)
browse/cdp.go:353
↓ 5 callers
Function
cloneJsonValue
(v: T)
packages/cli/src/index.ts:12174
↓ 5 callers
Function
codexTomlLines
(text: string)
packages/cli/src/index.ts:10202
↓ 5 callers
Function
commaCount
(value: number)
packages/cli/src/index.ts:20237
↓ 5 callers
Function
commandHasPath
(command: string)
packages/cli/src/index.ts:23578
↓ 5 callers
Function
commitOn
commitOn commits w when it is a gate.
proxy/internal/translate/translate.go:475
↓ 5 callers
Function
componentList
(n int, seed byte)
proxy/internal/store/cache_components_test.go:25
↓ 5 callers
Method
compressRequest
compressRequest applies S4 compression to live-zone content and re-applies the replacements it already emitted to frozen content. Each live segment is
proxy/internal/gateway/proxy.go:1675
↓ 5 callers
Method
configTaxPerTurn
configTaxPerTurn is the statically measured token tax loaded on every turn: CLAUDE.md (user + project) + the user skill catalog. Hooks/plugins are rep
proxy/internal/store/config_scan.go:362
↓ 5 callers
Function
configTrendSink
configTrendSink names what grew. Paths ARE included here, unlike in the digest: this sink is for the user's own eyes and a growth finding without the
proxy/internal/store/detect_config_trend.go:107
↓ 5 callers
Function
configured_model
(default_model: Optional[str] = None)
plugins/caveman/skills/caveman-compress/scripts/compress.py:565
↓ 5 callers
Function
configured_model
(default_model: Optional[str] = None)
skills/caveman-compress/scripts/compress.py:565
↓ 5 callers
Function
crSuffix
crSuffix returns the CR a synthesized line needs so it matches the endings the rest of the document uses.
engine/compressors/lineends.go:46
↓ 5 callers
Method
decline
Pass through at wrap time (an untested framework version, a recovery tool name conflict) without content or I/O. Takes any catalog reason (an
packages/sdk/python/caveman_cloud/middleware/runtime.py:827
↓ 5 callers
Function
decode
(t *testing.T, b []byte)
proxy/providers/anthropic/cache_breakpoints_test.go:26
↓ 5 callers
Function
decodeRequestJSON
decodeRequestJSON preserves numeric lexemes inside dynamic provider fields. A float64 round trip changes large integer tool arguments/schema constrain
engine/pixel/transform_anthropic.go:592
↓ 5 callers
Function
die
(msg)
installer/install.js:195
↓ 5 callers
Function
effortInForce
effortInForce is the effort the bytes sent run at: the newest per-message mark (an Anthropic system message, a Responses configuration_update), else t
proxy/internal/gateway/route.go:1298
↓ 5 callers
Function
enableNative
(argv: string[], { quiet = false }: { quiet?: boolean } = {})
packages/cli/src/index.ts:11099
↓ 5 callers
Function
encodedBody
encodedBody compresses a request body the way an agent would send it; "raw-deflate" is a deflate stream without the zlib wrapper, which some clients s
proxy/internal/gateway/chatgpt_auto_test.go:250
↓ 5 callers
Method
env
(name string)
shared/platform/awscreds/awscreds.go:277
↓ 5 callers
Method
event
(self, value)
packages/middleware/python/caveman_middleware/google.py:392
↓ 5 callers
Function
everyNamespace
(name string)
proxy/internal/middleware/runtime_test.go:61
↓ 5 callers
Function
extract_code_blocks
Line-based fenced code block extractor. Handles ``` and ~~~ fences with variable length (CommonMark: closing fence must use same char and be
skills/caveman-compress/scripts/validate.py:68
↓ 5 callers
Function
factory
(*args, **kwargs)
packages/middleware/python/caveman_middleware/agno.py:561
↓ 5 callers
Method
fetch
()
proxy/internal/identity/oidc.go:140
↓ 5 callers
Function
fileFingerprint
(path string)
proxy/internal/store/detect_memory_health.go:308
↓ 5 callers
Function
fillWithObjects
fillWithObjects inserts rows from next until the page cap refuses one, and returns the ids that went in.
engine/ccr/store_reclaim_test.go:44
↓ 5 callers
Method
finish
(self)
packages/middleware/python/caveman_middleware/google.py:414
↓ 5 callers
Function
fitOpenAIEffort
fitOpenAIEffort is clampEffort for an OpenAI-shaped upstream, where no effort field means the model's default: "none" on a model without it is its low
proxy/internal/translate/messages_in.go:671
↓ 5 callers
Function
gatewayObjectStringField
(body []byte, obj gatewayJSONSpan, field string)
proxy/internal/gateway/pixel.go:672
↓ 5 callers
Function
gatewaySkipJSONSpace
(body []byte, i int)
proxy/internal/gateway/retrieve_tool.go:359
↓ 5 callers
Function
geminiAdapter
Zone tagging for the cross-turn prefix fix. Gemini caches repeated prompt prefixes implicitly, so a turn this proxy compressed while it was the live z
proxy/providers/gemini/prefix_stability_test.go:18
↓ 5 callers
Function
geminiTurnConversation
(userTexts ...string)
proxy/internal/gateway/prefix_stability_payg_test.go:76
↓ 5 callers
Function
get
get issues an unauthenticated GET, for the probe routes that stay open.
proxy/internal/standalone/auth_token_test.go:51
↓ 5 callers
Function
glyphs
()
packages/cli/src/modules/onboard.ts:573
↓ 5 callers
Function
green
(s: string)
packages/cli/src/index.ts:23454
↓ 5 callers
Function
guardSync
(runtime: MiddlewareRuntime, adapter: string, work: () => T, fallback: () => T, wrapping = false)
packages/middleware/typescript/src/guard.ts:20
↓ 5 callers
Function
handler
(projected)
packages/middleware/python/tests/test_behavior.py:915
↓ 5 callers
Function
hasCmd
(cmd)
installer/install.js:324
↓ 5 callers
Function
hasFile
(path: string)
packages/cli/src/index.ts:2195
↓ 5 callers
Function
heartbeat
heartbeat is called on each silence tick, before a ping or keepalive.
proxy/internal/translate/translate.go:408
↓ 5 callers
Function
hermesHome
(env: NodeJS.ProcessEnv = process.env, platform: NodeJS.Platform = process.platform)
packages/cli/src/index.ts:14442
↓ 5 callers
Function
home
home writes a fake credential store: an index and 0600 secret files.
proxy/internal/pool/pool_test.go:17
↓ 5 callers
Function
hookCommandBasename
(token: string)
packages/cli/src/index.ts:8265
↓ 5 callers
Function
hookEntryCommand
(entry: Record<string, unknown>)
packages/cli/src/index.ts:8208
↓ 5 callers
Function
inScope
(id: ModuleId, only: ModuleId[] | undefined)
packages/cli/src/modules/apply.ts:139
↓ 5 callers
Function
injectRetrieveTool
(provider, routePath string, body []byte)
proxy/internal/gateway/retrieve_tool.go:52
↓ 5 callers
Function
intPtr
(v int)
engine/pixel/transform_anthropic.go:1542
↓ 5 callers
Method
is
is reports a member named name (its key decoded when it holds an escape; an escape only lengthens a key, so one no longer than name is compared as wri
proxy/internal/translate/jsonfast.go:178
↓ 5 callers
Function
isJSONArray
(data []byte, span jsonsplice.Span)
proxy/providers/bedrock/cache_points.go:304
↓ 5 callers
Function
isJSONString
(body []byte, span jsonSpan)
proxy/providers/openai/content_compress.go:642
↓ 5 callers
Function
isSelfServer
(name: string, cfg: CodemodeServerConfig)
packages/cli/src/codemode.ts:51
↓ 5 callers
Function
itoa
(n int64)
proxy/internal/gateway/server.go:811
↓ 5 callers
Function
joinLines
joinLines is the inverse of splitLines.
engine/compressors/lineends.go:30
↓ 5 callers
Function
json
(path)
packages/cli/tests/claude-profiles.runtime.mjs:20
↓ 5 callers
Function
jsonChars
(value)
packages/subagent-tax/lib/analyze.mjs:12
↓ 5 callers
Function
jsonResponse
(r *http.Request, status int, body string)
proxy/internal/standalone/e2e_cost_bench_test.go:678
↓ 5 callers
Function
keepQueryRelevant
keepQueryRelevant adds the highest-scoring BM25 documents to keep. Existing force-keeps are never removed. Selection is deterministic: score descendin
engine/compressors/relevance.go:12
↓ 5 callers
Function
labelOrDefault
(v, fallback string)
proxy/internal/gateway/proxy.go:2422
↓ 5 callers
Function
legacyFlagPath
(claudeDir)
src/hooks/caveman-config.js:586
↓ 5 callers
Method
lines
(t *testing.T)
proxy/internal/nativeruntime/drop_log_test.go:29
↓ 5 callers
Function
loadRuleset
(mode, hookDir)
src/hooks/caveman-config.js:852
↓ 5 callers
Function
logStoreWarning
(logger *slog.Logger, msg string, err error)
proxy/internal/store/trial_store.go:796
↓ 5 callers
Function
loopbackListen
loopbackListen reports whether addr binds only the local machine. It is the one test behind two decisions: whether a token on this listener deserves t
proxy/cmd/caveman-proxy/main.go:489
↓ 5 callers
Method
mode_of
(self, session_id)
tests/test_mode_tracker.py:375
↓ 5 callers
Function
modelsUpstream
modelsUpstream stubs a provider's read-only model catalog and records what path/method/headers the proxy forwarded.
proxy/internal/gateway/models_metadata_route_test.go:20
↓ 5 callers
Function
mustJSONGemini
(t *testing.T, v any)
engine/pixel/transform_gemini_test.go:365
↓ 5 callers
Function
mustMarshalTest
(t *testing.T, v any)
engine/pixel/transform_openai_test.go:326
↓ 5 callers
Function
mustMkdir
(t *testing.T, dir string)
proxy/internal/store/detect_memory_health_test.go:29
↓ 5 callers
Function
nativeJournalPath
(agent: string)
packages/cli/src/index.ts:8787
↓ 5 callers
Function
nativeMutationsFor
(agent: NativeAgent, gw: string, mcpBinary: string | undefined, { plan = false } = {})
packages/cli/src/index.ts:11016
↓ 5 callers
Function
nativePolicyMode
()
packages/cli/src/index.ts:17720
↓ 5 callers
Function
nativeProfile
()
packages/cli/src/index.ts:17713
↓ 5 callers
Function
newCode
newCode returns the code compressor with default options (bodies elided, comments/docstrings kept) — the historical behavior.
engine/compressors/code_cgo.go:49
↓ 5 callers
Function
newCodeWith
newCodeWith constructs the code compressor with explicit options (used by callers/tests that want comment or docstring removal).
engine/compressors/code_cgo.go:53
↓ 5 callers
Function
newShownModel
(src io.Reader, sent, asked string)
proxy/internal/gateway/route.go:1604
↓ 5 callers
Function
normalizedTaskType
(value string)
proxy/internal/nativeruntime/runtime.go:1090
↓ 5 callers
Method
notify
(method: string)
packages/pi-extension/src/recovery.ts:294
↓ 5 callers
Function
objectStringField
(body []byte, obj jsonSpan, field string)
proxy/providers/anthropic/content_compress.go:259
↓ 5 callers
Function
objectWith
objectWith renders o with member key's value replaced by value (appended when o has none); every other member keeps its bytes.
proxy/internal/translate/messages.go:391
↓ 5 callers
Method
observeSession
observeSession extracts every n-gram of tool signatures in the session's call order and books the output tokens the span consumed.
proxy/internal/store/detect_procedures.go:60
↓ 5 callers
Function
openAITestOptions
(model string)
engine/pixel/transform_openai_test.go:285
← previous
next →
1,101–1,200 of 12,853, ranked by callers