MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions13,382 in github.com/JuliusBrussee/caveman

↓ 6 callersFunctionnewPoolCaseMode
newPoolCaseMode runs the pool case in mode ("" record; "compress" without a compressor rewrites nothing but gets the cache mechanics).
proxy/internal/gateway/route_pool_test.go:167
↓ 6 callersFunctionnewSocketFreeCompressServerWithConfig
(adapter providers.Adapter, comp Compressor, rt *captureTransport, creds CredentialResolver, cfg Config)
proxy/internal/gateway/live_zone_test.go:105
↓ 6 callersFunctionnewWarmGateway
(t *testing.T, status int, engine string)
proxy/internal/cloudlink/warm_test.go:32
↓ 6 callersFunctionnormalizeBlock
normalizeBlock is the internal grouping key (lowercase, digit-run masked, whitespace collapsed) so the same block with trivial numeric/whitespace drif
proxy/internal/store/recurring.go:277
↓ 6 callersFunctionnormalizeEchoText
(text string)
proxy/internal/store/detect_sections.go:36
↓ 6 callersMethodobserve
observe records one gap of class; negative means the stream never came back.
proxy/internal/gateway/cache_warm_table.go:157
↓ 6 callersFunctionopenEvidenceStore
(t *testing.T)
proxy/internal/store/cache_components_test.go:48
↓ 6 callersFunctionopenFixture
(t *testing.T, dir, mode string)
proxy/internal/middleware/runtime_test.go:32
↓ 6 callersMethodopenai
(self, upstream_key: str | None = None)
packages/sdk/python/caveman_cloud/core.py:597
↓ 6 callersMethodopenai
(config: { upstreamKey?: string } = {})
packages/sdk/typescript/src/index.ts:400
↓ 6 callersFunctionopenaiAdapter
Zone tagging for the cross-turn prefix fix. OpenAI caches long prompt prefixes automatically, so a message this proxy compressed while it was the live
proxy/providers/openai/prefix_stability_test.go:18
↓ 6 callersFunctionopencodeConfigPath
(dir)
installer/install.js:1554
↓ 6 callersMethodoptimize
(self, *, scope: Scope, adapter: Adapter, candidates: Sequence[Candidate], manifest: Sequence[dict],
packages/sdk/python/caveman_cloud/middleware/runtime.py:435
↓ 6 callersMethodpack
POST context candidates to ``/sdk/v1/context/pack``. On transport or malformed-report failure, returns every caller-owned item with z
packages/sdk/python/caveman_cloud/core.py:970
↓ 6 callersMethodpage
(self, value: Any, options: dict[str, Any])
packages/sdk/python/caveman_cloud/core.py:1349
↓ 6 callersFunctionpathExists
(target)
installer/lib/owned-install.js:9
↓ 6 callersFunctionprefixCacheKey
prefixCacheKey binds replacement to semantic plan/transform scope. Same bytes selected for a different locked transform must never replay an older win
proxy/internal/store/prefix_cache.go:164
↓ 6 callersMethodpreflight
Nonthrowing startup discovery, including strict mode. Caller cancellation * still propagates. Sends no candidate content or provider request.
packages/sdk/typescript/src/middleware/runtime.ts:244
↓ 6 callersFunctionprepareLangChain
(messages:BaseMessage[], options:LangChainOptions, config?:RunnableConfig, binding?:RecoveryBinding|null, pref
packages/middleware/typescript/src/langchain-model.ts:59
↓ 6 callersMethodprobs
probs is the class's return-time distribution: the defaults, pulled toward what this proxy has seen as its own observations accumulate.
proxy/internal/gateway/cache_warm_table.go:257
↓ 6 callersFunctionproxyBin
()
packages/cli/src/index.ts:21988
↓ 6 callersFunctionquote
(t *testing.T, value string)
proxy/providers/gemini/content_compress_test.go:47
↓ 6 callersFunctionrate
(tokensPerTurn int, turnsPerDay float64)
proxy/internal/store/learn.go:1358
↓ 6 callersFunctionreadPendingNativeJournal
(agent: string)
packages/cli/src/index.ts:11207
↓ 6 callersFunctionreadProxyRuntimeState
(port: number, versionInfo: ReturnType<typeof probeProxyVersion>)
packages/cli/src/index.ts:22368
↓ 6 callersFunctionreadRawConfig
()
packages/cli/src/index.ts:23612
↓ 6 callersMethodready
()
packages/pi-extension/src/recovery.ts:76
↓ 6 callersFunctionrecordModeChange
(claudeDir, newMode, sessionId)
src/hooks/caveman-config.js:761
↓ 6 callersMethodrecordSpan
* Buffer a span, mapping GenAI fields to `gen_ai.*` attributes. * Returns the OTelSpan (with generated ids) so callers can chain child spans * v
packages/sdk/typescript/src/index.ts:2225
↓ 6 callersFunctionrecovery
Wrap-time recovery binding, or None for an unusable scope. Never raises (Decision 3): strict mode reports ``invalid_scope`` from the request path
packages/middleware/python/caveman_middleware/_guard.py:45
↓ 6 callersMethodrefuseDamaged
()
engine/ccr/store_integrity.go:84
↓ 6 callersFunctionrefuseOwnEndpoint
(agent: NativeAgent, key: string, value: unknown, file?: string)
packages/cli/src/index.ts:9126
↓ 6 callersFunctionremoveSignalHandlers
()
packages/cli/src/index.ts:2800
↓ 6 callersFunctionrender
(active: boolean)
packages/cli/src/modules/onboard.ts:693
↓ 6 callersFunctionrenderLearnPlan
( plan: LearnPlan, options: { markdown?: boolean; report?: string; diff?: LearnDiff; verbose?: boolean; al
packages/cli/src/index.ts:21039
↓ 6 callersFunctionresolve
(t *testing.T, a Adapter, path string)
proxy/providers/vertex/vertex_test.go:44
↓ 6 callersFunctionretrieveTool
retrieveTool returns the exact original for a handle; an unknown handle is a fail-closed tool error carrying a cave_snake_code (PRD §11.4). Every requ
mcp/engine_tools.go:176
↓ 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 callersFunctionsignalExitCode
(signal: NodeJS.Signals | null)
packages/cli/src/index.ts:1807
↓ 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:2575
↓ 6 callersFunctionstrconvItoa
(n int)
engine/pixel/factsheet.go:275
↓ 6 callersMethodstreamResponse
(w http.ResponseWriter, r *http.Request, src io.Reader, stream bool, requestID string, completion streamComple
proxy/internal/gateway/proxy.go:2786
↓ 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 callersFunctionstripYamlComment
* YAML 1.2 comment stripping: `#` starts a comment ONLY outside quotes AND at * column 0 or immediately after whitespace (` ` or `\t`). Preserves URL
packages/cli/src/codemode.ts:318
↓ 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 callersFunctionunquoteKey
(raw: string)
packages/cli/src/codemode.ts:349
↓ 6 callersFunctionunquoteTOMLKey
(s string)
mcp/codemode/stdio_upstream.go:1155
↓ 6 callersFunctionunwrapCodexExec
unwrapCodexExec finds the result line with the largest `output` string. A line qualifies only when it is a JSON object ending in its `output` string (
engine/codexexec.go:37
↓ 6 callersFunctionunwrapInput
unwrapInput removes supported presentation wrappers in outer-to-inner order. Six layers cover known agent compositions (e.g. Claude <system-reminder>
engine/filewrap.go:199
↓ 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 callersFunctionwebsocketServer
(upstream string, client *http.Client)
proxy/internal/gateway/websocket_route_test.go:84
↓ 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 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:674
↓ 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:160
↓ 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 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
← previousnext →1,001–1,100 of 13,382, ranked by callers