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

Function share

packages/opencode/test/share/share-next.test.ts:56–65  ·  view source on GitHub ↗
(id: SessionID)

Source from the content-addressed store, hash-verified

54}
55
56const share = (id: SessionID) =>
57 Effect.gen(function* () {
58 const { db } = yield* Database.Service
59 return yield* db
60 .select()
61 .from(SessionShareTable)
62 .where(eq(SessionShareTable.session_id, id))
63 .get()
64 .pipe(Effect.orDie)
65 })
66
67const seed = (url: string, org?: string) =>
68 AccountRepo.Service.use((repo) =>

Callers 1

share-next.test.tsFile · 0.70

Calls 5

eqFunction · 0.85
getMethod · 0.65
whereMethod · 0.45
fromMethod · 0.45
selectMethod · 0.45

Tested by

no test coverage detected