Lark/Feishu Interactive Card Channel (CardKit mutations, run cards, pagination, truncation)

gitingest_danielwpz_pokoclaw · src/channels/lark/channel.ts · typescript · Apache-2.0
realtime, email

Very thorough chat-channel implementation: streaming run cards, tool-call rendering, card truncation, reaction-based steering, slash commands. Card-truncation and pagination logic generalizes; the rest is Lark-specific and Lark isn't in Mike's stack.

// Source: https://github.com/danielwpz/pokoclaw | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Lark channel runtime entry.
 *
 * Wires lark client registry, inbound monitor, and outbound renderer around
 * the shared runtime ingress/event-bus interfaces. This is the top-level
 * channel module started by runtime bootstrap.
 */
import type * as Lark from "@larksuiteoapi/node-sdk";
import { LarkClientRegistry } from "@/src/channels/lark/client.js";
import {
  createLarkInboundRuntime,
  type LarkInboundIngress,
  type LarkInboundRuntime,
} from "@/src/channels/lark/inbound.js";
import {
  createLarkOutboundRuntime,
  type LarkOutboundRuntime,
} from "@/src/channels/lark/out

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key