MCPcopy Create free account
hub / github.com/anomalyco/opencode / stored

Function stored

packages/core/src/credential.ts:56–64  ·  view source on GitHub ↗
(row: typeof CredentialTable.$inferSelect)

Source from the content-addressed store, hash-verified

54 const { db } = yield* Database.Service
55 const decode = Schema.decodeUnknownSync(Value)
56 const stored = (row: typeof CredentialTable.$inferSelect) => {
57 if (!row.integration_id) return
58 return new Info({
59 id: row.id,
60 integrationID: row.integration_id,
61 label: row.label,
62 value: decode(row.value),
63 })
64 }
65
66 return Service.of({
67 all: Effect.fn("Credential.all")(function* () {

Callers 2

credential.tsFile · 0.70
useThinkingModeFunction · 0.50

Calls 1

decodeFunction · 0.70

Tested by

no test coverage detected