MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions8,033 in github.com/JuliusBrussee/caveman

↓ 8 callersFunctionDecrypt
Decrypt reverses Encrypt: it expects nonce(12) || ciphertext+tag.
shared/platform/secretbox/secretbox.go:104
↓ 8 callersMethodDecrypt
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 callersFunctionEvidence
Evidence ranks task-specific paths from an already-built repository map. It remains deterministic and performs no filesystem, network, or model work.
proxy/internal/repointel/index.go:189
↓ 8 callersMethodInspect
(input Input)
shared/platform/cacheguard/cacheguard.go:85
↓ 8 callersFunctionList
List returns every catalog entry so callers can serve the real, complete model catalog — provider/model/capabilities — instead of a hardcoded subset.
shared/platform/catalog/catalog.go:254
↓ 8 callersFunctionLookup
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 callersFunctionNewHTML
NewHTML returns the default HTML article extractor.
engine/compressors/html.go:38
↓ 8 callersFunctionNewInsertClient
NewInsertClient returns an *http.Client bounded for ClickHouse inserts.
shared/platform/chhttp/chhttp.go:278
↓ 8 callersFunctionOpen
Open opens (creating if needed) a cavemem store.
mem/store.go:94
↓ 8 callersFunctionPrice
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:118
↓ 8 callersFunctionPriceForRegion
PriceForRegion returns only an exact provider+model+region catalog row. It is the runtime billing lookup for region-sensitive Bedrock and Vertex calls
shared/platform/catalog/catalog.go:138
↓ 8 callersFunctionRenderChunkToPNG
(text string, cols int, style RenderStyle, maxHeightPx int, slotText string)
engine/pixel/render.go:423
↓ 8 callersFunctionRenderTextToPNGsMultiCol
(text string, cols, numCols int)
engine/pixel/render.go:768
↓ 8 callersMethodSanitizeAndMapHeaders
(ctx context.Context, req *http.Request, credential Credential, _ *url.URL)
proxy/providers/adapter.go:433
↓ 8 callersFunctionWrapLines
(text string, cols, markerScale int)
engine/pixel/render.go:194
↓ 8 callersFunction_cave
()
packages/sdk/python/tests/test_tool_events.py:46
↓ 8 callersFunctionbold
(s: string)
packages/cli/src/index.ts:18381
↓ 8 callersFunctionbuildWrapEnv
(agent?: AgentProfile, gw = gatewayURL(), mcpMode: McpSurfaceMode = "auto", agentArgs: string[] = [])
packages/cli/src/index.ts:9032
↓ 8 callersFunctioncachePointsEnabled
()
proxy/providers/bedrock/cache_points_test.go:15
↓ 8 callersMethodcall
(event: HookEvent, payload: Record<string, unknown>)
packages/pi-extension/src/lifecycle.ts:61
↓ 8 callersMethodcancel
Drop a reservation whose call never reached the provider.
packages/agent/src/budget.ts:424
↓ 8 callersMethodcanvas
--- 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 callersFunctioncompactMeta
(v map[string]any)
proxy/internal/store/usage_import.go:671
↓ 8 callersFunctioncontentBlocks
(content any)
engine/pixel/transform_anthropic.go:1355
↓ 8 callersFunctioncreation
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 callersFunctiondeepMerge
(base: unknown, overlay: unknown)
packages/cli/src/index.ts:5915
↓ 8 callersFunctionfindObjectField
(body []byte, obj jsonSpan, field string)
proxy/providers/anthropic/splice.go:37
↓ 8 callersFunctiongatewayDecodeJSONString
(raw []byte)
proxy/internal/gateway/pixel.go:551
↓ 8 callersFunctiongenPNG
(t *testing.T, w, h int)
engine/image/image_test.go:13
↓ 8 callersFunctiongetObject
(root: unknown, path: string[])
packages/cli/src/index.ts:6010
↓ 8 callersFunctionheaders
( cave: Cave, workflow: str, upstream_key: str | None = None, latency_class: str | None = None
packages/sdk/python/caveman_cloud/core.py:1457
↓ 8 callersFunctionheaders
(cave: Cave, workflow: string, upstreamKey?: string, hint?: Record<string, unknown>, trace?: TraceContext)
packages/sdk/typescript/src/index.ts:2091
↓ 8 callersFunctionisRecord
(value: unknown)
packages/sdk/typescript/src/index.ts:1390
↓ 8 callersFunctionjsonStr
jsonStr quotes s as a JSON string literal for embedding in a request line.
mcp/server_test.go:764
↓ 8 callersFunctionmcpServerMarkerPath
(agentId: string, serverName: string)
packages/cli/src/index.ts:10261
↓ 8 callersFunctionmustHome
(logger *slog.Logger)
proxy/cmd/caveman-proxy/main.go:988
↓ 8 callersFunctionmutateRawConfig
(fn: (out: Record<string, unknown>) => void)
packages/cli/src/index.ts:3845
↓ 8 callersFunctionnativeHooksDocument
(agentId: "claude" | "codex" | "gemini", includeShrink: boolean, base: Record<string, unknown> = {}, includeRe
packages/cli/src/index.ts:6434
↓ 8 callersFunctionnewSessionLedger
()
proxy/internal/gateway/ledger.go:100
↓ 8 callersFunctionnext
(value?: unknown)
packages/agent/src/runtime.ts:1036
↓ 8 callersFunctionpaint
(code: string, s: string)
packages/cli/src/index.ts:18378
↓ 8 callersFunctionportListening
(host: string, port: number)
packages/cli/src/index.ts:18557
↓ 8 callersFunctionreadIdentifierToken
(source: string, start: number)
packages/agent/src/source-graph.ts:689
↓ 8 callersFunctionreadNativeJournal
(agent: string)
packages/cli/src/index.ts:7874
↓ 8 callersFunctionrealEngine
(t *testing.T)
mcp/server_test.go:76
↓ 8 callersMethodremaining
Budget available to a new reservation right now.
packages/agent/src/budget.ts:309
↓ 8 callersFunctionresolve
(t *testing.T, rawurl string)
proxy/providers/azureopenai/azure_routing_test.go:11
↓ 8 callersFunctionretroLogPayload
--- fixtures --------------------------------------------------------------- retroLogPayload builds a repetitive tool-result body the engine can actua
proxy/internal/store/learn_retro_test.go:22
↓ 8 callersFunctionretroRepeatedBlock
retroRepeatedBlock is one paragraph heavy enough to clear minBlockTokens.
proxy/internal/store/learn_retro_test.go:31
↓ 8 callersFunctionsetKey
(t *testing.T)
shared/platform/secretbox/secretbox_test.go:9
↓ 8 callersFunctionstreamUsageEnabled
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 callersFunctionsubagent
(options: { name: string; description: string; agent: AgentDefinition; timeoutMs?: number; maxInputC
packages/agent/src/index.ts:146
↓ 8 callersFunctionsum
(pick: (bill: TurnBill) => number)
packages/agent/src/code.ts:837
↓ 8 callersFunctiontelemetryState
()
packages/cli/src/index.ts:539
↓ 8 callersFunctiontimestampFromObject
(obj map[string]any)
proxy/internal/store/usage_import.go:496
↓ 8 callersFunctiontoString
(v any)
engine/pixel/transform_anthropic.go:1519
↓ 8 callersFunctionunitPrice
(p cost.Price)
proxy/routing/routing.go:335
↓ 7 callersFunctionAppendObjectFields
AppendObjectFields inserts fields immediately before an object's closing brace. Existing bytes, whitespace, key order, and escapes remain untouched. C
proxy/providers/jsonsplice/jsonsplice.go:154
↓ 7 callersFunctionCanonicalDetail
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 callersFunctionCompactSlabWhitespace
(text string)
engine/pixel/textprep.go:234
↓ 7 callersFunctionDecodeTOON
DecodeTOON parses the supported TOON subset back into the JSON data model.
engine/compressors/toon_decode.go:23
↓ 7 callersMethodEncrypt
Encrypt delegates encryption to key manager.
shared/platform/kms/kms.go:175
↓ 7 callersMethodHasDirectEvidence
HasDirectEvidence reports whether the bundle earned the right to be shown to a model: at least one ranked item matched a task term in its own path or
proxy/internal/repointel/index.go:117
↓ 7 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:378
↓ 7 callersFunctionNew
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:33
↓ 7 callersFunctionNewAXTree
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 callersFunctionNewCDPDriver
(parent context.Context, opts CDPOptions)
browse/cdp.go:39
↓ 7 callersFunctionNewConfig
NewConfig returns the deterministic YAML, TOML, and INI compressor.
engine/compressors/config.go:40
↓ 7 callersFunctionNewEngineCompressor
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:187
↓ 7 callersFunctionNewTerminal
NewTerminal returns the default terminal/command-output compressor.
engine/compressors/terminal.go:53
↓ 7 callersMethodNewUsageScanner
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 callersFunctionParsePoolConfig
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 callersFunctionProjectAnthropic
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 callersFunctionRenderTextToTwoLayerPNGs
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 callersFunctionResolveGptProfile
(model string)
engine/pixel/gpt_profiles.go:53
↓ 7 callersMethodSafetyClass
SafetyClass is the compressor's inherent class on the S0–S4 ladder.
engine/compressors/compressor.go:26
↓ 7 callersFunctionShrink
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:117
↓ 7 callersFunctionStripToolSchemaAnnotations
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 callersMethodSupersede
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 callersFunctionToolRawText
ToolRawText wraps a raw string (e.g. recovered original bytes) as text content.
mcp/protocol.go:79
↓ 7 callersFunctionToolText
ToolText wraps a value as a single JSON text content item (the agent receives JSON it can parse).
mcp/protocol.go:70
↓ 7 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:193
↓ 7 callersFunction_capture
(*, fail: bool = False)
packages/sdk/python/tests/test_tool_events.py:27
↓ 7 callersFunction_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 callersMethod_write
(self, dirpath, name, body)
tests/test_detect.py:51
↓ 7 callersFunctionagentNativeBundleJournalPath
(agent: "claude" | "codex", pending = false)
packages/cli/src/index.ts:2547
↓ 7 callersFunctionagentNativeCloudMcpMatches
(agent: "claude" | "codex", mcp: { command: string; args: string[] })
packages/cli/src/index.ts:2660
↓ 7 callersFunctionanthropicPayload
(text string, in, out int)
rewriter/rewriter_test.go:52
↓ 7 callersFunctionanthropicPixelBody
(model string, stream bool)
proxy/internal/gateway/pixel_test.go:428
↓ 7 callersFunctionanthropicPixelResponse
(model string)
proxy/internal/gateway/pixel_test.go:451
↓ 7 callersFunctionapplyCachePoints
( t *testing.T, body string, meta providers.RequestMetadata, policy providers.TransformPolicy, )
proxy/providers/bedrock/cache_points_test.go:22
↓ 7 callersMethodassemble
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 callersFunctionassertNoPointers
(t *testing.T, what, content string)
mcp/retrieve_integration_test.go:97
↓ 7 callersFunctioncallRetrieveTool
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 callersFunctioncatalogCost
(usage: { provider: string; model: string; inputTokens: number; outputTokens: number; cacheReadToken
packages/agent/src/catalog.ts:249
↓ 7 callersFunctioncatalogSearchCeiling
( model: string, inputTokens: number, outputTokens: number, )
packages/agent/src/catalog.ts:229
↓ 7 callersFunctioncavemanBinForHook
(powershell: boolean = process.platform === "win32")
packages/cli/src/index.ts:13166
↓ 7 callersFunctioncavemanInvocation
()
packages/cli/src/index.ts:14471
↓ 7 callersMethodcharBudget
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 callersFunctionclose
()
packages/agent/tests/claude.runtime.mjs:265
← previousnext →301–400 of 8,033, ranked by callers