MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,391 in github.com/JuliusBrussee/caveman

↓ 3 callersFunctiontoonDecodeBytes
toonDecodeBytes converts TOON back to compact JSON. Malformed TOON fails closed with an error; it never emits partial or guessed JSON.
engine/cmd/caveman-engine/main.go:641
↓ 3 callersFunctiontoonEncodeBytes
toonEncodeBytes converts JSON to the lossless TOON subset. It fails closed: any input that is not valid JSON, or whose shape is outside the proven rou
engine/cmd/caveman-engine/main.go:631
↓ 3 callersMethodtopEffort
(body []byte, root jsonsplice.Span)
proxy/internal/gateway/route.go:345
↓ 3 callersMethodtransform
transform recursively compresses v. When preserve is true (inside an error/message subtree) the value is kept verbatim. collapsed is set to true when
engine/compressors/json.go:112
↓ 3 callersFunctiontransport
(vector, calls)
packages/sdk/python/tests/test_middleware_preflight.py:17
↓ 3 callersFunctiontrendSessionsAt
(start time.Time, count int, tokens int64)
proxy/internal/store/learn_trends_test.go:12
↓ 3 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:468
↓ 3 callersFunctionunwrapInput
unwrapInput removes supported presentation wrappers in outer-to-inner order. Four layers cover known agent compositions while bounding repeated scans
engine/filewrap.go:119
↓ 3 callersFunctionunwrap_google
The caller's original Client/Chat behind a Caveman wrapper; anything else unchanged.
packages/middleware/python/caveman_middleware/google.py:59
↓ 3 callersFunctionupstreamFailureCode
upstreamFailureCode is the error code for an upstream attempt that returned no response: a guard refusal is named as one, so neither the client nor th
proxy/internal/gateway/proxy.go:79
↓ 3 callersMethodusable
usable reports whether open can open an original sealed with keyID.
proxy/internal/middleware/seal.go:91
↓ 3 callersFunctionusageInt
(m map[string]any, key string, usage *UsageObservation)
proxy/providers/adapter.go:1623
↓ 3 callersFunctionusageSecretDir
()
packages/cli/src/index.ts:21367
↓ 3 callersFunctionvalidDigest
(value string)
proxy/internal/store/store.go:1169
↓ 3 callersFunctionvalidEntitlement
()
packages/cli/tests/wrap.runtime.mjs:30
↓ 3 callersFunctionvalidEvidenceToken
(value string, limit int)
proxy/internal/store/store.go:1194
↓ 3 callersFunctionvalidJSONNumber
(s string)
engine/compressors/toon_encode.go:397
↓ 3 callersFunctionvalidName
validName bounds a principal name; 1024 leaves room for a source prefix and an issuer URL before a 256-character claim.
proxy/internal/identity/identity.go:119
↓ 3 callersFunctionvalidate
validate returns a list of human-readable errors; an empty list means valid.
packages/shared/contracts/scripts/validate.mjs:31
↓ 3 callersFunctionvalidate
(original_path: Path, compressed_path: Path)
plugins/caveman/skills/caveman-compress/scripts/validate.py:400
↓ 3 callersFunctionvalidateEvent
(input: unknown, now: Date = new Date())
supabase/functions/blocks-telemetry/ingest.ts:114
↓ 3 callersFunctionvalidateHostInput
validateHostInput rejects URL/userinfo-shaped values before they reach DNS or an error formatter. IP literals (including zoned IPv6) are handled by ne
shared/platform/ssrf/ssrf.go:311
↓ 3 callersFunctionverifiedProviderRoute
( gateway: string, api: string | undefined, provider: string, originalBaseUrl: string | undefined, publish
packages/cli/src/provider-routing.ts:73
↓ 3 callersFunctionverifyChecksumSignatureBundle
(checksums, bundle, publicKeyPEM)
scripts/sign-binary-checksums.mjs:21
↓ 3 callersFunctionverifyExtensionRoot
(root, { exact = false } = {})
extension/scripts/verify-extension-stage.mjs:79
↓ 3 callersMethodview
view is the capabilities document and transform set a request negotiated.
proxy/internal/middleware/runtime.go:275
↓ 3 callersMethodwalkObject
walkObject iterates one JSON object, handing each member's value to descend and recording a deletion for every key in drop (nil drop deletes nothing).
engine/compressors/toolschema_annotations.go:237
↓ 3 callersFunctionwantsElisionNote
wantsElisionNote reports whether a payload that dropped elidedBytes should carry the contract line.
engine/compressors/invariants.go:807
↓ 3 callersMethodwarnDropped
(err error, mode string)
proxy/internal/standalone/standalone.go:395
↓ 3 callersFunctionwindowDays
(sinceExpr, from, to string)
proxy/internal/store/learn.go:1337
↓ 3 callersFunctionwindowsACLGrantsBroadWrite
(dacl *windows.ACL)
engine/ccr/sqlite_parent_security_windows.go:39
↓ 3 callersFunctionwindowsDeniedOpenFileReplacement
(err error)
engine/ccr/store_generation_test.go:172
↓ 3 callersFunctionwireCallID
wireCallID is safeCallID for a tool_use id handed to an Anthropic-shaped caller (Claude Code): another provider's id (e.g. OpenRouter's "functions.Bas
proxy/internal/translate/responses.go:251
↓ 3 callersFunctionwireToolName
wireToolName is the name an upstream sees for a Responses tool: the namespace and name joined, and, when that is not a valid function name, a 55-chara
proxy/internal/translate/responses.go:62
↓ 3 callersFunctionwithCavemanAgent
(input:T,options:LangChainOptions)
packages/middleware/typescript/src/langchain.ts:71
↓ 3 callersFunctionwithCavemanAnthropic
(client: T, options: AnthropicOptions)
packages/middleware/typescript/src/anthropic.ts:30
↓ 3 callersFunctionwithCavemanMastra
(agent: T, options: CavemanMastraOptions)
packages/middleware/typescript/src/mastra.ts:80
↓ 3 callersFunctionwithDropBlockConvo
withDropBlockConvo is an adaptive-thinking body asking for drop_block.
proxy/internal/gateway/route_effort_test.go:404
↓ 3 callersFunctionwithIndexLock
(fn: () => T)
packages/cli/src/modules/provider-logins.ts:75
↓ 3 callersFunctionwithModel
withModel renames the model a payload reports to shown: the top-level "model" (a Messages, chat or Responses answer, a chat chunk), message.model (mes
proxy/internal/translate/translate.go:935
↓ 3 callersFunctionwithOmitted
withOmitted is the summary a shedding budget produces: the surviving facts, then the notice stating how many entries the budget dropped. A trimmed sum
engine/compressors/invariants_test.go:25
↓ 3 callersFunctionwithPerMessageBeta
(header http.Header)
proxy/internal/gateway/route.go:1349
↓ 3 callersFunctionwithRunState
withRunState serves the two run-state endpoints: the instance identity any local caller may read, and the shutdown only the run-state file's reader ma
proxy/cmd/caveman-proxy/main.go:528
↓ 3 callersFunctionwith_caveman_google
Return a clone of a transport-configured Client whose model AFC registers recovery. The caller's client is not modified; wrapping a wrapped clien
packages/middleware/python/caveman_middleware/google.py:208
↓ 3 callersFunctionwith_caveman_model
Wrap an existing client; record-only (``recovery_unbound`` in compress mode) unless paired with the workbench.
packages/middleware/python/caveman_middleware/autogen.py:495
↓ 3 callersFunctionwith_caveman_openai
Return the same native client class with native resources and helpers. Model-only: no recovery executor is registered, so in compress mode every
packages/middleware/python/caveman_middleware/openai.py:40
↓ 3 callersFunctionwith_caveman_tools
Bundle native tools and their executor for an application-owned loop. Pass bundle.tools to bundle.model.chat_with_tools (or its native async or
packages/middleware/python/caveman_middleware/llama_index.py:861
↓ 3 callersFunctionwithoutInstallerCodexHook
(root: Record<string, unknown>)
packages/cli/src/index.ts:10048
↓ 3 callersFunctionworthEliding
worthEliding reports whether a run of dropped units should become a marker at all. A run of invariantMinElideUnits or more always is. A shorter one mu
engine/compressors/invariants.go:644
↓ 3 callersFunctionwrap
(client, runtime)
packages/middleware/python/tests/test_openai_native.py:66
↓ 3 callersFunctionwrapExternalWritesDisabled
(env: NodeJS.ProcessEnv = process.env)
packages/cli/src/index.ts:13868
↓ 3 callersMethodwrapMeasuredSince
wrapMeasuredSince sums proxy-recorded wrap activity at or after since. Nil unless at least one row booked a real compression cut or an observe-mode es
proxy/internal/store/learn.go:342
↓ 3 callersMethodwrap_model_call
(self, request, handler)
packages/middleware/python/caveman_middleware/langchain.py:240
↓ 3 callersMethodwrite
(job captureJob)
proxy/internal/gateway/capture.go:217
↓ 3 callersFunctionwriteAnthropicError
writeAnthropicError is Anthropic's error envelope with a status.
proxy/internal/translate/messages_stream.go:450
↓ 3 callersFunctionwriteError
(w http.ResponseWriter, err error, v2 bool)
proxy/internal/middleware/http.go:308
↓ 3 callersFunctionwriteExport
(t *testing.T, body string)
proxy/internal/store/learn_reconcile_test.go:10
↓ 3 callersMethodwriteFlush
(w *bufio.Writer, resp rpcResponse)
mcp/server.go:243
↓ 3 callersFunctionwriteGeminiSessionFixture
(t *testing.T, root string, index int, block string)
proxy/internal/store/source_gemini_test.go:66
↓ 3 callersFunctionwriteIndex
(index: Index)
packages/cli/src/modules/provider-logins.ts:120
↓ 3 callersFunctionwriteJson
(path: string, value: unknown)
packages/cli/src/learn-autopilot.ts:101
↓ 3 callersFunctionwriteMcpServerMarker
(agentId: string, serverName: string, mcp: { command: string; args: string[] }, tool: string)
packages/cli/src/index.ts:17093
↓ 3 callersFunctionwriteNativeRestoration
(file: string, bytes: Buffer | null)
packages/cli/src/index.ts:11236
↓ 3 callersFunctionwriteRawConfig
(out: Record<string, unknown>)
packages/cli/src/index.ts:22866
↓ 3 callersFunctionwriteResponsesFailure
writeResponsesFailure ends a request that produced nothing: a streaming caller gets a 200 stream holding response.failed (Codex only maps context_leng
proxy/internal/translate/responses_stream.go:832
↓ 3 callersFunctionwrite_bytes_atomic
Write ``data`` to ``path`` atomically, preserving permission bits.
plugins/caveman/skills/caveman-compress/scripts/compress.py:335
↓ 3 callersFunctionwrite_bytes_atomic
Write ``data`` to ``path`` atomically, preserving permission bits.
skills/caveman-compress/scripts/compress.py:335
↓ 3 callersFunctionyellow
(s: string)
packages/cli/src/index.ts:23213
↓ 2 callersMethod#bypass
(code: string, adapter?: unknown, extra: Partial<Optimization> = {}, strict = true)
packages/sdk/typescript/src/middleware/runtime.ts:538
↓ 2 callersMethod#capabilities
Single-flight capabilities fetch: concurrent callers share one GET and each waits only on its own signal.
packages/sdk/typescript/src/middleware/runtime.ts:559
↓ 2 callersMethod#discover
(signal?: AbortSignal)
packages/sdk/typescript/src/middleware/runtime.ts:234
↓ 2 callersMethodAct
(ctx context.Context, req ActionRequest, target Target)
browse/cdp.go:160
↓ 2 callersMethodAfterFunc
(time.Duration, func())
proxy/internal/gateway/cache_warm.go:76
↓ 2 callersFunctionApplyResolvedPricingRoute
ApplyResolvedPricingRoute adds pricing metadata derived from the trusted, resolved upstream URL. Client body/header hints cannot override the actual b
proxy/providers/adapter.go:159
↓ 2 callersFunctionAttachLearnTrendHistory
AttachLearnTrendHistory adds the snapshot-derived score history and sink movers from home/reports. Call it before the current plan is written so the r
proxy/internal/store/learn_trends.go:376
↓ 2 callersMethodAuthenticate
(ctx context.Context, r *http.Request)
proxy/internal/gateway/server.go:64
↓ 2 callersMethodAutoOffered
()
proxy/internal/gateway/chatgpt_auto.go:35
↓ 2 callersMethodBedrockSigningCredential
BedrockSigningCredential resolves only the configured IAM signing principal. An incoming SigV4 request has already selected IAM; a Bedrock bearer key
proxy/internal/config/config.go:598
↓ 2 callersFunctionBoundUpstreamTransport
BoundUpstreamTransport puts the connection-level bounds on an upstream transport. With no total request deadline (CAVE_GATEWAY_UPSTREAM_TIMEOUT_MS def
proxy/internal/gateway/server.go:577
↓ 2 callersFunctionBudgetFromEnv
BudgetFromEnv returns the payload budget Open applies: CAVEMAN_CCR_MAX_BYTES or DefaultMaxStorageBytes.
engine/ccr/store_repair.go:64
↓ 2 callersMethodCachedPrefixComponents
(body []byte, meta providers.RequestMetadata)
proxy/internal/gateway/server.go:207
↓ 2 callersMethodCapabilities
Capabilities exposes the active registry, including any explicitly configured strategy. Middleware uses this authority rather than maintaining a secon
engine/engine.go:33
↓ 2 callersFunctionClassifyContent
(text string)
engine/pixel/textprep.go:62
↓ 2 callersMethodCloudOff
CloudOff reports `caveman providers cloud off`: an answer sending a request through Caveman Cloud runs the asked model instead.
proxy/internal/pool/pool.go:310
↓ 2 callersMethodCompressSegmentQuery
(segment []byte, query string)
proxy/internal/gateway/server.go:111
↓ 2 callersMethodCompressSegmentType
(segment []byte, contentType string)
proxy/internal/gateway/server.go:102
↓ 2 callersMethodCompressWithMetadata
(input []byte, query string)
engine/compressors/json_strategy.go:40
↓ 2 callersFunctionCompressionRouteMatrix
CompressionRouteMatrix is the checked-in truth table for every route family registered by the managed gateway. "supported" means both schema-aware byt
proxy/providers/compression_coverage.go:20
↓ 2 callersMethodConfigured
Configured reports whether the operator set any middleware key, in caveman.yaml or the environment: a middleware that then cannot start is a startup f
proxy/internal/config/middleware.go:133
↓ 2 callersFunctionCountVisualRows
(text string, cols int)
engine/pixel/textprep.go:20
↓ 2 callersFunctionEnablementOnlyOpportunityContractFor
EnablementOnlyOpportunityContractFor resolves an exact enablement contract. Unknown ids fail closed.
shared/platform/optimizers/optimizers.go:161
↓ 2 callersMethodEncodeTOON
(input []byte)
mcp/engine_tools.go:23
↓ 2 callersFunctionEstimateTokensForModel
EstimateTokensForModel returns documented input-image tokens only when provider, model family, and effective detail/media-resolution form a closed sup
engine/image/tokens.go:23
↓ 2 callersFunctionExplainDecision
(store *ccr.Store, decisionID string)
proxy/internal/nativeruntime/explain.go:33
↓ 2 callersMethodExportTrial
(plan TrialPlan, outDir string)
proxy/internal/store/report.go:116
↓ 2 callersMethodExtractStabilizable
(body []byte, meta providers.RequestMetadata)
proxy/internal/gateway/server.go:199
↓ 2 callersFunctionFamilyIndexOf
FamilyIndexOf returns the index (into Families) of the mutex family the optimizer belongs to, or -1 if the optimizer is not part of any family (its op
shared/platform/optimizers/optimizers.go:323
↓ 2 callersFunctionFamilyNameOf
FamilyNameOf returns the canonical family label for an optimizer, or "" if the optimizer is not a mutex-family member.
shared/platform/optimizers/optimizers.go:332
↓ 2 callersMethodFrozenPrefixComponents
(body []byte, meta providers.RequestMetadata)
proxy/internal/gateway/server.go:214
↓ 2 callersMethodHasNamespaces
HasNamespaces reports whether the principal may use any namespace at all.
proxy/internal/identity/identity.go:107
← previousnext →2,401–2,500 of 12,391, ranked by callers