Skip to content

Type Alias: SendPrompt

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

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

Push text into the Claude Code session (the channel notification). The optional meta becomes attributes on the rendered <channel> tag — the mechanism the intent-v1 lowering uses to carry Option-C attachment paths (body tokens in the text, shot_N → absolute path in meta). Text-only callers (and handlers that ignore the second argument) are unaffected.

Parameters

text

string

meta?

Record<string, string>

Returns

void | Promise<void>