Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JuliusBrussee/caveman
/ functions
Functions
7,561 in github.com/JuliusBrussee/caveman
⨍
Functions
7,561
◇
Types & classes
842
↓ 9 callers
Function
wholeBody
(b []byte)
proxy/internal/gateway/capture.go:149
↓ 9 callers
Function
wrapRuntimeConfig
(options: { forStart?: boolean } = {})
packages/cli/src/index.ts:2977
↓ 8 callers
Function
AnthropicImageTokens
AnthropicImageTokens returns the Anthropic input-token cost of a w×h image under tier, without the safety margin (callers apply ImageCostSafetyMargin)
engine/pixel/pricing.go:42
↓ 8 callers
Method
Apply
(context.Context, NativeRequest, Plan)
cacheengine/types.go:169
↓ 8 callers
Function
Bool
(name string, fallback bool)
shared/platform/env/env.go:21
↓ 8 callers
Function
Decrypt
Decrypt reverses Encrypt: it expects nonce(12) || ciphertext+tag.
shared/platform/secretbox/secretbox.go:104
↓ 8 callers
Method
Decrypt
Decrypt unwraps versioned KMS envelope. Metadata can choose only validated key identity under configured provider; it can never choose host or token.
shared/platform/kms/kms.go:222
↓ 8 callers
Function
GenerateTrace
GenerateTrace builds deterministic provider-native real-agent-shaped requests.
cacheengine/cachebench/trace.go:26
↓ 8 callers
Function
Lookup
Lookup returns the Info for a class. The second return is false for an unknown class — callers fail closed (treat an unknown class as unsafe to run).
engine/safety/safety.go:53
↓ 8 callers
Function
New
New constructs the Bedrock adapter. baseURL is the bedrock-runtime endpoint; in production it is the regional endpoint (https://bedrock-runtime.<regio
proxy/providers/bedrock/bedrock.go:34
↓ 8 callers
Function
New
()
shared/platform/cacheguard/cacheguard.go:67
↓ 8 callers
Function
NewHTML
NewHTML returns the default HTML article extractor.
engine/compressors/html.go:38
↓ 8 callers
Function
NewInsertClient
NewInsertClient returns an *http.Client bounded for ClickHouse inserts.
shared/platform/chhttp/chhttp.go:278
↓ 8 callers
Function
Open
Open opens (creating if needed) a cavemem store.
mem/store.go:94
↓ 8 callers
Function
Price
Price returns the catalog pricing for an exact provider+model pair along with the catalog version (the entry's verified_at date). When a model is not
shared/platform/catalog/catalog.go:59
↓ 8 callers
Function
RenderChunkToPNG
(text string, cols int, style RenderStyle, maxHeightPx int, slotText string)
engine/pixel/render.go:423
↓ 8 callers
Function
RenderTextToPNGsMultiCol
(text string, cols, numCols int)
engine/pixel/render.go:768
↓ 8 callers
Function
RoundUSD
RoundUSD matches the Decimal128(10) storage scale used by ClickHouse. Six decimal places zeroed legitimate sub-micro costs (for example one GPT-5.4 na
shared/platform/cost/cost.go:58
↓ 8 callers
Method
SanitizeAndMapHeaders
(ctx context.Context, req *http.Request, credential Credential, _ *url.URL)
proxy/providers/adapter.go:429
↓ 8 callers
Function
WrapLines
(text string, cols, markerScale int)
engine/pixel/render.go:194
↓ 8 callers
Function
_cave
()
packages/sdk/python/tests/test_tool_events.py:46
↓ 8 callers
Function
cachePointsEnabled
()
proxy/providers/bedrock/cache_points_test.go:15
↓ 8 callers
Method
canvas
--- Page geometry derived from a render profile --------------------------- A page is drawn as: rows advance by PitchY with an 8px-tall glyph, so the
engine/pixel/density.go:170
↓ 8 callers
Function
contentBlocks
(content any)
engine/pixel/transform_anthropic.go:1355
↓ 8 callers
Function
creation
The session ledger is the accounting the harm tripwire reads, and the freeze registry every lever consults. Its contract: bounded, session-scoped, one
proxy/internal/gateway/ledger_test.go:14
↓ 8 callers
Function
findObjectField
(body []byte, obj jsonSpan, field string)
proxy/providers/anthropic/splice.go:37
↓ 8 callers
Function
gatewayDecodeJSONString
(raw []byte)
proxy/internal/gateway/pixel.go:551
↓ 8 callers
Function
genPNG
(t *testing.T, w, h int)
engine/image/image_test.go:13
↓ 8 callers
Function
getObject
(root: unknown, path: string[])
packages/cli/src/index.ts:5272
↓ 8 callers
Function
headers
( cave: Cave, workflow: str, upstream_key: str | None = None, latency_class: str | None = None
packages/sdk/python/caveman_cloud/core.py:1457
↓ 8 callers
Function
headers
(cave: Cave, workflow: string, upstreamKey?: string, hint?: Record<string, unknown>, trace?: TraceContext)
packages/sdk/typescript/src/index.ts:2091
↓ 8 callers
Function
isRecord
(value: unknown)
packages/sdk/typescript/src/index.ts:1390
↓ 8 callers
Function
jsonStr
jsonStr quotes s as a JSON string literal for embedding in a request line.
mcp/server_test.go:764
↓ 8 callers
Function
mustHome
mustHome resolves and creates the ~/.caveman directory, honoring CAVEMAN_HOME.
proxy/cmd/caveman-proxy/main.go:854
↓ 8 callers
Function
nativeHooksDocument
(agentId: "claude" | "codex" | "gemini", includeShrink: boolean, base: Record<string, unknown> = {}, includeRe
packages/cli/src/index.ts:5549
↓ 8 callers
Function
newSessionLedger
()
proxy/internal/gateway/ledger.go:100
↓ 8 callers
Function
newToolSchemaStripServer
(t *testing.T, comp Compressor, rt *captureTransport, cfg Config)
proxy/internal/gateway/toolschema_strip_test.go:89
↓ 8 callers
Function
paint
(code: string, s: string)
packages/cli/src/index.ts:14653
↓ 8 callers
Method
prepare
(ctx context.Context, records []TraceRecord)
cacheengine/cachebench/replay.go:501
↓ 8 callers
Function
readIdentifierToken
(source: string, start: number)
packages/agent/src/source-graph.ts:689
↓ 8 callers
Function
realEngine
(t *testing.T)
mcp/server_test.go:76
↓ 8 callers
Method
remaining
Budget available to a new reservation right now.
packages/agent/src/budget.ts:309
↓ 8 callers
Function
resolve
(t *testing.T, rawurl string)
proxy/providers/azureopenai/azure_routing_test.go:11
↓ 8 callers
Function
retroLogPayload
--- fixtures --------------------------------------------------------------- retroLogPayload builds a repetitive tool-result body the engine can actua
proxy/internal/store/learn_retro_test.go:22
↓ 8 callers
Function
retroRepeatedBlock
retroRepeatedBlock is one paragraph heavy enough to clear minBlockTokens.
proxy/internal/store/learn_retro_test.go:31
↓ 8 callers
Function
section
(title: str)
tests/verify_repo.py:24
↓ 8 callers
Function
setKey
(t *testing.T)
shared/platform/secretbox/secretbox_test.go:9
↓ 8 callers
Function
streamUsageEnabled
C8 review finding 5: this optimizer adds a client-visible SSE chunk to the response (an observable effect outside what byte-safe promises), so like re
proxy/providers/openai/stream_usage_test.go:13
↓ 8 callers
Function
subagent
(options: { name: string; description: string; agent: AgentDefinition; timeoutMs?: number; maxInputC
packages/agent/src/index.ts:146
↓ 8 callers
Function
sum
(pick: (bill: TurnBill) => number)
packages/agent/src/code.ts:837
↓ 8 callers
Function
toString
(v any)
engine/pixel/transform_anthropic.go:1519
↓ 8 callers
Function
unitPrice
(p cost.Price)
proxy/routing/routing.go:335
↓ 7 callers
Function
CanonicalDetail
CanonicalDetail returns the deterministic JSON encoding of a detail blob: keys sorted (Go's encoding/json sorts map keys recursively), whitespace stri
shared/platform/proposalrun/proposalrun.go:56
↓ 7 callers
Function
CompactSlabWhitespace
(text string)
engine/pixel/textprep.go:234
↓ 7 callers
Function
DecodeTOON
DecodeTOON parses the supported TOON subset back into the JSON data model.
engine/compressors/toon_decode.go:23
↓ 7 callers
Method
Encrypt
Encrypt delegates encryption to key manager.
shared/platform/kms/kms.go:175
↓ 7 callers
Function
NewAXTree
NewAXTree returns the forced-only CDP Accessibility.getFullAXTree compressor. It emits a compact, deterministic indented view with uid handles while C
engine/compressors/axtree.go:28
↓ 7 callers
Function
NewCDPDriver
(parent context.Context, opts CDPOptions)
browse/cdp.go:39
↓ 7 callers
Function
NewConfig
NewConfig returns the deterministic YAML, TOML, and INI compressor.
engine/compressors/config.go:40
↓ 7 callers
Function
NewEngineCompressor
NewEngineCompressor builds the engine-backed compressor over a CCR store. The engine shares that store, so a handle returned by StoreOriginal resolves
proxy/internal/standalone/standalone.go:182
↓ 7 callers
Method
NewUsageScanner
NewUsageScanner returns a sink that the proxy tees the upstream response through. It captures usage from both whole-body (non-stream) and SSE/JSONL (s
proxy/providers/adapter.go:329
↓ 7 callers
Function
NormalizeRawCacheUsage
NormalizeRawCacheUsage maps official cache counters into UsageObservation. Unknown providers, duplicate keys, negative/fractional counters, ambiguous
cacheengine/raw_usage.go:166
↓ 7 callers
Function
ParsePoolConfig
ParsePoolConfig validates the connection string and applies the managed database CA to every TLS path. Production rejects sslmode=require because it e
shared/platform/postgresconfig/postgresconfig.go:29
↓ 7 callers
Function
ProjectAnthropic
ProjectAnthropic projects a Messages request onto the provider's current count_tokens input surface. Every proven count field is copied as its raw JSO
proxy/providers/internal/counttokens/counttokens.go:62
↓ 7 callers
Function
ReadTraceJSONL
ReadTraceJSONL reads trace records using conservative default resource limits.
cacheengine/cachebench/trace.go:274
↓ 7 callers
Function
RenderTextToTwoLayerPNGs
RenderTextToTwoLayerPNGs splits wrapped text into max-level overlay pages. Each image holds up to 2×N lines: the first N in the red layer, the next N
engine/pixel/overlay.go:189
↓ 7 callers
Function
ResolveGptProfile
(model string)
engine/pixel/gpt_profiles.go:53
↓ 7 callers
Method
SafetyClass
SafetyClass is the compressor's inherent class on the S0–S4 ladder.
engine/compressors/compressor.go:26
↓ 7 callers
Function
Shrink
Shrink compresses a tool catalog with an S4 lossy transform. It is fail-open: on any parse problem or when the result would not be smaller, it returns
shrink/shrink.go:118
↓ 7 callers
Method
Sign
Sign computes the SigV4 signature for req against the given payload and sets the Authorization, X-Amz-Date, X-Amz-Content-Sha256 (and, when present, X
shared/platform/awssig/awssig.go:65
↓ 7 callers
Function
StringField
(body []byte, object Span, name string)
proxy/providers/jsonsplice/jsonsplice.go:95
↓ 7 callers
Function
StripToolSchemaAnnotations
StripToolSchemaAnnotations removes the annotationDropKeys keywords from a serialized tool catalog (the provider `tools` array) and returns ok=false wi
engine/compressors/toolschema_annotations.go:97
↓ 7 callers
Method
Supersede
Supersede atomically replaces one current memory with a new current version. The old row remains durable for history and byte-exact audit, but normal
mem/store.go:201
↓ 7 callers
Function
ToolRawText
ToolRawText wraps a raw string (e.g. recovered original bytes) as text content.
mcp/protocol.go:79
↓ 7 callers
Function
ToolText
ToolText wraps a value as a single JSON text content item (the agent receives JSON it can parse).
mcp/protocol.go:70
↓ 7 callers
Function
WriteTraceJSONL
WriteTraceJSONL writes strict replayable trace v3 records.
cacheengine/cachebench/trace.go:228
↓ 7 callers
Function
_capture
(*, fail: bool = False)
packages/sdk/python/tests/test_tool_events.py:27
↓ 7 callers
Function
_policy_number
A real finite number, or None. ``bool`` is not a number (it is an ``int`` subclass in Python, and a guard must never compare True against 1).
packages/sdk/python/caveman_cloud/core.py:1957
↓ 7 callers
Method
_write
(self, dirpath, name, body)
tests/test_detect.py:51
↓ 7 callers
Function
agentNativeBundleJournalPath
(agent: "claude" | "codex", pending = false)
packages/cli/src/index.ts:2233
↓ 7 callers
Function
agentNativeCloudMcpMatches
(agent: "claude" | "codex", mcp: { command: string; args: string[] })
packages/cli/src/index.ts:2311
↓ 7 callers
Function
anthropicPayload
(text string, in, out int)
rewriter/rewriter_test.go:52
↓ 7 callers
Function
anthropicPixelBody
(model string, stream bool)
proxy/internal/gateway/pixel_test.go:428
↓ 7 callers
Function
anthropicPixelResponse
(model string)
proxy/internal/gateway/pixel_test.go:451
↓ 7 callers
Function
applyCachePoints
( t *testing.T, body string, meta providers.RequestMetadata, policy providers.TransformPolicy, )
proxy/providers/bedrock/cache_points_test.go:22
↓ 7 callers
Method
assemble
Build a provider request with stable/session content above volatile. Pure client-side: no account and no network call. The hash ledger is
packages/sdk/python/caveman_cloud/core.py:403
↓ 7 callers
Function
assertNoPointers
(t *testing.T, what, content string)
mcp/retrieve_integration_test.go:97
↓ 7 callers
Function
callRetrieveTool
callRetrieveTool drives the caveman_retrieve tool exactly as the MCP server does: through the handler EngineTools built, with its session attached.
mcp/retrieve_integration_test.go:61
↓ 7 callers
Function
catalogCost
(usage: { provider: string; model: string; inputTokens: number; outputTokens: number; cacheReadToken
packages/agent/src/catalog.ts:249
↓ 7 callers
Function
catalogSearchCeiling
( model: string, inputTokens: number, outputTokens: number, )
packages/agent/src/catalog.ts:229
↓ 7 callers
Function
cavemanBinForHook
()
packages/cli/src/index.ts:9909
↓ 7 callers
Method
charBudget
charBudget is the per-image character capacity of a full canvas page at this profile (rows × cols × layers). Page capacity — not the fixed std budget
engine/pixel/density.go:272
↓ 7 callers
Function
close
()
packages/agent/tests/claude.runtime.mjs:265
↓ 7 callers
Function
corpusPage
(t *testing.T, name string)
mcp/retrieve_integration_test.go:38
↓ 7 callers
Function
countTokens
countTokens is the same inferred estimate the replay bench prices context policies with: `internal/replaybench/cost.go` takes an engine `tokens.Counte
rewriter/tokens.go:14
↓ 7 callers
Function
decodeRaw
decodeRaw unmarshals a[b] usage.RawUsage for comparison, tolerating that re-marshaling a parsed map can reorder keys (values are what matter).
proxy/providers/adapter_raw_usage_test.go:12
↓ 7 callers
Method
do
(ctx context.Context, authorization, method, path string, body any)
shared/platform/githubapp/githubapp.go:348
↓ 7 callers
Function
e2eHandle
(b []byte)
proxy/internal/store/prefix_stability_e2e_test.go:67
↓ 7 callers
Method
export
POST buffered spans to standard OTLP/HTTP ``{base_url}/v1/traces``. Returns the gateway's JSON response (``ok`` / ``spans_accepted`` /
packages/sdk/python/caveman_cloud/core.py:1745
↓ 7 callers
Function
firstEnvSecret
(env: NodeJS.ProcessEnv, keys: string[])
packages/cli/src/index.ts:4966
← previous
next →
301–400 of 7,561, ranked by callers