Interface: CodeSelection
Defined in: aiui-lowering-pipeline/src/types.ts:91
The payload of a code-selection event: code selected in another view of the session (e.g. a VS Code bridge) and contributed to the turn. Kept structured — raw text plus locator — so the LOWERING decides how it renders into the prompt; the contributing view makes no formatting decisions.
Properties
lines?
optionallines?:number
Defined in: aiui-lowering-pipeline/src/types.ts:101
Line count (derived from text when omitted).
sourceLoc?
optionalsourceLoc?:string
Defined in: aiui-lowering-pipeline/src/types.ts:95
file:line:col (or file:startLine-endLine) locator, if known.
tab?
optionaltab?:TabRecord
Defined in: aiui-lowering-pipeline/src/types.ts:99
The contributing view's full tab record, when gathered (supersedes url).
text
text:
string
Defined in: aiui-lowering-pipeline/src/types.ts:93
The selected code, verbatim.
url?
optionalurl?:string
Defined in: aiui-lowering-pipeline/src/types.ts:97
The contributing view's location.href.