MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

↓ 1 callersFunctionapply
(key: CapabilityKey, raw: unknown, source: CapabilitySource)
packages/cli/src/index.ts:4682
↓ 1 callersMethodapply
apply copies everything outside the recorded ranges. A range that is out of order or out of bounds returns nil so the caller passes the original throu
engine/compressors/toolschema_annotations.go:311
↓ 1 callersFunctionapplyArray
(cfg: Partial<CodemodeServerConfig>, key: string, rawVal: string)
packages/cli/src/codemode.ts:418
↓ 1 callersFunctionapplyBedrockSpliceEdits
(data []byte, edits []bedrockSpliceEdit)
proxy/providers/bedrock/cache_points.go:487
↓ 1 callersFunctionapplyChatEffort
applyChatEffort replaces whatever effort a chat body carries with `effort` in `dialect`. "none" turns thinking off where the dialect can say so.
proxy/internal/translate/effort.go:34
↓ 1 callersFunctionapplyClaudeBedrockWrap
(env: NodeJS.ProcessEnv, agent: AgentProfile, renderedGw: string, modeGw: string)
packages/cli/src/index.ts:12740
↓ 1 callersFunctionapplyConfigFileInjection
(env: NodeJS.ProcessEnv, agent: AgentProfile, inj: ConfigFileInjection, gw: string, modeGw = gw, mcpMode: McpS
packages/cli/src/index.ts:12493
↓ 1 callersFunctionapplyDeferMCPTools
(data []byte, decoded map[string]any)
proxy/providers/openai/defer_mcp.go:75
↓ 1 callersFunctionapplyHermesAuthEnv
(env: NodeJS.ProcessEnv, gw: string, modeGw = gw)
packages/cli/src/index.ts:7345
↓ 1 callersFunctionapplyLearnSink
applyLearnSink materializes a candidate edit for a reducible sink under ~/.caveman/candidates/ and returns it. It never edits user config files itself
proxy/cmd/caveman-proxy/main.go:1041
↓ 1 callersFunctionapplyModeChange
(change)
src/plugins/opencode/plugin.js:227
↓ 1 callersFunctionapplyNativeEffort
applyNativeEffort sets the effort on a Messages body: output_config.effort (where the model takes one) and a `thinking` the model accepts.
proxy/internal/translate/effort.go:83
↓ 1 callersFunctionapplyOutputBrevity
applyOutputBrevity adds a provider-native output cap when the caller hasn't set one. Responses API uses max_output_tokens; Chat Completions uses max_c
proxy/providers/openai/output_brevity.go:21
↓ 1 callersFunctionapplyPixelReplacements
(body []byte, reps []pixelReplacement)
proxy/internal/gateway/pixel.go:645
↓ 1 callersFunctionapplyPromptCacheKey
applyPromptCacheKey injects a stable prompt_cache_key on the request's cacheable prefix. Returns true if it changed root. Idempotent: skips a request
proxy/providers/openai/cache_key.go:237
↓ 1 callersFunctionapplyReasoningEffort
applyReasoningEffort adds a provider-native reasoning effort hint when the caller has not set one AND the request targets a known endpoint/model/body
proxy/providers/openai/reasoning_effort.go:52
↓ 1 callersFunctionapplyReplacements
(src []byte, repls []replacement)
engine/compressors/code_cgo.go:376
↓ 1 callersFunctionapplySpliceEdits
applySpliceEdits rewrites data in one ascending pass. Edits must not overlap; an overlap is a planning bug and returns false so the caller forwards th
proxy/providers/anthropic/breakpoint_plan.go:391
↓ 1 callersFunctionapplyStreamIncludeUsage
applyStreamIncludeUsage asks the provider for a final usage chunk on a streamed OpenAI-shaped call by setting stream_options.include_usage = true. Ret
proxy/providers/openai/stream_usage.go:43
↓ 1 callersMethodapplyStrip
applyStrip strips the thinking blocks a served binding heal stripped, while the history still starts the same way; changed reports a body it changed.
proxy/internal/gateway/route.go:935
↓ 1 callersMethodarchiveSession
(sessionID string)
proxy/internal/nativeruntime/runtime.go:776
↓ 1 callersFunctionargvCannotCarry
(text)
mem/js/index.mjs:63
↓ 1 callersFunctionarrayItems
arrayItems reads the elements of the array b (one trimmed value) into dst.
proxy/internal/translate/jsonfast.go:129
↓ 1 callersFunctionartifactGet
(cave: Cave, artifactId: string, workflow: string, trace: TraceContext)
packages/sdk/typescript/src/index.ts:2148
↓ 1 callersFunctionasBodyInit
`BodyInit` in the bundled DOM types predates byte-array request bodies.
packages/cli/src/proxy-fetch.ts:275
↓ 1 callersMethodas_sync
Identity; lets adapters call as_sync() on whichever runtime they were given.
packages/sdk/python/caveman_cloud/middleware/runtime.py:290
↓ 1 callersMethodask
(cfg settings, bearer string, ask gateway.RouteAsk, declared routeRequest, text *askText, models []string, ent
proxy/internal/cloudlink/link.go:1133
↓ 1 callersFunctionassemble
(cave: Cave, options: AssembleOptions)
packages/sdk/typescript/src/index.ts:1818
↓ 1 callersMethodassembleResponses
assembleResponses answers a non-streaming Responses caller from a streamed upstream (the ChatGPT preview streams only): the response.completed object,
proxy/internal/translate/translate.go:807
↓ 1 callersMethodassembled
assembled is the whole Anthropic message for a non-streaming caller, built from the output items.
proxy/internal/translate/messages_responses.go:270
↓ 1 callersFunctionassemblyText
(value: unknown)
packages/sdk/typescript/src/index.ts:1965
↓ 1 callersFunctionassertAllDead
(spawnLog)
packages/pi-extension/tests/recovery.runtime.mjs:22
↓ 1 callersFunctionassertCachePositionsEqual
(t *testing.T, expected any, got any)
engine/pixel/transform_anthropic_test.go:309
↓ 1 callersFunctionassertCallerCwd
(record, home)
tests/installer/gemini-install.test.mjs:219
↓ 1 callersFunctionassertConsentCall
(record, home)
tests/installer/gemini-install.test.mjs:213
↓ 1 callersFunctionassertContainsInOrder
(t *testing.T, body string, parts []string)
proxy/internal/gateway/live_zone_test.go:342
↓ 1 callersFunctionassertContentStructureEqual
(t *testing.T, path string, expected any, got any)
engine/pixel/transform_anthropic_test.go:278
↓ 1 callersFunctionassertDecodedImagesEqual
(t *testing.T, expected any, got any)
engine/pixel/transform_anthropic_test.go:318
↓ 1 callersFunctionassertEvent
(request, expected)
packages/sdk/typescript/tests/tool-events.runtime.mjs:30
↓ 1 callersFunctionassertHeader
(src, expected)
engine/pixel/internal/atlasgen/extract-atlas.mjs:41
↓ 1 callersFunctionassertImagePixelsEqual
(t *testing.T, got, want image.Image)
engine/pixel/transform_openai_test.go:426
↓ 1 callersFunctionassertMessagesStructureEqual
(t *testing.T, expected any, got any)
engine/pixel/transform_anthropic_test.go:259
↓ 1 callersFunctionassertOneImagePixelsEqual
(t *testing.T, idx int, gotB64 string, wantB64 string)
engine/pixel/transform_anthropic_test.go:330
↓ 1 callersFunctionassertRecoveryEnvironment
(config, expected = ["CAVEMAN_HOME", "CAVEMAN_CCR_DB"])
packages/cli/tests/codex-mcp-environment.runtime.mjs:54
↓ 1 callersFunctionassertRecoveryProcessStats
(t *testing.T, response []byte, requests, before, after int)
mcp/cmd/caveman-mcp/recovery_process_test.go:158
↓ 1 callersFunctionassertRefused
({ home, result })
tests/installer/wedge-release-entry.test.mjs:70
↓ 1 callersFunctionassertSavingsUnknown
(out)
tests/test_caveman_stats.js:42
↓ 1 callersFunctionassertScratchCwd
(record, home)
tests/installer/gemini-install.test.mjs:179
↓ 1 callersFunctionassertUntouched
(configDir)
tests/installer/hook-integrity.test.mjs:62
↓ 1 callersFunctionassertWrongRootsUntouched
(fx)
packages/cli/tests/opencode-config-dir.runtime.mjs:63
↓ 1 callersMethodassistantText
(tokens [][]byte)
proxy/internal/translate/responses_in.go:650
↓ 1 callersMethodasync_pre_call_hook
(self, user_api_key_dict, cache, data, call_type)
packages/middleware/python/caveman_middleware/litellm.py:175
↓ 1 callersFunctionatoi
(t *testing.T, s string)
proxy/internal/gateway/cache_warm_table_test.go:59
↓ 1 callersFunctionatomicJSON
(target, value)
installer/lib/owned-install.js:88
↓ 1 callersFunctionatomicReceipt
(path string, data []byte)
proxy/internal/nativeruntime/receipt.go:265
↓ 1 callersFunctionattempt
(text: string)
packages/cli/src/index.ts:1334
↓ 1 callersFunctionattested
Each public callback attests one concrete provider-call array. Recheck the registry and schema at dispatch in case * a later native callback mutated
packages/middleware/typescript/src/ai-sdk.ts:48
↓ 1 callersFunctionattrMap
(otlpAttrs)
packages/sdk/typescript/tests/exporter.runtime.mjs:33
↓ 1 callersFunctionattributeByMode
({ messages, modeLog, mode, flagMtimeMs, outputTokens })
src/hooks/caveman-stats.js:289
↓ 1 callersFunctionattributed
(gw, id)
packages/cli/tests/config-file-injection.runtime.mjs:14
↓ 1 callersFunctionattributed
(gw)
packages/cli/tests/codex-subscription-wrap.runtime.mjs:28
↓ 1 callersFunctionattributedGatewayUrl
(gw: string, agent: AgentProfile)
packages/cli/src/index.ts:12675
↓ 1 callersFunctionattributionConfidence
(method, provenance string)
proxy/internal/store/learn_attribution.go:76
↓ 1 callersFunctionattributionConfounders
attributionConfounders names what each rung cannot rule out. These are STANDING confounders — they are attached whether or not the number looks good,
proxy/internal/store/learn_attribution.go:95
↓ 1 callersFunctionattributionRung
attributionRung orders the methods. Higher is stronger. Used to pick the best available method for a row and to sort the savings ledger.
proxy/internal/store/learn_attribution.go:61
↓ 1 callersFunctionattributionWireHeaders
(model, enabled, resolved)
packages/pi-extension/tests/provider.runtime.mjs:440
↓ 1 callersFunctionauditEvalImport
(argv: string[])
packages/cli/src/index.ts:22184
↓ 1 callersFunctionauditImport
(argv: string[])
packages/cli/src/index.ts:22160
↓ 1 callersMethodauthFallbackEnv
authFallbackEnv resolves the credential policy for this exact route. Named compat upstreams carry their own configured env name (or an empty name for
proxy/internal/standalone/standalone.go:262
↓ 1 callersFunctionauto
()
packages/cli/tests/modules-apply.runtime.mjs:470
↓ 1 callersMethodautoOffered
()
proxy/internal/gateway/chatgpt_auto.go:37
↓ 1 callersFunctionautomaticPromptCacheMessagesEndpoint
(meta providers.RequestMetadata)
proxy/providers/anthropic/automatic_cache.go:14
↓ 1 callersFunctionautopilotStatusText
(now = Date.now())
packages/cli/src/learn-autopilot.ts:406
↓ 1 callersMethodawaitKeychain
awaitKeychain waits, until deadline at most, for a keychain read that runs with no secret cached; true when it landed. It waits on the read, never run
proxy/internal/cloudlink/link.go:325
↓ 1 callersFunctionawaitProxyRuntimeState
(port: number, versionInfo: ReturnType<typeof probeProxyVersion>, timeoutMs = 3000)
packages/cli/src/index.ts:21897
↓ 1 callersFunctionaxQueryTerms
(query string)
engine/compressors/axtree.go:481
↓ 1 callersFunctionaxState
(n axNode)
engine/compressors/axtree.go:237
↓ 1 callersFunctionaxStateBool
(key string, v any)
engine/compressors/axtree.go:604
↓ 1 callersFunctionaxUIDBase
(n axNode)
engine/compressors/axtree.go:300
↓ 1 callersFunctionbackgroundPostJSON
(urlString: string, token: string, body: string)
packages/cli/src/index.ts:5435
↓ 1 callersFunctionbackupCurrent
(root, backupRoot, relative, entry)
installer/lib/owned-install.js:161
↓ 1 callersFunctionbadSignature
()
packages/cli/tests/setup-install.runtime.mjs:28
↓ 1 callersFunctionbareModelId
(id)
agents/compile.mjs:214
↓ 1 callersFunctionbase64HexForTest
(b []byte)
engine/pixel/transform_anthropic_test.go:486
↓ 1 callersFunctionbaseEnv
(home, binDir, port, binary = proxyBin)
packages/cli/tests/wrap-restart.runtime.mjs:135
↓ 1 callersFunctionbaseEnv
(home)
packages/cli/tests/setup.runtime.mjs:26
↓ 1 callersMethodbaseline
(reason: PolicyDecisionReason)
packages/sdk/typescript/src/index.ts:1339
↓ 1 callersFunctionbashReadPath
(words []string)
proxy/internal/store/detect_reread.go:268
↓ 1 callersFunctionbashShape
bashShape keeps the command verb and, for a few multiplexing tools, its subcommand — `git diff` costs very differently from `git status`.
proxy/internal/store/detect_tool_portfolio.go:152
↓ 1 callersFunctionbasisPlain
basisPlain names how a token count was made, in words.
proxy/internal/store/report.go:563
↓ 1 callersFunctionbearerIdentity
bearerIdentity is the fixtures' identity: "Bearer alice" and "Bearer bob" are principals allowed every namespace.
proxy/internal/middleware/runtime_test.go:51
↓ 1 callersFunctionbearerKey
(raw string)
proxy/internal/standalone/standalone.go:286
↓ 1 callersMethodbedrock
* Describe the first-party Bedrock gateway surface for an AWS SDK or agent * wrapper. Runtime is the default; Mantle remains an explicit opt-in lan
packages/sdk/typescript/src/index.ts:418
↓ 1 callersFunctionbedrockAnyKey
(m map[string]any, keys ...string)
proxy/providers/bedrock/usage.go:503
↓ 1 callersFunctionbedrockCacheOptimizerEnabled
(policy providers.TransformPolicy)
proxy/providers/bedrock/cache_points.go:167
↓ 1 callersFunctionbedrockCheckedAdd
(a, b int)
proxy/providers/bedrock/usage.go:519
↓ 1 callersFunctionbedrockCredentialEnvValue
(env: NodeJS.ProcessEnv, name: string)
packages/cli/src/index.ts:12713
↓ 1 callersFunctionbedrockEventPayloads
bedrockEventPayloads decodes AWS event-stream frames and validates both CRCs. Invalid/truncated frames return ok=false so no partial binary payload ca
proxy/providers/bedrock/usage.go:230
↓ 1 callersFunctionbedrockFrameComponent
(name string, value []byte)
proxy/providers/bedrock/cache_points.go:631
↓ 1 callersFunctionbedrockNonNegativeInt
(v any)
proxy/providers/bedrock/usage.go:545
← previousnext →4,701–4,800 of 12,853, ranked by callers