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

Function scope

packages/app/src/context/prompt.tsx:327–328  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

325 const serverKey = () =>
326 params.serverKey ? requireServerKey(params.serverKey) : ServerConnection.key(serverSDK().server)
327 const scope = () =>
328 search.draftId ? { draftID: search.draftId } : { dir: base64Encode(sdk().directory), id: params.id }
329 const load = (scope: Scope) => {
330 const current = settings.general.newLayoutDesigns() ? selectPromptTab(tabs.store, scope, serverKey()) : undefined
331 if (current) {

Callers 11

file.tsxFile · 0.70
loadFunction · 0.70
prompt.tsxFile · 0.70
currentFunction · 0.70
setFunction · 0.70
selectedFunction · 0.70
writeFunction · 0.70
snapshot.tsFile · 0.50
storage.test.tsFile · 0.50
useSessionKeyFunction · 0.50
normalizeFunction · 0.50

Calls 2

base64EncodeFunction · 0.90
sdkFunction · 0.85

Tested by

no test coverage detected