MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions13,382 in github.com/JuliusBrussee/caveman

↓ 13 callersMethoduser
user appends a user turn.
proxy/internal/gateway/cache_prefix_invariant_test.go:270
↓ 13 callersFunctionvalidate_inline_codes
(orig, comp, result)
skills/caveman-compress/scripts/validate.py:487
↓ 13 callersFunctionwithOwner
(attempt: Attempt, fn: () => T)
packages/middleware/typescript/src/common.ts:23
↓ 12 callersMethodError
()
mcp/codemode/codemode.go:646
↓ 12 callersFunctionManagedConfig
ManagedConfig returns a Config with ManagedMode enabled and no allowlist.
shared/platform/ssrf/ssrf.go:179
↓ 12 callersFunctionMeasureContentCols
(text string, maxCols, markerScale int)
engine/pixel/render.go:175
↓ 12 callersFunctionNewGateway
NewGateway constructs a Code-Mode gateway backed by store (optional) and eng (optional; created from store if nil).
mcp/codemode/codemode.go:229
↓ 12 callersFunctionNewTestReport
NewTestReport returns the default test-report compressor.
engine/compressors/testreport.go:21
↓ 12 callersFunctionObjectSchema
ObjectSchema builds a JSON-Schema object for a tool's inputSchema.
mcp/protocol.go:91
↓ 12 callersFunctionPayload
Payload scrubs a captured request or response body and returns the redacted bytes plus the evidence of what was removed. On ANY error it returns a ni
shared/platform/redact/payload.go:474
↓ 12 callersFunctionTransformGemini
TransformGemini rewrites a Gemini generateContent body (contents[].parts[], systemInstruction). err != nil OR info.ImageCount == 0 means the caller MU
engine/pixel/transform_gemini.go:101
↓ 12 callersFunction_cave
()
packages/sdk/python/tests/test_trace_continuity.py:27
↓ 12 callersFunction_drive
(family, runtime, scope, **options)
packages/middleware/python/tests/test_behavior.py:535
↓ 12 callersFunction_loaded_client
A client holding the fixture bundle (signature verified against the pin).
packages/sdk/python/tests/test_runtime_policy.py:124
↓ 12 callersMethod_write
(self, dirpath, name, body)
tests/test_detect.py:69
↓ 12 callersFunctionaddLogin
addLogin writes a provider login the way `caveman providers add` does, on the file store.
proxy/internal/cloudlink/pool_test.go:20
↓ 12 callersFunctionanthropicEvents
(t *testing.T, body string)
proxy/internal/translate/helpers_test.go:104
↓ 12 callersFunctionappendJoined
appendJoined appends one JSON string holding prefix, then the string tokens (raw JSON string tokens) joined by sep (already escaped, e.g. `\n`), witho
proxy/internal/translate/jsonfast.go:311
↓ 12 callersFunctionapply
(t *testing.T, body string, policy providers.TransformPolicy)
proxy/providers/anthropic/cache_breakpoints_test.go:16
↓ 12 callersMethodarm
arm records a stream's last request (class, start) for the table and, when req is not nil, keeps its cache entry warm by req.plan. startedAt is when t
proxy/internal/gateway/cache_warm.go:235
↓ 12 callersFunctioncachePointsEnabled
()
proxy/providers/bedrock/cache_points_test.go:15
↓ 12 callersMethodcall
(req generationRequest)
engine/ccr/store_generation_test.go:151
↓ 12 callersFunctioncanonicalMode
(raw)
src/hooks/caveman-config.js:64
↓ 12 callersFunctioncapturePixelUpstream
(t *testing.T, response string)
proxy/internal/gateway/pixel_test.go:56
↓ 12 callersFunctionclearTimeout
(id)
tests/test_mcp_shrink.js:408
↓ 12 callersFunctioncodexAccept
codexAccept runs a response body through Codex's parser rules. Every item Codex would drop fails the test.
proxy/internal/translate/helpers_test.go:159
↓ 12 callersFunctiondecode
(t *testing.T, raw string)
proxy/internal/translate/helpers_test.go:56
↓ 12 callersFunctioneachStore
eachStore runs test on SQLite and, when CAVEMAN_TEST_POSTGRES_URL is set, on a fresh Postgres schema.
proxy/internal/middleware/postgres_test.go:141
↓ 12 callersFunctionemit
Host sinks are never awaited: neither a throw nor a rejected promise can change the call or crash the process.
packages/sdk/typescript/src/middleware/runtime.ts:129
↓ 12 callersMethodexport
* POST buffered spans to standard OTLP/HTTP `{baseURL}/v1/traces`. * Returns ExportTraceServiceResponse JSON. No-op when nothing is buffered.
packages/sdk/typescript/src/index.ts:2307
↓ 12 callersFunctionfamilyTokens
(retro *LearnRetro, id string)
proxy/internal/store/learn_retro_test.go:156
↓ 12 callersFunctionfindObjectField
(body []byte, obj jsonSpan, field string)
proxy/providers/anthropic/splice.go:37
↓ 12 callersFunctionframework_import_failed
Raise for an adapter module whose framework import failed. An installed distribution outside the tested range names its version and the range
packages/middleware/python/caveman_middleware/_versions.py:125
↓ 12 callersFunctiongatewayFindObjectField
(body []byte, obj gatewayJSONSpan, field string)
proxy/internal/gateway/retrieve_tool.go:230
↓ 12 callersFunctiongeminiConfigDir
(env: NodeJS.ProcessEnv = process.env)
packages/cli/src/harnesses/gemini.ts:7
↓ 12 callersFunctionguard
(runtime: MiddlewareRuntime, adapter: string, signal: AbortSignal | null | undefined, work: () => T | Promis
packages/middleware/typescript/src/guard.ts:6
↓ 12 callersFunctionhtmlAttr
(n *html.Node, key string)
engine/compressors/html_table.go:367
↓ 12 callersFunctionjstr
jstr decodes a JSON string token; "" for anything else.
proxy/internal/translate/jsonfast.go:200
↓ 12 callersFunctionmodulesFixture
({ agents = ["claude", "codex"], binaries = true, blocks = false } = {})
packages/cli/tests/_modules.mjs:36
↓ 12 callersFunctionnewCCConversation
(system, session string)
proxy/internal/gateway/cache_prefix_invariant_test.go:253
↓ 12 callersFunctionnewChatGPTAutoUpstream
(t *testing.T, refuse string)
proxy/internal/gateway/chatgpt_auto_test.go:96
↓ 12 callersFunctionnewClock
()
shared/platform/awscreds/awscreds_test.go:25
↓ 12 callersFunctionnewPixelTestServer
(t *testing.T, upstream string, mode string, adapter providers.Adapter, sink TelemetrySink, comp Compressor, r
proxy/internal/gateway/pixel_test.go:43
↓ 12 callersFunctionnewToolSchemaStripServer
(t *testing.T, comp Compressor, rt *captureTransport, cfg Config)
proxy/internal/gateway/toolschema_strip_test.go:93
↓ 12 callersFunctionopenTestStore
(t *testing.T, path string)
engine/ccr/store_consolidation_blocks_test.go:48
↓ 12 callersFunctionpredictPath
predictPath builds a native Vertex prediction path under the /vertex prefix.
proxy/providers/vertex/vertex_test.go:22
↓ 12 callersMethodpreflight
Nonthrowing discovery, even in strict mode; sends no candidate content.
packages/sdk/python/caveman_cloud/middleware/runtime.py:331
↓ 12 callersMethodready
(self)
packages/sdk/python/caveman_cloud/middleware/runtime.py:324
↓ 12 callersMethodreport
(reason: string)
packages/middleware/typescript/src/mcp.ts:67
↓ 12 callersFunctionresponsesServer
responsesServer is an OpenAI proxy whose stub provider answers with respond, in compress mode without a compressor: no rewriting, but not record mode,
proxy/internal/gateway/route_effort_responses_test.go:19
↓ 12 callersMethodsend
(h *invariantHarness, c *ccConversation)
proxy/internal/gateway/cache_prefix_invariant_test.go:1126
↓ 12 callersMethodsnapshotTool
(args json.RawMessage)
browse/session.go:136
↓ 12 callersFunctionstatsTestStore
(t *testing.T)
proxy/internal/store/stats_test.go:25
↓ 12 callersFunctionsummarizeElided
summarizeElided renders the facts that hold across every unit of one elided run, or "" when there are none, extraction found no structure, or the summ
engine/compressors/invariants.go:279
↓ 12 callersFunctionthinking
thinking puts a thinking field of kind into a convo body.
proxy/internal/gateway/route_effort_test.go:399
↓ 12 callersFunctionupstreamResponses
--- Messages -> Responses: answers -----------------------------------------
proxy/internal/translate/messages_responses_test.go:99
↓ 12 callersFunctionwarn_once
Log one WARNING per (adapter, reason) per process (bounded); returns whether it logged. The line carries only `adapter=<id or ->` and `reason=<co
packages/sdk/python/caveman_cloud/middleware/protocol.py:350
↓ 12 callersFunctionwriteRetroClaudeSessions
writeRetroClaudeSessions lays down `sessions` transcripts, each with `usageTurns` provider-counted assistant turns, one unique tool result, and `repea
proxy/internal/store/learn_retro_test.go:44
↓ 12 callersFunctionwriteRetroTranscript
writeRetroTranscript writes one transcript from raw JSONL lines.
proxy/internal/store/learn_retro_test.go:334
↓ 11 callersFunctionCompress
Compress keeps the lines of context that the query needs. A blank query is no query: the context comes back unchanged.
engine/trim2/trim.go:161
↓ 11 callersMethodCountTokensRequest
CountTokensRequest projects the ORIGINAL request. ok=false means no baseline call may be issued.
proxy/providers/adapter.go:414
↓ 11 callersFunctionFactSheetText
(source string, maxChars int)
engine/pixel/factsheet.go:268
↓ 11 callersFunctionHashPayload
HashPayload returns the lowercase hex SHA-256 of a request body, as required for the X-Amz-Content-Sha256 header and the canonical request.
shared/platform/awssig/awssig.go:120
↓ 11 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:475
↓ 11 callersMethodLeverAllowed
LeverAllowed reports whether a lever may run for this session. An empty session id, a nil ledger, and an unknown session all allow it — the tripwire o
proxy/internal/gateway/ledger.go:107
↓ 11 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:288
↓ 11 callersFunctionNew
(cfg Config)
proxy/internal/middleware/runtime.go:122
↓ 11 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:449
↓ 11 callersFunctionNewStore
NewStore reads the logins under home ($CAVEMAN_HOME).
proxy/internal/pool/pool.go:143
↓ 11 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:172
↓ 11 callersFunctionRenderTextToPNGsWithCharLimit
(text string, cols, maxCharsPerImage int, style RenderStyle, maxHeightPx int, slotText string)
engine/pixel/render.go:640
↓ 11 callersFunctionToolText
ToolText wraps a value as a single JSON text content item (the agent receives JSON it can parse).
mcp/protocol.go:70
↓ 11 callersFunctionTransformOpenAI
(body []byte, opts TransformOptions)
engine/pixel/transform_openai.go:44
↓ 11 callersMethod_plugin_install
Lay out a plugin-cache install of the hooks and return its hooks dir.
tests/test_hooks.py:249
↓ 11 callersFunctionacceptance
These records follow assertions against the real Engine, stores and HTTP handler. They are scoped criterion observations, not native-framework or prov
proxy/internal/middleware/acceptance_test.go:33
↓ 11 callersFunctionapplyCachePoints
( t *testing.T, body string, meta providers.RequestMetadata, policy providers.TransformPolicy, )
proxy/providers/bedrock/cache_points_test.go:22
↓ 11 callersFunctionbuild
({ out, targets, test })
scripts/build-release-binaries.mjs:203
↓ 11 callersFunctioncallable
(value: Tool | CallableTool)
packages/middleware/typescript/src/google.ts:27
↓ 11 callersMethodcancel
(_id: string)
packages/sdk/typescript/src/index.ts:751
↓ 11 callersFunctioncapHint
capHint is n (at most maxHint) plus extra: a buffer's capacity hint.
proxy/internal/translate/jsonfast.go:235
↓ 11 callersFunctionclaudeCodeConversation
claudeCodeConversation is a multi-turn Claude Code shaped request: a stable system field, static tools, cache_control breakpoints planted mid-conversa
proxy/internal/gateway/subscription_live_zone_test.go:61
↓ 11 callersFunctioncompleteStatsUsage
()
proxy/internal/gateway/stats_accounting_test.go:21
↓ 11 callersFunctiondecodePlan
(t *testing.T, w *httptest.ResponseRecorder)
proxy/internal/middleware/protocol_v11_test.go:118
↓ 11 callersMethoddoUpstream
doUpstream retries only connection-setup failures: the provider has not received a request. A missing response does NOT prove an inference POST was un
proxy/internal/gateway/proxy.go:43
↓ 11 callersFunctionenabled
()
proxy/providers/anthropic/cache_breakpoints_test.go:12
↓ 11 callersFunctionframeworkGate
(adapter: AdapterName, options: GateOptions, detect: () => boolean = () => true, versions: Partial<Record<Fr
packages/middleware/typescript/src/compatibility.ts:96
↓ 11 callersFunctionhumanTokens
(n: number)
packages/cli/src/index.ts:5354
↓ 11 callersFunctioninner
inner is a JSON string token without its quotes (still escaped).
proxy/internal/translate/jsonfast.go:324
↓ 11 callersFunctionjsonValueAt
(root: unknown, path: string[])
packages/cli/src/index.ts:15857
↓ 11 callersFunctionmoveSQLiteGeneration
(t *testing.T, path string, suffixes []string)
engine/ccr/store_generation_test.go:177
↓ 11 callersFunctionmustJSONBytes
(t *testing.T, v any)
engine/pixel/transform_anthropic_test.go:457
↓ 11 callersFunctionmustWrite
(t *testing.T, path, body string)
proxy/internal/store/detect_memory_health_test.go:36
↓ 11 callersFunctionnativeStub
(dir, name, source)
packages/cli/tests/harness/stub-bin.mjs:59
↓ 11 callersFunctionnewTokenGatedServer
newTokenGatedServer builds a standalone server whose inbound gate is the shared token, pointed at a capturing upstream. A nil sink is deliberate: thes
proxy/internal/standalone/auth_token_test.go:26
↓ 11 callersMethodnext
(t *testing.T, kind string, turn int, challenge string)
proxy/internal/middleware/acceptance_test.go:993
↓ 11 callersFunctionnoisy
()
proxy/internal/middleware/runtime_test.go:93
↓ 11 callersFunctionnormalize_scope
§9: namespace and session_id required; branch_id/cache_epoch default when absent or None.
packages/sdk/python/caveman_cloud/middleware/protocol.py:58
↓ 11 callersMethodok
(req generationRequest)
engine/ccr/store_generation_test.go:163
↓ 11 callersFunctionplanCacheBreakpoints
(data []byte, payg bool)
proxy/providers/anthropic/breakpoint_plan.go:129
↓ 11 callersFunctionreadCaptures
readCaptures reads every capture in dir, sorted by seq, and verifies each stored body against the hash the file itself recorded. A capture that cannot
proxy/internal/gateway/capture_test.go:25
← previousnext →401–500 of 13,382, ranked by callers