Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JuliusBrussee/caveman
/ functions
Functions
12,853 in github.com/JuliusBrussee/caveman
⨍
Functions
12,853
◇
Types & classes
1,364
↳
Endpoints
5
↓ 9 callers
Function
runSpawn
(cmd, args, opts, dry)
installer/install.js:476
↓ 9 callers
Method
run_main
(self, fake: FakeClaude, env: dict[str, str] | None = None)
tests/test_eval_llm_run.py:101
↓ 9 callers
Function
runtimeFixture
({ retrieveError, ...options } = {})
packages/middleware/typescript/tests/runtime-fixture.mjs:14
↓ 9 callers
Function
sendMessages
(t *testing.T, srv *Server, header map[string]string)
proxy/internal/gateway/route_test.go:148
↓ 9 callers
Function
skipSpace
(b []byte, i int)
proxy/internal/translate/jsonfast.go:34
↓ 9 callers
Function
sseData
sseData is the payload of one `data:` line, false for any other line.
proxy/internal/translate/messages_stream.go:173
↓ 9 callers
Method
start
()
proxy/internal/translate/chat_stream.go:104
↓ 9 callers
Function
startGenerationProcess
(t *testing.T, path string)
engine/ccr/store_generation_test.go:112
↓ 9 callers
Function
timestampFromObject
(obj map[string]any)
proxy/internal/store/usage_import.go:493
↓ 9 callers
Function
update
(effort string)
proxy/internal/gateway/route_effort_responses_test.go:78
↓ 9 callers
Function
wholeBody
(b []byte)
proxy/internal/gateway/capture.go:148
↓ 9 callers
Function
with_caveman_openai_tools
Bind real application dispatch without introducing a second scheduler. ``protocol`` is ``openai-chat`` or ``openai-responses``. ``tools`` contain
packages/middleware/python/caveman_middleware/openai.py:76
↓ 9 callers
Function
yamlLines
(text: string)
packages/cli/src/index.ts:14475
↓ 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
CachedPrefixComponents
(body []byte, meta providers.RequestMetadata)
proxy/internal/gateway/server.go:216
↓ 8 callers
Method
CallTool
(ctx context.Context, name string, args map[string]any)
mcp/codemode/codemode.go:146
↓ 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
Method
Delete
Delete revokes an authority and purges all of it in this one transaction: Revoke plus PurgeBatch until nothing is left. sessions/delete commits the re
proxy/internal/store/middleware.go:710
↓ 8 callers
Function
Evidence
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:194
↓ 8 callers
Method
Expire
Expire reclaims one default-sized batch (see ExpireBatch).
proxy/internal/store/middleware.go:358
↓ 8 callers
Method
HasDirectEvidence
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:122
↓ 8 callers
Method
History
History returns the complete oldest-to-newest supersession chain containing id. Broken/cyclic lineage is rejected rather than returning partial histor
mem/store.go:299
↓ 8 callers
Method
Inspect
(input Input)
shared/platform/cacheguard/cacheguard.go:85
↓ 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
NewCDPDriver
(parent context.Context, opts CDPOptions)
browse/cdp.go:39
↓ 8 callers
Function
NewDiff
NewDiff returns the unified-diff compressor.
engine/compressors/diff.go:24
↓ 8 callers
Function
NewHTML
NewHTML returns the default HTML article extractor.
engine/compressors/html.go:38
↓ 8 callers
Method
PlanCacheBreakpoints
(body []byte, meta providers.RequestMetadata, payg bool)
proxy/internal/gateway/breakpoint_plan.go:36
↓ 8 callers
Function
RenderChunkToPNG
(text string, cols int, style RenderStyle, maxHeightPx int, slotText string)
engine/pixel/render.go:424
↓ 8 callers
Function
RenderTextToPNGsMultiCol
(text string, cols, numCols int)
engine/pixel/render.go:774
↓ 8 callers
Method
SanitizeAndMapHeaders
(ctx context.Context, req *http.Request, credential Credential, _ *url.URL)
proxy/providers/adapter.go:621
↓ 8 callers
Method
Stop
()
proxy/internal/gateway/cache_warm_test.go:36
↓ 8 callers
Method
Valid
Valid reports whether ServerConfig names either a stdio command or a remote HTTP(S) URL.
mcp/codemode/stdio_upstream.go:44
↓ 8 callers
Function
ValidPrice
ValidPrice rejects catalog rows whose numeric fields could create negative or non-finite billing. Zero rates remain valid for non-applicable token cla
shared/platform/cost/cost.go:91
↓ 8 callers
Function
WrapLines
(text string, cols, markerScale int)
engine/pixel/render.go:195
↓ 8 callers
Function
_cave
()
packages/sdk/python/tests/test_tool_events.py:46
↓ 8 callers
Function
_fake_client
Anthropic client whose messages.stream() yields one text block.
tests/test_call_claude_streaming.py:20
↓ 8 callers
Function
_scope
(runtime, source, context=None, adapter="llama-index")
packages/middleware/python/caveman_middleware/llama_index.py:56
↓ 8 callers
Function
add
(text:unknown,pi:number|null)
packages/middleware/typescript/src/langchain-model.ts:75
↓ 8 callers
Method
apply
(model: ExtensionContext["model"], ctx: ExtensionContext)
packages/pi-extension/src/provider.ts:64
↓ 8 callers
Function
arrayElements
(body []byte, arr jsonSpan)
proxy/providers/anthropic/splice.go:79
↓ 8 callers
Method
assert
()
proxy/internal/gateway/cache_prefix_invariant_test.go:1677
↓ 8 callers
Function
autopilotPaths
()
packages/cli/src/learn-autopilot.ts:48
↓ 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
cavemanHome
()
packages/cli/src/modules/config-home.ts:10
↓ 8 callers
Function
cavemanInvocation
()
packages/cli/src/index.ts:19037
↓ 8 callers
Function
chatGPTTurn
(texts ...string)
proxy/internal/gateway/chatgpt_test.go:1450
↓ 8 callers
Method
chunk
chunk writes one stream chunk with delta (a JSON object) and finish; content commits the gate.
proxy/internal/translate/chat_stream.go:60
↓ 8 callers
Method
clone
()
proxy/internal/gateway/cache_prefix_invariant_test.go:257
↓ 8 callers
Function
compactMeta
(v map[string]any)
proxy/internal/store/usage_import.go:668
↓ 8 callers
Function
contentBlocks
(content any)
engine/pixel/transform_anthropic.go:1365
↓ 8 callers
Function
copySafeResponseHeaders
(dst, src http.Header)
proxy/internal/gateway/headers.go:61
↓ 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
currentSelection
()
packages/cli/src/modules/apply.ts:143
↓ 8 callers
Method
db
db opens the fixture's middleware store directly, for assertions and faults.
proxy/internal/middleware/runtime_test.go:74
↓ 8 callers
Function
deepMerge
(base: unknown, overlay: unknown)
packages/cli/src/index.ts:7659
↓ 8 callers
Function
detectCodexWrapAuthMode
()
packages/cli/src/index.ts:7975
↓ 8 callers
Function
findModule
(id: string)
packages/cli/src/modules/registry.ts:126
↓ 8 callers
Function
geminiConfigDir
(env: NodeJS.ProcessEnv = process.env)
packages/cli/src/index.ts:7903
↓ 8 callers
Function
genPNG
(t *testing.T, w, h int)
engine/image/image_test.go:13
↓ 8 callers
Function
gutterLines
gutterLines renders content the way a coding agent's read tool prints a file.
engine/listing_test.go:11
↓ 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:1479
↓ 8 callers
Function
headers
(cave: Cave, workflow: string, upstreamKey?: string, hint?: Record<string, unknown>, trace?: TraceContext)
packages/sdk/typescript/src/index.ts:2166
↓ 8 callers
Function
identity
(parts ...string)
proxy/internal/middleware/runtime.go:283
↓ 8 callers
Function
isRecord
(value: unknown)
packages/sdk/typescript/src/index.ts:1398
↓ 8 callers
Function
jsonBytes
(root: Record<string, unknown>, like?: Buffer | null)
packages/cli/src/index.ts:11257
↓ 8 callers
Function
jsonText
--- the simulated client ---------------------------------------------------------
proxy/internal/gateway/cache_prefix_invariant_test.go:206
↓ 8 callers
Function
keepNonRedundant
keepNonRedundant guarantees that every distinct kind of content in a payload survives an elision at least once. A unit about to be dropped is kept whe
engine/compressors/redundancy.go:39
↓ 8 callers
Function
learnJSON
(t *testing.T, out any, args ...string)
proxy/cmd/caveman-proxy/learn_wire_test.go:56
↓ 8 callers
Function
managedHookIdentity
(command: string)
packages/cli/src/index.ts:8276
↓ 8 callers
Method
mark
mark is where the next block starts in the arena.
proxy/internal/translate/msgbuild.go:88
↓ 8 callers
Function
mcpServerMarkerPath
(agentId: string, serverName: string)
packages/cli/src/index.ts:14173
↓ 8 callers
Function
messageResp
(model, usage string)
proxy/internal/gateway/cache_warm_test.go:163
↓ 8 callers
Function
nativeHooksDocument
(agentId: "claude" | "codex" | "gemini", includeShrink: boolean, base: Record<string, unknown> = {}, includeRe
packages/cli/src/index.ts:8322
↓ 8 callers
Function
nativeIntegrationStatus
(agent: NativeAgent, { probe = true }: { probe?: boolean } = {})
packages/cli/src/index.ts:11829
↓ 8 callers
Function
newInvariantHarness
(t testing.TB)
proxy/internal/gateway/cache_prefix_invariant_test.go:425
↓ 8 callers
Function
newPrefixMonitor
()
proxy/internal/gateway/prefix_monitor.go:98
↓ 8 callers
Function
newRouteRun
newRouteRun reads the labels and the session keys. The session is the caller's session id when it is exact, else the agent's own session header (a Cod
proxy/internal/gateway/route.go:447
↓ 8 callers
Function
newSessionLedger
()
proxy/internal/gateway/ledger.go:100
↓ 8 callers
Function
newWarmTable
(path string)
proxy/internal/gateway/cache_warm_table.go:58
↓ 8 callers
Function
now
()
packages/sdk/typescript/src/middleware/runtime.ts:87
↓ 8 callers
Method
open
()
proxy/cmd/caveman-proxy/main.go:1298
↓ 8 callers
Method
optimize
(step)
packages/sdk/python/tests/test_middleware_v1_1.py:298
↓ 8 callers
Method
optimize
(self, **options)
packages/sdk/python/caveman_cloud/middleware/async_runtime.py:123
↓ 8 callers
Function
paint
(code: string, s: string)
packages/cli/src/index.ts:23448
↓ 8 callers
Function
parseJsonRelaxed
(rawText: string)
packages/cli/src/codemode.ts:80
↓ 8 callers
Method
passive
(self, runtime, reason)
packages/middleware/python/caveman_middleware/agno.py:139
↓ 8 callers
Function
readRegularIfExists
(p)
installer/lib/openclaw.js:63
↓ 8 callers
Function
record
(i int)
proxy/internal/cloudlink/link_test.go:518
↓ 8 callers
Method
recovery
(self, scope: Scope)
packages/sdk/python/caveman_cloud/middleware/async_runtime.py:101
↓ 8 callers
Function
rejectTransformed
(status int, header http.Header)
proxy/internal/gateway/cache_prefix_invariant_test.go:544
↓ 8 callers
Function
resolve
(t *testing.T, a Adapter, path string, header map[string]string)
proxy/providers/bedrock/bedrock_test.go:46
↓ 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
run
(extra: string[])
packages/cli/src/index.ts:4158
↓ 8 callers
Function
run
( args: list[str], *, cwd: Path = ROOT, env: dict[str, str] | None = None, check: bool = T
tests/verify_repo.py:48
↓ 8 callers
Function
safeCallID
safeCallID rewrites a call id another provider minted into one this upstream accepts. Deterministic, so a call and its output keep matching.
proxy/internal/translate/responses.go:230
↓ 8 callers
Method
set_session_mode
(self, session_id, mode)
tests/test_hooks.py:587
↓ 8 callers
Function
sh
(command, args, { cwd = root, env = process.env, allowFail = false } = {})
tests/middleware-e2e/harness.mjs:41
← previous
next →
601–700 of 12,853, ranked by callers