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

Function entry

packages/core/test/system-context/registry.test.ts:8–19  ·  view source on GitHub ↗
(key: string, text: string, sourceKey = key)

Source from the content-addressed store, hash-verified

6import { testEffect } from "../lib/effect"
7
8const entry = (key: string, text: string, sourceKey = key) => ({
9 key: SystemContext.Key.make(key),
10 load: Effect.succeed(
11 SystemContext.make({
12 key: SystemContext.Key.make(sourceKey),
13 codec: Schema.toCodecJson(Schema.String),
14 load: Effect.succeed(text),
15 baseline: String,
16 update: (_previous, current) => current,
17 }),
18 ),
19})
20
21const it = testEffect(AppNodeBuilder.build(SystemContextRegistry.node))
22

Callers 2

registry.test.tsFile · 0.70
git.tsFile · 0.50

Calls 1

makeMethod · 0.45

Tested by

no test coverage detected