MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,391 in github.com/JuliusBrussee/caveman

↓ 3 callersFunctionNewServerVersion
NewServerVersion builds a server whose MCP initialize response carries the caller's build-stamped version. Command binaries use this constructor so th
mcp/server.go:81
↓ 3 callersFunctionNewWithReceiptsAndUsage
(store *ccr.Store, receiptDir string, usage sessionusage.Reader)
proxy/internal/nativeruntime/runtime.go:179
↓ 3 callersMethodOptimizerEnabled
OptimizerEnabled reports whether the named optimizer is enabled by policy.
proxy/providers/adapter.go:225
↓ 3 callersMethodOriginals
Originals returns what the authority stores for each of digests.
proxy/internal/store/middleware.go:325
↓ 3 callersMethodPlanCacheBreakpoints
(body []byte, meta providers.RequestMetadata, payg bool)
proxy/internal/gateway/breakpoint_plan.go:36
↓ 3 callersFunctionPrepareSQLitePathCanonical
PrepareSQLitePathCanonical secures path and returns the one canonical path callers must use for every subsequent open and sidecar check. Returning the
engine/ccr/store_sqlite.go:440
↓ 3 callersFunctionPricingMultiplier
PricingMultiplier returns a positive model/region pricing capability from an exact catalog row. A missing or malformed capability is unavailable; call
shared/platform/catalog/catalog.go:269
↓ 3 callersMethodPrime
Prime warms the route path when the local runtime learns a session or a prompt is starting (native hooks) and nothing reached the gateway for warmQuie
proxy/internal/cloudlink/warm.go:54
↓ 3 callersFunctionProjectGemini
ProjectGemini wraps the complete GenerateContentRequest so system instructions and function declarations are counted with the prompt.
proxy/providers/internal/counttokens/counttokens.go:122
↓ 3 callersFunctionProviderUpstreams
buildAdapters makes the provider adapters. Anthropic, OpenAI, and Gemini always get their public default upstream, so a bare `caveman start` works. Be
proxy/internal/standalone/standalone.go:516
↓ 3 callersMethodPurgeBatch
PurgeBatch deletes at most limit rows per kind of a revoked authority's content (choice payloads, originals with a body, credit-only originals, receip
proxy/internal/store/middleware.go:316
↓ 3 callersMethodReadMiddleware
ReadMiddleware runs fn on a consistent snapshot. Callers must recheck every decision under WithMiddleware before publishing it.
proxy/internal/store/middleware.go:246
↓ 3 callersMethodRecentRequests
RecentRequests returns the N newest request rows. Empty stores return an empty array; no synthetic row is ever created to make a first-request check p
proxy/internal/store/store.go:1225
↓ 3 callersMethodRecordAppliedFix
(plan LearnPlan, sinkID, fixKind, note string)
proxy/internal/store/learn_outcomes.go:56
↓ 3 callersFunctionRecover
Recover returns the exact original bytes for a handle minted by Shrink. It reads the same durable store Shrink wrote (CAVEMAN_CCR_DB / ~/.caveman/ccr.
shrink/shrink.go:147
↓ 3 callersMethodRecover
Recover returns the byte-exact original for a recall hit's recovery handle.
mem/store.go:616
↓ 3 callersFunctionRefuseProductionDefaults
()
shared/platform/env/env.go:62
↓ 3 callersMethodRegister
Register adds a compressor, keyed by its content type. A later registration for the same type replaces the earlier one.
engine/compressors/compressor.go:74
↓ 3 callersMethodReload
Reload re-reads the files; unless force, only when one changed. Files that no longer load keep the previous configuration and return the error.
proxy/internal/identity/tls.go:58
↓ 3 callersFunctionRemoveConnectionHeaders
RemoveConnectionHeaders removes fields declared private to the inbound connection. Dropping Connection itself is insufficient: the next transport woul
proxy/providers/adapter.go:711
↓ 3 callersFunctionRemoveMatching
(home string, port int, token string)
proxy/internal/runstate/runstate.go:241
↓ 3 callersFunctionRenderDensePages
(text string, opts DensePagesOptions)
engine/pixel/render.go:826
↓ 3 callersMethodRenew
(authority string, now, retention, maxRetention int64)
proxy/internal/store/middleware.go:306
↓ 3 callersFunctionReportOnlyOpportunityContractFor
ReportOnlyOpportunityContractFor resolves the exact report projection contract. Unknown ids fail closed.
shared/platform/optimizers/optimizers.go:98
↓ 3 callersFunctionRequestAPIKey
RequestAPIKey resolves Google's equivalent API-key system parameters. The legacy x-api-key alias remains lower priority than the native header, but a
proxy/providers/gemini/gemini.go:20
↓ 3 callersFunctionResolveDensityDraw
ResolveDensityDraw resolves a reader model + level to its drawable geometry, applying ResolveDensity's fail-closed model gating (an unrecognised model
engine/pixel/density.go:349
↓ 3 callersFunctionRestoreLineNumberedListing
RestoreLineNumberedListing puts the gutter back on a compressed listing. Compression removes lines, so output line N is not source line N. Renumberin
engine/compressors/code_listing.go:143
↓ 3 callersMethodRetrieveMetadata
RetrieveMetadata returns optional compressor metadata stored beside a recovery handle. The raw Retrieve path remains byte-exact and never returns this
engine/engine.go:275
↓ 3 callersFunctionRetryOnBusy
RetryOnBusy runs fn, retrying while SQLite reports the database is locked (SQLITE_BUSY). Short-lived local processes can initialize the same database
engine/ccr/store_sqlite.go:242
↓ 3 callersFunctionRouteLabelMax
RouteLabelMax is the most bytes a label value may have; a longer one is left out, never cut (Cloud refuses a cut value). Codex's turn metadata is JSON
proxy/internal/gateway/route.go:281
↓ 3 callersMethodSecret
Secret is a login's stored secret, read once per index change.
proxy/internal/pool/pool.go:179
↓ 3 callersMethodSetLimit
SetLimit overrides the max bytes the scanner will buffer before reporting unknown usage. Used by adapters that read their own configured limit.
proxy/providers/adapter.go:863
↓ 3 callersMethodSetLogger
SetLogger sets where the store reports maintenance: expired objects, consolidated maps and integrity damage. A nil logger silences it.
engine/ccr/store_integrity.go:29
↓ 3 callersFunctionSplitLineNumberedListing
SplitLineNumberedListing reports whether input is a line-numbered file listing. On success it returns the source text with gutters removed and the lin
engine/compressors/code_listing.go:37
↓ 3 callersFunctionStandaloneHTTPClient
StandaloneHTTPClient returns the upstream client used in standalone mode. The SSRF dial guard is ALWAYS on here (unlike the managed gateway, which onl
proxy/internal/standalone/standalone.go:574
↓ 3 callersFunctionStdDensityDraw
StdDensityDraw resolves a density level to its STANDARD-tier geometry, model- agnostic: the dev-tool render (`caveman-engine pixel render`) draws exac
engine/pixel/density.go:341
↓ 3 callersFunctionStringProp
StringProp is a string property schema with a description.
mcp/protocol.go:100
↓ 3 callersMethodTarget
Target is where entry's requests go: the URL, the credential and the translator options for its host. An OAuth login that is expired or needs a new si
proxy/internal/pool/pool.go:432
↓ 3 callersMethodTargetsSnapshot
()
browse/session.go:295
↓ 3 callersMethodUniqueRecentSession
UniqueRecentSession is removed-marker fallback authority. It returns a candidate only when exactly one recent native session remains plausible. Known
proxy/internal/nativeruntime/runtime.go:589
↓ 3 callersMethodUpstreamProxyFunc
UpstreamProxyFunc returns the Transport.Proxy selector for UpstreamProxy, or nil for a direct client. Load parses UpstreamProxy once and rejects bad v
proxy/internal/config/config.go:291
↓ 3 callersFunctionValidateName
(name string)
proxy/providers/openaicompat/openaicompat.go:448
↓ 3 callersFunctionValidateProduction
ValidateProduction verifies real KMS configuration without network request.
shared/platform/kms/kms.go:271
↓ 3 callersFunctionValidateRequestPath
ValidateRequestPath rejects ambiguous path encodings before adapter selection. Gateways call this with the original URL (including RawPath), while the
proxy/providers/openaicompat/openaicompat.go:495
↓ 3 callersFunctionWithUpstreamProxy
WithUpstreamProxy records the Transport.Proxy selector the upstream client will use, so an adapter can tell whether the request it is about to resolve
proxy/providers/adapter.go:47
↓ 3 callersMethodWrite
(p []byte)
mcp/engine_tools.go:344
↓ 3 callersMethodWriteLearnSidecars
WriteLearnSidecars persists the current machine-readable plan plus a bounded dated history used by local learn diffs. Both states with and without mov
proxy/internal/store/report.go:41
↓ 3 callersMethod__init__
( self, cave: Cave, workflow: str, tags: dict[str, str], *, tr
packages/sdk/python/caveman_cloud/core.py:1085
↓ 3 callersMethod_admit
(key, request) to project, or a pass-through reason. Strict-mode refusals raise here.
packages/middleware/python/caveman_middleware/litellm.py:361
↓ 3 callersMethod_bypass
(self, code: str, *, adapter: str | None = None, diagnostic: bool = True, strict: bool | None = None,
packages/sdk/python/caveman_cloud/middleware/runtime.py:840
↓ 3 callersMethod_call
(self, client)
tests/test_call_claude_streaming.py:36
↓ 3 callersFunction_canonical_json
Stable compact UTF-8 JSON shared by assembly hashes and cloned output.
packages/sdk/python/caveman_cloud/core.py:1518
↓ 3 callersFunction_emit
Call a host sink; never awaited, and neither an exception nor a failing coroutine can change the call. A coroutine sink runs on the caller's even
packages/sdk/python/caveman_cloud/middleware/runtime.py:108
↓ 3 callersFunction_filelock_requirements
(extra)
packages/middleware/python/tests/test_dependency_security.py:8
↓ 3 callersMethod_forget
(self, key)
packages/middleware/python/caveman_middleware/litellm.py:134
↓ 3 callersMethod_init_workers
(self)
packages/sdk/python/caveman_cloud/middleware/async_runtime.py:33
↓ 3 callersFunction_is_hex_id
(value: Any, hex_len: int)
packages/sdk/python/caveman_cloud/core.py:1600
↓ 3 callersFunction_observe_messages
(attempt, response)
packages/middleware/python/caveman_middleware/langchain.py:163
↓ 3 callersFunction_policy_int
A bundle counter (``policy_version`` / ``sequence``), or None. JSON has one number type, so a publisher may emit ``7`` or ``7.0`` for the sam
packages/sdk/python/caveman_cloud/core.py:2139
↓ 3 callersFunction_positive
(value: Any)
packages/sdk/python/caveman_cloud/middleware/protocol.py:33
↓ 3 callersMethod_receipt
The body with its scope normalized (§9) plus its usage span attributes, or None: a receipt with an invalid scope or over limits.receipt_bytes
packages/sdk/python/caveman_cloud/middleware/runtime.py:738
↓ 3 callersMethod_request
(self, kwargs)
packages/middleware/python/caveman_middleware/litellm.py:138
↓ 3 callersMethod_request
(self, path: str, body: dict[str, Any], *, extra_headers: dict[str, str] | None = None)
packages/sdk/python/caveman_cloud/core.py:1246
↓ 3 callersMethod_run
(self, text, call_claude, validate=None)
tests/test_compress_safety.py:1091
↓ 3 callersMethod_run_fix_pass
(self, fix, fix_is_faithful=False)
tests/test_compress_safety.py:232
↓ 3 callersFunction_runtime
(endpoint, deadline_ms)
packages/middleware/python/tests/test_behavior.py:660
↓ 3 callersFunction_safe
(value: Any)
packages/sdk/python/caveman_cloud/middleware/protocol.py:37
↓ 3 callersMethod_save_attempt
(self, kwargs, attempt)
packages/middleware/python/caveman_middleware/litellm.py:209
↓ 3 callersFunction_scope
(runtime, source, ctx=None)
packages/middleware/python/caveman_middleware/pydantic_ai.py:53
↓ 3 callersMethod_session
(self, request, call_type, runtime, protocol=None)
packages/middleware/python/caveman_middleware/litellm.py:201
↓ 3 callersFunction_shutdown
(sock)
packages/sdk/python/caveman_cloud/middleware/transport.py:64
↓ 3 callersFunction_slots
(turn: int)
packages/sdk/python/tests/test_assembly.py:27
↓ 3 callersFunction_state_base_dir
Shared platform-aware base dir for caveman-compress state (backups, locks) — Windows uses %LOCALAPPDATA%, else $XDG_DATA_HOME or ~/.local/share.
plugins/caveman/skills/caveman-compress/scripts/compress.py:128
↓ 3 callersFunction_state_base_dir
Shared platform-aware base dir for caveman-compress state (backups, locks) — Windows uses %LOCALAPPDATA%, else $XDG_DATA_HOME or ~/.local/share.
skills/caveman-compress/scripts/compress.py:128
↓ 3 callersMethod_telemetry
Opt-in OpenTelemetry CLIENT span and duration histogram; the caller fills the yielded dict.
packages/sdk/python/caveman_cloud/middleware/runtime.py:678
↓ 3 callersFunction_usage
(response)
packages/middleware/python/caveman_middleware/agno.py:98
↓ 3 callersFunction_wrap
(client, *, runtime, scope, registration=None, transport=None, allow_stored_responses=False, accept=False, man
packages/middleware/python/caveman_middleware/openai.py:140
↓ 3 callersFunctionacquireClaimLock
(lockPath: string, budgetMs: number, staleMs: number, reclaimDeadOwner = false)
packages/cli/src/index.ts:1438
↓ 3 callersMethodadd
(v StatsMetrics)
proxy/internal/store/stats.go:471
↓ 3 callersFunctionaddClaudeAutoEnv
(env: Record<string, unknown>)
packages/cli/src/index.ts:4343
↓ 3 callersMethodafterTool
(request Request, response Response, allowMask bool)
proxy/internal/nativeruntime/runtime.go:1245
↓ 3 callersFunctionagentNativeBundleRemovalJournalPath
(agent: "claude" | "codex")
packages/cli/src/index.ts:3448
↓ 3 callersFunctionagentNativeCloudMcpHostAbsent
(agent: "claude" | "codex")
packages/cli/src/index.ts:3656
↓ 3 callersFunctionagentNativeSkillFiles
(agent: "claude" | "codex")
packages/cli/src/index.ts:3585
↓ 3 callersFunctionagentOwnEndpoint
(agent: string)
packages/cli/src/index.ts:8886
↓ 3 callersFunctionagentRuntimeLine
(state: "down" | "other", agents: string[])
packages/cli/src/index.ts:241
↓ 3 callersFunctionagentRuntimeState
()
packages/cli/src/index.ts:228
↓ 3 callersFunctionaggregateImportBasis
(events []UsageEvent)
proxy/internal/store/usage_import.go:91
↓ 3 callersFunctionallowlist
(envKey string, fallback []string)
proxy/providers/bedrock/routing.go:538
↓ 3 callersFunctionanchorAt
anchorAt hashes the message before position at (the first message for 0), salted per session, without its cache_control members and thinking blocks: a
proxy/internal/gateway/route.go:1184
↓ 3 callersMethodanswer
answer is the final response object: what a non-streamed caller receives (an OpenAI error body instead when the answer failed).
proxy/internal/translate/responses_stream.go:299
↓ 3 callersMethodanthropicMessagesPath
anthropicMessagesPath reports whether the request path, without the mount prefix, is the Anthropic Messages endpoint or one of its sub-paths.
proxy/providers/openaicompat/openaicompat.go:342
↓ 3 callersFunctionanthropicRawBody
anthropicRawBody builds a Claude Code shaped Anthropic request from an explicit system text and message list, so a test can control the cache floor pr
proxy/internal/gateway/prefix_monitor_test.go:194
↓ 3 callersFunctionanthropicStopReason
(finish string)
proxy/internal/translate/messages.go:232
↓ 3 callersMethodanthropicWireZones
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:213
↓ 3 callersFunctionappendDataURI
appendDataURI appends "data:<media>;base64,<data>" from escaped contents, the base64 copied once.
proxy/internal/translate/jsonfast.go:341
↓ 3 callersFunctionappendFieldEdit
appendFieldEdit produces the insertion that adds cache_control immediately before an object's closing brace, leaving every other byte — whitespace, ke
proxy/providers/anthropic/breakpoint_plan.go:337
↓ 3 callersMethodapply
(self, body, state, outcome)
packages/middleware/python/caveman_middleware/_native.py:323
↓ 3 callersFunctionapplyDensityFloors
applyDensityFloors clamps a profile away from the reader stall envelope: zebra pitch floors at 5 (colour buys that rung), mono pitch floors at 6, laye
engine/pixel/density.go:113
↓ 3 callersMethodapplyUpstreamAuthFallback
(provider string, credential providers.Credential, headers http.Header)
proxy/internal/gateway/auth_fallback.go:14
← previousnext →1,701–1,800 of 12,391, ranked by callers