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

Function file

packages/opencode/src/storage/storage.ts:63–65  ·  view source on GitHub ↗
(dir: string, key: string[])

Source from the content-addressed store, hash-verified

61export class Service extends Context.Service<Service, Interface>()("@opencode/Storage") {}
62
63function file(dir: string, key: string[]) {
64 return path.join(dir, ...key) + ".json"
65}
66
67function missing(err: unknown) {
68 if (!err || typeof err !== "object") return false

Callers 4

withResolvedFunction · 0.70
PromptFunction · 0.50
RawMessageContentFunction · 0.50
loadFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected