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

Function asks

packages/opencode/test/tool/lsp.test.ts:83–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81})
82
83const asks = () => {
84 const items: Array<Omit<PermissionV1.Request, "id" | "sessionID" | "tool">> = []
85 return {
86 items,
87 next: {
88 ...ctx,
89 ask: (req: Omit<PermissionV1.Request, "id" | "sessionID" | "tool">) =>
90 Effect.sync(() => {
91 items.push(req)
92 }),
93 },
94 }
95}
96
97describe("tool.lsp", () => {
98 describe("permission metadata", () => {

Callers 1

lsp.test.tsFile · 0.70

Calls 2

syncMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected