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

Function push

packages/opencode/test/session/session.test.ts:83–88  ·  view source on GitHub ↗
(event: string)

Source from the content-addressed store, hash-verified

81 const events: string[] = []
82 const received = yield* Deferred.make<string[]>()
83 const push = (event: string) => {
84 events.push(event)
85 if (events.includes("created") && events.includes("updated")) {
86 Deferred.doneUnsafe(received, Effect.succeed(events))
87 }
88 }
89
90 const unsubscribe = yield* source.listen((event) => {
91 if (event.type === SessionNs.Event.Created.type) push("created")

Callers 1

session.test.tsFile · 0.70

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected