MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions8,152 in github.com/JuliusBrussee/caveman

↓ 5 callersFunctionbuildLearnSpend
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:184
↓ 5 callersFunctionbuildWrapEnv
(agent?: AgentProfile, gw = gatewayURL(), mcpMode: McpSurfaceMode = "auto")
packages/cli/src/index.ts:8504
↓ 5 callersFunctionbytesEqual
(first: Uint8Array, second: Uint8Array)
packages/agent/src/runtime.ts:3186
↓ 5 callersFunctioncallJudge
(call: JudgeRequest, deps: GradeDeps)
packages/graders/src/index.ts:647
↓ 5 callersFunctionchromeHealthy
(endpoint string)
browse/cmd/caveman-browse/main.go:244
↓ 5 callersFunctionclaudeSettingsPath
()
packages/cli/src/index.ts:11404
↓ 5 callersFunctioncollapseAnthropicHistory
(messages []Message, profitable func(text string, cols int) bool, opts historyOptions)
engine/pixel/history_anthropic.go:362
↓ 5 callersFunctioncommandHasPath
(command: string)
packages/cli/src/index.ts:15946
↓ 5 callersFunctioncompile
(input: CompileInput)
packages/agent/src/build.ts:218
↓ 5 callersFunctioncompiledPlanRoutes
(headers http.Header)
proxy/internal/gateway/proxy.go:665
↓ 5 callersFunctioncompressionSavingsUSD
compressionSavingsUSD is the inferred dollar value of the input tokens that S4 content compression removed before the request reached the provider. It
proxy/internal/gateway/proxy.go:1539
↓ 5 callersFunctioncontextWindow
(provider, model string)
proxy/internal/store/learn.go:1143
↓ 5 callersFunctioncopyProjectFile
( root: string, staging: string, source: string, kind: "source graph" | "file source", )
packages/agent/src/dev-loader.ts:138
↓ 5 callersFunctioncorpusDigest
(rows []CorpusRow)
cacheengine/cachebench/corpus.go:426
↓ 5 callersFunctioncrSuffix
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 callersFunctioncreateHarnessAdapter
( id: HarnessID, identity: HarnessAdapterIdentity, wireContract: Readonly<Record<string, unknown>>, in
packages/agent/src/adapters.ts:83
↓ 5 callersFunctiondecode
(t *testing.T, b []byte)
proxy/providers/anthropic/cache_breakpoints_test.go:26
↓ 5 callersFunctiondeepMerge
(base: unknown, overlay: unknown)
packages/cli/src/index.ts:5770
↓ 5 callersFunctiondefineBuild
(options: Partial<BuildConfig> & Pick<BuildConfig, "entry" | "evals">)
packages/agent/src/build.ts:26
↓ 5 callersFunctiondetectCodexWrapAuthMode
()
packages/cli/src/index.ts:6011
↓ 5 callersMethoddiscover
(deadline *behaviorDeadline)
proxy/internal/store/session_source.go:22
↓ 5 callersFunctionenableNative
(argv: string[])
packages/cli/src/index.ts:7460
↓ 5 callersFunctionescapeRegExp
(s: string)
packages/cli/src/index.ts:9855
↓ 5 callersFunctionexpectedCostUSD
(c Candidate)
proxy/routing/routing.go:558
↓ 5 callersMethodexporter
* Create a one-call OTel exporter bound to this Cave's gateway config. * * The exporter ships spans to the gateway's OTLP endpoint * (`POST {
packages/sdk/typescript/src/index.ts:454
↓ 5 callersFunctionfinish
()
packages/cli/src/index.ts:5421
↓ 5 callersMethodflush
Alias for `export()`, matching common OTel exporter naming.
packages/sdk/typescript/src/index.ts:2261
↓ 5 callersFunctiongatewayObjectStringField
(body []byte, obj gatewayJSONSpan, field string)
proxy/internal/gateway/pixel.go:535
↓ 5 callersFunctiongatewaySkipJSONSpace
(body []byte, i int)
proxy/internal/gateway/retrieve_tool.go:271
↓ 5 callersFunctiongeminiAdapter
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 callersFunctiongeminiTurnConversation
(userTexts ...string)
proxy/internal/gateway/prefix_stability_payg_test.go:76
↓ 5 callersFunctiongreen
(s: string)
packages/cli/src/index.ts:15822
↓ 5 callersFunctiongutterLines
gutterLines renders content the way a coding agent's read tool prints a file.
engine/listing_test.go:11
↓ 5 callersFunctionhandleArgs
handleArgs dispatches a CLI subcommand against store, writing JSON (or raw recovered bytes) to stdout and diagnostics to stderr, and returns the proce
mem/cmd/cavemem/main.go:66
↓ 5 callersFunctionhasArg
(args []string, name string)
proxy/cmd/caveman-proxy/main.go:897
↓ 5 callersFunctionhasFile
(path: string)
packages/cli/src/index.ts:1476
↓ 5 callersFunctionhashText
(text string)
proxy/internal/store/learn.go:19
↓ 5 callersFunctionhermesConfigPath
()
packages/cli/src/index.ts:9843
↓ 5 callersFunctioninjectRetrieveTool
(provider, routePath string, body []byte)
proxy/internal/gateway/retrieve_tool.go:51
↓ 5 callersFunctionisExecutable
(p: string)
packages/cli/src/index.ts:15942
↓ 5 callersFunctionisIdentifierTokenAt
(source: string, start: number, expected: string)
packages/agent/src/source-graph.ts:704
↓ 5 callersFunctionisRecord
(value: unknown)
packages/agent/src/adapters.ts:616
↓ 5 callersFunctionjoinLines
joinLines is the inverse of splitLines.
engine/compressors/lineends.go:30
↓ 5 callersFunctionjsonChars
(value)
packages/subagent-tax/lib/analyze.mjs:12
↓ 5 callersFunctionjudgeGatewayUrl
(raw: unknown)
packages/graders/src/index.ts:643
↓ 5 callersFunctionkeepQueryRelevant
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 callersFunctionloadBuildInputs
( root: string, configPath: string, beforeSourceHash?: ( inputs: Omit<LoadedBuildInputs, "sourceSha2
packages/agent/src/cli.ts:994
↓ 5 callersFunctionlogStoreWarning
(logger *slog.Logger, msg string, err error)
proxy/internal/store/trial_store.go:794
↓ 5 callersFunctionlowerAgentContext
( definition: AgentDefinition, options: { rootDir?: string; runtimeSegments?: readonly RuntimeCont
packages/agent/src/execution-kernel.ts:14
↓ 5 callersFunctionmarkSpendIncomplete
(ledgers: readonly SpendLedger[])
packages/agent/src/runtime.ts:4711
↓ 5 callersFunctionmaskDecision
maskDecision runs a tool output through afterTool exactly as the hook does and reports whether the output was replaced by a pointer.
proxy/internal/nativeruntime/mask_elidable_test.go:35
↓ 5 callersFunctionmaskRuntime
Mask what cannot be summarized in place; elide what can. These pin the boundary between the two mechanisms. Before it existed they collided: the ship
proxy/internal/nativeruntime/mask_elidable_test.go:23
↓ 5 callersFunctionmemory
(options: { namespace: string; provenance?: MemoryDefinition["provenance"]; ttl: string; recallBudget:
packages/agent/src/primitives.ts:261
↓ 5 callersFunctionmustJSONGemini
(t *testing.T, v any)
engine/pixel/transform_gemini_test.go:365
↓ 5 callersFunctionmustMarshalTest
(t *testing.T, v any)
engine/pixel/transform_openai_test.go:326
↓ 5 callersFunctionnativePolicyMode
()
packages/cli/src/index.ts:10716
↓ 5 callersFunctionnativeProfile
()
packages/cli/src/index.ts:10709
↓ 5 callersFunctionnewCodeWith
newCodeWith constructs the code compressor with explicit options (used by callers/tests that want comment or docstring removal).
engine/compressors/code_cgo.go:51
↓ 5 callersFunctionnewQueryTransport
()
shared/platform/chhttp/chhttp.go:230
↓ 5 callersFunctionnewSocketFreeCompressServerWithConfig
(adapter providers.Adapter, comp Compressor, rt *captureTransport, creds CredentialResolver, cfg Config)
proxy/internal/gateway/live_zone_test.go:105
↓ 5 callersFunctionnormalizeBlock
normalizeBlock is the internal grouping key (lowercase, digit-run masked, whitespace collapsed) so the same block with trivial numeric/whitespace drif
proxy/internal/store/recurring.go:201
↓ 5 callersFunctionnormalizeEchoText
(text string)
proxy/internal/store/detect_sections.go:36
↓ 5 callersFunctionnormalizedTaskType
(value string)
proxy/internal/nativeruntime/runtime.go:921
↓ 5 callersFunctionobjectStringField
(body []byte, obj jsonSpan, field string)
proxy/providers/anthropic/content_compress.go:200
↓ 5 callersMethodobserveSession
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 callersFunctionopenAITestOptions
(model string)
engine/pixel/transform_openai_test.go:285
↓ 5 callersMethodopenai
(config: { upstreamKey?: string } = {})
packages/sdk/typescript/src/index.ts:395
↓ 5 callersFunctionoutcomeAt
(repo string, day int, tokens int64, turns, errors int)
proxy/internal/store/detect_outcomes_test.go:9
↓ 5 callersFunctionoutcomeSink
outcomeSink groups scanned sessions by whether a commit overlapped them, and reports what each cohort cost. It emits nothing unless git could actually
proxy/internal/store/detect_outcomes.go:153
↓ 5 callersMethodpageRows
pageRows is the row count that fills the profile's canvas height.
engine/pixel/density.go:217
↓ 5 callersFunctionparseFlexInt
parseFlexInt coerces a JSON value (number or numeric string) to a non-negative uint64. Negative or unparseable values become 0.
shared/platform/importers/importers.go:192
↓ 5 callersFunctionparseJSONTOON
(input []byte)
engine/compressors/toon_encode.go:110
↓ 5 callersFunctionplanBlocks
The breakpoint planner places Anthropic prompt-cache metadata on the upstream request. cache_control is not model-visible, so this is byte-safe under
proxy/providers/anthropic/breakpoint_plan_test.go:19
↓ 5 callersFunctionprocedureSinks
procedureSinks emits at most a handful of distillation candidates, ranked by how much re-derivation they represent.
proxy/internal/store/detect_procedures.go:148
↓ 5 callersFunctionprojectId
()
packages/cli/src/index.ts:15738
↓ 5 callersFunctionproviderUsesOpenAITools
(provider string)
proxy/internal/gateway/retrieve_tool.go:327
↓ 5 callersFunctionproxyBin
()
packages/cli/src/index.ts:13927
↓ 5 callersFunctionquote
(t *testing.T, value string)
proxy/providers/gemini/content_compress_test.go:47
↓ 5 callersFunctionrate
(tokensPerTurn int, turnsPerDay float64)
proxy/internal/store/learn.go:1182
↓ 5 callersMethodrecord
Record a tool call. Raises :class:`RetryLoopError` once an identical call has repeated past the threshold. A different call resets the streak.
packages/sdk/python/caveman_cloud/core.py:71
↓ 5 callersMethodrecordSpan
* Buffer a span, mapping GenAI fields to `gen_ai.*` attributes. * Returns the OTelSpan (with generated ids) so callers can chain child spans * v
packages/sdk/typescript/src/index.ts:2150
↓ 5 callersFunctionrecoverPendingNativeInstallUnlocked
(agent: NativeAgent)
packages/cli/src/index.ts:7407
↓ 5 callersMethodrecoverTool
(args json.RawMessage)
browse/session.go:374
↓ 5 callersMethodrenderStyle
renderStyle builds the RenderStyle that draws this profile. Cell advance is expressed through CellWBonus (advance − glyph width); pitch and zebra are
engine/pixel/density.go:279
↓ 5 callersFunctionrequestBudgetMatchesBody
(record TraceRecord)
cacheengine/cachebench/trace.go:381
↓ 5 callersMethodrequestContext
(parent context.Context)
browse/cdp.go:114
↓ 5 callersFunctionresolveCaveRoute
( gatewayURL: string, options: { cave?: "auto" | "off"; ensureRuntime?: boolean; fetch?: typeo
packages/agent/src/runtime.ts:5068
↓ 5 callersFunctionretrieveTool
retrieveTool returns the exact original for a handle; an unknown handle is a fail-closed tool error carrying a cave_snake_code (PRD §11.4). session ma
mcp/engine_tools.go:168
↓ 5 callersFunctionretroExpectedCut
retroExpectedCut measures the same segments the retro pass would, through the same engine call, so the assertion is an oracle rather than a magic numb
proxy/internal/store/learn_retro_test.go:135
↓ 5 callersFunctionretroTextLine
(t *testing.T, timestamp, text string)
proxy/internal/store/learn_retro_test.go:370
↓ 5 callersFunctionretroToolResultLine
(t *testing.T, payload string)
proxy/internal/store/learn_retro_test.go:356
↓ 5 callersMethodrewrap
([]byte)
engine/filewrap.go:111
↓ 5 callersFunctionrootObjectSpan
(body []byte)
proxy/providers/anthropic/splice.go:22
↓ 5 callersFunctionroundUSD
roundUSD preserves the ClickHouse money columns' Decimal128(10) precision. Rounding each request to micro-dollars loses real spend for low-cost models
shared/platform/importers/importers.go:273
↓ 5 callersFunctionrunPixelRender
(args []string)
engine/cmd/caveman-engine/main.go:291
↓ 5 callersMethodscanSession
(ref sessionRef, since time.Time, emit func(turnEvent), deadline *behaviorDeadline)
proxy/internal/store/session_source.go:23
↓ 5 callersFunctionserveCaptureRequest
(t *testing.T, srv *Server, path, body string)
proxy/internal/gateway/capture_test.go:79
↓ 5 callersFunctionserveLines
serveLines drives the server with raw request lines and returns the raw non-empty output lines (a JSON-RPC batch response is a single array line, so t
mcp/server_test.go:564
↓ 5 callersFunctionsessionValueFeatures
()
proxy/routing/session_value_test.go:256
↓ 5 callersFunctionskipValue
skipValue returns the offset just past the JSON value at i without inspecting it. The input is pre-validated, so container nesting is tracked by depth
engine/compressors/toolschema_annotations.go:322
← previousnext →601–700 of 8,152, ranked by callers