MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,391 in github.com/JuliusBrussee/caveman

↓ 5 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
↓ 5 callersMethodConnect
(context.Context)
engine/ccr/store_sqlite.go:96
↓ 5 callersMethodContentType
ContentType is the type this compressor handles (e.g. "json").
engine/compressors/compressor.go:24
↓ 5 callersMethodCredential
Credential returns the provider credential resolved from the environment. Empty means the caller must fail closed or use an explicit inbound credentia
proxy/internal/config/config.go:573
↓ 5 callersFunctionDefaultGptHistoryOptions
()
engine/pixel/history_openai.go:34
↓ 5 callersFunctionEffortLevels
EffortLevels returns the reasoning efforts an exact provider+model catalog match accepts (capabilities.effort_levels). Rows that disagree, or a missin
shared/platform/catalog/catalog.go:84
↓ 5 callersFunctionExpandTabsInLine
(line string)
engine/pixel/render.go:142
↓ 5 callersMethodFor
For returns the compressor for a content type, or (nil, false).
engine/compressors/compressor.go:77
↓ 5 callersFunctionFromEnvironment
FromEnvironment loads production configuration. Endpoint is not configurable, preventing env-driven host redirection of KMS credentials.
shared/platform/kms/kms.go:118
↓ 5 callersFunctionFromPayloadEnvironment
FromPayloadEnvironment selects the payload KEK and permits the secrets KEK only for decrypting artifacts created before key separation shipped.
shared/platform/kms/kms.go:124
↓ 5 callersFunctionGoogleRequestAPIKey
GoogleRequestAPIKey resolves the credential spellings Google documents: the x-goog-api-key header and the key/$key system parameters. Nothing else cou
proxy/providers/google_credentials.go:21
↓ 5 callersMethodGrant
(authority, grant string)
proxy/internal/store/middleware.go:305
↓ 5 callersMethodInsertUsageEvents
(events []UsageEvent)
proxy/internal/store/trial_store.go:94
↓ 5 callersFunctionIsProduction
IsProduction is the single definition of "this process runs in production". Every refusal gate must agree on it: a CAVE_ENV of " prod" or "PROD" that
shared/platform/env/env.go:58
↓ 5 callersFunctionListPriceEligible
ListPriceEligible separates authentication safety from payment semantics. OAuth stays lossless/stealth at the forwarding layer, but Google Cloud Verte
proxy/providers/adapter.go:143
↓ 5 callersMethodLoadTargets
(targets map[string]Target)
browse/session.go:291
↓ 5 callersFunctionMinifyForRender
(text string)
engine/pixel/render.go:115
↓ 5 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:420
↓ 5 callersMethodNow
()
proxy/internal/identity/oidc_test.go:88
↓ 5 callersFunctionPack
Pack selects the best items that fit within the token budget. It scores in relevance order but returns selected items in their original order so messa
engine/contextwindow/contextwindow.go:69
↓ 5 callersFunctionParseNonNegativeInt
(response []byte, field string)
proxy/providers/internal/counttokens/counttokens.go:136
↓ 5 callersFunctionPlanGptCollapse
(turns []GptHistoryTurn, protectedPrefix int, isProfitable GptProfitableFunc, opts GptHistoryOptions)
engine/pixel/history_openai.go:73
↓ 5 callersMethodRead
([]byte)
shared/platform/kms/kms_test.go:372
↓ 5 callersMethodReceipt
Receipt records one receipt per (authority, id). The first write wins: a retried receipt, whatever its body, stores nothing and succeeds, so a client
proxy/internal/store/middleware.go:323
↓ 5 callersFunctionRepairStore
RepairStore rebuilds a damaged recovery store. It holds an exclusive lock on the damaged file from the first read to the swap, so it refuses to start
engine/ccr/store_repair.go:267
↓ 5 callersMethodRevoke
Revoke is sessions/delete's first step: from its commit on, every scope of the authority answers "deleted". It reports the scopes it revoked and the a
proxy/internal/store/middleware.go:310
↓ 5 callersMethodRoundTrip
(r *http.Request)
proxy/internal/gateway/server_test.go:59
↓ 5 callersMethodSaveChoices
(scope string, choices []MiddlewareChoice)
proxy/internal/store/middleware.go:304
↓ 5 callersMethodSaveOriginals
SaveOriginals stores originals in the transaction that publishes the plan using them, so an aborted or not_smaller plan leaves none behind, and report
proxy/internal/store/middleware.go:399
↓ 5 callersFunctionSelect
(taskType string)
proxy/internal/nativepack/pack.go:71
↓ 5 callersMethodSessionUsage
(sessionID string)
proxy/internal/sessionusage/sessionusage.go:27
↓ 5 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:19
↓ 5 callersFunctionStripSchemaDescriptions
(schema any)
engine/pixel/schemastrip.go:65
↓ 5 callersFunctionTruncateForBudget
(text string, maxImages, cols, numCols, maxCharsPerImage int, rp renderParams)
engine/pixel/textprep.go:102
↓ 5 callersMethodValid
Valid reports whether the minimum credential material is present to sign.
shared/platform/awssig/awssig.go:45
↓ 5 callersMethodWrite
(p []byte)
proxy/internal/gateway/chatgpt_test.go:619
↓ 5 callersMethodWriteLearnHTML
(plan LearnPlan, outPath string)
proxy/internal/store/report.go:80
↓ 5 callersMethodWriteStatsHTML
WriteStatsHTML writes a private, self-contained snapshot. The page only rolls up recorded metric groups; it never derives a price or upgrades evidence
proxy/internal/store/stats_report.go:17
↓ 5 callersMethod__aiter__
(self)
packages/middleware/python/caveman_middleware/google.py:462
↓ 5 callersMethod__init__
(self, runtime, scope)
packages/middleware/python/caveman_middleware/llama_index.py:121
↓ 5 callersMethod__setattr__
(self, name, value)
packages/middleware/python/caveman_middleware/llama_index.py:114
↓ 5 callersFunction_assert_event
(request: dict[str, Any], *, name: str, outcome: str, sequence: int, workflow: str = "unlabeled-workflow")
packages/sdk/python/tests/test_tool_events.py:50
↓ 5 callersMethod_call
(self, client, env)
tests/test_call_claude_streaming.py:70
↓ 5 callersFunction_capture
A urlopen stub plus the list it records lowercased headers into.
packages/sdk/python/tests/test_trace_continuity.py:31
↓ 5 callersFunction_left
(deadline: float)
packages/sdk/python/caveman_cloud/middleware/transport.py:31
↓ 5 callersFunction_live
()
packages/middleware/python/caveman_middleware/litellm.py:455
↓ 5 callersMethod_nudge_command
(self, stdout)
tests/test_hooks.py:260
↓ 5 callersFunction_options
( *, provider: str = "anthropic", session_id: str, turn: int, emit_cache_hints: str = "gat
packages/sdk/python/tests/test_assembly.py:72
↓ 5 callersFunction_scope
(runtime, source, config=None, adapter="langchain")
packages/middleware/python/caveman_middleware/langchain.py:51
↓ 5 callersMethodactTool
(args json.RawMessage)
browse/session.go:305
↓ 5 callersMethodadd_error
(self, msg)
plugins/caveman/skills/caveman-compress/scripts/validate.py:49
↓ 5 callersMethodadd_error
(self, msg)
skills/caveman-compress/scripts/validate.py:49
↓ 5 callersFunctionagentStaleRoute
(agent: string)
packages/cli/src/index.ts:280
↓ 5 callersFunctionanthropicConvo
(n int, chars int)
engine/pixel/history_anthropic_test.go:105
↓ 5 callersFunctionanthropicText
anthropicText is a complete Anthropic stream answering `text`.
proxy/internal/translate/helpers_test.go:87
↓ 5 callersFunctionappendRetrieveResult
(provider, routePath string, reqBody, respBody []byte, callID, recovered string)
proxy/internal/gateway/retrieve_tool.go:514
↓ 5 callersMethodapplyEffort
applyEffort applies the answer's effort to body (the bytes compression produced, model already set) and returns what to send. Responses and chat take
proxy/internal/gateway/route.go:781
↓ 5 callersFunctionaskFor
(session, parent, text string)
proxy/internal/cloudlink/route_effort_test.go:122
↓ 5 callersFunctionaskTextFor
askTextFor reads askText out of an Anthropic Messages, OpenAI chat or OpenAI Responses body in one walk over its message spans; only text blocks are d
proxy/internal/cloudlink/link.go:988
↓ 5 callersFunctionassertUpstreamNeverSawToken
assertUpstreamNeverSawToken is the whole point of the header deletion: the operator's shared secret is not a provider credential and must not reach on
proxy/internal/standalone/auth_token_test.go:71
↓ 5 callersFunctionawsEventFrame
(payload []byte)
proxy/providers/bedrock/usage_test.go:164
↓ 5 callersFunctionbenchRow
(i int)
proxy/internal/store/record_batch_test.go:14
↓ 5 callersFunctionblockCacheControl
(block map[string]any)
engine/pixel/transform_anthropic.go:1415
↓ 5 callersFunctionblockedf
(format string, args ...any)
shared/platform/ssrf/ssrf.go:29
↓ 5 callersMethodbody
()
proxy/internal/gateway/cache_prefix_invariant_test.go:287
↓ 5 callersFunctionbuildLearnSpend
buildLearnSpend prices the accumulated buckets. Returns nil when nothing priceable was measured — an empty spend card is worse than none.
proxy/internal/store/learn_pricing.go:185
↓ 5 callersMethodcall
(event: HookEvent, payload: Record<string, unknown>)
packages/pi-extension/src/lifecycle.ts:61
↓ 5 callersMethodcall
(ctx context.Context, region, keyID, operation string, input, output any)
shared/platform/kms/kms.go:346
↓ 5 callersFunctioncanonicalTestPath
(path)
packages/cli/tests/kilo-wrap.runtime.mjs:101
↓ 5 callersFunctioncapabilities
(t *testing.T, r *Runtime, features string)
proxy/internal/middleware/protocol_v11_test.go:91
↓ 5 callersFunctionchat
(message, finish_reason = 'stop')
packages/middleware/typescript/tests/hardening.test.mjs:302
↓ 5 callersFunctionchatGPTRequestHeaders
chatGPTRequestHeaders preserves OAuth/account and ordinary application headers while removing proxy-private and hop-by-hop fields.
proxy/internal/gateway/headers.go:49
↓ 5 callersFunctionchatGPTRouteServer
chatGPTRouteServer is a record-mode ChatGPT route served by rt.
proxy/internal/gateway/chatgpt_auto_test.go:671
↓ 5 callersFunctionchatgptCompressServer
chatgptCompressServer wires the /chatgpt route with live-zone compression available; recovery toggles the out-of-band CAVEMAN_RECOVERY=mcp stamp.
proxy/internal/gateway/chatgpt_test.go:1187
↓ 5 callersFunctionchatgptProxyLogLine
(t *testing.T, logs *bytes.Buffer)
proxy/internal/gateway/chatgpt_test.go:1203
↓ 5 callersFunctioncheck
(schemaName, value, label)
packages/shared/contracts/scripts/validate-schemas.mjs:93
↓ 5 callersFunctioncheck
(ok: boolean)
supabase/functions/blocks-telemetry/ingest.ts:44
↓ 5 callersFunctionchromeHealthy
(endpoint string)
browse/cmd/caveman-browse/main.go:289
↓ 5 callersFunctionclaimRuntimePort
(say: (line: string) => void = (line) => process.stderr.write(`${line}\n`))
packages/cli/src/modules/apply.ts:457
↓ 5 callersFunctionclearAWSEnv
clearAWSEnv leaves only the chain source the test wires; a developer's own AWS_* exports would otherwise take precedence and the assertions would pass
proxy/internal/standalone/bedrock_chain_test.go:37
↓ 5 callersMethodclick
(ctx context.Context, x, y float64)
browse/cdp.go:353
↓ 5 callersFunctioncloneJsonValue
(v: T)
packages/cli/src/index.ts:11933
↓ 5 callersFunctioncodexTomlLines
(text: string)
packages/cli/src/index.ts:9961
↓ 5 callersFunctioncommaCount
(value: number)
packages/cli/src/index.ts:19991
↓ 5 callersFunctioncommandHasPath
(command: string)
packages/cli/src/index.ts:23336
↓ 5 callersFunctioncommitOn
commitOn commits w when it is a gate.
proxy/internal/translate/translate.go:475
↓ 5 callersFunctioncomponentList
(n int, seed byte)
proxy/internal/store/cache_components_test.go:25
↓ 5 callersMethodcompressRequest
compressRequest applies S4 compression to live-zone content and re-applies the replacements it already emitted to frozen content. Each live segment is
proxy/internal/gateway/proxy.go:1540
↓ 5 callersMethodconfigTaxPerTurn
configTaxPerTurn is the statically measured token tax loaded on every turn: CLAUDE.md (user + project) + the user skill catalog. Hooks/plugins are rep
proxy/internal/store/config_scan.go:362
↓ 5 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
↓ 5 callersFunctioncrSuffix
crSuffix returns the CR a synthesized line needs so it matches the endings the rest of the document uses.
engine/compressors/lineends.go:46
↓ 5 callersMethoddecline
Pass through at wrap time (an untested framework version, a recovery tool name conflict) without content or I/O. Takes any catalog reason (an
packages/sdk/python/caveman_cloud/middleware/runtime.py:827
↓ 5 callersFunctiondecode
(t *testing.T, b []byte)
proxy/providers/anthropic/cache_breakpoints_test.go:26
↓ 5 callersFunctiondecodeRequestJSON
decodeRequestJSON preserves numeric lexemes inside dynamic provider fields. A float64 round trip changes large integer tool arguments/schema constrain
engine/pixel/transform_anthropic.go:592
↓ 5 callersFunctiondie
(msg)
installer/install.js:195
↓ 5 callersFunctioneffortInForce
effortInForce is the effort the bytes sent run at: the newest per-message mark (an Anthropic system message, a Responses configuration_update), else t
proxy/internal/gateway/route.go:1281
↓ 5 callersFunctionenableNative
(argv: string[], { quiet = false }: { quiet?: boolean } = {})
packages/cli/src/index.ts:10858
↓ 5 callersFunctionencodedBody
encodedBody compresses a request body the way an agent would send it; "raw-deflate" is a deflate stream without the zlib wrapper, which some clients s
proxy/internal/gateway/chatgpt_auto_test.go:250
↓ 5 callersMethodenv
(name string)
shared/platform/awscreds/awscreds.go:277
↓ 5 callersMethodevent
(self, value)
packages/middleware/python/caveman_middleware/google.py:392
← previousnext →1,001–1,100 of 12,391, ranked by callers