MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

↓ 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 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 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 callersFunctionguard
(runtime: MiddlewareRuntime, adapter: string, signal: AbortSignal | null | undefined, work: () => T | Promis
packages/middleware/typescript/src/guard.ts:6
↓ 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 callersFunctionnewClock
()
shared/platform/awscreds/awscreds_test.go:25
↓ 12 callersFunctionnewEngine
(t *testing.T)
engine/engine_test.go:31
↓ 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 callersFunctionobjectRoot
objectRoot spans a body that is one JSON object. Unlike jsonsplice.Root it does not validate every byte again: a routed body already parsed as JSON (t
proxy/internal/gateway/route.go:1231
↓ 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 callersFunctionwalk
(root, directory = root)
extension/scripts/verify-extension-stage.mjs:29
↓ 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 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 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:414
↓ 11 callersFunctionNewGateway
NewGateway constructs a Code-Mode gateway backed by store (optional) and eng (optional; created from store if nil).
mcp/codemode/codemode.go:214
↓ 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 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
↓ 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 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:5302
↓ 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:15486
↓ 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 callersFunctionnewChatGPTAutoUpstream
(t *testing.T, refuse string)
proxy/internal/gateway/chatgpt_auto_test.go:96
↓ 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:68
↓ 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
↓ 11 callersFunctionreadFlag
(flagPath)
src/hooks/caveman-config.js:451
↓ 11 callersFunctionretroUsageLine
(messageID string)
proxy/internal/store/learn_retro_test.go:345
↓ 11 callersMethodroute
route is the Messages host the body goes to; "" is Anthropic's own API.
proxy/internal/translate/translate.go:66
↓ 11 callersFunctionrouteServer
routeServer is an Anthropic proxy whose upstream records each model it was sent and answers rejectModel with a 400.
proxy/internal/gateway/route_test.go:106
↓ 11 callersFunctionsafeWriteFlag
(flagPath, content)
src/hooks/caveman-config.js:266
↓ 11 callersFunctionsha256
(value: string | Uint8Array)
packages/sdk/typescript/src/middleware/validate.ts:6
↓ 11 callersFunctionstatsTestRecord
(id, auth string)
proxy/internal/store/stats_test.go:15
↓ 11 callersFunctionstatsTestReport
(t *testing.T, s *Store, opts StatsReportOptions)
proxy/internal/store/stats_test.go:35
↓ 11 callersFunctionthread
thread builds a Codex Responses body: top-level effort, then the input items.
proxy/internal/gateway/route_effort_responses_test.go:64
↓ 11 callersFunctiontoolCatalogRequest
(live string)
proxy/internal/gateway/toolschema_strip_test.go:36
↓ 10 callersFunctionBuild
(ctx context.Context, root, repositoryState string, queryTerms []string)
proxy/internal/repointel/index.go:148
↓ 10 callersFunctionError
(w http.ResponseWriter, r *http.Request, status int, code, message string)
shared/platform/httpx/httpx.go:41
↓ 10 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
↓ 10 callersMethodInitMiddleware
(ctx context.Context)
proxy/internal/store/middleware.go:243
↓ 10 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
← previousnext →401–500 of 12,853, ranked by callers