Skip to content

Interface: AppSelection

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

The payload of an app-selection event: what the user had highlighted on the page when the turn opened (the selection watcher snapshots it — see aiui-intent-runtime/src/selection.ts). The raw text plus the same DOM-contract attribution the screenshot locator reads (data-source-loc / data-cell).

Properties

cell?

optional cell?: string

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

data-cell (dataflow node) of the selection's start element.


cellLoc?

optional cellLoc?: string

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

That cell's definition site (file:line — the cell(...) call), when stamped.


sourceLoc?

optional sourceLoc?: string

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

data-source-loc (file:line:col) of the selection's start element.


tab?

optional tab?: TabRecord

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

The page's full tab record, when the client gathered one (supersedes url).


tex?

optional tex?: string

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

TeX source when the selection is rendered mathematics.


text

text: string

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

The selected text, trimmed and capped by the watcher.


url?

optional url?: string

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

location.href of the page the selection was made on.