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

Function tmpWithFiles

packages/opencode/test/session/instruction.test.ts:68–73  ·  view source on GitHub ↗
(files: Record<string, string>)

Source from the content-addressed store, hash-verified

66 )
67
68const tmpWithFiles = (files: Record<string, string>) =>
69 Effect.gen(function* () {
70 const dir = yield* tmpdirScoped()
71 yield* writeFiles(dir, files)
72 return dir
73 })
74
75function loaded(filepath: string): SessionV1.WithParts[] {
76 const sessionID = SessionID.make("session-loaded-1")

Callers 1

Calls 2

tmpdirScopedFunction · 0.90
writeFilesFunction · 0.85

Tested by

no test coverage detected