MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions8,033 in github.com/JuliusBrussee/caveman

↓ 5 callersFunctionvalidateCompatPath
(path, rawPath string)
proxy/providers/openaicompat/openaicompat.go:302
↓ 5 callersFunctionvalidateProviderUsage
( evidence: ProviderUsageEvidence, options: { expected?: { provider: string; model: string }; repo
packages/agent/src/execution-kernel.ts:121
↓ 5 callersFunctionwrapNotFoundUI
(requested: string, agent?: AgentProfile)
packages/cli/src/index.ts:9157
↓ 5 callersFunctionwriteJSON
(w io.Writer, v any)
mem/cmd/cavemem/main.go:383
↓ 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 callersMethodAppJWT
AppJWT builds a short-lived (10-minute) RS256 App JWT signed with the App private key. iat is backdated 60s to tolerate clock skew (GitHub's guidance)
shared/platform/githubapp/githubapp.go:113
↓ 4 callersFunctionBM25
BM25 scores each document against the query using the same deterministic Okapi BM25 the context packer uses (k1=1.5, b=0.75) — no embeddings, no netwo
engine/contextwindow/contextwindow.go:178
↓ 4 callersMethodBuildLearnPlanFilteredWithRetro
BuildLearnPlanFilteredWithRetro applies a repository substring before turn events reach behavioral detectors. Config scanning intentionally remains ro
proxy/internal/store/learn.go:163
↓ 4 callersFunctionCachePointEligibleModel
CachePointEligibleModel reports whether the cache-point transform may run for a model: an Anthropic Claude id — bare or behind one inference-profile s
proxy/providers/bedrock/cache_points.go:130
↓ 4 callersFunctionClassifyResolvedAuthMode
ClassifyResolvedAuthMode includes the credential resolver's final BYOK/config key. Header-only classification labeled a configured subscription/OAuth
proxy/internal/gateway/authmode.go:42
↓ 4 callersMethodClose
()
browse/cdp.go:93
↓ 4 callersFunctionCompress
Compress encodes data with the named codec. "none" returns data unchanged.
shared/platform/objectstore/compress.go:35
↓ 4 callersFunctionConfidenceScore
ConfidenceScore is a CHEAP, PURE heuristic that scores how confident a cascade rung's answer text looks, in [0,1]. Lower = less confident = should esc
proxy/routing/confidence.go:21
↓ 4 callersFunctionDecompressLimit
DecompressLimit reverses Compress while refusing to produce more than maxBytes of plaintext. The limit is applied while decoding gzip and through zstd
shared/platform/objectstore/compress.go:66
↓ 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 callersMethodExists
Exists reports whether key is present.
shared/platform/objectstore/objectstore.go:50
↓ 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 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:324
↓ 4 callersFunctionFromEnv
FromEnv builds a Store from the S3_* environment variables. It returns (nil, nil) when S3_ENDPOINT is unset outside production. Production requires ob
shared/platform/objectstore/objectstore.go:143
↓ 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 callersMethodInsertConfigSnapshots
InsertConfigSnapshots persists the measured config sources (evidence/export).
proxy/internal/store/config_scan.go:523
↓ 4 callersMethodList
List returns all keys under prefix (used by retention + ZDR assertions).
shared/platform/objectstore/objectstore.go:52
↓ 4 callersFunctionNew
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:50
↓ 4 callersFunctionNew
New parses the private key, validates the base URL, and builds the App. It returns an error (not a half-built App) on any misconfiguration, so callers
shared/platform/githubapp/githubapp.go:67
↓ 4 callersFunctionNewDiff
NewDiff returns the unified-diff compressor.
engine/compressors/diff.go:24
↓ 4 callersFunctionNewQueryClient
NewQueryClient returns an *http.Client bounded for ClickHouse queries/DDL.
shared/platform/chhttp/chhttp.go:287
↓ 4 callersFunctionNormalizeTerms
NormalizeTerms bounds query metadata before it can enter CCR or ranking.
proxy/internal/repointel/index.go:731
↓ 4 callersFunctionOpenAIVisionTokens
(model string, w, h int)
engine/pixel/gpt_profiles.go:165
↓ 4 callersMethodParseCountTokens
(response []byte)
proxy/providers/adapter.go:341
↓ 4 callersFunctionProbe
Probe proves the operations production retention needs instead of accepting a syntactically valid but unusable bucket configuration. The random probe
shared/platform/objectstore/objectstore.go:229
↓ 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:75
↓ 4 callersFunctionReplace
(body []byte, candidates []Candidate, replacements [][]byte)
proxy/providers/jsonsplice/jsonsplice.go:103
↓ 4 callersFunctionReplaceRaw
ReplaceRaw replaces one JSON value while preserving every byte outside span. replacement must itself be valid JSON. Unlike Replace, it does not quote
proxy/providers/jsonsplice/jsonsplice.go:137
↓ 4 callersFunctionResolveEnvironmentSecret
ResolveEnvironmentSecret loads a boot-time secret. In production plaintext environment variables are rejected: operators must provide a base64-encoded
shared/platform/secretbox/secretbox.go:166
↓ 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 callersMethodShutdown
Shutdown closes the attached browser process. Ordinary Close only releases this driver context; direct CLI mode deliberately leaves its detached Chrom
browse/cdp.go:238
↓ 4 callersFunctionSocketPath
SocketPath returns a per-install named-pipe path shared with Node adapters.
proxy/internal/nativeruntime/server_windows.go:20
↓ 4 callersFunctionSocketPath
SocketPath returns the user-local normalized hook socket. Host adapters never choose this path, preventing one integration from impersonating another
proxy/internal/nativeruntime/server_unix.go:18
↓ 4 callersMethodStartTrial
(trialID, agentSlug, command string)
proxy/internal/store/trial_store.go:59
↓ 4 callersMethodStoreOriginal
(body []byte)
proxy/internal/gateway/server.go:88
↓ 4 callersMethodSummary
Summary aggregates the in-memory recoveries into totals + per-type buckets.
engine/ccr/store_wasm.go:217
↓ 4 callersFunctionValidateBaseURL
(raw string)
proxy/providers/openaicompat/openaicompat.go:257
↓ 4 callersFunctionWrite
(home string, state State)
proxy/internal/runstate/runstate.go:98
↓ 4 callersFunction_policy_non_empty_str
(value: Any)
packages/sdk/python/caveman_cloud/core.py:2012
↓ 4 callersFunction_rand_hex
(n_bytes: int)
packages/sdk/python/caveman_cloud/core.py:1571
↓ 4 callersMethod_run
(self, blocks)
tests/test_compress_safety.py:395
↓ 4 callersFunction_signature_case
(name: str)
packages/sdk/python/tests/test_runtime_policy.py:166
↓ 4 callersFunction_strict_non_negative_int
Accept JSON integers only; reject bools, floats, strings, and negatives.
packages/sdk/python/caveman_cloud/core.py:19
↓ 4 callersFunction_unsigned_payload
(bundle: str = KILL_BUNDLE)
packages/sdk/python/tests/test_runtime_policy.py:103
↓ 4 callersMethodadd_warning
(self, msg)
plugins/caveman/skills/caveman-compress/scripts/validate.py:53
↓ 4 callersMethodadd_warning
(self, msg)
skills/caveman-compress/scripts/validate.py:53
↓ 4 callersFunctionansi
(code: string, value: string)
packages/cli/src/learn-tui.ts:28
↓ 4 callersFunctionanthropicConvo
(n int, chars int)
engine/pixel/history_anthropic_test.go:103
↓ 4 callersFunctionappendUnique
(values []string, next string)
proxy/internal/store/trial_store.go:737
↓ 4 callersFunctionapplyAutomatic
(t *testing.T, body string, meta providers.RequestMetadata, policy providers.TransformPolicy)
proxy/providers/anthropic/automatic_cache_test.go:19
↓ 4 callersFunctionassertStrings
(t *testing.T, name string, got, want []string)
rewriter/gate_test.go:700
↓ 4 callersFunctionassertTOONRoundTrip
(t *testing.T, input, toon []byte)
engine/compressors/toon_test.go:129
↓ 4 callersFunctionatomicWriteRegular
(p, content, expectedStat)
bin/lib/openclaw.js:80
↓ 4 callersFunctionautomaticPolicy
(ids ...string)
proxy/providers/anthropic/automatic_cache_test.go:11
↓ 4 callersMethodbedrock
Describe the first-party Bedrock gateway surface. Runtime is the default. Mantle is an explicit opt-in descriptor. This method perfor
packages/sdk/python/caveman_cloud/core.py:584
↓ 4 callersFunctionbedrockHostKind
(host string)
proxy/providers/bedrock/routing.go:543
↓ 4 callersFunctionblockContains
(blocks []providers.RewritableBlock, want string)
proxy/providers/openai/recovery_exempt_test.go:25
↓ 4 callersFunctionblocksWithMarks
(count int, marked ...int)
proxy/providers/anthropic/breakpoint_plan_test.go:307
↓ 4 callersMethodbuild
(input: { runId: string; agentId: string; stopReason: RunStopReason; meter: BudgetMeter | unde
packages/agent/src/budget.ts:622
↓ 4 callersFunctionbuildChain
buildChain appends rows the way the two writers do: prev = last row_hash, seq+1.
shared/platform/proposalrun/proposalrun_test.go:13
↓ 4 callersFunctionbuildExperimentReport
(experiment Experiment, sessions []sessionOutcome, spend *LearnSpend)
proxy/internal/store/learn_experiment.go:251
↓ 4 callersFunctionbuildLearnDigest
(plan LearnPlan)
proxy/internal/store/learn_digest.go:114
↓ 4 callersFunctionbuildLearnReconcile
(billed map[string]int64, spend *LearnSpend, source string)
proxy/internal/store/learn_reconcile.go:195
↓ 4 callersFunctionbuildLearnSavings
buildLearnSavings turns confirmed rows into the attributed ledger. Rows whose verdict is not a measured improvement still appear — a regression that d
proxy/internal/store/learn_attribution.go:246
↓ 4 callersFunctionbuildRuntimeControlEnv
()
packages/agent/src/runtime.ts:2913
↓ 4 callersFunctioncacheStatusFor
cacheStatusFor maps observed usage to a cache_status. It only asserts hit/miss when the provider actually reported cache telemetry; otherwise it stays
proxy/providers/adapter.go:1434
↓ 4 callersMethodcall
(ctx context.Context, region, keyID, operation string, input, output any)
shared/platform/kms/kms.go:346
↓ 4 callersFunctioncallCeilingFor
( selected: Model<Api>, systemPrompt: string, messages: readonly AgentMessage[], tools: unknown, out
packages/agent/src/runtime.ts:4094
↓ 4 callersFunctioncaptureProxyServer
captureProxyServer is the standard proxy wiring these tests drive through the real handler: one adapter, a socket-free upstream, no compressor.
proxy/internal/gateway/capture_test.go:69
↓ 4 callersFunctioncaptureSpawn
(cmd, args)
bin/install.js:446
↓ 4 callersMethodcave_plan
Read this project's Cave Plan machine-readably (``GET /sdk/v1/cave-plan``). Authed by the project key's ``plan:read`` scope. Returns the
packages/sdk/python/caveman_cloud/core.py:841
↓ 4 callersMethodcheckpoint
(self, messages: list[Any], options: dict[str, Any])
packages/sdk/python/caveman_cloud/core.py:1208
↓ 4 callersFunctionclassifyTool
(tool *Tool)
proxy/internal/nativeruntime/runtime.go:1281
↓ 4 callersFunctionclaudeMDSectionSink
(snap *ConfigSnapshot, scope string, sessions []sessionTextObservation)
proxy/internal/store/detect_sections.go:56
↓ 4 callersMethodclick
(ctx context.Context, x, y float64)
browse/cdp.go:353
↓ 4 callersFunctioncloneMap
(in map[string]any)
engine/pixel/transform_anthropic.go:1442
↓ 4 callersFunctioncloneObject
(obj Object)
engine/ccr/store_wasm.go:109
↓ 4 callersFunctioncollectImageDataFromAny
(v any)
engine/pixel/transform_anthropic_test.go:402
↓ 4 callersFunctioncollectStringCandidate
(body []byte, span jsonSpan, out *[]spliceCandidate, allowForcedTOON bool)
proxy/providers/openai/content_compress.go:423
↓ 4 callersFunctioncompileOrgRules
compileOrgRules validates and canonically orders the tenant's rules, and returns a fingerprint of them for RuleSetHash.
shared/platform/redact/payload.go:529
↓ 4 callersFunctionconfigSinksWithBehavior
(cfg configScan, beh behaviorScan, turnsPerDay float64)
proxy/internal/store/learn.go:442
↓ 4 callersFunctionconfigTrendSink
configTrendSink names what grew. Paths ARE included here, unlike in the digest: this sink is for the user's own eyes and a growth finding without the
proxy/internal/store/detect_config_trend.go:107
↓ 4 callersFunctionconnectedGatewayAPIKey
()
packages/cli/src/index.ts:18150
↓ 4 callersFunctioncontains
(values []cacheguard.Warning, wanted cacheguard.Warning)
shared/platform/cacheguard/cacheguard_test.go:188
↓ 4 callersFunctioncontextIRSHA256
(contextIR: ContextIR)
packages/agent/src/build.ts:568
↓ 4 callersFunctioncountBreakpoints
(t *testing.T, body []byte)
proxy/providers/anthropic/breakpoint_plan_test.go:49
↓ 4 callersFunctioncreateConversation
()
packages/agent/src/runtime.ts:288
↓ 4 callersFunctioncsvFixture
()
engine/compressors/tabular_test.go:15
↓ 4 callersFunctiondbPath
(home string)
proxy/cmd/caveman-proxy/main.go:843
↓ 4 callersFunctiondefaultWrapOptions
()
packages/cli/src/index.ts:3499
↓ 4 callersFunctiondestination
(root, relativePath)
bin/lib/owned-install.js:30
↓ 4 callersFunctiondistinct
(in []string)
rewriter/gate.go:275
← previousnext →701–800 of 8,033, ranked by callers