MCPcopy Index your code
hub / github.com/anomalyco/opencode / filesystem

Function filesystem

packages/opencode/src/cli/cmd/debug/file.ts:10–14  ·  view source on GitHub ↗
(effect: Effect.Effect<A, E, R>)

Source from the content-addressed store, hash-verified

8import { cmd } from "../cmd"
9
10const filesystem = <A, E, R>(effect: Effect.Effect<A, E, R>) =>
11 effect.pipe(
12 Effect.provide(LocationServiceMap.Service.get(Location.Ref.make({ directory: AbsolutePath.make(process.cwd()) }))),
13 Effect.provide(locationServiceMapLayer),
14 )
15
16const FileSearchCommand = effectCmd({
17 command: "search <query>",

Callers 2

file.tsFile · 0.85
file.tsFile · 0.85

Calls 3

getMethod · 0.65
cwdMethod · 0.65
makeMethod · 0.45

Tested by

no test coverage detected