Download packages/plugin/src/v2/effect/filesystem.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 624 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/plugin/src/v2/effect/filesystem.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/plugin/src/v2/effect/filesystem.ts
-
curl -L -o filesystem.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/plugin/src/v2/effect/filesystem.ts
624 Bytes
| import type { FileSystemEntry } from "@opencode-ai/sdk/v2/types" | |
| import type { Effect } from "effect" | |
| export interface FileSystem { | |
| read(input: { readonly path: string }): Effect.Effect<{ readonly content: Uint8Array; readonly mime: string }> | |
| list(input?: { readonly path?: string }): Effect.Effect<FileSystemEntry[]> | |
| find(input: { | |
| readonly query: string | |
| readonly type?: "file" | "directory" | |
| readonly limit?: number | |
| }): Effect.Effect<FileSystemEntry[]> | |
| glob(input: { | |
| readonly pattern: string | |
| readonly path?: string | |
| readonly limit?: number | |
| }): Effect.Effect<readonly FileSystemEntry[]> | |
| } | |