Skip to content

Type Alias: PromptHandler

PromptHandler = (text, meta?) => void | Promise<void>

Defined in: packages/aiui-claude-channel/src/web.ts:45

Forward prompt text into the Claude Code session. The optional meta (from the intent-v1 lowering) becomes attributes on the rendered <channel> tag, carrying Option-C attachment paths alongside the body tokens that reference them. Text-only callers are unaffected.

Parameters

text

string

meta?

Record<string, string>

Returns

void | Promise<void>