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
↓ 2 callers
Function
failingUpstream
failingUpstream answers each attempt with the next status, or fails the transport when statuses is nil.
proxy/internal/gateway/route_test.go:357
↓ 2 callers
Function
failureOf
(error: unknown)
packages/sdk/typescript/src/middleware/runtime.ts:118
↓ 2 callers
Function
fakeChild
({ exitCode = null, signalCode = null, killed = false } = {})
tests/test_mcp_shrink.js:387
↓ 2 callers
Function
fakeTimers
()
tests/test_mcp_shrink.js:403
↓ 2 callers
Function
fallbackCanonicalDefault
(raw)
src/hooks/caveman-activate.js:86
↓ 2 callers
Function
fallbackRuleset
(mode, hookDir)
src/hooks/caveman-config.js:881
↓ 2 callers
Function
falseyModelList
(v string)
engine/pixel/applicability.go:46
↓ 2 callers
Function
features
(v2 bool)
proxy/internal/middleware/protocol_v11_test.go:66
↓ 2 callers
Function
fetch
(url, init)
tests/middleware-e2e/drive-ts.mjs:34
↓ 2 callers
Function
fileNameMatches
fileNameMatches deliberately tests the final path component only. Matching the whole path made a term naming any ancestor directory ("src", "internal"
proxy/internal/repointel/index.go:727
↓ 2 callers
Function
fileStamp
fileStamp changes whenever any of the files is replaced, rewritten or removed, including a Kubernetes Secret volume's atomic symlink swap.
proxy/internal/identity/identity.go:453
↓ 2 callers
Method
filename
filename is the name a document file goes under: its title, else one named after its media type.
proxy/internal/translate/messages_in.go:171
↓ 2 callers
Function
filler
filler pads a payload past minBlockTokens (estimateTokens is bytes/4, so a block needs ~720 bytes to be a candidate at all).
proxy/internal/store/recurring_test.go:10
↓ 2 callers
Function
finalizeAnthropicRequest
(req anthropicRequestState)
engine/pixel/transform_anthropic.go:630
↓ 2 callers
Function
findCompressedPairs
(dirs)
src/hooks/caveman-stats.js:211
↓ 2 callers
Function
findRepoConfigPath
(start, accept)
src/hooks/caveman-config.js:113
↓ 2 callers
Function
finish
(result, attempt)
packages/middleware/python/caveman_middleware/openai.py:187
↓ 2 callers
Function
finish
(event: 'completed' | 'failed' | 'cancelled')
packages/middleware/typescript/src/common.ts:149
↓ 2 callers
Function
finish
(error)
extension/scripts/firefox-e2e.mjs:169
↓ 2 callers
Method
finish
(self, event)
packages/middleware/python/caveman_middleware/_httpx2.py:148
↓ 2 callers
Method
finish
()
proxy/internal/store/session_source.go:237
↓ 2 callers
Method
finish
()
proxy/internal/translate/messages_stream.go:426
↓ 2 callers
Method
finishRecord
finishRecord completes row (account adds the request token count) and hands it to the sink and, with observe, to the Cloud link. With a recorder that
proxy/internal/gateway/recorder.go:155
↓ 2 callers
Function
firstNonEmptyValue
(values ...string)
proxy/internal/nativeruntime/runtime.go:1353
↓ 2 callers
Function
firstRoleIndex
(items []any, role string)
engine/pixel/transform_openai.go:771
↓ 2 callers
Function
firstRunScanContract
()
packages/cli/src/index.ts:6042
↓ 2 callers
Function
firstString
(event hostEvent, keys ...string)
proxy/internal/nativehook/hook.go:428
↓ 2 callers
Function
firstUserIndex
(messages []Message)
engine/pixel/transform_anthropic.go:1487
↓ 2 callers
Function
fixToolIDs
fixToolIDs is anthropicToolIDs on a body's members; it reports a change.
proxy/internal/translate/messages.go:462
↓ 2 callers
Function
fixedOffState
(id: OffStateID, item: { line: string; fix?: string })
packages/cli/src/index.ts:5063
↓ 2 callers
Function
fixture
(port, { runState = true, recoveryViaMcp = true } = {})
packages/pi-extension/tests/integration.runtime.mjs:55
↓ 2 callers
Function
flag
(names: string[])
packages/cli/src/index.ts:7283
↓ 2 callers
Function
flavour
(name)
packages/middleware/python/caveman_middleware/_httpx2.py:27
↓ 2 callers
Method
flushAssistant
()
proxy/internal/translate/responses_in.go:685
↓ 2 callers
Method
flushAttached
()
proxy/internal/translate/responses_in.go:703
↓ 2 callers
Function
fmt_pct
(x: float)
evals/measure.py:67
↓ 2 callers
Function
foldOpenAIHistory
(info *TransformInfo, model string, plan GptCollapsePlan)
engine/pixel/transform_openai.go:452
↓ 2 callers
Method
forget
()
proxy/internal/cloudlink/link.go:1456
↓ 2 callers
Function
formatCount
(value, availability)
src/hooks/caveman-stats.js:348
↓ 2 callers
Function
formatLearnProxyJSON
(raw: string, tty = !!process.stdout.isTTY)
packages/cli/src/index.ts:20783
↓ 2 callers
Function
formatMinorCurrency
(cents: unknown, currency: unknown)
packages/cli/src/index.ts:22793
↓ 2 callers
Function
formatSessionSavings
( kind: "observe" | "compress", s: ProxyObserveSummary | null, authModes: readonly string[] = [], wind
packages/cli/src/index.ts:5799
↓ 2 callers
Function
formatStats
({ outputTokens, outputAvailability, cacheReadTokens, cacheReadAvailability, turns, mode, sessionPath, compres
src/hooks/caveman-stats.js:413
↓ 2 callers
Function
formatTokens
(t)
packages/subagent-tax/lib/report.mjs:30
↓ 2 callers
Function
framingBroken
framingBroken: an "event:" line followed by another "event:" before its data, or a data line whose type differs from its event name.
proxy/internal/translate/relay_framing_test.go:28
↓ 2 callers
Function
freePort
()
packages/cli/tests/wrap.runtime.mjs:12
↓ 2 callers
Method
freed
()
engine/ccr/store_reclaim.go:69
↓ 2 callers
Function
freshTmpDir
()
tests/installer/e2e.dryrun.test.mjs:15
↓ 2 callers
Function
fromEnvironment
(primaryKeyEnvironment string, legacyKeyEnvironments ...string)
shared/platform/kms/kms.go:128
↓ 2 callers
Function
frontierEdit
frontierEdit marks the last cacheable content block of the newest message with array content — the rolling tail breakpoint. It bounds every later turn
proxy/providers/anthropic/breakpoint_plan.go:206
↓ 2 callers
Function
frozenField
(name string, value []byte)
proxy/providers/anthropic/content_compress.go:114
↓ 2 callers
Function
gate
Decision 3: whether the adapter runs. Never raises. A readable version outside the tested range skips the adapter and warns once (``unsupport
packages/middleware/python/caveman_middleware/_versions.py:82
↓ 2 callers
Function
gate
(options: CavemanMastraOptions)
packages/middleware/typescript/src/mastra.ts:35
↓ 2 callers
Function
gate
(options: CavemanOptions)
packages/middleware/typescript/src/ai-sdk.ts:29
↓ 2 callers
Method
gatewayBearer
gatewayBearer is the credential for the gateway (POST /v1/route): the project key, which is all the gateway authenticates (a login token is refused th
proxy/internal/cloudlink/link.go:531
↓ 2 callers
Function
gatewayDecodeJSONString
(raw []byte)
proxy/internal/gateway/pixel.go:688
↓ 2 callers
Function
gatewayScanJSONString
(body []byte, start int)
proxy/internal/gateway/retrieve_tool.go:344
↓ 2 callers
Function
gatewayUrlFromConfigFile
()
packages/cli/src/index.ts:166
↓ 2 callers
Function
gcSessionStore
(claudeDir, opts)
src/hooks/caveman-config.js:715
↓ 2 callers
Function
gdHeaderColon
gdHeaderColon finds the colon that closes a function header: the one after the balanced parameter list and the optional `-> Type`. Quotes and `#` comm
engine/compressors/code_gdscript.go:128
↓ 2 callers
Function
gdToggleTripleQuote
gdToggleTripleQuote returns the multi-line string state after line: every `"""` or `”'` on the line flips it.
engine/compressors/code_gdscript.go:277
↓ 2 callers
Function
geminiEnvSelectsAuth
(dotenv: string)
packages/cli/src/index.ts:9324
↓ 2 callers
Function
geminiFunctionResponseText
(fr geminiFunctionResponse)
engine/pixel/transform_gemini.go:832
↓ 2 callers
Function
geminiHasCaveman
()
installer/install.js:739
↓ 2 callers
Function
geminiOwnEndpoint
(text: string, envPath: string, shell: boolean)
packages/cli/src/index.ts:9111
↓ 2 callers
Function
geminiPixelBody
()
proxy/internal/gateway/pixel_test.go:447
↓ 2 callers
Function
generateContentMeta
()
proxy/providers/gemini/prefix_stability_test.go:20
↓ 2 callers
Function
genericIntegrationStatus
(runtimeReachable: boolean)
packages/cli/src/index.ts:12069
↓ 2 callers
Function
genericKeychainDelete
(service: string, account: string)
packages/cli/src/index.ts:23314
↓ 2 callers
Function
genericKeychainGet
(service: string, account: string)
packages/cli/src/index.ts:23303
↓ 2 callers
Function
genericKeychainSet
(service: string, account: string, secret: string)
packages/cli/src/index.ts:23293
↓ 2 callers
Method
getObjectFrom
(q querier, id string)
engine/ccr/store_sqlite.go:1144
↓ 2 callers
Function
getReinforce
(startDir)
src/hooks/caveman-config.js:232
↓ 2 callers
Function
getSpawnOptions
(platform = process.platform)
src/mcp-servers/caveman-shrink/spawn-options.js:74
↓ 2 callers
Function
getString
(root: unknown, path: string[])
packages/cli/src/index.ts:7764
↓ 2 callers
Method
get_parameters_dict
(self)
packages/middleware/python/caveman_middleware/llama_index.py:93
↓ 2 callers
Function
git
(...args)
packages/cli/tests/agent-registry.runtime.mjs:250
↓ 2 callers
Function
git
(...args)
packages/cli/tests/wrap.runtime.mjs:577
↓ 2 callers
Function
gitListBudget
gitListBudget leaves the fallback walk at least as much time as git gets.
proxy/internal/repointel/index.go:280
↓ 2 callers
Function
gptBaselineImagedTokens
(systemTexts []string, originalTools, strippedTools []any, haveTools bool)
engine/pixel/transform_openai.go:483
↓ 2 callers
Function
gptCountTokens
pxpipe uses gpt-tokenizer/o200k_base here. Caveman uses engine/tokens, whose default counter uses the same offline encoding and whose fallback underco
engine/pixel/history_openai.go:338
↓ 2 callers
Function
graderString
(g Grader)
engine/evals/graders.go:209
↓ 2 callers
Function
grokAgentsMdPath
()
installer/install.js:1067
↓ 2 callers
Function
guardExploreAgent
(agent: string)
packages/cli/src/index.ts:1803
↓ 2 callers
Function
handle
()
packages/middleware/python/tests/test_openai_native.py:80
↓ 2 callers
Method
handleMutate
(raw json.RawMessage)
mcp/codemode/codemode.go:642
↓ 2 callers
Method
handleSearchTools
(raw json.RawMessage)
mcp/codemode/codemode.go:402
↓ 2 callers
Method
handle_request
(self)
packages/sdk/python/tests/test_transport.py:29
↓ 2 callers
Method
handler
(conn)
packages/sdk/python/tests/test_middleware_transport.py:325
↓ 2 callers
Function
harness
(home)
packages/cli/tests/_modules.mjs:131
↓ 2 callers
Function
harnessFlags
(agents: string[])
packages/cli/src/modules/apply.ts:311
↓ 2 callers
Function
has
(id: string)
packages/cli/src/index.ts:4017
↓ 2 callers
Function
hasCompressionOptimizer
(optimizers []string)
proxy/internal/gateway/proxy.go:2402
↓ 2 callers
Function
hasGeminiInlineData
(parts []geminiPart)
engine/pixel/transform_gemini_test.go:383
↓ 2 callers
Function
hasHTMLDeclaration
hasHTMLDeclaration reports whether trimmed opens with a document declaration or an <html> tag. It is conclusive: source code never starts this way.
engine/detect.go:186
↓ 2 callers
Function
hasModelPrefix
hasModelPrefix reports whether model equals prefix or begins with prefix followed by a version/variant separator ('-' or '.'). This keeps "gpt-5" from
proxy/providers/openai/reasoning_effort.go:212
↓ 2 callers
Function
hasRetrieveTool
(body []byte)
proxy/internal/gateway/retrieve_tool.go:169
↓ 2 callers
Function
hasSink
(plan LearnPlan, id string)
proxy/internal/store/trial_feature_test.go:855
↓ 2 callers
Function
hashOf
(token string)
proxy/internal/identity/identity_test.go:18
↓ 2 callers
Function
hashedToolName
hashedToolName is always the hashed form, also used for the second of two tools whose joined names collide (a function mcp__srv__x and namespace mcp__
proxy/internal/translate/responses.go:84
← previous
next →
3,201–3,300 of 12,853, ranked by callers