mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
acf17d6170
100% JSX bot at feature parity with the PoC example: issue/page cards, tables, Chart.js charts, Mermaid diagrams, incident/status/links cards, a confirm_write HITL gate, and /agent + /triage slash commands. Registers examples/slack in the pnpm workspace.
14 lines
684 B
TypeScript
14 lines
684 B
TypeScript
/**
|
|
* App-specific human-in-the-loop components — interactive Block Kit cards the
|
|
* agent can render to ask the user a structured question and wait for the
|
|
* answer.
|
|
*
|
|
* `confirm_write` is now a JSX component (`ConfirmWrite`) used as a BLOCKING
|
|
* FRONTEND TOOL: a tool handler calls `await thread.awaitChoice(<ConfirmWrite
|
|
* .../>)` (wired in a later wave), which posts the picker and resolves to the
|
|
* clicked button's `value`. Add new HITL components here and re-export them.
|
|
*/
|
|
export { ConfirmWrite } from "./confirm-write.js";
|
|
export type { ConfirmWriteProps } from "./confirm-write.js";
|
|
export { confirmWriteTool, confirmWriteSchema } from "./confirm-write-tool.js";
|