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

Function processorLayer

packages/opencode/test/session/compaction.test.ts:211–218  ·  view source on GitHub ↗
(result: "continue" | "compact")

Source from the content-addressed store, hash-verified

209}
210
211function processorLayer(result: "continue" | "compact") {
212 return Layer.succeed(
213 SessionProcessorModule.SessionProcessor.Service,
214 SessionProcessorModule.SessionProcessor.Service.of({
215 create: Effect.fn("TestSessionProcessor.create")((input) => Effect.succeed(fake(input, result))),
216 }),
217 )
218}
219
220function cfg(compaction?: ConfigV1.Info["compaction"]) {
221 const base = Schema.decodeUnknownSync(ConfigV1.Info)({}) as ConfigV1.Info

Callers 2

compaction.test.tsFile · 0.85
compactionProcessLayerFunction · 0.85

Calls 1

fakeFunction · 0.70

Tested by

no test coverage detected