MCPcopy Index your code
hub / github.com/anomalyco/opencode / resolve

Function resolve

packages/llm/src/cache-policy.ts:33–37  ·  view source on GitHub ↗
(policy: CachePolicy | undefined)

Source from the content-addressed store, hash-verified

31// - "none" → no auto placement; manual `CacheHint`s still flow.
32// - object form → exactly what the caller asked for.
33const resolve = (policy: CachePolicy | undefined): CachePolicyObject => {
34 if (policy === undefined || policy === "auto") return AUTO
35 if (policy === "none") return NONE
36 return policy
37}
38
39// Protocols whose wire format ignores inline cache markers (OpenAI's implicit
40// prefix caching, Gemini's implicit + out-of-band CachedContent). Skip the

Callers 1

applyCachePolicyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected