MCPcopy Create free account
hub / github.com/anomalyco/opencode / cfg

Function cfg

packages/opencode/test/session/compaction.test.ts:220–223  ·  view source on GitHub ↗
(compaction?: ConfigV1.Info["compaction"])

Source from the content-addressed store, hash-verified

218}
219
220function cfg(compaction?: ConfigV1.Info["compaction"]) {
221 const base = Schema.decodeUnknownSync(ConfigV1.Info)({}) as ConfigV1.Info
222 return Layer.succeed(Config.Service, TestConfig.make({ get: () => Effect.succeed({ ...base, compaction }) }))
223}
224
225const defaultProvider = wide()
226const compactionTestNode = LayerNode.group([

Callers 1

compaction.test.tsFile · 0.70

Calls 1

makeMethod · 0.45

Tested by

no test coverage detected