Skip to content

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?

optional lines?: number

Defined in: aiui-lowering-pipeline/src/types.ts:101

Line count (derived from text when omitted).


sourceLoc?

optional sourceLoc?: string

Defined in: aiui-lowering-pipeline/src/types.ts:95

file:line:col (or file:startLine-endLine) locator, if known.


tab?

optional tab?: 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?

optional url?: string

Defined in: aiui-lowering-pipeline/src/types.ts:97

The contributing view's location.href.