Skip to content

Interface: FakeBus

Defined in: aiui-intent-client/src/fake-bus.ts:24

The full host bundle a client is constructed over.

Extends

Properties

capture

capture: CaptureSource

Defined in: aiui-intent-client/src/transport.ts:365

Inherited from

IntentHost.capture


lastRing

lastRing: RingState | undefined

Defined in: aiui-intent-client/src/fake-bus.ts:28

The most recent ring assertion (undefined until the first).


log

readonly log: string[]

Defined in: aiui-intent-client/src/fake-bus.ts:26

Every request/broadcast/hold/shot, in order, as readable strings.


targeting

targeting: SurfaceTargeting

Defined in: aiui-intent-client/src/transport.ts:364

Inherited from

IntentHost.targeting


transport

transport: PageTransport

Defined in: aiui-intent-client/src/transport.ts:363

Inherited from

IntentHost.transport

Methods

answerWith()

answerWith(capability, reply): void

Defined in: aiui-intent-client/src/fake-bus.ts:36

Stage what a page capability answers with (the pull model's other half).

Parameters

capability

string

reply

unknown

Returns

void


clearLog()

clearLog(): void

Defined in: aiui-intent-client/src/fake-bus.ts:42

Clear the log (keeps state — mid-scenario checkpoints).

Returns

void


failCapability()

failCapability(capability, error): void

Defined in: aiui-intent-client/src/fake-bus.ts:40

Make a capability start failing (claim error paths).

Parameters

capability

string

error

string

Returns

void


firePageEvent()

firePageEvent(event): void

Defined in: aiui-intent-client/src/fake-bus.ts:38

Push a page event at the panel (selection ping, interaction, key).

Parameters

event

PageEvent

Returns

void


heldStreams()

heldStreams(): number[]

Defined in: aiui-intent-client/src/fake-bus.ts:30

Currently held (un-released) streams, by tab.

Returns

number[]


setTabUrl()

setTabUrl(tab, url, title?): void

Defined in: aiui-intent-client/src/fake-bus.ts:34

Set a fake tab's identity (tab-boundary events read it via tabInfo).

Parameters

tab

number

url

string

title?

string

Returns

void


switchTab()

switchTab(tab): void

Defined in: aiui-intent-client/src/fake-bus.ts:32

Simulate the user switching tabs.

Parameters

tab

number | undefined

Returns

void