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

Function rejectAll

packages/opencode/test/permission/next.test.ts:23–33  ·  view source on GitHub ↗
(message?: string)

Source from the content-addressed store, hash-verified

21const it = testEffect(env)
22
23const rejectAll = (message?: string) =>
24 Effect.gen(function* () {
25 const permission = yield* Permission.Service
26 for (const req of yield* permission.list()) {
27 yield* permission.reply({
28 requestID: req.id,
29 reply: "reject",
30 message,
31 })
32 }
33 })
34
35const waitForPending = (count: number) =>
36 Effect.gen(function* () {

Callers 1

next.test.tsFile · 0.85

Calls 2

listMethod · 0.65
replyMethod · 0.45

Tested by

no test coverage detected