Function: augmentTextPrompt()
augmentTextPrompt(
text,meta):string
Defined in: packages/aiui-claude-channel/src/prompt-context.ts:192
Wrap a user's text in the context the connection's hello provided: which browser tab it came from (with the routing caveats an agent needs) and where the page's source code lives. Returns the text unchanged when there is no context to add — a bare client (no plugin, no extension) still works.
Parameters
text
string
meta
HelloMeta | undefined
Returns
string