Browse RC.8 documentation
RC.8 Documentation revision 1

Node.js Integration

Use the direct Node-API JavaScript and TypeScript surface from the supported npm package.

Audience: Node.js integrators

Package boundary#

The supported npm identity is @wa120/ait-native. It contains the portable JavaScript and TypeScript facade and selects the exact RC.8 platform Node-API addon.

Code · bash
npm install @wa120/ait-native@1.0.0-rc.8

The package does not bundle or start ait-server. Its API loads the package-owned addon directly and does not use a child process as the binding transport.

Direct API#

Code · js
import { NativeRuntime } from "@wa120/ait-native";

const ait = new NativeRuntime();
console.log(ait.bindingInfo());
const status = ait.runCli(["status", "--json"]);
console.log(status);

The packaged ait command calls the same native binding in process. The JavaScript API and command therefore share the admitted Rust behavior.

Repository workflow#

Node.js repositories use the same initialization and generated repository instructions as every other supported repository.

Code · bash
npx --no-install ait init
npx --no-install ait status --json

AIT does not inspect package.json to choose test commands or framework behavior. The repository remains responsible for its explicit validation.

Platform packages#

Target-specific addon packages are exact-version implementation dependencies, not separate products. Applications should depend on the supported top-level package and let normal npm resolution select the matching addon.

Version authority

Checked against the exact RC.8 source

This page is public documentation, not a second product contract. Use the exact source and distribution contract for release authority.

Owning component Snapshots
  • ait-coreSNP-F136DB9A342B
  • ait-serverSNP-FBF302ADABC5
  • ait-runnerSNP-DF67532B0360
  • ait-pythonSNP-39225802847F
  • ait-nodeSNP-3D474B60B26F