SDK

TypeScript SDK

Use the AEON TypeScript SDK from Node or an internal dashboard: typed clients, verdict types, log streaming, and webhook helpers.

5 min read

bashbash
npm install @aeon-cloud/sdk

Run and await a verdict

typescripttypescript
import { AeonClient } from "@aeon-cloud/sdk";

const aeon = new AeonClient({ token: process.env.AEON_TOKEN! });

const run = await aeon.executions.create({
  build: "rc3",
  campaign: "smoke",
  lanes: 4,
});

for await (const line of run.logs()) {
  console.log(`${line.layer}/${line.level} ${line.text}`);
}

const result = await run.wait();
if (result.verdict !== "pass") {
  for (const c of result.cases.filter((c) => c.verdict === "fail")) {
    console.error(c.id, c.reason, c.clause);
  }
  process.exitCode = 1;
}

Types

typescripttypescript
type Verdict = "pass" | "fail" | "inconc" | "error" | "none";

interface CaseResult {
  id: string;
  verdict: Verdict;
  durationS: number;
  reason?: string;
  clause?: string;   // e.g. "24.501:5.5.1.2.4"
}

Run this against a real SDR lane

The tester is a service, not a box. Push a build, reserve a lane, get a verdict.