Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JuliusBrussee/caveman
/ functions
Functions
12,391 in github.com/JuliusBrussee/caveman
⨍
Functions
12,391
◇
Types & classes
1,304
↳
Endpoints
5
↓ 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
NewDiff
NewDiff returns the unified-diff compressor.
engine/compressors/diff.go:24
↓ 8 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:414
↓ 8 callers
Function
NewHTML
NewHTML returns the default HTML article extractor.
engine/compressors/html.go:38
↓ 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
RetrieveQuery
(handle, query string)
mcp/engine_tools.go:22
↓ 8 callers
Method
SanitizeAndMapHeaders
(ctx context.Context, req *http.Request, credential Credential, _ *url.URL)
proxy/providers/adapter.go:595
↓ 8 callers
Method
Stop
()
proxy/internal/gateway/cache_warm_test.go:35
↓ 8 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
↓ 8 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
↓ 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:18791
↓ 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:7441
↓ 8 callers
Function
detectCodexWrapAuthMode
()
packages/cli/src/index.ts:7757
↓ 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:7685
↓ 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:11016
↓ 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:8058
↓ 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:13927
↓ 8 callers
Function
nativeHooksDocument
(agentId: "claude" | "codex" | "gemini", includeShrink: boolean, base: Record<string, unknown> = {}, includeRe
packages/cli/src/index.ts:8104
↓ 8 callers
Function
nativeIntegrationStatus
(agent: NativeAgent, { probe = true }: { probe?: boolean } = {})
packages/cli/src/index.ts:11588
↓ 8 callers
Function
newInvariantHarness
(t testing.TB)
proxy/internal/gateway/cache_prefix_invariant_test.go:425
↓ 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:23206
↓ 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
( 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
↓ 8 callers
Function
stop
()
packages/cli/src/index.ts:6047
↓ 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
toString
(v any)
engine/pixel/transform_anthropic.go:1529
↓ 8 callers
Function
topLevelSection
(lines: string[], key: string)
packages/cli/src/index.ts:14287
↓ 8 callers
Function
usage
(value, complete=True)
packages/middleware/python/caveman_middleware/_usage.py:19
↓ 8 callers
Method
wait
(_id: string, _options?: { intervalMs?: number; timeoutMs?: number })
packages/sdk/typescript/src/index.ts:755
↓ 8 callers
Function
writeTree
(t *testing.T, root string, files map[string]string)
proxy/internal/repointel/index_test.go:90
↓ 7 callers
Method
Allows
Allows reports whether the principal may use namespace.
proxy/internal/identity/identity.go:102
↓ 7 callers
Function
Command
Command builds a git invocation rooted at root that the repository cannot steer. Inherited GIT_* variables are dropped so an outer environment cannot
proxy/internal/gitsafe/gitsafe.go:44
↓ 7 callers
Function
CompactSlabWhitespace
(text string)
engine/pixel/textprep.go:234
↓ 7 callers
Method
CompressSegment
(segment []byte)
proxy/internal/gateway/server.go:95
↓ 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
ExtractStabilizable
(body []byte, meta providers.RequestMetadata)
proxy/providers/openai/content_compress.go:92
↓ 7 callers
Function
Handle
Handle returns the content-addressed handle for a payload without storing it.
engine/ccr/store.go:260
↓ 7 callers
Function
IsRecoveryToolName
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:456
↓ 7 callers
Method
LoadExperiment
(label string)
proxy/internal/store/learn_experiment.go:160
↓ 7 callers
Method
MiddlewareUsage
(ctx context.Context)
proxy/internal/store/middleware.go:251
↓ 7 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
↓ 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
← previous
next →
601–700 of 12,391, ranked by callers