MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions8,033 in github.com/JuliusBrussee/caveman

↓ 6 callersFunctionfsyncParentDirectory
(path: string)
packages/cli/src/index.ts:6766
↓ 6 callersFunctiongatewayArrayElements
(body []byte, arr gatewayJSONSpan)
proxy/internal/gateway/retrieve_tool.go:196
↓ 6 callersFunctiongatewayIsJSONString
(body []byte, span gatewayJSONSpan)
proxy/internal/gateway/pixel.go:547
↓ 6 callersFunctiongetDefaultMode
(startDir)
src/hooks/caveman-config.js:118
↓ 6 callersMethodid
()
proxy/internal/store/session_source.go:21
↓ 6 callersFunctionisJSONObject
(data []byte, span jsonsplice.Span)
proxy/providers/anthropic/breakpoint_plan.go:376
↓ 6 callersFunctionkillProcessTree
( child, platform = process.platform, taskkill = spawnSync, kill = process.kill, graceMs = 1500, )
agents/delegate/portable-process.mjs:64
↓ 6 callersMethodlinesPerPage
linesPerPage is how many text rows fit in a canvas of the given height at this pitch: (H - 2*pad - glyphH)/pitch + 1.
engine/pixel/density.go:179
↓ 6 callersFunctionliveEngine
liveEngine is the real engine over a real (in-memory) CCR store — the same pairing the wrap runtime uses.
mcp/retrieve_integration_test.go:49
↓ 6 callersFunctionloadAtlas
()
engine/pixel/atlas.go:61
↓ 6 callersFunctionmergeDropped
(dst map[rune]int, src map[rune]int)
engine/pixel/transform_anthropic.go:1467
↓ 6 callersFunctionmessageContentBlocks
(content any)
engine/pixel/transform_anthropic.go:1351
↓ 6 callersFunctionnewBreakpointPlanServer
(t *testing.T, adapter providers.Adapter, rt *captureTransport, cfg Config)
proxy/internal/gateway/breakpoint_plan_test.go:37
↓ 6 callersFunctionobjectValue
(value: unknown)
packages/cli/src/index.ts:3190
↓ 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 callersFunctionopenaiTurnConversation
openaiTurnConversation is an OpenAI chat session of n user turns with assistant replies interleaved: turn N's live zone is turn N+1's automatically-ca
proxy/internal/gateway/prefix_stability_payg_test.go:53
↓ 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:948
↓ 6 callersFunctionpathExists
(target)
bin/lib/owned-install.js:9
↓ 6 callersFunctionplanRespBody
planRespBody carries provider cache counters so the session ledger has real numbers to account.
proxy/internal/gateway/breakpoint_plan_test.go:31
↓ 6 callersFunctionread
(home string, port int)
proxy/internal/runstate/runstate.go:134
↓ 6 callersMethodreserve
* Hold `amount` against the ledger. Returns `undefined` when it does not fit, * which is the caller's signal to clamp, compact, or stop — never to
packages/agent/src/budget.ts:353
↓ 6 callersFunctionresolve
(t *testing.T, a Adapter, path string)
proxy/providers/vertex/vertex_test.go:44
↓ 6 callersFunctionroundUSD
(v float64)
proxy/internal/store/trial_store.go:783
↓ 6 callersFunctionruneLen
(s string)
engine/pixel/render.go:110
↓ 6 callersFunctionsegmentBlocks
segmentBlocks splits one text payload into candidate blocks on blank-line boundaries, preserving each block's internal bytes verbatim. The editing ski
proxy/internal/store/recurring.go:153
↓ 6 callersFunctionsessionValuePool
()
proxy/routing/session_value_test.go:248
↓ 6 callersFunctionsetKey
(t *testing.T)
shared/platform/envelope/envelope_test.go:10
↓ 6 callersMethodsettle
* Replace a reservation with the measured cost of the call it covered. * * `actual` is recorded as it came in. It is never clamped to the reserv
packages/agent/src/budget.ts:407
↓ 6 callersFunctionsleep
(ms: number)
packages/cli/src/index.ts:9490
↓ 6 callersFunctionsnippet
snippet trims an error body so we never echo a large/secret-bearing response.
shared/platform/githubapp/githubapp.go:417
↓ 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 callersFunctionstrconvItoa
(n int)
engine/pixel/factsheet.go:275
↓ 6 callersFunctionvalidSessionValueArtifact
(t *testing.T, pool []Candidate, now time.Time)
proxy/routing/session_value_test.go:201
↓ 6 callersMethodwait
(_id: string, _options?: { intervalMs?: number; timeoutMs?: number })
packages/sdk/typescript/src/index.ts:750
↓ 6 callersFunctionwithIntegrationLock
(agent: string, run: () => T)
packages/cli/src/index.ts:7701
↓ 6 callersFunctionwriteTree
(t *testing.T, root string, files map[string]string)
proxy/internal/repointel/index_test.go:90
↓ 5 callersMethodCompatUpstreams
CompatUpstreams returns every named OpenAI-compatible upstream that the proxy mounts. The result starts with the built-in table. Then the caveman.yaml
proxy/internal/config/config.go:329
↓ 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:276
↓ 5 callersFunctionDecodeAndValidate
DecodeAndValidate strictly parses a catalog. Unknown YAML fields, duplicate provider/model/region rows, invalid URLs/timestamps, and unsafe prices rej
shared/platform/catalog/catalog.go:302
↓ 5 callersFunctionDefaultGptHistoryOptions
()
engine/pixel/history_openai.go:34
↓ 5 callersMethodDelete
Delete removes key (no error if already absent).
shared/platform/objectstore/objectstore.go:48
↓ 5 callersFunctionExpandTabsInLine
(line string)
engine/pixel/render.go:141
↓ 5 callersFunctionExtractStabilizable
(body []byte, meta providers.RequestMetadata)
proxy/providers/openai/content_compress.go:92
↓ 5 callersMethodFor
For returns the compressor for a content type, or (nil, false).
engine/compressors/compressor.go:77
↓ 5 callersFunctionForInputTokens
ForInputTokens applies a catalog-declared long-context surcharge to a copy of price. The provider-reported total input count determines the threshold;
shared/platform/cost/cost.go:69
↓ 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 callersMethodInsertUsageEvents
(events []UsageEvent)
proxy/internal/store/trial_store.go:94
↓ 5 callersFunctionIsEnvelope
IsEnvelope reports whether blob uses versioned KMS envelope format.
shared/platform/kms/kms.go:154
↓ 5 callersMethodLoadTargets
(targets map[string]Target)
browse/session.go:291
↓ 5 callersFunctionMinifyForRender
(text string)
engine/pixel/render.go:114
↓ 5 callersMethodName
Name identifies the counting basis (e.g. the encoding name) for display and cross-surface parity.
engine/tokens/tokens.go:24
↓ 5 callersFunctionNew
(listen, mode, owner, version string)
proxy/internal/runstate/runstate.go:73
↓ 5 callersFunctionNewMemory
NewMemory returns an empty in-memory Store.
shared/platform/objectstore/memory.go:18
↓ 5 callersFunctionNewUUIDv7
()
shared/platform/id/id.go:10
↓ 5 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:787
↓ 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 callersMethodResolve
(provider string, r *http.Request)
proxy/internal/standalone/standalone.go:50
↓ 5 callersMethodRetrieveQuery
(handle, query string)
mcp/engine_tools.go:19
↓ 5 callersFunctionSeal
Seal compresses-agnostic: it encrypts plaintext with a fresh data key and returns (ciphertext, metadataJSON). ciphertext is nonce(12)||GCM(body).
shared/platform/envelope/envelope.go:54
↓ 5 callersFunctionSelect
(taskType string)
proxy/internal/nativepack/pack.go:71
↓ 5 callersMethodSetObjectLifecycle
(id string, lifecycle Lifecycle)
engine/ccr/store_wasm.go:157
↓ 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 callersFunctionValidateProduction
ValidateProduction is the startup gate for the ClickHouse transport: call it from every service main alongside env.Refuse*ProductionDefaults, as early
shared/platform/chhttp/chhttp.go:312
↓ 5 callersFunctionVerifyChain
VerifyChain re-walks a proposal's runs ordered by seq and asserts: - seq starts at 1 and increases by exactly 1 (no gaps, no dupes); - each row's prev
shared/platform/proposalrun/proposalrun.go:342
↓ 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 callersFunction_call
(args: list[str], input_text: str | None = None)
mem/py/cavemem.py:23
↓ 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_options
( *, provider: str = "anthropic", session_id: str, turn: int, emit_cache_hints: str = "gat
packages/sdk/python/tests/test_assembly.py:72
↓ 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 callersFunctionaliasedSourceError
(path: string)
packages/agent/src/source-graph.ts:766
↓ 5 callersFunctionassertScoped
assertScoped verifies every produced row carries the authenticated org/project (never the file's) and the honest non-null defaults.
shared/platform/importers/importers_test.go:27
↓ 5 callersFunctionawsEventFrame
(payload []byte)
proxy/providers/bedrock/usage_test.go:164
↓ 5 callersFunctionblockCacheControl
(block map[string]any)
engine/pixel/transform_anthropic.go:1405
↓ 5 callersFunctionbuildAdapters
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:277
↓ 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:184
↓ 5 callersFunctionbytesEqual
(first: Uint8Array, second: Uint8Array)
packages/agent/src/runtime.ts:3186
↓ 5 callersFunctioncanonicalTestPath
(path)
packages/cli/tests/kilo-wrap.runtime.mjs:101
↓ 5 callersFunctionchromeHealthy
(endpoint string)
browse/cmd/caveman-browse/main.go:244
↓ 5 callersFunctionclaudeSettingsPath
()
packages/cli/src/index.ts:13913
↓ 5 callersFunctioncloneJsonValue
(v: T)
packages/cli/src/index.ts:8573
↓ 5 callersFunctioncollapseAnthropicHistory
(messages []Message, profitable func(text string, cols int) bool, opts historyOptions)
engine/pixel/history_anthropic.go:362
↓ 5 callersFunctioncommandHasPath
(command: string)
packages/cli/src/index.ts:18508
↓ 5 callersFunctioncompile
(repo)
tests/installer/agent-registry-compile.test.mjs:32
↓ 5 callersFunctioncompiledPlanRoutes
(headers http.Header)
proxy/internal/gateway/proxy.go:662
↓ 5 callersFunctioncompressionSavingsUSD
compressionSavingsUSD is the inferred dollar value of the input tokens that S4 content compression removed before the request reached the provider. It
proxy/internal/gateway/proxy.go:1536
↓ 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:277
↓ 5 callersFunctioncontextWindow
(provider, model string)
proxy/internal/store/learn.go:1157
↓ 5 callersFunctioncopyProjectFile
( root: string, staging: string, source: string, kind: "source graph" | "file source", )
packages/agent/src/dev-loader.ts:138
↓ 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 callersFunctioncreateHarnessAdapter
( id: HarnessID, identity: HarnessAdapterIdentity, wireContract: Readonly<Record<string, unknown>>, in
packages/agent/src/adapters.ts:83
↓ 5 callersFunctiondecode
(t *testing.T, b []byte)
proxy/providers/anthropic/cache_breakpoints_test.go:26
↓ 5 callersFunctiondefineBuild
(options: Partial<BuildConfig> & Pick<BuildConfig, "entry" | "evals">)
packages/agent/src/build.ts:26
↓ 5 callersFunctiondetectCodexWrapAuthMode
()
packages/cli/src/index.ts:6180
← previousnext →501–600 of 8,033, ranked by callers