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

Method share

packages/function/src/api.ts:68–77  ·  view source on GitHub ↗
(sessionID: string)

Source from the content-addressed store, hash-verified

66 }
67
68 public async share(sessionID: string) {
69 let secret = await this.getSecret()
70 if (secret) return secret
71 secret = randomUUID()
72
73 await this.ctx.storage.put("secret", secret)
74 await this.ctx.storage.put("sessionID", sessionID)
75
76 return secret
77 }
78
79 public async getData() {
80 const data = (await this.ctx.storage.list()) as Map<string, any>

Callers 8

api.tsFile · 0.45
SessionFunction · 0.45
shareFunction · 0.45
github.handler.tsFile · 0.45
runInteractiveLocalModeFunction · 0.45
session.tsFile · 0.45
shareFunction · 0.45
MessageTimelineFunction · 0.45

Calls 1

getSecretMethod · 0.95

Tested by

no test coverage detected