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

Method post

packages/effect/src/chat/ChatTest.ts:1526–1539  ·  view source on GitHub ↗
(
    content: {
      readonly markdown?: string
      readonly replyTo?: ReplyTo
      readonly files?: ReadonlyArray<File>
      readonly actions?: ReadonlyArray<ChatUi.Action>
    },
    thread = this.thread
  )

Source from the content-addressed store, hash-verified

1524 }
1525
1526 post(
1527 content: {
1528 readonly markdown?: string
1529 readonly replyTo?: ReplyTo
1530 readonly files?: ReadonlyArray<File>
1531 readonly actions?: ReadonlyArray<ChatUi.Action>
1532 },
1533 thread = this.thread
1534 ) {
1535 return Effect.tap(
1536 this.call(this.chat.post(thread, { markdown: conformanceText(this.rule), ...content })),
1537 (posted) => Effect.sync(() => this.created.push({ thread, id: posted.id }))
1538 )
1539 }
1540
1541 userPosts(thread = this.thread) {
1542 return Effect.flatMap(

Callers 15

openModalMethod · 0.95
probeMethod · 0.95
conformanceFunction · 0.95
dispatchFunction · 0.45
deployFunction · 0.45
setStatusFunction · 0.45
closeIssueFunction · 0.45
upsertFunction · 0.45
onceFunction · 0.45

Calls 4

callMethod · 0.95
conformanceTextFunction · 0.85
pushMethod · 0.65
syncMethod · 0.45

Tested by 15

postFunction · 0.36
postFunction · 0.36
createTodoFunction · 0.36
chargeFunction · 0.36
createTodoFunction · 0.36
makeClientFunction · 0.36
streamRequestFunction · 0.36
fromClientFunction · 0.36
sendFunction · 0.36
postFunction · 0.36
sendFunction · 0.36
callFunction · 0.36