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

Function encodeSend

packages/effect/src/ui/MessageLog.ts:1895–1900  ·  view source on GitHub ↗
(
  send: Component.Send
)

Source from the content-addressed store, hash-verified

1893 * @since 4.2.0
1894 */
1895export const encodeSend = (
1896 send: Component.Send
1897): { readonly owner: string; readonly message: Schema.Json } => ({
1898 owner: sharedReads.keyOf(send.owner).name,
1899 message: encodeArgs(send.owner.receives, send.message)
1900})
1901
1902/** The redacting codec of `ast`, or `null` when it has none. */
1903const encoderOf = memoize(

Callers 1

encodeFunction · 0.85

Calls 1

encodeArgsFunction · 0.85

Tested by

no test coverage detected