Interface: LoweredPromptMessage
Defined in: packages/aiui-claude-channel/src/intent-messages.ts:32
The turn's final lowered prompt, pushed to the client just before it is sent into the session — exactly what the fin commit hands sendPrompt, so a client (a debug viewer, a widget's "what did I just send?" affordance) can show the committed prompt without polling the trace API. Pushed to every client, unconditionally: the push protocol is additive, and old clients ignore unknown kinds by design. A cancelled or empty turn pushes nothing (there is no prompt to show).
Properties
kind
kind:
"lowered-prompt"
Defined in: packages/aiui-claude-channel/src/intent-messages.ts:33
meta?
optionalmeta?:Record<string,string>
Defined in: packages/aiui-claude-channel/src/intent-messages.ts:45
The Option-C attachment paths, when the prompt carries {shot_N} tokens.
prompt
prompt:
string
Defined in: packages/aiui-claude-channel/src/intent-messages.ts:36
The full composed prompt (context preamble + body), exactly as sent.
spans?
optionalspans?:PromptSpan[]
Defined in: packages/aiui-claude-channel/src/intent-messages.ts:43
Offset-annotated structure over prompt — the body spans from composeIntent, shifted past the context preamble, with a leading preamble span. A client renders the raw prompt with hover-previews and a de-emphasized preamble from these instead of re-parsing. Additive.
threadId
threadId:
string
Defined in: packages/aiui-claude-channel/src/intent-messages.ts:34