MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

↓ 2 callersFunctionbm25Scores
(query string, items []Item)
engine/contextwindow/contextwindow.go:186
↓ 2 callersMethodbody
body is the caller's whole request at this point of the session.
proxy/internal/translate/properties_test.go:128
↓ 2 callersFunctionbodyHasPixelMarker
(body: string)
packages/cli/src/index.ts:2170
↓ 2 callersFunctionboolPtr
(v bool)
engine/pixel/transform_anthropic.go:1544
↓ 2 callersFunctionbootstrapLocalWrapRuntime
(opts: WrapOptions)
packages/cli/src/index.ts:6324
↓ 2 callersFunctionbounded
(value: unknown, max = 160)
packages/cli/src/native-hook-fast.ts:159
↓ 2 callersFunctionbounded
(value string, max int)
proxy/internal/nativehook/hook.go:437
↓ 2 callersFunctionboundedMockResponse
(payload, status = 200)
packages/sdk/typescript/tests/runtime-policy.runtime.mjs:25
↓ 2 callersFunctionbridgeTools
bridgeTools flattens the request's tools into plain functions. Tools only an OpenAI server runs (web_search, tool_search, image_generation, ...) have
proxy/internal/translate/responses.go:160
↓ 2 callersFunctionbroadPath
(t *testing.T, path string)
proxy/internal/securehome/securehome_windows_test.go:167
↓ 2 callersFunctionbuildBenchServer
(t *testing.T, mode string, upstream *statefulUpstream, sink gateway.TelemetrySink)
proxy/internal/standalone/e2e_cost_bench_test.go:989
↓ 2 callersFunctionbuildCatalog
(entries)
packages/sdk/typescript/tests/parity.runtime.mjs:58
↓ 2 callersFunctionbuildCountTokensRequest
(capturedBody)
packages/subagent-tax/lib/tokens.mjs:22
↓ 2 callersFunctionbuildHermesEphemeralCodemodeHome
( sourceHome: string, outDir: string, cmEntry: CodemodeLaunchEntry, )
packages/cli/src/codemode.ts:1333
↓ 2 callersMethodbuildLearnPlan
(cwd string, sources []string, sinceExpr string, retro RetroOptions, repoFilter string)
proxy/internal/store/learn.go:171
↓ 2 callersFunctionbuildLearnPortfolio
(sinks []Sink, windowDays float64)
proxy/internal/store/learn_portfolio.go:270
↓ 2 callersFunctionbuildLiveRequestGuard
(pinText *string)
engine/pixel/transform_openai.go:557
↓ 2 callersMethodbuildPayloadFor
(spans: readonly OTelSpan[])
packages/sdk/typescript/src/index.ts:2285
↓ 2 callersFunctionbuildRuleset
(mode)
src/hooks/caveman-activate.js:350
↓ 2 callersFunctionbumpGeminiPassthrough
(info *TransformInfo, reason string)
engine/pixel/transform_gemini.go:1120
↓ 2 callersMethodbundleMeta
()
packages/sdk/typescript/src/index.ts:1362
↓ 2 callersFunctionbundleResponse
Build an unsigned response around an arbitrary bundle object.
packages/sdk/typescript/tests/runtime-policy.runtime.mjs:87
↓ 2 callersFunctionbypassed
Reports where the adapter chose the caller's own input, not a plan. An unreachable runtime can only ever produce these: `skipped` when the ad
packages/middleware/python/tests/conftest.py:44
↓ 2 callersFunctioncaPEMFromEnvironment
()
shared/platform/postgresconfig/postgresconfig.go:129
↓ 2 callersFunctioncacheEfficiencySink
cacheEfficiencySink reports what a million input tokens ACTUALLY cost this user after their real cache mix — the single most load-bearing cost number
proxy/internal/store/detect_cache_hygiene.go:195
↓ 2 callersFunctioncacheStatusFor
cacheStatusFor maps observed cache usage to an honest cache_status, only asserting hit/write when Bedrock actually reported cache telemetry.
proxy/providers/bedrock/usage.go:630
↓ 2 callersFunctioncacheTTL
cacheTTL is the TTL the request writes its cache entries at, "" when it says none: on Messages the longest ephemeral cache_control ttl (none is 5m, a
proxy/internal/cloudlink/link.go:881
↓ 2 callersFunctioncacheWarmSwitch
cacheWarmSwitch is prompt-cache warming's on/off, asked before every arm and every warm. The CAVEMAN_CACHE_WARM kill switch (off, 0, false, no) wins f
proxy/cmd/caveman-proxy/cache_warm.go:18
↓ 2 callersFunctioncachedRate
(input, cacheRead float64)
proxy/internal/store/report.go:320
↓ 2 callersMethodcall
(method: string, params: Record<string, unknown>, signal: AbortSignal | undefined, timeoutMs = CALL_TIMEOUT_MS
packages/pi-extension/src/recovery.ts:434
↓ 2 callersMethodcallOnNode
(ctx context.Context, target Target, fn string)
browse/cdp.go:367
↓ 2 callersMethodcallOnNodeRaw
(ctx context.Context, target Target, fn string)
browse/cdp.go:395
↓ 2 callersFunctioncallSocket
(path string, request Request)
proxy/internal/nativeruntime/server_test.go:143
↓ 2 callersFunctioncallerKeepsSharp
(fn func(KeepSharpBlock) bool, block KeepSharpBlock)
engine/pixel/transform_anthropic.go:1287
↓ 2 callersFunctioncanAddImages
(info *TransformInfo, n int)
engine/pixel/transform_anthropic.go:1324
↓ 2 callersMethodcancel
(self)
packages/sdk/python/caveman_cloud/middleware/transport.py:103
↓ 2 callersFunctioncanonicalCapabilityProvider
(provider string)
shared/platform/catalog/catalog.go:112
↓ 2 callersFunctioncanonicalDefaultMode
(raw)
src/hooks/caveman-config.js:72
↓ 2 callersFunctioncanonicalJSON
--- developer messages ----------------------------------------------------- --- Responses -> Anthropic Messages -------------------------------------
proxy/internal/translate/responses.go:397
↓ 2 callersFunctioncanonicalManagedHookEntry
(entry: Record<string, unknown>)
packages/cli/src/index.ts:8299
↓ 2 callersFunctioncanonicalizeAiderRecurringResult
(result *recurringResult)
proxy/internal/store/source_aider.go:198
↓ 2 callersFunctioncarriedFields
carriedFields are the additive fields an ask carries, newest first.
proxy/internal/cloudlink/link.go:1318
↓ 2 callersFunctioncarries
(body map[string]any)
proxy/internal/cloudlink/cache_ttl_test.go:53
↓ 2 callersFunctioncatalogProbe
catalogProbe renders the lookups `caveman learn` depends on: context windows, prices, and the catalog size.
shared/platform/catalog/cwd_test.go:17
↓ 2 callersFunctioncaveHome
()
packages/cli/src/native-hook-fast.ts:43
↓ 2 callersFunctioncaveScore
--- Cave Score ------------------------------------------------------------
proxy/internal/store/learn.go:876
↓ 2 callersFunctioncavemanHome
()
packages/pi-extension/src/index.ts:24
↓ 2 callersFunctioncavemanHookTarget
()
packages/cli/src/index.ts:17616
↓ 2 callersFunctionccrHandleOf
ccrHandleOf reads the handle back out of a replacement's trailing marker.
proxy/internal/gateway/proxy.go:2042
↓ 2 callersFunctionchatAccept
(t *testing.T, body string)
proxy/internal/translate/wire_gaps_test.go:493
↓ 2 callersFunctionchatDocument
chatDocument is a document block as a chat file part, or the text of a text document; a document by URL or file id is refused.
proxy/internal/translate/messages_in.go:524
↓ 2 callersFunctionchatGPTAgent
chatGPTAgent is the agent behind a /chatgpt request: its x-cave-agent label (Pi, OpenCode), else Codex by its own originator or User-Agent (codex_cli_
proxy/internal/gateway/chatgpt.go:931
↓ 2 callersFunctionchatGPTSSEEventIsTerminal
(frame []byte)
proxy/internal/gateway/chatgpt.go:853
↓ 2 callersFunctionchatParts
chatParts renders Responses content parts as chat parts (an unclosed array) and reports whether any is an image or file; a file by URL, which chat can
proxy/internal/translate/responses_in.go:755
↓ 2 callersFunctionchatTexts
chatTexts are the text tokens of a chat content value.
proxy/internal/translate/chat_in.go:219
↓ 2 callersFunctionchatToAnthropic
chatToAnthropic renders a non-streamed chat completion as an Anthropic message named `model`, its reasoning a thinking block signed `signature` (a "ca
proxy/internal/translate/messages.go:175
↓ 2 callersFunctionchatUsageOf
chatUsageOf is a chat usage object from total input, cache reads and writes, and output.
proxy/internal/translate/chat_stream.go:288
↓ 2 callersFunctionchatgptTokenRequest
chatgptTokenRequest posts one grant. A login (nonce set) checks the id_token's claims: it came straight from the token endpoint over TLS, which OIDC C
proxy/internal/pool/chatgpt.go:262
↓ 2 callersFunctioncheckContainerURI
checkContainerURI applies the SDK rule for a caller-supplied credential endpoint: TLS anywhere, plaintext only to loopback or the fixed ECS/EKS creden
shared/platform/awscreds/awscreds.go:497
↓ 2 callersFunctioncheckFixProvenance
checkFixProvenance re-hashes a recorded target. It reports whether the bytes we fingerprinted are still the bytes on disk, plus the file's current tok
proxy/internal/store/learn_attribution.go:170
↓ 2 callersFunctioncheckIMDSEndpoint
checkIMDSEndpoint is checkContainerURI for AWS_EC2_METADATA_SERVICE_ENDPOINT. That variable was taken verbatim and then dialled with p.link — the clie
shared/platform/awscreds/awscreds.go:519
↓ 2 callersFunctioncheckInspectObject
(t *testing.T, data []byte)
proxy/providers/inspect_test.go:97
↓ 2 callersFunctioncheckOwnerPlan
(t *testing.T, db *sql.DB)
engine/ccr/store_consolidation_blocks_test.go:97
↓ 2 callersFunctioncheckProfile
(mutator, fixture = base)
packages/cli/tests/agent-registry.runtime.mjs:30
↓ 2 callersFunctioncheckRecoveryIntegrity
checkRecoveryIntegrity runs once per serve, off the request path. A release checks a store it has not seen intact before (#1369); the store refuses wr
proxy/cmd/caveman-proxy/recovery_store.go:72
↓ 2 callersFunctioncheckScanJSONString
(t *testing.T, body []byte)
proxy/providers/anthropic/scan_string_test.go:24
↓ 2 callersFunctioncheckUsageLineFilter
(t *testing.T, data []byte)
proxy/providers/usage_line_filter_test.go:60
↓ 2 callersFunctioncheckedSum
(a int, aOK bool, b int, bOK bool, usage *UsageObservation)
proxy/providers/adapter.go:1721
↓ 2 callersFunctionchmodSQLiteFile
(path string, info os.FileInfo)
engine/ccr/sqlite_file_security_unix.go:12
↓ 2 callersFunctionclaimLearnNudge
(source: string | undefined, token: string)
packages/cli/src/learn-autopilot.ts:349
↓ 2 callersFunctionclassifyCredential
(credential providers.Credential)
proxy/internal/gateway/authmode.go:75
↓ 2 callersFunctionclassifyCredentialAuthKind
classifyCredentialAuthKind trusts only resolver-stamped credential metadata. Bedrock API keys travel over Bearer but are paid AWS credentials, not OAu
proxy/internal/gateway/authmode.go:101
↓ 2 callersFunctionclassifyFailure
(input: FailureInput)
packages/sdk/typescript/src/middleware/protocol.ts:34
↓ 2 callersFunctionclassifyHeaderAuthMode
(h http.Header)
proxy/internal/gateway/authmode.go:52
↓ 2 callersFunctionclassifyRequest
(method, url)
packages/subagent-tax/lib/sink.mjs:146
↓ 2 callersFunctionclaudeBillingUsage
claudeBillingUsage returns the DISJOINT billable buckets Anthropic reports: input_tokens is already uncached-only (cache reads and writes are separate
proxy/internal/store/source_claude.go:101
↓ 2 callersFunctionclaudeCacheTTL
claudeCacheTTL uses the longest reported write lifetime. Mixed writes cannot be treated as fully expired after only five minutes. Missing breakdowns s
proxy/internal/store/source_claude.go:152
↓ 2 callersFunctionclaudeCacheUsage
claudeCacheUsage preserves provider-reported cache components. Presence is separate from value so an absent field never becomes a fabricated zero.
proxy/internal/store/source_claude.go:125
↓ 2 callersFunctionclaudeCompactionMarker
Real Claude Code transcripts on this machine carry one compaction as two adjacent records: subtype:"compact_boundary", then isCompactSummary:true. Bot
proxy/internal/store/source_claude.go:170
↓ 2 callersFunctionclaudeConfigDir
()
installer/lib/settings.js:443
↓ 2 callersFunctionclaudeGlobalConfigPath
()
proxy/internal/store/config_scan.go:283
↓ 2 callersFunctionclaudeHasCaveman
()
installer/install.js:585
↓ 2 callersFunctionclaudeOwnEndpoint
(settingsPath: string, env: Record<string, unknown>)
packages/cli/src/index.ts:9072
↓ 2 callersFunctionclaudeProfileCandidates
()
packages/cli/src/index.ts:11515
↓ 2 callersFunctionclaudeProfileMutations
(root: string, gw: string, mcpBinary: string)
packages/cli/src/index.ts:9171
↓ 2 callersFunctionclaudeProfileRegistryPath
()
packages/cli/src/index.ts:11487
↓ 2 callersFunctionclaudeProviderModel
claudeProviderModel attributes a Claude Code turn to its real provider. Claude Code routed through a gateway can log a vendor-qualified model such as
proxy/internal/store/source_claude.go:300
↓ 2 callersFunctionclaudeRepoFromRelPath
(relPath string)
proxy/internal/store/source_claude.go:204
↓ 2 callersFunctionclaudeTurnContext
claudeTurnContext returns the full context size the model saw on an assistant turn (input + cache read + cache creation), from the real usage block.
proxy/internal/store/learn.go:1104
↓ 2 callersFunctionclaudeUnwiredProfiles
(journal: NativeJournal)
packages/cli/src/index.ts:11566
↓ 2 callersFunctionclaudeUsageMessageID
claudeUsageMessageID identifies the API response a usage block belongs to. Claude Code writes one assistant turn as several JSONL lines — one per cont
proxy/internal/store/learn.go:1097
↓ 2 callersFunctionclaude_version
()
evals/llm_run.py:164
↓ 2 callersFunctioncleanup
()
packages/cli/src/index.ts:1101
↓ 2 callersFunctioncleanup
(claudeDir)
tests/hooks/caveman-config.test.mjs:31
↓ 2 callersFunctioncleanupPartial
(path: string)
packages/cli/src/index.ts:3113
↓ 2 callersFunctioncleanupWrapTempDirs
()
packages/cli/src/index.ts:12551
↓ 2 callersFunctionclearAuthFallbackEnv
(t *testing.T)
proxy/internal/gateway/auth_fallback_test.go:432
↓ 2 callersFunctionclearAutoModelChoice
(agent: NativeAgent)
packages/cli/src/index.ts:4440
↓ 2 callersFunctionclearRecoveryDamage
(home string)
proxy/cmd/caveman-proxy/recovery_store.go:55
↓ 2 callersFunctioncliIsEphemeral
()
packages/cli/src/index.ts:4050
← previousnext →2,901–3,000 of 12,853, ranked by callers