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

Function directory

packages/core/src/npm.ts:79–79  ·  view source on GitHub ↗
(pkg: string)

Source from the content-addressed store, hash-verified

77 const fs = yield* FileSystem.FileSystem
78 const flock = yield* EffectFlock.Service
79 const directory = (pkg: string) => path.join(global.cache, "packages", sanitize(pkg))
80 const reify = (input: { dir: string; add?: string[] }) =>
81 Effect.gen(function* () {
82 yield* flock.acquire(`npm-install:${input.dir}`)

Callers 1

npm.tsFile · 0.70

Calls 1

sanitizeFunction · 0.70

Tested by

no test coverage detected