Download packages/core/src/tool/tools.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/tool/tools.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/core/src/tool/tools.ts
-
curl -L -o tools.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/tool/tools.ts
428 Bytes
| export * as Tools from "./tools" | |
| import { Context, Effect, Scope } from "effect" | |
| import { Tool } from "./tool" | |
| export interface Interface { | |
| readonly register: ( | |
| tools: Readonly<Record<string, Tool.AnyTool>>, | |
| ) => Effect.Effect<void, Tool.RegistrationError, Scope.Scope> | |
| } | |
| /** Narrow registration-only Location capability. */ | |
| export class Service extends Context.Service<Service, Interface>()("@opencode/v2/Tools") {} | |