/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/plugin/src/v2/effect/filesystem.ts
17 строк
624 B
Dax
feat(plugin): add v2 effect host (#33111)
21 июн 2026, 15:05
Не верифицирован
21 июн 2026, 15:05
c780d7c
Код
Авторство
О чём код?
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[]> }