Skip to content

Interface: IntentContext

Defined in: aiui-intent-client/src/spec.ts:126

The world's facts (inputs, not choices — no command sets these).

Properties

activeTab

activeTab: number | undefined

Defined in: aiui-intent-client/src/spec.ts:128

The tab the user is looking at (targeting; ring/keys follow it).


aiuiPage

aiuiPage: boolean

Defined in: aiui-intent-client/src/spec.ts:161

The active tab is aiui-INSTRUMENTED (window.AIUI): it can host jump-to-editor.


cdpAlignment

cdpAlignment: CdpAlignment | undefined

Defined in: aiui-intent-client/src/spec.ts:166

CDP alignment: does the browser this client runs in match the browser the bound channel drives (src/cdp-align.ts)? Undefined until the supervisor's first verdict. Drives the cdp pill, rides the hello meta into the prompt prelude, and gates browser-tooling features.


connected

connected: boolean

Defined in: aiui-intent-client/src/spec.ts:152

The channel session is connected (arming requires it).


grantedTab

grantedTab: number | undefined

Defined in: aiui-intent-client/src/spec.ts:137

The grant ANCHOR — the tab whose pixels the client takes right now: the active tab when it holds a grant, else the most recently granted tab (the warm stream parks there so returning costs nothing). Derived from IntentContext.grantedTabs by grantAnchor; the gesture and the tab-switch handler keep it in step. Consumers read THIS; only the ledger's writers touch grantedTabs.


grantedTabs

grantedTabs: readonly number[]

Defined in: aiui-intent-client/src/spec.ts:148

EVERY tab holding a live capture grant, most recent last (owner, 2026-08-03). Chrome's invocation-gated tabCapture standing is per-tab and durable until that tab navigates or closes — the retired extension leaned on Chrome remembering, and a single-slot model made returning to a granted tab ask again (the regression this fixes). The client stays OPTIMISTIC and self-corrects: a capture refused with the invocation-gate error prunes the tab (client.ts), the try-and-demote posture the old extension measured. Grantless hosts keep this [activeTab].


micGranted

micGranted: boolean | undefined

Defined in: aiui-intent-client/src/spec.ts:155

Mic permission: undefined = never asked, then granted or denied. A status-pill fact today; the talk lane supplies it in Phase 2.


pencilClients

pencilClients: number

Defined in: aiui-intent-client/src/spec.ts:158

Connected remote pencil (iPad) clients (0 = none), fed live from the pencil relay's HostSession status.


selectionPresent

selectionPresent: boolean

Defined in: aiui-intent-client/src/spec.ts:150

The page reported a live selection (affordance only — pull model).