Skip to main content

@svatah/yam-adapter-atspi

Linux AT-SPI accessibility adapter

Exports

ExportKindSignature
ACTION_PREFERENCEvariableACTION_PREFERENCE: Readonly<Record<string, readonly string[]>> Which AT-SPI action performs a gesture.
actionForfunctionexport function actionFor(kind: string, node: AtspiNode): string | undefined
ATSPI_ADAPTERvariableATSPI_ADAPTER = "atspi"
atspiAvailabilityfunctionexport async function atspiAvailability(For a caller that wants to know before it opens one.
AtspiAvailabilityinterfaceexport interface AtspiAvailability
AtspiBridgeinterfaceexport interface AtspiBridgeWhat the adapter needs from Linux. Everything else is a pure function.
AtspiBridgeErrorclassexport class AtspiBridgeError extends Error
AtspiCommandtypealiasexport type AtspiCommand
AtspiNodeinterfaceexport interface AtspiNodeOne element of an AT-SPI tree, flattened with parent indices.
AtspiSurfaceclassexport class AtspiSurface implements AgentSurface
AtspiSurfaceOptionsinterfaceexport interface AtspiSurfaceOptions
AtspiWindowinterfaceexport interface AtspiWindow
automationIdOffunctionexport function automationIdOf(node: AtspiNode): string | undefinedThe application's own id for an element (LLD §3.3).
buildNodesfunctionexport function buildNodes(Turn a flattened AT-SPI tree into snapshot nodes with stable references.
BuiltNodeinterfaceexport interface BuiltNode
createAtspiSurfacefunctionexport function createAtspiSurface(config: Config): AtspiSurface
isInteractivefunctionexport function isInteractive(node: AtspiNode): booleanWhether a node is worth showing when the caller asked for controls only.
nameOffunctionexport function nameOf(node: AtspiNode): stringWhat the element is called, in the order a screen reader would say it.
parseTreefunctionexport function parseTree(stdout: string): AtspiWindowRead what the walker wrote.
PERFORM_SCRIPTvariablePERFORM_SCRIPT = [Acting, as one program.
pythonBridgefunctionexport function pythonBridge(options: AtspiBridgeOptions = {}): AtspiBridgeThe bridge as it runs on a Linux desktop.
registerAtspiAdapterfunctionexport function registerAtspiAdapter(): void
roleOffunctionexport function roleOf(node: AtspiNode): stringThe ARIA role an AT-SPI role name means.
Runtypealiasexport type Run = (Run a program and answer with what it said. Injected, so tests need no bus.
runProcessvariablerunProcess: Run = (command, args, timeoutMs) =>
statesOffunctionexport function statesOf(node: AtspiNode): NodeState[]
valueOffunctionexport function valueOf(node: AtspiNode): stringThe value a read of kind value answers with.
WALK_SCRIPTvariableWALK_SCRIPT = [The tree walker, as one Python program.