MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions7,561 in github.com/JuliusBrussee/caveman

↓ 6 callersFunctionplanRespBody
planRespBody carries provider cache counters so the session ledger has real numbers to account.
proxy/internal/gateway/breakpoint_plan_test.go:31
↓ 6 callersFunctionprobeMcpBinary
()
packages/cli/src/index.ts:8999
↓ 6 callersFunctionreadFlag
(flagPath)
src/hooks/caveman-config.js:246
↓ 6 callersFunctionreadStdin
()
packages/cli/src/index.ts:12906
↓ 6 callersFunctionrequireNonEmpty
(value: string | undefined, label: string)
packages/mastra/src/index.ts:810
↓ 6 callersMethodreserve
* Hold `amount` against the ledger. Returns `undefined` when it does not fit, * which is the caller's signal to clamp, compact, or stop — never to
packages/agent/src/budget.ts:353
↓ 6 callersFunctionresolve
(t *testing.T, a Adapter, path string)
proxy/providers/vertex/vertex_test.go:44
↓ 6 callersFunctionroundUSD
(v float64)
proxy/internal/store/trial_store.go:783
↓ 6 callersFunctionruneLen
(s string)
engine/pixel/render.go:110
↓ 6 callersFunctionsafeWriteFlag
(flagPath, content)
src/hooks/caveman-config.js:138
↓ 6 callersFunctionsessionValuePool
()
proxy/routing/session_value_test.go:248
↓ 6 callersFunctionsetKey
(t *testing.T)
shared/platform/envelope/envelope_test.go:10
↓ 6 callersMethodsettle
* Replace a reservation with the measured cost of the call it covered. * * `actual` is recorded as it came in. It is never clamped to the reserv
packages/agent/src/budget.ts:407
↓ 6 callersFunctionsnippet
snippet trims an error body so we never echo a large/secret-bearing response.
shared/platform/githubapp/githubapp.go:417
↓ 6 callersFunctionstrconvItoa
(n int)
engine/pixel/factsheet.go:275
↓ 6 callersFunctionvalidSessionValueArtifact
(t *testing.T, pool []Candidate, now time.Time)
proxy/routing/session_value_test.go:201
↓ 6 callersFunctionvalidateTarget
(target Target)
cacheengine/cachebench/simulate.go:377
↓ 6 callersFunctionvalidate_inline_codes
(orig, comp, result)
skills/caveman-compress/scripts/validate.py:162
↓ 6 callersFunctionwithIntegrationLock
(agent: string, run: () => T)
packages/cli/src/index.ts:6638
↓ 5 callersFunctionCachePointEligibleModel
CachePointEligibleModel reports whether the cache-point transform may run for a model: an Anthropic Claude id — bare or behind one inference-profile s
proxy/providers/bedrock/cache_points.go:121
↓ 5 callersMethodCompressWithMetadata
(input []byte, query string)
engine/compressors/compressor.go:45
↓ 5 callersMethodContentType
ContentType is the type this compressor handles (e.g. "json").
engine/compressors/compressor.go:24
↓ 5 callersMethodCredential
Credential returns the provider credential resolved from the environment. Empty means the caller must fail closed or use an explicit inbound credentia
proxy/internal/config/config.go:271
↓ 5 callersFunctionDecodeAndValidate
DecodeAndValidate strictly parses a catalog. Unknown YAML fields, duplicate provider/model/region rows, invalid URLs/timestamps, and unsafe prices rej
shared/platform/catalog/catalog.go:243
↓ 5 callersFunctionDefaultGptHistoryOptions
()
engine/pixel/history_openai.go:34
↓ 5 callersMethodDelete
Delete removes key (no error if already absent).
shared/platform/objectstore/objectstore.go:48
↓ 5 callersFunctionDetectVolatile
DetectVolatile returns content-blind pattern kind and byte offset only. It never copies matching values into traces or errors.
shared/platform/cacheguard/cacheguard.go:173
↓ 5 callersFunctionDialContext
DialContext returns a DialContext function suitable for use in http.Transport.DialContext. It re-validates the resolved IP at the moment the kernel a
shared/platform/ssrf/ssrf.go:320
↓ 5 callersMethodError
()
cacheengine/cachebench/replay.go:100
↓ 5 callersFunctionEvaluateObservedAgainstTrace
EvaluateObservedAgainstTrace requires exact request population and body joins.
cacheengine/cachebench/observed.go:33
↓ 5 callersFunctionExpandTabsInLine
(line string)
engine/pixel/render.go:141
↓ 5 callersFunctionExtractStabilizable
(body []byte, meta providers.RequestMetadata)
proxy/providers/openai/content_compress.go:92
↓ 5 callersMethodFor
For returns the compressor for a content type, or (nil, false).
engine/compressors/compressor.go:77
↓ 5 callersFunctionForInputTokens
ForInputTokens applies a catalog-declared long-context surcharge to a copy of price. The provider-reported total input count determines the threshold;
shared/platform/cost/cost.go:69
↓ 5 callersFunctionFromEnvironment
FromEnvironment loads production configuration. Endpoint is not configurable, preventing env-driven host redirection of KMS credentials.
shared/platform/kms/kms.go:118
↓ 5 callersFunctionFromPayloadEnvironment
FromPayloadEnvironment selects the payload KEK and permits the secrets KEK only for decrypting artifacts created before key separation shipped.
shared/platform/kms/kms.go:124
↓ 5 callersMethodInsertUsageEvents
(events []UsageEvent)
proxy/internal/store/trial_store.go:94
↓ 5 callersFunctionIsEnvelope
IsEnvelope reports whether blob uses versioned KMS envelope format.
shared/platform/kms/kms.go:154
↓ 5 callersFunctionIsRecoveryToolName
IsRecoveryToolName reports whether a tool call is a caveman recovery call. It exists so every adapter agrees on one definition. A tool_result produce
proxy/providers/adapter.go:374
↓ 5 callersMethodLoadTargets
(targets map[string]Target)
browse/session.go:291
↓ 5 callersFunctionMinifyForRender
(text string)
engine/pixel/render.go:114
↓ 5 callersFunctionModelVisibleEquivalent
ModelVisibleEquivalent strips only provider cache metadata and normalizes string-vs-single-text-block wire forms before comparing prompt semantics.
cacheengine/cachebench/equivalence.go:14
↓ 5 callersFunctionNewMemory
NewMemory returns an empty in-memory Store.
shared/platform/objectstore/memory.go:18
↓ 5 callersFunctionNewUUIDv7
()
shared/platform/id/id.go:10
↓ 5 callersFunctionObserve
Observe normalizes provider cache telemetry. It never mints verified dollars; managed gateway accounting remains sole owner of that stronger claim.
cacheengine/types.go:257
↓ 5 callersMethodObserveSummarySince
ObserveSummarySince returns the compact observe-estimate object, optionally filtered to rows at or after an RFC3339 instant (the wrap session start).
proxy/internal/store/store.go:734
↓ 5 callersFunctionPack
Pack selects the best items that fit within the token budget. It scores in relevance order but returns selected items in their original order so messa
engine/contextwindow/contextwindow.go:69
↓ 5 callersFunctionParseNonNegativeInt
(response []byte, field string)
proxy/providers/internal/counttokens/counttokens.go:136
↓ 5 callersFunctionPlanGptCollapse
(turns []GptHistoryTurn, protectedPrefix int, isProfitable GptProfitableFunc, opts GptHistoryOptions)
engine/pixel/history_openai.go:73
↓ 5 callersFunctionReadAgentCorpus
ReadAgentCorpus imports supported JSONL formats under explicit limits.
cacheengine/cachebench/corpus.go:135
↓ 5 callersMethodRetrieveQuery
(handle, query string)
mcp/engine_tools.go:19
↓ 5 callersFunctionSeal
Seal compresses-agnostic: it encrypts plaintext with a fresh data key and returns (ciphertext, metadataJSON). ciphertext is nonce(12)||GCM(body).
shared/platform/envelope/envelope.go:54
↓ 5 callersFunctionSelect
(taskType string)
proxy/internal/nativepack/pack.go:71
↓ 5 callersMethodSetObjectLifecycle
(id string, lifecycle Lifecycle)
engine/ccr/store_wasm.go:157
↓ 5 callersFunctionStripSchemaDescriptions
(schema any)
engine/pixel/schemastrip.go:65
↓ 5 callersFunctionTruncateForBudget
(text string, maxImages, cols, numCols, maxCharsPerImage int, rp renderParams)
engine/pixel/textprep.go:102
↓ 5 callersFunctionValidateHost
ValidateHost resolves host (bare hostname or IP literal) and checks all resolved addresses. Use when you have a host/port pair rather than a full URL
shared/platform/ssrf/ssrf.go:174
↓ 5 callersFunctionValidateProduction
ValidateProduction is the startup gate for the ClickHouse transport: call it from every service main alongside env.Refuse*ProductionDefaults, as early
shared/platform/chhttp/chhttp.go:312
↓ 5 callersFunctionVerifyChain
VerifyChain re-walks a proposal's runs ordered by seq and asserts: - seq starts at 1 and increases by exactly 1 (no gaps, no dupes); - each row's prev
shared/platform/proposalrun/proposalrun.go:342
↓ 5 callersFunction_assert_event
(request: dict[str, Any], *, name: str, outcome: str, sequence: int, workflow: str = "unlabeled-workflow")
packages/sdk/python/tests/test_tool_events.py:50
↓ 5 callersFunction_call
(args: list[str], input_text: str | None = None)
mem/py/cavemem.py:23
↓ 5 callersFunction_capture
A urlopen stub plus the list it records lowercased headers into.
packages/sdk/python/tests/test_trace_continuity.py:31
↓ 5 callersFunction_options
( *, provider: str = "anthropic", session_id: str, turn: int, emit_cache_hints: str = "gat
packages/sdk/python/tests/test_assembly.py:72
↓ 5 callersMethodactTool
(args json.RawMessage)
browse/session.go:305
↓ 5 callersFunctionadd
(path: string, ranges: LineRange[])
packages/graders/src/index.ts:798
↓ 5 callersFunctionaliasedSourceError
(path: string)
packages/agent/src/source-graph.ts:766
↓ 5 callersFunctionarrayElements
(body []byte, arr jsonSpan)
proxy/providers/openai/content_compress.go:482
↓ 5 callersFunctionasRecord
(value: unknown)
packages/graders/src/index.ts:133
↓ 5 callersFunctionassertScoped
assertScoped verifies every produced row carries the authenticated org/project (never the file's) and the honest non-null defaults.
shared/platform/importers/importers_test.go:27
↓ 5 callersFunctionawsEventFrame
(payload []byte)
proxy/providers/bedrock/usage_test.go:164
↓ 5 callersFunctionblockCacheControl
(block map[string]any)
engine/pixel/transform_anthropic.go:1405
↓ 5 callersFunctionbuildWrapEnv
(agent?: AgentProfile, gw = gatewayURL(), mcpMode: McpSurfaceMode = "auto")
packages/cli/src/index.ts:7796
↓ 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 callersFunctioncavemanInvocation
()
packages/cli/src/index.ts:11180
↓ 5 callersFunctionchromeHealthy
(endpoint string)
browse/cmd/caveman-browse/main.go:243
↓ 5 callersFunctionclaudeSettingsPath
()
packages/cli/src/index.ts:10644
↓ 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:14783
↓ 5 callersFunctioncompile
(input: CompileInput)
packages/agent/src/build.ts:218
↓ 5 callersFunctioncompiledPlanRoutes
(headers http.Header)
proxy/internal/gateway/proxy.go:584
↓ 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:1458
↓ 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 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:5201
↓ 5 callersFunctiondefineBuild
(options: Partial<BuildConfig> & Pick<BuildConfig, "entry" | "evals">)
packages/agent/src/build.ts:26
↓ 5 callersFunctiondialContextWith
dialContextWith resolves each hostname exactly once, validates every returned address, then dials a validated IP literal. net.Transport passes hostnam
shared/platform/ssrf/ssrf.go:342
↓ 5 callersMethoddispose
()
packages/agent/src/dev-loader.ts:26
↓ 5 callersFunctionescapeRegExp
(s: string)
packages/cli/src/index.ts:9098
↓ 5 callersFunctionexpectedCostUSD
(c Candidate)
proxy/routing/routing.go:558
↓ 5 callersMethodexpired
()
proxy/internal/store/learn.go:504
↓ 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 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 callersFunctiongetDefaultMode
(startDir)
src/hooks/caveman-config.js:96
↓ 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
← previousnext →501–600 of 7,561, ranked by callers