MCPcopy
hub / github.com/anomalyco/opencode / getData

Method getData

packages/function/src/api.ts:79–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77 }
78
79 public async getData() {
80 const data = (await this.ctx.storage.list()) as Map<string, any>
81 return Array.from(data.entries())
82 .filter(([key, _]) => key.startsWith("session/"))
83 .map(([key, content]) => ({ key, content }))
84 }
85
86 public async assertSecret(secret: string) {
87 if (secret !== (await this.getSecret())) throw new Error("Invalid secret")

Callers 5

api.tsFile · 0.80
handlePasteFunction · 0.80
handlePasteFunction · 0.80
handleGlobalDropFunction · 0.80

Calls 2

listMethod · 0.65
fromMethod · 0.45

Tested by

no test coverage detected