MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions8,152 in github.com/JuliusBrussee/caveman

↓ 6 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:394
↓ 6 callersFunctiondie
(msg)
agents/compile.mjs:51
↓ 6 callersFunctionerrorResponse
(id json.RawMessage, code int, msg string)
mcp/protocol.go:53
↓ 6 callersFunctionextract_inline_codes
Backtick-delimited inline spans, with fenced code blocks stripped first. Previously used a column-0-anchored regex to strip fences, which misses
skills/caveman-compress/scripts/validate.py:223
↓ 6 callersFunctionfatalJSON
(logger *slog.Logger, err error)
proxy/cmd/caveman-proxy/main.go:925
↓ 6 callersFunctionfauxAssistantMessage
(...args)
packages/agent/tests/framework.runtime.mjs:98
↓ 6 callersFunctionfields
(pairs ...string)
engine/compressors/invariants_test.go:21
↓ 6 callersFunctionfindObjectField
(body []byte, obj jsonSpan, field string)
proxy/providers/openai/content_compress.go:440
↓ 6 callersFunctiongatewayArrayElements
(body []byte, arr gatewayJSONSpan)
proxy/internal/gateway/retrieve_tool.go:184
↓ 6 callersFunctiongatewayIsJSONString
(body []byte, span gatewayJSONSpan)
proxy/internal/gateway/pixel.go:547
↓ 6 callersFunctiongetDefaultMode
(startDir)
src/hooks/caveman-config.js:96
↓ 6 callersFunctiongrade
(grader: Grader, value: unknown, deps: GradeDeps = {})
packages/graders/src/index.ts:1686
↓ 6 callersMethodid
()
proxy/internal/store/session_source.go:21
↓ 6 callersFunctionisJSONObject
(data []byte, span jsonsplice.Span)
proxy/providers/anthropic/breakpoint_plan.go:376
↓ 6 callersFunctionkillProcessTree
( child, platform = process.platform, taskkill = spawnSync, kill = process.kill, graceMs = 1500, )
agents/delegate/portable-process.mjs:64
↓ 6 callersMethodlinesPerPage
linesPerPage is how many text rows fit in a canvas of the given height at this pitch: (H - 2*pad - glyphH)/pitch + 1.
engine/pixel/density.go:179
↓ 6 callersFunctionliveEngine
liveEngine is the real engine over a real (in-memory) CCR store — the same pairing the wrap runtime uses.
mcp/retrieve_integration_test.go:49
↓ 6 callersFunctionloadAtlas
()
engine/pixel/atlas.go:61
↓ 6 callersFunctionmcpServerMarkerPath
(agentId: string, serverName: string)
packages/cli/src/index.ts:9696
↓ 6 callersFunctionmergeDropped
(dst map[rune]int, src map[rune]int)
engine/pixel/transform_anthropic.go:1467
↓ 6 callersFunctionmessageContentBlocks
(content any)
engine/pixel/transform_anthropic.go:1351
↓ 6 callersFunctionnewBreakpointPlanServer
(t *testing.T, adapter providers.Adapter, rt *captureTransport, cfg Config)
proxy/internal/gateway/breakpoint_plan_test.go:37
↓ 6 callersFunctionnext
(value?: unknown)
packages/agent/src/runtime.ts:1036
↓ 6 callersFunctionobjectStringField
(body []byte, obj jsonSpan, field string)
proxy/providers/openai/content_compress.go:417
↓ 6 callersFunctionobjectValue
(value: unknown)
packages/cli/src/index.ts:3136
↓ 6 callersFunctionopenaiAdapter
Zone tagging for the cross-turn prefix fix. OpenAI caches long prompt prefixes automatically, so a message this proxy compressed while it was the live
proxy/providers/openai/prefix_stability_test.go:18
↓ 6 callersFunctionopenaiTurnConversation
openaiTurnConversation is an OpenAI chat session of n user turns with assistant replies interleaved: turn N's live zone is turn N+1's automatically-ca
proxy/internal/gateway/prefix_stability_payg_test.go:53
↓ 6 callersMethodpack
POST context candidates to ``/sdk/v1/context/pack``. On transport or malformed-report failure, returns every caller-owned item with z
packages/sdk/python/caveman_cloud/core.py:948
↓ 6 callersFunctionpathExists
(target)
bin/lib/owned-install.js:9
↓ 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 callersFunctionreadFlag
(flagPath)
src/hooks/caveman-config.js:267
↓ 6 callersFunctionreadStdin
()
packages/cli/src/index.ts:14060
↓ 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:146
↓ 6 callersFunctionsegmentBlocks
segmentBlocks splits one text payload into candidate blocks on blank-line boundaries, preserving each block's internal bytes verbatim. The editing ski
proxy/internal/store/recurring.go:153
↓ 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 callersFunctionsplitLines
Line-ending helpers shared by the line-oriented compressors. The old pattern here was `sep := "\n"; if bytes.Contains(input, "\r\n") { sep = "\r\n" }
engine/compressors/lineends.go:20
↓ 6 callersMethodstart
()
packages/pi-extension/src/recovery.ts:140
↓ 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 callersFunctionwithIntegrationLock
(agent: string, run: () => T)
packages/cli/src/index.ts:7298
↓ 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 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:302
↓ 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 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:787
↓ 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 callersMethodRead
(p []byte)
proxy/internal/gateway/chatgpt.go:373
↓ 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 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 callersMethodadd_error
(self, msg)
plugins/caveman/skills/caveman-compress/scripts/validate.py:49
↓ 5 callersMethodadd_error
(self, msg)
skills/caveman-compress/scripts/validate.py:49
↓ 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
← previousnext →501–600 of 8,152, ranked by callers