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

Function decode64

packages/app/src/utils/base64.ts:3–10  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

1import { base64Decode } from "@opencode-ai/core/util/encode"
2
3export function decode64(value: string | undefined) {
4 if (value === undefined) return
5 try {
6 return base64Decode(value)
7 } catch {
8 return
9 }
10}

Callers 15

directoryFunction · 0.90
DialogSelectFileFunction · 0.90
directoryFunction · 0.90
directoryFunction · 0.90
SettingsGeneralFunction · 0.90
SessionHeaderFunction · 0.90
requireServerKeyFunction · 0.90
authFromTokenFunction · 0.90
decodeDirectoryFunction · 0.90
LegacyLayoutFunction · 0.90
permission.tsxFile · 0.90
sessionPathFunction · 0.90

Calls 1

base64DecodeFunction · 0.90

Tested by

no test coverage detected