mirror of
https://github.com/anomalyco/opencode.git
synced 2026-10-24 06:00:00 +00:00
Add a global location reload endpoint, shared shutdown lifecycle, client resynchronization, and the TUI /reload command.\n\nfrom OpenCode
5 lines
248 B
TypeScript
5 lines
248 B
TypeScript
import { Permission } from "@opencode/core/permission"
|
|
import { Effect, Layer } from "effect"
|
|
|
|
export const permissionLayer = (overrides: Partial<Permission.Interface> = {}) =>
|
|
Layer.mock(Permission.Service, { close: Effect.void, ...overrides })
|