MCPcopy Create free account
hub / github.com/Effect-TS/effect / run

Function run

packages/effect/src/ui/MessageLog.ts:1572–1578  ·  view source on GitHub ↗
(entry: CommandEnded | CommandInterrupted)

Source from the content-addressed store, hash-verified

1570 }
1571 ) => entry.events.map((emitted) => through(entry.component, "events", emitted) as Schema.Json)
1572 const run = (entry: CommandEnded | CommandInterrupted) => ({
1573 ...instanceBase(entry),
1574 name: entry.name,
1575 issued: entry.issued,
1576 spanId: entry.spanId ?? null,
1577 traceId: entry.traceId ?? null
1578 })
1579 return {
1580 encode(entry) {
1581 switch (entry._tag) {

Callers 1

encodeFunction · 0.70

Calls 1

instanceBaseFunction · 0.85

Tested by

no test coverage detected