Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JuliusBrussee/caveman
/ functions
Functions
13,382 in github.com/JuliusBrussee/caveman
⨍
Functions
13,382
◇
Types & classes
1,416
↳
Endpoints
5
↓ 8 callers
Method
open
()
proxy/cmd/caveman-proxy/main.go:1306
↓ 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:23952
↓ 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
(index: int)
packages/sdk/python/tests/test_trace_continuity.py:172
↓ 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
Method
rewrap
([]byte)
engine/filewrap.go:117
↓ 8 callers
Function
run
(extra: string[])
packages/cli/src/index.ts:4211
↓ 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
space
(body []byte, i int)
proxy/providers/jsonsplice/jsonsplice.go:389
↓ 8 callers
Function
stop
()
packages/cli/src/index.ts:6153
↓ 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:14864
↓ 8 callers
Function
usage
(value, complete=True)
packages/middleware/python/caveman_middleware/_usage.py:18
↓ 8 callers
Function
usageJSON
usageJSON is an Anthropic usage object for a 200k-token cached prefix.
proxy/internal/gateway/cache_warm_test.go:154
↓ 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
CanonicalizeToolCatalog
CanonicalizeToolCatalog deterministically sorts a serialized `tools[]` array by stable tool name while preserving the exact inner bytes of every tool
proxy/providers/toolzone.go:88
↓ 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
Function
Default
Default returns a registry with the engine's built-in compressors registered: JSON, log, test-report, code, diff, search-result, text, HTML, tabular,
engine/compressors/compressor.go:90
↓ 7 callers
Method
Encrypt
Encrypt delegates encryption to key manager.
shared/platform/kms/kms.go:175
↓ 7 callers
Function
ExtractDedupComponents
ExtractDedupComponents computes the envelope-aware duplicate-read identity for a tool result block.
engine/harness_envelopes.go:242
↓ 7 callers
Function
ExtractStabilizable
(body []byte, meta providers.RequestMetadata)
proxy/providers/openai/content_compress.go:94
↓ 7 callers
Function
Handle
Handle returns the content-addressed handle for a payload without storing it.
engine/ccr/store.go:260
↓ 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
Method
Name
()
mcp/codemode/codemode.go:159
↓ 7 callers
Function
New
(baseURL string)
proxy/providers/azureopenai/azureopenai.go:47
↓ 7 callers
Function
New
New constructs the Vertex adapter. baseURL is the aiplatform endpoint; in production it is a Vertex host (e.g. https://us-central1-aiplatform.googleap
proxy/providers/vertex/vertex.go:84
↓ 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
↓ 7 callers
Function
NewConfig
NewConfig returns the deterministic YAML, TOML, and INI compressor.
engine/compressors/config.go:40
↓ 7 callers
Function
NewEngineCompressorWithTrimLevel
NewEngineCompressorWithTrimLevel builds the hybrid structural-Engine + embedded pure-Go trim-2 compressor at the requested trim level ("off", "conserv
proxy/internal/standalone/standalone.go:463
↓ 7 callers
Function
NewInProcessUpstream
NewInProcessUpstream creates an Upstream with the given server name.
mcp/codemode/codemode.go:173
↓ 7 callers
Function
NewServerTLS
NewServerTLS loads the files once and fails on anything unusable. clientCA is optional; with it, a client certificate is verified when presented (not
proxy/internal/identity/tls.go:37
↓ 7 callers
Method
ObserveSummarySince
ObserveSummarySince returns the compact observe-estimate object, optionally filtered to rows at or after an RFC3339 instant (the wrap session start).
proxy/internal/store/store.go:1061
↓ 7 callers
Function
OpenPostgresMiddleware
OpenPostgresMiddleware connects through postgresconfig: a non-loopback host needs sslmode=verify-full (checked against CAVE_POSTGRES_CA_CERT / CAVE_PO
proxy/internal/store/middleware_postgres.go:48
↓ 7 callers
Function
PrepareSQLitePath
PrepareSQLitePath creates or tightens a persistent SQLite file before the driver sees it. Recovery databases can contain prompts, credentials, and too
engine/ccr/store_sqlite.go:432
↓ 7 callers
Function
ProjectAnthropic
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 callers
Method
RecordBatch
([]RequestRecord)
proxy/internal/gateway/recorder.go:12
↓ 7 callers
Method
Register
Register adds one tool to an InProcessUpstream.
mcp/codemode/codemode.go:181
↓ 7 callers
Function
RenderTextToTwoLayerPNGs
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 callers
Method
Resolve
(provider string, r *http.Request)
proxy/internal/standalone/standalone.go:151
↓ 7 callers
Function
ResolveGptProfile
(model string)
engine/pixel/gpt_profiles.go:53
↓ 7 callers
Function
SQLiteDSN
SQLiteDSN builds the driver DSN for path. The two pragmas are load-bearing, not tuning: this recovery store is opened once per CLI process (caveman-mc
engine/ccr/store_sqlite.go:216
↓ 7 callers
Method
SafetyClass
SafetyClass is the compressor's inherent class on the S0–S4 ladder.
engine/compressors/compressor.go:26
↓ 7 callers
Method
SaveOriginal
SaveOriginal is SaveOriginals for one original.
proxy/internal/store/middleware.go:382
↓ 7 callers
Method
SavePlan
SavePlan stores a plan, replacing one expired by now (which Plan reported absent). A plan still live at now is never overwritten: ErrMiddlewareConflic
proxy/internal/store/middleware.go:301
↓ 7 callers
Method
SetObjectLifecycle
(id string, lifecycle Lifecycle)
engine/ccr/store_wasm.go:160
↓ 7 callers
Function
Shrink
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 callers
Method
Source
Source reports the chain entry that last produced credentials: "env", "web_identity", "container", "imds", or "" before the first success.
shared/platform/awscreds/awscreds.go:164
↓ 7 callers
Method
Stream
Stream reports whether the caller asked for a streamed answer.
proxy/internal/translate/translate.go:140
↓ 7 callers
Function
ValidateHost
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:262
↓ 7 callers
Function
Write
(home string, state State)
proxy/internal/runstate/runstate.go:142
↓ 7 callers
Method
Write
(p []byte)
proxy/internal/nativeruntime/drop_log_test.go:23
↓ 7 callers
Function
_capture
(*, fail: bool = False)
packages/sdk/python/tests/test_tool_events.py:27
↓ 7 callers
Method
_finish
(self, data, response, event)
packages/middleware/python/caveman_middleware/litellm.py:313
↓ 7 callers
Method
_passive
(self, reason)
packages/middleware/python/caveman_middleware/llama_index.py:397
↓ 7 callers
Function
_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:1990
↓ 7 callers
Method
_report
(self, reason, logical_id=None)
packages/middleware/python/caveman_middleware/litellm.py:158
↓ 7 callers
Method
add
add decides the JSON string at text. replace is the span its rendering replaces and wrap shapes the image parts for that span; only a live text may be
proxy/internal/gateway/pixel.go:195
↓ 7 callers
Function
agentNativeBundleJournalPath
(agent: "claude" | "codex", pending = false)
packages/cli/src/index.ts:3497
↓ 7 callers
Function
agentNativeCloudMcpMatches
(agent: "claude" | "codex", mcp: { command: string; args: string[] })
packages/cli/src/index.ts:3610
↓ 7 callers
Function
anthropicPixelBody
(model string, stream bool)
proxy/internal/gateway/pixel_test.go:428
↓ 7 callers
Method
anthropicWireZones
anthropicWireZones reports whether this request's compression zones follow the Anthropic Messages grammar: the mount must declare the anthropic wire d
proxy/providers/openaicompat/openaicompat.go:258
↓ 7 callers
Function
appendInner
appendInner appends escaped string contents as one JSON string.
proxy/internal/translate/jsonfast.go:332
↓ 7 callers
Method
assemble
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:425
↓ 7 callers
Function
assertNoPointers
(t *testing.T, what, content string)
mcp/retrieve_integration_test.go:97
↓ 7 callers
Function
call
(args, input)
mem/js/index.mjs:13
↓ 7 callers
Function
captureSpawn
(cmd, args, opts)
installer/install.js:502
↓ 7 callers
Function
captureStdout
(t *testing.T, fn func())
proxy/cmd/caveman-proxy/status_test.go:223
↓ 7 callers
Method
charBudget
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 callers
Function
checkedNonNegativeSum
(values ...int64)
proxy/internal/store/usage_import.go:652
↓ 7 callers
Function
claudeRoot
Agent roots resolve local transcript/config dirs and stay env-overridable so tests never read or write a user's real agent data. After the CAVEMAN_* t
proxy/internal/store/config_scan.go:62
↓ 7 callers
Method
close
(self)
packages/sdk/python/caveman_cloud/middleware/runtime.py:810
↓ 7 callers
Function
cloudConfigPath
()
packages/cli/src/modules/config-home.ts:28
↓ 7 callers
Function
compressGDScript
compressGDScript elides every named function body and reports whether anything changed. Headers may span several lines (a wrapped parameter list); a f
engine/compressors/code_gdscript.go:66
↓ 7 callers
Function
contentSHA256
(raw string)
proxy/internal/store/recurring.go:284
↓ 7 callers
Function
corpusPage
(t *testing.T, name string)
mcp/retrieve_integration_test.go:38
↓ 7 callers
Function
damagedStore
damagedStore builds a store whose recoveries b-tree has the damage #1149 and #1369 report: two interior cells name the same child page, so a page has
engine/ccr/store_integrity_test.go:20
↓ 7 callers
Method
decline
Native adapters use this when they pass through at wrap time (an untested framework version, a recovery tool name * conflict); `adapter` names them
packages/sdk/typescript/src/middleware/runtime.ts:527
↓ 7 callers
Function
decodeRaw
decodeRaw unmarshals a[b] usage.RawUsage for comparison, tolerating that re-marshaling a parsed map can reorder keys (values are what matter).
proxy/providers/adapter_raw_usage_test.go:12
↓ 7 callers
Function
die
(msg)
agents/compile.mjs:53
↓ 7 callers
Function
discardResponse
(response: Response)
packages/sdk/typescript/src/index.ts:2034
↓ 7 callers
Method
discover
(deadline *behaviorDeadline)
proxy/internal/store/session_source.go:22
↓ 7 callers
Function
elides
(t *testing.T, src, mustKeep string)
engine/compressors/code_langs_test.go:11
← previous
next →
701–800 of 13,382, ranked by callers