MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / on

Method on

packages/kilo-chat/src/client.ts:339–349  ·  view source on GitHub ↗
(
    event: N,
    handler: (ctx: string, payload: KiloChatEventOf<N>) => void
  )

Source from the content-addressed store, hash-verified

337 const res = await this.listMessagesPage(conversationId, opts);
338 return res.messages;
339 }
340
341 async listMessagesPage(
342 conversationId: string,
343 opts?: z.input<typeof listMessagesQuerySchema>
344 ): Promise<MessageListResponse> {
345 const query = {
346 before: opts?.before,
347 limit: opts?.limit,
348 } satisfies z.input<typeof listMessagesQuerySchema>;
349
350 return this.httpRequest(`/v1/conversations/${conversationId}/messages`, {
351 query,
352 schema: messageListResponseSchema,

Callers 15

onMessageCreatedMethod · 0.95
onMessageUpdatedMethod · 0.95
onMessageDeletedMethod · 0.95
onTypingMethod · 0.95
onTypingStopMethod · 0.95
onReactionAddedMethod · 0.95
onReactionRemovedMethod · 0.95
onConversationCreatedMethod · 0.95
onConversationRenamedMethod · 0.95
onConversationLeftMethod · 0.95

Calls 2

handlerFunction · 0.50

Tested by 7

recordChatRequestsFunction · 0.36
recordChatRequestTimingsFunction · 0.36
readTarGzFunction · 0.36
dispatchFunction · 0.36
mockUpstreamFunction · 0.36
startProxyFunction · 0.36