MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions13,382 in github.com/JuliusBrussee/caveman

↓ 5 callersFunctionstoredModules
()
packages/cli/src/modules/apply.ts:135
↓ 5 callersFunctionstrictNonNegativeInt
(value: unknown)
packages/sdk/typescript/src/index.ts:1985
↓ 5 callersFunctionstringOr
(v any, fallback string)
engine/pixel/history_openai.go:496
↓ 5 callersFunctionstripLineNumberInfo
stripLineNumberInfo strips leading line-number gutters such as: " 42→code" (Claude Code Read), "42\tcode" (cat -n), "42|code", "42:code". Returns th
engine/trim2/features.go:1529
↓ 5 callersFunctionsubCachedBlock
(text string)
proxy/internal/gateway/subscription_live_zone_test.go:53
↓ 5 callersFunctiontelemetryAnonymousId
(state: TelemetryRuntimeState)
packages/cli/src/index.ts:1340
↓ 5 callersFunctiontestStore
(t *testing.T)
mem/cmd/cavemem/main_test.go:30
↓ 5 callersFunctiontextContent
(n *html.Node)
engine/compressors/html.go:269
↓ 5 callersFunctiontmpStore
tmpStore returns a WithStorePath option pointing at a fresh per-test database file, so tests never write to the shared ~/.caveman/ccr.db.
shrink/shrink_test.go:45
↓ 5 callersMethodtool
(name: string, options: ToolOptions, fn: () => Promise<T> | T)
packages/sdk/typescript/src/index.ts:798
↓ 5 callersFunctiontoolInputSummary
(value any)
proxy/internal/store/learn_loops.go:152
↓ 5 callersFunctiontrimStack
trimStack keeps first + last few frames, eliding the middle if too long. It filters out empty lines and non-stack-frame lines (message lines, blank li
engine/compressors/testreport.go:562
↓ 5 callersFunctionturn
(call, content)
packages/middleware/python/tests/test_behavior.py:764
↓ 5 callersFunctionunescapedKey
unescapedKey is a key as written between its quotes, decoded when it holds an escape ("r\u006fle" is "role").
proxy/internal/translate/jsonfast.go:187
↓ 5 callersFunctionunlinkRegular
(p, expectedStat)
installer/lib/openclaw.js:115
↓ 5 callersFunctionunresolvedInternalRefs
unresolvedInternalRefs resolves each local JSON Pointer from the schema resource that contains it: an embedded tool schema or the nearest subschema ca
engine/compressors/toolschema_test.go:398
↓ 5 callersFunctionusd
(v float64)
proxy/internal/store/observe_test.go:10
↓ 5 callersFunctionuserBlocksFromBody
(t *testing.T, body []byte)
engine/pixel/transform_anthropic_test.go:369
↓ 5 callersMethodwait
(self, operation)
packages/middleware/python/caveman_middleware/autogen.py:130
↓ 5 callersFunctionwaitForAccess
(t *testing.T, link *Link, want string)
proxy/internal/cloudlink/link_test.go:1140
↓ 5 callersFunctionwaitForRepositoryMap
(t *testing.T, store *ccr.Store, sessionID string)
proxy/internal/nativeruntime/runtime_test.go:445
↓ 5 callersMethodwaitWarms
(t *testing.T, want int32)
proxy/internal/cloudlink/warm_test.go:62
↓ 5 callersFunctionwantsElisionNote
wantsElisionNote reports whether a payload that dropped elidedBytes should carry the contract line.
engine/compressors/invariants.go:807
↓ 5 callersFunctionweightedInputDeltaUSD
weightedInputDeltaUSD prices a signed local delta using observed disjoint input/cache-read/5m-write/1h-write proportions. Cache mix of the removed tok
proxy/internal/gateway/stats_accounting.go:279
↓ 5 callersFunctionwithCacheKey
withCacheKey sets prompt_cache_key to the session's key when the body has none (the harness's own is never replaced).
proxy/internal/gateway/route_cache.go:50
↓ 5 callersFunctionwithCavemanOpenAITools
(client:T,options:OpenAIOptions & {protocol:'openai-chat'|'openai-responses';tools:(ChatFunction|ResponseFunct
packages/middleware/typescript/src/openai.ts:34
↓ 5 callersFunctionwithInstanceIdentity
withInstanceIdentity proves that the health listener is the generation named by its run-state file. The token is never attached to inference traffic.
proxy/cmd/caveman-proxy/main.go:519
↓ 5 callersFunctionwith_caveman_agent
Return native AssistantAgent constructor options, leaving its loop intact. Accepts the native ``tools`` list or ``workbench`` (including a workbe
packages/middleware/python/caveman_middleware/autogen.py:503
↓ 5 callersFunctionwrapNotFoundUI
(requested: string, agent?: AgentProfile)
packages/cli/src/index.ts:13304
↓ 5 callersMethodwrite
(n *html.Node)
engine/compressors/html_table.go:324
↓ 5 callersFunctionwriteJSON
(w io.Writer, v any)
mem/cmd/cavemem/main.go:426
↓ 5 callersFunctionyamlText
(lines: string[])
packages/cli/src/index.ts:14813
↓ 4 callersMethodAfterFunc
(time.Duration, func())
proxy/internal/gateway/cache_warm.go:76
↓ 4 callersMethodAgentEvidenceForBuild
AgentEvidenceForBuild returns all requests for one exact session/build/plan tuple in provider-call order. Partial or malformed identity fails closed.
proxy/internal/store/store.go:873
↓ 4 callersMethodAnalyzeTrial
AnalyzeTrial runs local-only replay checks against captured payloads, stores the resulting moves, then returns the public TrialPlan. Local never verif
proxy/internal/store/trial_store.go:199
↓ 4 callersFunctionAppendArrayElements
AppendArrayElements inserts elements immediately before an array's closing bracket. Existing bytes, whitespace, and element order remain untouched.
proxy/providers/jsonsplice/jsonsplice.go:300
↓ 4 callersMethodChoices
Choices returns the scope's choices among ids, keyed by id.
proxy/internal/store/middleware.go:303
↓ 4 callersMethodClose
()
browse/cdp.go:93
↓ 4 callersFunctionDecodeBody
DecodeBody decodes a bounded side-copy of a provider body by its Content-Encoding (identity, gzip, deflate, zstd), both sides capped at limit; ok is f
proxy/providers/adapter.go:992
↓ 4 callersMethodEntries
Entries is the pool the logins reach for a caller speaking grammar, for agent (the x-cave-agent slug): every login's models on a wire this runtime can
proxy/internal/pool/pool.go:391
↓ 4 callersFunctionEstimateImageCount
(text string, cols, numCols, maxCharsPerImage int, rp renderParams)
engine/pixel/textprep.go:46
↓ 4 callersFunctionEvalCompressionProfitability
(text string, cols, imageCountCap, numCols int, charsPerToken, priorWarmTokens, priorWarmImageTokens float64,
engine/pixel/gate.go:101
↓ 4 callersFunctionExtractCompressible
ExtractCompressible is exported so Azure OpenAI and OpenAI-compatible adapters can reuse the identical wire grammar without changing provider identity
proxy/providers/openai/content_compress.go:47
↓ 4 callersFunctionExtractFactSheetEntries
(text string)
engine/pixel/factsheet.go:67
↓ 4 callersFunctionFitEffort
FitEffort maps an effort chosen for another model onto the levels model takes on grammar's own API (the asked model when a pool target fails): the Cla
proxy/internal/translate/effort.go:185
↓ 4 callersMethodForget
Forget deletes a memory by id and atomically repairs neighboring lineage pointers. Expired predecessors stay expired: deleting a current version means
mem/store.go:346
↓ 4 callersMethodFrozenLevers
FrozenLevers returns this session's frozen levers in a stable order, for the x-caveman-tripwire disclosure header.
proxy/internal/gateway/ledger.go:123
↓ 4 callersMethodFrozenPrefixComponents
(body []byte, meta providers.RequestMetadata)
proxy/internal/gateway/server.go:247
↓ 4 callersMethodGetMetadata
GetMetadata returns optional compressor metadata stored with a handle. A known handle with no metadata returns nil, nil; an unknown handle returns Err
engine/ccr/store_wasm.go:96
↓ 4 callersMethodInsertConfigSnapshots
InsertConfigSnapshots persists the measured config sources (evidence/export).
proxy/internal/store/config_scan.go:637
↓ 4 callersFunctionIsReadOnlyTool
IsReadOnlyTool classifies whether a downstream MCP tool is safe for read-only execution (`codemode_execute`) vs requiring `codemode_mutate` so the hos
mcp/codemode/codemode.go:95
↓ 4 callersFunctionJSON
(w http.ResponseWriter, status int, body any)
shared/platform/httpx/httpx.go:35
↓ 4 callersMethodMatchMetadataRoute
(method string, path string)
proxy/providers/adapter.go:386
↓ 4 callersFunctionNewBrowseUpstream
NewBrowseUpstream constructs a lazy `browse` upstream wrapping `browse/`. When driverFactory is nil, the first tool call launches headless Chrome via
mcp/codemode/builtin_tools.go:1017
↓ 4 callersFunctionNewEngineCompressorWithLogger
NewEngineCompressorWithLogger is NewEngineCompressor with somewhere to report a failed compression. A nil logger is legal and silences the reporting.
proxy/internal/standalone/standalone.go:455
↓ 4 callersFunctionNewEstimateCompressorWithTrimLevel
NewEstimateCompressorWithTrimLevel mirrors NewEngineCompressorWithTrimLevel for non-mutating observe-only estimation.
proxy/internal/standalone/standalone.go:484
↓ 4 callersFunctionNewPrincipal
NewPrincipal compiles namespace globs: "*" matches any run of characters, "/" included, and every other character matches itself. No globs allows no n
proxy/internal/identity/identity.go:78
↓ 4 callersFunctionNewWithReceiptsAndUsage
(store *ccr.Store, receiptDir string, usage sessionusage.Reader)
proxy/internal/nativeruntime/runtime.go:180
↓ 4 callersFunctionNormalizeTerms
NormalizeTerms bounds query metadata before it can enter CCR or ranking.
proxy/internal/repointel/index.go:755
↓ 4 callersFunctionOpenAINative
OpenAINative returns a Responses body bound for OpenAI with the reasoning items carrying this package's thinking envelope (Anthropic thinking stashed
proxy/internal/translate/translate.go:1159
↓ 4 callersFunctionOpenAIVisionTokens
(model string, w, h int)
engine/pixel/gpt_profiles.go:165
↓ 4 callersMethodOptimizerEnabled
OptimizerEnabled reports whether the named optimizer is enabled by policy.
proxy/providers/adapter.go:225
↓ 4 callersMethodParseCountTokens
(response []byte)
proxy/providers/adapter.go:415
↓ 4 callersFunctionPortFromListen
(listen string)
proxy/internal/runstate/runstate.go:97
↓ 4 callersMethodProbe
Probe verifies live key access without persisting tenant data.
shared/platform/kms/kms.go:317
↓ 4 callersMethodRecordPayload
(label, requestID, traceID string, body []byte)
proxy/internal/gateway/server.go:83
↓ 4 callersFunctionRestrict
Restrict is a no-op off Windows, where the 0700 mode already does the job.
proxy/internal/securehome/securehome_other.go:7
↓ 4 callersFunctionRun
Run processes one host callback. Adapter failures deliberately emit nothing and return nil: host command continues unchanged. nodePath is the node the
proxy/internal/nativehook/hook.go:31
↓ 4 callersFunctionRunManifestWithQuality
RunManifestWithQuality is RunManifest plus the LLM-in-the-loop quality layer. The runner is injected so CI can use a deterministic local runner while
engine/evals/harness.go:188
↓ 4 callersMethodSave
Save stores a login's secret and lists it in the index (the keychain on macOS unless CAVE_NO_KEYCHAIN is set, else a 0600 file).
proxy/internal/pool/pool.go:229
↓ 4 callersFunctionServeUnix
ServeUnix exposes one-request-per-connection JSON over a user-only Unix socket. Runtime errors close or fail-open the individual call; they never stop
proxy/internal/nativeruntime/server_unix.go:35
↓ 4 callersMethodSetObjectCurrentness
(id string, currentness Currentness)
engine/ccr/store_wasm.go:145
↓ 4 callersFunctionSocketPath
SocketPath returns a per-install named-pipe path shared with Node adapters. The fold is strings.ToLower, one code point to one; Node mirrors it in pac
proxy/internal/nativeruntime/server_windows.go:23
↓ 4 callersMethodStartTrial
(trialID, agentSlug, command string)
proxy/internal/store/trial_store.go:59
↓ 4 callersMethodStats
Stats returns aggregate compression accounting from the recovery store.
engine/engine.go:283
↓ 4 callersFunctionSupported
Supported: a caller body in grammar from can run on an upstream wire to: every pair of the three grammars.
proxy/internal/translate/translate.go:27
↓ 4 callersMethodTools
Tools returns the compact MCP meta-tools exposed by this gateway with standard MCP read/write annotations so coding-agent harnesses can safely auto-ap
mcp/codemode/codemode.go:327
↓ 4 callersFunctionValidateBaseURL
(raw string)
proxy/providers/openaicompat/openaicompat.go:505
↓ 4 callersFunctionValidateUpstreamEndpoint
ValidateUpstreamEndpoint pre-flights a resolved provider endpoint against the SSRF policy. When the upstream client will hand this destination to a pr
proxy/providers/adapter.go:62
↓ 4 callersFunctionWatch
Watch reloads every reloader when its files change (checked every interval) and unconditionally on SIGHUP, until ctx ends. A failed reload keeps the p
proxy/internal/identity/identity.go:478
↓ 4 callersFunctionWithRequestPayloadHash
WithRequestPayloadHash binds the exact post-transform wire body's SHA-256 to the auth-mapping call. Signing adapters use it so credentials cover the b
proxy/providers/adapter.go:32
↓ 4 callersMethodWrite
(p []byte)
proxy/internal/gateway/chatgpt.go:956
↓ 4 callersMethodWriteHeader
(int)
proxy/internal/gateway/route_test.go:421
↓ 4 callersMethodWriteMetrics
WriteMetrics appends the middleware series in Prometheus text format.
proxy/internal/middleware/metrics.go:118
↓ 4 callersMethod_acall
(self, method, messages, tools, kwargs, *, passthrough=None)
packages/middleware/python/caveman_middleware/llama_index.py:561
↓ 4 callersFunction_async_runtime
(runtime)
packages/middleware/python/caveman_middleware/llama_index.py:60
↓ 4 callersFunction_bind
(config with recovery registered, invocation context); fail-open to the caller's config.
packages/middleware/python/caveman_middleware/google.py:100
↓ 4 callersMethod_call
(self, method, messages, tools, kwargs, *, passthrough=None)
packages/middleware/python/caveman_middleware/llama_index.py:543
↓ 4 callersFunction_check_version
(runtime, accept=False)
packages/middleware/python/caveman_middleware/llama_index.py:52
↓ 4 callersFunction_json
(value: Any)
packages/sdk/python/caveman_cloud/middleware/runtime.py:90
↓ 4 callersMethod_nudge_script
The quoted script path in a recommended command, in either OS's form.
tests/test_hooks.py:265
↓ 4 callersFunction_openai_http
()
packages/middleware/python/tests/test_behavior.py:80
↓ 4 callersMethod_optimize_s
(self)
packages/sdk/python/caveman_cloud/middleware/async_runtime.py:83
↓ 4 callersFunction_policy_non_empty_str
(value: Any)
packages/sdk/python/caveman_cloud/core.py:2045
↓ 4 callersMethod_protocol
(call_type)
packages/middleware/python/caveman_middleware/litellm.py:197
↓ 4 callersFunction_rand_hex
(n_bytes: int)
packages/sdk/python/caveman_cloud/core.py:1593
↓ 4 callersMethod_remember
Register one pending call; raises _Skip(invalid_scope|capacity) instead of dropping another call.
packages/middleware/python/caveman_middleware/litellm.py:110
↓ 4 callersMethod_response
(self, content="compressed", finish_reason="stop")
tests/test_compress_safety.py:1161
↓ 4 callersMethod_run
(self, blocks)
tests/test_compress_safety.py:1305
↓ 4 callersFunction_signature_case
(name: str)
packages/sdk/python/tests/test_runtime_policy.py:166
← previousnext →1,301–1,400 of 13,382, ranked by callers