MCPcopy
hub / github.com/anomalyco/opencode / provide

Function provide

packages/core/test/filesystem/watcher.test.ts:38–49  ·  view source on GitHub ↗
(directory: string, vcs?: Location.Interface["vcs"])

Source from the content-addressed store, hash-verified

36)
37
38function provide(directory: string, vcs?: Location.Interface["vcs"]) {
39 const locationLayer = Layer.succeed(
40 Location.Service,
41 Location.Service.of(location({ directory: AbsolutePath.make(directory) }, { vcs })),
42 )
43 return Effect.provide(
44 AppNodeBuilder.build(Watcher.node, [
45 [Config.node, configLayer],
46 [Location.node, locationLayer],
47 ]).pipe(Layer.provide(flagsLayer)),
48 )
49}
50
51function withTmp<A, E, R>(
52 f: (directory: string, vcs?: Location.Interface["vcs"]) => Effect.Effect<A, E, R>,

Callers 2

withTmpFunction · 0.70
watcher.test.tsFile · 0.70

Calls 2

locationFunction · 0.90
makeMethod · 0.45

Tested by

no test coverage detected