MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

↓ 6 callersMethodrewrap
([]byte)
engine/filewrap.go:117
↓ 6 callersFunctionrsaJWK
(kid string, key *rsa.PrivateKey)
proxy/internal/identity/oidc_test.go:51
↓ 6 callersFunctionruneLen
(s string)
engine/pixel/render.go:111
↓ 6 callersFunctionscanClaudeTranscriptBehavior
(path, relPath string, since time.Time, slugs []string, beh *behaviorScan, miner *recurringMiner)
proxy/internal/store/learn.go:1026
↓ 6 callersFunctionserveConn
(ctx context.Context, conn net.Conn, runtime *Runtime)
proxy/internal/nativeruntime/server_common.go:76
↓ 6 callersFunctionsign
sign builds a compact JWS. key is *rsa.PrivateKey, *ecdsa.PrivateKey, a []byte HMAC secret, or nil for an unsigned token.
proxy/internal/identity/oidc_test.go:62
↓ 6 callersFunctionskipJSONSpace
(body []byte, i int)
proxy/providers/anthropic/splice.go:178
↓ 6 callersFunctionsplitLines
Line-ending helpers shared by the line-oriented compressors. The old pattern here was `sep := "\n"; if bytes.Contains(input, "\r\n") { sep = "\r\n" }
engine/compressors/lineends.go:20
↓ 6 callersFunctionstandalonePriceForUsage
(meta providers.RequestMetadata, usage providers.UsageObservation)
proxy/internal/gateway/proxy.go:2267
↓ 6 callersFunctionstrconvItoa
(n int)
engine/pixel/factsheet.go:275
↓ 6 callersFunctionstringEnd
stringEnd is the index after the string token starting at b[i] ('"').
proxy/internal/translate/jsonfast.go:42
↓ 6 callersFunctionstripRetrieveCall
(provider, routePath string, respBody []byte)
proxy/internal/gateway/retrieve_tool.go:790
↓ 6 callersFunctionstrippedToolCatalog
(t *testing.T)
proxy/internal/gateway/toolschema_strip_test.go:43
↓ 6 callersFunctionsynthLine
synthLine builds a synthesized line (an elision marker) with the document's dominant line ending.
engine/compressors/lineends.go:55
↓ 6 callersFunctiontoolResultText
(value any)
proxy/internal/store/learn_loops.go:167
↓ 6 callersFunctionunquoteTOMLKey
(s string)
mcp/codemode/stdio_upstream.go:1155
↓ 6 callersMethodusage
usage is the store's totals and Principal's, this transaction's writes included.
proxy/internal/store/middleware.go:331
↓ 6 callersMethodvalue
()
proxy/providers/inspect.go:150
↓ 6 callersFunctionvalueEnd
valueEnd is the index after the value starting at b[i] (no leading space).
proxy/internal/translate/jsonfast.go:63
↓ 6 callersFunctionvertexPublisherGrammar
vertexPublisherGrammar classifies a Vertex request endpoint into its wire grammar ("anthropic" or "google"), failing closed ("") for accounting routes
proxy/providers/vertex/content_compress.go:25
↓ 6 callersFunctionwarmCredentials
()
proxy/internal/cloudlink/warm_test.go:73
↓ 6 callersMethodwarmRows
()
proxy/internal/gateway/cache_warm_test.go:222
↓ 6 callersFunctionwithCaveman
(input: T, options: CavemanOptions)
packages/middleware/typescript/src/ai-sdk.ts:224
↓ 6 callersFunctionwith_caveman_agent
Return native create_agent keyword arguments; do not run another loop. Compresses: the recovery tool is registered with the middleware. A host to
packages/middleware/python/caveman_middleware/langchain.py:278
↓ 6 callersFunctionwriteSessionMode
(claudeDir, sessionId, modeOrNull)
src/hooks/caveman-config.js:656
↓ 5 callersMethod#deadlines
()
packages/sdk/typescript/src/middleware/runtime.ts:545
↓ 5 callersMethod#http
(path: string, body: string | undefined, timeoutMs: number, signal?: AbortSignal, span?: OTelSpanLike | null)
packages/sdk/typescript/src/middleware/runtime.ts:606
↓ 5 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
↓ 5 callersMethodBaseURL
BaseURL returns the configured base URL for a provider, or the supplied default.
proxy/internal/config/config.go:484
↓ 5 callersFunctionBrowserTools
(s *Session)
browse/session.go:81
↓ 5 callersMethodBuildLearnPlanFilteredWithRetro
BuildLearnPlanFilteredWithRetro applies a repository substring before turn events reach behavioral detectors. Config scanning intentionally remains ro
proxy/internal/store/learn.go:167
↓ 5 callersMethodBuildStatsReport
BuildStatsReport reads the request ledger only. Transcript imports are not unioned into this report: without an exact request join that would double c
proxy/internal/store/stats.go:206
↓ 5 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:163
↓ 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:583
↓ 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 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 callersMethodListTools
(ctx context.Context)
mcp/codemode/codemode.go:145
↓ 5 callersMethodLoadTargets
(targets map[string]Target)
browse/session.go:291
↓ 5 callersFunctionMinifyForRender
(text string)
engine/pixel/render.go:115
↓ 5 callersMethodName
Name identifies the counting basis (e.g. the encoding name) for display and cross-surface parity.
engine/tokens/tokens.go:24
↓ 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 callersFunctionNewPRUpstream
--- Built-in PR & CI Upstream (pr_read + ci_logs via gh CLI) --------------- NewPRUpstream builds the built-in `pr` upstream offering T3-Code-style bo
mcp/codemode/builtin_tools.go:513
↓ 5 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:82
↓ 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 callersFunctionPriceForRegionOrAgnostic
PriceForRegionOrAgnostic first requires an exact regional row, then permits a global row only when that row explicitly declares region_agnostic_pricin
shared/platform/catalog/catalog.go:241
↓ 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:297
↓ 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:583
↓ 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 callersMethodbill
(provider, model string, totalIn, cachedRead, cacheWrite, outTok int)
proxy/internal/standalone/e2e_cost_bench_test.go:180
↓ 5 callersFunctionblockCacheControl
(block map[string]any)
engine/pixel/transform_anthropic.go:1415
← previousnext →1,001–1,100 of 12,853, ranked by callers