| 1 | import * as Effect from "effect/Effect"; |
| 2 | import type { BindingHook } from "../PluginContext.ts"; |
| 3 | |
| 4 | export const local = (binding: string): BindingHook => |
| 5 | Effect.succeed({ |
| 6 | name: binding, |
| 7 | json: JSON.stringify({ |
| 8 | id: crypto.randomUUID(), |
| 9 | tag: "", |
| 10 | timestamp: "0", |
| 11 | }), |
| 12 | }); |