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
↓ 2 callers
Function
messageText
messageText joins a message's text blocks with "\n"; a string content is one block. ok is false when no block has any non-space text; tool reports a t
proxy/internal/cloudlink/link.go:1051
↓ 2 callers
Function
messageZones
messageZones parses a request into its message spans plus the set of message indexes that form the live zone. It is the single definition of "live" sh
proxy/providers/anthropic/content_compress.go:210
↓ 2 callers
Function
messages
(input)
packages/middleware/python/caveman_middleware/langchain.py:313
↓ 2 callers
Function
messagesFinish
messagesFinish completes a Messages body built for a Messages host: model, max_tokens, the effort as fitted thinking plus output_config, the structure
proxy/internal/translate/msgbuild.go:307
↓ 2 callers
Function
messagesSchemaFormat
messagesSchemaFormat is output_config.format for a JSON schema.
proxy/internal/translate/msgbuild.go:364
↓ 2 callers
Function
messagesToHistorySegments
(messages []Message, upToExclusive int, fromInclusive int)
engine/pixel/history_anthropic.go:195
↓ 2 callers
Function
middlewareUsageRows
middlewareUsageRows is every row's principal, counted and size, for recomputing the counters from scratch.
proxy/internal/store/middleware.go:102
↓ 2 callers
Method
middlewareWrite
(ctx context.Context, fn func(*sql.Tx) error)
proxy/internal/store/middleware.go:502
↓ 2 callers
Method
migrateCacheComponentBatch
migrateCacheComponentBatch handles the next cacheComponentBatchRows ids above the mark in one transaction: a non-empty legacy list of a row inside the
proxy/internal/store/cache_components.go:83
↓ 2 callers
Method
migrateCacheComponents
migrateCacheComponents moves every legacy list above the mark, batch by batch, until none is left or ctx ends. It is idempotent and safe to stop at an
proxy/internal/store/cache_components.go:61
↓ 2 callers
Function
mk
tests/test_mcp_shrink.js:482
↓ 2 callers
Function
mockFetch
Queue one or more responses; each is `{status?, body}` or an Error to throw.
packages/sdk/typescript/tests/runtime-policy.runtime.mjs:49
↓ 2 callers
Function
modelAllowed
(modelID string)
proxy/providers/bedrock/routing.go:431
↓ 2 callers
Function
modelFromGeminiPath
(path string)
proxy/internal/standalone/e2e_cost_bench_test.go:688
↓ 2 callers
Method
modelTurn
modelTurn reports an item a model turn produced or answered: an assistant message, and on Responses reasoning, a tool call or its output, a compaction
proxy/internal/gateway/route.go:399
↓ 2 callers
Function
moduleChoice
(state: ModuleState)
packages/cli/src/modules/status.ts:21
↓ 2 callers
Function
movedOwnedMcpRemovalBlocked
(agent: "kilo" | "qwen", serverName: string, marker: McpServerMarker)
packages/cli/src/index.ts:15299
↓ 2 callers
Function
mustRawJSON
(value any)
engine/pixel/transform_openai.go:832
↓ 2 callers
Method
name
(contentEncoding string)
proxy/internal/gateway/route.go:1571
↓ 2 callers
Function
namesAuto
namesAuto reports a JSON body whose top-level "model" is Auto.
proxy/internal/gateway/route.go:171
↓ 2 callers
Function
nativeBackupBytes
(operation: NativeJournal["operations"][number])
packages/cli/src/index.ts:11208
↓ 2 callers
Function
nativeBinaryProbe
(name: string)
packages/cli/src/index.ts:8968
↓ 2 callers
Function
nativeCapabilityReport
(agent: NativeAgent, components: NativeComponents, versionStatus: ReturnType<typeof nativeVersionStatus>)
packages/cli/src/index.ts:8719
↓ 2 callers
Function
nativeDigestObject
(value: unknown)
packages/cli/src/index.ts:17850
↓ 2 callers
Function
nativeHistory
nativeHistory removes from a request bound for the harness's own provider the reasoning another host produced in this conversation (a pool request's t
proxy/internal/gateway/route_pool.go:240
↓ 2 callers
Function
nativeHookCommand
(agentId: string)
packages/cli/src/index.ts:8184
↓ 2 callers
Function
nativeHookInvocation
( executable: string, fastHook: string, agentId: string, executableIsProxy: boolean, platform: NodeJ
packages/cli/src/index.ts:8107
↓ 2 callers
Function
nativeHostProbe
(agent: AgentProfile)
packages/cli/src/index.ts:8959
↓ 2 callers
Function
nativeMiddleware
(options: CavemanOptions, blocked: Blocked, registration?: RecoveryRegistration)
packages/middleware/typescript/src/ai-sdk.ts:75
↓ 2 callers
Function
nativeOwnEndpoint
(agent: NativeAgent)
packages/cli/src/index.ts:9033
↓ 2 callers
Function
nativeRepairFix
(agent: NativeAgent)
packages/cli/src/index.ts:10254
↓ 2 callers
Function
nearest
(directory: string, name: string, levels: number, nested: boolean)
packages/middleware/typescript/src/versions.ts:12
↓ 2 callers
Function
needsCompress
()
packages/shared/contracts/conformance/run.mjs:240
↓ 2 callers
Function
nestedCapabilityValue
(doc: Record<string, unknown>, key: CapabilityKey)
packages/cli/src/index.ts:4557
↓ 2 callers
Function
newCave
()
packages/sdk/typescript/tests/runtime-policy.runtime.mjs:68
↓ 2 callers
Function
newChatServer
(st gateway.PrefixCache, comp gateway.Compressor, rt *e2eChatTransport)
proxy/internal/store/prefix_stability_openai_e2e_test.go:74
↓ 2 callers
Function
newDialer
(cfg Config)
shared/platform/ssrf/ssrf.go:445
↓ 2 callers
Function
newFilteredUpstream
(inner Upstream, include, exclude []string)
mcp/codemode/http_upstream.go:155
↓ 2 callers
Function
newKey
(t *testing.T)
proxy/internal/middleware/hardening_test.go:45
↓ 2 callers
Function
newLoggingTokenGatedServer
newLoggingTokenGatedServer is the same server with its warnings captured, for the tests that assert on what a rejection discloses.
proxy/internal/standalone/auth_token_test.go:34
↓ 2 callers
Function
newMCPRecoveryTestServer
(t *testing.T, upstream string, sink TelemetrySink, comp Compressor)
proxy/internal/gateway/compress_test.go:765
↓ 2 callers
Function
newPiSessionSource
newPiSessionSource resolves Pi's session tree location from the environment. The source dir is disabled (zero value) when no root can be resolved.
proxy/internal/store/source_pi.go:27
↓ 2 callers
Function
newPixelCacheServer
(adapter providers.Adapter, rt *captureTransport, cache PrefixCache)
proxy/internal/gateway/pixel_test.go:463
↓ 2 callers
Function
newRecorder
(write func([]finishedRecord), logger *slog.Logger)
proxy/internal/gateway/recorder.go:48
↓ 2 callers
Function
newSQLiteMiddlewareTx
(ctx context.Context, tx *sql.Tx)
proxy/internal/store/middleware.go:472
↓ 2 callers
Method
newTraceId
A fresh 16-byte (32-hex) trace id.
packages/sdk/typescript/src/index.ts:2211
↓ 2 callers
Function
nextCall
nextCall reports a chunk at a known index that starts another call: a name with no id after the open call's arguments are whole.
proxy/internal/translate/messages_stream.go:422
↓ 2 callers
Function
nextDevicePollIntervalMs
(currentMs: number, errorCode?: string)
packages/device-auth/src/index.ts:27
↓ 2 callers
Function
nextDevicePollIntervalMs
(currentMs: number, errorCode?: string)
packages/cli/src/device-auth.generated.ts:28
↓ 2 callers
Function
nextFreePort
(port: number)
packages/cli/src/index.ts:278
↓ 2 callers
Function
nextPatch
(version)
tests/installer/agent-registry-drift.test.mjs:15
↓ 2 callers
Method
next_attempt
(self, request)
packages/middleware/python/caveman_middleware/_httpx2.py:35
↓ 2 callers
Method
noUpdates
noUpdates reports a Responses body OpenAI takes no configuration_update in: automatic truncation or compaction (context_management), or multi-agent mo
proxy/internal/gateway/route.go:411
↓ 2 callers
Function
nodeMeetsFloor
(executable)
installer/install.js:548
↓ 2 callers
Function
noisy
(lines = 150, tag = '')
packages/shared/contracts/conformance/run.mjs:143
↓ 2 callers
Function
noisyLog
()
engine/compressors/log_test.go:12
↓ 2 callers
Function
noisyText
noisyText is text an encoder shrinks only a few times over, so an encoded body stays over a small CAVE_MAX_REQUEST_BYTES while its first zstd block st
proxy/internal/gateway/chatgpt_auto_test.go:274
↓ 2 callers
Function
nonEmpty
(v, fallback string)
proxy/internal/store/trial_store.go:751
↓ 2 callers
Function
nonEmptyString
(v: unknown)
packages/cli/src/index.ts:7944
↓ 2 callers
Function
nonEmptyStrings
(values []string)
engine/pixel/transform_openai.go:810
↓ 2 callers
Function
noopLog
()
installer/lib/openclaw.js:496
↓ 2 callers
Function
normMode
(mode)
extension/src/directive.js:49
↓ 2 callers
Function
normalizeMetadata
(comp compressors.Compressor, meta compressors.Metadata, info safety.Info)
engine/engine.go:225
↓ 2 callers
Function
normalizeModeArg
(arg)
src/hooks/caveman-parse.js:173
↓ 2 callers
Function
normalizeRecoveryHandle
(value: unknown)
packages/pi-extension/src/protocol.ts:82
↓ 2 callers
Function
normalizeSpanId
A caller-supplied span id, canonicalized to lowercase, or a fresh valid id.
packages/sdk/typescript/src/index.ts:2410
↓ 2 callers
Function
normalizeTraceId
* A caller-supplied trace id, canonicalized to lowercase, or a fresh one when * it is not exactly 32 hex characters and non-zero. An invalid id is ne
packages/sdk/typescript/src/index.ts:2404
↓ 2 callers
Function
normalizeWorkflowSlug
Mirror of the gateway's validLabel (security.go): lowercase [a-z0-9_-], * 1-96 chars. Uppercase input is lowercased rather than rejected; anything
packages/cli/src/index.ts:6445
↓ 2 callers
Method
normalized
()
engine/result.go:36
↓ 2 callers
Function
normalizedContentEncoding
(value string)
proxy/providers/adapter.go:973
↓ 2 callers
Function
normalizedRelative
(root, target)
extension/scripts/verify-extension-stage.mjs:25
↓ 2 callers
Function
notSmallerOverhead
notSmallerOverhead declares a recovery tool costing more than any saving.
proxy/internal/middleware/protocol_v11_test.go:160
↓ 2 callers
Method
noteUnauthorized
noteUnauthorized counts and logs one rejection; see rejectUnauthorized.
proxy/internal/gateway/server.go:800
↓ 2 callers
Function
notification
(method, params)
packages/cli/tests/agent-mcp.runtime.mjs:14
↓ 2 callers
Function
nudgeLine
(fresh: Fresh[])
packages/cli/src/learn-autopilot.ts:214
↓ 2 callers
Function
num
(v: unknown)
packages/cli/src/index.ts:13722
↓ 2 callers
Function
numberFixtureJSON
(t *testing.T, value any)
engine/pixel/transform_numbers_test.go:37
↓ 2 callers
Function
numericLeaves
numericLeaves records every numeric leaf value in v keyed by its dotted path ("" for a scalar-number element root). Arrays nested inside an element ar
engine/compressors/json.go:317
↓ 2 callers
Function
object
(value: unknown)
packages/cli/src/openclaw-provider-compat.ts:13
↓ 2 callers
Function
objectArg
(value: unknown)
packages/cli/src/agent-mcp.ts:379
↓ 2 callers
Function
objectAt
objectAt reads the object starting at b[i] into dst and returns its end.
proxy/internal/translate/jsonfast.go:478
↓ 2 callers
Function
objectKVs
objectKVs reads the members of the object b (one trimmed value) into dst.
proxy/internal/translate/jsonfast.go:120
↓ 2 callers
Function
objectOf
(value: unknown)
packages/cli/src/modules/apply.ts:126
↓ 2 callers
Method
observe
(self, receipt: dict)
packages/sdk/python/caveman_cloud/middleware/runtime.py:753
↓ 2 callers
Method
observe
Observations never block response delivery and cannot create verified savings.
packages/sdk/typescript/src/middleware/runtime.ts:473
↓ 2 callers
Method
observeBlocks
(rootKind, relPath string, jsonlLine int, ts string, blocks []blockCandidate, side bool)
proxy/internal/store/recurring.go:303
↓ 2 callers
Function
observeStaticTagChurn
(sessionKey string, tagContents map[string]string)
engine/pixel/transform_anthropic.go:890
↓ 2 callers
Function
observeStream
(stream: ReadableStream<T>, attempt: Attempt, getUsage: (event: T) => Usage | null, signal?: AbortSignal)
packages/middleware/typescript/src/common.ts:146
↓ 2 callers
Method
observeTurn
(tokens int, side bool)
proxy/internal/store/detect_subagent_spend.go:42
↓ 2 callers
Function
observedJSON
(response: HttpResponse, onValue: (value: unknown) => void, onError: () => void)
packages/middleware/typescript/src/google.ts:146
↓ 2 callers
Function
offToNull
(mode)
src/hooks/caveman-config.js:618
↓ 2 callers
Function
ompPluginDir
()
installer/install.js:1367
↓ 2 callers
Function
onAllowlist
onAllowlist reports membership. When prefix is true an entry matches as a prefix of value (for versioned model ids); otherwise it is an exact match.
proxy/providers/vertex/routing.go:182
↓ 2 callers
Function
onboard
(opts: OnboardOptions, deps: OnboardDeps)
packages/cli/src/modules/onboard.ts:123
↓ 2 callers
Function
only
(value, keys)
packages/middleware/python/caveman_middleware/_native.py:111
↓ 2 callers
Function
only
(value: unknown, keys: readonly string[])
packages/middleware/typescript/src/provider-leaves.ts:11
↓ 2 callers
Function
onlyKeys
(value: Record<string, unknown>, keys: readonly string[])
packages/middleware/typescript/src/ai-sdk.ts:38
↓ 2 callers
Function
onlyModelChanged
onlyModelChanged: sent is original with nothing but the model swapped, so a refusal the original bytes then got past is the routed model's. With compr
proxy/internal/gateway/route.go:142
↓ 2 callers
Method
openAICacheCalc
(provider, model string, root map[string]any)
proxy/internal/standalone/e2e_cost_bench_test.go:538
↓ 2 callers
Function
openAIChatImagePart
(img RenderedImage)
engine/pixel/transform_openai.go:499
← previous
next →
3,501–3,600 of 12,853, ranked by callers