MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

↓ 8 callersFunctionspace
(body []byte, i int)
proxy/providers/jsonsplice/jsonsplice.go:389
↓ 8 callersFunctionstop
()
packages/cli/src/index.ts:6101
↓ 8 callersFunctionstreamUsageEnabled
C8 review finding 5: this optimizer adds a client-visible SSE chunk to the response (an observable effect outside what byte-safe promises), so like re
proxy/providers/openai/stream_usage_test.go:13
↓ 8 callersFunctiontoString
(v any)
engine/pixel/transform_anthropic.go:1529
↓ 8 callersFunctiontopLevelSection
(lines: string[], key: string)
packages/cli/src/index.ts:14533
↓ 8 callersFunctionusage
(value, complete=True)
packages/middleware/python/caveman_middleware/_usage.py:19
↓ 8 callersFunctionusageJSON
usageJSON is an Anthropic usage object for a 200k-token cached prefix.
proxy/internal/gateway/cache_warm_test.go:154
↓ 8 callersMethodwait
(_id: string, _options?: { intervalMs?: number; timeoutMs?: number })
packages/sdk/typescript/src/index.ts:755
↓ 8 callersFunctionwriteTree
(t *testing.T, root string, files map[string]string)
proxy/internal/repointel/index_test.go:90
↓ 7 callersMethodAllows
Allows reports whether the principal may use namespace.
proxy/internal/identity/identity.go:102
↓ 7 callersFunctionCanonicalizeToolCatalog
CanonicalizeToolCatalog deterministically sorts a serialized `tools[]` array by stable tool name while preserving the exact inner bytes of every tool
proxy/providers/toolzone.go:76
↓ 7 callersFunctionCommand
Command builds a git invocation rooted at root that the repository cannot steer. Inherited GIT_* variables are dropped so an outer environment cannot
proxy/internal/gitsafe/gitsafe.go:44
↓ 7 callersFunctionCompactSlabWhitespace
(text string)
engine/pixel/textprep.go:234
↓ 7 callersMethodCompressSegment
(segment []byte)
proxy/internal/gateway/server.go:95
↓ 7 callersFunctionDecodeTOON
DecodeTOON parses the supported TOON subset back into the JSON data model.
engine/compressors/toon_decode.go:23
↓ 7 callersFunctionDefault
Default returns a registry with the engine's built-in compressors registered: JSON, log, test-report, code, diff, search-result, text, HTML, tabular,
engine/compressors/compressor.go:90
↓ 7 callersMethodEncrypt
Encrypt delegates encryption to key manager.
shared/platform/kms/kms.go:175
↓ 7 callersFunctionExtractStabilizable
(body []byte, meta providers.RequestMetadata)
proxy/providers/openai/content_compress.go:92
↓ 7 callersFunctionHandle
Handle returns the content-addressed handle for a payload without storing it.
engine/ccr/store.go:260
↓ 7 callersMethodLoadExperiment
(label string)
proxy/internal/store/learn_experiment.go:160
↓ 7 callersMethodMiddlewareUsage
(ctx context.Context)
proxy/internal/store/middleware.go:251
↓ 7 callersMethodName
()
mcp/codemode/codemode.go:144
↓ 7 callersFunctionNew
New constructs the Bedrock adapter. baseURL is the bedrock-runtime endpoint; in production it is the regional endpoint (https://bedrock-runtime.<regio
proxy/providers/bedrock/bedrock.go:34
↓ 7 callersFunctionNewAXTree
NewAXTree returns the forced-only CDP Accessibility.getFullAXTree compressor. It emits a compact, deterministic indented view with uid handles while C
engine/compressors/axtree.go:28
↓ 7 callersFunctionNewConfig
NewConfig returns the deterministic YAML, TOML, and INI compressor.
engine/compressors/config.go:40
↓ 7 callersFunctionNewServerTLS
NewServerTLS loads the files once and fails on anything unusable. clientCA is optional; with it, a client certificate is verified when presented (not
proxy/internal/identity/tls.go:37
↓ 7 callersMethodObserveSummarySince
ObserveSummarySince returns the compact observe-estimate object, optionally filtered to rows at or after an RFC3339 instant (the wrap session start).
proxy/internal/store/store.go:1061
↓ 7 callersFunctionOpenPostgresMiddleware
OpenPostgresMiddleware connects through postgresconfig: a non-loopback host needs sslmode=verify-full (checked against CAVE_POSTGRES_CA_CERT / CAVE_PO
proxy/internal/store/middleware_postgres.go:48
↓ 7 callersFunctionPrepareSQLitePath
PrepareSQLitePath creates or tightens a persistent SQLite file before the driver sees it. Recovery databases can contain prompts, credentials, and too
engine/ccr/store_sqlite.go:432
↓ 7 callersFunctionProjectAnthropic
ProjectAnthropic projects a Messages request onto the provider's current count_tokens input surface. Every proven count field is copied as its raw JSO
proxy/providers/internal/counttokens/counttokens.go:62
↓ 7 callersMethodRecordBatch
([]RequestRecord)
proxy/internal/gateway/recorder.go:12
↓ 7 callersFunctionRenderTextToTwoLayerPNGs
RenderTextToTwoLayerPNGs splits wrapped text into max-level overlay pages. Each image holds up to 2×N lines: the first N in the red layer, the next N
engine/pixel/overlay.go:189
↓ 7 callersMethodResolve
(provider string, r *http.Request)
proxy/internal/standalone/standalone.go:145
↓ 7 callersFunctionResolveGptProfile
(model string)
engine/pixel/gpt_profiles.go:53
↓ 7 callersFunctionSQLiteDSN
SQLiteDSN builds the driver DSN for path. The two pragmas are load-bearing, not tuning: this recovery store is opened once per CLI process (caveman-mc
engine/ccr/store_sqlite.go:216
↓ 7 callersMethodSafetyClass
SafetyClass is the compressor's inherent class on the S0–S4 ladder.
engine/compressors/compressor.go:26
↓ 7 callersMethodSaveOriginal
SaveOriginal is SaveOriginals for one original.
proxy/internal/store/middleware.go:382
↓ 7 callersMethodSavePlan
SavePlan stores a plan, replacing one expired by now (which Plan reported absent). A plan still live at now is never overwritten: ErrMiddlewareConflic
proxy/internal/store/middleware.go:301
↓ 7 callersMethodSetObjectLifecycle
(id string, lifecycle Lifecycle)
engine/ccr/store_wasm.go:160
↓ 7 callersFunctionShrink
Shrink compresses a tool catalog with an S4 lossy transform. It is fail-open: on any parse problem or when the result would not be smaller, it returns
shrink/shrink.go:117
↓ 7 callersMethodSource
Source reports the chain entry that last produced credentials: "env", "web_identity", "container", "imds", or "" before the first success.
shared/platform/awscreds/awscreds.go:164
↓ 7 callersMethodStream
Stream reports whether the caller asked for a streamed answer.
proxy/internal/translate/translate.go:140
↓ 7 callersFunctionValidateHost
ValidateHost resolves host (bare hostname or IP literal) and checks all resolved addresses. Use when you have a host/port pair rather than a full URL
shared/platform/ssrf/ssrf.go:262
↓ 7 callersFunctionWrite
(home string, state State)
proxy/internal/runstate/runstate.go:142
↓ 7 callersMethodWrite
(p []byte)
proxy/internal/nativeruntime/drop_log_test.go:23
↓ 7 callersFunction_capture
(*, fail: bool = False)
packages/sdk/python/tests/test_tool_events.py:27
↓ 7 callersMethod_finish
(self, data, response, event)
packages/middleware/python/caveman_middleware/litellm.py:313
↓ 7 callersMethod_passive
(self, reason)
packages/middleware/python/caveman_middleware/llama_index.py:397
↓ 7 callersFunction_policy_number
A real finite number, or None. ``bool`` is not a number (it is an ``int`` subclass in Python, and a guard must never compare True against 1).
packages/sdk/python/caveman_cloud/core.py:1990
↓ 7 callersMethod_report
(self, reason, logical_id=None)
packages/middleware/python/caveman_middleware/litellm.py:158
↓ 7 callersMethodadd
add decides the JSON string at text. replace is the span its rendering replaces and wrap shapes the image parts for that span; only a live text may be
proxy/internal/gateway/pixel.go:178
↓ 7 callersFunctionagentNativeBundleJournalPath
(agent: "claude" | "codex", pending = false)
packages/cli/src/index.ts:3453
↓ 7 callersFunctionagentNativeCloudMcpMatches
(agent: "claude" | "codex", mcp: { command: string; args: string[] })
packages/cli/src/index.ts:3566
↓ 7 callersFunctionanthropicPixelBody
(model string, stream bool)
proxy/internal/gateway/pixel_test.go:428
↓ 7 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:258
↓ 7 callersFunctionappendInner
appendInner appends escaped string contents as one JSON string.
proxy/internal/translate/jsonfast.go:332
↓ 7 callersMethodassemble
Build a provider request with stable/session content above volatile. Pure client-side: no account and no network call. The hash ledger is
packages/sdk/python/caveman_cloud/core.py:425
↓ 7 callersFunctionassertNoPointers
(t *testing.T, what, content string)
mcp/retrieve_integration_test.go:97
↓ 7 callersFunctioncall
(args, input)
mem/js/index.mjs:13
↓ 7 callersFunctioncaptureSpawn
(cmd, args, opts)
installer/install.js:502
↓ 7 callersFunctioncaptureStdout
(t *testing.T, fn func())
proxy/cmd/caveman-proxy/status_test.go:223
↓ 7 callersMethodcharBudget
charBudget is the per-image character capacity of a full canvas page at this profile (rows × cols × layers). Page capacity — not the fixed std budget
engine/pixel/density.go:272
↓ 7 callersFunctioncheckedNonNegativeSum
(values ...int64)
proxy/internal/store/usage_import.go:652
↓ 7 callersFunctionclaudeRoot
Agent roots resolve local transcript/config dirs and stay env-overridable so tests never read or write a user's real agent data. After the CAVEMAN_* t
proxy/internal/store/config_scan.go:62
↓ 7 callersMethodclose
(self)
packages/sdk/python/caveman_cloud/middleware/runtime.py:810
↓ 7 callersFunctioncloudConfigPath
()
packages/cli/src/modules/config-home.ts:28
↓ 7 callersFunctioncompressGDScript
compressGDScript elides every named function body and reports whether anything changed. Headers may span several lines (a wrapped parameter list); a f
engine/compressors/code_gdscript.go:66
↓ 7 callersFunctionconfigValue
(raw: string | undefined)
packages/cli/src/index.ts:9041
↓ 7 callersFunctioncontentSHA256
(raw string)
proxy/internal/store/recurring.go:284
↓ 7 callersFunctioncorpusPage
(t *testing.T, name string)
mcp/retrieve_integration_test.go:38
↓ 7 callersFunctiondamagedStore
damagedStore builds a store whose recoveries b-tree has the damage #1149 and #1369 report: two interior cells name the same child page, so a page has
engine/ccr/store_integrity_test.go:20
↓ 7 callersMethoddecline
Native adapters use this when they pass through at wrap time (an untested framework version, a recovery tool name * conflict); `adapter` names them
packages/sdk/typescript/src/middleware/runtime.ts:527
↓ 7 callersFunctiondecodeRaw
decodeRaw unmarshals a[b] usage.RawUsage for comparison, tolerating that re-marshaling a parsed map can reorder keys (values are what matter).
proxy/providers/adapter_raw_usage_test.go:12
↓ 7 callersFunctiondie
(msg)
agents/compile.mjs:53
↓ 7 callersFunctiondiscardResponse
(response: Response)
packages/sdk/typescript/src/index.ts:2034
↓ 7 callersMethoddiscover
(deadline *behaviorDeadline)
proxy/internal/store/session_source.go:22
↓ 7 callersFunctionelides
(t *testing.T, src, mustKeep string)
engine/compressors/code_langs_test.go:11
↓ 7 callersFunctionemitTelemetryEvents
(events: Record<string, unknown>[])
packages/cli/src/index.ts:1693
↓ 7 callersFunctionencodeChatGPTRequestBody
(logical []byte, encoding chatGPTRequestEncoding)
proxy/internal/gateway/chatgpt_encoding.go:55
↓ 7 callersMethodevaluate
(taskFamily: string, options: DecideOptions)
packages/sdk/typescript/src/index.ts:1276
↓ 7 callersFunctionfindObjectField
(body []byte, obj jsonSpan, field string)
proxy/providers/openai/content_compress.go:493
↓ 7 callersFunctionfirstEnvSecret
(env: NodeJS.ProcessEnv, keys: string[])
packages/cli/src/index.ts:7268
↓ 7 callersFunctiongatewayArrayElements
(body []byte, arr gatewayJSONSpan)
proxy/internal/gateway/retrieve_tool.go:272
↓ 7 callersFunctionhandleArgs
handleArgs dispatches a CLI subcommand against store, writing JSON (or raw recovered bytes) to stdout and diagnostics to stderr, and returns the proce
mem/cmd/cavemem/main.go:90
↓ 7 callersFunctionhasColorPixel
(img image.Image)
engine/pixel/transform_anthropic_density_test.go:88
↓ 7 callersFunctionhashText
(text string)
proxy/internal/store/learn.go:20
↓ 7 callersMethodid
()
proxy/internal/store/session_source.go:21
↓ 7 callersFunctioninputs
(binding=None)
packages/sdk/python/tests/test_middleware.py:15
↓ 7 callersMethodinvoke
(self, messages, assistant_message=None, response_format=None, tools=None, tool_choice=None, run_response=None
packages/middleware/python/tests/test_behavior.py:329
↓ 7 callersFunctionisCorrupt
isCorrupt reports an error by which SQLite says the file itself is damaged.
engine/ccr/store_integrity.go:62
↓ 7 callersFunctionisSelfServer
(name string, cfg ServerConfig)
mcp/codemode/stdio_upstream.go:1113
↓ 7 callersFunctionisToken
(s: unknown)
packages/sdk/typescript/src/middleware/validate.ts:35
↓ 7 callersFunctionitemsOfType
(turn codexTurn, kind string)
proxy/internal/translate/helpers_test.go:274
↓ 7 callersFunctionkiloConfigPath
()
packages/cli/src/index.ts:15175
↓ 7 callersFunctionlearnWireEnv
learnWireEnv isolates every root learn reads: no test touches the real ~/.claude, ~/.codex, or ~/.caveman.
proxy/cmd/caveman-proxy/learn_wire_test.go:24
↓ 7 callersMethodlock
lock takes a transaction-scoped advisory lock once per key; read snapshots never lock.
proxy/internal/store/middleware_postgres.go:350
↓ 7 callersFunctionmakeAnnotatedToolCatalogAnthropic
()
proxy/internal/standalone/e2e_cost_bench_test.go:839
↓ 7 callersFunctionmanifest
(items: readonly unknown[], manifestBytes = MIDDLEWARE_DEFAULTS.manifest_bytes)
packages/middleware/typescript/src/common.ts:54
↓ 7 callersFunctionmapFile
(entries ...string)
proxy/internal/identity/identity_test.go:40
↓ 7 callersFunctionmemorySink
(kind, scope, title, class string, tokensPerTurn int, turnsPerDay float64, evidence map[string]any, suggestion
proxy/internal/store/detect_memory_health.go:331
← previousnext →701–800 of 12,853, ranked by callers